diff --git a/db/migrations/02-create_items_table.sql b/db/migrations/02-create_items_table.sql
index 99bec9e2..762a4495 100644
--- a/db/migrations/02-create_items_table.sql
+++ b/db/migrations/02-create_items_table.sql
@@ -20,23 +20,6 @@ CREATE TABLE IF NOT EXISTS "report" (
"udap_id" TEXT
);
-CREATE TABLE IF NOT EXISTS "clause" (
- id TEXT PRIMARY KEY NOT NULL,
- label TEXT NOT NULL,
- value TEXT NOT NULL
-);
-
-CREATE TABLE IF NOT EXISTS "report_to_clause" (
- id TEXT PRIMARY KEY NOT NULL,
- "reportId" TEXT NOT NULL REFERENCES report(id) ON DELETE CASCADE,
- "clauseId" TEXT NOT NULL REFERENCES clause(id) ON DELETE CASCADE
-);
ALTER TABLE
"report" ENABLE ELECTRIC;
-
-ALTER TABLE
- "report_to_clause" ENABLE ELECTRIC;
-
-ALTER TABLE
- "clause" ENABLE ELECTRIC;
\ No newline at end of file
diff --git a/db/migrations/04-add_chips_table.sql b/db/migrations/04-add_chips_table.sql
index 4f8d84d8..f0e0967f 100644
--- a/db/migrations/04-add_chips_table.sql
+++ b/db/migrations/04-add_chips_table.sql
@@ -1,4 +1,5 @@
-CREATE TABLE chip(
+
+CREATE TABLE clause(
key text NOT NULL
,value text NOT NULL
,udap_id text
@@ -6,78 +7,48 @@ CREATE TABLE chip(
, PRIMARY KEY (key, value, udap_id)
);
-INSERT INTO chip(key,value,udap_id,text) VALUES ('demandeur','Particulier','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Cet agent évalue si votre projet peut s’intégrer à cet espace. Ce jugement ne remplace pas les demandes d’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('demandeur','Maître d''oeuvre','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Le jugement émis ne remplace pas les demandes d’autorisation de travaux. Si la décision est favorable, vous devrez contacter le service instructeur. Notez que le maître d’œuvre sera notre interlocuteur privilégié pour ce projet. Ci-dessous le compte rendu de l’échange :');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('demandeur','Collectivité','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Cet agent évalue si votre projet peut s’intégrer à cet espace. Le jugement émis ne remplace pas les demandes d’autorisation de travaux. Si la décision est favorable, vous devrez contacter le service instructeur. Ci-dessous le compte rendu de l’échange :');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('demandeur','Service de l''État','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Dans le cadre de notre relation collégiale, l’UDAP facilitera l’application des règlements en vigueur, de la qualité architecturale et patrimoniale. Nos conseils ne remplacent pas les demandes d’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('demandeur','Autre','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Nos conseils ne remplacent pas les demandes d’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('etat-actuel','Prog.','ALL','Le projet est en phase de programmation avant conception architecturale.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('etat-actuel','Avant-projet','ALL','Le projet est en phase d’avant-projet.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('etat-actuel','Refus','ALL','Le projet est après le refus d’une précédente autorisation d''urbanisme.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('etat-actuel','Chantier','ALL','Le projet est en chantier avant achèvement des travaux.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('etat-actuel','Conformité','ALL','Le projet est non conforme après achèvement des travaux.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('etat-actuel','Urgence','ALL','Il s’agit d’une situation d’urgence sanitaire.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','PSMV','ALL','Situé dans un secteur urbain protégé par le Plan de sauvegarde et de mise en valeur (PSMV), plus haut degré de protection patrimoniale concernant les extérieurs et intérieurs, votre projet devra obligatoirement respecter l’avis ci-dessous.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','AVAP','ALL','Situé sur une Aire de mise en valeur de l’architecture et du patrimoine (AVAP) ou une Zone de protection du patrimoine architectural urbain et paysager (ZPPAUP), votre projet devra obligatoirement respecter l’avis ci-dessous.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','Abord','ALL','Situé aux abords d''un Monument historique, votre projet doit obligatoirement respecter l’avis ci-dessous.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','Périmètre','ALL','Ce projet est proche d''un monument historique, mais sans visibilité entre l''un et l''autre. L''avis ci-dessous est un conseil pour la collectivité délivrant l’autorisation.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','Site classé','ALL','Situé sur un site classé, préservant les espaces paysagers, votre projet nécessite un avis ministériel pouvant prendre 8 mois.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','Site inscrit','ALL','Ce projet est sur site inscrit, préservant les paysages.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','Monument historique classé','ALL','Ce projet concerne un monument historique classé. Nous transmettons donc nos recommandations et votre demande à la Conservation régionale des monuments historiques (CRMH) à qui la décision reviendra.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('type-espace','Monument historique inscrit','ALL','Ce projet concerne un monument historique inscrit. Nous transmettons donc nos recommandations et votre demande à la Conservation régionale des monuments historiques (CRMH) à qui la décision reviendra.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','Sans suite','ALL','Votre demande est classée sans suite.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','Oui','ALL','À l''examen de votre demande, il ressort que ce dossier n''appelle aucune observation particulière. Il peut donc être déposé en mairie en l''état.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','Refus','ALL','À l''examen de votre demande, il ressort que ce dossier n''est pas réalisable car il porte atteinte au cadre patrimonial dans lequel il s''inscrit. S''il venait à faire l''objet du dépôt d''autorisation d''urbanisme, il se verrait refuser. Il convient donc de changer votre projet en tenant compte de la réglementation en vigueur.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','Modif. mini.','ALL','Vous pouvez déposer dès à présent une demande d''autorisation d''urbanisme pouvant donner lieu à des prescriptions ou des observations mineures.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','Dédale','ALL','À l''examen de votre demande, il ressort que ce dossier appelle des observations. Après ces modifications, et avant dépôt de votre demande d’autorisation d’urbanisme, vous pourrez déposer un avant-projet qui donnera lieu à des prescriptions ou des observations.
-Déposer un avant-projet : https://www.demarches-simplifiees.fr/commencer/udap');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','Architecte','ALL','À l’examen de votre demande, il ressort que ce dossier n’est pas réalisable en l’état. Le recours à un architecte ou un maître d’œuvre s’avère indispensable. Ce professionnel dressera le prochain projet qui nous sera proposé sous forme d’une consultation préalable.
-Lien pour déposer une consultation préalable : https://www.demarches-simplifiees.fr/commencer/udap');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','Rdv','ALL','À l''examen de votre demande, il ressort que ce dossier appelle des observations importantes.
-Un rendez-vous avec l''agent de l’UDAP chargé de votre dossier s’avère nécessaire. Privilégiez nos permanences (si votre intercommunalité l''organise) ou à défaut un RDV dans nos bureaux (voir contact en bas du courrier).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('decision','A suivre','ALL','Votre projet n''est pas encore au stade d’avancement nécessaire pour obtenir un avis de notre part. Il sera nécessaire de le représenter lorsqu''il aura suffisamment avancé. Privilégiez nos permanences (si votre intercommunalité l''organise) ou à défaut un RDV dans nos bureaux (voir contact en bas du courrier).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','DRAC','udap-landes','Votre projet relève de la DRAC, contactez
-Emmanuelle Maillet, Conseillère Architecture - emmanuelle.maillet@culture.gouv.fr.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','CRMH','udap-landes','Il est important de contacter la conservation régionale des monuments historiques (CRMH) de Poitiers. Contactez
-Severine Laborie, Conservatrice - severine.laborie@culture.gouv.fr.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','SRA','udap-landes','Veillez à l''éventualité de vestiges archéologiques. Contactez
-Mathilde Roupsard, Conservatrice - mathilde.roupsard@culture.gouv.fr.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','DREAL','udap-landes','Votre projet se situe en site. Contactez
-Lydie Bayle, Inspectrice des Sites - lydie.bayle@developpement-durable.gouv.fr.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Mozas','udap-landes','Votre projet est susceptible d''être accompagné par la mission cohésion des territoires. Veuillez contacter Jean-François Mozas, Délégué Territorial de l’arrondissement de Dax - jean-francois.mozas@landes.gouv.fr.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Laurin','udap-landes','Votre projet est susceptible d''être accompagné par la mission cohésion des territoires. Veuillez contacter Olivier Laurin, Délégué Territorial de arrondissement MDM - olivier.laurin@landes.gouv.fr.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Lacanal','udap-landes','Votre projet est susceptible d''être accompagné par la Direction départementale des territoires et de la mer. Veuillez contacter Julie Lacanal, Cheffe de service aménagement et risques - julie.lacanal@landes.gouv.fr.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','CAUE','udap-landes','Le CAUE des Landes dispense un conseil architectural gratuit et de qualité qui bonifiera votre projet. Veuillez contacter CAUE des Landes, Conseil - contact@caue40.com.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','FdP','udap-landes','Votre projet est susceptible de recevoir une aide de la part de la Fondation du patrimoine. Veuillez contacter Jean Mortier, Délégué de la FP - jean.mortier@fondation-patrimoine.org.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','s.o.','udap-landes','Sans objet.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','DRAC','udap-deux-sèvres','Votre projet concerne plusieurs champs qui relèvent de la DRAC. Veuillez contacter Johanne Peyras, conseillère Démocratisation et action territoriale - johanne.peyras@culture.gouv.fr - 05 49 36 30 50 (DRAC Nouvelle-Aquitaine - site de Poitiers, 102 Grand''Rue - BP 553, 86020 Poitiers Cedex).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','CRMH','udap-deux-sèvres','Il est important que vous preniez contact avec la conservation régionale des monuments historiques (CRMH) du site de Poitiers. Veuillez contacter Pauline Lucas, conservatrice des monuments historiques de la Charente et des Deux-Sèvres - pauline.lucas@culture.gouv.fr - 05 49 36 30 10 (DRAC Nouvelle-Aquitaine - site de Poitiers, 102 Grand''Rue - BP 553, 86020 Poitiers Cedex).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','SRA','udap-deux-sèvres','Une attention particulière doit être portée à l''éventualité de vestiges archéologiques sur le site. Veuillez contacter Jérôme Primault, conservateur du patrimoine
-Service Régional de l’Archéologie - jerome.primault@culture.gouv.fr - 05 49 36 30 64 (DRAC Nouvelle-Aquitaine - site de Poitiers, 102 Grand''Rue - BP 553, 86020 Poitiers Cedex).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Provost','udap-deux-sèvres','Votre projet se situe en site. Veuillez contacter Sylvain Provost, inspecteur des sites - sylvain.provost@developpement-durable.gouv.fr - 07 64 67 37 19 (DREAL Nouvelle-Aquitaine, 15 rue Arthur-Ranc, 86020 Poitiers Cedex).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Nau','udap-deux-sèvres','Votre projet est suceptible d''être accompagné par la mission cohésion des territoires. Veuillez contacter Isabelle Nau, référente territoriale - isabelle.nau@deux-sevres.gouv.fr - 05 49 06 88 88 (Direction départementale des territoires, 39 avenue de Paris, 79022 Niort Cedex 9).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Gouet','udap-deux-sèvres','Votre projet est suceptible d''être accompagné par la mission cohésion des territoires. Veuillez contacter Oliver Gouet, référent territorial - olivier.gouet@deux-sevres.gouv.fr - 05 49 06 88 88 (Direction départementale des territoires, 39 avenue de Paris, 79022 Niort Cedex 9).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Cornut','udap-deux-sèvres','Votre projet est suceptible d''être accompagné par la mission cohésion des territoires. Veuillez contacter Thierry Cornus, référent territorial - thierry.cornusdeux-sevres.gouv.fr - 05 49 06 88 88 (Direction départementale des territoires, 39 avenue de Paris, 79022 Niort Cedex 9).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','CAUE','udap-deux-sèvres','Le CAUE des Deux-Sèvres dispense un conseil architectural gratuit et de qualité qui bonifiera votre projet. Veuillez contacter le conseil d’architecture, d’urbanisme et de l’environnement (CAUE) - contact@caue79.fr - 05 49 28 06 28 (, Mail Lucie Aubrac, cs 58880, 79028 Niort cedex).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','Fdp','udap-deux-sèvres','Votre projet est susceptible de recevoir une aide de la part de la Fondation du patrimoine. Veuillez contacter Aurélie Liège, chargée de mission de la Délégation Poitou-Charentes - aurelie.liege@fondation-patrimoine.org - 06 59 54 62 15 / 05 49 41 45 54 (Fondation du patrimoine, 1 bis rue Lebascles, 8600 Poitiers).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','PNRMP','udap-deux-sèvres','Votre projet se situe dans le périmètre du Parc naturel et peut bénéficier du conseil de son architecte. Veuillez contacter Gaële Calvez, architecte conseil - g.calvez@parc-marais-poitevin.fr - 05 49 35 15 20 (Parc naturel régional du Marais poitevin, 2 Rue de l''Église, 79510 Coulon).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('contacts-utiles','s.o.','udap-deux-sèvres','Sans objet.');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','DRAC','ALL','Qu’est-ce qu’une DRAC | Direction régionale des affaires culturelles ?
-Il s’agit d’un service déconcentré du ministère de la Culture mettant en œuvre la politique culturelle du ministère en région. (www.culture.gouv.fr/Regions/DRAC-Nouvelle-Aquitaine/Qui-sommes-nous).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','SPR','ALL','Qu’est-ce qu’un SPR | site patrimonial remarquable ?
-Il s’agit d’un ensemble urbain protégé par un règlement patrimonial spécifique pour mettre en valeur les espaces bâtis et non bâtis. (www.culture.gouv.fr/Thematiques/Monuments-Sites/Monuments-historiques-sites-patrimoniaux/Les-sites-patrimoniaux-remarquables).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','Site','ALL','Qu’est-ce qu’un site ?
-Il s’agit d’une politique visant à préserver des lieux au regard de leur qualité paysagère. Consultez le site de la DREAL pour en savoir plus.
(www.nouvelle-aquitaine.developpement-durable.gouv.fr/sites-r1150.html).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','Des travaux','ALL','Vous souhaitez entreprendre des travaux ?
-La démarche pour obtenir une autorisation de travaux varie selon le contexte de votre projet.
-Consultez ce lien pour identifier la démarche adaptée à votre besoin. (www.culture.gouv.fr/Demarches-en-ligne/Par-thematique/Monuments-Sites/Mes-travaux-en-site-protege).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','Atlas','ALL','Identifier les protections patrimoniales autour de votre bien ?
-Utilisez l’Atlas du patrimoine pour faire apparaître les différents périmètres de protection autour de votre bien. (atlas.patrimoines.culture.fr/).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','ATHEBA','ALL','Améliorer votre bâti ancien ?
-Consultez les fiches ATHEBA précisant les spécificités techniques du bâti ancien afin de favoriser une amélioration thermique durable (www.rehabilitation-bati-ancien.fr).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','CREBA','ALL','Réhabiliter un bâti ancien ?
-Consultez le centre de ressources pour la réhabilitation responsable du bâti ancien (CREBA), à destination des professionnels, pour tout projet de réhabilitation ou de restauration (www.rehabilitation-bati-ancien.fr/).');
-INSERT INTO chip(key,value,udap_id,text) VALUES ('bonnes-pratiques','FranceRénov','ALL','Être accompagné dans un projet de réhabilitation ?
-Consultez France Rénov, service public de la rénovation de l’habitat, oriente les demandeurs tout au long de leur projet de rénovation et assure une mission sociale auprès des ménages modestes (france-renov.gouv.fr).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('demandeur','Particulier','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Cet agent évalue si votre projet peut s’intégrer à cet espace. Ce jugement ne remplace pas les demandes d’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('demandeur','Maître d''oeuvre','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Le jugement émis ne remplace pas les demandes d’autorisation de travaux. Si la décision est favorable, vous devrez contacter le service instructeur. Notez que le maître d’œuvre sera notre interlocuteur privilégié pour ce projet. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('demandeur','Collectivité','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Cet agent évalue si votre projet peut s’intégrer à cet espace. Le jugement émis ne remplace pas les demandes d’autorisation de travaux. Si la décision est favorable, vous devrez contacter le service instructeur. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('demandeur','Service de l''État','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Dans le cadre de notre relation collégiale, l’UDAP facilitera l’application des règlements en vigueur, de la qualité architecturale et patrimoniale. Nos conseils ne remplacent pas les demandes d’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('demandeur','Autre','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un espace protégé pour son patrimoine. Nos conseils ne remplacent pas les demandes d’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
+
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','2Bis_SPR','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe dans un site patrimonial remarquable (SPR). Son rôle est de contrôler la compatibilité de votre projet avec le règlement du SPR. Votre projet devra obligatoirement le respecter. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','Abord','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe aux abords d’un monument historique (MH). Son rôle est de s’assurer de la bonne intégration paysagère et architecturale de votre projet dans cet environnement. L''avis favorable de l’architecte des bâtiments de France sera obligatoire pour obtenir l’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','Périmètre','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe proche d''un monument historique, mais sans visibilité entre l''un et l''autre. Son rôle est de s’assurer de la bonne intégration paysagère et architecturale de votre projet dans cet environnement. Il apporte un conseil pour la collectivité délivrant l’autorisation de travaux. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','Site classé/DP','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe en site classé. Il vous accompagne pour l''élaboration de votre déclaration préalable pour recevoir l’accord du préfet du département. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','Site classé/PC','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe en site classé. Il vous accompagne pour l''élaboration de votre projet pour son passage en commission départementale des sites et des paysages. L’autorisation de travaux doit recevoir l’accord du ministère de la transition écologique dans un délai de 8 mois. Il convient également de vous rapprocher de l’inspecteur de sites de la DREAL. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','Site inscrit','ALL','Vous avez rencontré un agent de l’UDAP car votre projet se situe en site inscrit .Son rôle est de s’assurer de la bonne intégration paysagère et architecturale de votre projet dans cet environnement. L’avis de l’UDAP est transmis à la collectivité délivrant l’autorisation de travaux.Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','Monument historique classé','ALL','Vous avez rencontré un agent de l’UDAP car votre projet porte sur un monument historique classé. Son rôle est de vous accompagner dans l’élaboration de votre demande d''autorisation de travaux. Cette dernière sera transmise à la Conservation régionale des monuments historiques (CRMH) pour accord dans un délai de 6 mois. Ci-dessous le compte rendu de l’échange :');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('type-espace','Monument historique inscrit','ALL','Vous avez rencontré un agent de l’UDAP car votre projet porte sur un monument historique inscrit. Son rôle est de vous accompagner dans l’élaboration de votre demande d''autorisation de travaux. Cette dernière sera transmise à la Conservation régionale des monuments historiques (CRMH) pour accord dans un délai de 5 mois. Ci-dessous le compte rendu de l’échange :');
+
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','Oui','ALL','Suite à nos échanges, il ressort que le projet est abouti et que vous pouvez déposer une demande d''autorisation d''urbanisme.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','Modif. mini.','ALL','Suite à nos échanges, il ressort que le projet est assez abouti pour que vous puissiez déposer une demande d''autorisation d''urbanisme. Elle pourra donner lieu à des prescriptions ou des observations mineures.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','A suivre','ALL','Suite à nos échanges, il ressort que le projet appelle des observations et n’est pas au stade d’avancement nécessaire pour déposer une demande d''autorisation d''urbanisme.\nIl sera nécessaire de le représenter soit par l’intermédiaire de la collectivité si une permanence y est assurée par un agent de l’UDAP (voir le contact ci-dessous) soit via : https://www.demarches-simplifiees.fr/commencer/udap');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','Refus SPR','ALL','Suite à nos échanges, il ressort que le projet n''est pas réalisable car il porte atteinte au site patrimonial remarquable. Si une autorisation d''urbanisme était déposée, elle serait refusée. Il convient d’intégrer la réglementation en vigueur à votre projet.\nVous pouvez présenter un nouveau projet soit par l’intermédiaire de la collectivité si une permanence y est assurée par un agent de l’UDAP (voir le contact ci-dessous) soit via : https://www.demarches-simplifiees.fr/commencer/udap');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','Refus abords/site','ALL','Suite à nos échanges, il ressort que le projet n''est pas réalisable car il porte atteinte à l’espace protégé. Si une autorisation d''urbanisme était déposée, elle serait refusée.\nVous pouvez présenter un nouveau projet soit par l’intermédiaire de la collectivité si une permanence y est assurée par un agent de l’UDAP (voir le contact ci-dessous) soit via : https://www.demarches-simplifiees.fr/commencer/udap');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','Architecte','ALL','Suite à nos échanges, il ressort qu''il est fortement conseillé d’avoir recours à un architecte ou un maître d’œuvre car votre projet n’est pas réalisable en l’état. Ce professionnel pourra soumettre un nouveau projet soit par l’intermédiaire de la collectivité si une permanence y est assurée par un agent de l’UDAP (voir le contact ci-dessous) soit via : https://www.demarches-simplifiees.fr/commencer/udap');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','MH oui','ALL','Suite à nos échanges, il ressort qu’à ce stade il convient de solliciter l''autorisation de la conservation régionale des monuments historiques.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('decision','MH à suivre','ALL','Suite à nos échanges, il ressort que le projet appelle des observations et n’est pas au stade d’avancement nécessaire pour déposer une demande d''autorisation auprès de la conservation régionale des monuments historiques. Il sera nécessaire de le représenter soit par l’intermédiaire de la collectivité si une permanence y est assurée par un agent de l’UDAP (voir le contact ci-dessous) soit via : https://www.demarches-simplifiees.fr/commencer/udap');
+
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','Pôle architecture','udap-landes','Vous pouvez contacter le pôle architecture de la Direction régionale des affaires culturelles (DRAC) :\nEmanuelle Maillet, emmanuelle.maillet@culture.gouv.fr.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','CRMH','udap-landes','Veillez à prendre contact avec la Conservation régionale des monuments historiques (CRMH) :\nSeverine Laborie, Conservatrice - severine.laborie@culture.gouv.fr.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','SRA','udap-landes','Veillez à l''éventualité de vestiges archéologiques, vous pouvez contacter le service régional de l’archéologie :\nMathilde Roupsard, Conservatrice - mathilde.roupsard@culture.gouv.fr.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','DREAL','udap-landes','Vous pouvez contacter l''inspecteur des Sites de la Direction régionale de l''environnement, de l''aménagement et du logement (DREAL) car votre projet se situe en site protégé :\nLydie Bayle, Inspectrice des Sites - lydie.bayle@developpement-durable.gouv.fr.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','DT Dax','udap-landes','Votre projet est susceptible d''être accompagné par le délégué territorial (DDTM) :\nJean-François Mozas, arrondissement Dax, jean-francois.mozas@landes.gouv.fr.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','DT MDM','udap-landes','Votre projet est susceptible d''être accompagné par le délégué territorial (DDTM) :\nOlivier Laurin, MDM, olivier.laurin@landes.gouv.fr.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','SAR','udap-landes','Votre projet est susceptible d''être accompagné par le service aménagement et risque (DDTM) :\nJulie Lacanal, DDT Landes, julie.lacanal@landes.gouv.fr.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','CAUE','udap-landes','Vous pouvez être accompagné par le CAUE qui dispense un conseil architectural gratuit et de qualité :\nCAUE des Landes, contact@caue40.com.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','FdP','udap-landes','Vous pouvez contacter la Fondation du patrimoine car votre projet est susceptible de recevoir une aide de leur part :\nJean Mortier, Délégué de la FP, jean.mortier@fondation-patrimoine.org.');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('contacts-utiles','PNR','udap-landes','Vous pouvez contacter le parc naturel dans lequel se situe votre projet :');
+
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','DRAC','ALL','Qu’est-ce qu’une DRAC | Direction régionale des affaires culturelles ?\nIl s’agit d’un service déconcentré du ministère de la Culture mettant en œuvre la politique culturelle du ministère en région. (www.culture.gouv.fr/Regions/DRAC-Nouvelle-Aquitaine/Qui-sommes-nous).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','SPR','ALL','Qu’est-ce qu’un SPR | site patrimonial remarquable ?\nIl s’agit d’un ensemble urbain protégé par un règlement spécifique pour conserver ses qualités urbaines, architecturales et paysagères (www.culture.gouv.fr/Thematiques/Monuments-Sites/Monuments-historiques-sites-patrimoniaux/Les-sites-patrimoniaux-remarquables).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','Site','ALL','Qu’est-ce qu’un site ?\nIl s’agit d’un espace naturel protégé au regard de sa valeur paysagère. Consultez le site de la DREAL pour en savoir plus. (www.nouvelle-aquitaine.developpement-durable.gouv.fr/sites-r1150.html).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','Des travaux','ALL','Vous souhaitez entreprendre des travaux ?\nLa démarche pour obtenir une autorisation de travaux varie selon le contexte de votre projet.\nConsultez ce lien pour identifier la démarche adaptée à votre besoin. (www.culture.gouv.fr/Demarches-en-ligne/Par-thematique/Monuments-Sites/Mes-travaux-en-site-protege).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','Atlas','ALL','Identifier les protections patrimoniales autour de votre bien ?\nUtilisez l’Atlas des patrimoines pour faire apparaître les différents périmètres de protection autour de votre bien. (atlas.patrimoines.culture.fr/).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','ATHEBA','ALL','Améliorer votre bâti ancien ?\nConsultez les fiches ATHEBA précisant les spécificités techniques du bâti ancien afin de favoriser une amélioration thermique durable (www.rehabilitation-bati-ancien.fr).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','CREBA','ALL','Réhabiliter un bâti ancien ?\nConsultez le centre de ressources pour la réhabilitation responsable du bâti ancien (CREBA), à destination des professionnels, pour tout projet de réhabilitation ou de restauration (www.rehabilitation-bati-ancien.fr/).');
+INSERT INTO clause(key,value,udap_id,text) VALUES ('bonnes-pratiques','FranceRénov','ALL','Être accompagné dans un projet de réhabilitation ?\nConsultez France Rénov, service public de la rénovation de l’habitat, qui oriente les demandeurs tout au long de leur projet de rénovation et assure une mission sociale auprès des ménages modestes (france-renov.gouv.fr).');
-ALTER TABLE chip ENABLE ELECTRIC;
\ No newline at end of file
+ALTER TABLE clause ENABLE ELECTRIC;
\ No newline at end of file
diff --git a/packages/backend/src/db/db.ts b/packages/backend/src/db/db.ts
index 20d845cd..4001f7ad 100644
--- a/packages/backend/src/db/db.ts
+++ b/packages/backend/src/db/db.ts
@@ -1,6 +1,6 @@
import { PrismaClient } from "@cr-vif/electric-client/backend";
import { ENV } from "../envVars";
-console.log(ENV);
+
export const db = new PrismaClient({ datasources: { db: { url: ENV.DATABASE_URL } } });
export const cleanUpDb = async () => {
diff --git a/packages/electric-client/src/generated/client/index.ts b/packages/electric-client/src/generated/client/index.ts
index cb4e354b..cde458ca 100644
--- a/packages/electric-client/src/generated/client/index.ts
+++ b/packages/electric-client/src/generated/client/index.ts
@@ -12,9 +12,7 @@ import migrations from './migrations';
// ENUMS
/////////////////////////////////////////
-export const ChipScalarFieldEnumSchema = z.enum(['key','value','udap_id','text']);
-
-export const ClauseScalarFieldEnumSchema = z.enum(['id','label','value']);
+export const ClauseScalarFieldEnumSchema = z.enum(['key','value','udap_id','text']);
export const DelegationScalarFieldEnumSchema = z.enum(['createdBy','delegatedTo']);
@@ -22,8 +20,6 @@ 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']);
-export const Report_to_clauseScalarFieldEnumSchema = z.enum(['id','reportId','clauseId']);
-
export const SortOrderSchema = z.enum(['asc','desc']);
export const TransactionIsolationLevelSchema = z.enum(['ReadUncommitted','ReadCommitted','RepeatableRead','Serializable']);
@@ -36,28 +32,16 @@ export const UserScalarFieldEnumSchema = z.enum(['id','name','udap_id']);
/////////////////////////////////////////
/////////////////////////////////////////
-// CHIP SCHEMA
+// CLAUSE SCHEMA
/////////////////////////////////////////
-export const ChipSchema = z.object({
+export const ClauseSchema = z.object({
key: z.string(),
value: z.string(),
udap_id: z.string(),
text: 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
/////////////////////////////////////////
@@ -99,18 +83,6 @@ export const ReportSchema = z.object({
export type Report = z.infer
-/////////////////////////////////////////
-// REPORT TO CLAUSE SCHEMA
-/////////////////////////////////////////
-
-export const Report_to_clauseSchema = z.object({
- id: z.string(),
- reportId: z.string(),
- clauseId: z.string(),
-})
-
-export type Report_to_clause = z.infer
-
/////////////////////////////////////////
// UDAP SCHEMA
/////////////////////////////////////////
@@ -146,45 +118,16 @@ export type User = z.infer
// SELECT & INCLUDE
/////////////////////////////////////////
-// CHIP
+// CLAUSE
//------------------------------------------------------
-export const ChipSelectSchema: z.ZodType = z.object({
+export const ClauseSelectSchema: z.ZodType = z.object({
key: z.boolean().optional(),
value: z.boolean().optional(),
udap_id: z.boolean().optional(),
text: z.boolean().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()
-
// DELEGATION
//------------------------------------------------------
@@ -210,8 +153,6 @@ export const DelegationSelectSchema: z.ZodType = z.obje
export const ReportIncludeSchema: z.ZodType = z.object({
user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).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({
@@ -219,14 +160,6 @@ export const ReportArgsSchema: z.ZodType = z.object({
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_clause: z.boolean().optional(),
-}).strict();
-
export const ReportSelectSchema: z.ZodType = z.object({
id: z.boolean().optional(),
title: z.boolean().optional(),
@@ -248,29 +181,6 @@ export const ReportSelectSchema: z.ZodType = z.object({
disabled: z.boolean().optional(),
udap_id: z.boolean().optional(),
user: z.union([z.boolean(),z.lazy(() => UserArgsSchema)]).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 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(),
- reportId: z.boolean().optional(),
- clauseId: z.boolean().optional(),
- clause: z.union([z.boolean(),z.lazy(() => ClauseArgsSchema)]).optional(),
- report: z.union([z.boolean(),z.lazy(() => ReportArgsSchema)]).optional(),
}).strict()
// UDAP
@@ -351,72 +261,32 @@ export const UserSelectSchema: z.ZodType = z.object({
// 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(),
+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(),
key: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
value: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
udap_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
text: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
}).strict();
-export const ChipOrderByWithRelationInputSchema: z.ZodType = z.object({
+export const ClauseOrderByWithRelationInputSchema: z.ZodType = z.object({
key: z.lazy(() => SortOrderSchema).optional(),
value: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
text: z.lazy(() => SortOrderSchema).optional()
}).strict();
-export const ChipWhereUniqueInputSchema: z.ZodType = z.object({
- key_value_udap_id: z.lazy(() => ChipKeyValueUdap_idCompoundUniqueInputSchema).optional()
+export const ClauseWhereUniqueInputSchema: z.ZodType = z.object({
+ key_value_udap_id: z.lazy(() => ClauseKeyValueUdap_idCompoundUniqueInputSchema).optional()
}).strict();
-export const ChipOrderByWithAggregationInputSchema: z.ZodType = z.object({
+export const ClauseOrderByWithAggregationInputSchema: z.ZodType = z.object({
key: z.lazy(() => SortOrderSchema).optional(),
value: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
text: 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(),
- key: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- value: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- udap_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- text: 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()
@@ -426,9 +296,10 @@ export const ClauseScalarWhereWithAggregatesInputSchema: z.ZodType 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(),
+ key: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
value: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
+ udap_id: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
+ text: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
}).strict();
export const DelegationWhereInputSchema: z.ZodType = z.object({
@@ -492,7 +363,6 @@ 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(),
user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseListRelationFilterSchema).optional()
}).strict();
export const ReportOrderByWithRelationInputSchema: z.ZodType = z.object({
@@ -515,8 +385,7 @@ export const ReportOrderByWithRelationInputSchema: z.ZodType SortOrderSchema).optional(),
disabled: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
- user: z.lazy(() => UserOrderByWithRelationInputSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseOrderByRelationAggregateInputSchema).optional()
+ user: z.lazy(() => UserOrderByWithRelationInputSchema).optional()
}).strict();
export const ReportWhereUniqueInputSchema: z.ZodType = z.object({
@@ -575,47 +444,6 @@ export const ReportScalarWhereWithAggregatesInputSchema: z.ZodType StringNullableWithAggregatesFilterSchema),z.string() ]).optional().nullable(),
}).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(),
- reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- clauseId: 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(),
- reportId: z.lazy(() => SortOrderSchema).optional(),
- clauseId: 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(),
- reportId: z.lazy(() => SortOrderSchema).optional(),
- clauseId: 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(),
- reportId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
- clauseId: z.union([ z.lazy(() => StringWithAggregatesFilterSchema),z.string() ]).optional(),
-}).strict();
-
export const UdapWhereInputSchema: z.ZodType = z.object({
AND: z.union([ z.lazy(() => UdapWhereInputSchema),z.lazy(() => UdapWhereInputSchema).array() ]).optional(),
OR: z.lazy(() => UdapWhereInputSchema).array().optional(),
@@ -728,101 +556,55 @@ export const UserScalarWhereWithAggregatesInputSchema: z.ZodType StringWithAggregatesFilterSchema),z.string() ]).optional(),
}).strict();
-export const ChipCreateInputSchema: z.ZodType = z.object({
+export const ClauseCreateInputSchema: z.ZodType = z.object({
key: z.string(),
value: z.string(),
udap_id: z.string(),
text: z.string()
}).strict();
-export const ChipUncheckedCreateInputSchema: z.ZodType = z.object({
+export const ClauseUncheckedCreateInputSchema: z.ZodType = z.object({
key: z.string(),
value: z.string(),
udap_id: z.string(),
text: z.string()
}).strict();
-export const ChipUpdateInputSchema: z.ZodType = z.object({
+export const ClauseUpdateInputSchema: z.ZodType = z.object({
key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
udap_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
text: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
}).strict();
-export const ChipUncheckedUpdateInputSchema: z.ZodType = z.object({
+export const ClauseUncheckedUpdateInputSchema: z.ZodType = z.object({
key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
udap_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
text: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
}).strict();
-export const ChipCreateManyInputSchema: z.ZodType = z.object({
+export const ClauseCreateManyInputSchema: z.ZodType = z.object({
key: z.string(),
value: z.string(),
udap_id: z.string(),
text: z.string()
}).strict();
-export const ChipUpdateManyMutationInputSchema: z.ZodType = z.object({
+export const ClauseUpdateManyMutationInputSchema: z.ZodType = z.object({
key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
udap_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
text: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
}).strict();
-export const ChipUncheckedUpdateManyInputSchema: z.ZodType = z.object({
+export const ClauseUncheckedUpdateManyInputSchema: z.ZodType = z.object({
key: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
value: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
udap_id: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
text: 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 DelegationCreateInputSchema: z.ZodType = z.object({
user_delegation_createdByTouser: z.lazy(() => UserCreateNestedOneWithoutDelegation_delegation_createdByTouserInputSchema),
user_delegation_delegatedToTouser: z.lazy(() => UserCreateNestedOneWithoutDelegation_delegation_delegatedToTouserInputSchema)
@@ -875,8 +657,7 @@ export const ReportCreateInputSchema: z.ZodType = z.ob
pdf: z.string().optional().nullable(),
disabled: z.boolean().optional().nullable(),
udap_id: z.string().optional().nullable(),
- user: z.lazy(() => UserCreateNestedOneWithoutReportInputSchema),
- report_to_clause: z.lazy(() => Report_to_clauseCreateNestedManyWithoutReportInputSchema).optional()
+ user: z.lazy(() => UserCreateNestedOneWithoutReportInputSchema)
}).strict();
export const ReportUncheckedCreateInputSchema: z.ZodType = z.object({
@@ -898,8 +679,7 @@ export const ReportUncheckedCreateInputSchema: z.ZodType Report_to_clauseUncheckedCreateNestedManyWithoutReportInputSchema).optional()
+ udap_id: z.string().optional().nullable()
}).strict();
export const ReportUpdateInputSchema: z.ZodType = z.object({
@@ -921,8 +701,7 @@ export const ReportUpdateInputSchema: z.ZodType = z.ob
pdf: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
disabled: z.union([ z.boolean(),z.lazy(() => NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- user: z.lazy(() => UserUpdateOneRequiredWithoutReportNestedInputSchema).optional(),
- report_to_clause: z.lazy(() => Report_to_clauseUpdateManyWithoutReportNestedInputSchema).optional()
+ user: z.lazy(() => UserUpdateOneRequiredWithoutReportNestedInputSchema).optional()
}).strict();
export const ReportUncheckedUpdateInputSchema: z.ZodType = z.object({
@@ -945,7 +724,6 @@ export const ReportUncheckedUpdateInputSchema: z.ZodType NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
disabled: z.union([ z.boolean(),z.lazy(() => NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedUpdateManyWithoutReportNestedInputSchema).optional()
}).strict();
export const ReportCreateManyInputSchema: z.ZodType = z.object({
@@ -1013,46 +791,6 @@ export const ReportUncheckedUpdateManyInputSchema: z.ZodType NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).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(),
- reportId: z.string(),
- clauseId: 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(),
- reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- clauseId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateManyInputSchema: z.ZodType = z.object({
- id: z.string(),
- reportId: z.string(),
- clauseId: 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(),
- reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- clauseId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
export const UdapCreateInputSchema: z.ZodType = z.object({
id: z.string(),
department: z.string(),
@@ -1216,27 +954,27 @@ export const StringFilterSchema: z.ZodType = z.object({
not: z.union([ z.string(),z.lazy(() => NestedStringFilterSchema) ]).optional(),
}).strict();
-export const ChipKeyValueUdap_idCompoundUniqueInputSchema: z.ZodType = z.object({
+export const ClauseKeyValueUdap_idCompoundUniqueInputSchema: z.ZodType = z.object({
key: z.string(),
value: z.string(),
udap_id: z.string()
}).strict();
-export const ChipCountOrderByAggregateInputSchema: z.ZodType = z.object({
+export const ClauseCountOrderByAggregateInputSchema: z.ZodType = z.object({
key: z.lazy(() => SortOrderSchema).optional(),
value: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
text: z.lazy(() => SortOrderSchema).optional()
}).strict();
-export const ChipMaxOrderByAggregateInputSchema: z.ZodType = z.object({
+export const ClauseMaxOrderByAggregateInputSchema: z.ZodType = z.object({
key: z.lazy(() => SortOrderSchema).optional(),
value: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
text: z.lazy(() => SortOrderSchema).optional()
}).strict();
-export const ChipMinOrderByAggregateInputSchema: z.ZodType = z.object({
+export const ClauseMinOrderByAggregateInputSchema: z.ZodType = z.object({
key: z.lazy(() => SortOrderSchema).optional(),
value: z.lazy(() => SortOrderSchema).optional(),
udap_id: z.lazy(() => SortOrderSchema).optional(),
@@ -1261,34 +999,6 @@ export const StringWithAggregatesFilterSchema: z.ZodType 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 UserRelationFilterSchema: z.ZodType = z.object({
is: z.lazy(() => UserWhereInputSchema).optional(),
isNot: z.lazy(() => UserWhereInputSchema).optional()
@@ -1511,34 +1221,6 @@ export const BoolNullableWithAggregatesFilterSchema: z.ZodType NestedBoolNullableFilterSchema).optional()
}).strict();
-export const ClauseRelationFilterSchema: z.ZodType = z.object({
- is: z.lazy(() => ClauseWhereInputSchema).optional(),
- isNot: z.lazy(() => ClauseWhereInputSchema).optional()
-}).strict();
-
-export const ReportRelationFilterSchema: z.ZodType = z.object({
- is: z.lazy(() => ReportWhereInputSchema).optional(),
- isNot: z.lazy(() => ReportWhereInputSchema).optional()
-}).strict();
-
-export const Report_to_clauseCountOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- reportId: z.lazy(() => SortOrderSchema).optional(),
- clauseId: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const Report_to_clauseMaxOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- reportId: z.lazy(() => SortOrderSchema).optional(),
- clauseId: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
-export const Report_to_clauseMinOrderByAggregateInputSchema: z.ZodType = z.object({
- id: z.lazy(() => SortOrderSchema).optional(),
- reportId: z.lazy(() => SortOrderSchema).optional(),
- clauseId: z.lazy(() => SortOrderSchema).optional()
-}).strict();
-
export const UserListRelationFilterSchema: z.ZodType = z.object({
every: z.lazy(() => UserWhereInputSchema).optional(),
some: z.lazy(() => UserWhereInputSchema).optional(),
@@ -1635,48 +1317,6 @@ export const StringFieldUpdateOperationsInputSchema: 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 UserCreateNestedOneWithoutDelegation_delegation_createdByTouserInputSchema: z.ZodType = z.object({
create: z.union([ z.lazy(() => UserCreateWithoutDelegation_delegation_createdByTouserInputSchema),z.lazy(() => UserUncheckedCreateWithoutDelegation_delegation_createdByTouserInputSchema) ]).optional(),
connectOrCreate: z.lazy(() => UserCreateOrConnectWithoutDelegation_delegation_createdByTouserInputSchema).optional(),
@@ -1711,20 +1351,6 @@ export const UserCreateNestedOneWithoutReportInputSchema: z.ZodType UserWhereUniqueInputSchema).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_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();
@@ -1757,62 +1383,6 @@ export const UserUpdateOneRequiredWithoutReportNestedInputSchema: z.ZodType UserUpdateWithoutReportInputSchema),z.lazy(() => UserUncheckedUpdateWithoutReportInputSchema) ]).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_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 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 UserCreateNestedManyWithoutUdapInputSchema: z.ZodType = z.object({
create: z.union([ z.lazy(() => UserCreateWithoutUdapInputSchema),z.lazy(() => UserCreateWithoutUdapInputSchema).array(),z.lazy(() => UserUncheckedCreateWithoutUdapInputSchema),z.lazy(() => UserUncheckedCreateWithoutUdapInputSchema).array() ]).optional(),
connectOrCreate: z.union([ z.lazy(() => UserCreateOrConnectWithoutUdapInputSchema),z.lazy(() => UserCreateOrConnectWithoutUdapInputSchema).array() ]).optional(),
@@ -2169,51 +1739,6 @@ export const NestedBoolNullableWithAggregatesFilterSchema: z.ZodType NestedBoolNullableFilterSchema).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(),
- reportId: 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(),
- reportId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
- clauseId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(),
-}).strict();
-
export const UserCreateWithoutDelegation_delegation_createdByTouserInputSchema: z.ZodType = z.object({
id: z.string(),
name: z.string(),
@@ -2319,26 +1844,6 @@ export const UserCreateOrConnectWithoutReportInputSchema: z.ZodType UserCreateWithoutReportInputSchema),z.lazy(() => UserUncheckedCreateWithoutReportInputSchema) ]),
}).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(),
- clauseId: 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 UserUpsertWithoutReportInputSchema: z.ZodType = z.object({
update: z.union([ z.lazy(() => UserUpdateWithoutReportInputSchema),z.lazy(() => UserUncheckedUpdateWithoutReportInputSchema) ]),
create: z.union([ z.lazy(() => UserCreateWithoutReportInputSchema),z.lazy(() => UserUncheckedCreateWithoutReportInputSchema) ]),
@@ -2360,154 +1865,6 @@ export const UserUncheckedUpdateWithoutReportInputSchema: z.ZodType DelegationUncheckedUpdateManyWithoutUser_delegation_delegatedToTouserNestedInputSchema).optional()
}).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 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(),
- projectDescription: z.string().optional().nullable(),
- redactedBy: z.string().optional().nullable(),
- meetDate: z.coerce.date().optional().nullable(),
- applicantName: z.string().optional().nullable(),
- applicantAddress: z.string().optional().nullable(),
- projectCadastralRef: z.string().optional().nullable(),
- projectSpaceType: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- furtherInformation: z.string().optional().nullable(),
- createdAt: z.coerce.date(),
- serviceInstructeur: z.number().optional().nullable(),
- pdf: z.string().optional().nullable(),
- disabled: z.boolean().optional().nullable(),
- udap_id: z.string().optional().nullable(),
- user: z.lazy(() => UserCreateNestedOneWithoutReportInputSchema)
-}).strict();
-
-export const ReportUncheckedCreateWithoutReport_to_clauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- title: z.string().optional().nullable(),
- projectDescription: z.string().optional().nullable(),
- redactedBy: z.string().optional().nullable(),
- meetDate: z.coerce.date().optional().nullable(),
- applicantName: z.string().optional().nullable(),
- applicantAddress: z.string().optional().nullable(),
- projectCadastralRef: z.string().optional().nullable(),
- projectSpaceType: z.string().optional().nullable(),
- decision: z.string().optional().nullable(),
- precisions: z.string().optional().nullable(),
- contacts: z.string().optional().nullable(),
- furtherInformation: z.string().optional().nullable(),
- createdBy: z.string(),
- createdAt: z.coerce.date(),
- serviceInstructeur: z.number().optional().nullable(),
- pdf: z.string().optional().nullable(),
- disabled: z.boolean().optional().nullable(),
- udap_id: z.string().optional().nullable()
-}).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(),
- projectDescription: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redactedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meetDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicantName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicantAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- projectCadastralRef: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- projectSpaceType: 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(),
- furtherInformation: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- serviceInstructeur: z.union([ z.number(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- pdf: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- disabled: z.union([ z.boolean(),z.lazy(() => NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- user: z.lazy(() => UserUpdateOneRequiredWithoutReportNestedInputSchema).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(),
- projectDescription: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- redactedBy: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- meetDate: z.union([ z.coerce.date(),z.lazy(() => NullableDateTimeFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicantName: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- applicantAddress: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- projectCadastralRef: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- projectSpaceType: 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(),
- furtherInformation: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- createdBy: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
- createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(),
- serviceInstructeur: z.union([ z.number(),z.lazy(() => NullableIntFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- pdf: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- disabled: z.union([ z.boolean(),z.lazy(() => NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
-}).strict();
-
export const UserCreateWithoutUdapInputSchema: z.ZodType = z.object({
id: z.string(),
name: z.string(),
@@ -2613,8 +1970,7 @@ export const ReportCreateWithoutUserInputSchema: z.ZodType Report_to_clauseCreateNestedManyWithoutReportInputSchema).optional()
+ udap_id: z.string().optional().nullable()
}).strict();
export const ReportUncheckedCreateWithoutUserInputSchema: z.ZodType = z.object({
@@ -2635,8 +1991,7 @@ export const ReportUncheckedCreateWithoutUserInputSchema: z.ZodType Report_to_clauseUncheckedCreateNestedManyWithoutReportInputSchema).optional()
+ udap_id: z.string().optional().nullable()
}).strict();
export const ReportCreateOrConnectWithoutUserInputSchema: z.ZodType = z.object({
@@ -2792,41 +2147,6 @@ export const UdapUncheckedUpdateWithoutUserInputSchema: z.ZodType NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
}).strict();
-export const Report_to_clauseCreateManyClauseInputSchema: z.ZodType = z.object({
- id: z.string(),
- reportId: 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(),
- reportId: 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(),
- reportId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
-export const Report_to_clauseCreateManyReportInputSchema: z.ZodType = z.object({
- id: z.string(),
- clauseId: z.string()
-}).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(),
- clauseId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(),
-}).strict();
-
export const UserCreateManyUdapInputSchema: z.ZodType = z.object({
id: z.string(),
name: z.string()
@@ -2925,7 +2245,6 @@ export const ReportUpdateWithoutUserInputSchema: z.ZodType NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
disabled: z.union([ z.boolean(),z.lazy(() => NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_clause: z.lazy(() => Report_to_clauseUpdateManyWithoutReportNestedInputSchema).optional()
}).strict();
export const ReportUncheckedUpdateWithoutUserInputSchema: z.ZodType = z.object({
@@ -2947,7 +2266,6 @@ export const ReportUncheckedUpdateWithoutUserInputSchema: z.ZodType NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
disabled: z.union([ z.boolean(),z.lazy(() => NullableBoolFieldUpdateOperationsInputSchema) ]).optional().nullable(),
udap_id: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),
- report_to_clause: z.lazy(() => Report_to_clauseUncheckedUpdateManyWithoutReportNestedInputSchema).optional()
}).strict();
export const ReportUncheckedUpdateManyWithoutReportInputSchema: z.ZodType = z.object({
@@ -2975,95 +2293,35 @@ export const ReportUncheckedUpdateManyWithoutReportInputSchema: z.ZodType = z.object({
- select: ChipSelectSchema.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()
-
-export const ChipFindFirstOrThrowArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.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()
-
-export const ChipFindManyArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.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()
-
-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()
-
-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()
-
-export const ChipFindUniqueArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- where: ChipWhereUniqueInputSchema,
-}).strict()
-
-export const ChipFindUniqueOrThrowArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- where: ChipWhereUniqueInputSchema,
-}).strict()
-
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
+}).strict()
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
+}).strict()
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
+}).strict()
export const ClauseAggregateArgsSchema: z.ZodType = z.object({
where: ClauseWhereInputSchema.optional(),
@@ -3071,7 +2329,7 @@ export const ClauseAggregateArgsSchema: z.ZodType =
cursor: ClauseWhereUniqueInputSchema.optional(),
take: z.number().optional(),
skip: z.number().optional(),
-}).strict() as z.ZodType
+}).strict()
export const ClauseGroupByArgsSchema: z.ZodType = z.object({
where: ClauseWhereInputSchema.optional(),
@@ -3080,19 +2338,17 @@ export const ClauseGroupByArgsSchema: z.ZodType = z.ob
having: ClauseScalarWhereWithAggregatesInputSchema.optional(),
take: z.number().optional(),
skip: z.number().optional(),
-}).strict() as z.ZodType
+}).strict()
export const ClauseFindUniqueArgsSchema: z.ZodType = z.object({
select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
where: ClauseWhereUniqueInputSchema,
-}).strict() as z.ZodType
+}).strict()
export const ClauseFindUniqueOrThrowArgsSchema: z.ZodType = z.object({
select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
where: ClauseWhereUniqueInputSchema,
-}).strict() as z.ZodType
+}).strict()
export const DelegationFindFirstArgsSchema: z.ZodType = z.object({
select: DelegationSelectSchema.optional(),
@@ -3218,68 +2474,6 @@ export const ReportFindUniqueOrThrowArgsSchema: z.ZodType
-export const Report_to_clauseFindFirstArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- where: Report_to_clauseWhereInputSchema.optional(),
- orderBy: z.union([ Report_to_clauseOrderByWithRelationInputSchema.array(),Report_to_clauseOrderByWithRelationInputSchema ]).optional(),
- cursor: Report_to_clauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: Report_to_clauseScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const Report_to_clauseFindFirstOrThrowArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- where: Report_to_clauseWhereInputSchema.optional(),
- orderBy: z.union([ Report_to_clauseOrderByWithRelationInputSchema.array(),Report_to_clauseOrderByWithRelationInputSchema ]).optional(),
- cursor: Report_to_clauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: Report_to_clauseScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const Report_to_clauseFindManyArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- where: Report_to_clauseWhereInputSchema.optional(),
- orderBy: z.union([ Report_to_clauseOrderByWithRelationInputSchema.array(),Report_to_clauseOrderByWithRelationInputSchema ]).optional(),
- cursor: Report_to_clauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
- distinct: Report_to_clauseScalarFieldEnumSchema.array().optional(),
-}).strict() as z.ZodType
-
-export const Report_to_clauseAggregateArgsSchema: z.ZodType = z.object({
- where: Report_to_clauseWhereInputSchema.optional(),
- orderBy: z.union([ Report_to_clauseOrderByWithRelationInputSchema.array(),Report_to_clauseOrderByWithRelationInputSchema ]).optional(),
- cursor: Report_to_clauseWhereUniqueInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
-}).strict() as z.ZodType
-
-export const Report_to_clauseGroupByArgsSchema: z.ZodType = z.object({
- where: Report_to_clauseWhereInputSchema.optional(),
- orderBy: z.union([ Report_to_clauseOrderByWithAggregationInputSchema.array(),Report_to_clauseOrderByWithAggregationInputSchema ]).optional(),
- by: Report_to_clauseScalarFieldEnumSchema.array(),
- having: Report_to_clauseScalarWhereWithAggregatesInputSchema.optional(),
- take: z.number().optional(),
- skip: z.number().optional(),
-}).strict() as z.ZodType
-
-export const Report_to_clauseFindUniqueArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- where: Report_to_clauseWhereUniqueInputSchema,
-}).strict() as z.ZodType
-
-export const Report_to_clauseFindUniqueOrThrowArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- where: Report_to_clauseWhereUniqueInputSchema,
-}).strict() as z.ZodType
-
export const UdapFindFirstArgsSchema: z.ZodType = z.object({
select: UdapSelectSchema.optional(),
include: UdapIncludeSchema.optional(),
@@ -3404,83 +2598,42 @@ export const UserFindUniqueOrThrowArgsSchema: z.ZodType
-export const ChipCreateArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- data: z.union([ ChipCreateInputSchema,ChipUncheckedCreateInputSchema ]),
-}).strict()
-
-export const ChipUpsertArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- where: ChipWhereUniqueInputSchema,
- create: z.union([ ChipCreateInputSchema,ChipUncheckedCreateInputSchema ]),
- update: z.union([ ChipUpdateInputSchema,ChipUncheckedUpdateInputSchema ]),
-}).strict()
-
-export const ChipCreateManyArgsSchema: z.ZodType = z.object({
- data: ChipCreateManyInputSchema.array(),
- skipDuplicates: z.boolean().optional(),
-}).strict()
-
-export const ChipDeleteArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- where: ChipWhereUniqueInputSchema,
-}).strict()
-
-export const ChipUpdateArgsSchema: z.ZodType = z.object({
- select: ChipSelectSchema.optional(),
- data: z.union([ ChipUpdateInputSchema,ChipUncheckedUpdateInputSchema ]),
- where: ChipWhereUniqueInputSchema,
-}).strict()
-
-export const ChipUpdateManyArgsSchema: z.ZodType = z.object({
- data: z.union([ ChipUpdateManyMutationInputSchema,ChipUncheckedUpdateManyInputSchema ]),
- where: ChipWhereInputSchema.optional(),
-}).strict()
-
-export const ChipDeleteManyArgsSchema: z.ZodType = z.object({
- where: ChipWhereInputSchema.optional(),
-}).strict()
-
export const ClauseCreateArgsSchema: z.ZodType = z.object({
select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
data: z.union([ ClauseCreateInputSchema,ClauseUncheckedCreateInputSchema ]),
-}).strict() as z.ZodType
+}).strict()
export const ClauseUpsertArgsSchema: z.ZodType = z.object({
select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
where: ClauseWhereUniqueInputSchema,
create: z.union([ ClauseCreateInputSchema,ClauseUncheckedCreateInputSchema ]),
update: z.union([ ClauseUpdateInputSchema,ClauseUncheckedUpdateInputSchema ]),
-}).strict() as z.ZodType
+}).strict()
export const ClauseCreateManyArgsSchema: z.ZodType = z.object({
data: ClauseCreateManyInputSchema.array(),
skipDuplicates: z.boolean().optional(),
-}).strict() as z.ZodType
+}).strict()
export const ClauseDeleteArgsSchema: z.ZodType = z.object({
select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
where: ClauseWhereUniqueInputSchema,
-}).strict() as z.ZodType
+}).strict()
export const ClauseUpdateArgsSchema: z.ZodType = z.object({
select: ClauseSelectSchema.optional(),
- include: ClauseIncludeSchema.optional(),
data: z.union([ ClauseUpdateInputSchema,ClauseUncheckedUpdateInputSchema ]),
where: ClauseWhereUniqueInputSchema,
-}).strict() as z.ZodType
+}).strict()
export const ClauseUpdateManyArgsSchema: z.ZodType = z.object({
data: z.union([ ClauseUpdateManyMutationInputSchema,ClauseUncheckedUpdateManyInputSchema ]),
where: ClauseWhereInputSchema.optional(),
-}).strict() as z.ZodType
+}).strict()
export const ClauseDeleteManyArgsSchema: z.ZodType = z.object({
where: ClauseWhereInputSchema.optional(),
-}).strict() as z.ZodType
+}).strict()
export const DelegationCreateArgsSchema: z.ZodType = z.object({
select: DelegationSelectSchema.optional(),
@@ -3564,47 +2717,6 @@ export const ReportDeleteManyArgsSchema: z.ZodType
where: ReportWhereInputSchema.optional(),
}).strict() as z.ZodType
-export const Report_to_clauseCreateArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- data: z.union([ Report_to_clauseCreateInputSchema,Report_to_clauseUncheckedCreateInputSchema ]),
-}).strict() as z.ZodType
-
-export const Report_to_clauseUpsertArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- where: Report_to_clauseWhereUniqueInputSchema,
- create: z.union([ Report_to_clauseCreateInputSchema,Report_to_clauseUncheckedCreateInputSchema ]),
- update: z.union([ Report_to_clauseUpdateInputSchema,Report_to_clauseUncheckedUpdateInputSchema ]),
-}).strict() as z.ZodType
-
-export const Report_to_clauseCreateManyArgsSchema: z.ZodType = z.object({
- data: Report_to_clauseCreateManyInputSchema.array(),
- skipDuplicates: z.boolean().optional(),
-}).strict() as z.ZodType
-
-export const Report_to_clauseDeleteArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- where: Report_to_clauseWhereUniqueInputSchema,
-}).strict() as z.ZodType
-
-export const Report_to_clauseUpdateArgsSchema: z.ZodType = z.object({
- select: Report_to_clauseSelectSchema.optional(),
- include: Report_to_clauseIncludeSchema.optional(),
- data: z.union([ Report_to_clauseUpdateInputSchema,Report_to_clauseUncheckedUpdateInputSchema ]),
- where: Report_to_clauseWhereUniqueInputSchema,
-}).strict() as z.ZodType