index.d.ts 882 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947
  1. /**
  2. * Client
  3. **/
  4. import * as runtime from './runtime/library.js';
  5. import $Types = runtime.Types // general types
  6. import $Public = runtime.Types.Public
  7. import $Utils = runtime.Types.Utils
  8. import $Extensions = runtime.Types.Extensions
  9. import $Result = runtime.Types.Result
  10. export type PrismaPromise<T> = $Public.PrismaPromise<T>
  11. /**
  12. * Model Workspace
  13. *
  14. */
  15. export type Workspace = $Result.DefaultSelection<Prisma.$WorkspacePayload>
  16. /**
  17. * Model ManualRelanceLog
  18. *
  19. */
  20. export type ManualRelanceLog = $Result.DefaultSelection<Prisma.$ManualRelanceLogPayload>
  21. /**
  22. * Model Contributor
  23. *
  24. */
  25. export type Contributor = $Result.DefaultSelection<Prisma.$ContributorPayload>
  26. /**
  27. * Model Idea
  28. *
  29. */
  30. export type Idea = $Result.DefaultSelection<Prisma.$IdeaPayload>
  31. /**
  32. * Model Post
  33. *
  34. */
  35. export type Post = $Result.DefaultSelection<Prisma.$PostPayload>
  36. /**
  37. * Model Account
  38. *
  39. */
  40. export type Account = $Result.DefaultSelection<Prisma.$AccountPayload>
  41. /**
  42. * Model Session
  43. *
  44. */
  45. export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
  46. /**
  47. * Model User
  48. *
  49. */
  50. export type User = $Result.DefaultSelection<Prisma.$UserPayload>
  51. /**
  52. * Model VerificationToken
  53. *
  54. */
  55. export type VerificationToken = $Result.DefaultSelection<Prisma.$VerificationTokenPayload>
  56. /**
  57. * Model IdeaAttachment
  58. *
  59. */
  60. export type IdeaAttachment = $Result.DefaultSelection<Prisma.$IdeaAttachmentPayload>
  61. /**
  62. * Model QualificationQuestion
  63. *
  64. */
  65. export type QualificationQuestion = $Result.DefaultSelection<Prisma.$QualificationQuestionPayload>
  66. /**
  67. * Model LibraryCase
  68. *
  69. */
  70. export type LibraryCase = $Result.DefaultSelection<Prisma.$LibraryCasePayload>
  71. /**
  72. * Model ShareLink
  73. *
  74. */
  75. export type ShareLink = $Result.DefaultSelection<Prisma.$ShareLinkPayload>
  76. /**
  77. * Enums
  78. */
  79. export namespace $Enums {
  80. export const WorkspaceTier: {
  81. FREE: 'FREE',
  82. PRO: 'PRO'
  83. };
  84. export type WorkspaceTier = (typeof WorkspaceTier)[keyof typeof WorkspaceTier]
  85. export const ContributorStatus: {
  86. INVITED: 'INVITED',
  87. SUBMITTED: 'SUBMITTED',
  88. NOT_SUBMITTED: 'NOT_SUBMITTED'
  89. };
  90. export type ContributorStatus = (typeof ContributorStatus)[keyof typeof ContributorStatus]
  91. export const IdeaStatus: {
  92. SUBMITTED: 'SUBMITTED',
  93. IN_REVIEW: 'IN_REVIEW',
  94. ON_AGENDA: 'ON_AGENDA',
  95. IN_PROGRESS: 'IN_PROGRESS',
  96. NOT_PRIORITY: 'NOT_PRIORITY'
  97. };
  98. export type IdeaStatus = (typeof IdeaStatus)[keyof typeof IdeaStatus]
  99. export const ImpactLevel: {
  100. FAIBLE: 'FAIBLE',
  101. MODERE: 'MODERE',
  102. ELEVE: 'ELEVE',
  103. CRITIQUE: 'CRITIQUE'
  104. };
  105. export type ImpactLevel = (typeof ImpactLevel)[keyof typeof ImpactLevel]
  106. export const Frequency: {
  107. QUOTIDIENNE: 'QUOTIDIENNE',
  108. HEBDOMADAIRE: 'HEBDOMADAIRE',
  109. MENSUELLE: 'MENSUELLE',
  110. TRIMESTRIELLE: 'TRIMESTRIELLE',
  111. PONCTUELLE: 'PONCTUELLE'
  112. };
  113. export type Frequency = (typeof Frequency)[keyof typeof Frequency]
  114. }
  115. export type WorkspaceTier = $Enums.WorkspaceTier
  116. export const WorkspaceTier: typeof $Enums.WorkspaceTier
  117. export type ContributorStatus = $Enums.ContributorStatus
  118. export const ContributorStatus: typeof $Enums.ContributorStatus
  119. export type IdeaStatus = $Enums.IdeaStatus
  120. export const IdeaStatus: typeof $Enums.IdeaStatus
  121. export type ImpactLevel = $Enums.ImpactLevel
  122. export const ImpactLevel: typeof $Enums.ImpactLevel
  123. export type Frequency = $Enums.Frequency
  124. export const Frequency: typeof $Enums.Frequency
  125. /**
  126. * ## Prisma Client ʲˢ
  127. *
  128. * Type-safe database client for TypeScript & Node.js
  129. * @example
  130. * ```
  131. * const prisma = new PrismaClient()
  132. * // Fetch zero or more Workspaces
  133. * const workspaces = await prisma.workspace.findMany()
  134. * ```
  135. *
  136. *
  137. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
  138. */
  139. export class PrismaClient<
  140. ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
  141. const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
  142. ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
  143. > {
  144. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
  145. /**
  146. * ## Prisma Client ʲˢ
  147. *
  148. * Type-safe database client for TypeScript & Node.js
  149. * @example
  150. * ```
  151. * const prisma = new PrismaClient()
  152. * // Fetch zero or more Workspaces
  153. * const workspaces = await prisma.workspace.findMany()
  154. * ```
  155. *
  156. *
  157. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
  158. */
  159. constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
  160. $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
  161. /**
  162. * Connect with the database
  163. */
  164. $connect(): $Utils.JsPromise<void>;
  165. /**
  166. * Disconnect from the database
  167. */
  168. $disconnect(): $Utils.JsPromise<void>;
  169. /**
  170. * Executes a prepared raw query and returns the number of affected rows.
  171. * @example
  172. * ```
  173. * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
  174. * ```
  175. *
  176. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  177. */
  178. $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
  179. /**
  180. * Executes a raw query and returns the number of affected rows.
  181. * Susceptible to SQL injections, see documentation.
  182. * @example
  183. * ```
  184. * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
  185. * ```
  186. *
  187. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  188. */
  189. $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
  190. /**
  191. * Performs a prepared raw query and returns the `SELECT` data.
  192. * @example
  193. * ```
  194. * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
  195. * ```
  196. *
  197. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  198. */
  199. $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
  200. /**
  201. * Performs a raw query and returns the `SELECT` data.
  202. * Susceptible to SQL injections, see documentation.
  203. * @example
  204. * ```
  205. * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
  206. * ```
  207. *
  208. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  209. */
  210. $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
  211. /**
  212. * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
  213. * @example
  214. * ```
  215. * const [george, bob, alice] = await prisma.$transaction([
  216. * prisma.user.create({ data: { name: 'George' } }),
  217. * prisma.user.create({ data: { name: 'Bob' } }),
  218. * prisma.user.create({ data: { name: 'Alice' } }),
  219. * ])
  220. * ```
  221. *
  222. * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
  223. */
  224. $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
  225. $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
  226. $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
  227. extArgs: ExtArgs
  228. }>>
  229. /**
  230. * `prisma.workspace`: Exposes CRUD operations for the **Workspace** model.
  231. * Example usage:
  232. * ```ts
  233. * // Fetch zero or more Workspaces
  234. * const workspaces = await prisma.workspace.findMany()
  235. * ```
  236. */
  237. get workspace(): Prisma.WorkspaceDelegate<ExtArgs, ClientOptions>;
  238. /**
  239. * `prisma.manualRelanceLog`: Exposes CRUD operations for the **ManualRelanceLog** model.
  240. * Example usage:
  241. * ```ts
  242. * // Fetch zero or more ManualRelanceLogs
  243. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany()
  244. * ```
  245. */
  246. get manualRelanceLog(): Prisma.ManualRelanceLogDelegate<ExtArgs, ClientOptions>;
  247. /**
  248. * `prisma.contributor`: Exposes CRUD operations for the **Contributor** model.
  249. * Example usage:
  250. * ```ts
  251. * // Fetch zero or more Contributors
  252. * const contributors = await prisma.contributor.findMany()
  253. * ```
  254. */
  255. get contributor(): Prisma.ContributorDelegate<ExtArgs, ClientOptions>;
  256. /**
  257. * `prisma.idea`: Exposes CRUD operations for the **Idea** model.
  258. * Example usage:
  259. * ```ts
  260. * // Fetch zero or more Ideas
  261. * const ideas = await prisma.idea.findMany()
  262. * ```
  263. */
  264. get idea(): Prisma.IdeaDelegate<ExtArgs, ClientOptions>;
  265. /**
  266. * `prisma.post`: Exposes CRUD operations for the **Post** model.
  267. * Example usage:
  268. * ```ts
  269. * // Fetch zero or more Posts
  270. * const posts = await prisma.post.findMany()
  271. * ```
  272. */
  273. get post(): Prisma.PostDelegate<ExtArgs, ClientOptions>;
  274. /**
  275. * `prisma.account`: Exposes CRUD operations for the **Account** model.
  276. * Example usage:
  277. * ```ts
  278. * // Fetch zero or more Accounts
  279. * const accounts = await prisma.account.findMany()
  280. * ```
  281. */
  282. get account(): Prisma.AccountDelegate<ExtArgs, ClientOptions>;
  283. /**
  284. * `prisma.session`: Exposes CRUD operations for the **Session** model.
  285. * Example usage:
  286. * ```ts
  287. * // Fetch zero or more Sessions
  288. * const sessions = await prisma.session.findMany()
  289. * ```
  290. */
  291. get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
  292. /**
  293. * `prisma.user`: Exposes CRUD operations for the **User** model.
  294. * Example usage:
  295. * ```ts
  296. * // Fetch zero or more Users
  297. * const users = await prisma.user.findMany()
  298. * ```
  299. */
  300. get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
  301. /**
  302. * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model.
  303. * Example usage:
  304. * ```ts
  305. * // Fetch zero or more VerificationTokens
  306. * const verificationTokens = await prisma.verificationToken.findMany()
  307. * ```
  308. */
  309. get verificationToken(): Prisma.VerificationTokenDelegate<ExtArgs, ClientOptions>;
  310. /**
  311. * `prisma.ideaAttachment`: Exposes CRUD operations for the **IdeaAttachment** model.
  312. * Example usage:
  313. * ```ts
  314. * // Fetch zero or more IdeaAttachments
  315. * const ideaAttachments = await prisma.ideaAttachment.findMany()
  316. * ```
  317. */
  318. get ideaAttachment(): Prisma.IdeaAttachmentDelegate<ExtArgs, ClientOptions>;
  319. /**
  320. * `prisma.qualificationQuestion`: Exposes CRUD operations for the **QualificationQuestion** model.
  321. * Example usage:
  322. * ```ts
  323. * // Fetch zero or more QualificationQuestions
  324. * const qualificationQuestions = await prisma.qualificationQuestion.findMany()
  325. * ```
  326. */
  327. get qualificationQuestion(): Prisma.QualificationQuestionDelegate<ExtArgs, ClientOptions>;
  328. /**
  329. * `prisma.libraryCase`: Exposes CRUD operations for the **LibraryCase** model.
  330. * Example usage:
  331. * ```ts
  332. * // Fetch zero or more LibraryCases
  333. * const libraryCases = await prisma.libraryCase.findMany()
  334. * ```
  335. */
  336. get libraryCase(): Prisma.LibraryCaseDelegate<ExtArgs, ClientOptions>;
  337. /**
  338. * `prisma.shareLink`: Exposes CRUD operations for the **ShareLink** model.
  339. * Example usage:
  340. * ```ts
  341. * // Fetch zero or more ShareLinks
  342. * const shareLinks = await prisma.shareLink.findMany()
  343. * ```
  344. */
  345. get shareLink(): Prisma.ShareLinkDelegate<ExtArgs, ClientOptions>;
  346. }
  347. export namespace Prisma {
  348. export import DMMF = runtime.DMMF
  349. export type PrismaPromise<T> = $Public.PrismaPromise<T>
  350. /**
  351. * Validator
  352. */
  353. export import validator = runtime.Public.validator
  354. /**
  355. * Prisma Errors
  356. */
  357. export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
  358. export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
  359. export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
  360. export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
  361. export import PrismaClientValidationError = runtime.PrismaClientValidationError
  362. /**
  363. * Re-export of sql-template-tag
  364. */
  365. export import sql = runtime.sqltag
  366. export import empty = runtime.empty
  367. export import join = runtime.join
  368. export import raw = runtime.raw
  369. export import Sql = runtime.Sql
  370. /**
  371. * Decimal.js
  372. */
  373. export import Decimal = runtime.Decimal
  374. export type DecimalJsLike = runtime.DecimalJsLike
  375. /**
  376. * Metrics
  377. */
  378. export type Metrics = runtime.Metrics
  379. export type Metric<T> = runtime.Metric<T>
  380. export type MetricHistogram = runtime.MetricHistogram
  381. export type MetricHistogramBucket = runtime.MetricHistogramBucket
  382. /**
  383. * Extensions
  384. */
  385. export import Extension = $Extensions.UserArgs
  386. export import getExtensionContext = runtime.Extensions.getExtensionContext
  387. export import Args = $Public.Args
  388. export import Payload = $Public.Payload
  389. export import Result = $Public.Result
  390. export import Exact = $Public.Exact
  391. /**
  392. * Prisma Client JS version: 6.19.2
  393. * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
  394. */
  395. export type PrismaVersion = {
  396. client: string
  397. }
  398. export const prismaVersion: PrismaVersion
  399. /**
  400. * Utility Types
  401. */
  402. export import Bytes = runtime.Bytes
  403. export import JsonObject = runtime.JsonObject
  404. export import JsonArray = runtime.JsonArray
  405. export import JsonValue = runtime.JsonValue
  406. export import InputJsonObject = runtime.InputJsonObject
  407. export import InputJsonArray = runtime.InputJsonArray
  408. export import InputJsonValue = runtime.InputJsonValue
  409. /**
  410. * Types of the values used to represent different kinds of `null` values when working with JSON fields.
  411. *
  412. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  413. */
  414. namespace NullTypes {
  415. /**
  416. * Type of `Prisma.DbNull`.
  417. *
  418. * You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
  419. *
  420. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  421. */
  422. class DbNull {
  423. private DbNull: never
  424. private constructor()
  425. }
  426. /**
  427. * Type of `Prisma.JsonNull`.
  428. *
  429. * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
  430. *
  431. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  432. */
  433. class JsonNull {
  434. private JsonNull: never
  435. private constructor()
  436. }
  437. /**
  438. * Type of `Prisma.AnyNull`.
  439. *
  440. * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
  441. *
  442. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  443. */
  444. class AnyNull {
  445. private AnyNull: never
  446. private constructor()
  447. }
  448. }
  449. /**
  450. * Helper for filtering JSON entries that have `null` on the database (empty on the db)
  451. *
  452. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  453. */
  454. export const DbNull: NullTypes.DbNull
  455. /**
  456. * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
  457. *
  458. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  459. */
  460. export const JsonNull: NullTypes.JsonNull
  461. /**
  462. * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
  463. *
  464. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  465. */
  466. export const AnyNull: NullTypes.AnyNull
  467. type SelectAndInclude = {
  468. select: any
  469. include: any
  470. }
  471. type SelectAndOmit = {
  472. select: any
  473. omit: any
  474. }
  475. /**
  476. * Get the type of the value, that the Promise holds.
  477. */
  478. export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
  479. /**
  480. * Get the return type of a function which returns a Promise.
  481. */
  482. export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
  483. /**
  484. * From T, pick a set of properties whose keys are in the union K
  485. */
  486. type Prisma__Pick<T, K extends keyof T> = {
  487. [P in K]: T[P];
  488. };
  489. export type Enumerable<T> = T | Array<T>;
  490. export type RequiredKeys<T> = {
  491. [K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
  492. }[keyof T]
  493. export type TruthyKeys<T> = keyof {
  494. [K in keyof T as T[K] extends false | undefined | null ? never : K]: K
  495. }
  496. export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
  497. /**
  498. * Subset
  499. * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
  500. */
  501. export type Subset<T, U> = {
  502. [key in keyof T]: key extends keyof U ? T[key] : never;
  503. };
  504. /**
  505. * SelectSubset
  506. * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
  507. * Additionally, it validates, if both select and include are present. If the case, it errors.
  508. */
  509. export type SelectSubset<T, U> = {
  510. [key in keyof T]: key extends keyof U ? T[key] : never
  511. } &
  512. (T extends SelectAndInclude
  513. ? 'Please either choose `select` or `include`.'
  514. : T extends SelectAndOmit
  515. ? 'Please either choose `select` or `omit`.'
  516. : {})
  517. /**
  518. * Subset + Intersection
  519. * @desc From `T` pick properties that exist in `U` and intersect `K`
  520. */
  521. export type SubsetIntersection<T, U, K> = {
  522. [key in keyof T]: key extends keyof U ? T[key] : never
  523. } &
  524. K
  525. type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
  526. /**
  527. * XOR is needed to have a real mutually exclusive union type
  528. * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
  529. */
  530. type XOR<T, U> =
  531. T extends object ?
  532. U extends object ?
  533. (Without<T, U> & U) | (Without<U, T> & T)
  534. : U : T
  535. /**
  536. * Is T a Record?
  537. */
  538. type IsObject<T extends any> = T extends Array<any>
  539. ? False
  540. : T extends Date
  541. ? False
  542. : T extends Uint8Array
  543. ? False
  544. : T extends BigInt
  545. ? False
  546. : T extends object
  547. ? True
  548. : False
  549. /**
  550. * If it's T[], return T
  551. */
  552. export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
  553. /**
  554. * From ts-toolbelt
  555. */
  556. type __Either<O extends object, K extends Key> = Omit<O, K> &
  557. {
  558. // Merge all but K
  559. [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
  560. }[K]
  561. type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
  562. type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
  563. type _Either<
  564. O extends object,
  565. K extends Key,
  566. strict extends Boolean
  567. > = {
  568. 1: EitherStrict<O, K>
  569. 0: EitherLoose<O, K>
  570. }[strict]
  571. type Either<
  572. O extends object,
  573. K extends Key,
  574. strict extends Boolean = 1
  575. > = O extends unknown ? _Either<O, K, strict> : never
  576. export type Union = any
  577. type PatchUndefined<O extends object, O1 extends object> = {
  578. [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
  579. } & {}
  580. /** Helper Types for "Merge" **/
  581. export type IntersectOf<U extends Union> = (
  582. U extends unknown ? (k: U) => void : never
  583. ) extends (k: infer I) => void
  584. ? I
  585. : never
  586. export type Overwrite<O extends object, O1 extends object> = {
  587. [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
  588. } & {};
  589. type _Merge<U extends object> = IntersectOf<Overwrite<U, {
  590. [K in keyof U]-?: At<U, K>;
  591. }>>;
  592. type Key = string | number | symbol;
  593. type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
  594. type AtStrict<O extends object, K extends Key> = O[K & keyof O];
  595. type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
  596. export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
  597. 1: AtStrict<O, K>;
  598. 0: AtLoose<O, K>;
  599. }[strict];
  600. export type ComputeRaw<A extends any> = A extends Function ? A : {
  601. [K in keyof A]: A[K];
  602. } & {};
  603. export type OptionalFlat<O> = {
  604. [K in keyof O]?: O[K];
  605. } & {};
  606. type _Record<K extends keyof any, T> = {
  607. [P in K]: T;
  608. };
  609. // cause typescript not to expand types and preserve names
  610. type NoExpand<T> = T extends unknown ? T : never;
  611. // this type assumes the passed object is entirely optional
  612. type AtLeast<O extends object, K extends string> = NoExpand<
  613. O extends unknown
  614. ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
  615. | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
  616. : never>;
  617. type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
  618. export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
  619. /** End Helper Types for "Merge" **/
  620. export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
  621. /**
  622. A [[Boolean]]
  623. */
  624. export type Boolean = True | False
  625. // /**
  626. // 1
  627. // */
  628. export type True = 1
  629. /**
  630. 0
  631. */
  632. export type False = 0
  633. export type Not<B extends Boolean> = {
  634. 0: 1
  635. 1: 0
  636. }[B]
  637. export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
  638. ? 0 // anything `never` is false
  639. : A1 extends A2
  640. ? 1
  641. : 0
  642. export type Has<U extends Union, U1 extends Union> = Not<
  643. Extends<Exclude<U1, U>, U1>
  644. >
  645. export type Or<B1 extends Boolean, B2 extends Boolean> = {
  646. 0: {
  647. 0: 0
  648. 1: 1
  649. }
  650. 1: {
  651. 0: 1
  652. 1: 1
  653. }
  654. }[B1][B2]
  655. export type Keys<U extends Union> = U extends unknown ? keyof U : never
  656. type Cast<A, B> = A extends B ? A : B;
  657. export const type: unique symbol;
  658. /**
  659. * Used by group by
  660. */
  661. export type GetScalarType<T, O> = O extends object ? {
  662. [P in keyof T]: P extends keyof O
  663. ? O[P]
  664. : never
  665. } : never
  666. type FieldPaths<
  667. T,
  668. U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
  669. > = IsObject<T> extends True ? U : T
  670. type GetHavingFields<T> = {
  671. [K in keyof T]: Or<
  672. Or<Extends<'OR', K>, Extends<'AND', K>>,
  673. Extends<'NOT', K>
  674. > extends True
  675. ? // infer is only needed to not hit TS limit
  676. // based on the brilliant idea of Pierre-Antoine Mills
  677. // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
  678. T[K] extends infer TK
  679. ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
  680. : never
  681. : {} extends FieldPaths<T[K]>
  682. ? never
  683. : K
  684. }[keyof T]
  685. /**
  686. * Convert tuple to union
  687. */
  688. type _TupleToUnion<T> = T extends (infer E)[] ? E : never
  689. type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
  690. type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
  691. /**
  692. * Like `Pick`, but additionally can also accept an array of keys
  693. */
  694. type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
  695. /**
  696. * Exclude all keys with underscores
  697. */
  698. type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
  699. export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
  700. type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
  701. export const ModelName: {
  702. Workspace: 'Workspace',
  703. ManualRelanceLog: 'ManualRelanceLog',
  704. Contributor: 'Contributor',
  705. Idea: 'Idea',
  706. Post: 'Post',
  707. Account: 'Account',
  708. Session: 'Session',
  709. User: 'User',
  710. VerificationToken: 'VerificationToken',
  711. IdeaAttachment: 'IdeaAttachment',
  712. QualificationQuestion: 'QualificationQuestion',
  713. LibraryCase: 'LibraryCase',
  714. ShareLink: 'ShareLink'
  715. };
  716. export type ModelName = (typeof ModelName)[keyof typeof ModelName]
  717. export type Datasources = {
  718. db?: Datasource
  719. }
  720. interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
  721. returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
  722. }
  723. export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
  724. globalOmitOptions: {
  725. omit: GlobalOmitOptions
  726. }
  727. meta: {
  728. modelProps: "workspace" | "manualRelanceLog" | "contributor" | "idea" | "post" | "account" | "session" | "user" | "verificationToken" | "ideaAttachment" | "qualificationQuestion" | "libraryCase" | "shareLink"
  729. txIsolationLevel: Prisma.TransactionIsolationLevel
  730. }
  731. model: {
  732. Workspace: {
  733. payload: Prisma.$WorkspacePayload<ExtArgs>
  734. fields: Prisma.WorkspaceFieldRefs
  735. operations: {
  736. findUnique: {
  737. args: Prisma.WorkspaceFindUniqueArgs<ExtArgs>
  738. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload> | null
  739. }
  740. findUniqueOrThrow: {
  741. args: Prisma.WorkspaceFindUniqueOrThrowArgs<ExtArgs>
  742. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  743. }
  744. findFirst: {
  745. args: Prisma.WorkspaceFindFirstArgs<ExtArgs>
  746. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload> | null
  747. }
  748. findFirstOrThrow: {
  749. args: Prisma.WorkspaceFindFirstOrThrowArgs<ExtArgs>
  750. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  751. }
  752. findMany: {
  753. args: Prisma.WorkspaceFindManyArgs<ExtArgs>
  754. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  755. }
  756. create: {
  757. args: Prisma.WorkspaceCreateArgs<ExtArgs>
  758. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  759. }
  760. createMany: {
  761. args: Prisma.WorkspaceCreateManyArgs<ExtArgs>
  762. result: BatchPayload
  763. }
  764. createManyAndReturn: {
  765. args: Prisma.WorkspaceCreateManyAndReturnArgs<ExtArgs>
  766. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  767. }
  768. delete: {
  769. args: Prisma.WorkspaceDeleteArgs<ExtArgs>
  770. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  771. }
  772. update: {
  773. args: Prisma.WorkspaceUpdateArgs<ExtArgs>
  774. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  775. }
  776. deleteMany: {
  777. args: Prisma.WorkspaceDeleteManyArgs<ExtArgs>
  778. result: BatchPayload
  779. }
  780. updateMany: {
  781. args: Prisma.WorkspaceUpdateManyArgs<ExtArgs>
  782. result: BatchPayload
  783. }
  784. updateManyAndReturn: {
  785. args: Prisma.WorkspaceUpdateManyAndReturnArgs<ExtArgs>
  786. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  787. }
  788. upsert: {
  789. args: Prisma.WorkspaceUpsertArgs<ExtArgs>
  790. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  791. }
  792. aggregate: {
  793. args: Prisma.WorkspaceAggregateArgs<ExtArgs>
  794. result: $Utils.Optional<AggregateWorkspace>
  795. }
  796. groupBy: {
  797. args: Prisma.WorkspaceGroupByArgs<ExtArgs>
  798. result: $Utils.Optional<WorkspaceGroupByOutputType>[]
  799. }
  800. count: {
  801. args: Prisma.WorkspaceCountArgs<ExtArgs>
  802. result: $Utils.Optional<WorkspaceCountAggregateOutputType> | number
  803. }
  804. }
  805. }
  806. ManualRelanceLog: {
  807. payload: Prisma.$ManualRelanceLogPayload<ExtArgs>
  808. fields: Prisma.ManualRelanceLogFieldRefs
  809. operations: {
  810. findUnique: {
  811. args: Prisma.ManualRelanceLogFindUniqueArgs<ExtArgs>
  812. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload> | null
  813. }
  814. findUniqueOrThrow: {
  815. args: Prisma.ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs>
  816. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  817. }
  818. findFirst: {
  819. args: Prisma.ManualRelanceLogFindFirstArgs<ExtArgs>
  820. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload> | null
  821. }
  822. findFirstOrThrow: {
  823. args: Prisma.ManualRelanceLogFindFirstOrThrowArgs<ExtArgs>
  824. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  825. }
  826. findMany: {
  827. args: Prisma.ManualRelanceLogFindManyArgs<ExtArgs>
  828. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  829. }
  830. create: {
  831. args: Prisma.ManualRelanceLogCreateArgs<ExtArgs>
  832. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  833. }
  834. createMany: {
  835. args: Prisma.ManualRelanceLogCreateManyArgs<ExtArgs>
  836. result: BatchPayload
  837. }
  838. createManyAndReturn: {
  839. args: Prisma.ManualRelanceLogCreateManyAndReturnArgs<ExtArgs>
  840. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  841. }
  842. delete: {
  843. args: Prisma.ManualRelanceLogDeleteArgs<ExtArgs>
  844. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  845. }
  846. update: {
  847. args: Prisma.ManualRelanceLogUpdateArgs<ExtArgs>
  848. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  849. }
  850. deleteMany: {
  851. args: Prisma.ManualRelanceLogDeleteManyArgs<ExtArgs>
  852. result: BatchPayload
  853. }
  854. updateMany: {
  855. args: Prisma.ManualRelanceLogUpdateManyArgs<ExtArgs>
  856. result: BatchPayload
  857. }
  858. updateManyAndReturn: {
  859. args: Prisma.ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs>
  860. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  861. }
  862. upsert: {
  863. args: Prisma.ManualRelanceLogUpsertArgs<ExtArgs>
  864. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  865. }
  866. aggregate: {
  867. args: Prisma.ManualRelanceLogAggregateArgs<ExtArgs>
  868. result: $Utils.Optional<AggregateManualRelanceLog>
  869. }
  870. groupBy: {
  871. args: Prisma.ManualRelanceLogGroupByArgs<ExtArgs>
  872. result: $Utils.Optional<ManualRelanceLogGroupByOutputType>[]
  873. }
  874. count: {
  875. args: Prisma.ManualRelanceLogCountArgs<ExtArgs>
  876. result: $Utils.Optional<ManualRelanceLogCountAggregateOutputType> | number
  877. }
  878. }
  879. }
  880. Contributor: {
  881. payload: Prisma.$ContributorPayload<ExtArgs>
  882. fields: Prisma.ContributorFieldRefs
  883. operations: {
  884. findUnique: {
  885. args: Prisma.ContributorFindUniqueArgs<ExtArgs>
  886. result: $Utils.PayloadToResult<Prisma.$ContributorPayload> | null
  887. }
  888. findUniqueOrThrow: {
  889. args: Prisma.ContributorFindUniqueOrThrowArgs<ExtArgs>
  890. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  891. }
  892. findFirst: {
  893. args: Prisma.ContributorFindFirstArgs<ExtArgs>
  894. result: $Utils.PayloadToResult<Prisma.$ContributorPayload> | null
  895. }
  896. findFirstOrThrow: {
  897. args: Prisma.ContributorFindFirstOrThrowArgs<ExtArgs>
  898. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  899. }
  900. findMany: {
  901. args: Prisma.ContributorFindManyArgs<ExtArgs>
  902. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  903. }
  904. create: {
  905. args: Prisma.ContributorCreateArgs<ExtArgs>
  906. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  907. }
  908. createMany: {
  909. args: Prisma.ContributorCreateManyArgs<ExtArgs>
  910. result: BatchPayload
  911. }
  912. createManyAndReturn: {
  913. args: Prisma.ContributorCreateManyAndReturnArgs<ExtArgs>
  914. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  915. }
  916. delete: {
  917. args: Prisma.ContributorDeleteArgs<ExtArgs>
  918. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  919. }
  920. update: {
  921. args: Prisma.ContributorUpdateArgs<ExtArgs>
  922. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  923. }
  924. deleteMany: {
  925. args: Prisma.ContributorDeleteManyArgs<ExtArgs>
  926. result: BatchPayload
  927. }
  928. updateMany: {
  929. args: Prisma.ContributorUpdateManyArgs<ExtArgs>
  930. result: BatchPayload
  931. }
  932. updateManyAndReturn: {
  933. args: Prisma.ContributorUpdateManyAndReturnArgs<ExtArgs>
  934. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  935. }
  936. upsert: {
  937. args: Prisma.ContributorUpsertArgs<ExtArgs>
  938. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  939. }
  940. aggregate: {
  941. args: Prisma.ContributorAggregateArgs<ExtArgs>
  942. result: $Utils.Optional<AggregateContributor>
  943. }
  944. groupBy: {
  945. args: Prisma.ContributorGroupByArgs<ExtArgs>
  946. result: $Utils.Optional<ContributorGroupByOutputType>[]
  947. }
  948. count: {
  949. args: Prisma.ContributorCountArgs<ExtArgs>
  950. result: $Utils.Optional<ContributorCountAggregateOutputType> | number
  951. }
  952. }
  953. }
  954. Idea: {
  955. payload: Prisma.$IdeaPayload<ExtArgs>
  956. fields: Prisma.IdeaFieldRefs
  957. operations: {
  958. findUnique: {
  959. args: Prisma.IdeaFindUniqueArgs<ExtArgs>
  960. result: $Utils.PayloadToResult<Prisma.$IdeaPayload> | null
  961. }
  962. findUniqueOrThrow: {
  963. args: Prisma.IdeaFindUniqueOrThrowArgs<ExtArgs>
  964. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  965. }
  966. findFirst: {
  967. args: Prisma.IdeaFindFirstArgs<ExtArgs>
  968. result: $Utils.PayloadToResult<Prisma.$IdeaPayload> | null
  969. }
  970. findFirstOrThrow: {
  971. args: Prisma.IdeaFindFirstOrThrowArgs<ExtArgs>
  972. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  973. }
  974. findMany: {
  975. args: Prisma.IdeaFindManyArgs<ExtArgs>
  976. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  977. }
  978. create: {
  979. args: Prisma.IdeaCreateArgs<ExtArgs>
  980. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  981. }
  982. createMany: {
  983. args: Prisma.IdeaCreateManyArgs<ExtArgs>
  984. result: BatchPayload
  985. }
  986. createManyAndReturn: {
  987. args: Prisma.IdeaCreateManyAndReturnArgs<ExtArgs>
  988. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  989. }
  990. delete: {
  991. args: Prisma.IdeaDeleteArgs<ExtArgs>
  992. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  993. }
  994. update: {
  995. args: Prisma.IdeaUpdateArgs<ExtArgs>
  996. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  997. }
  998. deleteMany: {
  999. args: Prisma.IdeaDeleteManyArgs<ExtArgs>
  1000. result: BatchPayload
  1001. }
  1002. updateMany: {
  1003. args: Prisma.IdeaUpdateManyArgs<ExtArgs>
  1004. result: BatchPayload
  1005. }
  1006. updateManyAndReturn: {
  1007. args: Prisma.IdeaUpdateManyAndReturnArgs<ExtArgs>
  1008. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  1009. }
  1010. upsert: {
  1011. args: Prisma.IdeaUpsertArgs<ExtArgs>
  1012. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  1013. }
  1014. aggregate: {
  1015. args: Prisma.IdeaAggregateArgs<ExtArgs>
  1016. result: $Utils.Optional<AggregateIdea>
  1017. }
  1018. groupBy: {
  1019. args: Prisma.IdeaGroupByArgs<ExtArgs>
  1020. result: $Utils.Optional<IdeaGroupByOutputType>[]
  1021. }
  1022. count: {
  1023. args: Prisma.IdeaCountArgs<ExtArgs>
  1024. result: $Utils.Optional<IdeaCountAggregateOutputType> | number
  1025. }
  1026. }
  1027. }
  1028. Post: {
  1029. payload: Prisma.$PostPayload<ExtArgs>
  1030. fields: Prisma.PostFieldRefs
  1031. operations: {
  1032. findUnique: {
  1033. args: Prisma.PostFindUniqueArgs<ExtArgs>
  1034. result: $Utils.PayloadToResult<Prisma.$PostPayload> | null
  1035. }
  1036. findUniqueOrThrow: {
  1037. args: Prisma.PostFindUniqueOrThrowArgs<ExtArgs>
  1038. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1039. }
  1040. findFirst: {
  1041. args: Prisma.PostFindFirstArgs<ExtArgs>
  1042. result: $Utils.PayloadToResult<Prisma.$PostPayload> | null
  1043. }
  1044. findFirstOrThrow: {
  1045. args: Prisma.PostFindFirstOrThrowArgs<ExtArgs>
  1046. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1047. }
  1048. findMany: {
  1049. args: Prisma.PostFindManyArgs<ExtArgs>
  1050. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1051. }
  1052. create: {
  1053. args: Prisma.PostCreateArgs<ExtArgs>
  1054. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1055. }
  1056. createMany: {
  1057. args: Prisma.PostCreateManyArgs<ExtArgs>
  1058. result: BatchPayload
  1059. }
  1060. createManyAndReturn: {
  1061. args: Prisma.PostCreateManyAndReturnArgs<ExtArgs>
  1062. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1063. }
  1064. delete: {
  1065. args: Prisma.PostDeleteArgs<ExtArgs>
  1066. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1067. }
  1068. update: {
  1069. args: Prisma.PostUpdateArgs<ExtArgs>
  1070. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1071. }
  1072. deleteMany: {
  1073. args: Prisma.PostDeleteManyArgs<ExtArgs>
  1074. result: BatchPayload
  1075. }
  1076. updateMany: {
  1077. args: Prisma.PostUpdateManyArgs<ExtArgs>
  1078. result: BatchPayload
  1079. }
  1080. updateManyAndReturn: {
  1081. args: Prisma.PostUpdateManyAndReturnArgs<ExtArgs>
  1082. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1083. }
  1084. upsert: {
  1085. args: Prisma.PostUpsertArgs<ExtArgs>
  1086. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1087. }
  1088. aggregate: {
  1089. args: Prisma.PostAggregateArgs<ExtArgs>
  1090. result: $Utils.Optional<AggregatePost>
  1091. }
  1092. groupBy: {
  1093. args: Prisma.PostGroupByArgs<ExtArgs>
  1094. result: $Utils.Optional<PostGroupByOutputType>[]
  1095. }
  1096. count: {
  1097. args: Prisma.PostCountArgs<ExtArgs>
  1098. result: $Utils.Optional<PostCountAggregateOutputType> | number
  1099. }
  1100. }
  1101. }
  1102. Account: {
  1103. payload: Prisma.$AccountPayload<ExtArgs>
  1104. fields: Prisma.AccountFieldRefs
  1105. operations: {
  1106. findUnique: {
  1107. args: Prisma.AccountFindUniqueArgs<ExtArgs>
  1108. result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
  1109. }
  1110. findUniqueOrThrow: {
  1111. args: Prisma.AccountFindUniqueOrThrowArgs<ExtArgs>
  1112. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1113. }
  1114. findFirst: {
  1115. args: Prisma.AccountFindFirstArgs<ExtArgs>
  1116. result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
  1117. }
  1118. findFirstOrThrow: {
  1119. args: Prisma.AccountFindFirstOrThrowArgs<ExtArgs>
  1120. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1121. }
  1122. findMany: {
  1123. args: Prisma.AccountFindManyArgs<ExtArgs>
  1124. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1125. }
  1126. create: {
  1127. args: Prisma.AccountCreateArgs<ExtArgs>
  1128. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1129. }
  1130. createMany: {
  1131. args: Prisma.AccountCreateManyArgs<ExtArgs>
  1132. result: BatchPayload
  1133. }
  1134. createManyAndReturn: {
  1135. args: Prisma.AccountCreateManyAndReturnArgs<ExtArgs>
  1136. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1137. }
  1138. delete: {
  1139. args: Prisma.AccountDeleteArgs<ExtArgs>
  1140. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1141. }
  1142. update: {
  1143. args: Prisma.AccountUpdateArgs<ExtArgs>
  1144. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1145. }
  1146. deleteMany: {
  1147. args: Prisma.AccountDeleteManyArgs<ExtArgs>
  1148. result: BatchPayload
  1149. }
  1150. updateMany: {
  1151. args: Prisma.AccountUpdateManyArgs<ExtArgs>
  1152. result: BatchPayload
  1153. }
  1154. updateManyAndReturn: {
  1155. args: Prisma.AccountUpdateManyAndReturnArgs<ExtArgs>
  1156. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1157. }
  1158. upsert: {
  1159. args: Prisma.AccountUpsertArgs<ExtArgs>
  1160. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1161. }
  1162. aggregate: {
  1163. args: Prisma.AccountAggregateArgs<ExtArgs>
  1164. result: $Utils.Optional<AggregateAccount>
  1165. }
  1166. groupBy: {
  1167. args: Prisma.AccountGroupByArgs<ExtArgs>
  1168. result: $Utils.Optional<AccountGroupByOutputType>[]
  1169. }
  1170. count: {
  1171. args: Prisma.AccountCountArgs<ExtArgs>
  1172. result: $Utils.Optional<AccountCountAggregateOutputType> | number
  1173. }
  1174. }
  1175. }
  1176. Session: {
  1177. payload: Prisma.$SessionPayload<ExtArgs>
  1178. fields: Prisma.SessionFieldRefs
  1179. operations: {
  1180. findUnique: {
  1181. args: Prisma.SessionFindUniqueArgs<ExtArgs>
  1182. result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
  1183. }
  1184. findUniqueOrThrow: {
  1185. args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
  1186. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1187. }
  1188. findFirst: {
  1189. args: Prisma.SessionFindFirstArgs<ExtArgs>
  1190. result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
  1191. }
  1192. findFirstOrThrow: {
  1193. args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
  1194. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1195. }
  1196. findMany: {
  1197. args: Prisma.SessionFindManyArgs<ExtArgs>
  1198. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1199. }
  1200. create: {
  1201. args: Prisma.SessionCreateArgs<ExtArgs>
  1202. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1203. }
  1204. createMany: {
  1205. args: Prisma.SessionCreateManyArgs<ExtArgs>
  1206. result: BatchPayload
  1207. }
  1208. createManyAndReturn: {
  1209. args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>
  1210. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1211. }
  1212. delete: {
  1213. args: Prisma.SessionDeleteArgs<ExtArgs>
  1214. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1215. }
  1216. update: {
  1217. args: Prisma.SessionUpdateArgs<ExtArgs>
  1218. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1219. }
  1220. deleteMany: {
  1221. args: Prisma.SessionDeleteManyArgs<ExtArgs>
  1222. result: BatchPayload
  1223. }
  1224. updateMany: {
  1225. args: Prisma.SessionUpdateManyArgs<ExtArgs>
  1226. result: BatchPayload
  1227. }
  1228. updateManyAndReturn: {
  1229. args: Prisma.SessionUpdateManyAndReturnArgs<ExtArgs>
  1230. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1231. }
  1232. upsert: {
  1233. args: Prisma.SessionUpsertArgs<ExtArgs>
  1234. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1235. }
  1236. aggregate: {
  1237. args: Prisma.SessionAggregateArgs<ExtArgs>
  1238. result: $Utils.Optional<AggregateSession>
  1239. }
  1240. groupBy: {
  1241. args: Prisma.SessionGroupByArgs<ExtArgs>
  1242. result: $Utils.Optional<SessionGroupByOutputType>[]
  1243. }
  1244. count: {
  1245. args: Prisma.SessionCountArgs<ExtArgs>
  1246. result: $Utils.Optional<SessionCountAggregateOutputType> | number
  1247. }
  1248. }
  1249. }
  1250. User: {
  1251. payload: Prisma.$UserPayload<ExtArgs>
  1252. fields: Prisma.UserFieldRefs
  1253. operations: {
  1254. findUnique: {
  1255. args: Prisma.UserFindUniqueArgs<ExtArgs>
  1256. result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
  1257. }
  1258. findUniqueOrThrow: {
  1259. args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
  1260. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1261. }
  1262. findFirst: {
  1263. args: Prisma.UserFindFirstArgs<ExtArgs>
  1264. result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
  1265. }
  1266. findFirstOrThrow: {
  1267. args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
  1268. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1269. }
  1270. findMany: {
  1271. args: Prisma.UserFindManyArgs<ExtArgs>
  1272. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1273. }
  1274. create: {
  1275. args: Prisma.UserCreateArgs<ExtArgs>
  1276. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1277. }
  1278. createMany: {
  1279. args: Prisma.UserCreateManyArgs<ExtArgs>
  1280. result: BatchPayload
  1281. }
  1282. createManyAndReturn: {
  1283. args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
  1284. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1285. }
  1286. delete: {
  1287. args: Prisma.UserDeleteArgs<ExtArgs>
  1288. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1289. }
  1290. update: {
  1291. args: Prisma.UserUpdateArgs<ExtArgs>
  1292. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1293. }
  1294. deleteMany: {
  1295. args: Prisma.UserDeleteManyArgs<ExtArgs>
  1296. result: BatchPayload
  1297. }
  1298. updateMany: {
  1299. args: Prisma.UserUpdateManyArgs<ExtArgs>
  1300. result: BatchPayload
  1301. }
  1302. updateManyAndReturn: {
  1303. args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
  1304. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1305. }
  1306. upsert: {
  1307. args: Prisma.UserUpsertArgs<ExtArgs>
  1308. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1309. }
  1310. aggregate: {
  1311. args: Prisma.UserAggregateArgs<ExtArgs>
  1312. result: $Utils.Optional<AggregateUser>
  1313. }
  1314. groupBy: {
  1315. args: Prisma.UserGroupByArgs<ExtArgs>
  1316. result: $Utils.Optional<UserGroupByOutputType>[]
  1317. }
  1318. count: {
  1319. args: Prisma.UserCountArgs<ExtArgs>
  1320. result: $Utils.Optional<UserCountAggregateOutputType> | number
  1321. }
  1322. }
  1323. }
  1324. VerificationToken: {
  1325. payload: Prisma.$VerificationTokenPayload<ExtArgs>
  1326. fields: Prisma.VerificationTokenFieldRefs
  1327. operations: {
  1328. findUnique: {
  1329. args: Prisma.VerificationTokenFindUniqueArgs<ExtArgs>
  1330. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
  1331. }
  1332. findUniqueOrThrow: {
  1333. args: Prisma.VerificationTokenFindUniqueOrThrowArgs<ExtArgs>
  1334. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1335. }
  1336. findFirst: {
  1337. args: Prisma.VerificationTokenFindFirstArgs<ExtArgs>
  1338. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
  1339. }
  1340. findFirstOrThrow: {
  1341. args: Prisma.VerificationTokenFindFirstOrThrowArgs<ExtArgs>
  1342. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1343. }
  1344. findMany: {
  1345. args: Prisma.VerificationTokenFindManyArgs<ExtArgs>
  1346. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1347. }
  1348. create: {
  1349. args: Prisma.VerificationTokenCreateArgs<ExtArgs>
  1350. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1351. }
  1352. createMany: {
  1353. args: Prisma.VerificationTokenCreateManyArgs<ExtArgs>
  1354. result: BatchPayload
  1355. }
  1356. createManyAndReturn: {
  1357. args: Prisma.VerificationTokenCreateManyAndReturnArgs<ExtArgs>
  1358. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1359. }
  1360. delete: {
  1361. args: Prisma.VerificationTokenDeleteArgs<ExtArgs>
  1362. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1363. }
  1364. update: {
  1365. args: Prisma.VerificationTokenUpdateArgs<ExtArgs>
  1366. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1367. }
  1368. deleteMany: {
  1369. args: Prisma.VerificationTokenDeleteManyArgs<ExtArgs>
  1370. result: BatchPayload
  1371. }
  1372. updateMany: {
  1373. args: Prisma.VerificationTokenUpdateManyArgs<ExtArgs>
  1374. result: BatchPayload
  1375. }
  1376. updateManyAndReturn: {
  1377. args: Prisma.VerificationTokenUpdateManyAndReturnArgs<ExtArgs>
  1378. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1379. }
  1380. upsert: {
  1381. args: Prisma.VerificationTokenUpsertArgs<ExtArgs>
  1382. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1383. }
  1384. aggregate: {
  1385. args: Prisma.VerificationTokenAggregateArgs<ExtArgs>
  1386. result: $Utils.Optional<AggregateVerificationToken>
  1387. }
  1388. groupBy: {
  1389. args: Prisma.VerificationTokenGroupByArgs<ExtArgs>
  1390. result: $Utils.Optional<VerificationTokenGroupByOutputType>[]
  1391. }
  1392. count: {
  1393. args: Prisma.VerificationTokenCountArgs<ExtArgs>
  1394. result: $Utils.Optional<VerificationTokenCountAggregateOutputType> | number
  1395. }
  1396. }
  1397. }
  1398. IdeaAttachment: {
  1399. payload: Prisma.$IdeaAttachmentPayload<ExtArgs>
  1400. fields: Prisma.IdeaAttachmentFieldRefs
  1401. operations: {
  1402. findUnique: {
  1403. args: Prisma.IdeaAttachmentFindUniqueArgs<ExtArgs>
  1404. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload> | null
  1405. }
  1406. findUniqueOrThrow: {
  1407. args: Prisma.IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs>
  1408. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1409. }
  1410. findFirst: {
  1411. args: Prisma.IdeaAttachmentFindFirstArgs<ExtArgs>
  1412. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload> | null
  1413. }
  1414. findFirstOrThrow: {
  1415. args: Prisma.IdeaAttachmentFindFirstOrThrowArgs<ExtArgs>
  1416. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1417. }
  1418. findMany: {
  1419. args: Prisma.IdeaAttachmentFindManyArgs<ExtArgs>
  1420. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1421. }
  1422. create: {
  1423. args: Prisma.IdeaAttachmentCreateArgs<ExtArgs>
  1424. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1425. }
  1426. createMany: {
  1427. args: Prisma.IdeaAttachmentCreateManyArgs<ExtArgs>
  1428. result: BatchPayload
  1429. }
  1430. createManyAndReturn: {
  1431. args: Prisma.IdeaAttachmentCreateManyAndReturnArgs<ExtArgs>
  1432. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1433. }
  1434. delete: {
  1435. args: Prisma.IdeaAttachmentDeleteArgs<ExtArgs>
  1436. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1437. }
  1438. update: {
  1439. args: Prisma.IdeaAttachmentUpdateArgs<ExtArgs>
  1440. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1441. }
  1442. deleteMany: {
  1443. args: Prisma.IdeaAttachmentDeleteManyArgs<ExtArgs>
  1444. result: BatchPayload
  1445. }
  1446. updateMany: {
  1447. args: Prisma.IdeaAttachmentUpdateManyArgs<ExtArgs>
  1448. result: BatchPayload
  1449. }
  1450. updateManyAndReturn: {
  1451. args: Prisma.IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs>
  1452. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1453. }
  1454. upsert: {
  1455. args: Prisma.IdeaAttachmentUpsertArgs<ExtArgs>
  1456. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1457. }
  1458. aggregate: {
  1459. args: Prisma.IdeaAttachmentAggregateArgs<ExtArgs>
  1460. result: $Utils.Optional<AggregateIdeaAttachment>
  1461. }
  1462. groupBy: {
  1463. args: Prisma.IdeaAttachmentGroupByArgs<ExtArgs>
  1464. result: $Utils.Optional<IdeaAttachmentGroupByOutputType>[]
  1465. }
  1466. count: {
  1467. args: Prisma.IdeaAttachmentCountArgs<ExtArgs>
  1468. result: $Utils.Optional<IdeaAttachmentCountAggregateOutputType> | number
  1469. }
  1470. }
  1471. }
  1472. QualificationQuestion: {
  1473. payload: Prisma.$QualificationQuestionPayload<ExtArgs>
  1474. fields: Prisma.QualificationQuestionFieldRefs
  1475. operations: {
  1476. findUnique: {
  1477. args: Prisma.QualificationQuestionFindUniqueArgs<ExtArgs>
  1478. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload> | null
  1479. }
  1480. findUniqueOrThrow: {
  1481. args: Prisma.QualificationQuestionFindUniqueOrThrowArgs<ExtArgs>
  1482. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1483. }
  1484. findFirst: {
  1485. args: Prisma.QualificationQuestionFindFirstArgs<ExtArgs>
  1486. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload> | null
  1487. }
  1488. findFirstOrThrow: {
  1489. args: Prisma.QualificationQuestionFindFirstOrThrowArgs<ExtArgs>
  1490. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1491. }
  1492. findMany: {
  1493. args: Prisma.QualificationQuestionFindManyArgs<ExtArgs>
  1494. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1495. }
  1496. create: {
  1497. args: Prisma.QualificationQuestionCreateArgs<ExtArgs>
  1498. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1499. }
  1500. createMany: {
  1501. args: Prisma.QualificationQuestionCreateManyArgs<ExtArgs>
  1502. result: BatchPayload
  1503. }
  1504. createManyAndReturn: {
  1505. args: Prisma.QualificationQuestionCreateManyAndReturnArgs<ExtArgs>
  1506. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1507. }
  1508. delete: {
  1509. args: Prisma.QualificationQuestionDeleteArgs<ExtArgs>
  1510. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1511. }
  1512. update: {
  1513. args: Prisma.QualificationQuestionUpdateArgs<ExtArgs>
  1514. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1515. }
  1516. deleteMany: {
  1517. args: Prisma.QualificationQuestionDeleteManyArgs<ExtArgs>
  1518. result: BatchPayload
  1519. }
  1520. updateMany: {
  1521. args: Prisma.QualificationQuestionUpdateManyArgs<ExtArgs>
  1522. result: BatchPayload
  1523. }
  1524. updateManyAndReturn: {
  1525. args: Prisma.QualificationQuestionUpdateManyAndReturnArgs<ExtArgs>
  1526. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1527. }
  1528. upsert: {
  1529. args: Prisma.QualificationQuestionUpsertArgs<ExtArgs>
  1530. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1531. }
  1532. aggregate: {
  1533. args: Prisma.QualificationQuestionAggregateArgs<ExtArgs>
  1534. result: $Utils.Optional<AggregateQualificationQuestion>
  1535. }
  1536. groupBy: {
  1537. args: Prisma.QualificationQuestionGroupByArgs<ExtArgs>
  1538. result: $Utils.Optional<QualificationQuestionGroupByOutputType>[]
  1539. }
  1540. count: {
  1541. args: Prisma.QualificationQuestionCountArgs<ExtArgs>
  1542. result: $Utils.Optional<QualificationQuestionCountAggregateOutputType> | number
  1543. }
  1544. }
  1545. }
  1546. LibraryCase: {
  1547. payload: Prisma.$LibraryCasePayload<ExtArgs>
  1548. fields: Prisma.LibraryCaseFieldRefs
  1549. operations: {
  1550. findUnique: {
  1551. args: Prisma.LibraryCaseFindUniqueArgs<ExtArgs>
  1552. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload> | null
  1553. }
  1554. findUniqueOrThrow: {
  1555. args: Prisma.LibraryCaseFindUniqueOrThrowArgs<ExtArgs>
  1556. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1557. }
  1558. findFirst: {
  1559. args: Prisma.LibraryCaseFindFirstArgs<ExtArgs>
  1560. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload> | null
  1561. }
  1562. findFirstOrThrow: {
  1563. args: Prisma.LibraryCaseFindFirstOrThrowArgs<ExtArgs>
  1564. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1565. }
  1566. findMany: {
  1567. args: Prisma.LibraryCaseFindManyArgs<ExtArgs>
  1568. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1569. }
  1570. create: {
  1571. args: Prisma.LibraryCaseCreateArgs<ExtArgs>
  1572. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1573. }
  1574. createMany: {
  1575. args: Prisma.LibraryCaseCreateManyArgs<ExtArgs>
  1576. result: BatchPayload
  1577. }
  1578. createManyAndReturn: {
  1579. args: Prisma.LibraryCaseCreateManyAndReturnArgs<ExtArgs>
  1580. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1581. }
  1582. delete: {
  1583. args: Prisma.LibraryCaseDeleteArgs<ExtArgs>
  1584. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1585. }
  1586. update: {
  1587. args: Prisma.LibraryCaseUpdateArgs<ExtArgs>
  1588. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1589. }
  1590. deleteMany: {
  1591. args: Prisma.LibraryCaseDeleteManyArgs<ExtArgs>
  1592. result: BatchPayload
  1593. }
  1594. updateMany: {
  1595. args: Prisma.LibraryCaseUpdateManyArgs<ExtArgs>
  1596. result: BatchPayload
  1597. }
  1598. updateManyAndReturn: {
  1599. args: Prisma.LibraryCaseUpdateManyAndReturnArgs<ExtArgs>
  1600. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1601. }
  1602. upsert: {
  1603. args: Prisma.LibraryCaseUpsertArgs<ExtArgs>
  1604. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1605. }
  1606. aggregate: {
  1607. args: Prisma.LibraryCaseAggregateArgs<ExtArgs>
  1608. result: $Utils.Optional<AggregateLibraryCase>
  1609. }
  1610. groupBy: {
  1611. args: Prisma.LibraryCaseGroupByArgs<ExtArgs>
  1612. result: $Utils.Optional<LibraryCaseGroupByOutputType>[]
  1613. }
  1614. count: {
  1615. args: Prisma.LibraryCaseCountArgs<ExtArgs>
  1616. result: $Utils.Optional<LibraryCaseCountAggregateOutputType> | number
  1617. }
  1618. }
  1619. }
  1620. ShareLink: {
  1621. payload: Prisma.$ShareLinkPayload<ExtArgs>
  1622. fields: Prisma.ShareLinkFieldRefs
  1623. operations: {
  1624. findUnique: {
  1625. args: Prisma.ShareLinkFindUniqueArgs<ExtArgs>
  1626. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload> | null
  1627. }
  1628. findUniqueOrThrow: {
  1629. args: Prisma.ShareLinkFindUniqueOrThrowArgs<ExtArgs>
  1630. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1631. }
  1632. findFirst: {
  1633. args: Prisma.ShareLinkFindFirstArgs<ExtArgs>
  1634. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload> | null
  1635. }
  1636. findFirstOrThrow: {
  1637. args: Prisma.ShareLinkFindFirstOrThrowArgs<ExtArgs>
  1638. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1639. }
  1640. findMany: {
  1641. args: Prisma.ShareLinkFindManyArgs<ExtArgs>
  1642. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1643. }
  1644. create: {
  1645. args: Prisma.ShareLinkCreateArgs<ExtArgs>
  1646. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1647. }
  1648. createMany: {
  1649. args: Prisma.ShareLinkCreateManyArgs<ExtArgs>
  1650. result: BatchPayload
  1651. }
  1652. createManyAndReturn: {
  1653. args: Prisma.ShareLinkCreateManyAndReturnArgs<ExtArgs>
  1654. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1655. }
  1656. delete: {
  1657. args: Prisma.ShareLinkDeleteArgs<ExtArgs>
  1658. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1659. }
  1660. update: {
  1661. args: Prisma.ShareLinkUpdateArgs<ExtArgs>
  1662. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1663. }
  1664. deleteMany: {
  1665. args: Prisma.ShareLinkDeleteManyArgs<ExtArgs>
  1666. result: BatchPayload
  1667. }
  1668. updateMany: {
  1669. args: Prisma.ShareLinkUpdateManyArgs<ExtArgs>
  1670. result: BatchPayload
  1671. }
  1672. updateManyAndReturn: {
  1673. args: Prisma.ShareLinkUpdateManyAndReturnArgs<ExtArgs>
  1674. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1675. }
  1676. upsert: {
  1677. args: Prisma.ShareLinkUpsertArgs<ExtArgs>
  1678. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1679. }
  1680. aggregate: {
  1681. args: Prisma.ShareLinkAggregateArgs<ExtArgs>
  1682. result: $Utils.Optional<AggregateShareLink>
  1683. }
  1684. groupBy: {
  1685. args: Prisma.ShareLinkGroupByArgs<ExtArgs>
  1686. result: $Utils.Optional<ShareLinkGroupByOutputType>[]
  1687. }
  1688. count: {
  1689. args: Prisma.ShareLinkCountArgs<ExtArgs>
  1690. result: $Utils.Optional<ShareLinkCountAggregateOutputType> | number
  1691. }
  1692. }
  1693. }
  1694. }
  1695. } & {
  1696. other: {
  1697. payload: any
  1698. operations: {
  1699. $executeRaw: {
  1700. args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
  1701. result: any
  1702. }
  1703. $executeRawUnsafe: {
  1704. args: [query: string, ...values: any[]],
  1705. result: any
  1706. }
  1707. $queryRaw: {
  1708. args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
  1709. result: any
  1710. }
  1711. $queryRawUnsafe: {
  1712. args: [query: string, ...values: any[]],
  1713. result: any
  1714. }
  1715. }
  1716. }
  1717. }
  1718. export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
  1719. export type DefaultPrismaClient = PrismaClient
  1720. export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
  1721. export interface PrismaClientOptions {
  1722. /**
  1723. * Overwrites the datasource url from your schema.prisma file
  1724. */
  1725. datasources?: Datasources
  1726. /**
  1727. * Overwrites the datasource url from your schema.prisma file
  1728. */
  1729. datasourceUrl?: string
  1730. /**
  1731. * @default "colorless"
  1732. */
  1733. errorFormat?: ErrorFormat
  1734. /**
  1735. * @example
  1736. * ```
  1737. * // Shorthand for `emit: 'stdout'`
  1738. * log: ['query', 'info', 'warn', 'error']
  1739. *
  1740. * // Emit as events only
  1741. * log: [
  1742. * { emit: 'event', level: 'query' },
  1743. * { emit: 'event', level: 'info' },
  1744. * { emit: 'event', level: 'warn' }
  1745. * { emit: 'event', level: 'error' }
  1746. * ]
  1747. *
  1748. * / Emit as events and log to stdout
  1749. * og: [
  1750. * { emit: 'stdout', level: 'query' },
  1751. * { emit: 'stdout', level: 'info' },
  1752. * { emit: 'stdout', level: 'warn' }
  1753. * { emit: 'stdout', level: 'error' }
  1754. *
  1755. * ```
  1756. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
  1757. */
  1758. log?: (LogLevel | LogDefinition)[]
  1759. /**
  1760. * The default values for transactionOptions
  1761. * maxWait ?= 2000
  1762. * timeout ?= 5000
  1763. */
  1764. transactionOptions?: {
  1765. maxWait?: number
  1766. timeout?: number
  1767. isolationLevel?: Prisma.TransactionIsolationLevel
  1768. }
  1769. /**
  1770. * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
  1771. */
  1772. adapter?: runtime.SqlDriverAdapterFactory | null
  1773. /**
  1774. * Global configuration for omitting model fields by default.
  1775. *
  1776. * @example
  1777. * ```
  1778. * const prisma = new PrismaClient({
  1779. * omit: {
  1780. * user: {
  1781. * password: true
  1782. * }
  1783. * }
  1784. * })
  1785. * ```
  1786. */
  1787. omit?: Prisma.GlobalOmitConfig
  1788. }
  1789. export type GlobalOmitConfig = {
  1790. workspace?: WorkspaceOmit
  1791. manualRelanceLog?: ManualRelanceLogOmit
  1792. contributor?: ContributorOmit
  1793. idea?: IdeaOmit
  1794. post?: PostOmit
  1795. account?: AccountOmit
  1796. session?: SessionOmit
  1797. user?: UserOmit
  1798. verificationToken?: VerificationTokenOmit
  1799. ideaAttachment?: IdeaAttachmentOmit
  1800. qualificationQuestion?: QualificationQuestionOmit
  1801. libraryCase?: LibraryCaseOmit
  1802. shareLink?: ShareLinkOmit
  1803. }
  1804. /* Types for Logging */
  1805. export type LogLevel = 'info' | 'query' | 'warn' | 'error'
  1806. export type LogDefinition = {
  1807. level: LogLevel
  1808. emit: 'stdout' | 'event'
  1809. }
  1810. export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
  1811. export type GetLogType<T> = CheckIsLogLevel<
  1812. T extends LogDefinition ? T['level'] : T
  1813. >;
  1814. export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
  1815. ? GetLogType<T[number]>
  1816. : never;
  1817. export type QueryEvent = {
  1818. timestamp: Date
  1819. query: string
  1820. params: string
  1821. duration: number
  1822. target: string
  1823. }
  1824. export type LogEvent = {
  1825. timestamp: Date
  1826. message: string
  1827. target: string
  1828. }
  1829. /* End Types for Logging */
  1830. export type PrismaAction =
  1831. | 'findUnique'
  1832. | 'findUniqueOrThrow'
  1833. | 'findMany'
  1834. | 'findFirst'
  1835. | 'findFirstOrThrow'
  1836. | 'create'
  1837. | 'createMany'
  1838. | 'createManyAndReturn'
  1839. | 'update'
  1840. | 'updateMany'
  1841. | 'updateManyAndReturn'
  1842. | 'upsert'
  1843. | 'delete'
  1844. | 'deleteMany'
  1845. | 'executeRaw'
  1846. | 'queryRaw'
  1847. | 'aggregate'
  1848. | 'count'
  1849. | 'runCommandRaw'
  1850. | 'findRaw'
  1851. | 'groupBy'
  1852. // tested in getLogLevel.test.ts
  1853. export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
  1854. /**
  1855. * `PrismaClient` proxy available in interactive transactions.
  1856. */
  1857. export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
  1858. export type Datasource = {
  1859. url?: string
  1860. }
  1861. /**
  1862. * Count Types
  1863. */
  1864. /**
  1865. * Count Type WorkspaceCountOutputType
  1866. */
  1867. export type WorkspaceCountOutputType = {
  1868. contributors: number
  1869. ideas: number
  1870. manualRelanceLogs: number
  1871. }
  1872. export type WorkspaceCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1873. contributors?: boolean | WorkspaceCountOutputTypeCountContributorsArgs
  1874. ideas?: boolean | WorkspaceCountOutputTypeCountIdeasArgs
  1875. manualRelanceLogs?: boolean | WorkspaceCountOutputTypeCountManualRelanceLogsArgs
  1876. }
  1877. // Custom InputTypes
  1878. /**
  1879. * WorkspaceCountOutputType without action
  1880. */
  1881. export type WorkspaceCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1882. /**
  1883. * Select specific fields to fetch from the WorkspaceCountOutputType
  1884. */
  1885. select?: WorkspaceCountOutputTypeSelect<ExtArgs> | null
  1886. }
  1887. /**
  1888. * WorkspaceCountOutputType without action
  1889. */
  1890. export type WorkspaceCountOutputTypeCountContributorsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1891. where?: ContributorWhereInput
  1892. }
  1893. /**
  1894. * WorkspaceCountOutputType without action
  1895. */
  1896. export type WorkspaceCountOutputTypeCountIdeasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1897. where?: IdeaWhereInput
  1898. }
  1899. /**
  1900. * WorkspaceCountOutputType without action
  1901. */
  1902. export type WorkspaceCountOutputTypeCountManualRelanceLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1903. where?: ManualRelanceLogWhereInput
  1904. }
  1905. /**
  1906. * Count Type ContributorCountOutputType
  1907. */
  1908. export type ContributorCountOutputType = {
  1909. ideas: number
  1910. }
  1911. export type ContributorCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1912. ideas?: boolean | ContributorCountOutputTypeCountIdeasArgs
  1913. }
  1914. // Custom InputTypes
  1915. /**
  1916. * ContributorCountOutputType without action
  1917. */
  1918. export type ContributorCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1919. /**
  1920. * Select specific fields to fetch from the ContributorCountOutputType
  1921. */
  1922. select?: ContributorCountOutputTypeSelect<ExtArgs> | null
  1923. }
  1924. /**
  1925. * ContributorCountOutputType without action
  1926. */
  1927. export type ContributorCountOutputTypeCountIdeasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1928. where?: IdeaWhereInput
  1929. }
  1930. /**
  1931. * Count Type IdeaCountOutputType
  1932. */
  1933. export type IdeaCountOutputType = {
  1934. attachments: number
  1935. qualificationQuestions: number
  1936. }
  1937. export type IdeaCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1938. attachments?: boolean | IdeaCountOutputTypeCountAttachmentsArgs
  1939. qualificationQuestions?: boolean | IdeaCountOutputTypeCountQualificationQuestionsArgs
  1940. }
  1941. // Custom InputTypes
  1942. /**
  1943. * IdeaCountOutputType without action
  1944. */
  1945. export type IdeaCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1946. /**
  1947. * Select specific fields to fetch from the IdeaCountOutputType
  1948. */
  1949. select?: IdeaCountOutputTypeSelect<ExtArgs> | null
  1950. }
  1951. /**
  1952. * IdeaCountOutputType without action
  1953. */
  1954. export type IdeaCountOutputTypeCountAttachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1955. where?: IdeaAttachmentWhereInput
  1956. }
  1957. /**
  1958. * IdeaCountOutputType without action
  1959. */
  1960. export type IdeaCountOutputTypeCountQualificationQuestionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1961. where?: QualificationQuestionWhereInput
  1962. }
  1963. /**
  1964. * Count Type UserCountOutputType
  1965. */
  1966. export type UserCountOutputType = {
  1967. accounts: number
  1968. sessions: number
  1969. posts: number
  1970. }
  1971. export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1972. accounts?: boolean | UserCountOutputTypeCountAccountsArgs
  1973. sessions?: boolean | UserCountOutputTypeCountSessionsArgs
  1974. posts?: boolean | UserCountOutputTypeCountPostsArgs
  1975. }
  1976. // Custom InputTypes
  1977. /**
  1978. * UserCountOutputType without action
  1979. */
  1980. export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1981. /**
  1982. * Select specific fields to fetch from the UserCountOutputType
  1983. */
  1984. select?: UserCountOutputTypeSelect<ExtArgs> | null
  1985. }
  1986. /**
  1987. * UserCountOutputType without action
  1988. */
  1989. export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1990. where?: AccountWhereInput
  1991. }
  1992. /**
  1993. * UserCountOutputType without action
  1994. */
  1995. export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1996. where?: SessionWhereInput
  1997. }
  1998. /**
  1999. * UserCountOutputType without action
  2000. */
  2001. export type UserCountOutputTypeCountPostsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2002. where?: PostWhereInput
  2003. }
  2004. /**
  2005. * Models
  2006. */
  2007. /**
  2008. * Model Workspace
  2009. */
  2010. export type AggregateWorkspace = {
  2011. _count: WorkspaceCountAggregateOutputType | null
  2012. _avg: WorkspaceAvgAggregateOutputType | null
  2013. _sum: WorkspaceSumAggregateOutputType | null
  2014. _min: WorkspaceMinAggregateOutputType | null
  2015. _max: WorkspaceMaxAggregateOutputType | null
  2016. }
  2017. export type WorkspaceAvgAggregateOutputType = {
  2018. companySize: number | null
  2019. llmCallsThisMonth: number | null
  2020. exportsThisMonth: number | null
  2021. }
  2022. export type WorkspaceSumAggregateOutputType = {
  2023. companySize: number | null
  2024. llmCallsThisMonth: number | null
  2025. exportsThisMonth: number | null
  2026. }
  2027. export type WorkspaceMinAggregateOutputType = {
  2028. id: string | null
  2029. name: string | null
  2030. slug: string | null
  2031. sector: string | null
  2032. companySize: number | null
  2033. contactEmail: string | null
  2034. tier: $Enums.WorkspaceTier | null
  2035. llmCallsThisMonth: number | null
  2036. llmCallsResetAt: Date | null
  2037. autoRelanceEnabled: boolean | null
  2038. exportsThisMonth: number | null
  2039. exportsResetAt: Date | null
  2040. lastVisitedAt: Date | null
  2041. onboardingDismissed: boolean | null
  2042. createdAt: Date | null
  2043. updatedAt: Date | null
  2044. ownerId: string | null
  2045. }
  2046. export type WorkspaceMaxAggregateOutputType = {
  2047. id: string | null
  2048. name: string | null
  2049. slug: string | null
  2050. sector: string | null
  2051. companySize: number | null
  2052. contactEmail: string | null
  2053. tier: $Enums.WorkspaceTier | null
  2054. llmCallsThisMonth: number | null
  2055. llmCallsResetAt: Date | null
  2056. autoRelanceEnabled: boolean | null
  2057. exportsThisMonth: number | null
  2058. exportsResetAt: Date | null
  2059. lastVisitedAt: Date | null
  2060. onboardingDismissed: boolean | null
  2061. createdAt: Date | null
  2062. updatedAt: Date | null
  2063. ownerId: string | null
  2064. }
  2065. export type WorkspaceCountAggregateOutputType = {
  2066. id: number
  2067. name: number
  2068. slug: number
  2069. sector: number
  2070. companySize: number
  2071. contactEmail: number
  2072. tier: number
  2073. llmCallsThisMonth: number
  2074. llmCallsResetAt: number
  2075. autoRelanceEnabled: number
  2076. exportsThisMonth: number
  2077. exportsResetAt: number
  2078. lastVisitedAt: number
  2079. onboardingDismissed: number
  2080. createdAt: number
  2081. updatedAt: number
  2082. ownerId: number
  2083. _all: number
  2084. }
  2085. export type WorkspaceAvgAggregateInputType = {
  2086. companySize?: true
  2087. llmCallsThisMonth?: true
  2088. exportsThisMonth?: true
  2089. }
  2090. export type WorkspaceSumAggregateInputType = {
  2091. companySize?: true
  2092. llmCallsThisMonth?: true
  2093. exportsThisMonth?: true
  2094. }
  2095. export type WorkspaceMinAggregateInputType = {
  2096. id?: true
  2097. name?: true
  2098. slug?: true
  2099. sector?: true
  2100. companySize?: true
  2101. contactEmail?: true
  2102. tier?: true
  2103. llmCallsThisMonth?: true
  2104. llmCallsResetAt?: true
  2105. autoRelanceEnabled?: true
  2106. exportsThisMonth?: true
  2107. exportsResetAt?: true
  2108. lastVisitedAt?: true
  2109. onboardingDismissed?: true
  2110. createdAt?: true
  2111. updatedAt?: true
  2112. ownerId?: true
  2113. }
  2114. export type WorkspaceMaxAggregateInputType = {
  2115. id?: true
  2116. name?: true
  2117. slug?: true
  2118. sector?: true
  2119. companySize?: true
  2120. contactEmail?: true
  2121. tier?: true
  2122. llmCallsThisMonth?: true
  2123. llmCallsResetAt?: true
  2124. autoRelanceEnabled?: true
  2125. exportsThisMonth?: true
  2126. exportsResetAt?: true
  2127. lastVisitedAt?: true
  2128. onboardingDismissed?: true
  2129. createdAt?: true
  2130. updatedAt?: true
  2131. ownerId?: true
  2132. }
  2133. export type WorkspaceCountAggregateInputType = {
  2134. id?: true
  2135. name?: true
  2136. slug?: true
  2137. sector?: true
  2138. companySize?: true
  2139. contactEmail?: true
  2140. tier?: true
  2141. llmCallsThisMonth?: true
  2142. llmCallsResetAt?: true
  2143. autoRelanceEnabled?: true
  2144. exportsThisMonth?: true
  2145. exportsResetAt?: true
  2146. lastVisitedAt?: true
  2147. onboardingDismissed?: true
  2148. createdAt?: true
  2149. updatedAt?: true
  2150. ownerId?: true
  2151. _all?: true
  2152. }
  2153. export type WorkspaceAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2154. /**
  2155. * Filter which Workspace to aggregate.
  2156. */
  2157. where?: WorkspaceWhereInput
  2158. /**
  2159. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2160. *
  2161. * Determine the order of Workspaces to fetch.
  2162. */
  2163. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2164. /**
  2165. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2166. *
  2167. * Sets the start position
  2168. */
  2169. cursor?: WorkspaceWhereUniqueInput
  2170. /**
  2171. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2172. *
  2173. * Take `±n` Workspaces from the position of the cursor.
  2174. */
  2175. take?: number
  2176. /**
  2177. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2178. *
  2179. * Skip the first `n` Workspaces.
  2180. */
  2181. skip?: number
  2182. /**
  2183. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2184. *
  2185. * Count returned Workspaces
  2186. **/
  2187. _count?: true | WorkspaceCountAggregateInputType
  2188. /**
  2189. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2190. *
  2191. * Select which fields to average
  2192. **/
  2193. _avg?: WorkspaceAvgAggregateInputType
  2194. /**
  2195. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2196. *
  2197. * Select which fields to sum
  2198. **/
  2199. _sum?: WorkspaceSumAggregateInputType
  2200. /**
  2201. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2202. *
  2203. * Select which fields to find the minimum value
  2204. **/
  2205. _min?: WorkspaceMinAggregateInputType
  2206. /**
  2207. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2208. *
  2209. * Select which fields to find the maximum value
  2210. **/
  2211. _max?: WorkspaceMaxAggregateInputType
  2212. }
  2213. export type GetWorkspaceAggregateType<T extends WorkspaceAggregateArgs> = {
  2214. [P in keyof T & keyof AggregateWorkspace]: P extends '_count' | 'count'
  2215. ? T[P] extends true
  2216. ? number
  2217. : GetScalarType<T[P], AggregateWorkspace[P]>
  2218. : GetScalarType<T[P], AggregateWorkspace[P]>
  2219. }
  2220. export type WorkspaceGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2221. where?: WorkspaceWhereInput
  2222. orderBy?: WorkspaceOrderByWithAggregationInput | WorkspaceOrderByWithAggregationInput[]
  2223. by: WorkspaceScalarFieldEnum[] | WorkspaceScalarFieldEnum
  2224. having?: WorkspaceScalarWhereWithAggregatesInput
  2225. take?: number
  2226. skip?: number
  2227. _count?: WorkspaceCountAggregateInputType | true
  2228. _avg?: WorkspaceAvgAggregateInputType
  2229. _sum?: WorkspaceSumAggregateInputType
  2230. _min?: WorkspaceMinAggregateInputType
  2231. _max?: WorkspaceMaxAggregateInputType
  2232. }
  2233. export type WorkspaceGroupByOutputType = {
  2234. id: string
  2235. name: string
  2236. slug: string
  2237. sector: string | null
  2238. companySize: number | null
  2239. contactEmail: string | null
  2240. tier: $Enums.WorkspaceTier
  2241. llmCallsThisMonth: number
  2242. llmCallsResetAt: Date
  2243. autoRelanceEnabled: boolean
  2244. exportsThisMonth: number
  2245. exportsResetAt: Date
  2246. lastVisitedAt: Date | null
  2247. onboardingDismissed: boolean
  2248. createdAt: Date
  2249. updatedAt: Date
  2250. ownerId: string
  2251. _count: WorkspaceCountAggregateOutputType | null
  2252. _avg: WorkspaceAvgAggregateOutputType | null
  2253. _sum: WorkspaceSumAggregateOutputType | null
  2254. _min: WorkspaceMinAggregateOutputType | null
  2255. _max: WorkspaceMaxAggregateOutputType | null
  2256. }
  2257. type GetWorkspaceGroupByPayload<T extends WorkspaceGroupByArgs> = Prisma.PrismaPromise<
  2258. Array<
  2259. PickEnumerable<WorkspaceGroupByOutputType, T['by']> &
  2260. {
  2261. [P in ((keyof T) & (keyof WorkspaceGroupByOutputType))]: P extends '_count'
  2262. ? T[P] extends boolean
  2263. ? number
  2264. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2265. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2266. }
  2267. >
  2268. >
  2269. export type WorkspaceSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2270. id?: boolean
  2271. name?: boolean
  2272. slug?: boolean
  2273. sector?: boolean
  2274. companySize?: boolean
  2275. contactEmail?: boolean
  2276. tier?: boolean
  2277. llmCallsThisMonth?: boolean
  2278. llmCallsResetAt?: boolean
  2279. autoRelanceEnabled?: boolean
  2280. exportsThisMonth?: boolean
  2281. exportsResetAt?: boolean
  2282. lastVisitedAt?: boolean
  2283. onboardingDismissed?: boolean
  2284. createdAt?: boolean
  2285. updatedAt?: boolean
  2286. ownerId?: boolean
  2287. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2288. owner?: boolean | UserDefaultArgs<ExtArgs>
  2289. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2290. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2291. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2292. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2293. }, ExtArgs["result"]["workspace"]>
  2294. export type WorkspaceSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2295. id?: boolean
  2296. name?: boolean
  2297. slug?: boolean
  2298. sector?: boolean
  2299. companySize?: boolean
  2300. contactEmail?: boolean
  2301. tier?: boolean
  2302. llmCallsThisMonth?: boolean
  2303. llmCallsResetAt?: boolean
  2304. autoRelanceEnabled?: boolean
  2305. exportsThisMonth?: boolean
  2306. exportsResetAt?: boolean
  2307. lastVisitedAt?: boolean
  2308. onboardingDismissed?: boolean
  2309. createdAt?: boolean
  2310. updatedAt?: boolean
  2311. ownerId?: boolean
  2312. owner?: boolean | UserDefaultArgs<ExtArgs>
  2313. }, ExtArgs["result"]["workspace"]>
  2314. export type WorkspaceSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2315. id?: boolean
  2316. name?: boolean
  2317. slug?: boolean
  2318. sector?: boolean
  2319. companySize?: boolean
  2320. contactEmail?: boolean
  2321. tier?: boolean
  2322. llmCallsThisMonth?: boolean
  2323. llmCallsResetAt?: boolean
  2324. autoRelanceEnabled?: boolean
  2325. exportsThisMonth?: boolean
  2326. exportsResetAt?: boolean
  2327. lastVisitedAt?: boolean
  2328. onboardingDismissed?: boolean
  2329. createdAt?: boolean
  2330. updatedAt?: boolean
  2331. ownerId?: boolean
  2332. owner?: boolean | UserDefaultArgs<ExtArgs>
  2333. }, ExtArgs["result"]["workspace"]>
  2334. export type WorkspaceSelectScalar = {
  2335. id?: boolean
  2336. name?: boolean
  2337. slug?: boolean
  2338. sector?: boolean
  2339. companySize?: boolean
  2340. contactEmail?: boolean
  2341. tier?: boolean
  2342. llmCallsThisMonth?: boolean
  2343. llmCallsResetAt?: boolean
  2344. autoRelanceEnabled?: boolean
  2345. exportsThisMonth?: boolean
  2346. exportsResetAt?: boolean
  2347. lastVisitedAt?: boolean
  2348. onboardingDismissed?: boolean
  2349. createdAt?: boolean
  2350. updatedAt?: boolean
  2351. ownerId?: boolean
  2352. }
  2353. export type WorkspaceOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "slug" | "sector" | "companySize" | "contactEmail" | "tier" | "llmCallsThisMonth" | "llmCallsResetAt" | "autoRelanceEnabled" | "exportsThisMonth" | "exportsResetAt" | "lastVisitedAt" | "onboardingDismissed" | "createdAt" | "updatedAt" | "ownerId", ExtArgs["result"]["workspace"]>
  2354. export type WorkspaceInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2355. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2356. owner?: boolean | UserDefaultArgs<ExtArgs>
  2357. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2358. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2359. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2360. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2361. }
  2362. export type WorkspaceIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2363. owner?: boolean | UserDefaultArgs<ExtArgs>
  2364. }
  2365. export type WorkspaceIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2366. owner?: boolean | UserDefaultArgs<ExtArgs>
  2367. }
  2368. export type $WorkspacePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2369. name: "Workspace"
  2370. objects: {
  2371. shareLink: Prisma.$ShareLinkPayload<ExtArgs> | null
  2372. owner: Prisma.$UserPayload<ExtArgs>
  2373. contributors: Prisma.$ContributorPayload<ExtArgs>[]
  2374. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  2375. manualRelanceLogs: Prisma.$ManualRelanceLogPayload<ExtArgs>[]
  2376. }
  2377. scalars: $Extensions.GetPayloadResult<{
  2378. id: string
  2379. name: string
  2380. slug: string
  2381. sector: string | null
  2382. companySize: number | null
  2383. contactEmail: string | null
  2384. tier: $Enums.WorkspaceTier
  2385. llmCallsThisMonth: number
  2386. llmCallsResetAt: Date
  2387. autoRelanceEnabled: boolean
  2388. exportsThisMonth: number
  2389. exportsResetAt: Date
  2390. lastVisitedAt: Date | null
  2391. onboardingDismissed: boolean
  2392. createdAt: Date
  2393. updatedAt: Date
  2394. ownerId: string
  2395. }, ExtArgs["result"]["workspace"]>
  2396. composites: {}
  2397. }
  2398. type WorkspaceGetPayload<S extends boolean | null | undefined | WorkspaceDefaultArgs> = $Result.GetResult<Prisma.$WorkspacePayload, S>
  2399. type WorkspaceCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  2400. Omit<WorkspaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  2401. select?: WorkspaceCountAggregateInputType | true
  2402. }
  2403. export interface WorkspaceDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  2404. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Workspace'], meta: { name: 'Workspace' } }
  2405. /**
  2406. * Find zero or one Workspace that matches the filter.
  2407. * @param {WorkspaceFindUniqueArgs} args - Arguments to find a Workspace
  2408. * @example
  2409. * // Get one Workspace
  2410. * const workspace = await prisma.workspace.findUnique({
  2411. * where: {
  2412. * // ... provide filter here
  2413. * }
  2414. * })
  2415. */
  2416. findUnique<T extends WorkspaceFindUniqueArgs>(args: SelectSubset<T, WorkspaceFindUniqueArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2417. /**
  2418. * Find one Workspace that matches the filter or throw an error with `error.code='P2025'`
  2419. * if no matches were found.
  2420. * @param {WorkspaceFindUniqueOrThrowArgs} args - Arguments to find a Workspace
  2421. * @example
  2422. * // Get one Workspace
  2423. * const workspace = await prisma.workspace.findUniqueOrThrow({
  2424. * where: {
  2425. * // ... provide filter here
  2426. * }
  2427. * })
  2428. */
  2429. findUniqueOrThrow<T extends WorkspaceFindUniqueOrThrowArgs>(args: SelectSubset<T, WorkspaceFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2430. /**
  2431. * Find the first Workspace that matches the filter.
  2432. * Note, that providing `undefined` is treated as the value not being there.
  2433. * Read more here: https://pris.ly/d/null-undefined
  2434. * @param {WorkspaceFindFirstArgs} args - Arguments to find a Workspace
  2435. * @example
  2436. * // Get one Workspace
  2437. * const workspace = await prisma.workspace.findFirst({
  2438. * where: {
  2439. * // ... provide filter here
  2440. * }
  2441. * })
  2442. */
  2443. findFirst<T extends WorkspaceFindFirstArgs>(args?: SelectSubset<T, WorkspaceFindFirstArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2444. /**
  2445. * Find the first Workspace that matches the filter or
  2446. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  2447. * Note, that providing `undefined` is treated as the value not being there.
  2448. * Read more here: https://pris.ly/d/null-undefined
  2449. * @param {WorkspaceFindFirstOrThrowArgs} args - Arguments to find a Workspace
  2450. * @example
  2451. * // Get one Workspace
  2452. * const workspace = await prisma.workspace.findFirstOrThrow({
  2453. * where: {
  2454. * // ... provide filter here
  2455. * }
  2456. * })
  2457. */
  2458. findFirstOrThrow<T extends WorkspaceFindFirstOrThrowArgs>(args?: SelectSubset<T, WorkspaceFindFirstOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2459. /**
  2460. * Find zero or more Workspaces that matches the filter.
  2461. * Note, that providing `undefined` is treated as the value not being there.
  2462. * Read more here: https://pris.ly/d/null-undefined
  2463. * @param {WorkspaceFindManyArgs} args - Arguments to filter and select certain fields only.
  2464. * @example
  2465. * // Get all Workspaces
  2466. * const workspaces = await prisma.workspace.findMany()
  2467. *
  2468. * // Get first 10 Workspaces
  2469. * const workspaces = await prisma.workspace.findMany({ take: 10 })
  2470. *
  2471. * // Only select the `id`
  2472. * const workspaceWithIdOnly = await prisma.workspace.findMany({ select: { id: true } })
  2473. *
  2474. */
  2475. findMany<T extends WorkspaceFindManyArgs>(args?: SelectSubset<T, WorkspaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  2476. /**
  2477. * Create a Workspace.
  2478. * @param {WorkspaceCreateArgs} args - Arguments to create a Workspace.
  2479. * @example
  2480. * // Create one Workspace
  2481. * const Workspace = await prisma.workspace.create({
  2482. * data: {
  2483. * // ... data to create a Workspace
  2484. * }
  2485. * })
  2486. *
  2487. */
  2488. create<T extends WorkspaceCreateArgs>(args: SelectSubset<T, WorkspaceCreateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2489. /**
  2490. * Create many Workspaces.
  2491. * @param {WorkspaceCreateManyArgs} args - Arguments to create many Workspaces.
  2492. * @example
  2493. * // Create many Workspaces
  2494. * const workspace = await prisma.workspace.createMany({
  2495. * data: [
  2496. * // ... provide data here
  2497. * ]
  2498. * })
  2499. *
  2500. */
  2501. createMany<T extends WorkspaceCreateManyArgs>(args?: SelectSubset<T, WorkspaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2502. /**
  2503. * Create many Workspaces and returns the data saved in the database.
  2504. * @param {WorkspaceCreateManyAndReturnArgs} args - Arguments to create many Workspaces.
  2505. * @example
  2506. * // Create many Workspaces
  2507. * const workspace = await prisma.workspace.createManyAndReturn({
  2508. * data: [
  2509. * // ... provide data here
  2510. * ]
  2511. * })
  2512. *
  2513. * // Create many Workspaces and only return the `id`
  2514. * const workspaceWithIdOnly = await prisma.workspace.createManyAndReturn({
  2515. * select: { id: true },
  2516. * data: [
  2517. * // ... provide data here
  2518. * ]
  2519. * })
  2520. * Note, that providing `undefined` is treated as the value not being there.
  2521. * Read more here: https://pris.ly/d/null-undefined
  2522. *
  2523. */
  2524. createManyAndReturn<T extends WorkspaceCreateManyAndReturnArgs>(args?: SelectSubset<T, WorkspaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  2525. /**
  2526. * Delete a Workspace.
  2527. * @param {WorkspaceDeleteArgs} args - Arguments to delete one Workspace.
  2528. * @example
  2529. * // Delete one Workspace
  2530. * const Workspace = await prisma.workspace.delete({
  2531. * where: {
  2532. * // ... filter to delete one Workspace
  2533. * }
  2534. * })
  2535. *
  2536. */
  2537. delete<T extends WorkspaceDeleteArgs>(args: SelectSubset<T, WorkspaceDeleteArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2538. /**
  2539. * Update one Workspace.
  2540. * @param {WorkspaceUpdateArgs} args - Arguments to update one Workspace.
  2541. * @example
  2542. * // Update one Workspace
  2543. * const workspace = await prisma.workspace.update({
  2544. * where: {
  2545. * // ... provide filter here
  2546. * },
  2547. * data: {
  2548. * // ... provide data here
  2549. * }
  2550. * })
  2551. *
  2552. */
  2553. update<T extends WorkspaceUpdateArgs>(args: SelectSubset<T, WorkspaceUpdateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2554. /**
  2555. * Delete zero or more Workspaces.
  2556. * @param {WorkspaceDeleteManyArgs} args - Arguments to filter Workspaces to delete.
  2557. * @example
  2558. * // Delete a few Workspaces
  2559. * const { count } = await prisma.workspace.deleteMany({
  2560. * where: {
  2561. * // ... provide filter here
  2562. * }
  2563. * })
  2564. *
  2565. */
  2566. deleteMany<T extends WorkspaceDeleteManyArgs>(args?: SelectSubset<T, WorkspaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2567. /**
  2568. * Update zero or more Workspaces.
  2569. * Note, that providing `undefined` is treated as the value not being there.
  2570. * Read more here: https://pris.ly/d/null-undefined
  2571. * @param {WorkspaceUpdateManyArgs} args - Arguments to update one or more rows.
  2572. * @example
  2573. * // Update many Workspaces
  2574. * const workspace = await prisma.workspace.updateMany({
  2575. * where: {
  2576. * // ... provide filter here
  2577. * },
  2578. * data: {
  2579. * // ... provide data here
  2580. * }
  2581. * })
  2582. *
  2583. */
  2584. updateMany<T extends WorkspaceUpdateManyArgs>(args: SelectSubset<T, WorkspaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2585. /**
  2586. * Update zero or more Workspaces and returns the data updated in the database.
  2587. * @param {WorkspaceUpdateManyAndReturnArgs} args - Arguments to update many Workspaces.
  2588. * @example
  2589. * // Update many Workspaces
  2590. * const workspace = await prisma.workspace.updateManyAndReturn({
  2591. * where: {
  2592. * // ... provide filter here
  2593. * },
  2594. * data: [
  2595. * // ... provide data here
  2596. * ]
  2597. * })
  2598. *
  2599. * // Update zero or more Workspaces and only return the `id`
  2600. * const workspaceWithIdOnly = await prisma.workspace.updateManyAndReturn({
  2601. * select: { id: true },
  2602. * where: {
  2603. * // ... provide filter here
  2604. * },
  2605. * data: [
  2606. * // ... provide data here
  2607. * ]
  2608. * })
  2609. * Note, that providing `undefined` is treated as the value not being there.
  2610. * Read more here: https://pris.ly/d/null-undefined
  2611. *
  2612. */
  2613. updateManyAndReturn<T extends WorkspaceUpdateManyAndReturnArgs>(args: SelectSubset<T, WorkspaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  2614. /**
  2615. * Create or update one Workspace.
  2616. * @param {WorkspaceUpsertArgs} args - Arguments to update or create a Workspace.
  2617. * @example
  2618. * // Update or create a Workspace
  2619. * const workspace = await prisma.workspace.upsert({
  2620. * create: {
  2621. * // ... data to create a Workspace
  2622. * },
  2623. * update: {
  2624. * // ... in case it already exists, update
  2625. * },
  2626. * where: {
  2627. * // ... the filter for the Workspace we want to update
  2628. * }
  2629. * })
  2630. */
  2631. upsert<T extends WorkspaceUpsertArgs>(args: SelectSubset<T, WorkspaceUpsertArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2632. /**
  2633. * Count the number of Workspaces.
  2634. * Note, that providing `undefined` is treated as the value not being there.
  2635. * Read more here: https://pris.ly/d/null-undefined
  2636. * @param {WorkspaceCountArgs} args - Arguments to filter Workspaces to count.
  2637. * @example
  2638. * // Count the number of Workspaces
  2639. * const count = await prisma.workspace.count({
  2640. * where: {
  2641. * // ... the filter for the Workspaces we want to count
  2642. * }
  2643. * })
  2644. **/
  2645. count<T extends WorkspaceCountArgs>(
  2646. args?: Subset<T, WorkspaceCountArgs>,
  2647. ): Prisma.PrismaPromise<
  2648. T extends $Utils.Record<'select', any>
  2649. ? T['select'] extends true
  2650. ? number
  2651. : GetScalarType<T['select'], WorkspaceCountAggregateOutputType>
  2652. : number
  2653. >
  2654. /**
  2655. * Allows you to perform aggregations operations on a Workspace.
  2656. * Note, that providing `undefined` is treated as the value not being there.
  2657. * Read more here: https://pris.ly/d/null-undefined
  2658. * @param {WorkspaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  2659. * @example
  2660. * // Ordered by age ascending
  2661. * // Where email contains prisma.io
  2662. * // Limited to the 10 users
  2663. * const aggregations = await prisma.user.aggregate({
  2664. * _avg: {
  2665. * age: true,
  2666. * },
  2667. * where: {
  2668. * email: {
  2669. * contains: "prisma.io",
  2670. * },
  2671. * },
  2672. * orderBy: {
  2673. * age: "asc",
  2674. * },
  2675. * take: 10,
  2676. * })
  2677. **/
  2678. aggregate<T extends WorkspaceAggregateArgs>(args: Subset<T, WorkspaceAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceAggregateType<T>>
  2679. /**
  2680. * Group by Workspace.
  2681. * Note, that providing `undefined` is treated as the value not being there.
  2682. * Read more here: https://pris.ly/d/null-undefined
  2683. * @param {WorkspaceGroupByArgs} args - Group by arguments.
  2684. * @example
  2685. * // Group by city, order by createdAt, get count
  2686. * const result = await prisma.user.groupBy({
  2687. * by: ['city', 'createdAt'],
  2688. * orderBy: {
  2689. * createdAt: true
  2690. * },
  2691. * _count: {
  2692. * _all: true
  2693. * },
  2694. * })
  2695. *
  2696. **/
  2697. groupBy<
  2698. T extends WorkspaceGroupByArgs,
  2699. HasSelectOrTake extends Or<
  2700. Extends<'skip', Keys<T>>,
  2701. Extends<'take', Keys<T>>
  2702. >,
  2703. OrderByArg extends True extends HasSelectOrTake
  2704. ? { orderBy: WorkspaceGroupByArgs['orderBy'] }
  2705. : { orderBy?: WorkspaceGroupByArgs['orderBy'] },
  2706. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  2707. ByFields extends MaybeTupleToUnion<T['by']>,
  2708. ByValid extends Has<ByFields, OrderFields>,
  2709. HavingFields extends GetHavingFields<T['having']>,
  2710. HavingValid extends Has<ByFields, HavingFields>,
  2711. ByEmpty extends T['by'] extends never[] ? True : False,
  2712. InputErrors extends ByEmpty extends True
  2713. ? `Error: "by" must not be empty.`
  2714. : HavingValid extends False
  2715. ? {
  2716. [P in HavingFields]: P extends ByFields
  2717. ? never
  2718. : P extends string
  2719. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  2720. : [
  2721. Error,
  2722. 'Field ',
  2723. P,
  2724. ` in "having" needs to be provided in "by"`,
  2725. ]
  2726. }[HavingFields]
  2727. : 'take' extends Keys<T>
  2728. ? 'orderBy' extends Keys<T>
  2729. ? ByValid extends True
  2730. ? {}
  2731. : {
  2732. [P in OrderFields]: P extends ByFields
  2733. ? never
  2734. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2735. }[OrderFields]
  2736. : 'Error: If you provide "take", you also need to provide "orderBy"'
  2737. : 'skip' extends Keys<T>
  2738. ? 'orderBy' extends Keys<T>
  2739. ? ByValid extends True
  2740. ? {}
  2741. : {
  2742. [P in OrderFields]: P extends ByFields
  2743. ? never
  2744. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2745. }[OrderFields]
  2746. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  2747. : ByValid extends True
  2748. ? {}
  2749. : {
  2750. [P in OrderFields]: P extends ByFields
  2751. ? never
  2752. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2753. }[OrderFields]
  2754. >(args: SubsetIntersection<T, WorkspaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  2755. /**
  2756. * Fields of the Workspace model
  2757. */
  2758. readonly fields: WorkspaceFieldRefs;
  2759. }
  2760. /**
  2761. * The delegate class that acts as a "Promise-like" for Workspace.
  2762. * Why is this prefixed with `Prisma__`?
  2763. * Because we want to prevent naming conflicts as mentioned in
  2764. * https://github.com/prisma/prisma-client-js/issues/707
  2765. */
  2766. export interface Prisma__WorkspaceClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  2767. readonly [Symbol.toStringTag]: "PrismaPromise"
  2768. shareLink<T extends Workspace$shareLinkArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$shareLinkArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2769. owner<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  2770. contributors<T extends Workspace$contributorsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$contributorsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2771. ideas<T extends Workspace$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2772. manualRelanceLogs<T extends Workspace$manualRelanceLogsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$manualRelanceLogsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2773. /**
  2774. * Attaches callbacks for the resolution and/or rejection of the Promise.
  2775. * @param onfulfilled The callback to execute when the Promise is resolved.
  2776. * @param onrejected The callback to execute when the Promise is rejected.
  2777. * @returns A Promise for the completion of which ever callback is executed.
  2778. */
  2779. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  2780. /**
  2781. * Attaches a callback for only the rejection of the Promise.
  2782. * @param onrejected The callback to execute when the Promise is rejected.
  2783. * @returns A Promise for the completion of the callback.
  2784. */
  2785. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  2786. /**
  2787. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  2788. * resolved value cannot be modified from the callback.
  2789. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  2790. * @returns A Promise for the completion of the callback.
  2791. */
  2792. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  2793. }
  2794. /**
  2795. * Fields of the Workspace model
  2796. */
  2797. interface WorkspaceFieldRefs {
  2798. readonly id: FieldRef<"Workspace", 'String'>
  2799. readonly name: FieldRef<"Workspace", 'String'>
  2800. readonly slug: FieldRef<"Workspace", 'String'>
  2801. readonly sector: FieldRef<"Workspace", 'String'>
  2802. readonly companySize: FieldRef<"Workspace", 'Int'>
  2803. readonly contactEmail: FieldRef<"Workspace", 'String'>
  2804. readonly tier: FieldRef<"Workspace", 'WorkspaceTier'>
  2805. readonly llmCallsThisMonth: FieldRef<"Workspace", 'Int'>
  2806. readonly llmCallsResetAt: FieldRef<"Workspace", 'DateTime'>
  2807. readonly autoRelanceEnabled: FieldRef<"Workspace", 'Boolean'>
  2808. readonly exportsThisMonth: FieldRef<"Workspace", 'Int'>
  2809. readonly exportsResetAt: FieldRef<"Workspace", 'DateTime'>
  2810. readonly lastVisitedAt: FieldRef<"Workspace", 'DateTime'>
  2811. readonly onboardingDismissed: FieldRef<"Workspace", 'Boolean'>
  2812. readonly createdAt: FieldRef<"Workspace", 'DateTime'>
  2813. readonly updatedAt: FieldRef<"Workspace", 'DateTime'>
  2814. readonly ownerId: FieldRef<"Workspace", 'String'>
  2815. }
  2816. // Custom InputTypes
  2817. /**
  2818. * Workspace findUnique
  2819. */
  2820. export type WorkspaceFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2821. /**
  2822. * Select specific fields to fetch from the Workspace
  2823. */
  2824. select?: WorkspaceSelect<ExtArgs> | null
  2825. /**
  2826. * Omit specific fields from the Workspace
  2827. */
  2828. omit?: WorkspaceOmit<ExtArgs> | null
  2829. /**
  2830. * Choose, which related nodes to fetch as well
  2831. */
  2832. include?: WorkspaceInclude<ExtArgs> | null
  2833. /**
  2834. * Filter, which Workspace to fetch.
  2835. */
  2836. where: WorkspaceWhereUniqueInput
  2837. }
  2838. /**
  2839. * Workspace findUniqueOrThrow
  2840. */
  2841. export type WorkspaceFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2842. /**
  2843. * Select specific fields to fetch from the Workspace
  2844. */
  2845. select?: WorkspaceSelect<ExtArgs> | null
  2846. /**
  2847. * Omit specific fields from the Workspace
  2848. */
  2849. omit?: WorkspaceOmit<ExtArgs> | null
  2850. /**
  2851. * Choose, which related nodes to fetch as well
  2852. */
  2853. include?: WorkspaceInclude<ExtArgs> | null
  2854. /**
  2855. * Filter, which Workspace to fetch.
  2856. */
  2857. where: WorkspaceWhereUniqueInput
  2858. }
  2859. /**
  2860. * Workspace findFirst
  2861. */
  2862. export type WorkspaceFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2863. /**
  2864. * Select specific fields to fetch from the Workspace
  2865. */
  2866. select?: WorkspaceSelect<ExtArgs> | null
  2867. /**
  2868. * Omit specific fields from the Workspace
  2869. */
  2870. omit?: WorkspaceOmit<ExtArgs> | null
  2871. /**
  2872. * Choose, which related nodes to fetch as well
  2873. */
  2874. include?: WorkspaceInclude<ExtArgs> | null
  2875. /**
  2876. * Filter, which Workspace to fetch.
  2877. */
  2878. where?: WorkspaceWhereInput
  2879. /**
  2880. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2881. *
  2882. * Determine the order of Workspaces to fetch.
  2883. */
  2884. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2885. /**
  2886. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2887. *
  2888. * Sets the position for searching for Workspaces.
  2889. */
  2890. cursor?: WorkspaceWhereUniqueInput
  2891. /**
  2892. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2893. *
  2894. * Take `±n` Workspaces from the position of the cursor.
  2895. */
  2896. take?: number
  2897. /**
  2898. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2899. *
  2900. * Skip the first `n` Workspaces.
  2901. */
  2902. skip?: number
  2903. /**
  2904. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  2905. *
  2906. * Filter by unique combinations of Workspaces.
  2907. */
  2908. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  2909. }
  2910. /**
  2911. * Workspace findFirstOrThrow
  2912. */
  2913. export type WorkspaceFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2914. /**
  2915. * Select specific fields to fetch from the Workspace
  2916. */
  2917. select?: WorkspaceSelect<ExtArgs> | null
  2918. /**
  2919. * Omit specific fields from the Workspace
  2920. */
  2921. omit?: WorkspaceOmit<ExtArgs> | null
  2922. /**
  2923. * Choose, which related nodes to fetch as well
  2924. */
  2925. include?: WorkspaceInclude<ExtArgs> | null
  2926. /**
  2927. * Filter, which Workspace to fetch.
  2928. */
  2929. where?: WorkspaceWhereInput
  2930. /**
  2931. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2932. *
  2933. * Determine the order of Workspaces to fetch.
  2934. */
  2935. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2936. /**
  2937. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2938. *
  2939. * Sets the position for searching for Workspaces.
  2940. */
  2941. cursor?: WorkspaceWhereUniqueInput
  2942. /**
  2943. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2944. *
  2945. * Take `±n` Workspaces from the position of the cursor.
  2946. */
  2947. take?: number
  2948. /**
  2949. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2950. *
  2951. * Skip the first `n` Workspaces.
  2952. */
  2953. skip?: number
  2954. /**
  2955. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  2956. *
  2957. * Filter by unique combinations of Workspaces.
  2958. */
  2959. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  2960. }
  2961. /**
  2962. * Workspace findMany
  2963. */
  2964. export type WorkspaceFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2965. /**
  2966. * Select specific fields to fetch from the Workspace
  2967. */
  2968. select?: WorkspaceSelect<ExtArgs> | null
  2969. /**
  2970. * Omit specific fields from the Workspace
  2971. */
  2972. omit?: WorkspaceOmit<ExtArgs> | null
  2973. /**
  2974. * Choose, which related nodes to fetch as well
  2975. */
  2976. include?: WorkspaceInclude<ExtArgs> | null
  2977. /**
  2978. * Filter, which Workspaces to fetch.
  2979. */
  2980. where?: WorkspaceWhereInput
  2981. /**
  2982. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2983. *
  2984. * Determine the order of Workspaces to fetch.
  2985. */
  2986. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2987. /**
  2988. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2989. *
  2990. * Sets the position for listing Workspaces.
  2991. */
  2992. cursor?: WorkspaceWhereUniqueInput
  2993. /**
  2994. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2995. *
  2996. * Take `±n` Workspaces from the position of the cursor.
  2997. */
  2998. take?: number
  2999. /**
  3000. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3001. *
  3002. * Skip the first `n` Workspaces.
  3003. */
  3004. skip?: number
  3005. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  3006. }
  3007. /**
  3008. * Workspace create
  3009. */
  3010. export type WorkspaceCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3011. /**
  3012. * Select specific fields to fetch from the Workspace
  3013. */
  3014. select?: WorkspaceSelect<ExtArgs> | null
  3015. /**
  3016. * Omit specific fields from the Workspace
  3017. */
  3018. omit?: WorkspaceOmit<ExtArgs> | null
  3019. /**
  3020. * Choose, which related nodes to fetch as well
  3021. */
  3022. include?: WorkspaceInclude<ExtArgs> | null
  3023. /**
  3024. * The data needed to create a Workspace.
  3025. */
  3026. data: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3027. }
  3028. /**
  3029. * Workspace createMany
  3030. */
  3031. export type WorkspaceCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3032. /**
  3033. * The data used to create many Workspaces.
  3034. */
  3035. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3036. skipDuplicates?: boolean
  3037. }
  3038. /**
  3039. * Workspace createManyAndReturn
  3040. */
  3041. export type WorkspaceCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3042. /**
  3043. * Select specific fields to fetch from the Workspace
  3044. */
  3045. select?: WorkspaceSelectCreateManyAndReturn<ExtArgs> | null
  3046. /**
  3047. * Omit specific fields from the Workspace
  3048. */
  3049. omit?: WorkspaceOmit<ExtArgs> | null
  3050. /**
  3051. * The data used to create many Workspaces.
  3052. */
  3053. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3054. skipDuplicates?: boolean
  3055. /**
  3056. * Choose, which related nodes to fetch as well
  3057. */
  3058. include?: WorkspaceIncludeCreateManyAndReturn<ExtArgs> | null
  3059. }
  3060. /**
  3061. * Workspace update
  3062. */
  3063. export type WorkspaceUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3064. /**
  3065. * Select specific fields to fetch from the Workspace
  3066. */
  3067. select?: WorkspaceSelect<ExtArgs> | null
  3068. /**
  3069. * Omit specific fields from the Workspace
  3070. */
  3071. omit?: WorkspaceOmit<ExtArgs> | null
  3072. /**
  3073. * Choose, which related nodes to fetch as well
  3074. */
  3075. include?: WorkspaceInclude<ExtArgs> | null
  3076. /**
  3077. * The data needed to update a Workspace.
  3078. */
  3079. data: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3080. /**
  3081. * Choose, which Workspace to update.
  3082. */
  3083. where: WorkspaceWhereUniqueInput
  3084. }
  3085. /**
  3086. * Workspace updateMany
  3087. */
  3088. export type WorkspaceUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3089. /**
  3090. * The data used to update Workspaces.
  3091. */
  3092. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3093. /**
  3094. * Filter which Workspaces to update
  3095. */
  3096. where?: WorkspaceWhereInput
  3097. /**
  3098. * Limit how many Workspaces to update.
  3099. */
  3100. limit?: number
  3101. }
  3102. /**
  3103. * Workspace updateManyAndReturn
  3104. */
  3105. export type WorkspaceUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3106. /**
  3107. * Select specific fields to fetch from the Workspace
  3108. */
  3109. select?: WorkspaceSelectUpdateManyAndReturn<ExtArgs> | null
  3110. /**
  3111. * Omit specific fields from the Workspace
  3112. */
  3113. omit?: WorkspaceOmit<ExtArgs> | null
  3114. /**
  3115. * The data used to update Workspaces.
  3116. */
  3117. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3118. /**
  3119. * Filter which Workspaces to update
  3120. */
  3121. where?: WorkspaceWhereInput
  3122. /**
  3123. * Limit how many Workspaces to update.
  3124. */
  3125. limit?: number
  3126. /**
  3127. * Choose, which related nodes to fetch as well
  3128. */
  3129. include?: WorkspaceIncludeUpdateManyAndReturn<ExtArgs> | null
  3130. }
  3131. /**
  3132. * Workspace upsert
  3133. */
  3134. export type WorkspaceUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3135. /**
  3136. * Select specific fields to fetch from the Workspace
  3137. */
  3138. select?: WorkspaceSelect<ExtArgs> | null
  3139. /**
  3140. * Omit specific fields from the Workspace
  3141. */
  3142. omit?: WorkspaceOmit<ExtArgs> | null
  3143. /**
  3144. * Choose, which related nodes to fetch as well
  3145. */
  3146. include?: WorkspaceInclude<ExtArgs> | null
  3147. /**
  3148. * The filter to search for the Workspace to update in case it exists.
  3149. */
  3150. where: WorkspaceWhereUniqueInput
  3151. /**
  3152. * In case the Workspace found by the `where` argument doesn't exist, create a new Workspace with this data.
  3153. */
  3154. create: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3155. /**
  3156. * In case the Workspace was found with the provided `where` argument, update it with this data.
  3157. */
  3158. update: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3159. }
  3160. /**
  3161. * Workspace delete
  3162. */
  3163. export type WorkspaceDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3164. /**
  3165. * Select specific fields to fetch from the Workspace
  3166. */
  3167. select?: WorkspaceSelect<ExtArgs> | null
  3168. /**
  3169. * Omit specific fields from the Workspace
  3170. */
  3171. omit?: WorkspaceOmit<ExtArgs> | null
  3172. /**
  3173. * Choose, which related nodes to fetch as well
  3174. */
  3175. include?: WorkspaceInclude<ExtArgs> | null
  3176. /**
  3177. * Filter which Workspace to delete.
  3178. */
  3179. where: WorkspaceWhereUniqueInput
  3180. }
  3181. /**
  3182. * Workspace deleteMany
  3183. */
  3184. export type WorkspaceDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3185. /**
  3186. * Filter which Workspaces to delete
  3187. */
  3188. where?: WorkspaceWhereInput
  3189. /**
  3190. * Limit how many Workspaces to delete.
  3191. */
  3192. limit?: number
  3193. }
  3194. /**
  3195. * Workspace.shareLink
  3196. */
  3197. export type Workspace$shareLinkArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3198. /**
  3199. * Select specific fields to fetch from the ShareLink
  3200. */
  3201. select?: ShareLinkSelect<ExtArgs> | null
  3202. /**
  3203. * Omit specific fields from the ShareLink
  3204. */
  3205. omit?: ShareLinkOmit<ExtArgs> | null
  3206. /**
  3207. * Choose, which related nodes to fetch as well
  3208. */
  3209. include?: ShareLinkInclude<ExtArgs> | null
  3210. where?: ShareLinkWhereInput
  3211. }
  3212. /**
  3213. * Workspace.contributors
  3214. */
  3215. export type Workspace$contributorsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3216. /**
  3217. * Select specific fields to fetch from the Contributor
  3218. */
  3219. select?: ContributorSelect<ExtArgs> | null
  3220. /**
  3221. * Omit specific fields from the Contributor
  3222. */
  3223. omit?: ContributorOmit<ExtArgs> | null
  3224. /**
  3225. * Choose, which related nodes to fetch as well
  3226. */
  3227. include?: ContributorInclude<ExtArgs> | null
  3228. where?: ContributorWhereInput
  3229. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  3230. cursor?: ContributorWhereUniqueInput
  3231. take?: number
  3232. skip?: number
  3233. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  3234. }
  3235. /**
  3236. * Workspace.ideas
  3237. */
  3238. export type Workspace$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3239. /**
  3240. * Select specific fields to fetch from the Idea
  3241. */
  3242. select?: IdeaSelect<ExtArgs> | null
  3243. /**
  3244. * Omit specific fields from the Idea
  3245. */
  3246. omit?: IdeaOmit<ExtArgs> | null
  3247. /**
  3248. * Choose, which related nodes to fetch as well
  3249. */
  3250. include?: IdeaInclude<ExtArgs> | null
  3251. where?: IdeaWhereInput
  3252. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  3253. cursor?: IdeaWhereUniqueInput
  3254. take?: number
  3255. skip?: number
  3256. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  3257. }
  3258. /**
  3259. * Workspace.manualRelanceLogs
  3260. */
  3261. export type Workspace$manualRelanceLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3262. /**
  3263. * Select specific fields to fetch from the ManualRelanceLog
  3264. */
  3265. select?: ManualRelanceLogSelect<ExtArgs> | null
  3266. /**
  3267. * Omit specific fields from the ManualRelanceLog
  3268. */
  3269. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3270. /**
  3271. * Choose, which related nodes to fetch as well
  3272. */
  3273. include?: ManualRelanceLogInclude<ExtArgs> | null
  3274. where?: ManualRelanceLogWhereInput
  3275. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3276. cursor?: ManualRelanceLogWhereUniqueInput
  3277. take?: number
  3278. skip?: number
  3279. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  3280. }
  3281. /**
  3282. * Workspace without action
  3283. */
  3284. export type WorkspaceDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3285. /**
  3286. * Select specific fields to fetch from the Workspace
  3287. */
  3288. select?: WorkspaceSelect<ExtArgs> | null
  3289. /**
  3290. * Omit specific fields from the Workspace
  3291. */
  3292. omit?: WorkspaceOmit<ExtArgs> | null
  3293. /**
  3294. * Choose, which related nodes to fetch as well
  3295. */
  3296. include?: WorkspaceInclude<ExtArgs> | null
  3297. }
  3298. /**
  3299. * Model ManualRelanceLog
  3300. */
  3301. export type AggregateManualRelanceLog = {
  3302. _count: ManualRelanceLogCountAggregateOutputType | null
  3303. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3304. _sum: ManualRelanceLogSumAggregateOutputType | null
  3305. _min: ManualRelanceLogMinAggregateOutputType | null
  3306. _max: ManualRelanceLogMaxAggregateOutputType | null
  3307. }
  3308. export type ManualRelanceLogAvgAggregateOutputType = {
  3309. recipientCount: number | null
  3310. sentCount: number | null
  3311. failedCount: number | null
  3312. }
  3313. export type ManualRelanceLogSumAggregateOutputType = {
  3314. recipientCount: number | null
  3315. sentCount: number | null
  3316. failedCount: number | null
  3317. }
  3318. export type ManualRelanceLogMinAggregateOutputType = {
  3319. id: string | null
  3320. workspaceId: string | null
  3321. subject: string | null
  3322. recipientCount: number | null
  3323. sentCount: number | null
  3324. failedCount: number | null
  3325. sentAt: Date | null
  3326. }
  3327. export type ManualRelanceLogMaxAggregateOutputType = {
  3328. id: string | null
  3329. workspaceId: string | null
  3330. subject: string | null
  3331. recipientCount: number | null
  3332. sentCount: number | null
  3333. failedCount: number | null
  3334. sentAt: Date | null
  3335. }
  3336. export type ManualRelanceLogCountAggregateOutputType = {
  3337. id: number
  3338. workspaceId: number
  3339. subject: number
  3340. recipientCount: number
  3341. sentCount: number
  3342. failedCount: number
  3343. sentAt: number
  3344. _all: number
  3345. }
  3346. export type ManualRelanceLogAvgAggregateInputType = {
  3347. recipientCount?: true
  3348. sentCount?: true
  3349. failedCount?: true
  3350. }
  3351. export type ManualRelanceLogSumAggregateInputType = {
  3352. recipientCount?: true
  3353. sentCount?: true
  3354. failedCount?: true
  3355. }
  3356. export type ManualRelanceLogMinAggregateInputType = {
  3357. id?: true
  3358. workspaceId?: true
  3359. subject?: true
  3360. recipientCount?: true
  3361. sentCount?: true
  3362. failedCount?: true
  3363. sentAt?: true
  3364. }
  3365. export type ManualRelanceLogMaxAggregateInputType = {
  3366. id?: true
  3367. workspaceId?: true
  3368. subject?: true
  3369. recipientCount?: true
  3370. sentCount?: true
  3371. failedCount?: true
  3372. sentAt?: true
  3373. }
  3374. export type ManualRelanceLogCountAggregateInputType = {
  3375. id?: true
  3376. workspaceId?: true
  3377. subject?: true
  3378. recipientCount?: true
  3379. sentCount?: true
  3380. failedCount?: true
  3381. sentAt?: true
  3382. _all?: true
  3383. }
  3384. export type ManualRelanceLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3385. /**
  3386. * Filter which ManualRelanceLog to aggregate.
  3387. */
  3388. where?: ManualRelanceLogWhereInput
  3389. /**
  3390. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  3391. *
  3392. * Determine the order of ManualRelanceLogs to fetch.
  3393. */
  3394. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3395. /**
  3396. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  3397. *
  3398. * Sets the start position
  3399. */
  3400. cursor?: ManualRelanceLogWhereUniqueInput
  3401. /**
  3402. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3403. *
  3404. * Take `±n` ManualRelanceLogs from the position of the cursor.
  3405. */
  3406. take?: number
  3407. /**
  3408. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3409. *
  3410. * Skip the first `n` ManualRelanceLogs.
  3411. */
  3412. skip?: number
  3413. /**
  3414. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3415. *
  3416. * Count returned ManualRelanceLogs
  3417. **/
  3418. _count?: true | ManualRelanceLogCountAggregateInputType
  3419. /**
  3420. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3421. *
  3422. * Select which fields to average
  3423. **/
  3424. _avg?: ManualRelanceLogAvgAggregateInputType
  3425. /**
  3426. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3427. *
  3428. * Select which fields to sum
  3429. **/
  3430. _sum?: ManualRelanceLogSumAggregateInputType
  3431. /**
  3432. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3433. *
  3434. * Select which fields to find the minimum value
  3435. **/
  3436. _min?: ManualRelanceLogMinAggregateInputType
  3437. /**
  3438. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3439. *
  3440. * Select which fields to find the maximum value
  3441. **/
  3442. _max?: ManualRelanceLogMaxAggregateInputType
  3443. }
  3444. export type GetManualRelanceLogAggregateType<T extends ManualRelanceLogAggregateArgs> = {
  3445. [P in keyof T & keyof AggregateManualRelanceLog]: P extends '_count' | 'count'
  3446. ? T[P] extends true
  3447. ? number
  3448. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3449. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3450. }
  3451. export type ManualRelanceLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3452. where?: ManualRelanceLogWhereInput
  3453. orderBy?: ManualRelanceLogOrderByWithAggregationInput | ManualRelanceLogOrderByWithAggregationInput[]
  3454. by: ManualRelanceLogScalarFieldEnum[] | ManualRelanceLogScalarFieldEnum
  3455. having?: ManualRelanceLogScalarWhereWithAggregatesInput
  3456. take?: number
  3457. skip?: number
  3458. _count?: ManualRelanceLogCountAggregateInputType | true
  3459. _avg?: ManualRelanceLogAvgAggregateInputType
  3460. _sum?: ManualRelanceLogSumAggregateInputType
  3461. _min?: ManualRelanceLogMinAggregateInputType
  3462. _max?: ManualRelanceLogMaxAggregateInputType
  3463. }
  3464. export type ManualRelanceLogGroupByOutputType = {
  3465. id: string
  3466. workspaceId: string
  3467. subject: string
  3468. recipientCount: number
  3469. sentCount: number
  3470. failedCount: number
  3471. sentAt: Date
  3472. _count: ManualRelanceLogCountAggregateOutputType | null
  3473. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3474. _sum: ManualRelanceLogSumAggregateOutputType | null
  3475. _min: ManualRelanceLogMinAggregateOutputType | null
  3476. _max: ManualRelanceLogMaxAggregateOutputType | null
  3477. }
  3478. type GetManualRelanceLogGroupByPayload<T extends ManualRelanceLogGroupByArgs> = Prisma.PrismaPromise<
  3479. Array<
  3480. PickEnumerable<ManualRelanceLogGroupByOutputType, T['by']> &
  3481. {
  3482. [P in ((keyof T) & (keyof ManualRelanceLogGroupByOutputType))]: P extends '_count'
  3483. ? T[P] extends boolean
  3484. ? number
  3485. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3486. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3487. }
  3488. >
  3489. >
  3490. export type ManualRelanceLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3491. id?: boolean
  3492. workspaceId?: boolean
  3493. subject?: boolean
  3494. recipientCount?: boolean
  3495. sentCount?: boolean
  3496. failedCount?: boolean
  3497. sentAt?: boolean
  3498. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3499. }, ExtArgs["result"]["manualRelanceLog"]>
  3500. export type ManualRelanceLogSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3501. id?: boolean
  3502. workspaceId?: boolean
  3503. subject?: boolean
  3504. recipientCount?: boolean
  3505. sentCount?: boolean
  3506. failedCount?: boolean
  3507. sentAt?: boolean
  3508. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3509. }, ExtArgs["result"]["manualRelanceLog"]>
  3510. export type ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3511. id?: boolean
  3512. workspaceId?: boolean
  3513. subject?: boolean
  3514. recipientCount?: boolean
  3515. sentCount?: boolean
  3516. failedCount?: boolean
  3517. sentAt?: boolean
  3518. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3519. }, ExtArgs["result"]["manualRelanceLog"]>
  3520. export type ManualRelanceLogSelectScalar = {
  3521. id?: boolean
  3522. workspaceId?: boolean
  3523. subject?: boolean
  3524. recipientCount?: boolean
  3525. sentCount?: boolean
  3526. failedCount?: boolean
  3527. sentAt?: boolean
  3528. }
  3529. export type ManualRelanceLogOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "subject" | "recipientCount" | "sentCount" | "failedCount" | "sentAt", ExtArgs["result"]["manualRelanceLog"]>
  3530. export type ManualRelanceLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3531. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3532. }
  3533. export type ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3534. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3535. }
  3536. export type ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3537. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3538. }
  3539. export type $ManualRelanceLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3540. name: "ManualRelanceLog"
  3541. objects: {
  3542. workspace: Prisma.$WorkspacePayload<ExtArgs>
  3543. }
  3544. scalars: $Extensions.GetPayloadResult<{
  3545. id: string
  3546. workspaceId: string
  3547. subject: string
  3548. recipientCount: number
  3549. sentCount: number
  3550. failedCount: number
  3551. sentAt: Date
  3552. }, ExtArgs["result"]["manualRelanceLog"]>
  3553. composites: {}
  3554. }
  3555. type ManualRelanceLogGetPayload<S extends boolean | null | undefined | ManualRelanceLogDefaultArgs> = $Result.GetResult<Prisma.$ManualRelanceLogPayload, S>
  3556. type ManualRelanceLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  3557. Omit<ManualRelanceLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  3558. select?: ManualRelanceLogCountAggregateInputType | true
  3559. }
  3560. export interface ManualRelanceLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  3561. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ManualRelanceLog'], meta: { name: 'ManualRelanceLog' } }
  3562. /**
  3563. * Find zero or one ManualRelanceLog that matches the filter.
  3564. * @param {ManualRelanceLogFindUniqueArgs} args - Arguments to find a ManualRelanceLog
  3565. * @example
  3566. * // Get one ManualRelanceLog
  3567. * const manualRelanceLog = await prisma.manualRelanceLog.findUnique({
  3568. * where: {
  3569. * // ... provide filter here
  3570. * }
  3571. * })
  3572. */
  3573. findUnique<T extends ManualRelanceLogFindUniqueArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3574. /**
  3575. * Find one ManualRelanceLog that matches the filter or throw an error with `error.code='P2025'`
  3576. * if no matches were found.
  3577. * @param {ManualRelanceLogFindUniqueOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3578. * @example
  3579. * // Get one ManualRelanceLog
  3580. * const manualRelanceLog = await prisma.manualRelanceLog.findUniqueOrThrow({
  3581. * where: {
  3582. * // ... provide filter here
  3583. * }
  3584. * })
  3585. */
  3586. findUniqueOrThrow<T extends ManualRelanceLogFindUniqueOrThrowArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3587. /**
  3588. * Find the first ManualRelanceLog that matches the filter.
  3589. * Note, that providing `undefined` is treated as the value not being there.
  3590. * Read more here: https://pris.ly/d/null-undefined
  3591. * @param {ManualRelanceLogFindFirstArgs} args - Arguments to find a ManualRelanceLog
  3592. * @example
  3593. * // Get one ManualRelanceLog
  3594. * const manualRelanceLog = await prisma.manualRelanceLog.findFirst({
  3595. * where: {
  3596. * // ... provide filter here
  3597. * }
  3598. * })
  3599. */
  3600. findFirst<T extends ManualRelanceLogFindFirstArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3601. /**
  3602. * Find the first ManualRelanceLog that matches the filter or
  3603. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  3604. * Note, that providing `undefined` is treated as the value not being there.
  3605. * Read more here: https://pris.ly/d/null-undefined
  3606. * @param {ManualRelanceLogFindFirstOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3607. * @example
  3608. * // Get one ManualRelanceLog
  3609. * const manualRelanceLog = await prisma.manualRelanceLog.findFirstOrThrow({
  3610. * where: {
  3611. * // ... provide filter here
  3612. * }
  3613. * })
  3614. */
  3615. findFirstOrThrow<T extends ManualRelanceLogFindFirstOrThrowArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3616. /**
  3617. * Find zero or more ManualRelanceLogs that matches the filter.
  3618. * Note, that providing `undefined` is treated as the value not being there.
  3619. * Read more here: https://pris.ly/d/null-undefined
  3620. * @param {ManualRelanceLogFindManyArgs} args - Arguments to filter and select certain fields only.
  3621. * @example
  3622. * // Get all ManualRelanceLogs
  3623. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany()
  3624. *
  3625. * // Get first 10 ManualRelanceLogs
  3626. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany({ take: 10 })
  3627. *
  3628. * // Only select the `id`
  3629. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.findMany({ select: { id: true } })
  3630. *
  3631. */
  3632. findMany<T extends ManualRelanceLogFindManyArgs>(args?: SelectSubset<T, ManualRelanceLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  3633. /**
  3634. * Create a ManualRelanceLog.
  3635. * @param {ManualRelanceLogCreateArgs} args - Arguments to create a ManualRelanceLog.
  3636. * @example
  3637. * // Create one ManualRelanceLog
  3638. * const ManualRelanceLog = await prisma.manualRelanceLog.create({
  3639. * data: {
  3640. * // ... data to create a ManualRelanceLog
  3641. * }
  3642. * })
  3643. *
  3644. */
  3645. create<T extends ManualRelanceLogCreateArgs>(args: SelectSubset<T, ManualRelanceLogCreateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3646. /**
  3647. * Create many ManualRelanceLogs.
  3648. * @param {ManualRelanceLogCreateManyArgs} args - Arguments to create many ManualRelanceLogs.
  3649. * @example
  3650. * // Create many ManualRelanceLogs
  3651. * const manualRelanceLog = await prisma.manualRelanceLog.createMany({
  3652. * data: [
  3653. * // ... provide data here
  3654. * ]
  3655. * })
  3656. *
  3657. */
  3658. createMany<T extends ManualRelanceLogCreateManyArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3659. /**
  3660. * Create many ManualRelanceLogs and returns the data saved in the database.
  3661. * @param {ManualRelanceLogCreateManyAndReturnArgs} args - Arguments to create many ManualRelanceLogs.
  3662. * @example
  3663. * // Create many ManualRelanceLogs
  3664. * const manualRelanceLog = await prisma.manualRelanceLog.createManyAndReturn({
  3665. * data: [
  3666. * // ... provide data here
  3667. * ]
  3668. * })
  3669. *
  3670. * // Create many ManualRelanceLogs and only return the `id`
  3671. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.createManyAndReturn({
  3672. * select: { id: true },
  3673. * data: [
  3674. * // ... provide data here
  3675. * ]
  3676. * })
  3677. * Note, that providing `undefined` is treated as the value not being there.
  3678. * Read more here: https://pris.ly/d/null-undefined
  3679. *
  3680. */
  3681. createManyAndReturn<T extends ManualRelanceLogCreateManyAndReturnArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  3682. /**
  3683. * Delete a ManualRelanceLog.
  3684. * @param {ManualRelanceLogDeleteArgs} args - Arguments to delete one ManualRelanceLog.
  3685. * @example
  3686. * // Delete one ManualRelanceLog
  3687. * const ManualRelanceLog = await prisma.manualRelanceLog.delete({
  3688. * where: {
  3689. * // ... filter to delete one ManualRelanceLog
  3690. * }
  3691. * })
  3692. *
  3693. */
  3694. delete<T extends ManualRelanceLogDeleteArgs>(args: SelectSubset<T, ManualRelanceLogDeleteArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3695. /**
  3696. * Update one ManualRelanceLog.
  3697. * @param {ManualRelanceLogUpdateArgs} args - Arguments to update one ManualRelanceLog.
  3698. * @example
  3699. * // Update one ManualRelanceLog
  3700. * const manualRelanceLog = await prisma.manualRelanceLog.update({
  3701. * where: {
  3702. * // ... provide filter here
  3703. * },
  3704. * data: {
  3705. * // ... provide data here
  3706. * }
  3707. * })
  3708. *
  3709. */
  3710. update<T extends ManualRelanceLogUpdateArgs>(args: SelectSubset<T, ManualRelanceLogUpdateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3711. /**
  3712. * Delete zero or more ManualRelanceLogs.
  3713. * @param {ManualRelanceLogDeleteManyArgs} args - Arguments to filter ManualRelanceLogs to delete.
  3714. * @example
  3715. * // Delete a few ManualRelanceLogs
  3716. * const { count } = await prisma.manualRelanceLog.deleteMany({
  3717. * where: {
  3718. * // ... provide filter here
  3719. * }
  3720. * })
  3721. *
  3722. */
  3723. deleteMany<T extends ManualRelanceLogDeleteManyArgs>(args?: SelectSubset<T, ManualRelanceLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3724. /**
  3725. * Update zero or more ManualRelanceLogs.
  3726. * Note, that providing `undefined` is treated as the value not being there.
  3727. * Read more here: https://pris.ly/d/null-undefined
  3728. * @param {ManualRelanceLogUpdateManyArgs} args - Arguments to update one or more rows.
  3729. * @example
  3730. * // Update many ManualRelanceLogs
  3731. * const manualRelanceLog = await prisma.manualRelanceLog.updateMany({
  3732. * where: {
  3733. * // ... provide filter here
  3734. * },
  3735. * data: {
  3736. * // ... provide data here
  3737. * }
  3738. * })
  3739. *
  3740. */
  3741. updateMany<T extends ManualRelanceLogUpdateManyArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3742. /**
  3743. * Update zero or more ManualRelanceLogs and returns the data updated in the database.
  3744. * @param {ManualRelanceLogUpdateManyAndReturnArgs} args - Arguments to update many ManualRelanceLogs.
  3745. * @example
  3746. * // Update many ManualRelanceLogs
  3747. * const manualRelanceLog = await prisma.manualRelanceLog.updateManyAndReturn({
  3748. * where: {
  3749. * // ... provide filter here
  3750. * },
  3751. * data: [
  3752. * // ... provide data here
  3753. * ]
  3754. * })
  3755. *
  3756. * // Update zero or more ManualRelanceLogs and only return the `id`
  3757. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.updateManyAndReturn({
  3758. * select: { id: true },
  3759. * where: {
  3760. * // ... provide filter here
  3761. * },
  3762. * data: [
  3763. * // ... provide data here
  3764. * ]
  3765. * })
  3766. * Note, that providing `undefined` is treated as the value not being there.
  3767. * Read more here: https://pris.ly/d/null-undefined
  3768. *
  3769. */
  3770. updateManyAndReturn<T extends ManualRelanceLogUpdateManyAndReturnArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  3771. /**
  3772. * Create or update one ManualRelanceLog.
  3773. * @param {ManualRelanceLogUpsertArgs} args - Arguments to update or create a ManualRelanceLog.
  3774. * @example
  3775. * // Update or create a ManualRelanceLog
  3776. * const manualRelanceLog = await prisma.manualRelanceLog.upsert({
  3777. * create: {
  3778. * // ... data to create a ManualRelanceLog
  3779. * },
  3780. * update: {
  3781. * // ... in case it already exists, update
  3782. * },
  3783. * where: {
  3784. * // ... the filter for the ManualRelanceLog we want to update
  3785. * }
  3786. * })
  3787. */
  3788. upsert<T extends ManualRelanceLogUpsertArgs>(args: SelectSubset<T, ManualRelanceLogUpsertArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3789. /**
  3790. * Count the number of ManualRelanceLogs.
  3791. * Note, that providing `undefined` is treated as the value not being there.
  3792. * Read more here: https://pris.ly/d/null-undefined
  3793. * @param {ManualRelanceLogCountArgs} args - Arguments to filter ManualRelanceLogs to count.
  3794. * @example
  3795. * // Count the number of ManualRelanceLogs
  3796. * const count = await prisma.manualRelanceLog.count({
  3797. * where: {
  3798. * // ... the filter for the ManualRelanceLogs we want to count
  3799. * }
  3800. * })
  3801. **/
  3802. count<T extends ManualRelanceLogCountArgs>(
  3803. args?: Subset<T, ManualRelanceLogCountArgs>,
  3804. ): Prisma.PrismaPromise<
  3805. T extends $Utils.Record<'select', any>
  3806. ? T['select'] extends true
  3807. ? number
  3808. : GetScalarType<T['select'], ManualRelanceLogCountAggregateOutputType>
  3809. : number
  3810. >
  3811. /**
  3812. * Allows you to perform aggregations operations on a ManualRelanceLog.
  3813. * Note, that providing `undefined` is treated as the value not being there.
  3814. * Read more here: https://pris.ly/d/null-undefined
  3815. * @param {ManualRelanceLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  3816. * @example
  3817. * // Ordered by age ascending
  3818. * // Where email contains prisma.io
  3819. * // Limited to the 10 users
  3820. * const aggregations = await prisma.user.aggregate({
  3821. * _avg: {
  3822. * age: true,
  3823. * },
  3824. * where: {
  3825. * email: {
  3826. * contains: "prisma.io",
  3827. * },
  3828. * },
  3829. * orderBy: {
  3830. * age: "asc",
  3831. * },
  3832. * take: 10,
  3833. * })
  3834. **/
  3835. aggregate<T extends ManualRelanceLogAggregateArgs>(args: Subset<T, ManualRelanceLogAggregateArgs>): Prisma.PrismaPromise<GetManualRelanceLogAggregateType<T>>
  3836. /**
  3837. * Group by ManualRelanceLog.
  3838. * Note, that providing `undefined` is treated as the value not being there.
  3839. * Read more here: https://pris.ly/d/null-undefined
  3840. * @param {ManualRelanceLogGroupByArgs} args - Group by arguments.
  3841. * @example
  3842. * // Group by city, order by createdAt, get count
  3843. * const result = await prisma.user.groupBy({
  3844. * by: ['city', 'createdAt'],
  3845. * orderBy: {
  3846. * createdAt: true
  3847. * },
  3848. * _count: {
  3849. * _all: true
  3850. * },
  3851. * })
  3852. *
  3853. **/
  3854. groupBy<
  3855. T extends ManualRelanceLogGroupByArgs,
  3856. HasSelectOrTake extends Or<
  3857. Extends<'skip', Keys<T>>,
  3858. Extends<'take', Keys<T>>
  3859. >,
  3860. OrderByArg extends True extends HasSelectOrTake
  3861. ? { orderBy: ManualRelanceLogGroupByArgs['orderBy'] }
  3862. : { orderBy?: ManualRelanceLogGroupByArgs['orderBy'] },
  3863. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  3864. ByFields extends MaybeTupleToUnion<T['by']>,
  3865. ByValid extends Has<ByFields, OrderFields>,
  3866. HavingFields extends GetHavingFields<T['having']>,
  3867. HavingValid extends Has<ByFields, HavingFields>,
  3868. ByEmpty extends T['by'] extends never[] ? True : False,
  3869. InputErrors extends ByEmpty extends True
  3870. ? `Error: "by" must not be empty.`
  3871. : HavingValid extends False
  3872. ? {
  3873. [P in HavingFields]: P extends ByFields
  3874. ? never
  3875. : P extends string
  3876. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  3877. : [
  3878. Error,
  3879. 'Field ',
  3880. P,
  3881. ` in "having" needs to be provided in "by"`,
  3882. ]
  3883. }[HavingFields]
  3884. : 'take' extends Keys<T>
  3885. ? 'orderBy' extends Keys<T>
  3886. ? ByValid extends True
  3887. ? {}
  3888. : {
  3889. [P in OrderFields]: P extends ByFields
  3890. ? never
  3891. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3892. }[OrderFields]
  3893. : 'Error: If you provide "take", you also need to provide "orderBy"'
  3894. : 'skip' extends Keys<T>
  3895. ? 'orderBy' extends Keys<T>
  3896. ? ByValid extends True
  3897. ? {}
  3898. : {
  3899. [P in OrderFields]: P extends ByFields
  3900. ? never
  3901. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3902. }[OrderFields]
  3903. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  3904. : ByValid extends True
  3905. ? {}
  3906. : {
  3907. [P in OrderFields]: P extends ByFields
  3908. ? never
  3909. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3910. }[OrderFields]
  3911. >(args: SubsetIntersection<T, ManualRelanceLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetManualRelanceLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  3912. /**
  3913. * Fields of the ManualRelanceLog model
  3914. */
  3915. readonly fields: ManualRelanceLogFieldRefs;
  3916. }
  3917. /**
  3918. * The delegate class that acts as a "Promise-like" for ManualRelanceLog.
  3919. * Why is this prefixed with `Prisma__`?
  3920. * Because we want to prevent naming conflicts as mentioned in
  3921. * https://github.com/prisma/prisma-client-js/issues/707
  3922. */
  3923. export interface Prisma__ManualRelanceLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  3924. readonly [Symbol.toStringTag]: "PrismaPromise"
  3925. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  3926. /**
  3927. * Attaches callbacks for the resolution and/or rejection of the Promise.
  3928. * @param onfulfilled The callback to execute when the Promise is resolved.
  3929. * @param onrejected The callback to execute when the Promise is rejected.
  3930. * @returns A Promise for the completion of which ever callback is executed.
  3931. */
  3932. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  3933. /**
  3934. * Attaches a callback for only the rejection of the Promise.
  3935. * @param onrejected The callback to execute when the Promise is rejected.
  3936. * @returns A Promise for the completion of the callback.
  3937. */
  3938. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  3939. /**
  3940. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  3941. * resolved value cannot be modified from the callback.
  3942. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  3943. * @returns A Promise for the completion of the callback.
  3944. */
  3945. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  3946. }
  3947. /**
  3948. * Fields of the ManualRelanceLog model
  3949. */
  3950. interface ManualRelanceLogFieldRefs {
  3951. readonly id: FieldRef<"ManualRelanceLog", 'String'>
  3952. readonly workspaceId: FieldRef<"ManualRelanceLog", 'String'>
  3953. readonly subject: FieldRef<"ManualRelanceLog", 'String'>
  3954. readonly recipientCount: FieldRef<"ManualRelanceLog", 'Int'>
  3955. readonly sentCount: FieldRef<"ManualRelanceLog", 'Int'>
  3956. readonly failedCount: FieldRef<"ManualRelanceLog", 'Int'>
  3957. readonly sentAt: FieldRef<"ManualRelanceLog", 'DateTime'>
  3958. }
  3959. // Custom InputTypes
  3960. /**
  3961. * ManualRelanceLog findUnique
  3962. */
  3963. export type ManualRelanceLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3964. /**
  3965. * Select specific fields to fetch from the ManualRelanceLog
  3966. */
  3967. select?: ManualRelanceLogSelect<ExtArgs> | null
  3968. /**
  3969. * Omit specific fields from the ManualRelanceLog
  3970. */
  3971. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3972. /**
  3973. * Choose, which related nodes to fetch as well
  3974. */
  3975. include?: ManualRelanceLogInclude<ExtArgs> | null
  3976. /**
  3977. * Filter, which ManualRelanceLog to fetch.
  3978. */
  3979. where: ManualRelanceLogWhereUniqueInput
  3980. }
  3981. /**
  3982. * ManualRelanceLog findUniqueOrThrow
  3983. */
  3984. export type ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3985. /**
  3986. * Select specific fields to fetch from the ManualRelanceLog
  3987. */
  3988. select?: ManualRelanceLogSelect<ExtArgs> | null
  3989. /**
  3990. * Omit specific fields from the ManualRelanceLog
  3991. */
  3992. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3993. /**
  3994. * Choose, which related nodes to fetch as well
  3995. */
  3996. include?: ManualRelanceLogInclude<ExtArgs> | null
  3997. /**
  3998. * Filter, which ManualRelanceLog to fetch.
  3999. */
  4000. where: ManualRelanceLogWhereUniqueInput
  4001. }
  4002. /**
  4003. * ManualRelanceLog findFirst
  4004. */
  4005. export type ManualRelanceLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4006. /**
  4007. * Select specific fields to fetch from the ManualRelanceLog
  4008. */
  4009. select?: ManualRelanceLogSelect<ExtArgs> | null
  4010. /**
  4011. * Omit specific fields from the ManualRelanceLog
  4012. */
  4013. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4014. /**
  4015. * Choose, which related nodes to fetch as well
  4016. */
  4017. include?: ManualRelanceLogInclude<ExtArgs> | null
  4018. /**
  4019. * Filter, which ManualRelanceLog to fetch.
  4020. */
  4021. where?: ManualRelanceLogWhereInput
  4022. /**
  4023. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4024. *
  4025. * Determine the order of ManualRelanceLogs to fetch.
  4026. */
  4027. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4028. /**
  4029. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4030. *
  4031. * Sets the position for searching for ManualRelanceLogs.
  4032. */
  4033. cursor?: ManualRelanceLogWhereUniqueInput
  4034. /**
  4035. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4036. *
  4037. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4038. */
  4039. take?: number
  4040. /**
  4041. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4042. *
  4043. * Skip the first `n` ManualRelanceLogs.
  4044. */
  4045. skip?: number
  4046. /**
  4047. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4048. *
  4049. * Filter by unique combinations of ManualRelanceLogs.
  4050. */
  4051. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4052. }
  4053. /**
  4054. * ManualRelanceLog findFirstOrThrow
  4055. */
  4056. export type ManualRelanceLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4057. /**
  4058. * Select specific fields to fetch from the ManualRelanceLog
  4059. */
  4060. select?: ManualRelanceLogSelect<ExtArgs> | null
  4061. /**
  4062. * Omit specific fields from the ManualRelanceLog
  4063. */
  4064. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4065. /**
  4066. * Choose, which related nodes to fetch as well
  4067. */
  4068. include?: ManualRelanceLogInclude<ExtArgs> | null
  4069. /**
  4070. * Filter, which ManualRelanceLog to fetch.
  4071. */
  4072. where?: ManualRelanceLogWhereInput
  4073. /**
  4074. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4075. *
  4076. * Determine the order of ManualRelanceLogs to fetch.
  4077. */
  4078. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4079. /**
  4080. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4081. *
  4082. * Sets the position for searching for ManualRelanceLogs.
  4083. */
  4084. cursor?: ManualRelanceLogWhereUniqueInput
  4085. /**
  4086. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4087. *
  4088. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4089. */
  4090. take?: number
  4091. /**
  4092. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4093. *
  4094. * Skip the first `n` ManualRelanceLogs.
  4095. */
  4096. skip?: number
  4097. /**
  4098. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4099. *
  4100. * Filter by unique combinations of ManualRelanceLogs.
  4101. */
  4102. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4103. }
  4104. /**
  4105. * ManualRelanceLog findMany
  4106. */
  4107. export type ManualRelanceLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4108. /**
  4109. * Select specific fields to fetch from the ManualRelanceLog
  4110. */
  4111. select?: ManualRelanceLogSelect<ExtArgs> | null
  4112. /**
  4113. * Omit specific fields from the ManualRelanceLog
  4114. */
  4115. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4116. /**
  4117. * Choose, which related nodes to fetch as well
  4118. */
  4119. include?: ManualRelanceLogInclude<ExtArgs> | null
  4120. /**
  4121. * Filter, which ManualRelanceLogs to fetch.
  4122. */
  4123. where?: ManualRelanceLogWhereInput
  4124. /**
  4125. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4126. *
  4127. * Determine the order of ManualRelanceLogs to fetch.
  4128. */
  4129. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4130. /**
  4131. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4132. *
  4133. * Sets the position for listing ManualRelanceLogs.
  4134. */
  4135. cursor?: ManualRelanceLogWhereUniqueInput
  4136. /**
  4137. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4138. *
  4139. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4140. */
  4141. take?: number
  4142. /**
  4143. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4144. *
  4145. * Skip the first `n` ManualRelanceLogs.
  4146. */
  4147. skip?: number
  4148. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4149. }
  4150. /**
  4151. * ManualRelanceLog create
  4152. */
  4153. export type ManualRelanceLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4154. /**
  4155. * Select specific fields to fetch from the ManualRelanceLog
  4156. */
  4157. select?: ManualRelanceLogSelect<ExtArgs> | null
  4158. /**
  4159. * Omit specific fields from the ManualRelanceLog
  4160. */
  4161. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4162. /**
  4163. * Choose, which related nodes to fetch as well
  4164. */
  4165. include?: ManualRelanceLogInclude<ExtArgs> | null
  4166. /**
  4167. * The data needed to create a ManualRelanceLog.
  4168. */
  4169. data: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4170. }
  4171. /**
  4172. * ManualRelanceLog createMany
  4173. */
  4174. export type ManualRelanceLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4175. /**
  4176. * The data used to create many ManualRelanceLogs.
  4177. */
  4178. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4179. skipDuplicates?: boolean
  4180. }
  4181. /**
  4182. * ManualRelanceLog createManyAndReturn
  4183. */
  4184. export type ManualRelanceLogCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4185. /**
  4186. * Select specific fields to fetch from the ManualRelanceLog
  4187. */
  4188. select?: ManualRelanceLogSelectCreateManyAndReturn<ExtArgs> | null
  4189. /**
  4190. * Omit specific fields from the ManualRelanceLog
  4191. */
  4192. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4193. /**
  4194. * The data used to create many ManualRelanceLogs.
  4195. */
  4196. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4197. skipDuplicates?: boolean
  4198. /**
  4199. * Choose, which related nodes to fetch as well
  4200. */
  4201. include?: ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs> | null
  4202. }
  4203. /**
  4204. * ManualRelanceLog update
  4205. */
  4206. export type ManualRelanceLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4207. /**
  4208. * Select specific fields to fetch from the ManualRelanceLog
  4209. */
  4210. select?: ManualRelanceLogSelect<ExtArgs> | null
  4211. /**
  4212. * Omit specific fields from the ManualRelanceLog
  4213. */
  4214. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4215. /**
  4216. * Choose, which related nodes to fetch as well
  4217. */
  4218. include?: ManualRelanceLogInclude<ExtArgs> | null
  4219. /**
  4220. * The data needed to update a ManualRelanceLog.
  4221. */
  4222. data: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4223. /**
  4224. * Choose, which ManualRelanceLog to update.
  4225. */
  4226. where: ManualRelanceLogWhereUniqueInput
  4227. }
  4228. /**
  4229. * ManualRelanceLog updateMany
  4230. */
  4231. export type ManualRelanceLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4232. /**
  4233. * The data used to update ManualRelanceLogs.
  4234. */
  4235. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4236. /**
  4237. * Filter which ManualRelanceLogs to update
  4238. */
  4239. where?: ManualRelanceLogWhereInput
  4240. /**
  4241. * Limit how many ManualRelanceLogs to update.
  4242. */
  4243. limit?: number
  4244. }
  4245. /**
  4246. * ManualRelanceLog updateManyAndReturn
  4247. */
  4248. export type ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4249. /**
  4250. * Select specific fields to fetch from the ManualRelanceLog
  4251. */
  4252. select?: ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs> | null
  4253. /**
  4254. * Omit specific fields from the ManualRelanceLog
  4255. */
  4256. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4257. /**
  4258. * The data used to update ManualRelanceLogs.
  4259. */
  4260. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4261. /**
  4262. * Filter which ManualRelanceLogs to update
  4263. */
  4264. where?: ManualRelanceLogWhereInput
  4265. /**
  4266. * Limit how many ManualRelanceLogs to update.
  4267. */
  4268. limit?: number
  4269. /**
  4270. * Choose, which related nodes to fetch as well
  4271. */
  4272. include?: ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs> | null
  4273. }
  4274. /**
  4275. * ManualRelanceLog upsert
  4276. */
  4277. export type ManualRelanceLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4278. /**
  4279. * Select specific fields to fetch from the ManualRelanceLog
  4280. */
  4281. select?: ManualRelanceLogSelect<ExtArgs> | null
  4282. /**
  4283. * Omit specific fields from the ManualRelanceLog
  4284. */
  4285. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4286. /**
  4287. * Choose, which related nodes to fetch as well
  4288. */
  4289. include?: ManualRelanceLogInclude<ExtArgs> | null
  4290. /**
  4291. * The filter to search for the ManualRelanceLog to update in case it exists.
  4292. */
  4293. where: ManualRelanceLogWhereUniqueInput
  4294. /**
  4295. * In case the ManualRelanceLog found by the `where` argument doesn't exist, create a new ManualRelanceLog with this data.
  4296. */
  4297. create: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4298. /**
  4299. * In case the ManualRelanceLog was found with the provided `where` argument, update it with this data.
  4300. */
  4301. update: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4302. }
  4303. /**
  4304. * ManualRelanceLog delete
  4305. */
  4306. export type ManualRelanceLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4307. /**
  4308. * Select specific fields to fetch from the ManualRelanceLog
  4309. */
  4310. select?: ManualRelanceLogSelect<ExtArgs> | null
  4311. /**
  4312. * Omit specific fields from the ManualRelanceLog
  4313. */
  4314. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4315. /**
  4316. * Choose, which related nodes to fetch as well
  4317. */
  4318. include?: ManualRelanceLogInclude<ExtArgs> | null
  4319. /**
  4320. * Filter which ManualRelanceLog to delete.
  4321. */
  4322. where: ManualRelanceLogWhereUniqueInput
  4323. }
  4324. /**
  4325. * ManualRelanceLog deleteMany
  4326. */
  4327. export type ManualRelanceLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4328. /**
  4329. * Filter which ManualRelanceLogs to delete
  4330. */
  4331. where?: ManualRelanceLogWhereInput
  4332. /**
  4333. * Limit how many ManualRelanceLogs to delete.
  4334. */
  4335. limit?: number
  4336. }
  4337. /**
  4338. * ManualRelanceLog without action
  4339. */
  4340. export type ManualRelanceLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4341. /**
  4342. * Select specific fields to fetch from the ManualRelanceLog
  4343. */
  4344. select?: ManualRelanceLogSelect<ExtArgs> | null
  4345. /**
  4346. * Omit specific fields from the ManualRelanceLog
  4347. */
  4348. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4349. /**
  4350. * Choose, which related nodes to fetch as well
  4351. */
  4352. include?: ManualRelanceLogInclude<ExtArgs> | null
  4353. }
  4354. /**
  4355. * Model Contributor
  4356. */
  4357. export type AggregateContributor = {
  4358. _count: ContributorCountAggregateOutputType | null
  4359. _min: ContributorMinAggregateOutputType | null
  4360. _max: ContributorMaxAggregateOutputType | null
  4361. }
  4362. export type ContributorMinAggregateOutputType = {
  4363. id: string | null
  4364. workspaceId: string | null
  4365. email: string | null
  4366. service: string | null
  4367. status: $Enums.ContributorStatus | null
  4368. invitedAt: Date | null
  4369. lastRemindedAt: Date | null
  4370. createdAt: Date | null
  4371. }
  4372. export type ContributorMaxAggregateOutputType = {
  4373. id: string | null
  4374. workspaceId: string | null
  4375. email: string | null
  4376. service: string | null
  4377. status: $Enums.ContributorStatus | null
  4378. invitedAt: Date | null
  4379. lastRemindedAt: Date | null
  4380. createdAt: Date | null
  4381. }
  4382. export type ContributorCountAggregateOutputType = {
  4383. id: number
  4384. workspaceId: number
  4385. email: number
  4386. service: number
  4387. status: number
  4388. invitedAt: number
  4389. lastRemindedAt: number
  4390. createdAt: number
  4391. _all: number
  4392. }
  4393. export type ContributorMinAggregateInputType = {
  4394. id?: true
  4395. workspaceId?: true
  4396. email?: true
  4397. service?: true
  4398. status?: true
  4399. invitedAt?: true
  4400. lastRemindedAt?: true
  4401. createdAt?: true
  4402. }
  4403. export type ContributorMaxAggregateInputType = {
  4404. id?: true
  4405. workspaceId?: true
  4406. email?: true
  4407. service?: true
  4408. status?: true
  4409. invitedAt?: true
  4410. lastRemindedAt?: true
  4411. createdAt?: true
  4412. }
  4413. export type ContributorCountAggregateInputType = {
  4414. id?: true
  4415. workspaceId?: true
  4416. email?: true
  4417. service?: true
  4418. status?: true
  4419. invitedAt?: true
  4420. lastRemindedAt?: true
  4421. createdAt?: true
  4422. _all?: true
  4423. }
  4424. export type ContributorAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4425. /**
  4426. * Filter which Contributor to aggregate.
  4427. */
  4428. where?: ContributorWhereInput
  4429. /**
  4430. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4431. *
  4432. * Determine the order of Contributors to fetch.
  4433. */
  4434. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  4435. /**
  4436. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4437. *
  4438. * Sets the start position
  4439. */
  4440. cursor?: ContributorWhereUniqueInput
  4441. /**
  4442. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4443. *
  4444. * Take `±n` Contributors from the position of the cursor.
  4445. */
  4446. take?: number
  4447. /**
  4448. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4449. *
  4450. * Skip the first `n` Contributors.
  4451. */
  4452. skip?: number
  4453. /**
  4454. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4455. *
  4456. * Count returned Contributors
  4457. **/
  4458. _count?: true | ContributorCountAggregateInputType
  4459. /**
  4460. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4461. *
  4462. * Select which fields to find the minimum value
  4463. **/
  4464. _min?: ContributorMinAggregateInputType
  4465. /**
  4466. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4467. *
  4468. * Select which fields to find the maximum value
  4469. **/
  4470. _max?: ContributorMaxAggregateInputType
  4471. }
  4472. export type GetContributorAggregateType<T extends ContributorAggregateArgs> = {
  4473. [P in keyof T & keyof AggregateContributor]: P extends '_count' | 'count'
  4474. ? T[P] extends true
  4475. ? number
  4476. : GetScalarType<T[P], AggregateContributor[P]>
  4477. : GetScalarType<T[P], AggregateContributor[P]>
  4478. }
  4479. export type ContributorGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4480. where?: ContributorWhereInput
  4481. orderBy?: ContributorOrderByWithAggregationInput | ContributorOrderByWithAggregationInput[]
  4482. by: ContributorScalarFieldEnum[] | ContributorScalarFieldEnum
  4483. having?: ContributorScalarWhereWithAggregatesInput
  4484. take?: number
  4485. skip?: number
  4486. _count?: ContributorCountAggregateInputType | true
  4487. _min?: ContributorMinAggregateInputType
  4488. _max?: ContributorMaxAggregateInputType
  4489. }
  4490. export type ContributorGroupByOutputType = {
  4491. id: string
  4492. workspaceId: string
  4493. email: string
  4494. service: string | null
  4495. status: $Enums.ContributorStatus
  4496. invitedAt: Date
  4497. lastRemindedAt: Date | null
  4498. createdAt: Date
  4499. _count: ContributorCountAggregateOutputType | null
  4500. _min: ContributorMinAggregateOutputType | null
  4501. _max: ContributorMaxAggregateOutputType | null
  4502. }
  4503. type GetContributorGroupByPayload<T extends ContributorGroupByArgs> = Prisma.PrismaPromise<
  4504. Array<
  4505. PickEnumerable<ContributorGroupByOutputType, T['by']> &
  4506. {
  4507. [P in ((keyof T) & (keyof ContributorGroupByOutputType))]: P extends '_count'
  4508. ? T[P] extends boolean
  4509. ? number
  4510. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4511. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4512. }
  4513. >
  4514. >
  4515. export type ContributorSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4516. id?: boolean
  4517. workspaceId?: boolean
  4518. email?: boolean
  4519. service?: boolean
  4520. status?: boolean
  4521. invitedAt?: boolean
  4522. lastRemindedAt?: boolean
  4523. createdAt?: boolean
  4524. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4525. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4526. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4527. }, ExtArgs["result"]["contributor"]>
  4528. export type ContributorSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4529. id?: boolean
  4530. workspaceId?: boolean
  4531. email?: boolean
  4532. service?: boolean
  4533. status?: boolean
  4534. invitedAt?: boolean
  4535. lastRemindedAt?: boolean
  4536. createdAt?: boolean
  4537. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4538. }, ExtArgs["result"]["contributor"]>
  4539. export type ContributorSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4540. id?: boolean
  4541. workspaceId?: boolean
  4542. email?: boolean
  4543. service?: boolean
  4544. status?: boolean
  4545. invitedAt?: boolean
  4546. lastRemindedAt?: boolean
  4547. createdAt?: boolean
  4548. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4549. }, ExtArgs["result"]["contributor"]>
  4550. export type ContributorSelectScalar = {
  4551. id?: boolean
  4552. workspaceId?: boolean
  4553. email?: boolean
  4554. service?: boolean
  4555. status?: boolean
  4556. invitedAt?: boolean
  4557. lastRemindedAt?: boolean
  4558. createdAt?: boolean
  4559. }
  4560. export type ContributorOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "email" | "service" | "status" | "invitedAt" | "lastRemindedAt" | "createdAt", ExtArgs["result"]["contributor"]>
  4561. export type ContributorInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4562. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4563. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4564. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4565. }
  4566. export type ContributorIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4567. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4568. }
  4569. export type ContributorIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4570. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4571. }
  4572. export type $ContributorPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4573. name: "Contributor"
  4574. objects: {
  4575. workspace: Prisma.$WorkspacePayload<ExtArgs>
  4576. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  4577. }
  4578. scalars: $Extensions.GetPayloadResult<{
  4579. id: string
  4580. workspaceId: string
  4581. email: string
  4582. /**
  4583. * Service / direction (optionnel), saisi à l'invitation ou éditable, ciblage des relances manuelles.
  4584. */
  4585. service: string | null
  4586. status: $Enums.ContributorStatus
  4587. invitedAt: Date
  4588. lastRemindedAt: Date | null
  4589. createdAt: Date
  4590. }, ExtArgs["result"]["contributor"]>
  4591. composites: {}
  4592. }
  4593. type ContributorGetPayload<S extends boolean | null | undefined | ContributorDefaultArgs> = $Result.GetResult<Prisma.$ContributorPayload, S>
  4594. type ContributorCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  4595. Omit<ContributorFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  4596. select?: ContributorCountAggregateInputType | true
  4597. }
  4598. export interface ContributorDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  4599. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Contributor'], meta: { name: 'Contributor' } }
  4600. /**
  4601. * Find zero or one Contributor that matches the filter.
  4602. * @param {ContributorFindUniqueArgs} args - Arguments to find a Contributor
  4603. * @example
  4604. * // Get one Contributor
  4605. * const contributor = await prisma.contributor.findUnique({
  4606. * where: {
  4607. * // ... provide filter here
  4608. * }
  4609. * })
  4610. */
  4611. findUnique<T extends ContributorFindUniqueArgs>(args: SelectSubset<T, ContributorFindUniqueArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4612. /**
  4613. * Find one Contributor that matches the filter or throw an error with `error.code='P2025'`
  4614. * if no matches were found.
  4615. * @param {ContributorFindUniqueOrThrowArgs} args - Arguments to find a Contributor
  4616. * @example
  4617. * // Get one Contributor
  4618. * const contributor = await prisma.contributor.findUniqueOrThrow({
  4619. * where: {
  4620. * // ... provide filter here
  4621. * }
  4622. * })
  4623. */
  4624. findUniqueOrThrow<T extends ContributorFindUniqueOrThrowArgs>(args: SelectSubset<T, ContributorFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4625. /**
  4626. * Find the first Contributor that matches the filter.
  4627. * Note, that providing `undefined` is treated as the value not being there.
  4628. * Read more here: https://pris.ly/d/null-undefined
  4629. * @param {ContributorFindFirstArgs} args - Arguments to find a Contributor
  4630. * @example
  4631. * // Get one Contributor
  4632. * const contributor = await prisma.contributor.findFirst({
  4633. * where: {
  4634. * // ... provide filter here
  4635. * }
  4636. * })
  4637. */
  4638. findFirst<T extends ContributorFindFirstArgs>(args?: SelectSubset<T, ContributorFindFirstArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4639. /**
  4640. * Find the first Contributor that matches the filter or
  4641. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  4642. * Note, that providing `undefined` is treated as the value not being there.
  4643. * Read more here: https://pris.ly/d/null-undefined
  4644. * @param {ContributorFindFirstOrThrowArgs} args - Arguments to find a Contributor
  4645. * @example
  4646. * // Get one Contributor
  4647. * const contributor = await prisma.contributor.findFirstOrThrow({
  4648. * where: {
  4649. * // ... provide filter here
  4650. * }
  4651. * })
  4652. */
  4653. findFirstOrThrow<T extends ContributorFindFirstOrThrowArgs>(args?: SelectSubset<T, ContributorFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4654. /**
  4655. * Find zero or more Contributors that matches the filter.
  4656. * Note, that providing `undefined` is treated as the value not being there.
  4657. * Read more here: https://pris.ly/d/null-undefined
  4658. * @param {ContributorFindManyArgs} args - Arguments to filter and select certain fields only.
  4659. * @example
  4660. * // Get all Contributors
  4661. * const contributors = await prisma.contributor.findMany()
  4662. *
  4663. * // Get first 10 Contributors
  4664. * const contributors = await prisma.contributor.findMany({ take: 10 })
  4665. *
  4666. * // Only select the `id`
  4667. * const contributorWithIdOnly = await prisma.contributor.findMany({ select: { id: true } })
  4668. *
  4669. */
  4670. findMany<T extends ContributorFindManyArgs>(args?: SelectSubset<T, ContributorFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  4671. /**
  4672. * Create a Contributor.
  4673. * @param {ContributorCreateArgs} args - Arguments to create a Contributor.
  4674. * @example
  4675. * // Create one Contributor
  4676. * const Contributor = await prisma.contributor.create({
  4677. * data: {
  4678. * // ... data to create a Contributor
  4679. * }
  4680. * })
  4681. *
  4682. */
  4683. create<T extends ContributorCreateArgs>(args: SelectSubset<T, ContributorCreateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4684. /**
  4685. * Create many Contributors.
  4686. * @param {ContributorCreateManyArgs} args - Arguments to create many Contributors.
  4687. * @example
  4688. * // Create many Contributors
  4689. * const contributor = await prisma.contributor.createMany({
  4690. * data: [
  4691. * // ... provide data here
  4692. * ]
  4693. * })
  4694. *
  4695. */
  4696. createMany<T extends ContributorCreateManyArgs>(args?: SelectSubset<T, ContributorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4697. /**
  4698. * Create many Contributors and returns the data saved in the database.
  4699. * @param {ContributorCreateManyAndReturnArgs} args - Arguments to create many Contributors.
  4700. * @example
  4701. * // Create many Contributors
  4702. * const contributor = await prisma.contributor.createManyAndReturn({
  4703. * data: [
  4704. * // ... provide data here
  4705. * ]
  4706. * })
  4707. *
  4708. * // Create many Contributors and only return the `id`
  4709. * const contributorWithIdOnly = await prisma.contributor.createManyAndReturn({
  4710. * select: { id: true },
  4711. * data: [
  4712. * // ... provide data here
  4713. * ]
  4714. * })
  4715. * Note, that providing `undefined` is treated as the value not being there.
  4716. * Read more here: https://pris.ly/d/null-undefined
  4717. *
  4718. */
  4719. createManyAndReturn<T extends ContributorCreateManyAndReturnArgs>(args?: SelectSubset<T, ContributorCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  4720. /**
  4721. * Delete a Contributor.
  4722. * @param {ContributorDeleteArgs} args - Arguments to delete one Contributor.
  4723. * @example
  4724. * // Delete one Contributor
  4725. * const Contributor = await prisma.contributor.delete({
  4726. * where: {
  4727. * // ... filter to delete one Contributor
  4728. * }
  4729. * })
  4730. *
  4731. */
  4732. delete<T extends ContributorDeleteArgs>(args: SelectSubset<T, ContributorDeleteArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4733. /**
  4734. * Update one Contributor.
  4735. * @param {ContributorUpdateArgs} args - Arguments to update one Contributor.
  4736. * @example
  4737. * // Update one Contributor
  4738. * const contributor = await prisma.contributor.update({
  4739. * where: {
  4740. * // ... provide filter here
  4741. * },
  4742. * data: {
  4743. * // ... provide data here
  4744. * }
  4745. * })
  4746. *
  4747. */
  4748. update<T extends ContributorUpdateArgs>(args: SelectSubset<T, ContributorUpdateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4749. /**
  4750. * Delete zero or more Contributors.
  4751. * @param {ContributorDeleteManyArgs} args - Arguments to filter Contributors to delete.
  4752. * @example
  4753. * // Delete a few Contributors
  4754. * const { count } = await prisma.contributor.deleteMany({
  4755. * where: {
  4756. * // ... provide filter here
  4757. * }
  4758. * })
  4759. *
  4760. */
  4761. deleteMany<T extends ContributorDeleteManyArgs>(args?: SelectSubset<T, ContributorDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4762. /**
  4763. * Update zero or more Contributors.
  4764. * Note, that providing `undefined` is treated as the value not being there.
  4765. * Read more here: https://pris.ly/d/null-undefined
  4766. * @param {ContributorUpdateManyArgs} args - Arguments to update one or more rows.
  4767. * @example
  4768. * // Update many Contributors
  4769. * const contributor = await prisma.contributor.updateMany({
  4770. * where: {
  4771. * // ... provide filter here
  4772. * },
  4773. * data: {
  4774. * // ... provide data here
  4775. * }
  4776. * })
  4777. *
  4778. */
  4779. updateMany<T extends ContributorUpdateManyArgs>(args: SelectSubset<T, ContributorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4780. /**
  4781. * Update zero or more Contributors and returns the data updated in the database.
  4782. * @param {ContributorUpdateManyAndReturnArgs} args - Arguments to update many Contributors.
  4783. * @example
  4784. * // Update many Contributors
  4785. * const contributor = await prisma.contributor.updateManyAndReturn({
  4786. * where: {
  4787. * // ... provide filter here
  4788. * },
  4789. * data: [
  4790. * // ... provide data here
  4791. * ]
  4792. * })
  4793. *
  4794. * // Update zero or more Contributors and only return the `id`
  4795. * const contributorWithIdOnly = await prisma.contributor.updateManyAndReturn({
  4796. * select: { id: true },
  4797. * where: {
  4798. * // ... provide filter here
  4799. * },
  4800. * data: [
  4801. * // ... provide data here
  4802. * ]
  4803. * })
  4804. * Note, that providing `undefined` is treated as the value not being there.
  4805. * Read more here: https://pris.ly/d/null-undefined
  4806. *
  4807. */
  4808. updateManyAndReturn<T extends ContributorUpdateManyAndReturnArgs>(args: SelectSubset<T, ContributorUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  4809. /**
  4810. * Create or update one Contributor.
  4811. * @param {ContributorUpsertArgs} args - Arguments to update or create a Contributor.
  4812. * @example
  4813. * // Update or create a Contributor
  4814. * const contributor = await prisma.contributor.upsert({
  4815. * create: {
  4816. * // ... data to create a Contributor
  4817. * },
  4818. * update: {
  4819. * // ... in case it already exists, update
  4820. * },
  4821. * where: {
  4822. * // ... the filter for the Contributor we want to update
  4823. * }
  4824. * })
  4825. */
  4826. upsert<T extends ContributorUpsertArgs>(args: SelectSubset<T, ContributorUpsertArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4827. /**
  4828. * Count the number of Contributors.
  4829. * Note, that providing `undefined` is treated as the value not being there.
  4830. * Read more here: https://pris.ly/d/null-undefined
  4831. * @param {ContributorCountArgs} args - Arguments to filter Contributors to count.
  4832. * @example
  4833. * // Count the number of Contributors
  4834. * const count = await prisma.contributor.count({
  4835. * where: {
  4836. * // ... the filter for the Contributors we want to count
  4837. * }
  4838. * })
  4839. **/
  4840. count<T extends ContributorCountArgs>(
  4841. args?: Subset<T, ContributorCountArgs>,
  4842. ): Prisma.PrismaPromise<
  4843. T extends $Utils.Record<'select', any>
  4844. ? T['select'] extends true
  4845. ? number
  4846. : GetScalarType<T['select'], ContributorCountAggregateOutputType>
  4847. : number
  4848. >
  4849. /**
  4850. * Allows you to perform aggregations operations on a Contributor.
  4851. * Note, that providing `undefined` is treated as the value not being there.
  4852. * Read more here: https://pris.ly/d/null-undefined
  4853. * @param {ContributorAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  4854. * @example
  4855. * // Ordered by age ascending
  4856. * // Where email contains prisma.io
  4857. * // Limited to the 10 users
  4858. * const aggregations = await prisma.user.aggregate({
  4859. * _avg: {
  4860. * age: true,
  4861. * },
  4862. * where: {
  4863. * email: {
  4864. * contains: "prisma.io",
  4865. * },
  4866. * },
  4867. * orderBy: {
  4868. * age: "asc",
  4869. * },
  4870. * take: 10,
  4871. * })
  4872. **/
  4873. aggregate<T extends ContributorAggregateArgs>(args: Subset<T, ContributorAggregateArgs>): Prisma.PrismaPromise<GetContributorAggregateType<T>>
  4874. /**
  4875. * Group by Contributor.
  4876. * Note, that providing `undefined` is treated as the value not being there.
  4877. * Read more here: https://pris.ly/d/null-undefined
  4878. * @param {ContributorGroupByArgs} args - Group by arguments.
  4879. * @example
  4880. * // Group by city, order by createdAt, get count
  4881. * const result = await prisma.user.groupBy({
  4882. * by: ['city', 'createdAt'],
  4883. * orderBy: {
  4884. * createdAt: true
  4885. * },
  4886. * _count: {
  4887. * _all: true
  4888. * },
  4889. * })
  4890. *
  4891. **/
  4892. groupBy<
  4893. T extends ContributorGroupByArgs,
  4894. HasSelectOrTake extends Or<
  4895. Extends<'skip', Keys<T>>,
  4896. Extends<'take', Keys<T>>
  4897. >,
  4898. OrderByArg extends True extends HasSelectOrTake
  4899. ? { orderBy: ContributorGroupByArgs['orderBy'] }
  4900. : { orderBy?: ContributorGroupByArgs['orderBy'] },
  4901. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  4902. ByFields extends MaybeTupleToUnion<T['by']>,
  4903. ByValid extends Has<ByFields, OrderFields>,
  4904. HavingFields extends GetHavingFields<T['having']>,
  4905. HavingValid extends Has<ByFields, HavingFields>,
  4906. ByEmpty extends T['by'] extends never[] ? True : False,
  4907. InputErrors extends ByEmpty extends True
  4908. ? `Error: "by" must not be empty.`
  4909. : HavingValid extends False
  4910. ? {
  4911. [P in HavingFields]: P extends ByFields
  4912. ? never
  4913. : P extends string
  4914. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  4915. : [
  4916. Error,
  4917. 'Field ',
  4918. P,
  4919. ` in "having" needs to be provided in "by"`,
  4920. ]
  4921. }[HavingFields]
  4922. : 'take' extends Keys<T>
  4923. ? 'orderBy' extends Keys<T>
  4924. ? ByValid extends True
  4925. ? {}
  4926. : {
  4927. [P in OrderFields]: P extends ByFields
  4928. ? never
  4929. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4930. }[OrderFields]
  4931. : 'Error: If you provide "take", you also need to provide "orderBy"'
  4932. : 'skip' extends Keys<T>
  4933. ? 'orderBy' extends Keys<T>
  4934. ? ByValid extends True
  4935. ? {}
  4936. : {
  4937. [P in OrderFields]: P extends ByFields
  4938. ? never
  4939. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4940. }[OrderFields]
  4941. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  4942. : ByValid extends True
  4943. ? {}
  4944. : {
  4945. [P in OrderFields]: P extends ByFields
  4946. ? never
  4947. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4948. }[OrderFields]
  4949. >(args: SubsetIntersection<T, ContributorGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContributorGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  4950. /**
  4951. * Fields of the Contributor model
  4952. */
  4953. readonly fields: ContributorFieldRefs;
  4954. }
  4955. /**
  4956. * The delegate class that acts as a "Promise-like" for Contributor.
  4957. * Why is this prefixed with `Prisma__`?
  4958. * Because we want to prevent naming conflicts as mentioned in
  4959. * https://github.com/prisma/prisma-client-js/issues/707
  4960. */
  4961. export interface Prisma__ContributorClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  4962. readonly [Symbol.toStringTag]: "PrismaPromise"
  4963. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  4964. ideas<T extends Contributor$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Contributor$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  4965. /**
  4966. * Attaches callbacks for the resolution and/or rejection of the Promise.
  4967. * @param onfulfilled The callback to execute when the Promise is resolved.
  4968. * @param onrejected The callback to execute when the Promise is rejected.
  4969. * @returns A Promise for the completion of which ever callback is executed.
  4970. */
  4971. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  4972. /**
  4973. * Attaches a callback for only the rejection of the Promise.
  4974. * @param onrejected The callback to execute when the Promise is rejected.
  4975. * @returns A Promise for the completion of the callback.
  4976. */
  4977. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  4978. /**
  4979. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  4980. * resolved value cannot be modified from the callback.
  4981. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  4982. * @returns A Promise for the completion of the callback.
  4983. */
  4984. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  4985. }
  4986. /**
  4987. * Fields of the Contributor model
  4988. */
  4989. interface ContributorFieldRefs {
  4990. readonly id: FieldRef<"Contributor", 'String'>
  4991. readonly workspaceId: FieldRef<"Contributor", 'String'>
  4992. readonly email: FieldRef<"Contributor", 'String'>
  4993. readonly service: FieldRef<"Contributor", 'String'>
  4994. readonly status: FieldRef<"Contributor", 'ContributorStatus'>
  4995. readonly invitedAt: FieldRef<"Contributor", 'DateTime'>
  4996. readonly lastRemindedAt: FieldRef<"Contributor", 'DateTime'>
  4997. readonly createdAt: FieldRef<"Contributor", 'DateTime'>
  4998. }
  4999. // Custom InputTypes
  5000. /**
  5001. * Contributor findUnique
  5002. */
  5003. export type ContributorFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5004. /**
  5005. * Select specific fields to fetch from the Contributor
  5006. */
  5007. select?: ContributorSelect<ExtArgs> | null
  5008. /**
  5009. * Omit specific fields from the Contributor
  5010. */
  5011. omit?: ContributorOmit<ExtArgs> | null
  5012. /**
  5013. * Choose, which related nodes to fetch as well
  5014. */
  5015. include?: ContributorInclude<ExtArgs> | null
  5016. /**
  5017. * Filter, which Contributor to fetch.
  5018. */
  5019. where: ContributorWhereUniqueInput
  5020. }
  5021. /**
  5022. * Contributor findUniqueOrThrow
  5023. */
  5024. export type ContributorFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5025. /**
  5026. * Select specific fields to fetch from the Contributor
  5027. */
  5028. select?: ContributorSelect<ExtArgs> | null
  5029. /**
  5030. * Omit specific fields from the Contributor
  5031. */
  5032. omit?: ContributorOmit<ExtArgs> | null
  5033. /**
  5034. * Choose, which related nodes to fetch as well
  5035. */
  5036. include?: ContributorInclude<ExtArgs> | null
  5037. /**
  5038. * Filter, which Contributor to fetch.
  5039. */
  5040. where: ContributorWhereUniqueInput
  5041. }
  5042. /**
  5043. * Contributor findFirst
  5044. */
  5045. export type ContributorFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5046. /**
  5047. * Select specific fields to fetch from the Contributor
  5048. */
  5049. select?: ContributorSelect<ExtArgs> | null
  5050. /**
  5051. * Omit specific fields from the Contributor
  5052. */
  5053. omit?: ContributorOmit<ExtArgs> | null
  5054. /**
  5055. * Choose, which related nodes to fetch as well
  5056. */
  5057. include?: ContributorInclude<ExtArgs> | null
  5058. /**
  5059. * Filter, which Contributor to fetch.
  5060. */
  5061. where?: ContributorWhereInput
  5062. /**
  5063. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5064. *
  5065. * Determine the order of Contributors to fetch.
  5066. */
  5067. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5068. /**
  5069. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5070. *
  5071. * Sets the position for searching for Contributors.
  5072. */
  5073. cursor?: ContributorWhereUniqueInput
  5074. /**
  5075. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5076. *
  5077. * Take `±n` Contributors from the position of the cursor.
  5078. */
  5079. take?: number
  5080. /**
  5081. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5082. *
  5083. * Skip the first `n` Contributors.
  5084. */
  5085. skip?: number
  5086. /**
  5087. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5088. *
  5089. * Filter by unique combinations of Contributors.
  5090. */
  5091. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5092. }
  5093. /**
  5094. * Contributor findFirstOrThrow
  5095. */
  5096. export type ContributorFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5097. /**
  5098. * Select specific fields to fetch from the Contributor
  5099. */
  5100. select?: ContributorSelect<ExtArgs> | null
  5101. /**
  5102. * Omit specific fields from the Contributor
  5103. */
  5104. omit?: ContributorOmit<ExtArgs> | null
  5105. /**
  5106. * Choose, which related nodes to fetch as well
  5107. */
  5108. include?: ContributorInclude<ExtArgs> | null
  5109. /**
  5110. * Filter, which Contributor to fetch.
  5111. */
  5112. where?: ContributorWhereInput
  5113. /**
  5114. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5115. *
  5116. * Determine the order of Contributors to fetch.
  5117. */
  5118. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5119. /**
  5120. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5121. *
  5122. * Sets the position for searching for Contributors.
  5123. */
  5124. cursor?: ContributorWhereUniqueInput
  5125. /**
  5126. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5127. *
  5128. * Take `±n` Contributors from the position of the cursor.
  5129. */
  5130. take?: number
  5131. /**
  5132. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5133. *
  5134. * Skip the first `n` Contributors.
  5135. */
  5136. skip?: number
  5137. /**
  5138. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5139. *
  5140. * Filter by unique combinations of Contributors.
  5141. */
  5142. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5143. }
  5144. /**
  5145. * Contributor findMany
  5146. */
  5147. export type ContributorFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5148. /**
  5149. * Select specific fields to fetch from the Contributor
  5150. */
  5151. select?: ContributorSelect<ExtArgs> | null
  5152. /**
  5153. * Omit specific fields from the Contributor
  5154. */
  5155. omit?: ContributorOmit<ExtArgs> | null
  5156. /**
  5157. * Choose, which related nodes to fetch as well
  5158. */
  5159. include?: ContributorInclude<ExtArgs> | null
  5160. /**
  5161. * Filter, which Contributors to fetch.
  5162. */
  5163. where?: ContributorWhereInput
  5164. /**
  5165. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5166. *
  5167. * Determine the order of Contributors to fetch.
  5168. */
  5169. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5170. /**
  5171. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5172. *
  5173. * Sets the position for listing Contributors.
  5174. */
  5175. cursor?: ContributorWhereUniqueInput
  5176. /**
  5177. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5178. *
  5179. * Take `±n` Contributors from the position of the cursor.
  5180. */
  5181. take?: number
  5182. /**
  5183. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5184. *
  5185. * Skip the first `n` Contributors.
  5186. */
  5187. skip?: number
  5188. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5189. }
  5190. /**
  5191. * Contributor create
  5192. */
  5193. export type ContributorCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5194. /**
  5195. * Select specific fields to fetch from the Contributor
  5196. */
  5197. select?: ContributorSelect<ExtArgs> | null
  5198. /**
  5199. * Omit specific fields from the Contributor
  5200. */
  5201. omit?: ContributorOmit<ExtArgs> | null
  5202. /**
  5203. * Choose, which related nodes to fetch as well
  5204. */
  5205. include?: ContributorInclude<ExtArgs> | null
  5206. /**
  5207. * The data needed to create a Contributor.
  5208. */
  5209. data: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5210. }
  5211. /**
  5212. * Contributor createMany
  5213. */
  5214. export type ContributorCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5215. /**
  5216. * The data used to create many Contributors.
  5217. */
  5218. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5219. skipDuplicates?: boolean
  5220. }
  5221. /**
  5222. * Contributor createManyAndReturn
  5223. */
  5224. export type ContributorCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5225. /**
  5226. * Select specific fields to fetch from the Contributor
  5227. */
  5228. select?: ContributorSelectCreateManyAndReturn<ExtArgs> | null
  5229. /**
  5230. * Omit specific fields from the Contributor
  5231. */
  5232. omit?: ContributorOmit<ExtArgs> | null
  5233. /**
  5234. * The data used to create many Contributors.
  5235. */
  5236. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5237. skipDuplicates?: boolean
  5238. /**
  5239. * Choose, which related nodes to fetch as well
  5240. */
  5241. include?: ContributorIncludeCreateManyAndReturn<ExtArgs> | null
  5242. }
  5243. /**
  5244. * Contributor update
  5245. */
  5246. export type ContributorUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5247. /**
  5248. * Select specific fields to fetch from the Contributor
  5249. */
  5250. select?: ContributorSelect<ExtArgs> | null
  5251. /**
  5252. * Omit specific fields from the Contributor
  5253. */
  5254. omit?: ContributorOmit<ExtArgs> | null
  5255. /**
  5256. * Choose, which related nodes to fetch as well
  5257. */
  5258. include?: ContributorInclude<ExtArgs> | null
  5259. /**
  5260. * The data needed to update a Contributor.
  5261. */
  5262. data: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5263. /**
  5264. * Choose, which Contributor to update.
  5265. */
  5266. where: ContributorWhereUniqueInput
  5267. }
  5268. /**
  5269. * Contributor updateMany
  5270. */
  5271. export type ContributorUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5272. /**
  5273. * The data used to update Contributors.
  5274. */
  5275. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5276. /**
  5277. * Filter which Contributors to update
  5278. */
  5279. where?: ContributorWhereInput
  5280. /**
  5281. * Limit how many Contributors to update.
  5282. */
  5283. limit?: number
  5284. }
  5285. /**
  5286. * Contributor updateManyAndReturn
  5287. */
  5288. export type ContributorUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5289. /**
  5290. * Select specific fields to fetch from the Contributor
  5291. */
  5292. select?: ContributorSelectUpdateManyAndReturn<ExtArgs> | null
  5293. /**
  5294. * Omit specific fields from the Contributor
  5295. */
  5296. omit?: ContributorOmit<ExtArgs> | null
  5297. /**
  5298. * The data used to update Contributors.
  5299. */
  5300. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5301. /**
  5302. * Filter which Contributors to update
  5303. */
  5304. where?: ContributorWhereInput
  5305. /**
  5306. * Limit how many Contributors to update.
  5307. */
  5308. limit?: number
  5309. /**
  5310. * Choose, which related nodes to fetch as well
  5311. */
  5312. include?: ContributorIncludeUpdateManyAndReturn<ExtArgs> | null
  5313. }
  5314. /**
  5315. * Contributor upsert
  5316. */
  5317. export type ContributorUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5318. /**
  5319. * Select specific fields to fetch from the Contributor
  5320. */
  5321. select?: ContributorSelect<ExtArgs> | null
  5322. /**
  5323. * Omit specific fields from the Contributor
  5324. */
  5325. omit?: ContributorOmit<ExtArgs> | null
  5326. /**
  5327. * Choose, which related nodes to fetch as well
  5328. */
  5329. include?: ContributorInclude<ExtArgs> | null
  5330. /**
  5331. * The filter to search for the Contributor to update in case it exists.
  5332. */
  5333. where: ContributorWhereUniqueInput
  5334. /**
  5335. * In case the Contributor found by the `where` argument doesn't exist, create a new Contributor with this data.
  5336. */
  5337. create: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5338. /**
  5339. * In case the Contributor was found with the provided `where` argument, update it with this data.
  5340. */
  5341. update: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5342. }
  5343. /**
  5344. * Contributor delete
  5345. */
  5346. export type ContributorDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5347. /**
  5348. * Select specific fields to fetch from the Contributor
  5349. */
  5350. select?: ContributorSelect<ExtArgs> | null
  5351. /**
  5352. * Omit specific fields from the Contributor
  5353. */
  5354. omit?: ContributorOmit<ExtArgs> | null
  5355. /**
  5356. * Choose, which related nodes to fetch as well
  5357. */
  5358. include?: ContributorInclude<ExtArgs> | null
  5359. /**
  5360. * Filter which Contributor to delete.
  5361. */
  5362. where: ContributorWhereUniqueInput
  5363. }
  5364. /**
  5365. * Contributor deleteMany
  5366. */
  5367. export type ContributorDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5368. /**
  5369. * Filter which Contributors to delete
  5370. */
  5371. where?: ContributorWhereInput
  5372. /**
  5373. * Limit how many Contributors to delete.
  5374. */
  5375. limit?: number
  5376. }
  5377. /**
  5378. * Contributor.ideas
  5379. */
  5380. export type Contributor$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5381. /**
  5382. * Select specific fields to fetch from the Idea
  5383. */
  5384. select?: IdeaSelect<ExtArgs> | null
  5385. /**
  5386. * Omit specific fields from the Idea
  5387. */
  5388. omit?: IdeaOmit<ExtArgs> | null
  5389. /**
  5390. * Choose, which related nodes to fetch as well
  5391. */
  5392. include?: IdeaInclude<ExtArgs> | null
  5393. where?: IdeaWhereInput
  5394. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5395. cursor?: IdeaWhereUniqueInput
  5396. take?: number
  5397. skip?: number
  5398. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  5399. }
  5400. /**
  5401. * Contributor without action
  5402. */
  5403. export type ContributorDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5404. /**
  5405. * Select specific fields to fetch from the Contributor
  5406. */
  5407. select?: ContributorSelect<ExtArgs> | null
  5408. /**
  5409. * Omit specific fields from the Contributor
  5410. */
  5411. omit?: ContributorOmit<ExtArgs> | null
  5412. /**
  5413. * Choose, which related nodes to fetch as well
  5414. */
  5415. include?: ContributorInclude<ExtArgs> | null
  5416. }
  5417. /**
  5418. * Model Idea
  5419. */
  5420. export type AggregateIdea = {
  5421. _count: IdeaCountAggregateOutputType | null
  5422. _avg: IdeaAvgAggregateOutputType | null
  5423. _sum: IdeaSumAggregateOutputType | null
  5424. _min: IdeaMinAggregateOutputType | null
  5425. _max: IdeaMaxAggregateOutputType | null
  5426. }
  5427. export type IdeaAvgAggregateOutputType = {
  5428. llmScoreImpact: number | null
  5429. llmScoreFeasibility: number | null
  5430. llmScoreUrgency: number | null
  5431. manualScoreImpact: number | null
  5432. manualScoreFeasibility: number | null
  5433. manualScoreUrgency: number | null
  5434. priorityOrder: number | null
  5435. }
  5436. export type IdeaSumAggregateOutputType = {
  5437. llmScoreImpact: number | null
  5438. llmScoreFeasibility: number | null
  5439. llmScoreUrgency: number | null
  5440. manualScoreImpact: number | null
  5441. manualScoreFeasibility: number | null
  5442. manualScoreUrgency: number | null
  5443. priorityOrder: number | null
  5444. }
  5445. export type IdeaMinAggregateOutputType = {
  5446. id: string | null
  5447. workspaceId: string | null
  5448. contributorEmail: string | null
  5449. contributorId: string | null
  5450. department: string | null
  5451. problemDescription: string | null
  5452. estimatedImpact: $Enums.ImpactLevel | null
  5453. frequency: $Enums.Frequency | null
  5454. optionalWhoAffected: string | null
  5455. optionalAlreadyTried: string | null
  5456. optionalSuccessLooksLike: string | null
  5457. status: $Enums.IdeaStatus | null
  5458. llmTitle: string | null
  5459. llmDomain: string | null
  5460. llmAiType: string | null
  5461. llmExplanation: string | null
  5462. llmScoreImpact: number | null
  5463. llmScoreFeasibility: number | null
  5464. llmScoreUrgency: number | null
  5465. llmEnrichedAt: Date | null
  5466. llmEnrichFailed: boolean | null
  5467. manualScoreImpact: number | null
  5468. manualScoreFeasibility: number | null
  5469. manualScoreUrgency: number | null
  5470. priorityOrder: number | null
  5471. emailMessageId: string | null
  5472. createdAt: Date | null
  5473. updatedAt: Date | null
  5474. }
  5475. export type IdeaMaxAggregateOutputType = {
  5476. id: string | null
  5477. workspaceId: string | null
  5478. contributorEmail: string | null
  5479. contributorId: string | null
  5480. department: string | null
  5481. problemDescription: string | null
  5482. estimatedImpact: $Enums.ImpactLevel | null
  5483. frequency: $Enums.Frequency | null
  5484. optionalWhoAffected: string | null
  5485. optionalAlreadyTried: string | null
  5486. optionalSuccessLooksLike: string | null
  5487. status: $Enums.IdeaStatus | null
  5488. llmTitle: string | null
  5489. llmDomain: string | null
  5490. llmAiType: string | null
  5491. llmExplanation: string | null
  5492. llmScoreImpact: number | null
  5493. llmScoreFeasibility: number | null
  5494. llmScoreUrgency: number | null
  5495. llmEnrichedAt: Date | null
  5496. llmEnrichFailed: boolean | null
  5497. manualScoreImpact: number | null
  5498. manualScoreFeasibility: number | null
  5499. manualScoreUrgency: number | null
  5500. priorityOrder: number | null
  5501. emailMessageId: string | null
  5502. createdAt: Date | null
  5503. updatedAt: Date | null
  5504. }
  5505. export type IdeaCountAggregateOutputType = {
  5506. id: number
  5507. workspaceId: number
  5508. contributorEmail: number
  5509. contributorId: number
  5510. department: number
  5511. problemDescription: number
  5512. estimatedImpact: number
  5513. frequency: number
  5514. optionalWhoAffected: number
  5515. optionalAlreadyTried: number
  5516. optionalSuccessLooksLike: number
  5517. status: number
  5518. llmTitle: number
  5519. llmDomain: number
  5520. llmAiType: number
  5521. llmExplanation: number
  5522. llmScoreImpact: number
  5523. llmScoreFeasibility: number
  5524. llmScoreUrgency: number
  5525. llmEnrichedAt: number
  5526. llmEnrichFailed: number
  5527. manualScoreImpact: number
  5528. manualScoreFeasibility: number
  5529. manualScoreUrgency: number
  5530. priorityOrder: number
  5531. emailMessageId: number
  5532. createdAt: number
  5533. updatedAt: number
  5534. _all: number
  5535. }
  5536. export type IdeaAvgAggregateInputType = {
  5537. llmScoreImpact?: true
  5538. llmScoreFeasibility?: true
  5539. llmScoreUrgency?: true
  5540. manualScoreImpact?: true
  5541. manualScoreFeasibility?: true
  5542. manualScoreUrgency?: true
  5543. priorityOrder?: true
  5544. }
  5545. export type IdeaSumAggregateInputType = {
  5546. llmScoreImpact?: true
  5547. llmScoreFeasibility?: true
  5548. llmScoreUrgency?: true
  5549. manualScoreImpact?: true
  5550. manualScoreFeasibility?: true
  5551. manualScoreUrgency?: true
  5552. priorityOrder?: true
  5553. }
  5554. export type IdeaMinAggregateInputType = {
  5555. id?: true
  5556. workspaceId?: true
  5557. contributorEmail?: true
  5558. contributorId?: true
  5559. department?: true
  5560. problemDescription?: true
  5561. estimatedImpact?: true
  5562. frequency?: true
  5563. optionalWhoAffected?: true
  5564. optionalAlreadyTried?: true
  5565. optionalSuccessLooksLike?: true
  5566. status?: true
  5567. llmTitle?: true
  5568. llmDomain?: true
  5569. llmAiType?: true
  5570. llmExplanation?: true
  5571. llmScoreImpact?: true
  5572. llmScoreFeasibility?: true
  5573. llmScoreUrgency?: true
  5574. llmEnrichedAt?: true
  5575. llmEnrichFailed?: true
  5576. manualScoreImpact?: true
  5577. manualScoreFeasibility?: true
  5578. manualScoreUrgency?: true
  5579. priorityOrder?: true
  5580. emailMessageId?: true
  5581. createdAt?: true
  5582. updatedAt?: true
  5583. }
  5584. export type IdeaMaxAggregateInputType = {
  5585. id?: true
  5586. workspaceId?: true
  5587. contributorEmail?: true
  5588. contributorId?: true
  5589. department?: true
  5590. problemDescription?: true
  5591. estimatedImpact?: true
  5592. frequency?: true
  5593. optionalWhoAffected?: true
  5594. optionalAlreadyTried?: true
  5595. optionalSuccessLooksLike?: true
  5596. status?: true
  5597. llmTitle?: true
  5598. llmDomain?: true
  5599. llmAiType?: true
  5600. llmExplanation?: true
  5601. llmScoreImpact?: true
  5602. llmScoreFeasibility?: true
  5603. llmScoreUrgency?: true
  5604. llmEnrichedAt?: true
  5605. llmEnrichFailed?: true
  5606. manualScoreImpact?: true
  5607. manualScoreFeasibility?: true
  5608. manualScoreUrgency?: true
  5609. priorityOrder?: true
  5610. emailMessageId?: true
  5611. createdAt?: true
  5612. updatedAt?: true
  5613. }
  5614. export type IdeaCountAggregateInputType = {
  5615. id?: true
  5616. workspaceId?: true
  5617. contributorEmail?: true
  5618. contributorId?: true
  5619. department?: true
  5620. problemDescription?: true
  5621. estimatedImpact?: true
  5622. frequency?: true
  5623. optionalWhoAffected?: true
  5624. optionalAlreadyTried?: true
  5625. optionalSuccessLooksLike?: true
  5626. status?: true
  5627. llmTitle?: true
  5628. llmDomain?: true
  5629. llmAiType?: true
  5630. llmExplanation?: true
  5631. llmScoreImpact?: true
  5632. llmScoreFeasibility?: true
  5633. llmScoreUrgency?: true
  5634. llmEnrichedAt?: true
  5635. llmEnrichFailed?: true
  5636. manualScoreImpact?: true
  5637. manualScoreFeasibility?: true
  5638. manualScoreUrgency?: true
  5639. priorityOrder?: true
  5640. emailMessageId?: true
  5641. createdAt?: true
  5642. updatedAt?: true
  5643. _all?: true
  5644. }
  5645. export type IdeaAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5646. /**
  5647. * Filter which Idea to aggregate.
  5648. */
  5649. where?: IdeaWhereInput
  5650. /**
  5651. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5652. *
  5653. * Determine the order of Ideas to fetch.
  5654. */
  5655. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5656. /**
  5657. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5658. *
  5659. * Sets the start position
  5660. */
  5661. cursor?: IdeaWhereUniqueInput
  5662. /**
  5663. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5664. *
  5665. * Take `±n` Ideas from the position of the cursor.
  5666. */
  5667. take?: number
  5668. /**
  5669. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5670. *
  5671. * Skip the first `n` Ideas.
  5672. */
  5673. skip?: number
  5674. /**
  5675. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5676. *
  5677. * Count returned Ideas
  5678. **/
  5679. _count?: true | IdeaCountAggregateInputType
  5680. /**
  5681. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5682. *
  5683. * Select which fields to average
  5684. **/
  5685. _avg?: IdeaAvgAggregateInputType
  5686. /**
  5687. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5688. *
  5689. * Select which fields to sum
  5690. **/
  5691. _sum?: IdeaSumAggregateInputType
  5692. /**
  5693. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5694. *
  5695. * Select which fields to find the minimum value
  5696. **/
  5697. _min?: IdeaMinAggregateInputType
  5698. /**
  5699. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5700. *
  5701. * Select which fields to find the maximum value
  5702. **/
  5703. _max?: IdeaMaxAggregateInputType
  5704. }
  5705. export type GetIdeaAggregateType<T extends IdeaAggregateArgs> = {
  5706. [P in keyof T & keyof AggregateIdea]: P extends '_count' | 'count'
  5707. ? T[P] extends true
  5708. ? number
  5709. : GetScalarType<T[P], AggregateIdea[P]>
  5710. : GetScalarType<T[P], AggregateIdea[P]>
  5711. }
  5712. export type IdeaGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5713. where?: IdeaWhereInput
  5714. orderBy?: IdeaOrderByWithAggregationInput | IdeaOrderByWithAggregationInput[]
  5715. by: IdeaScalarFieldEnum[] | IdeaScalarFieldEnum
  5716. having?: IdeaScalarWhereWithAggregatesInput
  5717. take?: number
  5718. skip?: number
  5719. _count?: IdeaCountAggregateInputType | true
  5720. _avg?: IdeaAvgAggregateInputType
  5721. _sum?: IdeaSumAggregateInputType
  5722. _min?: IdeaMinAggregateInputType
  5723. _max?: IdeaMaxAggregateInputType
  5724. }
  5725. export type IdeaGroupByOutputType = {
  5726. id: string
  5727. workspaceId: string
  5728. contributorEmail: string
  5729. contributorId: string | null
  5730. department: string
  5731. problemDescription: string
  5732. estimatedImpact: $Enums.ImpactLevel
  5733. frequency: $Enums.Frequency
  5734. optionalWhoAffected: string | null
  5735. optionalAlreadyTried: string | null
  5736. optionalSuccessLooksLike: string | null
  5737. status: $Enums.IdeaStatus
  5738. llmTitle: string | null
  5739. llmDomain: string | null
  5740. llmAiType: string | null
  5741. llmExplanation: string | null
  5742. llmScoreImpact: number | null
  5743. llmScoreFeasibility: number | null
  5744. llmScoreUrgency: number | null
  5745. llmEnrichedAt: Date | null
  5746. llmEnrichFailed: boolean
  5747. manualScoreImpact: number | null
  5748. manualScoreFeasibility: number | null
  5749. manualScoreUrgency: number | null
  5750. priorityOrder: number | null
  5751. emailMessageId: string | null
  5752. createdAt: Date
  5753. updatedAt: Date
  5754. _count: IdeaCountAggregateOutputType | null
  5755. _avg: IdeaAvgAggregateOutputType | null
  5756. _sum: IdeaSumAggregateOutputType | null
  5757. _min: IdeaMinAggregateOutputType | null
  5758. _max: IdeaMaxAggregateOutputType | null
  5759. }
  5760. type GetIdeaGroupByPayload<T extends IdeaGroupByArgs> = Prisma.PrismaPromise<
  5761. Array<
  5762. PickEnumerable<IdeaGroupByOutputType, T['by']> &
  5763. {
  5764. [P in ((keyof T) & (keyof IdeaGroupByOutputType))]: P extends '_count'
  5765. ? T[P] extends boolean
  5766. ? number
  5767. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5768. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5769. }
  5770. >
  5771. >
  5772. export type IdeaSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5773. id?: boolean
  5774. workspaceId?: boolean
  5775. contributorEmail?: boolean
  5776. contributorId?: boolean
  5777. department?: boolean
  5778. problemDescription?: boolean
  5779. estimatedImpact?: boolean
  5780. frequency?: boolean
  5781. optionalWhoAffected?: boolean
  5782. optionalAlreadyTried?: boolean
  5783. optionalSuccessLooksLike?: boolean
  5784. status?: boolean
  5785. llmTitle?: boolean
  5786. llmDomain?: boolean
  5787. llmAiType?: boolean
  5788. llmExplanation?: boolean
  5789. llmScoreImpact?: boolean
  5790. llmScoreFeasibility?: boolean
  5791. llmScoreUrgency?: boolean
  5792. llmEnrichedAt?: boolean
  5793. llmEnrichFailed?: boolean
  5794. manualScoreImpact?: boolean
  5795. manualScoreFeasibility?: boolean
  5796. manualScoreUrgency?: boolean
  5797. priorityOrder?: boolean
  5798. emailMessageId?: boolean
  5799. createdAt?: boolean
  5800. updatedAt?: boolean
  5801. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5802. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5803. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  5804. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  5805. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  5806. }, ExtArgs["result"]["idea"]>
  5807. export type IdeaSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5808. id?: boolean
  5809. workspaceId?: boolean
  5810. contributorEmail?: boolean
  5811. contributorId?: boolean
  5812. department?: boolean
  5813. problemDescription?: boolean
  5814. estimatedImpact?: boolean
  5815. frequency?: boolean
  5816. optionalWhoAffected?: boolean
  5817. optionalAlreadyTried?: boolean
  5818. optionalSuccessLooksLike?: boolean
  5819. status?: boolean
  5820. llmTitle?: boolean
  5821. llmDomain?: boolean
  5822. llmAiType?: boolean
  5823. llmExplanation?: boolean
  5824. llmScoreImpact?: boolean
  5825. llmScoreFeasibility?: boolean
  5826. llmScoreUrgency?: boolean
  5827. llmEnrichedAt?: boolean
  5828. llmEnrichFailed?: boolean
  5829. manualScoreImpact?: boolean
  5830. manualScoreFeasibility?: boolean
  5831. manualScoreUrgency?: boolean
  5832. priorityOrder?: boolean
  5833. emailMessageId?: boolean
  5834. createdAt?: boolean
  5835. updatedAt?: boolean
  5836. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5837. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5838. }, ExtArgs["result"]["idea"]>
  5839. export type IdeaSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5840. id?: boolean
  5841. workspaceId?: boolean
  5842. contributorEmail?: boolean
  5843. contributorId?: boolean
  5844. department?: boolean
  5845. problemDescription?: boolean
  5846. estimatedImpact?: boolean
  5847. frequency?: boolean
  5848. optionalWhoAffected?: boolean
  5849. optionalAlreadyTried?: boolean
  5850. optionalSuccessLooksLike?: boolean
  5851. status?: boolean
  5852. llmTitle?: boolean
  5853. llmDomain?: boolean
  5854. llmAiType?: boolean
  5855. llmExplanation?: boolean
  5856. llmScoreImpact?: boolean
  5857. llmScoreFeasibility?: boolean
  5858. llmScoreUrgency?: boolean
  5859. llmEnrichedAt?: boolean
  5860. llmEnrichFailed?: boolean
  5861. manualScoreImpact?: boolean
  5862. manualScoreFeasibility?: boolean
  5863. manualScoreUrgency?: boolean
  5864. priorityOrder?: boolean
  5865. emailMessageId?: boolean
  5866. createdAt?: boolean
  5867. updatedAt?: boolean
  5868. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5869. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5870. }, ExtArgs["result"]["idea"]>
  5871. export type IdeaSelectScalar = {
  5872. id?: boolean
  5873. workspaceId?: boolean
  5874. contributorEmail?: boolean
  5875. contributorId?: boolean
  5876. department?: boolean
  5877. problemDescription?: boolean
  5878. estimatedImpact?: boolean
  5879. frequency?: boolean
  5880. optionalWhoAffected?: boolean
  5881. optionalAlreadyTried?: boolean
  5882. optionalSuccessLooksLike?: boolean
  5883. status?: boolean
  5884. llmTitle?: boolean
  5885. llmDomain?: boolean
  5886. llmAiType?: boolean
  5887. llmExplanation?: boolean
  5888. llmScoreImpact?: boolean
  5889. llmScoreFeasibility?: boolean
  5890. llmScoreUrgency?: boolean
  5891. llmEnrichedAt?: boolean
  5892. llmEnrichFailed?: boolean
  5893. manualScoreImpact?: boolean
  5894. manualScoreFeasibility?: boolean
  5895. manualScoreUrgency?: boolean
  5896. priorityOrder?: boolean
  5897. emailMessageId?: boolean
  5898. createdAt?: boolean
  5899. updatedAt?: boolean
  5900. }
  5901. export type IdeaOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "contributorEmail" | "contributorId" | "department" | "problemDescription" | "estimatedImpact" | "frequency" | "optionalWhoAffected" | "optionalAlreadyTried" | "optionalSuccessLooksLike" | "status" | "llmTitle" | "llmDomain" | "llmAiType" | "llmExplanation" | "llmScoreImpact" | "llmScoreFeasibility" | "llmScoreUrgency" | "llmEnrichedAt" | "llmEnrichFailed" | "manualScoreImpact" | "manualScoreFeasibility" | "manualScoreUrgency" | "priorityOrder" | "emailMessageId" | "createdAt" | "updatedAt", ExtArgs["result"]["idea"]>
  5902. export type IdeaInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5903. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5904. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5905. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  5906. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  5907. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  5908. }
  5909. export type IdeaIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5910. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5911. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5912. }
  5913. export type IdeaIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5914. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5915. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5916. }
  5917. export type $IdeaPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5918. name: "Idea"
  5919. objects: {
  5920. workspace: Prisma.$WorkspacePayload<ExtArgs>
  5921. contributor: Prisma.$ContributorPayload<ExtArgs> | null
  5922. attachments: Prisma.$IdeaAttachmentPayload<ExtArgs>[]
  5923. qualificationQuestions: Prisma.$QualificationQuestionPayload<ExtArgs>[]
  5924. }
  5925. scalars: $Extensions.GetPayloadResult<{
  5926. id: string
  5927. workspaceId: string
  5928. contributorEmail: string
  5929. contributorId: string | null
  5930. department: string
  5931. problemDescription: string
  5932. estimatedImpact: $Enums.ImpactLevel
  5933. frequency: $Enums.Frequency
  5934. /**
  5935. * Réponses optionnelles à la soumission (langage métier), aident le transformateur à trancher
  5936. */
  5937. optionalWhoAffected: string | null
  5938. optionalAlreadyTried: string | null
  5939. optionalSuccessLooksLike: string | null
  5940. status: $Enums.IdeaStatus
  5941. llmTitle: string | null
  5942. llmDomain: string | null
  5943. llmAiType: string | null
  5944. llmExplanation: string | null
  5945. llmScoreImpact: number | null
  5946. llmScoreFeasibility: number | null
  5947. llmScoreUrgency: number | null
  5948. llmEnrichedAt: Date | null
  5949. llmEnrichFailed: boolean
  5950. manualScoreImpact: number | null
  5951. manualScoreFeasibility: number | null
  5952. manualScoreUrgency: number | null
  5953. priorityOrder: number | null
  5954. emailMessageId: string | null
  5955. createdAt: Date
  5956. updatedAt: Date
  5957. }, ExtArgs["result"]["idea"]>
  5958. composites: {}
  5959. }
  5960. type IdeaGetPayload<S extends boolean | null | undefined | IdeaDefaultArgs> = $Result.GetResult<Prisma.$IdeaPayload, S>
  5961. type IdeaCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  5962. Omit<IdeaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  5963. select?: IdeaCountAggregateInputType | true
  5964. }
  5965. export interface IdeaDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  5966. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Idea'], meta: { name: 'Idea' } }
  5967. /**
  5968. * Find zero or one Idea that matches the filter.
  5969. * @param {IdeaFindUniqueArgs} args - Arguments to find a Idea
  5970. * @example
  5971. * // Get one Idea
  5972. * const idea = await prisma.idea.findUnique({
  5973. * where: {
  5974. * // ... provide filter here
  5975. * }
  5976. * })
  5977. */
  5978. findUnique<T extends IdeaFindUniqueArgs>(args: SelectSubset<T, IdeaFindUniqueArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  5979. /**
  5980. * Find one Idea that matches the filter or throw an error with `error.code='P2025'`
  5981. * if no matches were found.
  5982. * @param {IdeaFindUniqueOrThrowArgs} args - Arguments to find a Idea
  5983. * @example
  5984. * // Get one Idea
  5985. * const idea = await prisma.idea.findUniqueOrThrow({
  5986. * where: {
  5987. * // ... provide filter here
  5988. * }
  5989. * })
  5990. */
  5991. findUniqueOrThrow<T extends IdeaFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  5992. /**
  5993. * Find the first Idea that matches the filter.
  5994. * Note, that providing `undefined` is treated as the value not being there.
  5995. * Read more here: https://pris.ly/d/null-undefined
  5996. * @param {IdeaFindFirstArgs} args - Arguments to find a Idea
  5997. * @example
  5998. * // Get one Idea
  5999. * const idea = await prisma.idea.findFirst({
  6000. * where: {
  6001. * // ... provide filter here
  6002. * }
  6003. * })
  6004. */
  6005. findFirst<T extends IdeaFindFirstArgs>(args?: SelectSubset<T, IdeaFindFirstArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  6006. /**
  6007. * Find the first Idea that matches the filter or
  6008. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  6009. * Note, that providing `undefined` is treated as the value not being there.
  6010. * Read more here: https://pris.ly/d/null-undefined
  6011. * @param {IdeaFindFirstOrThrowArgs} args - Arguments to find a Idea
  6012. * @example
  6013. * // Get one Idea
  6014. * const idea = await prisma.idea.findFirstOrThrow({
  6015. * where: {
  6016. * // ... provide filter here
  6017. * }
  6018. * })
  6019. */
  6020. findFirstOrThrow<T extends IdeaFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6021. /**
  6022. * Find zero or more Ideas that matches the filter.
  6023. * Note, that providing `undefined` is treated as the value not being there.
  6024. * Read more here: https://pris.ly/d/null-undefined
  6025. * @param {IdeaFindManyArgs} args - Arguments to filter and select certain fields only.
  6026. * @example
  6027. * // Get all Ideas
  6028. * const ideas = await prisma.idea.findMany()
  6029. *
  6030. * // Get first 10 Ideas
  6031. * const ideas = await prisma.idea.findMany({ take: 10 })
  6032. *
  6033. * // Only select the `id`
  6034. * const ideaWithIdOnly = await prisma.idea.findMany({ select: { id: true } })
  6035. *
  6036. */
  6037. findMany<T extends IdeaFindManyArgs>(args?: SelectSubset<T, IdeaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  6038. /**
  6039. * Create a Idea.
  6040. * @param {IdeaCreateArgs} args - Arguments to create a Idea.
  6041. * @example
  6042. * // Create one Idea
  6043. * const Idea = await prisma.idea.create({
  6044. * data: {
  6045. * // ... data to create a Idea
  6046. * }
  6047. * })
  6048. *
  6049. */
  6050. create<T extends IdeaCreateArgs>(args: SelectSubset<T, IdeaCreateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6051. /**
  6052. * Create many Ideas.
  6053. * @param {IdeaCreateManyArgs} args - Arguments to create many Ideas.
  6054. * @example
  6055. * // Create many Ideas
  6056. * const idea = await prisma.idea.createMany({
  6057. * data: [
  6058. * // ... provide data here
  6059. * ]
  6060. * })
  6061. *
  6062. */
  6063. createMany<T extends IdeaCreateManyArgs>(args?: SelectSubset<T, IdeaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6064. /**
  6065. * Create many Ideas and returns the data saved in the database.
  6066. * @param {IdeaCreateManyAndReturnArgs} args - Arguments to create many Ideas.
  6067. * @example
  6068. * // Create many Ideas
  6069. * const idea = await prisma.idea.createManyAndReturn({
  6070. * data: [
  6071. * // ... provide data here
  6072. * ]
  6073. * })
  6074. *
  6075. * // Create many Ideas and only return the `id`
  6076. * const ideaWithIdOnly = await prisma.idea.createManyAndReturn({
  6077. * select: { id: true },
  6078. * data: [
  6079. * // ... provide data here
  6080. * ]
  6081. * })
  6082. * Note, that providing `undefined` is treated as the value not being there.
  6083. * Read more here: https://pris.ly/d/null-undefined
  6084. *
  6085. */
  6086. createManyAndReturn<T extends IdeaCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  6087. /**
  6088. * Delete a Idea.
  6089. * @param {IdeaDeleteArgs} args - Arguments to delete one Idea.
  6090. * @example
  6091. * // Delete one Idea
  6092. * const Idea = await prisma.idea.delete({
  6093. * where: {
  6094. * // ... filter to delete one Idea
  6095. * }
  6096. * })
  6097. *
  6098. */
  6099. delete<T extends IdeaDeleteArgs>(args: SelectSubset<T, IdeaDeleteArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6100. /**
  6101. * Update one Idea.
  6102. * @param {IdeaUpdateArgs} args - Arguments to update one Idea.
  6103. * @example
  6104. * // Update one Idea
  6105. * const idea = await prisma.idea.update({
  6106. * where: {
  6107. * // ... provide filter here
  6108. * },
  6109. * data: {
  6110. * // ... provide data here
  6111. * }
  6112. * })
  6113. *
  6114. */
  6115. update<T extends IdeaUpdateArgs>(args: SelectSubset<T, IdeaUpdateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6116. /**
  6117. * Delete zero or more Ideas.
  6118. * @param {IdeaDeleteManyArgs} args - Arguments to filter Ideas to delete.
  6119. * @example
  6120. * // Delete a few Ideas
  6121. * const { count } = await prisma.idea.deleteMany({
  6122. * where: {
  6123. * // ... provide filter here
  6124. * }
  6125. * })
  6126. *
  6127. */
  6128. deleteMany<T extends IdeaDeleteManyArgs>(args?: SelectSubset<T, IdeaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6129. /**
  6130. * Update zero or more Ideas.
  6131. * Note, that providing `undefined` is treated as the value not being there.
  6132. * Read more here: https://pris.ly/d/null-undefined
  6133. * @param {IdeaUpdateManyArgs} args - Arguments to update one or more rows.
  6134. * @example
  6135. * // Update many Ideas
  6136. * const idea = await prisma.idea.updateMany({
  6137. * where: {
  6138. * // ... provide filter here
  6139. * },
  6140. * data: {
  6141. * // ... provide data here
  6142. * }
  6143. * })
  6144. *
  6145. */
  6146. updateMany<T extends IdeaUpdateManyArgs>(args: SelectSubset<T, IdeaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6147. /**
  6148. * Update zero or more Ideas and returns the data updated in the database.
  6149. * @param {IdeaUpdateManyAndReturnArgs} args - Arguments to update many Ideas.
  6150. * @example
  6151. * // Update many Ideas
  6152. * const idea = await prisma.idea.updateManyAndReturn({
  6153. * where: {
  6154. * // ... provide filter here
  6155. * },
  6156. * data: [
  6157. * // ... provide data here
  6158. * ]
  6159. * })
  6160. *
  6161. * // Update zero or more Ideas and only return the `id`
  6162. * const ideaWithIdOnly = await prisma.idea.updateManyAndReturn({
  6163. * select: { id: true },
  6164. * where: {
  6165. * // ... provide filter here
  6166. * },
  6167. * data: [
  6168. * // ... provide data here
  6169. * ]
  6170. * })
  6171. * Note, that providing `undefined` is treated as the value not being there.
  6172. * Read more here: https://pris.ly/d/null-undefined
  6173. *
  6174. */
  6175. updateManyAndReturn<T extends IdeaUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  6176. /**
  6177. * Create or update one Idea.
  6178. * @param {IdeaUpsertArgs} args - Arguments to update or create a Idea.
  6179. * @example
  6180. * // Update or create a Idea
  6181. * const idea = await prisma.idea.upsert({
  6182. * create: {
  6183. * // ... data to create a Idea
  6184. * },
  6185. * update: {
  6186. * // ... in case it already exists, update
  6187. * },
  6188. * where: {
  6189. * // ... the filter for the Idea we want to update
  6190. * }
  6191. * })
  6192. */
  6193. upsert<T extends IdeaUpsertArgs>(args: SelectSubset<T, IdeaUpsertArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6194. /**
  6195. * Count the number of Ideas.
  6196. * Note, that providing `undefined` is treated as the value not being there.
  6197. * Read more here: https://pris.ly/d/null-undefined
  6198. * @param {IdeaCountArgs} args - Arguments to filter Ideas to count.
  6199. * @example
  6200. * // Count the number of Ideas
  6201. * const count = await prisma.idea.count({
  6202. * where: {
  6203. * // ... the filter for the Ideas we want to count
  6204. * }
  6205. * })
  6206. **/
  6207. count<T extends IdeaCountArgs>(
  6208. args?: Subset<T, IdeaCountArgs>,
  6209. ): Prisma.PrismaPromise<
  6210. T extends $Utils.Record<'select', any>
  6211. ? T['select'] extends true
  6212. ? number
  6213. : GetScalarType<T['select'], IdeaCountAggregateOutputType>
  6214. : number
  6215. >
  6216. /**
  6217. * Allows you to perform aggregations operations on a Idea.
  6218. * Note, that providing `undefined` is treated as the value not being there.
  6219. * Read more here: https://pris.ly/d/null-undefined
  6220. * @param {IdeaAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  6221. * @example
  6222. * // Ordered by age ascending
  6223. * // Where email contains prisma.io
  6224. * // Limited to the 10 users
  6225. * const aggregations = await prisma.user.aggregate({
  6226. * _avg: {
  6227. * age: true,
  6228. * },
  6229. * where: {
  6230. * email: {
  6231. * contains: "prisma.io",
  6232. * },
  6233. * },
  6234. * orderBy: {
  6235. * age: "asc",
  6236. * },
  6237. * take: 10,
  6238. * })
  6239. **/
  6240. aggregate<T extends IdeaAggregateArgs>(args: Subset<T, IdeaAggregateArgs>): Prisma.PrismaPromise<GetIdeaAggregateType<T>>
  6241. /**
  6242. * Group by Idea.
  6243. * Note, that providing `undefined` is treated as the value not being there.
  6244. * Read more here: https://pris.ly/d/null-undefined
  6245. * @param {IdeaGroupByArgs} args - Group by arguments.
  6246. * @example
  6247. * // Group by city, order by createdAt, get count
  6248. * const result = await prisma.user.groupBy({
  6249. * by: ['city', 'createdAt'],
  6250. * orderBy: {
  6251. * createdAt: true
  6252. * },
  6253. * _count: {
  6254. * _all: true
  6255. * },
  6256. * })
  6257. *
  6258. **/
  6259. groupBy<
  6260. T extends IdeaGroupByArgs,
  6261. HasSelectOrTake extends Or<
  6262. Extends<'skip', Keys<T>>,
  6263. Extends<'take', Keys<T>>
  6264. >,
  6265. OrderByArg extends True extends HasSelectOrTake
  6266. ? { orderBy: IdeaGroupByArgs['orderBy'] }
  6267. : { orderBy?: IdeaGroupByArgs['orderBy'] },
  6268. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  6269. ByFields extends MaybeTupleToUnion<T['by']>,
  6270. ByValid extends Has<ByFields, OrderFields>,
  6271. HavingFields extends GetHavingFields<T['having']>,
  6272. HavingValid extends Has<ByFields, HavingFields>,
  6273. ByEmpty extends T['by'] extends never[] ? True : False,
  6274. InputErrors extends ByEmpty extends True
  6275. ? `Error: "by" must not be empty.`
  6276. : HavingValid extends False
  6277. ? {
  6278. [P in HavingFields]: P extends ByFields
  6279. ? never
  6280. : P extends string
  6281. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  6282. : [
  6283. Error,
  6284. 'Field ',
  6285. P,
  6286. ` in "having" needs to be provided in "by"`,
  6287. ]
  6288. }[HavingFields]
  6289. : 'take' extends Keys<T>
  6290. ? 'orderBy' extends Keys<T>
  6291. ? ByValid extends True
  6292. ? {}
  6293. : {
  6294. [P in OrderFields]: P extends ByFields
  6295. ? never
  6296. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6297. }[OrderFields]
  6298. : 'Error: If you provide "take", you also need to provide "orderBy"'
  6299. : 'skip' extends Keys<T>
  6300. ? 'orderBy' extends Keys<T>
  6301. ? ByValid extends True
  6302. ? {}
  6303. : {
  6304. [P in OrderFields]: P extends ByFields
  6305. ? never
  6306. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6307. }[OrderFields]
  6308. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  6309. : ByValid extends True
  6310. ? {}
  6311. : {
  6312. [P in OrderFields]: P extends ByFields
  6313. ? never
  6314. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6315. }[OrderFields]
  6316. >(args: SubsetIntersection<T, IdeaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  6317. /**
  6318. * Fields of the Idea model
  6319. */
  6320. readonly fields: IdeaFieldRefs;
  6321. }
  6322. /**
  6323. * The delegate class that acts as a "Promise-like" for Idea.
  6324. * Why is this prefixed with `Prisma__`?
  6325. * Because we want to prevent naming conflicts as mentioned in
  6326. * https://github.com/prisma/prisma-client-js/issues/707
  6327. */
  6328. export interface Prisma__IdeaClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  6329. readonly [Symbol.toStringTag]: "PrismaPromise"
  6330. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  6331. contributor<T extends Idea$contributorArgs<ExtArgs> = {}>(args?: Subset<T, Idea$contributorArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  6332. attachments<T extends Idea$attachmentsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6333. qualificationQuestions<T extends Idea$qualificationQuestionsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$qualificationQuestionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6334. /**
  6335. * Attaches callbacks for the resolution and/or rejection of the Promise.
  6336. * @param onfulfilled The callback to execute when the Promise is resolved.
  6337. * @param onrejected The callback to execute when the Promise is rejected.
  6338. * @returns A Promise for the completion of which ever callback is executed.
  6339. */
  6340. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  6341. /**
  6342. * Attaches a callback for only the rejection of the Promise.
  6343. * @param onrejected The callback to execute when the Promise is rejected.
  6344. * @returns A Promise for the completion of the callback.
  6345. */
  6346. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  6347. /**
  6348. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  6349. * resolved value cannot be modified from the callback.
  6350. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  6351. * @returns A Promise for the completion of the callback.
  6352. */
  6353. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  6354. }
  6355. /**
  6356. * Fields of the Idea model
  6357. */
  6358. interface IdeaFieldRefs {
  6359. readonly id: FieldRef<"Idea", 'String'>
  6360. readonly workspaceId: FieldRef<"Idea", 'String'>
  6361. readonly contributorEmail: FieldRef<"Idea", 'String'>
  6362. readonly contributorId: FieldRef<"Idea", 'String'>
  6363. readonly department: FieldRef<"Idea", 'String'>
  6364. readonly problemDescription: FieldRef<"Idea", 'String'>
  6365. readonly estimatedImpact: FieldRef<"Idea", 'ImpactLevel'>
  6366. readonly frequency: FieldRef<"Idea", 'Frequency'>
  6367. readonly optionalWhoAffected: FieldRef<"Idea", 'String'>
  6368. readonly optionalAlreadyTried: FieldRef<"Idea", 'String'>
  6369. readonly optionalSuccessLooksLike: FieldRef<"Idea", 'String'>
  6370. readonly status: FieldRef<"Idea", 'IdeaStatus'>
  6371. readonly llmTitle: FieldRef<"Idea", 'String'>
  6372. readonly llmDomain: FieldRef<"Idea", 'String'>
  6373. readonly llmAiType: FieldRef<"Idea", 'String'>
  6374. readonly llmExplanation: FieldRef<"Idea", 'String'>
  6375. readonly llmScoreImpact: FieldRef<"Idea", 'Int'>
  6376. readonly llmScoreFeasibility: FieldRef<"Idea", 'Int'>
  6377. readonly llmScoreUrgency: FieldRef<"Idea", 'Int'>
  6378. readonly llmEnrichedAt: FieldRef<"Idea", 'DateTime'>
  6379. readonly llmEnrichFailed: FieldRef<"Idea", 'Boolean'>
  6380. readonly manualScoreImpact: FieldRef<"Idea", 'Int'>
  6381. readonly manualScoreFeasibility: FieldRef<"Idea", 'Int'>
  6382. readonly manualScoreUrgency: FieldRef<"Idea", 'Int'>
  6383. readonly priorityOrder: FieldRef<"Idea", 'Int'>
  6384. readonly emailMessageId: FieldRef<"Idea", 'String'>
  6385. readonly createdAt: FieldRef<"Idea", 'DateTime'>
  6386. readonly updatedAt: FieldRef<"Idea", 'DateTime'>
  6387. }
  6388. // Custom InputTypes
  6389. /**
  6390. * Idea findUnique
  6391. */
  6392. export type IdeaFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6393. /**
  6394. * Select specific fields to fetch from the Idea
  6395. */
  6396. select?: IdeaSelect<ExtArgs> | null
  6397. /**
  6398. * Omit specific fields from the Idea
  6399. */
  6400. omit?: IdeaOmit<ExtArgs> | null
  6401. /**
  6402. * Choose, which related nodes to fetch as well
  6403. */
  6404. include?: IdeaInclude<ExtArgs> | null
  6405. /**
  6406. * Filter, which Idea to fetch.
  6407. */
  6408. where: IdeaWhereUniqueInput
  6409. }
  6410. /**
  6411. * Idea findUniqueOrThrow
  6412. */
  6413. export type IdeaFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6414. /**
  6415. * Select specific fields to fetch from the Idea
  6416. */
  6417. select?: IdeaSelect<ExtArgs> | null
  6418. /**
  6419. * Omit specific fields from the Idea
  6420. */
  6421. omit?: IdeaOmit<ExtArgs> | null
  6422. /**
  6423. * Choose, which related nodes to fetch as well
  6424. */
  6425. include?: IdeaInclude<ExtArgs> | null
  6426. /**
  6427. * Filter, which Idea to fetch.
  6428. */
  6429. where: IdeaWhereUniqueInput
  6430. }
  6431. /**
  6432. * Idea findFirst
  6433. */
  6434. export type IdeaFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6435. /**
  6436. * Select specific fields to fetch from the Idea
  6437. */
  6438. select?: IdeaSelect<ExtArgs> | null
  6439. /**
  6440. * Omit specific fields from the Idea
  6441. */
  6442. omit?: IdeaOmit<ExtArgs> | null
  6443. /**
  6444. * Choose, which related nodes to fetch as well
  6445. */
  6446. include?: IdeaInclude<ExtArgs> | null
  6447. /**
  6448. * Filter, which Idea to fetch.
  6449. */
  6450. where?: IdeaWhereInput
  6451. /**
  6452. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6453. *
  6454. * Determine the order of Ideas to fetch.
  6455. */
  6456. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6457. /**
  6458. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6459. *
  6460. * Sets the position for searching for Ideas.
  6461. */
  6462. cursor?: IdeaWhereUniqueInput
  6463. /**
  6464. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6465. *
  6466. * Take `±n` Ideas from the position of the cursor.
  6467. */
  6468. take?: number
  6469. /**
  6470. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6471. *
  6472. * Skip the first `n` Ideas.
  6473. */
  6474. skip?: number
  6475. /**
  6476. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6477. *
  6478. * Filter by unique combinations of Ideas.
  6479. */
  6480. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6481. }
  6482. /**
  6483. * Idea findFirstOrThrow
  6484. */
  6485. export type IdeaFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6486. /**
  6487. * Select specific fields to fetch from the Idea
  6488. */
  6489. select?: IdeaSelect<ExtArgs> | null
  6490. /**
  6491. * Omit specific fields from the Idea
  6492. */
  6493. omit?: IdeaOmit<ExtArgs> | null
  6494. /**
  6495. * Choose, which related nodes to fetch as well
  6496. */
  6497. include?: IdeaInclude<ExtArgs> | null
  6498. /**
  6499. * Filter, which Idea to fetch.
  6500. */
  6501. where?: IdeaWhereInput
  6502. /**
  6503. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6504. *
  6505. * Determine the order of Ideas to fetch.
  6506. */
  6507. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6508. /**
  6509. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6510. *
  6511. * Sets the position for searching for Ideas.
  6512. */
  6513. cursor?: IdeaWhereUniqueInput
  6514. /**
  6515. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6516. *
  6517. * Take `±n` Ideas from the position of the cursor.
  6518. */
  6519. take?: number
  6520. /**
  6521. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6522. *
  6523. * Skip the first `n` Ideas.
  6524. */
  6525. skip?: number
  6526. /**
  6527. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6528. *
  6529. * Filter by unique combinations of Ideas.
  6530. */
  6531. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6532. }
  6533. /**
  6534. * Idea findMany
  6535. */
  6536. export type IdeaFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6537. /**
  6538. * Select specific fields to fetch from the Idea
  6539. */
  6540. select?: IdeaSelect<ExtArgs> | null
  6541. /**
  6542. * Omit specific fields from the Idea
  6543. */
  6544. omit?: IdeaOmit<ExtArgs> | null
  6545. /**
  6546. * Choose, which related nodes to fetch as well
  6547. */
  6548. include?: IdeaInclude<ExtArgs> | null
  6549. /**
  6550. * Filter, which Ideas to fetch.
  6551. */
  6552. where?: IdeaWhereInput
  6553. /**
  6554. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6555. *
  6556. * Determine the order of Ideas to fetch.
  6557. */
  6558. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6559. /**
  6560. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6561. *
  6562. * Sets the position for listing Ideas.
  6563. */
  6564. cursor?: IdeaWhereUniqueInput
  6565. /**
  6566. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6567. *
  6568. * Take `±n` Ideas from the position of the cursor.
  6569. */
  6570. take?: number
  6571. /**
  6572. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6573. *
  6574. * Skip the first `n` Ideas.
  6575. */
  6576. skip?: number
  6577. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6578. }
  6579. /**
  6580. * Idea create
  6581. */
  6582. export type IdeaCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6583. /**
  6584. * Select specific fields to fetch from the Idea
  6585. */
  6586. select?: IdeaSelect<ExtArgs> | null
  6587. /**
  6588. * Omit specific fields from the Idea
  6589. */
  6590. omit?: IdeaOmit<ExtArgs> | null
  6591. /**
  6592. * Choose, which related nodes to fetch as well
  6593. */
  6594. include?: IdeaInclude<ExtArgs> | null
  6595. /**
  6596. * The data needed to create a Idea.
  6597. */
  6598. data: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6599. }
  6600. /**
  6601. * Idea createMany
  6602. */
  6603. export type IdeaCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6604. /**
  6605. * The data used to create many Ideas.
  6606. */
  6607. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6608. skipDuplicates?: boolean
  6609. }
  6610. /**
  6611. * Idea createManyAndReturn
  6612. */
  6613. export type IdeaCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6614. /**
  6615. * Select specific fields to fetch from the Idea
  6616. */
  6617. select?: IdeaSelectCreateManyAndReturn<ExtArgs> | null
  6618. /**
  6619. * Omit specific fields from the Idea
  6620. */
  6621. omit?: IdeaOmit<ExtArgs> | null
  6622. /**
  6623. * The data used to create many Ideas.
  6624. */
  6625. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6626. skipDuplicates?: boolean
  6627. /**
  6628. * Choose, which related nodes to fetch as well
  6629. */
  6630. include?: IdeaIncludeCreateManyAndReturn<ExtArgs> | null
  6631. }
  6632. /**
  6633. * Idea update
  6634. */
  6635. export type IdeaUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6636. /**
  6637. * Select specific fields to fetch from the Idea
  6638. */
  6639. select?: IdeaSelect<ExtArgs> | null
  6640. /**
  6641. * Omit specific fields from the Idea
  6642. */
  6643. omit?: IdeaOmit<ExtArgs> | null
  6644. /**
  6645. * Choose, which related nodes to fetch as well
  6646. */
  6647. include?: IdeaInclude<ExtArgs> | null
  6648. /**
  6649. * The data needed to update a Idea.
  6650. */
  6651. data: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6652. /**
  6653. * Choose, which Idea to update.
  6654. */
  6655. where: IdeaWhereUniqueInput
  6656. }
  6657. /**
  6658. * Idea updateMany
  6659. */
  6660. export type IdeaUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6661. /**
  6662. * The data used to update Ideas.
  6663. */
  6664. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6665. /**
  6666. * Filter which Ideas to update
  6667. */
  6668. where?: IdeaWhereInput
  6669. /**
  6670. * Limit how many Ideas to update.
  6671. */
  6672. limit?: number
  6673. }
  6674. /**
  6675. * Idea updateManyAndReturn
  6676. */
  6677. export type IdeaUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6678. /**
  6679. * Select specific fields to fetch from the Idea
  6680. */
  6681. select?: IdeaSelectUpdateManyAndReturn<ExtArgs> | null
  6682. /**
  6683. * Omit specific fields from the Idea
  6684. */
  6685. omit?: IdeaOmit<ExtArgs> | null
  6686. /**
  6687. * The data used to update Ideas.
  6688. */
  6689. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6690. /**
  6691. * Filter which Ideas to update
  6692. */
  6693. where?: IdeaWhereInput
  6694. /**
  6695. * Limit how many Ideas to update.
  6696. */
  6697. limit?: number
  6698. /**
  6699. * Choose, which related nodes to fetch as well
  6700. */
  6701. include?: IdeaIncludeUpdateManyAndReturn<ExtArgs> | null
  6702. }
  6703. /**
  6704. * Idea upsert
  6705. */
  6706. export type IdeaUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6707. /**
  6708. * Select specific fields to fetch from the Idea
  6709. */
  6710. select?: IdeaSelect<ExtArgs> | null
  6711. /**
  6712. * Omit specific fields from the Idea
  6713. */
  6714. omit?: IdeaOmit<ExtArgs> | null
  6715. /**
  6716. * Choose, which related nodes to fetch as well
  6717. */
  6718. include?: IdeaInclude<ExtArgs> | null
  6719. /**
  6720. * The filter to search for the Idea to update in case it exists.
  6721. */
  6722. where: IdeaWhereUniqueInput
  6723. /**
  6724. * In case the Idea found by the `where` argument doesn't exist, create a new Idea with this data.
  6725. */
  6726. create: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6727. /**
  6728. * In case the Idea was found with the provided `where` argument, update it with this data.
  6729. */
  6730. update: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6731. }
  6732. /**
  6733. * Idea delete
  6734. */
  6735. export type IdeaDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6736. /**
  6737. * Select specific fields to fetch from the Idea
  6738. */
  6739. select?: IdeaSelect<ExtArgs> | null
  6740. /**
  6741. * Omit specific fields from the Idea
  6742. */
  6743. omit?: IdeaOmit<ExtArgs> | null
  6744. /**
  6745. * Choose, which related nodes to fetch as well
  6746. */
  6747. include?: IdeaInclude<ExtArgs> | null
  6748. /**
  6749. * Filter which Idea to delete.
  6750. */
  6751. where: IdeaWhereUniqueInput
  6752. }
  6753. /**
  6754. * Idea deleteMany
  6755. */
  6756. export type IdeaDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6757. /**
  6758. * Filter which Ideas to delete
  6759. */
  6760. where?: IdeaWhereInput
  6761. /**
  6762. * Limit how many Ideas to delete.
  6763. */
  6764. limit?: number
  6765. }
  6766. /**
  6767. * Idea.contributor
  6768. */
  6769. export type Idea$contributorArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6770. /**
  6771. * Select specific fields to fetch from the Contributor
  6772. */
  6773. select?: ContributorSelect<ExtArgs> | null
  6774. /**
  6775. * Omit specific fields from the Contributor
  6776. */
  6777. omit?: ContributorOmit<ExtArgs> | null
  6778. /**
  6779. * Choose, which related nodes to fetch as well
  6780. */
  6781. include?: ContributorInclude<ExtArgs> | null
  6782. where?: ContributorWhereInput
  6783. }
  6784. /**
  6785. * Idea.attachments
  6786. */
  6787. export type Idea$attachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6788. /**
  6789. * Select specific fields to fetch from the IdeaAttachment
  6790. */
  6791. select?: IdeaAttachmentSelect<ExtArgs> | null
  6792. /**
  6793. * Omit specific fields from the IdeaAttachment
  6794. */
  6795. omit?: IdeaAttachmentOmit<ExtArgs> | null
  6796. /**
  6797. * Choose, which related nodes to fetch as well
  6798. */
  6799. include?: IdeaAttachmentInclude<ExtArgs> | null
  6800. where?: IdeaAttachmentWhereInput
  6801. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  6802. cursor?: IdeaAttachmentWhereUniqueInput
  6803. take?: number
  6804. skip?: number
  6805. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  6806. }
  6807. /**
  6808. * Idea.qualificationQuestions
  6809. */
  6810. export type Idea$qualificationQuestionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6811. /**
  6812. * Select specific fields to fetch from the QualificationQuestion
  6813. */
  6814. select?: QualificationQuestionSelect<ExtArgs> | null
  6815. /**
  6816. * Omit specific fields from the QualificationQuestion
  6817. */
  6818. omit?: QualificationQuestionOmit<ExtArgs> | null
  6819. /**
  6820. * Choose, which related nodes to fetch as well
  6821. */
  6822. include?: QualificationQuestionInclude<ExtArgs> | null
  6823. where?: QualificationQuestionWhereInput
  6824. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  6825. cursor?: QualificationQuestionWhereUniqueInput
  6826. take?: number
  6827. skip?: number
  6828. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  6829. }
  6830. /**
  6831. * Idea without action
  6832. */
  6833. export type IdeaDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6834. /**
  6835. * Select specific fields to fetch from the Idea
  6836. */
  6837. select?: IdeaSelect<ExtArgs> | null
  6838. /**
  6839. * Omit specific fields from the Idea
  6840. */
  6841. omit?: IdeaOmit<ExtArgs> | null
  6842. /**
  6843. * Choose, which related nodes to fetch as well
  6844. */
  6845. include?: IdeaInclude<ExtArgs> | null
  6846. }
  6847. /**
  6848. * Model Post
  6849. */
  6850. export type AggregatePost = {
  6851. _count: PostCountAggregateOutputType | null
  6852. _avg: PostAvgAggregateOutputType | null
  6853. _sum: PostSumAggregateOutputType | null
  6854. _min: PostMinAggregateOutputType | null
  6855. _max: PostMaxAggregateOutputType | null
  6856. }
  6857. export type PostAvgAggregateOutputType = {
  6858. id: number | null
  6859. }
  6860. export type PostSumAggregateOutputType = {
  6861. id: number | null
  6862. }
  6863. export type PostMinAggregateOutputType = {
  6864. id: number | null
  6865. name: string | null
  6866. createdAt: Date | null
  6867. updatedAt: Date | null
  6868. createdById: string | null
  6869. }
  6870. export type PostMaxAggregateOutputType = {
  6871. id: number | null
  6872. name: string | null
  6873. createdAt: Date | null
  6874. updatedAt: Date | null
  6875. createdById: string | null
  6876. }
  6877. export type PostCountAggregateOutputType = {
  6878. id: number
  6879. name: number
  6880. createdAt: number
  6881. updatedAt: number
  6882. createdById: number
  6883. _all: number
  6884. }
  6885. export type PostAvgAggregateInputType = {
  6886. id?: true
  6887. }
  6888. export type PostSumAggregateInputType = {
  6889. id?: true
  6890. }
  6891. export type PostMinAggregateInputType = {
  6892. id?: true
  6893. name?: true
  6894. createdAt?: true
  6895. updatedAt?: true
  6896. createdById?: true
  6897. }
  6898. export type PostMaxAggregateInputType = {
  6899. id?: true
  6900. name?: true
  6901. createdAt?: true
  6902. updatedAt?: true
  6903. createdById?: true
  6904. }
  6905. export type PostCountAggregateInputType = {
  6906. id?: true
  6907. name?: true
  6908. createdAt?: true
  6909. updatedAt?: true
  6910. createdById?: true
  6911. _all?: true
  6912. }
  6913. export type PostAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6914. /**
  6915. * Filter which Post to aggregate.
  6916. */
  6917. where?: PostWhereInput
  6918. /**
  6919. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6920. *
  6921. * Determine the order of Posts to fetch.
  6922. */
  6923. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  6924. /**
  6925. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6926. *
  6927. * Sets the start position
  6928. */
  6929. cursor?: PostWhereUniqueInput
  6930. /**
  6931. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6932. *
  6933. * Take `±n` Posts from the position of the cursor.
  6934. */
  6935. take?: number
  6936. /**
  6937. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6938. *
  6939. * Skip the first `n` Posts.
  6940. */
  6941. skip?: number
  6942. /**
  6943. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6944. *
  6945. * Count returned Posts
  6946. **/
  6947. _count?: true | PostCountAggregateInputType
  6948. /**
  6949. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6950. *
  6951. * Select which fields to average
  6952. **/
  6953. _avg?: PostAvgAggregateInputType
  6954. /**
  6955. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6956. *
  6957. * Select which fields to sum
  6958. **/
  6959. _sum?: PostSumAggregateInputType
  6960. /**
  6961. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6962. *
  6963. * Select which fields to find the minimum value
  6964. **/
  6965. _min?: PostMinAggregateInputType
  6966. /**
  6967. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6968. *
  6969. * Select which fields to find the maximum value
  6970. **/
  6971. _max?: PostMaxAggregateInputType
  6972. }
  6973. export type GetPostAggregateType<T extends PostAggregateArgs> = {
  6974. [P in keyof T & keyof AggregatePost]: P extends '_count' | 'count'
  6975. ? T[P] extends true
  6976. ? number
  6977. : GetScalarType<T[P], AggregatePost[P]>
  6978. : GetScalarType<T[P], AggregatePost[P]>
  6979. }
  6980. export type PostGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6981. where?: PostWhereInput
  6982. orderBy?: PostOrderByWithAggregationInput | PostOrderByWithAggregationInput[]
  6983. by: PostScalarFieldEnum[] | PostScalarFieldEnum
  6984. having?: PostScalarWhereWithAggregatesInput
  6985. take?: number
  6986. skip?: number
  6987. _count?: PostCountAggregateInputType | true
  6988. _avg?: PostAvgAggregateInputType
  6989. _sum?: PostSumAggregateInputType
  6990. _min?: PostMinAggregateInputType
  6991. _max?: PostMaxAggregateInputType
  6992. }
  6993. export type PostGroupByOutputType = {
  6994. id: number
  6995. name: string
  6996. createdAt: Date
  6997. updatedAt: Date
  6998. createdById: string
  6999. _count: PostCountAggregateOutputType | null
  7000. _avg: PostAvgAggregateOutputType | null
  7001. _sum: PostSumAggregateOutputType | null
  7002. _min: PostMinAggregateOutputType | null
  7003. _max: PostMaxAggregateOutputType | null
  7004. }
  7005. type GetPostGroupByPayload<T extends PostGroupByArgs> = Prisma.PrismaPromise<
  7006. Array<
  7007. PickEnumerable<PostGroupByOutputType, T['by']> &
  7008. {
  7009. [P in ((keyof T) & (keyof PostGroupByOutputType))]: P extends '_count'
  7010. ? T[P] extends boolean
  7011. ? number
  7012. : GetScalarType<T[P], PostGroupByOutputType[P]>
  7013. : GetScalarType<T[P], PostGroupByOutputType[P]>
  7014. }
  7015. >
  7016. >
  7017. export type PostSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7018. id?: boolean
  7019. name?: boolean
  7020. createdAt?: boolean
  7021. updatedAt?: boolean
  7022. createdById?: boolean
  7023. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7024. }, ExtArgs["result"]["post"]>
  7025. export type PostSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7026. id?: boolean
  7027. name?: boolean
  7028. createdAt?: boolean
  7029. updatedAt?: boolean
  7030. createdById?: boolean
  7031. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7032. }, ExtArgs["result"]["post"]>
  7033. export type PostSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7034. id?: boolean
  7035. name?: boolean
  7036. createdAt?: boolean
  7037. updatedAt?: boolean
  7038. createdById?: boolean
  7039. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7040. }, ExtArgs["result"]["post"]>
  7041. export type PostSelectScalar = {
  7042. id?: boolean
  7043. name?: boolean
  7044. createdAt?: boolean
  7045. updatedAt?: boolean
  7046. createdById?: boolean
  7047. }
  7048. export type PostOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt" | "createdById", ExtArgs["result"]["post"]>
  7049. export type PostInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7050. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7051. }
  7052. export type PostIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7053. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7054. }
  7055. export type PostIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7056. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7057. }
  7058. export type $PostPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7059. name: "Post"
  7060. objects: {
  7061. createdBy: Prisma.$UserPayload<ExtArgs>
  7062. }
  7063. scalars: $Extensions.GetPayloadResult<{
  7064. id: number
  7065. name: string
  7066. createdAt: Date
  7067. updatedAt: Date
  7068. createdById: string
  7069. }, ExtArgs["result"]["post"]>
  7070. composites: {}
  7071. }
  7072. type PostGetPayload<S extends boolean | null | undefined | PostDefaultArgs> = $Result.GetResult<Prisma.$PostPayload, S>
  7073. type PostCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  7074. Omit<PostFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  7075. select?: PostCountAggregateInputType | true
  7076. }
  7077. export interface PostDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  7078. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Post'], meta: { name: 'Post' } }
  7079. /**
  7080. * Find zero or one Post that matches the filter.
  7081. * @param {PostFindUniqueArgs} args - Arguments to find a Post
  7082. * @example
  7083. * // Get one Post
  7084. * const post = await prisma.post.findUnique({
  7085. * where: {
  7086. * // ... provide filter here
  7087. * }
  7088. * })
  7089. */
  7090. findUnique<T extends PostFindUniqueArgs>(args: SelectSubset<T, PostFindUniqueArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7091. /**
  7092. * Find one Post that matches the filter or throw an error with `error.code='P2025'`
  7093. * if no matches were found.
  7094. * @param {PostFindUniqueOrThrowArgs} args - Arguments to find a Post
  7095. * @example
  7096. * // Get one Post
  7097. * const post = await prisma.post.findUniqueOrThrow({
  7098. * where: {
  7099. * // ... provide filter here
  7100. * }
  7101. * })
  7102. */
  7103. findUniqueOrThrow<T extends PostFindUniqueOrThrowArgs>(args: SelectSubset<T, PostFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7104. /**
  7105. * Find the first Post that matches the filter.
  7106. * Note, that providing `undefined` is treated as the value not being there.
  7107. * Read more here: https://pris.ly/d/null-undefined
  7108. * @param {PostFindFirstArgs} args - Arguments to find a Post
  7109. * @example
  7110. * // Get one Post
  7111. * const post = await prisma.post.findFirst({
  7112. * where: {
  7113. * // ... provide filter here
  7114. * }
  7115. * })
  7116. */
  7117. findFirst<T extends PostFindFirstArgs>(args?: SelectSubset<T, PostFindFirstArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7118. /**
  7119. * Find the first Post that matches the filter or
  7120. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  7121. * Note, that providing `undefined` is treated as the value not being there.
  7122. * Read more here: https://pris.ly/d/null-undefined
  7123. * @param {PostFindFirstOrThrowArgs} args - Arguments to find a Post
  7124. * @example
  7125. * // Get one Post
  7126. * const post = await prisma.post.findFirstOrThrow({
  7127. * where: {
  7128. * // ... provide filter here
  7129. * }
  7130. * })
  7131. */
  7132. findFirstOrThrow<T extends PostFindFirstOrThrowArgs>(args?: SelectSubset<T, PostFindFirstOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7133. /**
  7134. * Find zero or more Posts that matches the filter.
  7135. * Note, that providing `undefined` is treated as the value not being there.
  7136. * Read more here: https://pris.ly/d/null-undefined
  7137. * @param {PostFindManyArgs} args - Arguments to filter and select certain fields only.
  7138. * @example
  7139. * // Get all Posts
  7140. * const posts = await prisma.post.findMany()
  7141. *
  7142. * // Get first 10 Posts
  7143. * const posts = await prisma.post.findMany({ take: 10 })
  7144. *
  7145. * // Only select the `id`
  7146. * const postWithIdOnly = await prisma.post.findMany({ select: { id: true } })
  7147. *
  7148. */
  7149. findMany<T extends PostFindManyArgs>(args?: SelectSubset<T, PostFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  7150. /**
  7151. * Create a Post.
  7152. * @param {PostCreateArgs} args - Arguments to create a Post.
  7153. * @example
  7154. * // Create one Post
  7155. * const Post = await prisma.post.create({
  7156. * data: {
  7157. * // ... data to create a Post
  7158. * }
  7159. * })
  7160. *
  7161. */
  7162. create<T extends PostCreateArgs>(args: SelectSubset<T, PostCreateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7163. /**
  7164. * Create many Posts.
  7165. * @param {PostCreateManyArgs} args - Arguments to create many Posts.
  7166. * @example
  7167. * // Create many Posts
  7168. * const post = await prisma.post.createMany({
  7169. * data: [
  7170. * // ... provide data here
  7171. * ]
  7172. * })
  7173. *
  7174. */
  7175. createMany<T extends PostCreateManyArgs>(args?: SelectSubset<T, PostCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7176. /**
  7177. * Create many Posts and returns the data saved in the database.
  7178. * @param {PostCreateManyAndReturnArgs} args - Arguments to create many Posts.
  7179. * @example
  7180. * // Create many Posts
  7181. * const post = await prisma.post.createManyAndReturn({
  7182. * data: [
  7183. * // ... provide data here
  7184. * ]
  7185. * })
  7186. *
  7187. * // Create many Posts and only return the `id`
  7188. * const postWithIdOnly = await prisma.post.createManyAndReturn({
  7189. * select: { id: true },
  7190. * data: [
  7191. * // ... provide data here
  7192. * ]
  7193. * })
  7194. * Note, that providing `undefined` is treated as the value not being there.
  7195. * Read more here: https://pris.ly/d/null-undefined
  7196. *
  7197. */
  7198. createManyAndReturn<T extends PostCreateManyAndReturnArgs>(args?: SelectSubset<T, PostCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  7199. /**
  7200. * Delete a Post.
  7201. * @param {PostDeleteArgs} args - Arguments to delete one Post.
  7202. * @example
  7203. * // Delete one Post
  7204. * const Post = await prisma.post.delete({
  7205. * where: {
  7206. * // ... filter to delete one Post
  7207. * }
  7208. * })
  7209. *
  7210. */
  7211. delete<T extends PostDeleteArgs>(args: SelectSubset<T, PostDeleteArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7212. /**
  7213. * Update one Post.
  7214. * @param {PostUpdateArgs} args - Arguments to update one Post.
  7215. * @example
  7216. * // Update one Post
  7217. * const post = await prisma.post.update({
  7218. * where: {
  7219. * // ... provide filter here
  7220. * },
  7221. * data: {
  7222. * // ... provide data here
  7223. * }
  7224. * })
  7225. *
  7226. */
  7227. update<T extends PostUpdateArgs>(args: SelectSubset<T, PostUpdateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7228. /**
  7229. * Delete zero or more Posts.
  7230. * @param {PostDeleteManyArgs} args - Arguments to filter Posts to delete.
  7231. * @example
  7232. * // Delete a few Posts
  7233. * const { count } = await prisma.post.deleteMany({
  7234. * where: {
  7235. * // ... provide filter here
  7236. * }
  7237. * })
  7238. *
  7239. */
  7240. deleteMany<T extends PostDeleteManyArgs>(args?: SelectSubset<T, PostDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7241. /**
  7242. * Update zero or more Posts.
  7243. * Note, that providing `undefined` is treated as the value not being there.
  7244. * Read more here: https://pris.ly/d/null-undefined
  7245. * @param {PostUpdateManyArgs} args - Arguments to update one or more rows.
  7246. * @example
  7247. * // Update many Posts
  7248. * const post = await prisma.post.updateMany({
  7249. * where: {
  7250. * // ... provide filter here
  7251. * },
  7252. * data: {
  7253. * // ... provide data here
  7254. * }
  7255. * })
  7256. *
  7257. */
  7258. updateMany<T extends PostUpdateManyArgs>(args: SelectSubset<T, PostUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7259. /**
  7260. * Update zero or more Posts and returns the data updated in the database.
  7261. * @param {PostUpdateManyAndReturnArgs} args - Arguments to update many Posts.
  7262. * @example
  7263. * // Update many Posts
  7264. * const post = await prisma.post.updateManyAndReturn({
  7265. * where: {
  7266. * // ... provide filter here
  7267. * },
  7268. * data: [
  7269. * // ... provide data here
  7270. * ]
  7271. * })
  7272. *
  7273. * // Update zero or more Posts and only return the `id`
  7274. * const postWithIdOnly = await prisma.post.updateManyAndReturn({
  7275. * select: { id: true },
  7276. * where: {
  7277. * // ... provide filter here
  7278. * },
  7279. * data: [
  7280. * // ... provide data here
  7281. * ]
  7282. * })
  7283. * Note, that providing `undefined` is treated as the value not being there.
  7284. * Read more here: https://pris.ly/d/null-undefined
  7285. *
  7286. */
  7287. updateManyAndReturn<T extends PostUpdateManyAndReturnArgs>(args: SelectSubset<T, PostUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  7288. /**
  7289. * Create or update one Post.
  7290. * @param {PostUpsertArgs} args - Arguments to update or create a Post.
  7291. * @example
  7292. * // Update or create a Post
  7293. * const post = await prisma.post.upsert({
  7294. * create: {
  7295. * // ... data to create a Post
  7296. * },
  7297. * update: {
  7298. * // ... in case it already exists, update
  7299. * },
  7300. * where: {
  7301. * // ... the filter for the Post we want to update
  7302. * }
  7303. * })
  7304. */
  7305. upsert<T extends PostUpsertArgs>(args: SelectSubset<T, PostUpsertArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7306. /**
  7307. * Count the number of Posts.
  7308. * Note, that providing `undefined` is treated as the value not being there.
  7309. * Read more here: https://pris.ly/d/null-undefined
  7310. * @param {PostCountArgs} args - Arguments to filter Posts to count.
  7311. * @example
  7312. * // Count the number of Posts
  7313. * const count = await prisma.post.count({
  7314. * where: {
  7315. * // ... the filter for the Posts we want to count
  7316. * }
  7317. * })
  7318. **/
  7319. count<T extends PostCountArgs>(
  7320. args?: Subset<T, PostCountArgs>,
  7321. ): Prisma.PrismaPromise<
  7322. T extends $Utils.Record<'select', any>
  7323. ? T['select'] extends true
  7324. ? number
  7325. : GetScalarType<T['select'], PostCountAggregateOutputType>
  7326. : number
  7327. >
  7328. /**
  7329. * Allows you to perform aggregations operations on a Post.
  7330. * Note, that providing `undefined` is treated as the value not being there.
  7331. * Read more here: https://pris.ly/d/null-undefined
  7332. * @param {PostAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  7333. * @example
  7334. * // Ordered by age ascending
  7335. * // Where email contains prisma.io
  7336. * // Limited to the 10 users
  7337. * const aggregations = await prisma.user.aggregate({
  7338. * _avg: {
  7339. * age: true,
  7340. * },
  7341. * where: {
  7342. * email: {
  7343. * contains: "prisma.io",
  7344. * },
  7345. * },
  7346. * orderBy: {
  7347. * age: "asc",
  7348. * },
  7349. * take: 10,
  7350. * })
  7351. **/
  7352. aggregate<T extends PostAggregateArgs>(args: Subset<T, PostAggregateArgs>): Prisma.PrismaPromise<GetPostAggregateType<T>>
  7353. /**
  7354. * Group by Post.
  7355. * Note, that providing `undefined` is treated as the value not being there.
  7356. * Read more here: https://pris.ly/d/null-undefined
  7357. * @param {PostGroupByArgs} args - Group by arguments.
  7358. * @example
  7359. * // Group by city, order by createdAt, get count
  7360. * const result = await prisma.user.groupBy({
  7361. * by: ['city', 'createdAt'],
  7362. * orderBy: {
  7363. * createdAt: true
  7364. * },
  7365. * _count: {
  7366. * _all: true
  7367. * },
  7368. * })
  7369. *
  7370. **/
  7371. groupBy<
  7372. T extends PostGroupByArgs,
  7373. HasSelectOrTake extends Or<
  7374. Extends<'skip', Keys<T>>,
  7375. Extends<'take', Keys<T>>
  7376. >,
  7377. OrderByArg extends True extends HasSelectOrTake
  7378. ? { orderBy: PostGroupByArgs['orderBy'] }
  7379. : { orderBy?: PostGroupByArgs['orderBy'] },
  7380. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  7381. ByFields extends MaybeTupleToUnion<T['by']>,
  7382. ByValid extends Has<ByFields, OrderFields>,
  7383. HavingFields extends GetHavingFields<T['having']>,
  7384. HavingValid extends Has<ByFields, HavingFields>,
  7385. ByEmpty extends T['by'] extends never[] ? True : False,
  7386. InputErrors extends ByEmpty extends True
  7387. ? `Error: "by" must not be empty.`
  7388. : HavingValid extends False
  7389. ? {
  7390. [P in HavingFields]: P extends ByFields
  7391. ? never
  7392. : P extends string
  7393. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  7394. : [
  7395. Error,
  7396. 'Field ',
  7397. P,
  7398. ` in "having" needs to be provided in "by"`,
  7399. ]
  7400. }[HavingFields]
  7401. : 'take' extends Keys<T>
  7402. ? 'orderBy' extends Keys<T>
  7403. ? ByValid extends True
  7404. ? {}
  7405. : {
  7406. [P in OrderFields]: P extends ByFields
  7407. ? never
  7408. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7409. }[OrderFields]
  7410. : 'Error: If you provide "take", you also need to provide "orderBy"'
  7411. : 'skip' extends Keys<T>
  7412. ? 'orderBy' extends Keys<T>
  7413. ? ByValid extends True
  7414. ? {}
  7415. : {
  7416. [P in OrderFields]: P extends ByFields
  7417. ? never
  7418. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7419. }[OrderFields]
  7420. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  7421. : ByValid extends True
  7422. ? {}
  7423. : {
  7424. [P in OrderFields]: P extends ByFields
  7425. ? never
  7426. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7427. }[OrderFields]
  7428. >(args: SubsetIntersection<T, PostGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPostGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  7429. /**
  7430. * Fields of the Post model
  7431. */
  7432. readonly fields: PostFieldRefs;
  7433. }
  7434. /**
  7435. * The delegate class that acts as a "Promise-like" for Post.
  7436. * Why is this prefixed with `Prisma__`?
  7437. * Because we want to prevent naming conflicts as mentioned in
  7438. * https://github.com/prisma/prisma-client-js/issues/707
  7439. */
  7440. export interface Prisma__PostClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  7441. readonly [Symbol.toStringTag]: "PrismaPromise"
  7442. createdBy<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  7443. /**
  7444. * Attaches callbacks for the resolution and/or rejection of the Promise.
  7445. * @param onfulfilled The callback to execute when the Promise is resolved.
  7446. * @param onrejected The callback to execute when the Promise is rejected.
  7447. * @returns A Promise for the completion of which ever callback is executed.
  7448. */
  7449. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  7450. /**
  7451. * Attaches a callback for only the rejection of the Promise.
  7452. * @param onrejected The callback to execute when the Promise is rejected.
  7453. * @returns A Promise for the completion of the callback.
  7454. */
  7455. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  7456. /**
  7457. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  7458. * resolved value cannot be modified from the callback.
  7459. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  7460. * @returns A Promise for the completion of the callback.
  7461. */
  7462. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  7463. }
  7464. /**
  7465. * Fields of the Post model
  7466. */
  7467. interface PostFieldRefs {
  7468. readonly id: FieldRef<"Post", 'Int'>
  7469. readonly name: FieldRef<"Post", 'String'>
  7470. readonly createdAt: FieldRef<"Post", 'DateTime'>
  7471. readonly updatedAt: FieldRef<"Post", 'DateTime'>
  7472. readonly createdById: FieldRef<"Post", 'String'>
  7473. }
  7474. // Custom InputTypes
  7475. /**
  7476. * Post findUnique
  7477. */
  7478. export type PostFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7479. /**
  7480. * Select specific fields to fetch from the Post
  7481. */
  7482. select?: PostSelect<ExtArgs> | null
  7483. /**
  7484. * Omit specific fields from the Post
  7485. */
  7486. omit?: PostOmit<ExtArgs> | null
  7487. /**
  7488. * Choose, which related nodes to fetch as well
  7489. */
  7490. include?: PostInclude<ExtArgs> | null
  7491. /**
  7492. * Filter, which Post to fetch.
  7493. */
  7494. where: PostWhereUniqueInput
  7495. }
  7496. /**
  7497. * Post findUniqueOrThrow
  7498. */
  7499. export type PostFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7500. /**
  7501. * Select specific fields to fetch from the Post
  7502. */
  7503. select?: PostSelect<ExtArgs> | null
  7504. /**
  7505. * Omit specific fields from the Post
  7506. */
  7507. omit?: PostOmit<ExtArgs> | null
  7508. /**
  7509. * Choose, which related nodes to fetch as well
  7510. */
  7511. include?: PostInclude<ExtArgs> | null
  7512. /**
  7513. * Filter, which Post to fetch.
  7514. */
  7515. where: PostWhereUniqueInput
  7516. }
  7517. /**
  7518. * Post findFirst
  7519. */
  7520. export type PostFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7521. /**
  7522. * Select specific fields to fetch from the Post
  7523. */
  7524. select?: PostSelect<ExtArgs> | null
  7525. /**
  7526. * Omit specific fields from the Post
  7527. */
  7528. omit?: PostOmit<ExtArgs> | null
  7529. /**
  7530. * Choose, which related nodes to fetch as well
  7531. */
  7532. include?: PostInclude<ExtArgs> | null
  7533. /**
  7534. * Filter, which Post to fetch.
  7535. */
  7536. where?: PostWhereInput
  7537. /**
  7538. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7539. *
  7540. * Determine the order of Posts to fetch.
  7541. */
  7542. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7543. /**
  7544. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7545. *
  7546. * Sets the position for searching for Posts.
  7547. */
  7548. cursor?: PostWhereUniqueInput
  7549. /**
  7550. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7551. *
  7552. * Take `±n` Posts from the position of the cursor.
  7553. */
  7554. take?: number
  7555. /**
  7556. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7557. *
  7558. * Skip the first `n` Posts.
  7559. */
  7560. skip?: number
  7561. /**
  7562. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7563. *
  7564. * Filter by unique combinations of Posts.
  7565. */
  7566. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7567. }
  7568. /**
  7569. * Post findFirstOrThrow
  7570. */
  7571. export type PostFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7572. /**
  7573. * Select specific fields to fetch from the Post
  7574. */
  7575. select?: PostSelect<ExtArgs> | null
  7576. /**
  7577. * Omit specific fields from the Post
  7578. */
  7579. omit?: PostOmit<ExtArgs> | null
  7580. /**
  7581. * Choose, which related nodes to fetch as well
  7582. */
  7583. include?: PostInclude<ExtArgs> | null
  7584. /**
  7585. * Filter, which Post to fetch.
  7586. */
  7587. where?: PostWhereInput
  7588. /**
  7589. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7590. *
  7591. * Determine the order of Posts to fetch.
  7592. */
  7593. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7594. /**
  7595. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7596. *
  7597. * Sets the position for searching for Posts.
  7598. */
  7599. cursor?: PostWhereUniqueInput
  7600. /**
  7601. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7602. *
  7603. * Take `±n` Posts from the position of the cursor.
  7604. */
  7605. take?: number
  7606. /**
  7607. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7608. *
  7609. * Skip the first `n` Posts.
  7610. */
  7611. skip?: number
  7612. /**
  7613. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7614. *
  7615. * Filter by unique combinations of Posts.
  7616. */
  7617. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7618. }
  7619. /**
  7620. * Post findMany
  7621. */
  7622. export type PostFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7623. /**
  7624. * Select specific fields to fetch from the Post
  7625. */
  7626. select?: PostSelect<ExtArgs> | null
  7627. /**
  7628. * Omit specific fields from the Post
  7629. */
  7630. omit?: PostOmit<ExtArgs> | null
  7631. /**
  7632. * Choose, which related nodes to fetch as well
  7633. */
  7634. include?: PostInclude<ExtArgs> | null
  7635. /**
  7636. * Filter, which Posts to fetch.
  7637. */
  7638. where?: PostWhereInput
  7639. /**
  7640. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7641. *
  7642. * Determine the order of Posts to fetch.
  7643. */
  7644. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7645. /**
  7646. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7647. *
  7648. * Sets the position for listing Posts.
  7649. */
  7650. cursor?: PostWhereUniqueInput
  7651. /**
  7652. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7653. *
  7654. * Take `±n` Posts from the position of the cursor.
  7655. */
  7656. take?: number
  7657. /**
  7658. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7659. *
  7660. * Skip the first `n` Posts.
  7661. */
  7662. skip?: number
  7663. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7664. }
  7665. /**
  7666. * Post create
  7667. */
  7668. export type PostCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7669. /**
  7670. * Select specific fields to fetch from the Post
  7671. */
  7672. select?: PostSelect<ExtArgs> | null
  7673. /**
  7674. * Omit specific fields from the Post
  7675. */
  7676. omit?: PostOmit<ExtArgs> | null
  7677. /**
  7678. * Choose, which related nodes to fetch as well
  7679. */
  7680. include?: PostInclude<ExtArgs> | null
  7681. /**
  7682. * The data needed to create a Post.
  7683. */
  7684. data: XOR<PostCreateInput, PostUncheckedCreateInput>
  7685. }
  7686. /**
  7687. * Post createMany
  7688. */
  7689. export type PostCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7690. /**
  7691. * The data used to create many Posts.
  7692. */
  7693. data: PostCreateManyInput | PostCreateManyInput[]
  7694. skipDuplicates?: boolean
  7695. }
  7696. /**
  7697. * Post createManyAndReturn
  7698. */
  7699. export type PostCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7700. /**
  7701. * Select specific fields to fetch from the Post
  7702. */
  7703. select?: PostSelectCreateManyAndReturn<ExtArgs> | null
  7704. /**
  7705. * Omit specific fields from the Post
  7706. */
  7707. omit?: PostOmit<ExtArgs> | null
  7708. /**
  7709. * The data used to create many Posts.
  7710. */
  7711. data: PostCreateManyInput | PostCreateManyInput[]
  7712. skipDuplicates?: boolean
  7713. /**
  7714. * Choose, which related nodes to fetch as well
  7715. */
  7716. include?: PostIncludeCreateManyAndReturn<ExtArgs> | null
  7717. }
  7718. /**
  7719. * Post update
  7720. */
  7721. export type PostUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7722. /**
  7723. * Select specific fields to fetch from the Post
  7724. */
  7725. select?: PostSelect<ExtArgs> | null
  7726. /**
  7727. * Omit specific fields from the Post
  7728. */
  7729. omit?: PostOmit<ExtArgs> | null
  7730. /**
  7731. * Choose, which related nodes to fetch as well
  7732. */
  7733. include?: PostInclude<ExtArgs> | null
  7734. /**
  7735. * The data needed to update a Post.
  7736. */
  7737. data: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7738. /**
  7739. * Choose, which Post to update.
  7740. */
  7741. where: PostWhereUniqueInput
  7742. }
  7743. /**
  7744. * Post updateMany
  7745. */
  7746. export type PostUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7747. /**
  7748. * The data used to update Posts.
  7749. */
  7750. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7751. /**
  7752. * Filter which Posts to update
  7753. */
  7754. where?: PostWhereInput
  7755. /**
  7756. * Limit how many Posts to update.
  7757. */
  7758. limit?: number
  7759. }
  7760. /**
  7761. * Post updateManyAndReturn
  7762. */
  7763. export type PostUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7764. /**
  7765. * Select specific fields to fetch from the Post
  7766. */
  7767. select?: PostSelectUpdateManyAndReturn<ExtArgs> | null
  7768. /**
  7769. * Omit specific fields from the Post
  7770. */
  7771. omit?: PostOmit<ExtArgs> | null
  7772. /**
  7773. * The data used to update Posts.
  7774. */
  7775. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7776. /**
  7777. * Filter which Posts to update
  7778. */
  7779. where?: PostWhereInput
  7780. /**
  7781. * Limit how many Posts to update.
  7782. */
  7783. limit?: number
  7784. /**
  7785. * Choose, which related nodes to fetch as well
  7786. */
  7787. include?: PostIncludeUpdateManyAndReturn<ExtArgs> | null
  7788. }
  7789. /**
  7790. * Post upsert
  7791. */
  7792. export type PostUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7793. /**
  7794. * Select specific fields to fetch from the Post
  7795. */
  7796. select?: PostSelect<ExtArgs> | null
  7797. /**
  7798. * Omit specific fields from the Post
  7799. */
  7800. omit?: PostOmit<ExtArgs> | null
  7801. /**
  7802. * Choose, which related nodes to fetch as well
  7803. */
  7804. include?: PostInclude<ExtArgs> | null
  7805. /**
  7806. * The filter to search for the Post to update in case it exists.
  7807. */
  7808. where: PostWhereUniqueInput
  7809. /**
  7810. * In case the Post found by the `where` argument doesn't exist, create a new Post with this data.
  7811. */
  7812. create: XOR<PostCreateInput, PostUncheckedCreateInput>
  7813. /**
  7814. * In case the Post was found with the provided `where` argument, update it with this data.
  7815. */
  7816. update: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7817. }
  7818. /**
  7819. * Post delete
  7820. */
  7821. export type PostDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7822. /**
  7823. * Select specific fields to fetch from the Post
  7824. */
  7825. select?: PostSelect<ExtArgs> | null
  7826. /**
  7827. * Omit specific fields from the Post
  7828. */
  7829. omit?: PostOmit<ExtArgs> | null
  7830. /**
  7831. * Choose, which related nodes to fetch as well
  7832. */
  7833. include?: PostInclude<ExtArgs> | null
  7834. /**
  7835. * Filter which Post to delete.
  7836. */
  7837. where: PostWhereUniqueInput
  7838. }
  7839. /**
  7840. * Post deleteMany
  7841. */
  7842. export type PostDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7843. /**
  7844. * Filter which Posts to delete
  7845. */
  7846. where?: PostWhereInput
  7847. /**
  7848. * Limit how many Posts to delete.
  7849. */
  7850. limit?: number
  7851. }
  7852. /**
  7853. * Post without action
  7854. */
  7855. export type PostDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7856. /**
  7857. * Select specific fields to fetch from the Post
  7858. */
  7859. select?: PostSelect<ExtArgs> | null
  7860. /**
  7861. * Omit specific fields from the Post
  7862. */
  7863. omit?: PostOmit<ExtArgs> | null
  7864. /**
  7865. * Choose, which related nodes to fetch as well
  7866. */
  7867. include?: PostInclude<ExtArgs> | null
  7868. }
  7869. /**
  7870. * Model Account
  7871. */
  7872. export type AggregateAccount = {
  7873. _count: AccountCountAggregateOutputType | null
  7874. _avg: AccountAvgAggregateOutputType | null
  7875. _sum: AccountSumAggregateOutputType | null
  7876. _min: AccountMinAggregateOutputType | null
  7877. _max: AccountMaxAggregateOutputType | null
  7878. }
  7879. export type AccountAvgAggregateOutputType = {
  7880. expires_at: number | null
  7881. refresh_token_expires_in: number | null
  7882. }
  7883. export type AccountSumAggregateOutputType = {
  7884. expires_at: number | null
  7885. refresh_token_expires_in: number | null
  7886. }
  7887. export type AccountMinAggregateOutputType = {
  7888. id: string | null
  7889. userId: string | null
  7890. type: string | null
  7891. provider: string | null
  7892. providerAccountId: string | null
  7893. refresh_token: string | null
  7894. access_token: string | null
  7895. expires_at: number | null
  7896. token_type: string | null
  7897. scope: string | null
  7898. id_token: string | null
  7899. session_state: string | null
  7900. refresh_token_expires_in: number | null
  7901. }
  7902. export type AccountMaxAggregateOutputType = {
  7903. id: string | null
  7904. userId: string | null
  7905. type: string | null
  7906. provider: string | null
  7907. providerAccountId: string | null
  7908. refresh_token: string | null
  7909. access_token: string | null
  7910. expires_at: number | null
  7911. token_type: string | null
  7912. scope: string | null
  7913. id_token: string | null
  7914. session_state: string | null
  7915. refresh_token_expires_in: number | null
  7916. }
  7917. export type AccountCountAggregateOutputType = {
  7918. id: number
  7919. userId: number
  7920. type: number
  7921. provider: number
  7922. providerAccountId: number
  7923. refresh_token: number
  7924. access_token: number
  7925. expires_at: number
  7926. token_type: number
  7927. scope: number
  7928. id_token: number
  7929. session_state: number
  7930. refresh_token_expires_in: number
  7931. _all: number
  7932. }
  7933. export type AccountAvgAggregateInputType = {
  7934. expires_at?: true
  7935. refresh_token_expires_in?: true
  7936. }
  7937. export type AccountSumAggregateInputType = {
  7938. expires_at?: true
  7939. refresh_token_expires_in?: true
  7940. }
  7941. export type AccountMinAggregateInputType = {
  7942. id?: true
  7943. userId?: true
  7944. type?: true
  7945. provider?: true
  7946. providerAccountId?: true
  7947. refresh_token?: true
  7948. access_token?: true
  7949. expires_at?: true
  7950. token_type?: true
  7951. scope?: true
  7952. id_token?: true
  7953. session_state?: true
  7954. refresh_token_expires_in?: true
  7955. }
  7956. export type AccountMaxAggregateInputType = {
  7957. id?: true
  7958. userId?: true
  7959. type?: true
  7960. provider?: true
  7961. providerAccountId?: true
  7962. refresh_token?: true
  7963. access_token?: true
  7964. expires_at?: true
  7965. token_type?: true
  7966. scope?: true
  7967. id_token?: true
  7968. session_state?: true
  7969. refresh_token_expires_in?: true
  7970. }
  7971. export type AccountCountAggregateInputType = {
  7972. id?: true
  7973. userId?: true
  7974. type?: true
  7975. provider?: true
  7976. providerAccountId?: true
  7977. refresh_token?: true
  7978. access_token?: true
  7979. expires_at?: true
  7980. token_type?: true
  7981. scope?: true
  7982. id_token?: true
  7983. session_state?: true
  7984. refresh_token_expires_in?: true
  7985. _all?: true
  7986. }
  7987. export type AccountAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7988. /**
  7989. * Filter which Account to aggregate.
  7990. */
  7991. where?: AccountWhereInput
  7992. /**
  7993. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7994. *
  7995. * Determine the order of Accounts to fetch.
  7996. */
  7997. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  7998. /**
  7999. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8000. *
  8001. * Sets the start position
  8002. */
  8003. cursor?: AccountWhereUniqueInput
  8004. /**
  8005. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8006. *
  8007. * Take `±n` Accounts from the position of the cursor.
  8008. */
  8009. take?: number
  8010. /**
  8011. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8012. *
  8013. * Skip the first `n` Accounts.
  8014. */
  8015. skip?: number
  8016. /**
  8017. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8018. *
  8019. * Count returned Accounts
  8020. **/
  8021. _count?: true | AccountCountAggregateInputType
  8022. /**
  8023. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8024. *
  8025. * Select which fields to average
  8026. **/
  8027. _avg?: AccountAvgAggregateInputType
  8028. /**
  8029. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8030. *
  8031. * Select which fields to sum
  8032. **/
  8033. _sum?: AccountSumAggregateInputType
  8034. /**
  8035. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8036. *
  8037. * Select which fields to find the minimum value
  8038. **/
  8039. _min?: AccountMinAggregateInputType
  8040. /**
  8041. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8042. *
  8043. * Select which fields to find the maximum value
  8044. **/
  8045. _max?: AccountMaxAggregateInputType
  8046. }
  8047. export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
  8048. [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
  8049. ? T[P] extends true
  8050. ? number
  8051. : GetScalarType<T[P], AggregateAccount[P]>
  8052. : GetScalarType<T[P], AggregateAccount[P]>
  8053. }
  8054. export type AccountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8055. where?: AccountWhereInput
  8056. orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[]
  8057. by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
  8058. having?: AccountScalarWhereWithAggregatesInput
  8059. take?: number
  8060. skip?: number
  8061. _count?: AccountCountAggregateInputType | true
  8062. _avg?: AccountAvgAggregateInputType
  8063. _sum?: AccountSumAggregateInputType
  8064. _min?: AccountMinAggregateInputType
  8065. _max?: AccountMaxAggregateInputType
  8066. }
  8067. export type AccountGroupByOutputType = {
  8068. id: string
  8069. userId: string
  8070. type: string
  8071. provider: string
  8072. providerAccountId: string
  8073. refresh_token: string | null
  8074. access_token: string | null
  8075. expires_at: number | null
  8076. token_type: string | null
  8077. scope: string | null
  8078. id_token: string | null
  8079. session_state: string | null
  8080. refresh_token_expires_in: number | null
  8081. _count: AccountCountAggregateOutputType | null
  8082. _avg: AccountAvgAggregateOutputType | null
  8083. _sum: AccountSumAggregateOutputType | null
  8084. _min: AccountMinAggregateOutputType | null
  8085. _max: AccountMaxAggregateOutputType | null
  8086. }
  8087. type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
  8088. Array<
  8089. PickEnumerable<AccountGroupByOutputType, T['by']> &
  8090. {
  8091. [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
  8092. ? T[P] extends boolean
  8093. ? number
  8094. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8095. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8096. }
  8097. >
  8098. >
  8099. export type AccountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8100. id?: boolean
  8101. userId?: boolean
  8102. type?: boolean
  8103. provider?: boolean
  8104. providerAccountId?: boolean
  8105. refresh_token?: boolean
  8106. access_token?: boolean
  8107. expires_at?: boolean
  8108. token_type?: boolean
  8109. scope?: boolean
  8110. id_token?: boolean
  8111. session_state?: boolean
  8112. refresh_token_expires_in?: boolean
  8113. user?: boolean | UserDefaultArgs<ExtArgs>
  8114. }, ExtArgs["result"]["account"]>
  8115. export type AccountSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8116. id?: boolean
  8117. userId?: boolean
  8118. type?: boolean
  8119. provider?: boolean
  8120. providerAccountId?: boolean
  8121. refresh_token?: boolean
  8122. access_token?: boolean
  8123. expires_at?: boolean
  8124. token_type?: boolean
  8125. scope?: boolean
  8126. id_token?: boolean
  8127. session_state?: boolean
  8128. refresh_token_expires_in?: boolean
  8129. user?: boolean | UserDefaultArgs<ExtArgs>
  8130. }, ExtArgs["result"]["account"]>
  8131. export type AccountSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8132. id?: boolean
  8133. userId?: boolean
  8134. type?: boolean
  8135. provider?: boolean
  8136. providerAccountId?: boolean
  8137. refresh_token?: boolean
  8138. access_token?: boolean
  8139. expires_at?: boolean
  8140. token_type?: boolean
  8141. scope?: boolean
  8142. id_token?: boolean
  8143. session_state?: boolean
  8144. refresh_token_expires_in?: boolean
  8145. user?: boolean | UserDefaultArgs<ExtArgs>
  8146. }, ExtArgs["result"]["account"]>
  8147. export type AccountSelectScalar = {
  8148. id?: boolean
  8149. userId?: boolean
  8150. type?: boolean
  8151. provider?: boolean
  8152. providerAccountId?: boolean
  8153. refresh_token?: boolean
  8154. access_token?: boolean
  8155. expires_at?: boolean
  8156. token_type?: boolean
  8157. scope?: boolean
  8158. id_token?: boolean
  8159. session_state?: boolean
  8160. refresh_token_expires_in?: boolean
  8161. }
  8162. export type AccountOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "type" | "provider" | "providerAccountId" | "refresh_token" | "access_token" | "expires_at" | "token_type" | "scope" | "id_token" | "session_state" | "refresh_token_expires_in", ExtArgs["result"]["account"]>
  8163. export type AccountInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8164. user?: boolean | UserDefaultArgs<ExtArgs>
  8165. }
  8166. export type AccountIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8167. user?: boolean | UserDefaultArgs<ExtArgs>
  8168. }
  8169. export type AccountIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8170. user?: boolean | UserDefaultArgs<ExtArgs>
  8171. }
  8172. export type $AccountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8173. name: "Account"
  8174. objects: {
  8175. user: Prisma.$UserPayload<ExtArgs>
  8176. }
  8177. scalars: $Extensions.GetPayloadResult<{
  8178. id: string
  8179. userId: string
  8180. type: string
  8181. provider: string
  8182. providerAccountId: string
  8183. refresh_token: string | null
  8184. access_token: string | null
  8185. expires_at: number | null
  8186. token_type: string | null
  8187. scope: string | null
  8188. id_token: string | null
  8189. session_state: string | null
  8190. refresh_token_expires_in: number | null
  8191. }, ExtArgs["result"]["account"]>
  8192. composites: {}
  8193. }
  8194. type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = $Result.GetResult<Prisma.$AccountPayload, S>
  8195. type AccountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  8196. Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  8197. select?: AccountCountAggregateInputType | true
  8198. }
  8199. export interface AccountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  8200. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
  8201. /**
  8202. * Find zero or one Account that matches the filter.
  8203. * @param {AccountFindUniqueArgs} args - Arguments to find a Account
  8204. * @example
  8205. * // Get one Account
  8206. * const account = await prisma.account.findUnique({
  8207. * where: {
  8208. * // ... provide filter here
  8209. * }
  8210. * })
  8211. */
  8212. findUnique<T extends AccountFindUniqueArgs>(args: SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8213. /**
  8214. * Find one Account that matches the filter or throw an error with `error.code='P2025'`
  8215. * if no matches were found.
  8216. * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
  8217. * @example
  8218. * // Get one Account
  8219. * const account = await prisma.account.findUniqueOrThrow({
  8220. * where: {
  8221. * // ... provide filter here
  8222. * }
  8223. * })
  8224. */
  8225. findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8226. /**
  8227. * Find the first Account that matches the filter.
  8228. * Note, that providing `undefined` is treated as the value not being there.
  8229. * Read more here: https://pris.ly/d/null-undefined
  8230. * @param {AccountFindFirstArgs} args - Arguments to find a Account
  8231. * @example
  8232. * // Get one Account
  8233. * const account = await prisma.account.findFirst({
  8234. * where: {
  8235. * // ... provide filter here
  8236. * }
  8237. * })
  8238. */
  8239. findFirst<T extends AccountFindFirstArgs>(args?: SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8240. /**
  8241. * Find the first Account that matches the filter or
  8242. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  8243. * Note, that providing `undefined` is treated as the value not being there.
  8244. * Read more here: https://pris.ly/d/null-undefined
  8245. * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
  8246. * @example
  8247. * // Get one Account
  8248. * const account = await prisma.account.findFirstOrThrow({
  8249. * where: {
  8250. * // ... provide filter here
  8251. * }
  8252. * })
  8253. */
  8254. findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8255. /**
  8256. * Find zero or more Accounts that matches the filter.
  8257. * Note, that providing `undefined` is treated as the value not being there.
  8258. * Read more here: https://pris.ly/d/null-undefined
  8259. * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
  8260. * @example
  8261. * // Get all Accounts
  8262. * const accounts = await prisma.account.findMany()
  8263. *
  8264. * // Get first 10 Accounts
  8265. * const accounts = await prisma.account.findMany({ take: 10 })
  8266. *
  8267. * // Only select the `id`
  8268. * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
  8269. *
  8270. */
  8271. findMany<T extends AccountFindManyArgs>(args?: SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  8272. /**
  8273. * Create a Account.
  8274. * @param {AccountCreateArgs} args - Arguments to create a Account.
  8275. * @example
  8276. * // Create one Account
  8277. * const Account = await prisma.account.create({
  8278. * data: {
  8279. * // ... data to create a Account
  8280. * }
  8281. * })
  8282. *
  8283. */
  8284. create<T extends AccountCreateArgs>(args: SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8285. /**
  8286. * Create many Accounts.
  8287. * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
  8288. * @example
  8289. * // Create many Accounts
  8290. * const account = await prisma.account.createMany({
  8291. * data: [
  8292. * // ... provide data here
  8293. * ]
  8294. * })
  8295. *
  8296. */
  8297. createMany<T extends AccountCreateManyArgs>(args?: SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8298. /**
  8299. * Create many Accounts and returns the data saved in the database.
  8300. * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
  8301. * @example
  8302. * // Create many Accounts
  8303. * const account = await prisma.account.createManyAndReturn({
  8304. * data: [
  8305. * // ... provide data here
  8306. * ]
  8307. * })
  8308. *
  8309. * // Create many Accounts and only return the `id`
  8310. * const accountWithIdOnly = await prisma.account.createManyAndReturn({
  8311. * select: { id: true },
  8312. * data: [
  8313. * // ... provide data here
  8314. * ]
  8315. * })
  8316. * Note, that providing `undefined` is treated as the value not being there.
  8317. * Read more here: https://pris.ly/d/null-undefined
  8318. *
  8319. */
  8320. createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  8321. /**
  8322. * Delete a Account.
  8323. * @param {AccountDeleteArgs} args - Arguments to delete one Account.
  8324. * @example
  8325. * // Delete one Account
  8326. * const Account = await prisma.account.delete({
  8327. * where: {
  8328. * // ... filter to delete one Account
  8329. * }
  8330. * })
  8331. *
  8332. */
  8333. delete<T extends AccountDeleteArgs>(args: SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8334. /**
  8335. * Update one Account.
  8336. * @param {AccountUpdateArgs} args - Arguments to update one Account.
  8337. * @example
  8338. * // Update one Account
  8339. * const account = await prisma.account.update({
  8340. * where: {
  8341. * // ... provide filter here
  8342. * },
  8343. * data: {
  8344. * // ... provide data here
  8345. * }
  8346. * })
  8347. *
  8348. */
  8349. update<T extends AccountUpdateArgs>(args: SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8350. /**
  8351. * Delete zero or more Accounts.
  8352. * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
  8353. * @example
  8354. * // Delete a few Accounts
  8355. * const { count } = await prisma.account.deleteMany({
  8356. * where: {
  8357. * // ... provide filter here
  8358. * }
  8359. * })
  8360. *
  8361. */
  8362. deleteMany<T extends AccountDeleteManyArgs>(args?: SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8363. /**
  8364. * Update zero or more Accounts.
  8365. * Note, that providing `undefined` is treated as the value not being there.
  8366. * Read more here: https://pris.ly/d/null-undefined
  8367. * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
  8368. * @example
  8369. * // Update many Accounts
  8370. * const account = await prisma.account.updateMany({
  8371. * where: {
  8372. * // ... provide filter here
  8373. * },
  8374. * data: {
  8375. * // ... provide data here
  8376. * }
  8377. * })
  8378. *
  8379. */
  8380. updateMany<T extends AccountUpdateManyArgs>(args: SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8381. /**
  8382. * Update zero or more Accounts and returns the data updated in the database.
  8383. * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
  8384. * @example
  8385. * // Update many Accounts
  8386. * const account = await prisma.account.updateManyAndReturn({
  8387. * where: {
  8388. * // ... provide filter here
  8389. * },
  8390. * data: [
  8391. * // ... provide data here
  8392. * ]
  8393. * })
  8394. *
  8395. * // Update zero or more Accounts and only return the `id`
  8396. * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
  8397. * select: { id: true },
  8398. * where: {
  8399. * // ... provide filter here
  8400. * },
  8401. * data: [
  8402. * // ... provide data here
  8403. * ]
  8404. * })
  8405. * Note, that providing `undefined` is treated as the value not being there.
  8406. * Read more here: https://pris.ly/d/null-undefined
  8407. *
  8408. */
  8409. updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  8410. /**
  8411. * Create or update one Account.
  8412. * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
  8413. * @example
  8414. * // Update or create a Account
  8415. * const account = await prisma.account.upsert({
  8416. * create: {
  8417. * // ... data to create a Account
  8418. * },
  8419. * update: {
  8420. * // ... in case it already exists, update
  8421. * },
  8422. * where: {
  8423. * // ... the filter for the Account we want to update
  8424. * }
  8425. * })
  8426. */
  8427. upsert<T extends AccountUpsertArgs>(args: SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8428. /**
  8429. * Count the number of Accounts.
  8430. * Note, that providing `undefined` is treated as the value not being there.
  8431. * Read more here: https://pris.ly/d/null-undefined
  8432. * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
  8433. * @example
  8434. * // Count the number of Accounts
  8435. * const count = await prisma.account.count({
  8436. * where: {
  8437. * // ... the filter for the Accounts we want to count
  8438. * }
  8439. * })
  8440. **/
  8441. count<T extends AccountCountArgs>(
  8442. args?: Subset<T, AccountCountArgs>,
  8443. ): Prisma.PrismaPromise<
  8444. T extends $Utils.Record<'select', any>
  8445. ? T['select'] extends true
  8446. ? number
  8447. : GetScalarType<T['select'], AccountCountAggregateOutputType>
  8448. : number
  8449. >
  8450. /**
  8451. * Allows you to perform aggregations operations on a Account.
  8452. * Note, that providing `undefined` is treated as the value not being there.
  8453. * Read more here: https://pris.ly/d/null-undefined
  8454. * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  8455. * @example
  8456. * // Ordered by age ascending
  8457. * // Where email contains prisma.io
  8458. * // Limited to the 10 users
  8459. * const aggregations = await prisma.user.aggregate({
  8460. * _avg: {
  8461. * age: true,
  8462. * },
  8463. * where: {
  8464. * email: {
  8465. * contains: "prisma.io",
  8466. * },
  8467. * },
  8468. * orderBy: {
  8469. * age: "asc",
  8470. * },
  8471. * take: 10,
  8472. * })
  8473. **/
  8474. aggregate<T extends AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
  8475. /**
  8476. * Group by Account.
  8477. * Note, that providing `undefined` is treated as the value not being there.
  8478. * Read more here: https://pris.ly/d/null-undefined
  8479. * @param {AccountGroupByArgs} args - Group by arguments.
  8480. * @example
  8481. * // Group by city, order by createdAt, get count
  8482. * const result = await prisma.user.groupBy({
  8483. * by: ['city', 'createdAt'],
  8484. * orderBy: {
  8485. * createdAt: true
  8486. * },
  8487. * _count: {
  8488. * _all: true
  8489. * },
  8490. * })
  8491. *
  8492. **/
  8493. groupBy<
  8494. T extends AccountGroupByArgs,
  8495. HasSelectOrTake extends Or<
  8496. Extends<'skip', Keys<T>>,
  8497. Extends<'take', Keys<T>>
  8498. >,
  8499. OrderByArg extends True extends HasSelectOrTake
  8500. ? { orderBy: AccountGroupByArgs['orderBy'] }
  8501. : { orderBy?: AccountGroupByArgs['orderBy'] },
  8502. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  8503. ByFields extends MaybeTupleToUnion<T['by']>,
  8504. ByValid extends Has<ByFields, OrderFields>,
  8505. HavingFields extends GetHavingFields<T['having']>,
  8506. HavingValid extends Has<ByFields, HavingFields>,
  8507. ByEmpty extends T['by'] extends never[] ? True : False,
  8508. InputErrors extends ByEmpty extends True
  8509. ? `Error: "by" must not be empty.`
  8510. : HavingValid extends False
  8511. ? {
  8512. [P in HavingFields]: P extends ByFields
  8513. ? never
  8514. : P extends string
  8515. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  8516. : [
  8517. Error,
  8518. 'Field ',
  8519. P,
  8520. ` in "having" needs to be provided in "by"`,
  8521. ]
  8522. }[HavingFields]
  8523. : 'take' extends Keys<T>
  8524. ? 'orderBy' extends Keys<T>
  8525. ? ByValid extends True
  8526. ? {}
  8527. : {
  8528. [P in OrderFields]: P extends ByFields
  8529. ? never
  8530. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8531. }[OrderFields]
  8532. : 'Error: If you provide "take", you also need to provide "orderBy"'
  8533. : 'skip' extends Keys<T>
  8534. ? 'orderBy' extends Keys<T>
  8535. ? ByValid extends True
  8536. ? {}
  8537. : {
  8538. [P in OrderFields]: P extends ByFields
  8539. ? never
  8540. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8541. }[OrderFields]
  8542. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  8543. : ByValid extends True
  8544. ? {}
  8545. : {
  8546. [P in OrderFields]: P extends ByFields
  8547. ? never
  8548. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8549. }[OrderFields]
  8550. >(args: SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  8551. /**
  8552. * Fields of the Account model
  8553. */
  8554. readonly fields: AccountFieldRefs;
  8555. }
  8556. /**
  8557. * The delegate class that acts as a "Promise-like" for Account.
  8558. * Why is this prefixed with `Prisma__`?
  8559. * Because we want to prevent naming conflicts as mentioned in
  8560. * https://github.com/prisma/prisma-client-js/issues/707
  8561. */
  8562. export interface Prisma__AccountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  8563. readonly [Symbol.toStringTag]: "PrismaPromise"
  8564. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  8565. /**
  8566. * Attaches callbacks for the resolution and/or rejection of the Promise.
  8567. * @param onfulfilled The callback to execute when the Promise is resolved.
  8568. * @param onrejected The callback to execute when the Promise is rejected.
  8569. * @returns A Promise for the completion of which ever callback is executed.
  8570. */
  8571. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  8572. /**
  8573. * Attaches a callback for only the rejection of the Promise.
  8574. * @param onrejected The callback to execute when the Promise is rejected.
  8575. * @returns A Promise for the completion of the callback.
  8576. */
  8577. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  8578. /**
  8579. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  8580. * resolved value cannot be modified from the callback.
  8581. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  8582. * @returns A Promise for the completion of the callback.
  8583. */
  8584. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  8585. }
  8586. /**
  8587. * Fields of the Account model
  8588. */
  8589. interface AccountFieldRefs {
  8590. readonly id: FieldRef<"Account", 'String'>
  8591. readonly userId: FieldRef<"Account", 'String'>
  8592. readonly type: FieldRef<"Account", 'String'>
  8593. readonly provider: FieldRef<"Account", 'String'>
  8594. readonly providerAccountId: FieldRef<"Account", 'String'>
  8595. readonly refresh_token: FieldRef<"Account", 'String'>
  8596. readonly access_token: FieldRef<"Account", 'String'>
  8597. readonly expires_at: FieldRef<"Account", 'Int'>
  8598. readonly token_type: FieldRef<"Account", 'String'>
  8599. readonly scope: FieldRef<"Account", 'String'>
  8600. readonly id_token: FieldRef<"Account", 'String'>
  8601. readonly session_state: FieldRef<"Account", 'String'>
  8602. readonly refresh_token_expires_in: FieldRef<"Account", 'Int'>
  8603. }
  8604. // Custom InputTypes
  8605. /**
  8606. * Account findUnique
  8607. */
  8608. export type AccountFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8609. /**
  8610. * Select specific fields to fetch from the Account
  8611. */
  8612. select?: AccountSelect<ExtArgs> | null
  8613. /**
  8614. * Omit specific fields from the Account
  8615. */
  8616. omit?: AccountOmit<ExtArgs> | null
  8617. /**
  8618. * Choose, which related nodes to fetch as well
  8619. */
  8620. include?: AccountInclude<ExtArgs> | null
  8621. /**
  8622. * Filter, which Account to fetch.
  8623. */
  8624. where: AccountWhereUniqueInput
  8625. }
  8626. /**
  8627. * Account findUniqueOrThrow
  8628. */
  8629. export type AccountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8630. /**
  8631. * Select specific fields to fetch from the Account
  8632. */
  8633. select?: AccountSelect<ExtArgs> | null
  8634. /**
  8635. * Omit specific fields from the Account
  8636. */
  8637. omit?: AccountOmit<ExtArgs> | null
  8638. /**
  8639. * Choose, which related nodes to fetch as well
  8640. */
  8641. include?: AccountInclude<ExtArgs> | null
  8642. /**
  8643. * Filter, which Account to fetch.
  8644. */
  8645. where: AccountWhereUniqueInput
  8646. }
  8647. /**
  8648. * Account findFirst
  8649. */
  8650. export type AccountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8651. /**
  8652. * Select specific fields to fetch from the Account
  8653. */
  8654. select?: AccountSelect<ExtArgs> | null
  8655. /**
  8656. * Omit specific fields from the Account
  8657. */
  8658. omit?: AccountOmit<ExtArgs> | null
  8659. /**
  8660. * Choose, which related nodes to fetch as well
  8661. */
  8662. include?: AccountInclude<ExtArgs> | null
  8663. /**
  8664. * Filter, which Account to fetch.
  8665. */
  8666. where?: AccountWhereInput
  8667. /**
  8668. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8669. *
  8670. * Determine the order of Accounts to fetch.
  8671. */
  8672. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8673. /**
  8674. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8675. *
  8676. * Sets the position for searching for Accounts.
  8677. */
  8678. cursor?: AccountWhereUniqueInput
  8679. /**
  8680. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8681. *
  8682. * Take `±n` Accounts from the position of the cursor.
  8683. */
  8684. take?: number
  8685. /**
  8686. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8687. *
  8688. * Skip the first `n` Accounts.
  8689. */
  8690. skip?: number
  8691. /**
  8692. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8693. *
  8694. * Filter by unique combinations of Accounts.
  8695. */
  8696. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8697. }
  8698. /**
  8699. * Account findFirstOrThrow
  8700. */
  8701. export type AccountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8702. /**
  8703. * Select specific fields to fetch from the Account
  8704. */
  8705. select?: AccountSelect<ExtArgs> | null
  8706. /**
  8707. * Omit specific fields from the Account
  8708. */
  8709. omit?: AccountOmit<ExtArgs> | null
  8710. /**
  8711. * Choose, which related nodes to fetch as well
  8712. */
  8713. include?: AccountInclude<ExtArgs> | null
  8714. /**
  8715. * Filter, which Account to fetch.
  8716. */
  8717. where?: AccountWhereInput
  8718. /**
  8719. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8720. *
  8721. * Determine the order of Accounts to fetch.
  8722. */
  8723. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8724. /**
  8725. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8726. *
  8727. * Sets the position for searching for Accounts.
  8728. */
  8729. cursor?: AccountWhereUniqueInput
  8730. /**
  8731. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8732. *
  8733. * Take `±n` Accounts from the position of the cursor.
  8734. */
  8735. take?: number
  8736. /**
  8737. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8738. *
  8739. * Skip the first `n` Accounts.
  8740. */
  8741. skip?: number
  8742. /**
  8743. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8744. *
  8745. * Filter by unique combinations of Accounts.
  8746. */
  8747. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8748. }
  8749. /**
  8750. * Account findMany
  8751. */
  8752. export type AccountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8753. /**
  8754. * Select specific fields to fetch from the Account
  8755. */
  8756. select?: AccountSelect<ExtArgs> | null
  8757. /**
  8758. * Omit specific fields from the Account
  8759. */
  8760. omit?: AccountOmit<ExtArgs> | null
  8761. /**
  8762. * Choose, which related nodes to fetch as well
  8763. */
  8764. include?: AccountInclude<ExtArgs> | null
  8765. /**
  8766. * Filter, which Accounts to fetch.
  8767. */
  8768. where?: AccountWhereInput
  8769. /**
  8770. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8771. *
  8772. * Determine the order of Accounts to fetch.
  8773. */
  8774. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8775. /**
  8776. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8777. *
  8778. * Sets the position for listing Accounts.
  8779. */
  8780. cursor?: AccountWhereUniqueInput
  8781. /**
  8782. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8783. *
  8784. * Take `±n` Accounts from the position of the cursor.
  8785. */
  8786. take?: number
  8787. /**
  8788. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8789. *
  8790. * Skip the first `n` Accounts.
  8791. */
  8792. skip?: number
  8793. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8794. }
  8795. /**
  8796. * Account create
  8797. */
  8798. export type AccountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8799. /**
  8800. * Select specific fields to fetch from the Account
  8801. */
  8802. select?: AccountSelect<ExtArgs> | null
  8803. /**
  8804. * Omit specific fields from the Account
  8805. */
  8806. omit?: AccountOmit<ExtArgs> | null
  8807. /**
  8808. * Choose, which related nodes to fetch as well
  8809. */
  8810. include?: AccountInclude<ExtArgs> | null
  8811. /**
  8812. * The data needed to create a Account.
  8813. */
  8814. data: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  8815. }
  8816. /**
  8817. * Account createMany
  8818. */
  8819. export type AccountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8820. /**
  8821. * The data used to create many Accounts.
  8822. */
  8823. data: AccountCreateManyInput | AccountCreateManyInput[]
  8824. skipDuplicates?: boolean
  8825. }
  8826. /**
  8827. * Account createManyAndReturn
  8828. */
  8829. export type AccountCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8830. /**
  8831. * Select specific fields to fetch from the Account
  8832. */
  8833. select?: AccountSelectCreateManyAndReturn<ExtArgs> | null
  8834. /**
  8835. * Omit specific fields from the Account
  8836. */
  8837. omit?: AccountOmit<ExtArgs> | null
  8838. /**
  8839. * The data used to create many Accounts.
  8840. */
  8841. data: AccountCreateManyInput | AccountCreateManyInput[]
  8842. skipDuplicates?: boolean
  8843. /**
  8844. * Choose, which related nodes to fetch as well
  8845. */
  8846. include?: AccountIncludeCreateManyAndReturn<ExtArgs> | null
  8847. }
  8848. /**
  8849. * Account update
  8850. */
  8851. export type AccountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8852. /**
  8853. * Select specific fields to fetch from the Account
  8854. */
  8855. select?: AccountSelect<ExtArgs> | null
  8856. /**
  8857. * Omit specific fields from the Account
  8858. */
  8859. omit?: AccountOmit<ExtArgs> | null
  8860. /**
  8861. * Choose, which related nodes to fetch as well
  8862. */
  8863. include?: AccountInclude<ExtArgs> | null
  8864. /**
  8865. * The data needed to update a Account.
  8866. */
  8867. data: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  8868. /**
  8869. * Choose, which Account to update.
  8870. */
  8871. where: AccountWhereUniqueInput
  8872. }
  8873. /**
  8874. * Account updateMany
  8875. */
  8876. export type AccountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8877. /**
  8878. * The data used to update Accounts.
  8879. */
  8880. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  8881. /**
  8882. * Filter which Accounts to update
  8883. */
  8884. where?: AccountWhereInput
  8885. /**
  8886. * Limit how many Accounts to update.
  8887. */
  8888. limit?: number
  8889. }
  8890. /**
  8891. * Account updateManyAndReturn
  8892. */
  8893. export type AccountUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8894. /**
  8895. * Select specific fields to fetch from the Account
  8896. */
  8897. select?: AccountSelectUpdateManyAndReturn<ExtArgs> | null
  8898. /**
  8899. * Omit specific fields from the Account
  8900. */
  8901. omit?: AccountOmit<ExtArgs> | null
  8902. /**
  8903. * The data used to update Accounts.
  8904. */
  8905. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  8906. /**
  8907. * Filter which Accounts to update
  8908. */
  8909. where?: AccountWhereInput
  8910. /**
  8911. * Limit how many Accounts to update.
  8912. */
  8913. limit?: number
  8914. /**
  8915. * Choose, which related nodes to fetch as well
  8916. */
  8917. include?: AccountIncludeUpdateManyAndReturn<ExtArgs> | null
  8918. }
  8919. /**
  8920. * Account upsert
  8921. */
  8922. export type AccountUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8923. /**
  8924. * Select specific fields to fetch from the Account
  8925. */
  8926. select?: AccountSelect<ExtArgs> | null
  8927. /**
  8928. * Omit specific fields from the Account
  8929. */
  8930. omit?: AccountOmit<ExtArgs> | null
  8931. /**
  8932. * Choose, which related nodes to fetch as well
  8933. */
  8934. include?: AccountInclude<ExtArgs> | null
  8935. /**
  8936. * The filter to search for the Account to update in case it exists.
  8937. */
  8938. where: AccountWhereUniqueInput
  8939. /**
  8940. * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
  8941. */
  8942. create: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  8943. /**
  8944. * In case the Account was found with the provided `where` argument, update it with this data.
  8945. */
  8946. update: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  8947. }
  8948. /**
  8949. * Account delete
  8950. */
  8951. export type AccountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8952. /**
  8953. * Select specific fields to fetch from the Account
  8954. */
  8955. select?: AccountSelect<ExtArgs> | null
  8956. /**
  8957. * Omit specific fields from the Account
  8958. */
  8959. omit?: AccountOmit<ExtArgs> | null
  8960. /**
  8961. * Choose, which related nodes to fetch as well
  8962. */
  8963. include?: AccountInclude<ExtArgs> | null
  8964. /**
  8965. * Filter which Account to delete.
  8966. */
  8967. where: AccountWhereUniqueInput
  8968. }
  8969. /**
  8970. * Account deleteMany
  8971. */
  8972. export type AccountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8973. /**
  8974. * Filter which Accounts to delete
  8975. */
  8976. where?: AccountWhereInput
  8977. /**
  8978. * Limit how many Accounts to delete.
  8979. */
  8980. limit?: number
  8981. }
  8982. /**
  8983. * Account without action
  8984. */
  8985. export type AccountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8986. /**
  8987. * Select specific fields to fetch from the Account
  8988. */
  8989. select?: AccountSelect<ExtArgs> | null
  8990. /**
  8991. * Omit specific fields from the Account
  8992. */
  8993. omit?: AccountOmit<ExtArgs> | null
  8994. /**
  8995. * Choose, which related nodes to fetch as well
  8996. */
  8997. include?: AccountInclude<ExtArgs> | null
  8998. }
  8999. /**
  9000. * Model Session
  9001. */
  9002. export type AggregateSession = {
  9003. _count: SessionCountAggregateOutputType | null
  9004. _min: SessionMinAggregateOutputType | null
  9005. _max: SessionMaxAggregateOutputType | null
  9006. }
  9007. export type SessionMinAggregateOutputType = {
  9008. id: string | null
  9009. sessionToken: string | null
  9010. userId: string | null
  9011. expires: Date | null
  9012. }
  9013. export type SessionMaxAggregateOutputType = {
  9014. id: string | null
  9015. sessionToken: string | null
  9016. userId: string | null
  9017. expires: Date | null
  9018. }
  9019. export type SessionCountAggregateOutputType = {
  9020. id: number
  9021. sessionToken: number
  9022. userId: number
  9023. expires: number
  9024. _all: number
  9025. }
  9026. export type SessionMinAggregateInputType = {
  9027. id?: true
  9028. sessionToken?: true
  9029. userId?: true
  9030. expires?: true
  9031. }
  9032. export type SessionMaxAggregateInputType = {
  9033. id?: true
  9034. sessionToken?: true
  9035. userId?: true
  9036. expires?: true
  9037. }
  9038. export type SessionCountAggregateInputType = {
  9039. id?: true
  9040. sessionToken?: true
  9041. userId?: true
  9042. expires?: true
  9043. _all?: true
  9044. }
  9045. export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9046. /**
  9047. * Filter which Session to aggregate.
  9048. */
  9049. where?: SessionWhereInput
  9050. /**
  9051. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9052. *
  9053. * Determine the order of Sessions to fetch.
  9054. */
  9055. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9056. /**
  9057. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9058. *
  9059. * Sets the start position
  9060. */
  9061. cursor?: SessionWhereUniqueInput
  9062. /**
  9063. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9064. *
  9065. * Take `±n` Sessions from the position of the cursor.
  9066. */
  9067. take?: number
  9068. /**
  9069. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9070. *
  9071. * Skip the first `n` Sessions.
  9072. */
  9073. skip?: number
  9074. /**
  9075. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9076. *
  9077. * Count returned Sessions
  9078. **/
  9079. _count?: true | SessionCountAggregateInputType
  9080. /**
  9081. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9082. *
  9083. * Select which fields to find the minimum value
  9084. **/
  9085. _min?: SessionMinAggregateInputType
  9086. /**
  9087. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9088. *
  9089. * Select which fields to find the maximum value
  9090. **/
  9091. _max?: SessionMaxAggregateInputType
  9092. }
  9093. export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
  9094. [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
  9095. ? T[P] extends true
  9096. ? number
  9097. : GetScalarType<T[P], AggregateSession[P]>
  9098. : GetScalarType<T[P], AggregateSession[P]>
  9099. }
  9100. export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9101. where?: SessionWhereInput
  9102. orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
  9103. by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
  9104. having?: SessionScalarWhereWithAggregatesInput
  9105. take?: number
  9106. skip?: number
  9107. _count?: SessionCountAggregateInputType | true
  9108. _min?: SessionMinAggregateInputType
  9109. _max?: SessionMaxAggregateInputType
  9110. }
  9111. export type SessionGroupByOutputType = {
  9112. id: string
  9113. sessionToken: string
  9114. userId: string
  9115. expires: Date
  9116. _count: SessionCountAggregateOutputType | null
  9117. _min: SessionMinAggregateOutputType | null
  9118. _max: SessionMaxAggregateOutputType | null
  9119. }
  9120. type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
  9121. Array<
  9122. PickEnumerable<SessionGroupByOutputType, T['by']> &
  9123. {
  9124. [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
  9125. ? T[P] extends boolean
  9126. ? number
  9127. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9128. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9129. }
  9130. >
  9131. >
  9132. export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9133. id?: boolean
  9134. sessionToken?: boolean
  9135. userId?: boolean
  9136. expires?: boolean
  9137. user?: boolean | UserDefaultArgs<ExtArgs>
  9138. }, ExtArgs["result"]["session"]>
  9139. export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9140. id?: boolean
  9141. sessionToken?: boolean
  9142. userId?: boolean
  9143. expires?: boolean
  9144. user?: boolean | UserDefaultArgs<ExtArgs>
  9145. }, ExtArgs["result"]["session"]>
  9146. export type SessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9147. id?: boolean
  9148. sessionToken?: boolean
  9149. userId?: boolean
  9150. expires?: boolean
  9151. user?: boolean | UserDefaultArgs<ExtArgs>
  9152. }, ExtArgs["result"]["session"]>
  9153. export type SessionSelectScalar = {
  9154. id?: boolean
  9155. sessionToken?: boolean
  9156. userId?: boolean
  9157. expires?: boolean
  9158. }
  9159. export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]>
  9160. export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9161. user?: boolean | UserDefaultArgs<ExtArgs>
  9162. }
  9163. export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9164. user?: boolean | UserDefaultArgs<ExtArgs>
  9165. }
  9166. export type SessionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9167. user?: boolean | UserDefaultArgs<ExtArgs>
  9168. }
  9169. export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9170. name: "Session"
  9171. objects: {
  9172. user: Prisma.$UserPayload<ExtArgs>
  9173. }
  9174. scalars: $Extensions.GetPayloadResult<{
  9175. id: string
  9176. sessionToken: string
  9177. userId: string
  9178. expires: Date
  9179. }, ExtArgs["result"]["session"]>
  9180. composites: {}
  9181. }
  9182. type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
  9183. type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  9184. Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  9185. select?: SessionCountAggregateInputType | true
  9186. }
  9187. export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  9188. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
  9189. /**
  9190. * Find zero or one Session that matches the filter.
  9191. * @param {SessionFindUniqueArgs} args - Arguments to find a Session
  9192. * @example
  9193. * // Get one Session
  9194. * const session = await prisma.session.findUnique({
  9195. * where: {
  9196. * // ... provide filter here
  9197. * }
  9198. * })
  9199. */
  9200. findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9201. /**
  9202. * Find one Session that matches the filter or throw an error with `error.code='P2025'`
  9203. * if no matches were found.
  9204. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
  9205. * @example
  9206. * // Get one Session
  9207. * const session = await prisma.session.findUniqueOrThrow({
  9208. * where: {
  9209. * // ... provide filter here
  9210. * }
  9211. * })
  9212. */
  9213. findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9214. /**
  9215. * Find the first Session that matches the filter.
  9216. * Note, that providing `undefined` is treated as the value not being there.
  9217. * Read more here: https://pris.ly/d/null-undefined
  9218. * @param {SessionFindFirstArgs} args - Arguments to find a Session
  9219. * @example
  9220. * // Get one Session
  9221. * const session = await prisma.session.findFirst({
  9222. * where: {
  9223. * // ... provide filter here
  9224. * }
  9225. * })
  9226. */
  9227. findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9228. /**
  9229. * Find the first Session that matches the filter or
  9230. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  9231. * Note, that providing `undefined` is treated as the value not being there.
  9232. * Read more here: https://pris.ly/d/null-undefined
  9233. * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
  9234. * @example
  9235. * // Get one Session
  9236. * const session = await prisma.session.findFirstOrThrow({
  9237. * where: {
  9238. * // ... provide filter here
  9239. * }
  9240. * })
  9241. */
  9242. findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9243. /**
  9244. * Find zero or more Sessions that matches the filter.
  9245. * Note, that providing `undefined` is treated as the value not being there.
  9246. * Read more here: https://pris.ly/d/null-undefined
  9247. * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
  9248. * @example
  9249. * // Get all Sessions
  9250. * const sessions = await prisma.session.findMany()
  9251. *
  9252. * // Get first 10 Sessions
  9253. * const sessions = await prisma.session.findMany({ take: 10 })
  9254. *
  9255. * // Only select the `id`
  9256. * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
  9257. *
  9258. */
  9259. findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  9260. /**
  9261. * Create a Session.
  9262. * @param {SessionCreateArgs} args - Arguments to create a Session.
  9263. * @example
  9264. * // Create one Session
  9265. * const Session = await prisma.session.create({
  9266. * data: {
  9267. * // ... data to create a Session
  9268. * }
  9269. * })
  9270. *
  9271. */
  9272. create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9273. /**
  9274. * Create many Sessions.
  9275. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
  9276. * @example
  9277. * // Create many Sessions
  9278. * const session = await prisma.session.createMany({
  9279. * data: [
  9280. * // ... provide data here
  9281. * ]
  9282. * })
  9283. *
  9284. */
  9285. createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9286. /**
  9287. * Create many Sessions and returns the data saved in the database.
  9288. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
  9289. * @example
  9290. * // Create many Sessions
  9291. * const session = await prisma.session.createManyAndReturn({
  9292. * data: [
  9293. * // ... provide data here
  9294. * ]
  9295. * })
  9296. *
  9297. * // Create many Sessions and only return the `id`
  9298. * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
  9299. * select: { id: true },
  9300. * data: [
  9301. * // ... provide data here
  9302. * ]
  9303. * })
  9304. * Note, that providing `undefined` is treated as the value not being there.
  9305. * Read more here: https://pris.ly/d/null-undefined
  9306. *
  9307. */
  9308. createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  9309. /**
  9310. * Delete a Session.
  9311. * @param {SessionDeleteArgs} args - Arguments to delete one Session.
  9312. * @example
  9313. * // Delete one Session
  9314. * const Session = await prisma.session.delete({
  9315. * where: {
  9316. * // ... filter to delete one Session
  9317. * }
  9318. * })
  9319. *
  9320. */
  9321. delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9322. /**
  9323. * Update one Session.
  9324. * @param {SessionUpdateArgs} args - Arguments to update one Session.
  9325. * @example
  9326. * // Update one Session
  9327. * const session = await prisma.session.update({
  9328. * where: {
  9329. * // ... provide filter here
  9330. * },
  9331. * data: {
  9332. * // ... provide data here
  9333. * }
  9334. * })
  9335. *
  9336. */
  9337. update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9338. /**
  9339. * Delete zero or more Sessions.
  9340. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
  9341. * @example
  9342. * // Delete a few Sessions
  9343. * const { count } = await prisma.session.deleteMany({
  9344. * where: {
  9345. * // ... provide filter here
  9346. * }
  9347. * })
  9348. *
  9349. */
  9350. deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9351. /**
  9352. * Update zero or more Sessions.
  9353. * Note, that providing `undefined` is treated as the value not being there.
  9354. * Read more here: https://pris.ly/d/null-undefined
  9355. * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
  9356. * @example
  9357. * // Update many Sessions
  9358. * const session = await prisma.session.updateMany({
  9359. * where: {
  9360. * // ... provide filter here
  9361. * },
  9362. * data: {
  9363. * // ... provide data here
  9364. * }
  9365. * })
  9366. *
  9367. */
  9368. updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9369. /**
  9370. * Update zero or more Sessions and returns the data updated in the database.
  9371. * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
  9372. * @example
  9373. * // Update many Sessions
  9374. * const session = await prisma.session.updateManyAndReturn({
  9375. * where: {
  9376. * // ... provide filter here
  9377. * },
  9378. * data: [
  9379. * // ... provide data here
  9380. * ]
  9381. * })
  9382. *
  9383. * // Update zero or more Sessions and only return the `id`
  9384. * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
  9385. * select: { id: true },
  9386. * where: {
  9387. * // ... provide filter here
  9388. * },
  9389. * data: [
  9390. * // ... provide data here
  9391. * ]
  9392. * })
  9393. * Note, that providing `undefined` is treated as the value not being there.
  9394. * Read more here: https://pris.ly/d/null-undefined
  9395. *
  9396. */
  9397. updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  9398. /**
  9399. * Create or update one Session.
  9400. * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
  9401. * @example
  9402. * // Update or create a Session
  9403. * const session = await prisma.session.upsert({
  9404. * create: {
  9405. * // ... data to create a Session
  9406. * },
  9407. * update: {
  9408. * // ... in case it already exists, update
  9409. * },
  9410. * where: {
  9411. * // ... the filter for the Session we want to update
  9412. * }
  9413. * })
  9414. */
  9415. upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9416. /**
  9417. * Count the number of Sessions.
  9418. * Note, that providing `undefined` is treated as the value not being there.
  9419. * Read more here: https://pris.ly/d/null-undefined
  9420. * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
  9421. * @example
  9422. * // Count the number of Sessions
  9423. * const count = await prisma.session.count({
  9424. * where: {
  9425. * // ... the filter for the Sessions we want to count
  9426. * }
  9427. * })
  9428. **/
  9429. count<T extends SessionCountArgs>(
  9430. args?: Subset<T, SessionCountArgs>,
  9431. ): Prisma.PrismaPromise<
  9432. T extends $Utils.Record<'select', any>
  9433. ? T['select'] extends true
  9434. ? number
  9435. : GetScalarType<T['select'], SessionCountAggregateOutputType>
  9436. : number
  9437. >
  9438. /**
  9439. * Allows you to perform aggregations operations on a Session.
  9440. * Note, that providing `undefined` is treated as the value not being there.
  9441. * Read more here: https://pris.ly/d/null-undefined
  9442. * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  9443. * @example
  9444. * // Ordered by age ascending
  9445. * // Where email contains prisma.io
  9446. * // Limited to the 10 users
  9447. * const aggregations = await prisma.user.aggregate({
  9448. * _avg: {
  9449. * age: true,
  9450. * },
  9451. * where: {
  9452. * email: {
  9453. * contains: "prisma.io",
  9454. * },
  9455. * },
  9456. * orderBy: {
  9457. * age: "asc",
  9458. * },
  9459. * take: 10,
  9460. * })
  9461. **/
  9462. aggregate<T extends SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
  9463. /**
  9464. * Group by Session.
  9465. * Note, that providing `undefined` is treated as the value not being there.
  9466. * Read more here: https://pris.ly/d/null-undefined
  9467. * @param {SessionGroupByArgs} args - Group by arguments.
  9468. * @example
  9469. * // Group by city, order by createdAt, get count
  9470. * const result = await prisma.user.groupBy({
  9471. * by: ['city', 'createdAt'],
  9472. * orderBy: {
  9473. * createdAt: true
  9474. * },
  9475. * _count: {
  9476. * _all: true
  9477. * },
  9478. * })
  9479. *
  9480. **/
  9481. groupBy<
  9482. T extends SessionGroupByArgs,
  9483. HasSelectOrTake extends Or<
  9484. Extends<'skip', Keys<T>>,
  9485. Extends<'take', Keys<T>>
  9486. >,
  9487. OrderByArg extends True extends HasSelectOrTake
  9488. ? { orderBy: SessionGroupByArgs['orderBy'] }
  9489. : { orderBy?: SessionGroupByArgs['orderBy'] },
  9490. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  9491. ByFields extends MaybeTupleToUnion<T['by']>,
  9492. ByValid extends Has<ByFields, OrderFields>,
  9493. HavingFields extends GetHavingFields<T['having']>,
  9494. HavingValid extends Has<ByFields, HavingFields>,
  9495. ByEmpty extends T['by'] extends never[] ? True : False,
  9496. InputErrors extends ByEmpty extends True
  9497. ? `Error: "by" must not be empty.`
  9498. : HavingValid extends False
  9499. ? {
  9500. [P in HavingFields]: P extends ByFields
  9501. ? never
  9502. : P extends string
  9503. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  9504. : [
  9505. Error,
  9506. 'Field ',
  9507. P,
  9508. ` in "having" needs to be provided in "by"`,
  9509. ]
  9510. }[HavingFields]
  9511. : 'take' extends Keys<T>
  9512. ? 'orderBy' extends Keys<T>
  9513. ? ByValid extends True
  9514. ? {}
  9515. : {
  9516. [P in OrderFields]: P extends ByFields
  9517. ? never
  9518. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9519. }[OrderFields]
  9520. : 'Error: If you provide "take", you also need to provide "orderBy"'
  9521. : 'skip' extends Keys<T>
  9522. ? 'orderBy' extends Keys<T>
  9523. ? ByValid extends True
  9524. ? {}
  9525. : {
  9526. [P in OrderFields]: P extends ByFields
  9527. ? never
  9528. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9529. }[OrderFields]
  9530. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  9531. : ByValid extends True
  9532. ? {}
  9533. : {
  9534. [P in OrderFields]: P extends ByFields
  9535. ? never
  9536. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9537. }[OrderFields]
  9538. >(args: SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  9539. /**
  9540. * Fields of the Session model
  9541. */
  9542. readonly fields: SessionFieldRefs;
  9543. }
  9544. /**
  9545. * The delegate class that acts as a "Promise-like" for Session.
  9546. * Why is this prefixed with `Prisma__`?
  9547. * Because we want to prevent naming conflicts as mentioned in
  9548. * https://github.com/prisma/prisma-client-js/issues/707
  9549. */
  9550. export interface Prisma__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  9551. readonly [Symbol.toStringTag]: "PrismaPromise"
  9552. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  9553. /**
  9554. * Attaches callbacks for the resolution and/or rejection of the Promise.
  9555. * @param onfulfilled The callback to execute when the Promise is resolved.
  9556. * @param onrejected The callback to execute when the Promise is rejected.
  9557. * @returns A Promise for the completion of which ever callback is executed.
  9558. */
  9559. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  9560. /**
  9561. * Attaches a callback for only the rejection of the Promise.
  9562. * @param onrejected The callback to execute when the Promise is rejected.
  9563. * @returns A Promise for the completion of the callback.
  9564. */
  9565. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  9566. /**
  9567. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  9568. * resolved value cannot be modified from the callback.
  9569. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  9570. * @returns A Promise for the completion of the callback.
  9571. */
  9572. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  9573. }
  9574. /**
  9575. * Fields of the Session model
  9576. */
  9577. interface SessionFieldRefs {
  9578. readonly id: FieldRef<"Session", 'String'>
  9579. readonly sessionToken: FieldRef<"Session", 'String'>
  9580. readonly userId: FieldRef<"Session", 'String'>
  9581. readonly expires: FieldRef<"Session", 'DateTime'>
  9582. }
  9583. // Custom InputTypes
  9584. /**
  9585. * Session findUnique
  9586. */
  9587. export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9588. /**
  9589. * Select specific fields to fetch from the Session
  9590. */
  9591. select?: SessionSelect<ExtArgs> | null
  9592. /**
  9593. * Omit specific fields from the Session
  9594. */
  9595. omit?: SessionOmit<ExtArgs> | null
  9596. /**
  9597. * Choose, which related nodes to fetch as well
  9598. */
  9599. include?: SessionInclude<ExtArgs> | null
  9600. /**
  9601. * Filter, which Session to fetch.
  9602. */
  9603. where: SessionWhereUniqueInput
  9604. }
  9605. /**
  9606. * Session findUniqueOrThrow
  9607. */
  9608. export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9609. /**
  9610. * Select specific fields to fetch from the Session
  9611. */
  9612. select?: SessionSelect<ExtArgs> | null
  9613. /**
  9614. * Omit specific fields from the Session
  9615. */
  9616. omit?: SessionOmit<ExtArgs> | null
  9617. /**
  9618. * Choose, which related nodes to fetch as well
  9619. */
  9620. include?: SessionInclude<ExtArgs> | null
  9621. /**
  9622. * Filter, which Session to fetch.
  9623. */
  9624. where: SessionWhereUniqueInput
  9625. }
  9626. /**
  9627. * Session findFirst
  9628. */
  9629. export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9630. /**
  9631. * Select specific fields to fetch from the Session
  9632. */
  9633. select?: SessionSelect<ExtArgs> | null
  9634. /**
  9635. * Omit specific fields from the Session
  9636. */
  9637. omit?: SessionOmit<ExtArgs> | null
  9638. /**
  9639. * Choose, which related nodes to fetch as well
  9640. */
  9641. include?: SessionInclude<ExtArgs> | null
  9642. /**
  9643. * Filter, which Session to fetch.
  9644. */
  9645. where?: SessionWhereInput
  9646. /**
  9647. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9648. *
  9649. * Determine the order of Sessions to fetch.
  9650. */
  9651. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9652. /**
  9653. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9654. *
  9655. * Sets the position for searching for Sessions.
  9656. */
  9657. cursor?: SessionWhereUniqueInput
  9658. /**
  9659. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9660. *
  9661. * Take `±n` Sessions from the position of the cursor.
  9662. */
  9663. take?: number
  9664. /**
  9665. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9666. *
  9667. * Skip the first `n` Sessions.
  9668. */
  9669. skip?: number
  9670. /**
  9671. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9672. *
  9673. * Filter by unique combinations of Sessions.
  9674. */
  9675. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9676. }
  9677. /**
  9678. * Session findFirstOrThrow
  9679. */
  9680. export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9681. /**
  9682. * Select specific fields to fetch from the Session
  9683. */
  9684. select?: SessionSelect<ExtArgs> | null
  9685. /**
  9686. * Omit specific fields from the Session
  9687. */
  9688. omit?: SessionOmit<ExtArgs> | null
  9689. /**
  9690. * Choose, which related nodes to fetch as well
  9691. */
  9692. include?: SessionInclude<ExtArgs> | null
  9693. /**
  9694. * Filter, which Session to fetch.
  9695. */
  9696. where?: SessionWhereInput
  9697. /**
  9698. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9699. *
  9700. * Determine the order of Sessions to fetch.
  9701. */
  9702. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9703. /**
  9704. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9705. *
  9706. * Sets the position for searching for Sessions.
  9707. */
  9708. cursor?: SessionWhereUniqueInput
  9709. /**
  9710. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9711. *
  9712. * Take `±n` Sessions from the position of the cursor.
  9713. */
  9714. take?: number
  9715. /**
  9716. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9717. *
  9718. * Skip the first `n` Sessions.
  9719. */
  9720. skip?: number
  9721. /**
  9722. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9723. *
  9724. * Filter by unique combinations of Sessions.
  9725. */
  9726. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9727. }
  9728. /**
  9729. * Session findMany
  9730. */
  9731. export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9732. /**
  9733. * Select specific fields to fetch from the Session
  9734. */
  9735. select?: SessionSelect<ExtArgs> | null
  9736. /**
  9737. * Omit specific fields from the Session
  9738. */
  9739. omit?: SessionOmit<ExtArgs> | null
  9740. /**
  9741. * Choose, which related nodes to fetch as well
  9742. */
  9743. include?: SessionInclude<ExtArgs> | null
  9744. /**
  9745. * Filter, which Sessions to fetch.
  9746. */
  9747. where?: SessionWhereInput
  9748. /**
  9749. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9750. *
  9751. * Determine the order of Sessions to fetch.
  9752. */
  9753. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9754. /**
  9755. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9756. *
  9757. * Sets the position for listing Sessions.
  9758. */
  9759. cursor?: SessionWhereUniqueInput
  9760. /**
  9761. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9762. *
  9763. * Take `±n` Sessions from the position of the cursor.
  9764. */
  9765. take?: number
  9766. /**
  9767. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9768. *
  9769. * Skip the first `n` Sessions.
  9770. */
  9771. skip?: number
  9772. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9773. }
  9774. /**
  9775. * Session create
  9776. */
  9777. export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9778. /**
  9779. * Select specific fields to fetch from the Session
  9780. */
  9781. select?: SessionSelect<ExtArgs> | null
  9782. /**
  9783. * Omit specific fields from the Session
  9784. */
  9785. omit?: SessionOmit<ExtArgs> | null
  9786. /**
  9787. * Choose, which related nodes to fetch as well
  9788. */
  9789. include?: SessionInclude<ExtArgs> | null
  9790. /**
  9791. * The data needed to create a Session.
  9792. */
  9793. data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  9794. }
  9795. /**
  9796. * Session createMany
  9797. */
  9798. export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9799. /**
  9800. * The data used to create many Sessions.
  9801. */
  9802. data: SessionCreateManyInput | SessionCreateManyInput[]
  9803. skipDuplicates?: boolean
  9804. }
  9805. /**
  9806. * Session createManyAndReturn
  9807. */
  9808. export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9809. /**
  9810. * Select specific fields to fetch from the Session
  9811. */
  9812. select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
  9813. /**
  9814. * Omit specific fields from the Session
  9815. */
  9816. omit?: SessionOmit<ExtArgs> | null
  9817. /**
  9818. * The data used to create many Sessions.
  9819. */
  9820. data: SessionCreateManyInput | SessionCreateManyInput[]
  9821. skipDuplicates?: boolean
  9822. /**
  9823. * Choose, which related nodes to fetch as well
  9824. */
  9825. include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
  9826. }
  9827. /**
  9828. * Session update
  9829. */
  9830. export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9831. /**
  9832. * Select specific fields to fetch from the Session
  9833. */
  9834. select?: SessionSelect<ExtArgs> | null
  9835. /**
  9836. * Omit specific fields from the Session
  9837. */
  9838. omit?: SessionOmit<ExtArgs> | null
  9839. /**
  9840. * Choose, which related nodes to fetch as well
  9841. */
  9842. include?: SessionInclude<ExtArgs> | null
  9843. /**
  9844. * The data needed to update a Session.
  9845. */
  9846. data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  9847. /**
  9848. * Choose, which Session to update.
  9849. */
  9850. where: SessionWhereUniqueInput
  9851. }
  9852. /**
  9853. * Session updateMany
  9854. */
  9855. export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9856. /**
  9857. * The data used to update Sessions.
  9858. */
  9859. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  9860. /**
  9861. * Filter which Sessions to update
  9862. */
  9863. where?: SessionWhereInput
  9864. /**
  9865. * Limit how many Sessions to update.
  9866. */
  9867. limit?: number
  9868. }
  9869. /**
  9870. * Session updateManyAndReturn
  9871. */
  9872. export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9873. /**
  9874. * Select specific fields to fetch from the Session
  9875. */
  9876. select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
  9877. /**
  9878. * Omit specific fields from the Session
  9879. */
  9880. omit?: SessionOmit<ExtArgs> | null
  9881. /**
  9882. * The data used to update Sessions.
  9883. */
  9884. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  9885. /**
  9886. * Filter which Sessions to update
  9887. */
  9888. where?: SessionWhereInput
  9889. /**
  9890. * Limit how many Sessions to update.
  9891. */
  9892. limit?: number
  9893. /**
  9894. * Choose, which related nodes to fetch as well
  9895. */
  9896. include?: SessionIncludeUpdateManyAndReturn<ExtArgs> | null
  9897. }
  9898. /**
  9899. * Session upsert
  9900. */
  9901. export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9902. /**
  9903. * Select specific fields to fetch from the Session
  9904. */
  9905. select?: SessionSelect<ExtArgs> | null
  9906. /**
  9907. * Omit specific fields from the Session
  9908. */
  9909. omit?: SessionOmit<ExtArgs> | null
  9910. /**
  9911. * Choose, which related nodes to fetch as well
  9912. */
  9913. include?: SessionInclude<ExtArgs> | null
  9914. /**
  9915. * The filter to search for the Session to update in case it exists.
  9916. */
  9917. where: SessionWhereUniqueInput
  9918. /**
  9919. * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
  9920. */
  9921. create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  9922. /**
  9923. * In case the Session was found with the provided `where` argument, update it with this data.
  9924. */
  9925. update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  9926. }
  9927. /**
  9928. * Session delete
  9929. */
  9930. export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9931. /**
  9932. * Select specific fields to fetch from the Session
  9933. */
  9934. select?: SessionSelect<ExtArgs> | null
  9935. /**
  9936. * Omit specific fields from the Session
  9937. */
  9938. omit?: SessionOmit<ExtArgs> | null
  9939. /**
  9940. * Choose, which related nodes to fetch as well
  9941. */
  9942. include?: SessionInclude<ExtArgs> | null
  9943. /**
  9944. * Filter which Session to delete.
  9945. */
  9946. where: SessionWhereUniqueInput
  9947. }
  9948. /**
  9949. * Session deleteMany
  9950. */
  9951. export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9952. /**
  9953. * Filter which Sessions to delete
  9954. */
  9955. where?: SessionWhereInput
  9956. /**
  9957. * Limit how many Sessions to delete.
  9958. */
  9959. limit?: number
  9960. }
  9961. /**
  9962. * Session without action
  9963. */
  9964. export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9965. /**
  9966. * Select specific fields to fetch from the Session
  9967. */
  9968. select?: SessionSelect<ExtArgs> | null
  9969. /**
  9970. * Omit specific fields from the Session
  9971. */
  9972. omit?: SessionOmit<ExtArgs> | null
  9973. /**
  9974. * Choose, which related nodes to fetch as well
  9975. */
  9976. include?: SessionInclude<ExtArgs> | null
  9977. }
  9978. /**
  9979. * Model User
  9980. */
  9981. export type AggregateUser = {
  9982. _count: UserCountAggregateOutputType | null
  9983. _min: UserMinAggregateOutputType | null
  9984. _max: UserMaxAggregateOutputType | null
  9985. }
  9986. export type UserMinAggregateOutputType = {
  9987. id: string | null
  9988. name: string | null
  9989. email: string | null
  9990. emailVerified: Date | null
  9991. password: string | null
  9992. legalTermsAcceptedAt: Date | null
  9993. image: string | null
  9994. }
  9995. export type UserMaxAggregateOutputType = {
  9996. id: string | null
  9997. name: string | null
  9998. email: string | null
  9999. emailVerified: Date | null
  10000. password: string | null
  10001. legalTermsAcceptedAt: Date | null
  10002. image: string | null
  10003. }
  10004. export type UserCountAggregateOutputType = {
  10005. id: number
  10006. name: number
  10007. email: number
  10008. emailVerified: number
  10009. password: number
  10010. legalTermsAcceptedAt: number
  10011. image: number
  10012. _all: number
  10013. }
  10014. export type UserMinAggregateInputType = {
  10015. id?: true
  10016. name?: true
  10017. email?: true
  10018. emailVerified?: true
  10019. password?: true
  10020. legalTermsAcceptedAt?: true
  10021. image?: true
  10022. }
  10023. export type UserMaxAggregateInputType = {
  10024. id?: true
  10025. name?: true
  10026. email?: true
  10027. emailVerified?: true
  10028. password?: true
  10029. legalTermsAcceptedAt?: true
  10030. image?: true
  10031. }
  10032. export type UserCountAggregateInputType = {
  10033. id?: true
  10034. name?: true
  10035. email?: true
  10036. emailVerified?: true
  10037. password?: true
  10038. legalTermsAcceptedAt?: true
  10039. image?: true
  10040. _all?: true
  10041. }
  10042. export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10043. /**
  10044. * Filter which User to aggregate.
  10045. */
  10046. where?: UserWhereInput
  10047. /**
  10048. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10049. *
  10050. * Determine the order of Users to fetch.
  10051. */
  10052. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10053. /**
  10054. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10055. *
  10056. * Sets the start position
  10057. */
  10058. cursor?: UserWhereUniqueInput
  10059. /**
  10060. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10061. *
  10062. * Take `±n` Users from the position of the cursor.
  10063. */
  10064. take?: number
  10065. /**
  10066. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10067. *
  10068. * Skip the first `n` Users.
  10069. */
  10070. skip?: number
  10071. /**
  10072. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10073. *
  10074. * Count returned Users
  10075. **/
  10076. _count?: true | UserCountAggregateInputType
  10077. /**
  10078. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10079. *
  10080. * Select which fields to find the minimum value
  10081. **/
  10082. _min?: UserMinAggregateInputType
  10083. /**
  10084. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10085. *
  10086. * Select which fields to find the maximum value
  10087. **/
  10088. _max?: UserMaxAggregateInputType
  10089. }
  10090. export type GetUserAggregateType<T extends UserAggregateArgs> = {
  10091. [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
  10092. ? T[P] extends true
  10093. ? number
  10094. : GetScalarType<T[P], AggregateUser[P]>
  10095. : GetScalarType<T[P], AggregateUser[P]>
  10096. }
  10097. export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10098. where?: UserWhereInput
  10099. orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
  10100. by: UserScalarFieldEnum[] | UserScalarFieldEnum
  10101. having?: UserScalarWhereWithAggregatesInput
  10102. take?: number
  10103. skip?: number
  10104. _count?: UserCountAggregateInputType | true
  10105. _min?: UserMinAggregateInputType
  10106. _max?: UserMaxAggregateInputType
  10107. }
  10108. export type UserGroupByOutputType = {
  10109. id: string
  10110. name: string | null
  10111. email: string | null
  10112. emailVerified: Date | null
  10113. password: string | null
  10114. legalTermsAcceptedAt: Date | null
  10115. image: string | null
  10116. _count: UserCountAggregateOutputType | null
  10117. _min: UserMinAggregateOutputType | null
  10118. _max: UserMaxAggregateOutputType | null
  10119. }
  10120. type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
  10121. Array<
  10122. PickEnumerable<UserGroupByOutputType, T['by']> &
  10123. {
  10124. [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
  10125. ? T[P] extends boolean
  10126. ? number
  10127. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10128. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10129. }
  10130. >
  10131. >
  10132. export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10133. id?: boolean
  10134. name?: boolean
  10135. email?: boolean
  10136. emailVerified?: boolean
  10137. password?: boolean
  10138. legalTermsAcceptedAt?: boolean
  10139. image?: boolean
  10140. accounts?: boolean | User$accountsArgs<ExtArgs>
  10141. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10142. posts?: boolean | User$postsArgs<ExtArgs>
  10143. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10144. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10145. }, ExtArgs["result"]["user"]>
  10146. export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10147. id?: boolean
  10148. name?: boolean
  10149. email?: boolean
  10150. emailVerified?: boolean
  10151. password?: boolean
  10152. legalTermsAcceptedAt?: boolean
  10153. image?: boolean
  10154. }, ExtArgs["result"]["user"]>
  10155. export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10156. id?: boolean
  10157. name?: boolean
  10158. email?: boolean
  10159. emailVerified?: boolean
  10160. password?: boolean
  10161. legalTermsAcceptedAt?: boolean
  10162. image?: boolean
  10163. }, ExtArgs["result"]["user"]>
  10164. export type UserSelectScalar = {
  10165. id?: boolean
  10166. name?: boolean
  10167. email?: boolean
  10168. emailVerified?: boolean
  10169. password?: boolean
  10170. legalTermsAcceptedAt?: boolean
  10171. image?: boolean
  10172. }
  10173. export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "password" | "legalTermsAcceptedAt" | "image", ExtArgs["result"]["user"]>
  10174. export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10175. accounts?: boolean | User$accountsArgs<ExtArgs>
  10176. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10177. posts?: boolean | User$postsArgs<ExtArgs>
  10178. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10179. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10180. }
  10181. export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10182. export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10183. export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10184. name: "User"
  10185. objects: {
  10186. accounts: Prisma.$AccountPayload<ExtArgs>[]
  10187. sessions: Prisma.$SessionPayload<ExtArgs>[]
  10188. posts: Prisma.$PostPayload<ExtArgs>[]
  10189. workspace: Prisma.$WorkspacePayload<ExtArgs> | null
  10190. }
  10191. scalars: $Extensions.GetPayloadResult<{
  10192. id: string
  10193. name: string | null
  10194. email: string | null
  10195. emailVerified: Date | null
  10196. password: string | null
  10197. /**
  10198. * Horodatage unique d'acceptation CGU/CGV, confidentialité et annexe RGPD à l'inscription.
  10199. */
  10200. legalTermsAcceptedAt: Date | null
  10201. image: string | null
  10202. }, ExtArgs["result"]["user"]>
  10203. composites: {}
  10204. }
  10205. type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
  10206. type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  10207. Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  10208. select?: UserCountAggregateInputType | true
  10209. }
  10210. export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  10211. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
  10212. /**
  10213. * Find zero or one User that matches the filter.
  10214. * @param {UserFindUniqueArgs} args - Arguments to find a User
  10215. * @example
  10216. * // Get one User
  10217. * const user = await prisma.user.findUnique({
  10218. * where: {
  10219. * // ... provide filter here
  10220. * }
  10221. * })
  10222. */
  10223. findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10224. /**
  10225. * Find one User that matches the filter or throw an error with `error.code='P2025'`
  10226. * if no matches were found.
  10227. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
  10228. * @example
  10229. * // Get one User
  10230. * const user = await prisma.user.findUniqueOrThrow({
  10231. * where: {
  10232. * // ... provide filter here
  10233. * }
  10234. * })
  10235. */
  10236. findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10237. /**
  10238. * Find the first User that matches the filter.
  10239. * Note, that providing `undefined` is treated as the value not being there.
  10240. * Read more here: https://pris.ly/d/null-undefined
  10241. * @param {UserFindFirstArgs} args - Arguments to find a User
  10242. * @example
  10243. * // Get one User
  10244. * const user = await prisma.user.findFirst({
  10245. * where: {
  10246. * // ... provide filter here
  10247. * }
  10248. * })
  10249. */
  10250. findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10251. /**
  10252. * Find the first User that matches the filter or
  10253. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  10254. * Note, that providing `undefined` is treated as the value not being there.
  10255. * Read more here: https://pris.ly/d/null-undefined
  10256. * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
  10257. * @example
  10258. * // Get one User
  10259. * const user = await prisma.user.findFirstOrThrow({
  10260. * where: {
  10261. * // ... provide filter here
  10262. * }
  10263. * })
  10264. */
  10265. findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10266. /**
  10267. * Find zero or more Users that matches the filter.
  10268. * Note, that providing `undefined` is treated as the value not being there.
  10269. * Read more here: https://pris.ly/d/null-undefined
  10270. * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
  10271. * @example
  10272. * // Get all Users
  10273. * const users = await prisma.user.findMany()
  10274. *
  10275. * // Get first 10 Users
  10276. * const users = await prisma.user.findMany({ take: 10 })
  10277. *
  10278. * // Only select the `id`
  10279. * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
  10280. *
  10281. */
  10282. findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  10283. /**
  10284. * Create a User.
  10285. * @param {UserCreateArgs} args - Arguments to create a User.
  10286. * @example
  10287. * // Create one User
  10288. * const User = await prisma.user.create({
  10289. * data: {
  10290. * // ... data to create a User
  10291. * }
  10292. * })
  10293. *
  10294. */
  10295. create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10296. /**
  10297. * Create many Users.
  10298. * @param {UserCreateManyArgs} args - Arguments to create many Users.
  10299. * @example
  10300. * // Create many Users
  10301. * const user = await prisma.user.createMany({
  10302. * data: [
  10303. * // ... provide data here
  10304. * ]
  10305. * })
  10306. *
  10307. */
  10308. createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10309. /**
  10310. * Create many Users and returns the data saved in the database.
  10311. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
  10312. * @example
  10313. * // Create many Users
  10314. * const user = await prisma.user.createManyAndReturn({
  10315. * data: [
  10316. * // ... provide data here
  10317. * ]
  10318. * })
  10319. *
  10320. * // Create many Users and only return the `id`
  10321. * const userWithIdOnly = await prisma.user.createManyAndReturn({
  10322. * select: { id: true },
  10323. * data: [
  10324. * // ... provide data here
  10325. * ]
  10326. * })
  10327. * Note, that providing `undefined` is treated as the value not being there.
  10328. * Read more here: https://pris.ly/d/null-undefined
  10329. *
  10330. */
  10331. createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  10332. /**
  10333. * Delete a User.
  10334. * @param {UserDeleteArgs} args - Arguments to delete one User.
  10335. * @example
  10336. * // Delete one User
  10337. * const User = await prisma.user.delete({
  10338. * where: {
  10339. * // ... filter to delete one User
  10340. * }
  10341. * })
  10342. *
  10343. */
  10344. delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10345. /**
  10346. * Update one User.
  10347. * @param {UserUpdateArgs} args - Arguments to update one User.
  10348. * @example
  10349. * // Update one User
  10350. * const user = await prisma.user.update({
  10351. * where: {
  10352. * // ... provide filter here
  10353. * },
  10354. * data: {
  10355. * // ... provide data here
  10356. * }
  10357. * })
  10358. *
  10359. */
  10360. update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10361. /**
  10362. * Delete zero or more Users.
  10363. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
  10364. * @example
  10365. * // Delete a few Users
  10366. * const { count } = await prisma.user.deleteMany({
  10367. * where: {
  10368. * // ... provide filter here
  10369. * }
  10370. * })
  10371. *
  10372. */
  10373. deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10374. /**
  10375. * Update zero or more Users.
  10376. * Note, that providing `undefined` is treated as the value not being there.
  10377. * Read more here: https://pris.ly/d/null-undefined
  10378. * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
  10379. * @example
  10380. * // Update many Users
  10381. * const user = await prisma.user.updateMany({
  10382. * where: {
  10383. * // ... provide filter here
  10384. * },
  10385. * data: {
  10386. * // ... provide data here
  10387. * }
  10388. * })
  10389. *
  10390. */
  10391. updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10392. /**
  10393. * Update zero or more Users and returns the data updated in the database.
  10394. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
  10395. * @example
  10396. * // Update many Users
  10397. * const user = await prisma.user.updateManyAndReturn({
  10398. * where: {
  10399. * // ... provide filter here
  10400. * },
  10401. * data: [
  10402. * // ... provide data here
  10403. * ]
  10404. * })
  10405. *
  10406. * // Update zero or more Users and only return the `id`
  10407. * const userWithIdOnly = await prisma.user.updateManyAndReturn({
  10408. * select: { id: true },
  10409. * where: {
  10410. * // ... provide filter here
  10411. * },
  10412. * data: [
  10413. * // ... provide data here
  10414. * ]
  10415. * })
  10416. * Note, that providing `undefined` is treated as the value not being there.
  10417. * Read more here: https://pris.ly/d/null-undefined
  10418. *
  10419. */
  10420. updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  10421. /**
  10422. * Create or update one User.
  10423. * @param {UserUpsertArgs} args - Arguments to update or create a User.
  10424. * @example
  10425. * // Update or create a User
  10426. * const user = await prisma.user.upsert({
  10427. * create: {
  10428. * // ... data to create a User
  10429. * },
  10430. * update: {
  10431. * // ... in case it already exists, update
  10432. * },
  10433. * where: {
  10434. * // ... the filter for the User we want to update
  10435. * }
  10436. * })
  10437. */
  10438. upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10439. /**
  10440. * Count the number of Users.
  10441. * Note, that providing `undefined` is treated as the value not being there.
  10442. * Read more here: https://pris.ly/d/null-undefined
  10443. * @param {UserCountArgs} args - Arguments to filter Users to count.
  10444. * @example
  10445. * // Count the number of Users
  10446. * const count = await prisma.user.count({
  10447. * where: {
  10448. * // ... the filter for the Users we want to count
  10449. * }
  10450. * })
  10451. **/
  10452. count<T extends UserCountArgs>(
  10453. args?: Subset<T, UserCountArgs>,
  10454. ): Prisma.PrismaPromise<
  10455. T extends $Utils.Record<'select', any>
  10456. ? T['select'] extends true
  10457. ? number
  10458. : GetScalarType<T['select'], UserCountAggregateOutputType>
  10459. : number
  10460. >
  10461. /**
  10462. * Allows you to perform aggregations operations on a User.
  10463. * Note, that providing `undefined` is treated as the value not being there.
  10464. * Read more here: https://pris.ly/d/null-undefined
  10465. * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  10466. * @example
  10467. * // Ordered by age ascending
  10468. * // Where email contains prisma.io
  10469. * // Limited to the 10 users
  10470. * const aggregations = await prisma.user.aggregate({
  10471. * _avg: {
  10472. * age: true,
  10473. * },
  10474. * where: {
  10475. * email: {
  10476. * contains: "prisma.io",
  10477. * },
  10478. * },
  10479. * orderBy: {
  10480. * age: "asc",
  10481. * },
  10482. * take: 10,
  10483. * })
  10484. **/
  10485. aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
  10486. /**
  10487. * Group by User.
  10488. * Note, that providing `undefined` is treated as the value not being there.
  10489. * Read more here: https://pris.ly/d/null-undefined
  10490. * @param {UserGroupByArgs} args - Group by arguments.
  10491. * @example
  10492. * // Group by city, order by createdAt, get count
  10493. * const result = await prisma.user.groupBy({
  10494. * by: ['city', 'createdAt'],
  10495. * orderBy: {
  10496. * createdAt: true
  10497. * },
  10498. * _count: {
  10499. * _all: true
  10500. * },
  10501. * })
  10502. *
  10503. **/
  10504. groupBy<
  10505. T extends UserGroupByArgs,
  10506. HasSelectOrTake extends Or<
  10507. Extends<'skip', Keys<T>>,
  10508. Extends<'take', Keys<T>>
  10509. >,
  10510. OrderByArg extends True extends HasSelectOrTake
  10511. ? { orderBy: UserGroupByArgs['orderBy'] }
  10512. : { orderBy?: UserGroupByArgs['orderBy'] },
  10513. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  10514. ByFields extends MaybeTupleToUnion<T['by']>,
  10515. ByValid extends Has<ByFields, OrderFields>,
  10516. HavingFields extends GetHavingFields<T['having']>,
  10517. HavingValid extends Has<ByFields, HavingFields>,
  10518. ByEmpty extends T['by'] extends never[] ? True : False,
  10519. InputErrors extends ByEmpty extends True
  10520. ? `Error: "by" must not be empty.`
  10521. : HavingValid extends False
  10522. ? {
  10523. [P in HavingFields]: P extends ByFields
  10524. ? never
  10525. : P extends string
  10526. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  10527. : [
  10528. Error,
  10529. 'Field ',
  10530. P,
  10531. ` in "having" needs to be provided in "by"`,
  10532. ]
  10533. }[HavingFields]
  10534. : 'take' extends Keys<T>
  10535. ? 'orderBy' extends Keys<T>
  10536. ? ByValid extends True
  10537. ? {}
  10538. : {
  10539. [P in OrderFields]: P extends ByFields
  10540. ? never
  10541. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10542. }[OrderFields]
  10543. : 'Error: If you provide "take", you also need to provide "orderBy"'
  10544. : 'skip' extends Keys<T>
  10545. ? 'orderBy' extends Keys<T>
  10546. ? ByValid extends True
  10547. ? {}
  10548. : {
  10549. [P in OrderFields]: P extends ByFields
  10550. ? never
  10551. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10552. }[OrderFields]
  10553. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  10554. : ByValid extends True
  10555. ? {}
  10556. : {
  10557. [P in OrderFields]: P extends ByFields
  10558. ? never
  10559. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10560. }[OrderFields]
  10561. >(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  10562. /**
  10563. * Fields of the User model
  10564. */
  10565. readonly fields: UserFieldRefs;
  10566. }
  10567. /**
  10568. * The delegate class that acts as a "Promise-like" for User.
  10569. * Why is this prefixed with `Prisma__`?
  10570. * Because we want to prevent naming conflicts as mentioned in
  10571. * https://github.com/prisma/prisma-client-js/issues/707
  10572. */
  10573. export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  10574. readonly [Symbol.toStringTag]: "PrismaPromise"
  10575. accounts<T extends User$accountsArgs<ExtArgs> = {}>(args?: Subset<T, User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10576. sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10577. posts<T extends User$postsArgs<ExtArgs> = {}>(args?: Subset<T, User$postsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10578. workspace<T extends User$workspaceArgs<ExtArgs> = {}>(args?: Subset<T, User$workspaceArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10579. /**
  10580. * Attaches callbacks for the resolution and/or rejection of the Promise.
  10581. * @param onfulfilled The callback to execute when the Promise is resolved.
  10582. * @param onrejected The callback to execute when the Promise is rejected.
  10583. * @returns A Promise for the completion of which ever callback is executed.
  10584. */
  10585. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  10586. /**
  10587. * Attaches a callback for only the rejection of the Promise.
  10588. * @param onrejected The callback to execute when the Promise is rejected.
  10589. * @returns A Promise for the completion of the callback.
  10590. */
  10591. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  10592. /**
  10593. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  10594. * resolved value cannot be modified from the callback.
  10595. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  10596. * @returns A Promise for the completion of the callback.
  10597. */
  10598. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  10599. }
  10600. /**
  10601. * Fields of the User model
  10602. */
  10603. interface UserFieldRefs {
  10604. readonly id: FieldRef<"User", 'String'>
  10605. readonly name: FieldRef<"User", 'String'>
  10606. readonly email: FieldRef<"User", 'String'>
  10607. readonly emailVerified: FieldRef<"User", 'DateTime'>
  10608. readonly password: FieldRef<"User", 'String'>
  10609. readonly legalTermsAcceptedAt: FieldRef<"User", 'DateTime'>
  10610. readonly image: FieldRef<"User", 'String'>
  10611. }
  10612. // Custom InputTypes
  10613. /**
  10614. * User findUnique
  10615. */
  10616. export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10617. /**
  10618. * Select specific fields to fetch from the User
  10619. */
  10620. select?: UserSelect<ExtArgs> | null
  10621. /**
  10622. * Omit specific fields from the User
  10623. */
  10624. omit?: UserOmit<ExtArgs> | null
  10625. /**
  10626. * Choose, which related nodes to fetch as well
  10627. */
  10628. include?: UserInclude<ExtArgs> | null
  10629. /**
  10630. * Filter, which User to fetch.
  10631. */
  10632. where: UserWhereUniqueInput
  10633. }
  10634. /**
  10635. * User findUniqueOrThrow
  10636. */
  10637. export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10638. /**
  10639. * Select specific fields to fetch from the User
  10640. */
  10641. select?: UserSelect<ExtArgs> | null
  10642. /**
  10643. * Omit specific fields from the User
  10644. */
  10645. omit?: UserOmit<ExtArgs> | null
  10646. /**
  10647. * Choose, which related nodes to fetch as well
  10648. */
  10649. include?: UserInclude<ExtArgs> | null
  10650. /**
  10651. * Filter, which User to fetch.
  10652. */
  10653. where: UserWhereUniqueInput
  10654. }
  10655. /**
  10656. * User findFirst
  10657. */
  10658. export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10659. /**
  10660. * Select specific fields to fetch from the User
  10661. */
  10662. select?: UserSelect<ExtArgs> | null
  10663. /**
  10664. * Omit specific fields from the User
  10665. */
  10666. omit?: UserOmit<ExtArgs> | null
  10667. /**
  10668. * Choose, which related nodes to fetch as well
  10669. */
  10670. include?: UserInclude<ExtArgs> | null
  10671. /**
  10672. * Filter, which User to fetch.
  10673. */
  10674. where?: UserWhereInput
  10675. /**
  10676. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10677. *
  10678. * Determine the order of Users to fetch.
  10679. */
  10680. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10681. /**
  10682. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10683. *
  10684. * Sets the position for searching for Users.
  10685. */
  10686. cursor?: UserWhereUniqueInput
  10687. /**
  10688. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10689. *
  10690. * Take `±n` Users from the position of the cursor.
  10691. */
  10692. take?: number
  10693. /**
  10694. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10695. *
  10696. * Skip the first `n` Users.
  10697. */
  10698. skip?: number
  10699. /**
  10700. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10701. *
  10702. * Filter by unique combinations of Users.
  10703. */
  10704. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10705. }
  10706. /**
  10707. * User findFirstOrThrow
  10708. */
  10709. export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10710. /**
  10711. * Select specific fields to fetch from the User
  10712. */
  10713. select?: UserSelect<ExtArgs> | null
  10714. /**
  10715. * Omit specific fields from the User
  10716. */
  10717. omit?: UserOmit<ExtArgs> | null
  10718. /**
  10719. * Choose, which related nodes to fetch as well
  10720. */
  10721. include?: UserInclude<ExtArgs> | null
  10722. /**
  10723. * Filter, which User to fetch.
  10724. */
  10725. where?: UserWhereInput
  10726. /**
  10727. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10728. *
  10729. * Determine the order of Users to fetch.
  10730. */
  10731. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10732. /**
  10733. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10734. *
  10735. * Sets the position for searching for Users.
  10736. */
  10737. cursor?: UserWhereUniqueInput
  10738. /**
  10739. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10740. *
  10741. * Take `±n` Users from the position of the cursor.
  10742. */
  10743. take?: number
  10744. /**
  10745. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10746. *
  10747. * Skip the first `n` Users.
  10748. */
  10749. skip?: number
  10750. /**
  10751. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10752. *
  10753. * Filter by unique combinations of Users.
  10754. */
  10755. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10756. }
  10757. /**
  10758. * User findMany
  10759. */
  10760. export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10761. /**
  10762. * Select specific fields to fetch from the User
  10763. */
  10764. select?: UserSelect<ExtArgs> | null
  10765. /**
  10766. * Omit specific fields from the User
  10767. */
  10768. omit?: UserOmit<ExtArgs> | null
  10769. /**
  10770. * Choose, which related nodes to fetch as well
  10771. */
  10772. include?: UserInclude<ExtArgs> | null
  10773. /**
  10774. * Filter, which Users to fetch.
  10775. */
  10776. where?: UserWhereInput
  10777. /**
  10778. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10779. *
  10780. * Determine the order of Users to fetch.
  10781. */
  10782. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10783. /**
  10784. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10785. *
  10786. * Sets the position for listing Users.
  10787. */
  10788. cursor?: UserWhereUniqueInput
  10789. /**
  10790. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10791. *
  10792. * Take `±n` Users from the position of the cursor.
  10793. */
  10794. take?: number
  10795. /**
  10796. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10797. *
  10798. * Skip the first `n` Users.
  10799. */
  10800. skip?: number
  10801. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10802. }
  10803. /**
  10804. * User create
  10805. */
  10806. export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10807. /**
  10808. * Select specific fields to fetch from the User
  10809. */
  10810. select?: UserSelect<ExtArgs> | null
  10811. /**
  10812. * Omit specific fields from the User
  10813. */
  10814. omit?: UserOmit<ExtArgs> | null
  10815. /**
  10816. * Choose, which related nodes to fetch as well
  10817. */
  10818. include?: UserInclude<ExtArgs> | null
  10819. /**
  10820. * The data needed to create a User.
  10821. */
  10822. data?: XOR<UserCreateInput, UserUncheckedCreateInput>
  10823. }
  10824. /**
  10825. * User createMany
  10826. */
  10827. export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10828. /**
  10829. * The data used to create many Users.
  10830. */
  10831. data: UserCreateManyInput | UserCreateManyInput[]
  10832. skipDuplicates?: boolean
  10833. }
  10834. /**
  10835. * User createManyAndReturn
  10836. */
  10837. export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10838. /**
  10839. * Select specific fields to fetch from the User
  10840. */
  10841. select?: UserSelectCreateManyAndReturn<ExtArgs> | null
  10842. /**
  10843. * Omit specific fields from the User
  10844. */
  10845. omit?: UserOmit<ExtArgs> | null
  10846. /**
  10847. * The data used to create many Users.
  10848. */
  10849. data: UserCreateManyInput | UserCreateManyInput[]
  10850. skipDuplicates?: boolean
  10851. }
  10852. /**
  10853. * User update
  10854. */
  10855. export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10856. /**
  10857. * Select specific fields to fetch from the User
  10858. */
  10859. select?: UserSelect<ExtArgs> | null
  10860. /**
  10861. * Omit specific fields from the User
  10862. */
  10863. omit?: UserOmit<ExtArgs> | null
  10864. /**
  10865. * Choose, which related nodes to fetch as well
  10866. */
  10867. include?: UserInclude<ExtArgs> | null
  10868. /**
  10869. * The data needed to update a User.
  10870. */
  10871. data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  10872. /**
  10873. * Choose, which User to update.
  10874. */
  10875. where: UserWhereUniqueInput
  10876. }
  10877. /**
  10878. * User updateMany
  10879. */
  10880. export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10881. /**
  10882. * The data used to update Users.
  10883. */
  10884. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  10885. /**
  10886. * Filter which Users to update
  10887. */
  10888. where?: UserWhereInput
  10889. /**
  10890. * Limit how many Users to update.
  10891. */
  10892. limit?: number
  10893. }
  10894. /**
  10895. * User updateManyAndReturn
  10896. */
  10897. export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10898. /**
  10899. * Select specific fields to fetch from the User
  10900. */
  10901. select?: UserSelectUpdateManyAndReturn<ExtArgs> | null
  10902. /**
  10903. * Omit specific fields from the User
  10904. */
  10905. omit?: UserOmit<ExtArgs> | null
  10906. /**
  10907. * The data used to update Users.
  10908. */
  10909. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  10910. /**
  10911. * Filter which Users to update
  10912. */
  10913. where?: UserWhereInput
  10914. /**
  10915. * Limit how many Users to update.
  10916. */
  10917. limit?: number
  10918. }
  10919. /**
  10920. * User upsert
  10921. */
  10922. export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10923. /**
  10924. * Select specific fields to fetch from the User
  10925. */
  10926. select?: UserSelect<ExtArgs> | null
  10927. /**
  10928. * Omit specific fields from the User
  10929. */
  10930. omit?: UserOmit<ExtArgs> | null
  10931. /**
  10932. * Choose, which related nodes to fetch as well
  10933. */
  10934. include?: UserInclude<ExtArgs> | null
  10935. /**
  10936. * The filter to search for the User to update in case it exists.
  10937. */
  10938. where: UserWhereUniqueInput
  10939. /**
  10940. * In case the User found by the `where` argument doesn't exist, create a new User with this data.
  10941. */
  10942. create: XOR<UserCreateInput, UserUncheckedCreateInput>
  10943. /**
  10944. * In case the User was found with the provided `where` argument, update it with this data.
  10945. */
  10946. update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  10947. }
  10948. /**
  10949. * User delete
  10950. */
  10951. export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10952. /**
  10953. * Select specific fields to fetch from the User
  10954. */
  10955. select?: UserSelect<ExtArgs> | null
  10956. /**
  10957. * Omit specific fields from the User
  10958. */
  10959. omit?: UserOmit<ExtArgs> | null
  10960. /**
  10961. * Choose, which related nodes to fetch as well
  10962. */
  10963. include?: UserInclude<ExtArgs> | null
  10964. /**
  10965. * Filter which User to delete.
  10966. */
  10967. where: UserWhereUniqueInput
  10968. }
  10969. /**
  10970. * User deleteMany
  10971. */
  10972. export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10973. /**
  10974. * Filter which Users to delete
  10975. */
  10976. where?: UserWhereInput
  10977. /**
  10978. * Limit how many Users to delete.
  10979. */
  10980. limit?: number
  10981. }
  10982. /**
  10983. * User.accounts
  10984. */
  10985. export type User$accountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10986. /**
  10987. * Select specific fields to fetch from the Account
  10988. */
  10989. select?: AccountSelect<ExtArgs> | null
  10990. /**
  10991. * Omit specific fields from the Account
  10992. */
  10993. omit?: AccountOmit<ExtArgs> | null
  10994. /**
  10995. * Choose, which related nodes to fetch as well
  10996. */
  10997. include?: AccountInclude<ExtArgs> | null
  10998. where?: AccountWhereInput
  10999. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  11000. cursor?: AccountWhereUniqueInput
  11001. take?: number
  11002. skip?: number
  11003. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  11004. }
  11005. /**
  11006. * User.sessions
  11007. */
  11008. export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11009. /**
  11010. * Select specific fields to fetch from the Session
  11011. */
  11012. select?: SessionSelect<ExtArgs> | null
  11013. /**
  11014. * Omit specific fields from the Session
  11015. */
  11016. omit?: SessionOmit<ExtArgs> | null
  11017. /**
  11018. * Choose, which related nodes to fetch as well
  11019. */
  11020. include?: SessionInclude<ExtArgs> | null
  11021. where?: SessionWhereInput
  11022. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  11023. cursor?: SessionWhereUniqueInput
  11024. take?: number
  11025. skip?: number
  11026. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  11027. }
  11028. /**
  11029. * User.posts
  11030. */
  11031. export type User$postsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11032. /**
  11033. * Select specific fields to fetch from the Post
  11034. */
  11035. select?: PostSelect<ExtArgs> | null
  11036. /**
  11037. * Omit specific fields from the Post
  11038. */
  11039. omit?: PostOmit<ExtArgs> | null
  11040. /**
  11041. * Choose, which related nodes to fetch as well
  11042. */
  11043. include?: PostInclude<ExtArgs> | null
  11044. where?: PostWhereInput
  11045. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  11046. cursor?: PostWhereUniqueInput
  11047. take?: number
  11048. skip?: number
  11049. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  11050. }
  11051. /**
  11052. * User.workspace
  11053. */
  11054. export type User$workspaceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11055. /**
  11056. * Select specific fields to fetch from the Workspace
  11057. */
  11058. select?: WorkspaceSelect<ExtArgs> | null
  11059. /**
  11060. * Omit specific fields from the Workspace
  11061. */
  11062. omit?: WorkspaceOmit<ExtArgs> | null
  11063. /**
  11064. * Choose, which related nodes to fetch as well
  11065. */
  11066. include?: WorkspaceInclude<ExtArgs> | null
  11067. where?: WorkspaceWhereInput
  11068. }
  11069. /**
  11070. * User without action
  11071. */
  11072. export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11073. /**
  11074. * Select specific fields to fetch from the User
  11075. */
  11076. select?: UserSelect<ExtArgs> | null
  11077. /**
  11078. * Omit specific fields from the User
  11079. */
  11080. omit?: UserOmit<ExtArgs> | null
  11081. /**
  11082. * Choose, which related nodes to fetch as well
  11083. */
  11084. include?: UserInclude<ExtArgs> | null
  11085. }
  11086. /**
  11087. * Model VerificationToken
  11088. */
  11089. export type AggregateVerificationToken = {
  11090. _count: VerificationTokenCountAggregateOutputType | null
  11091. _min: VerificationTokenMinAggregateOutputType | null
  11092. _max: VerificationTokenMaxAggregateOutputType | null
  11093. }
  11094. export type VerificationTokenMinAggregateOutputType = {
  11095. identifier: string | null
  11096. token: string | null
  11097. expires: Date | null
  11098. }
  11099. export type VerificationTokenMaxAggregateOutputType = {
  11100. identifier: string | null
  11101. token: string | null
  11102. expires: Date | null
  11103. }
  11104. export type VerificationTokenCountAggregateOutputType = {
  11105. identifier: number
  11106. token: number
  11107. expires: number
  11108. _all: number
  11109. }
  11110. export type VerificationTokenMinAggregateInputType = {
  11111. identifier?: true
  11112. token?: true
  11113. expires?: true
  11114. }
  11115. export type VerificationTokenMaxAggregateInputType = {
  11116. identifier?: true
  11117. token?: true
  11118. expires?: true
  11119. }
  11120. export type VerificationTokenCountAggregateInputType = {
  11121. identifier?: true
  11122. token?: true
  11123. expires?: true
  11124. _all?: true
  11125. }
  11126. export type VerificationTokenAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11127. /**
  11128. * Filter which VerificationToken to aggregate.
  11129. */
  11130. where?: VerificationTokenWhereInput
  11131. /**
  11132. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11133. *
  11134. * Determine the order of VerificationTokens to fetch.
  11135. */
  11136. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11137. /**
  11138. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11139. *
  11140. * Sets the start position
  11141. */
  11142. cursor?: VerificationTokenWhereUniqueInput
  11143. /**
  11144. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11145. *
  11146. * Take `±n` VerificationTokens from the position of the cursor.
  11147. */
  11148. take?: number
  11149. /**
  11150. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11151. *
  11152. * Skip the first `n` VerificationTokens.
  11153. */
  11154. skip?: number
  11155. /**
  11156. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11157. *
  11158. * Count returned VerificationTokens
  11159. **/
  11160. _count?: true | VerificationTokenCountAggregateInputType
  11161. /**
  11162. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11163. *
  11164. * Select which fields to find the minimum value
  11165. **/
  11166. _min?: VerificationTokenMinAggregateInputType
  11167. /**
  11168. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11169. *
  11170. * Select which fields to find the maximum value
  11171. **/
  11172. _max?: VerificationTokenMaxAggregateInputType
  11173. }
  11174. export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
  11175. [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
  11176. ? T[P] extends true
  11177. ? number
  11178. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11179. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11180. }
  11181. export type VerificationTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11182. where?: VerificationTokenWhereInput
  11183. orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[]
  11184. by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum
  11185. having?: VerificationTokenScalarWhereWithAggregatesInput
  11186. take?: number
  11187. skip?: number
  11188. _count?: VerificationTokenCountAggregateInputType | true
  11189. _min?: VerificationTokenMinAggregateInputType
  11190. _max?: VerificationTokenMaxAggregateInputType
  11191. }
  11192. export type VerificationTokenGroupByOutputType = {
  11193. identifier: string
  11194. token: string
  11195. expires: Date
  11196. _count: VerificationTokenCountAggregateOutputType | null
  11197. _min: VerificationTokenMinAggregateOutputType | null
  11198. _max: VerificationTokenMaxAggregateOutputType | null
  11199. }
  11200. type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
  11201. Array<
  11202. PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
  11203. {
  11204. [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
  11205. ? T[P] extends boolean
  11206. ? number
  11207. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11208. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11209. }
  11210. >
  11211. >
  11212. export type VerificationTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11213. identifier?: boolean
  11214. token?: boolean
  11215. expires?: boolean
  11216. }, ExtArgs["result"]["verificationToken"]>
  11217. export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11218. identifier?: boolean
  11219. token?: boolean
  11220. expires?: boolean
  11221. }, ExtArgs["result"]["verificationToken"]>
  11222. export type VerificationTokenSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11223. identifier?: boolean
  11224. token?: boolean
  11225. expires?: boolean
  11226. }, ExtArgs["result"]["verificationToken"]>
  11227. export type VerificationTokenSelectScalar = {
  11228. identifier?: boolean
  11229. token?: boolean
  11230. expires?: boolean
  11231. }
  11232. export type VerificationTokenOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]>
  11233. export type $VerificationTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11234. name: "VerificationToken"
  11235. objects: {}
  11236. scalars: $Extensions.GetPayloadResult<{
  11237. identifier: string
  11238. token: string
  11239. expires: Date
  11240. }, ExtArgs["result"]["verificationToken"]>
  11241. composites: {}
  11242. }
  11243. type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = $Result.GetResult<Prisma.$VerificationTokenPayload, S>
  11244. type VerificationTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  11245. Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  11246. select?: VerificationTokenCountAggregateInputType | true
  11247. }
  11248. export interface VerificationTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  11249. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'], meta: { name: 'VerificationToken' } }
  11250. /**
  11251. * Find zero or one VerificationToken that matches the filter.
  11252. * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
  11253. * @example
  11254. * // Get one VerificationToken
  11255. * const verificationToken = await prisma.verificationToken.findUnique({
  11256. * where: {
  11257. * // ... provide filter here
  11258. * }
  11259. * })
  11260. */
  11261. findUnique<T extends VerificationTokenFindUniqueArgs>(args: SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11262. /**
  11263. * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
  11264. * if no matches were found.
  11265. * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
  11266. * @example
  11267. * // Get one VerificationToken
  11268. * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
  11269. * where: {
  11270. * // ... provide filter here
  11271. * }
  11272. * })
  11273. */
  11274. findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11275. /**
  11276. * Find the first VerificationToken that matches the filter.
  11277. * Note, that providing `undefined` is treated as the value not being there.
  11278. * Read more here: https://pris.ly/d/null-undefined
  11279. * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
  11280. * @example
  11281. * // Get one VerificationToken
  11282. * const verificationToken = await prisma.verificationToken.findFirst({
  11283. * where: {
  11284. * // ... provide filter here
  11285. * }
  11286. * })
  11287. */
  11288. findFirst<T extends VerificationTokenFindFirstArgs>(args?: SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11289. /**
  11290. * Find the first VerificationToken that matches the filter or
  11291. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  11292. * Note, that providing `undefined` is treated as the value not being there.
  11293. * Read more here: https://pris.ly/d/null-undefined
  11294. * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
  11295. * @example
  11296. * // Get one VerificationToken
  11297. * const verificationToken = await prisma.verificationToken.findFirstOrThrow({
  11298. * where: {
  11299. * // ... provide filter here
  11300. * }
  11301. * })
  11302. */
  11303. findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11304. /**
  11305. * Find zero or more VerificationTokens that matches the filter.
  11306. * Note, that providing `undefined` is treated as the value not being there.
  11307. * Read more here: https://pris.ly/d/null-undefined
  11308. * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
  11309. * @example
  11310. * // Get all VerificationTokens
  11311. * const verificationTokens = await prisma.verificationToken.findMany()
  11312. *
  11313. * // Get first 10 VerificationTokens
  11314. * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
  11315. *
  11316. * // Only select the `identifier`
  11317. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
  11318. *
  11319. */
  11320. findMany<T extends VerificationTokenFindManyArgs>(args?: SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  11321. /**
  11322. * Create a VerificationToken.
  11323. * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
  11324. * @example
  11325. * // Create one VerificationToken
  11326. * const VerificationToken = await prisma.verificationToken.create({
  11327. * data: {
  11328. * // ... data to create a VerificationToken
  11329. * }
  11330. * })
  11331. *
  11332. */
  11333. create<T extends VerificationTokenCreateArgs>(args: SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11334. /**
  11335. * Create many VerificationTokens.
  11336. * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
  11337. * @example
  11338. * // Create many VerificationTokens
  11339. * const verificationToken = await prisma.verificationToken.createMany({
  11340. * data: [
  11341. * // ... provide data here
  11342. * ]
  11343. * })
  11344. *
  11345. */
  11346. createMany<T extends VerificationTokenCreateManyArgs>(args?: SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11347. /**
  11348. * Create many VerificationTokens and returns the data saved in the database.
  11349. * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
  11350. * @example
  11351. * // Create many VerificationTokens
  11352. * const verificationToken = await prisma.verificationToken.createManyAndReturn({
  11353. * data: [
  11354. * // ... provide data here
  11355. * ]
  11356. * })
  11357. *
  11358. * // Create many VerificationTokens and only return the `identifier`
  11359. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
  11360. * select: { identifier: true },
  11361. * data: [
  11362. * // ... provide data here
  11363. * ]
  11364. * })
  11365. * Note, that providing `undefined` is treated as the value not being there.
  11366. * Read more here: https://pris.ly/d/null-undefined
  11367. *
  11368. */
  11369. createManyAndReturn<T extends VerificationTokenCreateManyAndReturnArgs>(args?: SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  11370. /**
  11371. * Delete a VerificationToken.
  11372. * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
  11373. * @example
  11374. * // Delete one VerificationToken
  11375. * const VerificationToken = await prisma.verificationToken.delete({
  11376. * where: {
  11377. * // ... filter to delete one VerificationToken
  11378. * }
  11379. * })
  11380. *
  11381. */
  11382. delete<T extends VerificationTokenDeleteArgs>(args: SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11383. /**
  11384. * Update one VerificationToken.
  11385. * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
  11386. * @example
  11387. * // Update one VerificationToken
  11388. * const verificationToken = await prisma.verificationToken.update({
  11389. * where: {
  11390. * // ... provide filter here
  11391. * },
  11392. * data: {
  11393. * // ... provide data here
  11394. * }
  11395. * })
  11396. *
  11397. */
  11398. update<T extends VerificationTokenUpdateArgs>(args: SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11399. /**
  11400. * Delete zero or more VerificationTokens.
  11401. * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
  11402. * @example
  11403. * // Delete a few VerificationTokens
  11404. * const { count } = await prisma.verificationToken.deleteMany({
  11405. * where: {
  11406. * // ... provide filter here
  11407. * }
  11408. * })
  11409. *
  11410. */
  11411. deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11412. /**
  11413. * Update zero or more VerificationTokens.
  11414. * Note, that providing `undefined` is treated as the value not being there.
  11415. * Read more here: https://pris.ly/d/null-undefined
  11416. * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
  11417. * @example
  11418. * // Update many VerificationTokens
  11419. * const verificationToken = await prisma.verificationToken.updateMany({
  11420. * where: {
  11421. * // ... provide filter here
  11422. * },
  11423. * data: {
  11424. * // ... provide data here
  11425. * }
  11426. * })
  11427. *
  11428. */
  11429. updateMany<T extends VerificationTokenUpdateManyArgs>(args: SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11430. /**
  11431. * Update zero or more VerificationTokens and returns the data updated in the database.
  11432. * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens.
  11433. * @example
  11434. * // Update many VerificationTokens
  11435. * const verificationToken = await prisma.verificationToken.updateManyAndReturn({
  11436. * where: {
  11437. * // ... provide filter here
  11438. * },
  11439. * data: [
  11440. * // ... provide data here
  11441. * ]
  11442. * })
  11443. *
  11444. * // Update zero or more VerificationTokens and only return the `identifier`
  11445. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({
  11446. * select: { identifier: true },
  11447. * where: {
  11448. * // ... provide filter here
  11449. * },
  11450. * data: [
  11451. * // ... provide data here
  11452. * ]
  11453. * })
  11454. * Note, that providing `undefined` is treated as the value not being there.
  11455. * Read more here: https://pris.ly/d/null-undefined
  11456. *
  11457. */
  11458. updateManyAndReturn<T extends VerificationTokenUpdateManyAndReturnArgs>(args: SelectSubset<T, VerificationTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  11459. /**
  11460. * Create or update one VerificationToken.
  11461. * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
  11462. * @example
  11463. * // Update or create a VerificationToken
  11464. * const verificationToken = await prisma.verificationToken.upsert({
  11465. * create: {
  11466. * // ... data to create a VerificationToken
  11467. * },
  11468. * update: {
  11469. * // ... in case it already exists, update
  11470. * },
  11471. * where: {
  11472. * // ... the filter for the VerificationToken we want to update
  11473. * }
  11474. * })
  11475. */
  11476. upsert<T extends VerificationTokenUpsertArgs>(args: SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11477. /**
  11478. * Count the number of VerificationTokens.
  11479. * Note, that providing `undefined` is treated as the value not being there.
  11480. * Read more here: https://pris.ly/d/null-undefined
  11481. * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
  11482. * @example
  11483. * // Count the number of VerificationTokens
  11484. * const count = await prisma.verificationToken.count({
  11485. * where: {
  11486. * // ... the filter for the VerificationTokens we want to count
  11487. * }
  11488. * })
  11489. **/
  11490. count<T extends VerificationTokenCountArgs>(
  11491. args?: Subset<T, VerificationTokenCountArgs>,
  11492. ): Prisma.PrismaPromise<
  11493. T extends $Utils.Record<'select', any>
  11494. ? T['select'] extends true
  11495. ? number
  11496. : GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
  11497. : number
  11498. >
  11499. /**
  11500. * Allows you to perform aggregations operations on a VerificationToken.
  11501. * Note, that providing `undefined` is treated as the value not being there.
  11502. * Read more here: https://pris.ly/d/null-undefined
  11503. * @param {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  11504. * @example
  11505. * // Ordered by age ascending
  11506. * // Where email contains prisma.io
  11507. * // Limited to the 10 users
  11508. * const aggregations = await prisma.user.aggregate({
  11509. * _avg: {
  11510. * age: true,
  11511. * },
  11512. * where: {
  11513. * email: {
  11514. * contains: "prisma.io",
  11515. * },
  11516. * },
  11517. * orderBy: {
  11518. * age: "asc",
  11519. * },
  11520. * take: 10,
  11521. * })
  11522. **/
  11523. aggregate<T extends VerificationTokenAggregateArgs>(args: Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
  11524. /**
  11525. * Group by VerificationToken.
  11526. * Note, that providing `undefined` is treated as the value not being there.
  11527. * Read more here: https://pris.ly/d/null-undefined
  11528. * @param {VerificationTokenGroupByArgs} args - Group by arguments.
  11529. * @example
  11530. * // Group by city, order by createdAt, get count
  11531. * const result = await prisma.user.groupBy({
  11532. * by: ['city', 'createdAt'],
  11533. * orderBy: {
  11534. * createdAt: true
  11535. * },
  11536. * _count: {
  11537. * _all: true
  11538. * },
  11539. * })
  11540. *
  11541. **/
  11542. groupBy<
  11543. T extends VerificationTokenGroupByArgs,
  11544. HasSelectOrTake extends Or<
  11545. Extends<'skip', Keys<T>>,
  11546. Extends<'take', Keys<T>>
  11547. >,
  11548. OrderByArg extends True extends HasSelectOrTake
  11549. ? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
  11550. : { orderBy?: VerificationTokenGroupByArgs['orderBy'] },
  11551. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  11552. ByFields extends MaybeTupleToUnion<T['by']>,
  11553. ByValid extends Has<ByFields, OrderFields>,
  11554. HavingFields extends GetHavingFields<T['having']>,
  11555. HavingValid extends Has<ByFields, HavingFields>,
  11556. ByEmpty extends T['by'] extends never[] ? True : False,
  11557. InputErrors extends ByEmpty extends True
  11558. ? `Error: "by" must not be empty.`
  11559. : HavingValid extends False
  11560. ? {
  11561. [P in HavingFields]: P extends ByFields
  11562. ? never
  11563. : P extends string
  11564. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  11565. : [
  11566. Error,
  11567. 'Field ',
  11568. P,
  11569. ` in "having" needs to be provided in "by"`,
  11570. ]
  11571. }[HavingFields]
  11572. : 'take' extends Keys<T>
  11573. ? 'orderBy' extends Keys<T>
  11574. ? ByValid extends True
  11575. ? {}
  11576. : {
  11577. [P in OrderFields]: P extends ByFields
  11578. ? never
  11579. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11580. }[OrderFields]
  11581. : 'Error: If you provide "take", you also need to provide "orderBy"'
  11582. : 'skip' extends Keys<T>
  11583. ? 'orderBy' extends Keys<T>
  11584. ? ByValid extends True
  11585. ? {}
  11586. : {
  11587. [P in OrderFields]: P extends ByFields
  11588. ? never
  11589. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11590. }[OrderFields]
  11591. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  11592. : ByValid extends True
  11593. ? {}
  11594. : {
  11595. [P in OrderFields]: P extends ByFields
  11596. ? never
  11597. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11598. }[OrderFields]
  11599. >(args: SubsetIntersection<T, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  11600. /**
  11601. * Fields of the VerificationToken model
  11602. */
  11603. readonly fields: VerificationTokenFieldRefs;
  11604. }
  11605. /**
  11606. * The delegate class that acts as a "Promise-like" for VerificationToken.
  11607. * Why is this prefixed with `Prisma__`?
  11608. * Because we want to prevent naming conflicts as mentioned in
  11609. * https://github.com/prisma/prisma-client-js/issues/707
  11610. */
  11611. export interface Prisma__VerificationTokenClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  11612. readonly [Symbol.toStringTag]: "PrismaPromise"
  11613. /**
  11614. * Attaches callbacks for the resolution and/or rejection of the Promise.
  11615. * @param onfulfilled The callback to execute when the Promise is resolved.
  11616. * @param onrejected The callback to execute when the Promise is rejected.
  11617. * @returns A Promise for the completion of which ever callback is executed.
  11618. */
  11619. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  11620. /**
  11621. * Attaches a callback for only the rejection of the Promise.
  11622. * @param onrejected The callback to execute when the Promise is rejected.
  11623. * @returns A Promise for the completion of the callback.
  11624. */
  11625. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  11626. /**
  11627. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  11628. * resolved value cannot be modified from the callback.
  11629. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  11630. * @returns A Promise for the completion of the callback.
  11631. */
  11632. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  11633. }
  11634. /**
  11635. * Fields of the VerificationToken model
  11636. */
  11637. interface VerificationTokenFieldRefs {
  11638. readonly identifier: FieldRef<"VerificationToken", 'String'>
  11639. readonly token: FieldRef<"VerificationToken", 'String'>
  11640. readonly expires: FieldRef<"VerificationToken", 'DateTime'>
  11641. }
  11642. // Custom InputTypes
  11643. /**
  11644. * VerificationToken findUnique
  11645. */
  11646. export type VerificationTokenFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11647. /**
  11648. * Select specific fields to fetch from the VerificationToken
  11649. */
  11650. select?: VerificationTokenSelect<ExtArgs> | null
  11651. /**
  11652. * Omit specific fields from the VerificationToken
  11653. */
  11654. omit?: VerificationTokenOmit<ExtArgs> | null
  11655. /**
  11656. * Filter, which VerificationToken to fetch.
  11657. */
  11658. where: VerificationTokenWhereUniqueInput
  11659. }
  11660. /**
  11661. * VerificationToken findUniqueOrThrow
  11662. */
  11663. export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11664. /**
  11665. * Select specific fields to fetch from the VerificationToken
  11666. */
  11667. select?: VerificationTokenSelect<ExtArgs> | null
  11668. /**
  11669. * Omit specific fields from the VerificationToken
  11670. */
  11671. omit?: VerificationTokenOmit<ExtArgs> | null
  11672. /**
  11673. * Filter, which VerificationToken to fetch.
  11674. */
  11675. where: VerificationTokenWhereUniqueInput
  11676. }
  11677. /**
  11678. * VerificationToken findFirst
  11679. */
  11680. export type VerificationTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11681. /**
  11682. * Select specific fields to fetch from the VerificationToken
  11683. */
  11684. select?: VerificationTokenSelect<ExtArgs> | null
  11685. /**
  11686. * Omit specific fields from the VerificationToken
  11687. */
  11688. omit?: VerificationTokenOmit<ExtArgs> | null
  11689. /**
  11690. * Filter, which VerificationToken to fetch.
  11691. */
  11692. where?: VerificationTokenWhereInput
  11693. /**
  11694. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11695. *
  11696. * Determine the order of VerificationTokens to fetch.
  11697. */
  11698. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11699. /**
  11700. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11701. *
  11702. * Sets the position for searching for VerificationTokens.
  11703. */
  11704. cursor?: VerificationTokenWhereUniqueInput
  11705. /**
  11706. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11707. *
  11708. * Take `±n` VerificationTokens from the position of the cursor.
  11709. */
  11710. take?: number
  11711. /**
  11712. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11713. *
  11714. * Skip the first `n` VerificationTokens.
  11715. */
  11716. skip?: number
  11717. /**
  11718. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11719. *
  11720. * Filter by unique combinations of VerificationTokens.
  11721. */
  11722. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11723. }
  11724. /**
  11725. * VerificationToken findFirstOrThrow
  11726. */
  11727. export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11728. /**
  11729. * Select specific fields to fetch from the VerificationToken
  11730. */
  11731. select?: VerificationTokenSelect<ExtArgs> | null
  11732. /**
  11733. * Omit specific fields from the VerificationToken
  11734. */
  11735. omit?: VerificationTokenOmit<ExtArgs> | null
  11736. /**
  11737. * Filter, which VerificationToken to fetch.
  11738. */
  11739. where?: VerificationTokenWhereInput
  11740. /**
  11741. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11742. *
  11743. * Determine the order of VerificationTokens to fetch.
  11744. */
  11745. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11746. /**
  11747. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11748. *
  11749. * Sets the position for searching for VerificationTokens.
  11750. */
  11751. cursor?: VerificationTokenWhereUniqueInput
  11752. /**
  11753. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11754. *
  11755. * Take `±n` VerificationTokens from the position of the cursor.
  11756. */
  11757. take?: number
  11758. /**
  11759. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11760. *
  11761. * Skip the first `n` VerificationTokens.
  11762. */
  11763. skip?: number
  11764. /**
  11765. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11766. *
  11767. * Filter by unique combinations of VerificationTokens.
  11768. */
  11769. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11770. }
  11771. /**
  11772. * VerificationToken findMany
  11773. */
  11774. export type VerificationTokenFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11775. /**
  11776. * Select specific fields to fetch from the VerificationToken
  11777. */
  11778. select?: VerificationTokenSelect<ExtArgs> | null
  11779. /**
  11780. * Omit specific fields from the VerificationToken
  11781. */
  11782. omit?: VerificationTokenOmit<ExtArgs> | null
  11783. /**
  11784. * Filter, which VerificationTokens to fetch.
  11785. */
  11786. where?: VerificationTokenWhereInput
  11787. /**
  11788. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11789. *
  11790. * Determine the order of VerificationTokens to fetch.
  11791. */
  11792. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11793. /**
  11794. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11795. *
  11796. * Sets the position for listing VerificationTokens.
  11797. */
  11798. cursor?: VerificationTokenWhereUniqueInput
  11799. /**
  11800. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11801. *
  11802. * Take `±n` VerificationTokens from the position of the cursor.
  11803. */
  11804. take?: number
  11805. /**
  11806. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11807. *
  11808. * Skip the first `n` VerificationTokens.
  11809. */
  11810. skip?: number
  11811. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11812. }
  11813. /**
  11814. * VerificationToken create
  11815. */
  11816. export type VerificationTokenCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11817. /**
  11818. * Select specific fields to fetch from the VerificationToken
  11819. */
  11820. select?: VerificationTokenSelect<ExtArgs> | null
  11821. /**
  11822. * Omit specific fields from the VerificationToken
  11823. */
  11824. omit?: VerificationTokenOmit<ExtArgs> | null
  11825. /**
  11826. * The data needed to create a VerificationToken.
  11827. */
  11828. data: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  11829. }
  11830. /**
  11831. * VerificationToken createMany
  11832. */
  11833. export type VerificationTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11834. /**
  11835. * The data used to create many VerificationTokens.
  11836. */
  11837. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  11838. skipDuplicates?: boolean
  11839. }
  11840. /**
  11841. * VerificationToken createManyAndReturn
  11842. */
  11843. export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11844. /**
  11845. * Select specific fields to fetch from the VerificationToken
  11846. */
  11847. select?: VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null
  11848. /**
  11849. * Omit specific fields from the VerificationToken
  11850. */
  11851. omit?: VerificationTokenOmit<ExtArgs> | null
  11852. /**
  11853. * The data used to create many VerificationTokens.
  11854. */
  11855. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  11856. skipDuplicates?: boolean
  11857. }
  11858. /**
  11859. * VerificationToken update
  11860. */
  11861. export type VerificationTokenUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11862. /**
  11863. * Select specific fields to fetch from the VerificationToken
  11864. */
  11865. select?: VerificationTokenSelect<ExtArgs> | null
  11866. /**
  11867. * Omit specific fields from the VerificationToken
  11868. */
  11869. omit?: VerificationTokenOmit<ExtArgs> | null
  11870. /**
  11871. * The data needed to update a VerificationToken.
  11872. */
  11873. data: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  11874. /**
  11875. * Choose, which VerificationToken to update.
  11876. */
  11877. where: VerificationTokenWhereUniqueInput
  11878. }
  11879. /**
  11880. * VerificationToken updateMany
  11881. */
  11882. export type VerificationTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11883. /**
  11884. * The data used to update VerificationTokens.
  11885. */
  11886. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  11887. /**
  11888. * Filter which VerificationTokens to update
  11889. */
  11890. where?: VerificationTokenWhereInput
  11891. /**
  11892. * Limit how many VerificationTokens to update.
  11893. */
  11894. limit?: number
  11895. }
  11896. /**
  11897. * VerificationToken updateManyAndReturn
  11898. */
  11899. export type VerificationTokenUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11900. /**
  11901. * Select specific fields to fetch from the VerificationToken
  11902. */
  11903. select?: VerificationTokenSelectUpdateManyAndReturn<ExtArgs> | null
  11904. /**
  11905. * Omit specific fields from the VerificationToken
  11906. */
  11907. omit?: VerificationTokenOmit<ExtArgs> | null
  11908. /**
  11909. * The data used to update VerificationTokens.
  11910. */
  11911. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  11912. /**
  11913. * Filter which VerificationTokens to update
  11914. */
  11915. where?: VerificationTokenWhereInput
  11916. /**
  11917. * Limit how many VerificationTokens to update.
  11918. */
  11919. limit?: number
  11920. }
  11921. /**
  11922. * VerificationToken upsert
  11923. */
  11924. export type VerificationTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11925. /**
  11926. * Select specific fields to fetch from the VerificationToken
  11927. */
  11928. select?: VerificationTokenSelect<ExtArgs> | null
  11929. /**
  11930. * Omit specific fields from the VerificationToken
  11931. */
  11932. omit?: VerificationTokenOmit<ExtArgs> | null
  11933. /**
  11934. * The filter to search for the VerificationToken to update in case it exists.
  11935. */
  11936. where: VerificationTokenWhereUniqueInput
  11937. /**
  11938. * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
  11939. */
  11940. create: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  11941. /**
  11942. * In case the VerificationToken was found with the provided `where` argument, update it with this data.
  11943. */
  11944. update: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  11945. }
  11946. /**
  11947. * VerificationToken delete
  11948. */
  11949. export type VerificationTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11950. /**
  11951. * Select specific fields to fetch from the VerificationToken
  11952. */
  11953. select?: VerificationTokenSelect<ExtArgs> | null
  11954. /**
  11955. * Omit specific fields from the VerificationToken
  11956. */
  11957. omit?: VerificationTokenOmit<ExtArgs> | null
  11958. /**
  11959. * Filter which VerificationToken to delete.
  11960. */
  11961. where: VerificationTokenWhereUniqueInput
  11962. }
  11963. /**
  11964. * VerificationToken deleteMany
  11965. */
  11966. export type VerificationTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11967. /**
  11968. * Filter which VerificationTokens to delete
  11969. */
  11970. where?: VerificationTokenWhereInput
  11971. /**
  11972. * Limit how many VerificationTokens to delete.
  11973. */
  11974. limit?: number
  11975. }
  11976. /**
  11977. * VerificationToken without action
  11978. */
  11979. export type VerificationTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11980. /**
  11981. * Select specific fields to fetch from the VerificationToken
  11982. */
  11983. select?: VerificationTokenSelect<ExtArgs> | null
  11984. /**
  11985. * Omit specific fields from the VerificationToken
  11986. */
  11987. omit?: VerificationTokenOmit<ExtArgs> | null
  11988. }
  11989. /**
  11990. * Model IdeaAttachment
  11991. */
  11992. export type AggregateIdeaAttachment = {
  11993. _count: IdeaAttachmentCountAggregateOutputType | null
  11994. _avg: IdeaAttachmentAvgAggregateOutputType | null
  11995. _sum: IdeaAttachmentSumAggregateOutputType | null
  11996. _min: IdeaAttachmentMinAggregateOutputType | null
  11997. _max: IdeaAttachmentMaxAggregateOutputType | null
  11998. }
  11999. export type IdeaAttachmentAvgAggregateOutputType = {
  12000. size: number | null
  12001. }
  12002. export type IdeaAttachmentSumAggregateOutputType = {
  12003. size: number | null
  12004. }
  12005. export type IdeaAttachmentMinAggregateOutputType = {
  12006. id: string | null
  12007. ideaId: string | null
  12008. workspaceId: string | null
  12009. filename: string | null
  12010. contentType: string | null
  12011. size: number | null
  12012. url: string | null
  12013. blobPath: string | null
  12014. createdAt: Date | null
  12015. }
  12016. export type IdeaAttachmentMaxAggregateOutputType = {
  12017. id: string | null
  12018. ideaId: string | null
  12019. workspaceId: string | null
  12020. filename: string | null
  12021. contentType: string | null
  12022. size: number | null
  12023. url: string | null
  12024. blobPath: string | null
  12025. createdAt: Date | null
  12026. }
  12027. export type IdeaAttachmentCountAggregateOutputType = {
  12028. id: number
  12029. ideaId: number
  12030. workspaceId: number
  12031. filename: number
  12032. contentType: number
  12033. size: number
  12034. url: number
  12035. blobPath: number
  12036. createdAt: number
  12037. _all: number
  12038. }
  12039. export type IdeaAttachmentAvgAggregateInputType = {
  12040. size?: true
  12041. }
  12042. export type IdeaAttachmentSumAggregateInputType = {
  12043. size?: true
  12044. }
  12045. export type IdeaAttachmentMinAggregateInputType = {
  12046. id?: true
  12047. ideaId?: true
  12048. workspaceId?: true
  12049. filename?: true
  12050. contentType?: true
  12051. size?: true
  12052. url?: true
  12053. blobPath?: true
  12054. createdAt?: true
  12055. }
  12056. export type IdeaAttachmentMaxAggregateInputType = {
  12057. id?: true
  12058. ideaId?: true
  12059. workspaceId?: true
  12060. filename?: true
  12061. contentType?: true
  12062. size?: true
  12063. url?: true
  12064. blobPath?: true
  12065. createdAt?: true
  12066. }
  12067. export type IdeaAttachmentCountAggregateInputType = {
  12068. id?: true
  12069. ideaId?: true
  12070. workspaceId?: true
  12071. filename?: true
  12072. contentType?: true
  12073. size?: true
  12074. url?: true
  12075. blobPath?: true
  12076. createdAt?: true
  12077. _all?: true
  12078. }
  12079. export type IdeaAttachmentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12080. /**
  12081. * Filter which IdeaAttachment to aggregate.
  12082. */
  12083. where?: IdeaAttachmentWhereInput
  12084. /**
  12085. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12086. *
  12087. * Determine the order of IdeaAttachments to fetch.
  12088. */
  12089. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12090. /**
  12091. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12092. *
  12093. * Sets the start position
  12094. */
  12095. cursor?: IdeaAttachmentWhereUniqueInput
  12096. /**
  12097. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12098. *
  12099. * Take `±n` IdeaAttachments from the position of the cursor.
  12100. */
  12101. take?: number
  12102. /**
  12103. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12104. *
  12105. * Skip the first `n` IdeaAttachments.
  12106. */
  12107. skip?: number
  12108. /**
  12109. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12110. *
  12111. * Count returned IdeaAttachments
  12112. **/
  12113. _count?: true | IdeaAttachmentCountAggregateInputType
  12114. /**
  12115. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12116. *
  12117. * Select which fields to average
  12118. **/
  12119. _avg?: IdeaAttachmentAvgAggregateInputType
  12120. /**
  12121. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12122. *
  12123. * Select which fields to sum
  12124. **/
  12125. _sum?: IdeaAttachmentSumAggregateInputType
  12126. /**
  12127. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12128. *
  12129. * Select which fields to find the minimum value
  12130. **/
  12131. _min?: IdeaAttachmentMinAggregateInputType
  12132. /**
  12133. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12134. *
  12135. * Select which fields to find the maximum value
  12136. **/
  12137. _max?: IdeaAttachmentMaxAggregateInputType
  12138. }
  12139. export type GetIdeaAttachmentAggregateType<T extends IdeaAttachmentAggregateArgs> = {
  12140. [P in keyof T & keyof AggregateIdeaAttachment]: P extends '_count' | 'count'
  12141. ? T[P] extends true
  12142. ? number
  12143. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12144. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12145. }
  12146. export type IdeaAttachmentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12147. where?: IdeaAttachmentWhereInput
  12148. orderBy?: IdeaAttachmentOrderByWithAggregationInput | IdeaAttachmentOrderByWithAggregationInput[]
  12149. by: IdeaAttachmentScalarFieldEnum[] | IdeaAttachmentScalarFieldEnum
  12150. having?: IdeaAttachmentScalarWhereWithAggregatesInput
  12151. take?: number
  12152. skip?: number
  12153. _count?: IdeaAttachmentCountAggregateInputType | true
  12154. _avg?: IdeaAttachmentAvgAggregateInputType
  12155. _sum?: IdeaAttachmentSumAggregateInputType
  12156. _min?: IdeaAttachmentMinAggregateInputType
  12157. _max?: IdeaAttachmentMaxAggregateInputType
  12158. }
  12159. export type IdeaAttachmentGroupByOutputType = {
  12160. id: string
  12161. ideaId: string
  12162. workspaceId: string
  12163. filename: string
  12164. contentType: string
  12165. size: number
  12166. url: string
  12167. blobPath: string
  12168. createdAt: Date
  12169. _count: IdeaAttachmentCountAggregateOutputType | null
  12170. _avg: IdeaAttachmentAvgAggregateOutputType | null
  12171. _sum: IdeaAttachmentSumAggregateOutputType | null
  12172. _min: IdeaAttachmentMinAggregateOutputType | null
  12173. _max: IdeaAttachmentMaxAggregateOutputType | null
  12174. }
  12175. type GetIdeaAttachmentGroupByPayload<T extends IdeaAttachmentGroupByArgs> = Prisma.PrismaPromise<
  12176. Array<
  12177. PickEnumerable<IdeaAttachmentGroupByOutputType, T['by']> &
  12178. {
  12179. [P in ((keyof T) & (keyof IdeaAttachmentGroupByOutputType))]: P extends '_count'
  12180. ? T[P] extends boolean
  12181. ? number
  12182. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12183. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12184. }
  12185. >
  12186. >
  12187. export type IdeaAttachmentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12188. id?: boolean
  12189. ideaId?: boolean
  12190. workspaceId?: boolean
  12191. filename?: boolean
  12192. contentType?: boolean
  12193. size?: boolean
  12194. url?: boolean
  12195. blobPath?: boolean
  12196. createdAt?: boolean
  12197. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12198. }, ExtArgs["result"]["ideaAttachment"]>
  12199. export type IdeaAttachmentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12200. id?: boolean
  12201. ideaId?: boolean
  12202. workspaceId?: boolean
  12203. filename?: boolean
  12204. contentType?: boolean
  12205. size?: boolean
  12206. url?: boolean
  12207. blobPath?: boolean
  12208. createdAt?: boolean
  12209. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12210. }, ExtArgs["result"]["ideaAttachment"]>
  12211. export type IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12212. id?: boolean
  12213. ideaId?: boolean
  12214. workspaceId?: boolean
  12215. filename?: boolean
  12216. contentType?: boolean
  12217. size?: boolean
  12218. url?: boolean
  12219. blobPath?: boolean
  12220. createdAt?: boolean
  12221. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12222. }, ExtArgs["result"]["ideaAttachment"]>
  12223. export type IdeaAttachmentSelectScalar = {
  12224. id?: boolean
  12225. ideaId?: boolean
  12226. workspaceId?: boolean
  12227. filename?: boolean
  12228. contentType?: boolean
  12229. size?: boolean
  12230. url?: boolean
  12231. blobPath?: boolean
  12232. createdAt?: boolean
  12233. }
  12234. export type IdeaAttachmentOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "filename" | "contentType" | "size" | "url" | "blobPath" | "createdAt", ExtArgs["result"]["ideaAttachment"]>
  12235. export type IdeaAttachmentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12236. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12237. }
  12238. export type IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12239. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12240. }
  12241. export type IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12242. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12243. }
  12244. export type $IdeaAttachmentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12245. name: "IdeaAttachment"
  12246. objects: {
  12247. idea: Prisma.$IdeaPayload<ExtArgs>
  12248. }
  12249. scalars: $Extensions.GetPayloadResult<{
  12250. id: string
  12251. ideaId: string
  12252. workspaceId: string
  12253. filename: string
  12254. contentType: string
  12255. size: number
  12256. url: string
  12257. blobPath: string
  12258. createdAt: Date
  12259. }, ExtArgs["result"]["ideaAttachment"]>
  12260. composites: {}
  12261. }
  12262. type IdeaAttachmentGetPayload<S extends boolean | null | undefined | IdeaAttachmentDefaultArgs> = $Result.GetResult<Prisma.$IdeaAttachmentPayload, S>
  12263. type IdeaAttachmentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  12264. Omit<IdeaAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  12265. select?: IdeaAttachmentCountAggregateInputType | true
  12266. }
  12267. export interface IdeaAttachmentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  12268. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['IdeaAttachment'], meta: { name: 'IdeaAttachment' } }
  12269. /**
  12270. * Find zero or one IdeaAttachment that matches the filter.
  12271. * @param {IdeaAttachmentFindUniqueArgs} args - Arguments to find a IdeaAttachment
  12272. * @example
  12273. * // Get one IdeaAttachment
  12274. * const ideaAttachment = await prisma.ideaAttachment.findUnique({
  12275. * where: {
  12276. * // ... provide filter here
  12277. * }
  12278. * })
  12279. */
  12280. findUnique<T extends IdeaAttachmentFindUniqueArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12281. /**
  12282. * Find one IdeaAttachment that matches the filter or throw an error with `error.code='P2025'`
  12283. * if no matches were found.
  12284. * @param {IdeaAttachmentFindUniqueOrThrowArgs} args - Arguments to find a IdeaAttachment
  12285. * @example
  12286. * // Get one IdeaAttachment
  12287. * const ideaAttachment = await prisma.ideaAttachment.findUniqueOrThrow({
  12288. * where: {
  12289. * // ... provide filter here
  12290. * }
  12291. * })
  12292. */
  12293. findUniqueOrThrow<T extends IdeaAttachmentFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12294. /**
  12295. * Find the first IdeaAttachment that matches the filter.
  12296. * Note, that providing `undefined` is treated as the value not being there.
  12297. * Read more here: https://pris.ly/d/null-undefined
  12298. * @param {IdeaAttachmentFindFirstArgs} args - Arguments to find a IdeaAttachment
  12299. * @example
  12300. * // Get one IdeaAttachment
  12301. * const ideaAttachment = await prisma.ideaAttachment.findFirst({
  12302. * where: {
  12303. * // ... provide filter here
  12304. * }
  12305. * })
  12306. */
  12307. findFirst<T extends IdeaAttachmentFindFirstArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12308. /**
  12309. * Find the first IdeaAttachment that matches the filter or
  12310. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  12311. * Note, that providing `undefined` is treated as the value not being there.
  12312. * Read more here: https://pris.ly/d/null-undefined
  12313. * @param {IdeaAttachmentFindFirstOrThrowArgs} args - Arguments to find a IdeaAttachment
  12314. * @example
  12315. * // Get one IdeaAttachment
  12316. * const ideaAttachment = await prisma.ideaAttachment.findFirstOrThrow({
  12317. * where: {
  12318. * // ... provide filter here
  12319. * }
  12320. * })
  12321. */
  12322. findFirstOrThrow<T extends IdeaAttachmentFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12323. /**
  12324. * Find zero or more IdeaAttachments that matches the filter.
  12325. * Note, that providing `undefined` is treated as the value not being there.
  12326. * Read more here: https://pris.ly/d/null-undefined
  12327. * @param {IdeaAttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
  12328. * @example
  12329. * // Get all IdeaAttachments
  12330. * const ideaAttachments = await prisma.ideaAttachment.findMany()
  12331. *
  12332. * // Get first 10 IdeaAttachments
  12333. * const ideaAttachments = await prisma.ideaAttachment.findMany({ take: 10 })
  12334. *
  12335. * // Only select the `id`
  12336. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.findMany({ select: { id: true } })
  12337. *
  12338. */
  12339. findMany<T extends IdeaAttachmentFindManyArgs>(args?: SelectSubset<T, IdeaAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  12340. /**
  12341. * Create a IdeaAttachment.
  12342. * @param {IdeaAttachmentCreateArgs} args - Arguments to create a IdeaAttachment.
  12343. * @example
  12344. * // Create one IdeaAttachment
  12345. * const IdeaAttachment = await prisma.ideaAttachment.create({
  12346. * data: {
  12347. * // ... data to create a IdeaAttachment
  12348. * }
  12349. * })
  12350. *
  12351. */
  12352. create<T extends IdeaAttachmentCreateArgs>(args: SelectSubset<T, IdeaAttachmentCreateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12353. /**
  12354. * Create many IdeaAttachments.
  12355. * @param {IdeaAttachmentCreateManyArgs} args - Arguments to create many IdeaAttachments.
  12356. * @example
  12357. * // Create many IdeaAttachments
  12358. * const ideaAttachment = await prisma.ideaAttachment.createMany({
  12359. * data: [
  12360. * // ... provide data here
  12361. * ]
  12362. * })
  12363. *
  12364. */
  12365. createMany<T extends IdeaAttachmentCreateManyArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12366. /**
  12367. * Create many IdeaAttachments and returns the data saved in the database.
  12368. * @param {IdeaAttachmentCreateManyAndReturnArgs} args - Arguments to create many IdeaAttachments.
  12369. * @example
  12370. * // Create many IdeaAttachments
  12371. * const ideaAttachment = await prisma.ideaAttachment.createManyAndReturn({
  12372. * data: [
  12373. * // ... provide data here
  12374. * ]
  12375. * })
  12376. *
  12377. * // Create many IdeaAttachments and only return the `id`
  12378. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.createManyAndReturn({
  12379. * select: { id: true },
  12380. * data: [
  12381. * // ... provide data here
  12382. * ]
  12383. * })
  12384. * Note, that providing `undefined` is treated as the value not being there.
  12385. * Read more here: https://pris.ly/d/null-undefined
  12386. *
  12387. */
  12388. createManyAndReturn<T extends IdeaAttachmentCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  12389. /**
  12390. * Delete a IdeaAttachment.
  12391. * @param {IdeaAttachmentDeleteArgs} args - Arguments to delete one IdeaAttachment.
  12392. * @example
  12393. * // Delete one IdeaAttachment
  12394. * const IdeaAttachment = await prisma.ideaAttachment.delete({
  12395. * where: {
  12396. * // ... filter to delete one IdeaAttachment
  12397. * }
  12398. * })
  12399. *
  12400. */
  12401. delete<T extends IdeaAttachmentDeleteArgs>(args: SelectSubset<T, IdeaAttachmentDeleteArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12402. /**
  12403. * Update one IdeaAttachment.
  12404. * @param {IdeaAttachmentUpdateArgs} args - Arguments to update one IdeaAttachment.
  12405. * @example
  12406. * // Update one IdeaAttachment
  12407. * const ideaAttachment = await prisma.ideaAttachment.update({
  12408. * where: {
  12409. * // ... provide filter here
  12410. * },
  12411. * data: {
  12412. * // ... provide data here
  12413. * }
  12414. * })
  12415. *
  12416. */
  12417. update<T extends IdeaAttachmentUpdateArgs>(args: SelectSubset<T, IdeaAttachmentUpdateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12418. /**
  12419. * Delete zero or more IdeaAttachments.
  12420. * @param {IdeaAttachmentDeleteManyArgs} args - Arguments to filter IdeaAttachments to delete.
  12421. * @example
  12422. * // Delete a few IdeaAttachments
  12423. * const { count } = await prisma.ideaAttachment.deleteMany({
  12424. * where: {
  12425. * // ... provide filter here
  12426. * }
  12427. * })
  12428. *
  12429. */
  12430. deleteMany<T extends IdeaAttachmentDeleteManyArgs>(args?: SelectSubset<T, IdeaAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12431. /**
  12432. * Update zero or more IdeaAttachments.
  12433. * Note, that providing `undefined` is treated as the value not being there.
  12434. * Read more here: https://pris.ly/d/null-undefined
  12435. * @param {IdeaAttachmentUpdateManyArgs} args - Arguments to update one or more rows.
  12436. * @example
  12437. * // Update many IdeaAttachments
  12438. * const ideaAttachment = await prisma.ideaAttachment.updateMany({
  12439. * where: {
  12440. * // ... provide filter here
  12441. * },
  12442. * data: {
  12443. * // ... provide data here
  12444. * }
  12445. * })
  12446. *
  12447. */
  12448. updateMany<T extends IdeaAttachmentUpdateManyArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12449. /**
  12450. * Update zero or more IdeaAttachments and returns the data updated in the database.
  12451. * @param {IdeaAttachmentUpdateManyAndReturnArgs} args - Arguments to update many IdeaAttachments.
  12452. * @example
  12453. * // Update many IdeaAttachments
  12454. * const ideaAttachment = await prisma.ideaAttachment.updateManyAndReturn({
  12455. * where: {
  12456. * // ... provide filter here
  12457. * },
  12458. * data: [
  12459. * // ... provide data here
  12460. * ]
  12461. * })
  12462. *
  12463. * // Update zero or more IdeaAttachments and only return the `id`
  12464. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.updateManyAndReturn({
  12465. * select: { id: true },
  12466. * where: {
  12467. * // ... provide filter here
  12468. * },
  12469. * data: [
  12470. * // ... provide data here
  12471. * ]
  12472. * })
  12473. * Note, that providing `undefined` is treated as the value not being there.
  12474. * Read more here: https://pris.ly/d/null-undefined
  12475. *
  12476. */
  12477. updateManyAndReturn<T extends IdeaAttachmentUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  12478. /**
  12479. * Create or update one IdeaAttachment.
  12480. * @param {IdeaAttachmentUpsertArgs} args - Arguments to update or create a IdeaAttachment.
  12481. * @example
  12482. * // Update or create a IdeaAttachment
  12483. * const ideaAttachment = await prisma.ideaAttachment.upsert({
  12484. * create: {
  12485. * // ... data to create a IdeaAttachment
  12486. * },
  12487. * update: {
  12488. * // ... in case it already exists, update
  12489. * },
  12490. * where: {
  12491. * // ... the filter for the IdeaAttachment we want to update
  12492. * }
  12493. * })
  12494. */
  12495. upsert<T extends IdeaAttachmentUpsertArgs>(args: SelectSubset<T, IdeaAttachmentUpsertArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12496. /**
  12497. * Count the number of IdeaAttachments.
  12498. * Note, that providing `undefined` is treated as the value not being there.
  12499. * Read more here: https://pris.ly/d/null-undefined
  12500. * @param {IdeaAttachmentCountArgs} args - Arguments to filter IdeaAttachments to count.
  12501. * @example
  12502. * // Count the number of IdeaAttachments
  12503. * const count = await prisma.ideaAttachment.count({
  12504. * where: {
  12505. * // ... the filter for the IdeaAttachments we want to count
  12506. * }
  12507. * })
  12508. **/
  12509. count<T extends IdeaAttachmentCountArgs>(
  12510. args?: Subset<T, IdeaAttachmentCountArgs>,
  12511. ): Prisma.PrismaPromise<
  12512. T extends $Utils.Record<'select', any>
  12513. ? T['select'] extends true
  12514. ? number
  12515. : GetScalarType<T['select'], IdeaAttachmentCountAggregateOutputType>
  12516. : number
  12517. >
  12518. /**
  12519. * Allows you to perform aggregations operations on a IdeaAttachment.
  12520. * Note, that providing `undefined` is treated as the value not being there.
  12521. * Read more here: https://pris.ly/d/null-undefined
  12522. * @param {IdeaAttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  12523. * @example
  12524. * // Ordered by age ascending
  12525. * // Where email contains prisma.io
  12526. * // Limited to the 10 users
  12527. * const aggregations = await prisma.user.aggregate({
  12528. * _avg: {
  12529. * age: true,
  12530. * },
  12531. * where: {
  12532. * email: {
  12533. * contains: "prisma.io",
  12534. * },
  12535. * },
  12536. * orderBy: {
  12537. * age: "asc",
  12538. * },
  12539. * take: 10,
  12540. * })
  12541. **/
  12542. aggregate<T extends IdeaAttachmentAggregateArgs>(args: Subset<T, IdeaAttachmentAggregateArgs>): Prisma.PrismaPromise<GetIdeaAttachmentAggregateType<T>>
  12543. /**
  12544. * Group by IdeaAttachment.
  12545. * Note, that providing `undefined` is treated as the value not being there.
  12546. * Read more here: https://pris.ly/d/null-undefined
  12547. * @param {IdeaAttachmentGroupByArgs} args - Group by arguments.
  12548. * @example
  12549. * // Group by city, order by createdAt, get count
  12550. * const result = await prisma.user.groupBy({
  12551. * by: ['city', 'createdAt'],
  12552. * orderBy: {
  12553. * createdAt: true
  12554. * },
  12555. * _count: {
  12556. * _all: true
  12557. * },
  12558. * })
  12559. *
  12560. **/
  12561. groupBy<
  12562. T extends IdeaAttachmentGroupByArgs,
  12563. HasSelectOrTake extends Or<
  12564. Extends<'skip', Keys<T>>,
  12565. Extends<'take', Keys<T>>
  12566. >,
  12567. OrderByArg extends True extends HasSelectOrTake
  12568. ? { orderBy: IdeaAttachmentGroupByArgs['orderBy'] }
  12569. : { orderBy?: IdeaAttachmentGroupByArgs['orderBy'] },
  12570. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  12571. ByFields extends MaybeTupleToUnion<T['by']>,
  12572. ByValid extends Has<ByFields, OrderFields>,
  12573. HavingFields extends GetHavingFields<T['having']>,
  12574. HavingValid extends Has<ByFields, HavingFields>,
  12575. ByEmpty extends T['by'] extends never[] ? True : False,
  12576. InputErrors extends ByEmpty extends True
  12577. ? `Error: "by" must not be empty.`
  12578. : HavingValid extends False
  12579. ? {
  12580. [P in HavingFields]: P extends ByFields
  12581. ? never
  12582. : P extends string
  12583. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  12584. : [
  12585. Error,
  12586. 'Field ',
  12587. P,
  12588. ` in "having" needs to be provided in "by"`,
  12589. ]
  12590. }[HavingFields]
  12591. : 'take' extends Keys<T>
  12592. ? 'orderBy' extends Keys<T>
  12593. ? ByValid extends True
  12594. ? {}
  12595. : {
  12596. [P in OrderFields]: P extends ByFields
  12597. ? never
  12598. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12599. }[OrderFields]
  12600. : 'Error: If you provide "take", you also need to provide "orderBy"'
  12601. : 'skip' extends Keys<T>
  12602. ? 'orderBy' extends Keys<T>
  12603. ? ByValid extends True
  12604. ? {}
  12605. : {
  12606. [P in OrderFields]: P extends ByFields
  12607. ? never
  12608. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12609. }[OrderFields]
  12610. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  12611. : ByValid extends True
  12612. ? {}
  12613. : {
  12614. [P in OrderFields]: P extends ByFields
  12615. ? never
  12616. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12617. }[OrderFields]
  12618. >(args: SubsetIntersection<T, IdeaAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  12619. /**
  12620. * Fields of the IdeaAttachment model
  12621. */
  12622. readonly fields: IdeaAttachmentFieldRefs;
  12623. }
  12624. /**
  12625. * The delegate class that acts as a "Promise-like" for IdeaAttachment.
  12626. * Why is this prefixed with `Prisma__`?
  12627. * Because we want to prevent naming conflicts as mentioned in
  12628. * https://github.com/prisma/prisma-client-js/issues/707
  12629. */
  12630. export interface Prisma__IdeaAttachmentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  12631. readonly [Symbol.toStringTag]: "PrismaPromise"
  12632. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  12633. /**
  12634. * Attaches callbacks for the resolution and/or rejection of the Promise.
  12635. * @param onfulfilled The callback to execute when the Promise is resolved.
  12636. * @param onrejected The callback to execute when the Promise is rejected.
  12637. * @returns A Promise for the completion of which ever callback is executed.
  12638. */
  12639. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  12640. /**
  12641. * Attaches a callback for only the rejection of the Promise.
  12642. * @param onrejected The callback to execute when the Promise is rejected.
  12643. * @returns A Promise for the completion of the callback.
  12644. */
  12645. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  12646. /**
  12647. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  12648. * resolved value cannot be modified from the callback.
  12649. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  12650. * @returns A Promise for the completion of the callback.
  12651. */
  12652. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  12653. }
  12654. /**
  12655. * Fields of the IdeaAttachment model
  12656. */
  12657. interface IdeaAttachmentFieldRefs {
  12658. readonly id: FieldRef<"IdeaAttachment", 'String'>
  12659. readonly ideaId: FieldRef<"IdeaAttachment", 'String'>
  12660. readonly workspaceId: FieldRef<"IdeaAttachment", 'String'>
  12661. readonly filename: FieldRef<"IdeaAttachment", 'String'>
  12662. readonly contentType: FieldRef<"IdeaAttachment", 'String'>
  12663. readonly size: FieldRef<"IdeaAttachment", 'Int'>
  12664. readonly url: FieldRef<"IdeaAttachment", 'String'>
  12665. readonly blobPath: FieldRef<"IdeaAttachment", 'String'>
  12666. readonly createdAt: FieldRef<"IdeaAttachment", 'DateTime'>
  12667. }
  12668. // Custom InputTypes
  12669. /**
  12670. * IdeaAttachment findUnique
  12671. */
  12672. export type IdeaAttachmentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12673. /**
  12674. * Select specific fields to fetch from the IdeaAttachment
  12675. */
  12676. select?: IdeaAttachmentSelect<ExtArgs> | null
  12677. /**
  12678. * Omit specific fields from the IdeaAttachment
  12679. */
  12680. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12681. /**
  12682. * Choose, which related nodes to fetch as well
  12683. */
  12684. include?: IdeaAttachmentInclude<ExtArgs> | null
  12685. /**
  12686. * Filter, which IdeaAttachment to fetch.
  12687. */
  12688. where: IdeaAttachmentWhereUniqueInput
  12689. }
  12690. /**
  12691. * IdeaAttachment findUniqueOrThrow
  12692. */
  12693. export type IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12694. /**
  12695. * Select specific fields to fetch from the IdeaAttachment
  12696. */
  12697. select?: IdeaAttachmentSelect<ExtArgs> | null
  12698. /**
  12699. * Omit specific fields from the IdeaAttachment
  12700. */
  12701. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12702. /**
  12703. * Choose, which related nodes to fetch as well
  12704. */
  12705. include?: IdeaAttachmentInclude<ExtArgs> | null
  12706. /**
  12707. * Filter, which IdeaAttachment to fetch.
  12708. */
  12709. where: IdeaAttachmentWhereUniqueInput
  12710. }
  12711. /**
  12712. * IdeaAttachment findFirst
  12713. */
  12714. export type IdeaAttachmentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12715. /**
  12716. * Select specific fields to fetch from the IdeaAttachment
  12717. */
  12718. select?: IdeaAttachmentSelect<ExtArgs> | null
  12719. /**
  12720. * Omit specific fields from the IdeaAttachment
  12721. */
  12722. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12723. /**
  12724. * Choose, which related nodes to fetch as well
  12725. */
  12726. include?: IdeaAttachmentInclude<ExtArgs> | null
  12727. /**
  12728. * Filter, which IdeaAttachment to fetch.
  12729. */
  12730. where?: IdeaAttachmentWhereInput
  12731. /**
  12732. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12733. *
  12734. * Determine the order of IdeaAttachments to fetch.
  12735. */
  12736. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12737. /**
  12738. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12739. *
  12740. * Sets the position for searching for IdeaAttachments.
  12741. */
  12742. cursor?: IdeaAttachmentWhereUniqueInput
  12743. /**
  12744. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12745. *
  12746. * Take `±n` IdeaAttachments from the position of the cursor.
  12747. */
  12748. take?: number
  12749. /**
  12750. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12751. *
  12752. * Skip the first `n` IdeaAttachments.
  12753. */
  12754. skip?: number
  12755. /**
  12756. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12757. *
  12758. * Filter by unique combinations of IdeaAttachments.
  12759. */
  12760. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12761. }
  12762. /**
  12763. * IdeaAttachment findFirstOrThrow
  12764. */
  12765. export type IdeaAttachmentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12766. /**
  12767. * Select specific fields to fetch from the IdeaAttachment
  12768. */
  12769. select?: IdeaAttachmentSelect<ExtArgs> | null
  12770. /**
  12771. * Omit specific fields from the IdeaAttachment
  12772. */
  12773. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12774. /**
  12775. * Choose, which related nodes to fetch as well
  12776. */
  12777. include?: IdeaAttachmentInclude<ExtArgs> | null
  12778. /**
  12779. * Filter, which IdeaAttachment to fetch.
  12780. */
  12781. where?: IdeaAttachmentWhereInput
  12782. /**
  12783. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12784. *
  12785. * Determine the order of IdeaAttachments to fetch.
  12786. */
  12787. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12788. /**
  12789. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12790. *
  12791. * Sets the position for searching for IdeaAttachments.
  12792. */
  12793. cursor?: IdeaAttachmentWhereUniqueInput
  12794. /**
  12795. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12796. *
  12797. * Take `±n` IdeaAttachments from the position of the cursor.
  12798. */
  12799. take?: number
  12800. /**
  12801. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12802. *
  12803. * Skip the first `n` IdeaAttachments.
  12804. */
  12805. skip?: number
  12806. /**
  12807. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12808. *
  12809. * Filter by unique combinations of IdeaAttachments.
  12810. */
  12811. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12812. }
  12813. /**
  12814. * IdeaAttachment findMany
  12815. */
  12816. export type IdeaAttachmentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12817. /**
  12818. * Select specific fields to fetch from the IdeaAttachment
  12819. */
  12820. select?: IdeaAttachmentSelect<ExtArgs> | null
  12821. /**
  12822. * Omit specific fields from the IdeaAttachment
  12823. */
  12824. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12825. /**
  12826. * Choose, which related nodes to fetch as well
  12827. */
  12828. include?: IdeaAttachmentInclude<ExtArgs> | null
  12829. /**
  12830. * Filter, which IdeaAttachments to fetch.
  12831. */
  12832. where?: IdeaAttachmentWhereInput
  12833. /**
  12834. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12835. *
  12836. * Determine the order of IdeaAttachments to fetch.
  12837. */
  12838. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12839. /**
  12840. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12841. *
  12842. * Sets the position for listing IdeaAttachments.
  12843. */
  12844. cursor?: IdeaAttachmentWhereUniqueInput
  12845. /**
  12846. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12847. *
  12848. * Take `±n` IdeaAttachments from the position of the cursor.
  12849. */
  12850. take?: number
  12851. /**
  12852. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12853. *
  12854. * Skip the first `n` IdeaAttachments.
  12855. */
  12856. skip?: number
  12857. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12858. }
  12859. /**
  12860. * IdeaAttachment create
  12861. */
  12862. export type IdeaAttachmentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12863. /**
  12864. * Select specific fields to fetch from the IdeaAttachment
  12865. */
  12866. select?: IdeaAttachmentSelect<ExtArgs> | null
  12867. /**
  12868. * Omit specific fields from the IdeaAttachment
  12869. */
  12870. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12871. /**
  12872. * Choose, which related nodes to fetch as well
  12873. */
  12874. include?: IdeaAttachmentInclude<ExtArgs> | null
  12875. /**
  12876. * The data needed to create a IdeaAttachment.
  12877. */
  12878. data: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  12879. }
  12880. /**
  12881. * IdeaAttachment createMany
  12882. */
  12883. export type IdeaAttachmentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12884. /**
  12885. * The data used to create many IdeaAttachments.
  12886. */
  12887. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  12888. skipDuplicates?: boolean
  12889. }
  12890. /**
  12891. * IdeaAttachment createManyAndReturn
  12892. */
  12893. export type IdeaAttachmentCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12894. /**
  12895. * Select specific fields to fetch from the IdeaAttachment
  12896. */
  12897. select?: IdeaAttachmentSelectCreateManyAndReturn<ExtArgs> | null
  12898. /**
  12899. * Omit specific fields from the IdeaAttachment
  12900. */
  12901. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12902. /**
  12903. * The data used to create many IdeaAttachments.
  12904. */
  12905. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  12906. skipDuplicates?: boolean
  12907. /**
  12908. * Choose, which related nodes to fetch as well
  12909. */
  12910. include?: IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs> | null
  12911. }
  12912. /**
  12913. * IdeaAttachment update
  12914. */
  12915. export type IdeaAttachmentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12916. /**
  12917. * Select specific fields to fetch from the IdeaAttachment
  12918. */
  12919. select?: IdeaAttachmentSelect<ExtArgs> | null
  12920. /**
  12921. * Omit specific fields from the IdeaAttachment
  12922. */
  12923. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12924. /**
  12925. * Choose, which related nodes to fetch as well
  12926. */
  12927. include?: IdeaAttachmentInclude<ExtArgs> | null
  12928. /**
  12929. * The data needed to update a IdeaAttachment.
  12930. */
  12931. data: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  12932. /**
  12933. * Choose, which IdeaAttachment to update.
  12934. */
  12935. where: IdeaAttachmentWhereUniqueInput
  12936. }
  12937. /**
  12938. * IdeaAttachment updateMany
  12939. */
  12940. export type IdeaAttachmentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12941. /**
  12942. * The data used to update IdeaAttachments.
  12943. */
  12944. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  12945. /**
  12946. * Filter which IdeaAttachments to update
  12947. */
  12948. where?: IdeaAttachmentWhereInput
  12949. /**
  12950. * Limit how many IdeaAttachments to update.
  12951. */
  12952. limit?: number
  12953. }
  12954. /**
  12955. * IdeaAttachment updateManyAndReturn
  12956. */
  12957. export type IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12958. /**
  12959. * Select specific fields to fetch from the IdeaAttachment
  12960. */
  12961. select?: IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
  12962. /**
  12963. * Omit specific fields from the IdeaAttachment
  12964. */
  12965. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12966. /**
  12967. * The data used to update IdeaAttachments.
  12968. */
  12969. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  12970. /**
  12971. * Filter which IdeaAttachments to update
  12972. */
  12973. where?: IdeaAttachmentWhereInput
  12974. /**
  12975. * Limit how many IdeaAttachments to update.
  12976. */
  12977. limit?: number
  12978. /**
  12979. * Choose, which related nodes to fetch as well
  12980. */
  12981. include?: IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
  12982. }
  12983. /**
  12984. * IdeaAttachment upsert
  12985. */
  12986. export type IdeaAttachmentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12987. /**
  12988. * Select specific fields to fetch from the IdeaAttachment
  12989. */
  12990. select?: IdeaAttachmentSelect<ExtArgs> | null
  12991. /**
  12992. * Omit specific fields from the IdeaAttachment
  12993. */
  12994. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12995. /**
  12996. * Choose, which related nodes to fetch as well
  12997. */
  12998. include?: IdeaAttachmentInclude<ExtArgs> | null
  12999. /**
  13000. * The filter to search for the IdeaAttachment to update in case it exists.
  13001. */
  13002. where: IdeaAttachmentWhereUniqueInput
  13003. /**
  13004. * In case the IdeaAttachment found by the `where` argument doesn't exist, create a new IdeaAttachment with this data.
  13005. */
  13006. create: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  13007. /**
  13008. * In case the IdeaAttachment was found with the provided `where` argument, update it with this data.
  13009. */
  13010. update: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  13011. }
  13012. /**
  13013. * IdeaAttachment delete
  13014. */
  13015. export type IdeaAttachmentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13016. /**
  13017. * Select specific fields to fetch from the IdeaAttachment
  13018. */
  13019. select?: IdeaAttachmentSelect<ExtArgs> | null
  13020. /**
  13021. * Omit specific fields from the IdeaAttachment
  13022. */
  13023. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13024. /**
  13025. * Choose, which related nodes to fetch as well
  13026. */
  13027. include?: IdeaAttachmentInclude<ExtArgs> | null
  13028. /**
  13029. * Filter which IdeaAttachment to delete.
  13030. */
  13031. where: IdeaAttachmentWhereUniqueInput
  13032. }
  13033. /**
  13034. * IdeaAttachment deleteMany
  13035. */
  13036. export type IdeaAttachmentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13037. /**
  13038. * Filter which IdeaAttachments to delete
  13039. */
  13040. where?: IdeaAttachmentWhereInput
  13041. /**
  13042. * Limit how many IdeaAttachments to delete.
  13043. */
  13044. limit?: number
  13045. }
  13046. /**
  13047. * IdeaAttachment without action
  13048. */
  13049. export type IdeaAttachmentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13050. /**
  13051. * Select specific fields to fetch from the IdeaAttachment
  13052. */
  13053. select?: IdeaAttachmentSelect<ExtArgs> | null
  13054. /**
  13055. * Omit specific fields from the IdeaAttachment
  13056. */
  13057. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13058. /**
  13059. * Choose, which related nodes to fetch as well
  13060. */
  13061. include?: IdeaAttachmentInclude<ExtArgs> | null
  13062. }
  13063. /**
  13064. * Model QualificationQuestion
  13065. */
  13066. export type AggregateQualificationQuestion = {
  13067. _count: QualificationQuestionCountAggregateOutputType | null
  13068. _min: QualificationQuestionMinAggregateOutputType | null
  13069. _max: QualificationQuestionMaxAggregateOutputType | null
  13070. }
  13071. export type QualificationQuestionMinAggregateOutputType = {
  13072. id: string | null
  13073. ideaId: string | null
  13074. workspaceId: string | null
  13075. questionText: string | null
  13076. responseToken: string | null
  13077. askedAt: Date | null
  13078. responseText: string | null
  13079. answeredAt: Date | null
  13080. }
  13081. export type QualificationQuestionMaxAggregateOutputType = {
  13082. id: string | null
  13083. ideaId: string | null
  13084. workspaceId: string | null
  13085. questionText: string | null
  13086. responseToken: string | null
  13087. askedAt: Date | null
  13088. responseText: string | null
  13089. answeredAt: Date | null
  13090. }
  13091. export type QualificationQuestionCountAggregateOutputType = {
  13092. id: number
  13093. ideaId: number
  13094. workspaceId: number
  13095. questionText: number
  13096. responseToken: number
  13097. askedAt: number
  13098. responseText: number
  13099. answeredAt: number
  13100. _all: number
  13101. }
  13102. export type QualificationQuestionMinAggregateInputType = {
  13103. id?: true
  13104. ideaId?: true
  13105. workspaceId?: true
  13106. questionText?: true
  13107. responseToken?: true
  13108. askedAt?: true
  13109. responseText?: true
  13110. answeredAt?: true
  13111. }
  13112. export type QualificationQuestionMaxAggregateInputType = {
  13113. id?: true
  13114. ideaId?: true
  13115. workspaceId?: true
  13116. questionText?: true
  13117. responseToken?: true
  13118. askedAt?: true
  13119. responseText?: true
  13120. answeredAt?: true
  13121. }
  13122. export type QualificationQuestionCountAggregateInputType = {
  13123. id?: true
  13124. ideaId?: true
  13125. workspaceId?: true
  13126. questionText?: true
  13127. responseToken?: true
  13128. askedAt?: true
  13129. responseText?: true
  13130. answeredAt?: true
  13131. _all?: true
  13132. }
  13133. export type QualificationQuestionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13134. /**
  13135. * Filter which QualificationQuestion to aggregate.
  13136. */
  13137. where?: QualificationQuestionWhereInput
  13138. /**
  13139. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13140. *
  13141. * Determine the order of QualificationQuestions to fetch.
  13142. */
  13143. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13144. /**
  13145. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13146. *
  13147. * Sets the start position
  13148. */
  13149. cursor?: QualificationQuestionWhereUniqueInput
  13150. /**
  13151. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13152. *
  13153. * Take `±n` QualificationQuestions from the position of the cursor.
  13154. */
  13155. take?: number
  13156. /**
  13157. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13158. *
  13159. * Skip the first `n` QualificationQuestions.
  13160. */
  13161. skip?: number
  13162. /**
  13163. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13164. *
  13165. * Count returned QualificationQuestions
  13166. **/
  13167. _count?: true | QualificationQuestionCountAggregateInputType
  13168. /**
  13169. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13170. *
  13171. * Select which fields to find the minimum value
  13172. **/
  13173. _min?: QualificationQuestionMinAggregateInputType
  13174. /**
  13175. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13176. *
  13177. * Select which fields to find the maximum value
  13178. **/
  13179. _max?: QualificationQuestionMaxAggregateInputType
  13180. }
  13181. export type GetQualificationQuestionAggregateType<T extends QualificationQuestionAggregateArgs> = {
  13182. [P in keyof T & keyof AggregateQualificationQuestion]: P extends '_count' | 'count'
  13183. ? T[P] extends true
  13184. ? number
  13185. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13186. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13187. }
  13188. export type QualificationQuestionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13189. where?: QualificationQuestionWhereInput
  13190. orderBy?: QualificationQuestionOrderByWithAggregationInput | QualificationQuestionOrderByWithAggregationInput[]
  13191. by: QualificationQuestionScalarFieldEnum[] | QualificationQuestionScalarFieldEnum
  13192. having?: QualificationQuestionScalarWhereWithAggregatesInput
  13193. take?: number
  13194. skip?: number
  13195. _count?: QualificationQuestionCountAggregateInputType | true
  13196. _min?: QualificationQuestionMinAggregateInputType
  13197. _max?: QualificationQuestionMaxAggregateInputType
  13198. }
  13199. export type QualificationQuestionGroupByOutputType = {
  13200. id: string
  13201. ideaId: string
  13202. workspaceId: string
  13203. questionText: string
  13204. responseToken: string
  13205. askedAt: Date
  13206. responseText: string | null
  13207. answeredAt: Date | null
  13208. _count: QualificationQuestionCountAggregateOutputType | null
  13209. _min: QualificationQuestionMinAggregateOutputType | null
  13210. _max: QualificationQuestionMaxAggregateOutputType | null
  13211. }
  13212. type GetQualificationQuestionGroupByPayload<T extends QualificationQuestionGroupByArgs> = Prisma.PrismaPromise<
  13213. Array<
  13214. PickEnumerable<QualificationQuestionGroupByOutputType, T['by']> &
  13215. {
  13216. [P in ((keyof T) & (keyof QualificationQuestionGroupByOutputType))]: P extends '_count'
  13217. ? T[P] extends boolean
  13218. ? number
  13219. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13220. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13221. }
  13222. >
  13223. >
  13224. export type QualificationQuestionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13225. id?: boolean
  13226. ideaId?: boolean
  13227. workspaceId?: boolean
  13228. questionText?: boolean
  13229. responseToken?: boolean
  13230. askedAt?: boolean
  13231. responseText?: boolean
  13232. answeredAt?: boolean
  13233. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13234. }, ExtArgs["result"]["qualificationQuestion"]>
  13235. export type QualificationQuestionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13236. id?: boolean
  13237. ideaId?: boolean
  13238. workspaceId?: boolean
  13239. questionText?: boolean
  13240. responseToken?: boolean
  13241. askedAt?: boolean
  13242. responseText?: boolean
  13243. answeredAt?: boolean
  13244. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13245. }, ExtArgs["result"]["qualificationQuestion"]>
  13246. export type QualificationQuestionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13247. id?: boolean
  13248. ideaId?: boolean
  13249. workspaceId?: boolean
  13250. questionText?: boolean
  13251. responseToken?: boolean
  13252. askedAt?: boolean
  13253. responseText?: boolean
  13254. answeredAt?: boolean
  13255. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13256. }, ExtArgs["result"]["qualificationQuestion"]>
  13257. export type QualificationQuestionSelectScalar = {
  13258. id?: boolean
  13259. ideaId?: boolean
  13260. workspaceId?: boolean
  13261. questionText?: boolean
  13262. responseToken?: boolean
  13263. askedAt?: boolean
  13264. responseText?: boolean
  13265. answeredAt?: boolean
  13266. }
  13267. export type QualificationQuestionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "questionText" | "responseToken" | "askedAt" | "responseText" | "answeredAt", ExtArgs["result"]["qualificationQuestion"]>
  13268. export type QualificationQuestionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13269. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13270. }
  13271. export type QualificationQuestionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13272. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13273. }
  13274. export type QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13275. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13276. }
  13277. export type $QualificationQuestionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13278. name: "QualificationQuestion"
  13279. objects: {
  13280. idea: Prisma.$IdeaPayload<ExtArgs>
  13281. }
  13282. scalars: $Extensions.GetPayloadResult<{
  13283. id: string
  13284. ideaId: string
  13285. workspaceId: string
  13286. questionText: string
  13287. responseToken: string
  13288. askedAt: Date
  13289. responseText: string | null
  13290. answeredAt: Date | null
  13291. }, ExtArgs["result"]["qualificationQuestion"]>
  13292. composites: {}
  13293. }
  13294. type QualificationQuestionGetPayload<S extends boolean | null | undefined | QualificationQuestionDefaultArgs> = $Result.GetResult<Prisma.$QualificationQuestionPayload, S>
  13295. type QualificationQuestionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  13296. Omit<QualificationQuestionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  13297. select?: QualificationQuestionCountAggregateInputType | true
  13298. }
  13299. export interface QualificationQuestionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  13300. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['QualificationQuestion'], meta: { name: 'QualificationQuestion' } }
  13301. /**
  13302. * Find zero or one QualificationQuestion that matches the filter.
  13303. * @param {QualificationQuestionFindUniqueArgs} args - Arguments to find a QualificationQuestion
  13304. * @example
  13305. * // Get one QualificationQuestion
  13306. * const qualificationQuestion = await prisma.qualificationQuestion.findUnique({
  13307. * where: {
  13308. * // ... provide filter here
  13309. * }
  13310. * })
  13311. */
  13312. findUnique<T extends QualificationQuestionFindUniqueArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13313. /**
  13314. * Find one QualificationQuestion that matches the filter or throw an error with `error.code='P2025'`
  13315. * if no matches were found.
  13316. * @param {QualificationQuestionFindUniqueOrThrowArgs} args - Arguments to find a QualificationQuestion
  13317. * @example
  13318. * // Get one QualificationQuestion
  13319. * const qualificationQuestion = await prisma.qualificationQuestion.findUniqueOrThrow({
  13320. * where: {
  13321. * // ... provide filter here
  13322. * }
  13323. * })
  13324. */
  13325. findUniqueOrThrow<T extends QualificationQuestionFindUniqueOrThrowArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13326. /**
  13327. * Find the first QualificationQuestion that matches the filter.
  13328. * Note, that providing `undefined` is treated as the value not being there.
  13329. * Read more here: https://pris.ly/d/null-undefined
  13330. * @param {QualificationQuestionFindFirstArgs} args - Arguments to find a QualificationQuestion
  13331. * @example
  13332. * // Get one QualificationQuestion
  13333. * const qualificationQuestion = await prisma.qualificationQuestion.findFirst({
  13334. * where: {
  13335. * // ... provide filter here
  13336. * }
  13337. * })
  13338. */
  13339. findFirst<T extends QualificationQuestionFindFirstArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13340. /**
  13341. * Find the first QualificationQuestion that matches the filter or
  13342. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  13343. * Note, that providing `undefined` is treated as the value not being there.
  13344. * Read more here: https://pris.ly/d/null-undefined
  13345. * @param {QualificationQuestionFindFirstOrThrowArgs} args - Arguments to find a QualificationQuestion
  13346. * @example
  13347. * // Get one QualificationQuestion
  13348. * const qualificationQuestion = await prisma.qualificationQuestion.findFirstOrThrow({
  13349. * where: {
  13350. * // ... provide filter here
  13351. * }
  13352. * })
  13353. */
  13354. findFirstOrThrow<T extends QualificationQuestionFindFirstOrThrowArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13355. /**
  13356. * Find zero or more QualificationQuestions that matches the filter.
  13357. * Note, that providing `undefined` is treated as the value not being there.
  13358. * Read more here: https://pris.ly/d/null-undefined
  13359. * @param {QualificationQuestionFindManyArgs} args - Arguments to filter and select certain fields only.
  13360. * @example
  13361. * // Get all QualificationQuestions
  13362. * const qualificationQuestions = await prisma.qualificationQuestion.findMany()
  13363. *
  13364. * // Get first 10 QualificationQuestions
  13365. * const qualificationQuestions = await prisma.qualificationQuestion.findMany({ take: 10 })
  13366. *
  13367. * // Only select the `id`
  13368. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.findMany({ select: { id: true } })
  13369. *
  13370. */
  13371. findMany<T extends QualificationQuestionFindManyArgs>(args?: SelectSubset<T, QualificationQuestionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  13372. /**
  13373. * Create a QualificationQuestion.
  13374. * @param {QualificationQuestionCreateArgs} args - Arguments to create a QualificationQuestion.
  13375. * @example
  13376. * // Create one QualificationQuestion
  13377. * const QualificationQuestion = await prisma.qualificationQuestion.create({
  13378. * data: {
  13379. * // ... data to create a QualificationQuestion
  13380. * }
  13381. * })
  13382. *
  13383. */
  13384. create<T extends QualificationQuestionCreateArgs>(args: SelectSubset<T, QualificationQuestionCreateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13385. /**
  13386. * Create many QualificationQuestions.
  13387. * @param {QualificationQuestionCreateManyArgs} args - Arguments to create many QualificationQuestions.
  13388. * @example
  13389. * // Create many QualificationQuestions
  13390. * const qualificationQuestion = await prisma.qualificationQuestion.createMany({
  13391. * data: [
  13392. * // ... provide data here
  13393. * ]
  13394. * })
  13395. *
  13396. */
  13397. createMany<T extends QualificationQuestionCreateManyArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13398. /**
  13399. * Create many QualificationQuestions and returns the data saved in the database.
  13400. * @param {QualificationQuestionCreateManyAndReturnArgs} args - Arguments to create many QualificationQuestions.
  13401. * @example
  13402. * // Create many QualificationQuestions
  13403. * const qualificationQuestion = await prisma.qualificationQuestion.createManyAndReturn({
  13404. * data: [
  13405. * // ... provide data here
  13406. * ]
  13407. * })
  13408. *
  13409. * // Create many QualificationQuestions and only return the `id`
  13410. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.createManyAndReturn({
  13411. * select: { id: true },
  13412. * data: [
  13413. * // ... provide data here
  13414. * ]
  13415. * })
  13416. * Note, that providing `undefined` is treated as the value not being there.
  13417. * Read more here: https://pris.ly/d/null-undefined
  13418. *
  13419. */
  13420. createManyAndReturn<T extends QualificationQuestionCreateManyAndReturnArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  13421. /**
  13422. * Delete a QualificationQuestion.
  13423. * @param {QualificationQuestionDeleteArgs} args - Arguments to delete one QualificationQuestion.
  13424. * @example
  13425. * // Delete one QualificationQuestion
  13426. * const QualificationQuestion = await prisma.qualificationQuestion.delete({
  13427. * where: {
  13428. * // ... filter to delete one QualificationQuestion
  13429. * }
  13430. * })
  13431. *
  13432. */
  13433. delete<T extends QualificationQuestionDeleteArgs>(args: SelectSubset<T, QualificationQuestionDeleteArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13434. /**
  13435. * Update one QualificationQuestion.
  13436. * @param {QualificationQuestionUpdateArgs} args - Arguments to update one QualificationQuestion.
  13437. * @example
  13438. * // Update one QualificationQuestion
  13439. * const qualificationQuestion = await prisma.qualificationQuestion.update({
  13440. * where: {
  13441. * // ... provide filter here
  13442. * },
  13443. * data: {
  13444. * // ... provide data here
  13445. * }
  13446. * })
  13447. *
  13448. */
  13449. update<T extends QualificationQuestionUpdateArgs>(args: SelectSubset<T, QualificationQuestionUpdateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13450. /**
  13451. * Delete zero or more QualificationQuestions.
  13452. * @param {QualificationQuestionDeleteManyArgs} args - Arguments to filter QualificationQuestions to delete.
  13453. * @example
  13454. * // Delete a few QualificationQuestions
  13455. * const { count } = await prisma.qualificationQuestion.deleteMany({
  13456. * where: {
  13457. * // ... provide filter here
  13458. * }
  13459. * })
  13460. *
  13461. */
  13462. deleteMany<T extends QualificationQuestionDeleteManyArgs>(args?: SelectSubset<T, QualificationQuestionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13463. /**
  13464. * Update zero or more QualificationQuestions.
  13465. * Note, that providing `undefined` is treated as the value not being there.
  13466. * Read more here: https://pris.ly/d/null-undefined
  13467. * @param {QualificationQuestionUpdateManyArgs} args - Arguments to update one or more rows.
  13468. * @example
  13469. * // Update many QualificationQuestions
  13470. * const qualificationQuestion = await prisma.qualificationQuestion.updateMany({
  13471. * where: {
  13472. * // ... provide filter here
  13473. * },
  13474. * data: {
  13475. * // ... provide data here
  13476. * }
  13477. * })
  13478. *
  13479. */
  13480. updateMany<T extends QualificationQuestionUpdateManyArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13481. /**
  13482. * Update zero or more QualificationQuestions and returns the data updated in the database.
  13483. * @param {QualificationQuestionUpdateManyAndReturnArgs} args - Arguments to update many QualificationQuestions.
  13484. * @example
  13485. * // Update many QualificationQuestions
  13486. * const qualificationQuestion = await prisma.qualificationQuestion.updateManyAndReturn({
  13487. * where: {
  13488. * // ... provide filter here
  13489. * },
  13490. * data: [
  13491. * // ... provide data here
  13492. * ]
  13493. * })
  13494. *
  13495. * // Update zero or more QualificationQuestions and only return the `id`
  13496. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.updateManyAndReturn({
  13497. * select: { id: true },
  13498. * where: {
  13499. * // ... provide filter here
  13500. * },
  13501. * data: [
  13502. * // ... provide data here
  13503. * ]
  13504. * })
  13505. * Note, that providing `undefined` is treated as the value not being there.
  13506. * Read more here: https://pris.ly/d/null-undefined
  13507. *
  13508. */
  13509. updateManyAndReturn<T extends QualificationQuestionUpdateManyAndReturnArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  13510. /**
  13511. * Create or update one QualificationQuestion.
  13512. * @param {QualificationQuestionUpsertArgs} args - Arguments to update or create a QualificationQuestion.
  13513. * @example
  13514. * // Update or create a QualificationQuestion
  13515. * const qualificationQuestion = await prisma.qualificationQuestion.upsert({
  13516. * create: {
  13517. * // ... data to create a QualificationQuestion
  13518. * },
  13519. * update: {
  13520. * // ... in case it already exists, update
  13521. * },
  13522. * where: {
  13523. * // ... the filter for the QualificationQuestion we want to update
  13524. * }
  13525. * })
  13526. */
  13527. upsert<T extends QualificationQuestionUpsertArgs>(args: SelectSubset<T, QualificationQuestionUpsertArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13528. /**
  13529. * Count the number of QualificationQuestions.
  13530. * Note, that providing `undefined` is treated as the value not being there.
  13531. * Read more here: https://pris.ly/d/null-undefined
  13532. * @param {QualificationQuestionCountArgs} args - Arguments to filter QualificationQuestions to count.
  13533. * @example
  13534. * // Count the number of QualificationQuestions
  13535. * const count = await prisma.qualificationQuestion.count({
  13536. * where: {
  13537. * // ... the filter for the QualificationQuestions we want to count
  13538. * }
  13539. * })
  13540. **/
  13541. count<T extends QualificationQuestionCountArgs>(
  13542. args?: Subset<T, QualificationQuestionCountArgs>,
  13543. ): Prisma.PrismaPromise<
  13544. T extends $Utils.Record<'select', any>
  13545. ? T['select'] extends true
  13546. ? number
  13547. : GetScalarType<T['select'], QualificationQuestionCountAggregateOutputType>
  13548. : number
  13549. >
  13550. /**
  13551. * Allows you to perform aggregations operations on a QualificationQuestion.
  13552. * Note, that providing `undefined` is treated as the value not being there.
  13553. * Read more here: https://pris.ly/d/null-undefined
  13554. * @param {QualificationQuestionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  13555. * @example
  13556. * // Ordered by age ascending
  13557. * // Where email contains prisma.io
  13558. * // Limited to the 10 users
  13559. * const aggregations = await prisma.user.aggregate({
  13560. * _avg: {
  13561. * age: true,
  13562. * },
  13563. * where: {
  13564. * email: {
  13565. * contains: "prisma.io",
  13566. * },
  13567. * },
  13568. * orderBy: {
  13569. * age: "asc",
  13570. * },
  13571. * take: 10,
  13572. * })
  13573. **/
  13574. aggregate<T extends QualificationQuestionAggregateArgs>(args: Subset<T, QualificationQuestionAggregateArgs>): Prisma.PrismaPromise<GetQualificationQuestionAggregateType<T>>
  13575. /**
  13576. * Group by QualificationQuestion.
  13577. * Note, that providing `undefined` is treated as the value not being there.
  13578. * Read more here: https://pris.ly/d/null-undefined
  13579. * @param {QualificationQuestionGroupByArgs} args - Group by arguments.
  13580. * @example
  13581. * // Group by city, order by createdAt, get count
  13582. * const result = await prisma.user.groupBy({
  13583. * by: ['city', 'createdAt'],
  13584. * orderBy: {
  13585. * createdAt: true
  13586. * },
  13587. * _count: {
  13588. * _all: true
  13589. * },
  13590. * })
  13591. *
  13592. **/
  13593. groupBy<
  13594. T extends QualificationQuestionGroupByArgs,
  13595. HasSelectOrTake extends Or<
  13596. Extends<'skip', Keys<T>>,
  13597. Extends<'take', Keys<T>>
  13598. >,
  13599. OrderByArg extends True extends HasSelectOrTake
  13600. ? { orderBy: QualificationQuestionGroupByArgs['orderBy'] }
  13601. : { orderBy?: QualificationQuestionGroupByArgs['orderBy'] },
  13602. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  13603. ByFields extends MaybeTupleToUnion<T['by']>,
  13604. ByValid extends Has<ByFields, OrderFields>,
  13605. HavingFields extends GetHavingFields<T['having']>,
  13606. HavingValid extends Has<ByFields, HavingFields>,
  13607. ByEmpty extends T['by'] extends never[] ? True : False,
  13608. InputErrors extends ByEmpty extends True
  13609. ? `Error: "by" must not be empty.`
  13610. : HavingValid extends False
  13611. ? {
  13612. [P in HavingFields]: P extends ByFields
  13613. ? never
  13614. : P extends string
  13615. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  13616. : [
  13617. Error,
  13618. 'Field ',
  13619. P,
  13620. ` in "having" needs to be provided in "by"`,
  13621. ]
  13622. }[HavingFields]
  13623. : 'take' extends Keys<T>
  13624. ? 'orderBy' extends Keys<T>
  13625. ? ByValid extends True
  13626. ? {}
  13627. : {
  13628. [P in OrderFields]: P extends ByFields
  13629. ? never
  13630. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13631. }[OrderFields]
  13632. : 'Error: If you provide "take", you also need to provide "orderBy"'
  13633. : 'skip' extends Keys<T>
  13634. ? 'orderBy' extends Keys<T>
  13635. ? ByValid extends True
  13636. ? {}
  13637. : {
  13638. [P in OrderFields]: P extends ByFields
  13639. ? never
  13640. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13641. }[OrderFields]
  13642. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  13643. : ByValid extends True
  13644. ? {}
  13645. : {
  13646. [P in OrderFields]: P extends ByFields
  13647. ? never
  13648. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13649. }[OrderFields]
  13650. >(args: SubsetIntersection<T, QualificationQuestionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQualificationQuestionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  13651. /**
  13652. * Fields of the QualificationQuestion model
  13653. */
  13654. readonly fields: QualificationQuestionFieldRefs;
  13655. }
  13656. /**
  13657. * The delegate class that acts as a "Promise-like" for QualificationQuestion.
  13658. * Why is this prefixed with `Prisma__`?
  13659. * Because we want to prevent naming conflicts as mentioned in
  13660. * https://github.com/prisma/prisma-client-js/issues/707
  13661. */
  13662. export interface Prisma__QualificationQuestionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  13663. readonly [Symbol.toStringTag]: "PrismaPromise"
  13664. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  13665. /**
  13666. * Attaches callbacks for the resolution and/or rejection of the Promise.
  13667. * @param onfulfilled The callback to execute when the Promise is resolved.
  13668. * @param onrejected The callback to execute when the Promise is rejected.
  13669. * @returns A Promise for the completion of which ever callback is executed.
  13670. */
  13671. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  13672. /**
  13673. * Attaches a callback for only the rejection of the Promise.
  13674. * @param onrejected The callback to execute when the Promise is rejected.
  13675. * @returns A Promise for the completion of the callback.
  13676. */
  13677. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  13678. /**
  13679. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  13680. * resolved value cannot be modified from the callback.
  13681. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  13682. * @returns A Promise for the completion of the callback.
  13683. */
  13684. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  13685. }
  13686. /**
  13687. * Fields of the QualificationQuestion model
  13688. */
  13689. interface QualificationQuestionFieldRefs {
  13690. readonly id: FieldRef<"QualificationQuestion", 'String'>
  13691. readonly ideaId: FieldRef<"QualificationQuestion", 'String'>
  13692. readonly workspaceId: FieldRef<"QualificationQuestion", 'String'>
  13693. readonly questionText: FieldRef<"QualificationQuestion", 'String'>
  13694. readonly responseToken: FieldRef<"QualificationQuestion", 'String'>
  13695. readonly askedAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13696. readonly responseText: FieldRef<"QualificationQuestion", 'String'>
  13697. readonly answeredAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13698. }
  13699. // Custom InputTypes
  13700. /**
  13701. * QualificationQuestion findUnique
  13702. */
  13703. export type QualificationQuestionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13704. /**
  13705. * Select specific fields to fetch from the QualificationQuestion
  13706. */
  13707. select?: QualificationQuestionSelect<ExtArgs> | null
  13708. /**
  13709. * Omit specific fields from the QualificationQuestion
  13710. */
  13711. omit?: QualificationQuestionOmit<ExtArgs> | null
  13712. /**
  13713. * Choose, which related nodes to fetch as well
  13714. */
  13715. include?: QualificationQuestionInclude<ExtArgs> | null
  13716. /**
  13717. * Filter, which QualificationQuestion to fetch.
  13718. */
  13719. where: QualificationQuestionWhereUniqueInput
  13720. }
  13721. /**
  13722. * QualificationQuestion findUniqueOrThrow
  13723. */
  13724. export type QualificationQuestionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13725. /**
  13726. * Select specific fields to fetch from the QualificationQuestion
  13727. */
  13728. select?: QualificationQuestionSelect<ExtArgs> | null
  13729. /**
  13730. * Omit specific fields from the QualificationQuestion
  13731. */
  13732. omit?: QualificationQuestionOmit<ExtArgs> | null
  13733. /**
  13734. * Choose, which related nodes to fetch as well
  13735. */
  13736. include?: QualificationQuestionInclude<ExtArgs> | null
  13737. /**
  13738. * Filter, which QualificationQuestion to fetch.
  13739. */
  13740. where: QualificationQuestionWhereUniqueInput
  13741. }
  13742. /**
  13743. * QualificationQuestion findFirst
  13744. */
  13745. export type QualificationQuestionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13746. /**
  13747. * Select specific fields to fetch from the QualificationQuestion
  13748. */
  13749. select?: QualificationQuestionSelect<ExtArgs> | null
  13750. /**
  13751. * Omit specific fields from the QualificationQuestion
  13752. */
  13753. omit?: QualificationQuestionOmit<ExtArgs> | null
  13754. /**
  13755. * Choose, which related nodes to fetch as well
  13756. */
  13757. include?: QualificationQuestionInclude<ExtArgs> | null
  13758. /**
  13759. * Filter, which QualificationQuestion to fetch.
  13760. */
  13761. where?: QualificationQuestionWhereInput
  13762. /**
  13763. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13764. *
  13765. * Determine the order of QualificationQuestions to fetch.
  13766. */
  13767. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13768. /**
  13769. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13770. *
  13771. * Sets the position for searching for QualificationQuestions.
  13772. */
  13773. cursor?: QualificationQuestionWhereUniqueInput
  13774. /**
  13775. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13776. *
  13777. * Take `±n` QualificationQuestions from the position of the cursor.
  13778. */
  13779. take?: number
  13780. /**
  13781. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13782. *
  13783. * Skip the first `n` QualificationQuestions.
  13784. */
  13785. skip?: number
  13786. /**
  13787. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  13788. *
  13789. * Filter by unique combinations of QualificationQuestions.
  13790. */
  13791. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13792. }
  13793. /**
  13794. * QualificationQuestion findFirstOrThrow
  13795. */
  13796. export type QualificationQuestionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13797. /**
  13798. * Select specific fields to fetch from the QualificationQuestion
  13799. */
  13800. select?: QualificationQuestionSelect<ExtArgs> | null
  13801. /**
  13802. * Omit specific fields from the QualificationQuestion
  13803. */
  13804. omit?: QualificationQuestionOmit<ExtArgs> | null
  13805. /**
  13806. * Choose, which related nodes to fetch as well
  13807. */
  13808. include?: QualificationQuestionInclude<ExtArgs> | null
  13809. /**
  13810. * Filter, which QualificationQuestion to fetch.
  13811. */
  13812. where?: QualificationQuestionWhereInput
  13813. /**
  13814. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13815. *
  13816. * Determine the order of QualificationQuestions to fetch.
  13817. */
  13818. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13819. /**
  13820. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13821. *
  13822. * Sets the position for searching for QualificationQuestions.
  13823. */
  13824. cursor?: QualificationQuestionWhereUniqueInput
  13825. /**
  13826. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13827. *
  13828. * Take `±n` QualificationQuestions from the position of the cursor.
  13829. */
  13830. take?: number
  13831. /**
  13832. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13833. *
  13834. * Skip the first `n` QualificationQuestions.
  13835. */
  13836. skip?: number
  13837. /**
  13838. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  13839. *
  13840. * Filter by unique combinations of QualificationQuestions.
  13841. */
  13842. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13843. }
  13844. /**
  13845. * QualificationQuestion findMany
  13846. */
  13847. export type QualificationQuestionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13848. /**
  13849. * Select specific fields to fetch from the QualificationQuestion
  13850. */
  13851. select?: QualificationQuestionSelect<ExtArgs> | null
  13852. /**
  13853. * Omit specific fields from the QualificationQuestion
  13854. */
  13855. omit?: QualificationQuestionOmit<ExtArgs> | null
  13856. /**
  13857. * Choose, which related nodes to fetch as well
  13858. */
  13859. include?: QualificationQuestionInclude<ExtArgs> | null
  13860. /**
  13861. * Filter, which QualificationQuestions to fetch.
  13862. */
  13863. where?: QualificationQuestionWhereInput
  13864. /**
  13865. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13866. *
  13867. * Determine the order of QualificationQuestions to fetch.
  13868. */
  13869. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13870. /**
  13871. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13872. *
  13873. * Sets the position for listing QualificationQuestions.
  13874. */
  13875. cursor?: QualificationQuestionWhereUniqueInput
  13876. /**
  13877. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13878. *
  13879. * Take `±n` QualificationQuestions from the position of the cursor.
  13880. */
  13881. take?: number
  13882. /**
  13883. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13884. *
  13885. * Skip the first `n` QualificationQuestions.
  13886. */
  13887. skip?: number
  13888. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13889. }
  13890. /**
  13891. * QualificationQuestion create
  13892. */
  13893. export type QualificationQuestionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13894. /**
  13895. * Select specific fields to fetch from the QualificationQuestion
  13896. */
  13897. select?: QualificationQuestionSelect<ExtArgs> | null
  13898. /**
  13899. * Omit specific fields from the QualificationQuestion
  13900. */
  13901. omit?: QualificationQuestionOmit<ExtArgs> | null
  13902. /**
  13903. * Choose, which related nodes to fetch as well
  13904. */
  13905. include?: QualificationQuestionInclude<ExtArgs> | null
  13906. /**
  13907. * The data needed to create a QualificationQuestion.
  13908. */
  13909. data: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  13910. }
  13911. /**
  13912. * QualificationQuestion createMany
  13913. */
  13914. export type QualificationQuestionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13915. /**
  13916. * The data used to create many QualificationQuestions.
  13917. */
  13918. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  13919. skipDuplicates?: boolean
  13920. }
  13921. /**
  13922. * QualificationQuestion createManyAndReturn
  13923. */
  13924. export type QualificationQuestionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13925. /**
  13926. * Select specific fields to fetch from the QualificationQuestion
  13927. */
  13928. select?: QualificationQuestionSelectCreateManyAndReturn<ExtArgs> | null
  13929. /**
  13930. * Omit specific fields from the QualificationQuestion
  13931. */
  13932. omit?: QualificationQuestionOmit<ExtArgs> | null
  13933. /**
  13934. * The data used to create many QualificationQuestions.
  13935. */
  13936. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  13937. skipDuplicates?: boolean
  13938. /**
  13939. * Choose, which related nodes to fetch as well
  13940. */
  13941. include?: QualificationQuestionIncludeCreateManyAndReturn<ExtArgs> | null
  13942. }
  13943. /**
  13944. * QualificationQuestion update
  13945. */
  13946. export type QualificationQuestionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13947. /**
  13948. * Select specific fields to fetch from the QualificationQuestion
  13949. */
  13950. select?: QualificationQuestionSelect<ExtArgs> | null
  13951. /**
  13952. * Omit specific fields from the QualificationQuestion
  13953. */
  13954. omit?: QualificationQuestionOmit<ExtArgs> | null
  13955. /**
  13956. * Choose, which related nodes to fetch as well
  13957. */
  13958. include?: QualificationQuestionInclude<ExtArgs> | null
  13959. /**
  13960. * The data needed to update a QualificationQuestion.
  13961. */
  13962. data: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  13963. /**
  13964. * Choose, which QualificationQuestion to update.
  13965. */
  13966. where: QualificationQuestionWhereUniqueInput
  13967. }
  13968. /**
  13969. * QualificationQuestion updateMany
  13970. */
  13971. export type QualificationQuestionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13972. /**
  13973. * The data used to update QualificationQuestions.
  13974. */
  13975. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  13976. /**
  13977. * Filter which QualificationQuestions to update
  13978. */
  13979. where?: QualificationQuestionWhereInput
  13980. /**
  13981. * Limit how many QualificationQuestions to update.
  13982. */
  13983. limit?: number
  13984. }
  13985. /**
  13986. * QualificationQuestion updateManyAndReturn
  13987. */
  13988. export type QualificationQuestionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13989. /**
  13990. * Select specific fields to fetch from the QualificationQuestion
  13991. */
  13992. select?: QualificationQuestionSelectUpdateManyAndReturn<ExtArgs> | null
  13993. /**
  13994. * Omit specific fields from the QualificationQuestion
  13995. */
  13996. omit?: QualificationQuestionOmit<ExtArgs> | null
  13997. /**
  13998. * The data used to update QualificationQuestions.
  13999. */
  14000. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  14001. /**
  14002. * Filter which QualificationQuestions to update
  14003. */
  14004. where?: QualificationQuestionWhereInput
  14005. /**
  14006. * Limit how many QualificationQuestions to update.
  14007. */
  14008. limit?: number
  14009. /**
  14010. * Choose, which related nodes to fetch as well
  14011. */
  14012. include?: QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs> | null
  14013. }
  14014. /**
  14015. * QualificationQuestion upsert
  14016. */
  14017. export type QualificationQuestionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14018. /**
  14019. * Select specific fields to fetch from the QualificationQuestion
  14020. */
  14021. select?: QualificationQuestionSelect<ExtArgs> | null
  14022. /**
  14023. * Omit specific fields from the QualificationQuestion
  14024. */
  14025. omit?: QualificationQuestionOmit<ExtArgs> | null
  14026. /**
  14027. * Choose, which related nodes to fetch as well
  14028. */
  14029. include?: QualificationQuestionInclude<ExtArgs> | null
  14030. /**
  14031. * The filter to search for the QualificationQuestion to update in case it exists.
  14032. */
  14033. where: QualificationQuestionWhereUniqueInput
  14034. /**
  14035. * In case the QualificationQuestion found by the `where` argument doesn't exist, create a new QualificationQuestion with this data.
  14036. */
  14037. create: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  14038. /**
  14039. * In case the QualificationQuestion was found with the provided `where` argument, update it with this data.
  14040. */
  14041. update: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  14042. }
  14043. /**
  14044. * QualificationQuestion delete
  14045. */
  14046. export type QualificationQuestionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14047. /**
  14048. * Select specific fields to fetch from the QualificationQuestion
  14049. */
  14050. select?: QualificationQuestionSelect<ExtArgs> | null
  14051. /**
  14052. * Omit specific fields from the QualificationQuestion
  14053. */
  14054. omit?: QualificationQuestionOmit<ExtArgs> | null
  14055. /**
  14056. * Choose, which related nodes to fetch as well
  14057. */
  14058. include?: QualificationQuestionInclude<ExtArgs> | null
  14059. /**
  14060. * Filter which QualificationQuestion to delete.
  14061. */
  14062. where: QualificationQuestionWhereUniqueInput
  14063. }
  14064. /**
  14065. * QualificationQuestion deleteMany
  14066. */
  14067. export type QualificationQuestionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14068. /**
  14069. * Filter which QualificationQuestions to delete
  14070. */
  14071. where?: QualificationQuestionWhereInput
  14072. /**
  14073. * Limit how many QualificationQuestions to delete.
  14074. */
  14075. limit?: number
  14076. }
  14077. /**
  14078. * QualificationQuestion without action
  14079. */
  14080. export type QualificationQuestionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14081. /**
  14082. * Select specific fields to fetch from the QualificationQuestion
  14083. */
  14084. select?: QualificationQuestionSelect<ExtArgs> | null
  14085. /**
  14086. * Omit specific fields from the QualificationQuestion
  14087. */
  14088. omit?: QualificationQuestionOmit<ExtArgs> | null
  14089. /**
  14090. * Choose, which related nodes to fetch as well
  14091. */
  14092. include?: QualificationQuestionInclude<ExtArgs> | null
  14093. }
  14094. /**
  14095. * Model LibraryCase
  14096. */
  14097. export type AggregateLibraryCase = {
  14098. _count: LibraryCaseCountAggregateOutputType | null
  14099. _min: LibraryCaseMinAggregateOutputType | null
  14100. _max: LibraryCaseMaxAggregateOutputType | null
  14101. }
  14102. export type LibraryCaseMinAggregateOutputType = {
  14103. id: string | null
  14104. sector: string | null
  14105. department: string | null
  14106. title: string | null
  14107. description: string | null
  14108. createdAt: Date | null
  14109. updatedAt: Date | null
  14110. }
  14111. export type LibraryCaseMaxAggregateOutputType = {
  14112. id: string | null
  14113. sector: string | null
  14114. department: string | null
  14115. title: string | null
  14116. description: string | null
  14117. createdAt: Date | null
  14118. updatedAt: Date | null
  14119. }
  14120. export type LibraryCaseCountAggregateOutputType = {
  14121. id: number
  14122. sector: number
  14123. department: number
  14124. title: number
  14125. description: number
  14126. createdAt: number
  14127. updatedAt: number
  14128. _all: number
  14129. }
  14130. export type LibraryCaseMinAggregateInputType = {
  14131. id?: true
  14132. sector?: true
  14133. department?: true
  14134. title?: true
  14135. description?: true
  14136. createdAt?: true
  14137. updatedAt?: true
  14138. }
  14139. export type LibraryCaseMaxAggregateInputType = {
  14140. id?: true
  14141. sector?: true
  14142. department?: true
  14143. title?: true
  14144. description?: true
  14145. createdAt?: true
  14146. updatedAt?: true
  14147. }
  14148. export type LibraryCaseCountAggregateInputType = {
  14149. id?: true
  14150. sector?: true
  14151. department?: true
  14152. title?: true
  14153. description?: true
  14154. createdAt?: true
  14155. updatedAt?: true
  14156. _all?: true
  14157. }
  14158. export type LibraryCaseAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14159. /**
  14160. * Filter which LibraryCase to aggregate.
  14161. */
  14162. where?: LibraryCaseWhereInput
  14163. /**
  14164. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14165. *
  14166. * Determine the order of LibraryCases to fetch.
  14167. */
  14168. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14169. /**
  14170. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14171. *
  14172. * Sets the start position
  14173. */
  14174. cursor?: LibraryCaseWhereUniqueInput
  14175. /**
  14176. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14177. *
  14178. * Take `±n` LibraryCases from the position of the cursor.
  14179. */
  14180. take?: number
  14181. /**
  14182. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14183. *
  14184. * Skip the first `n` LibraryCases.
  14185. */
  14186. skip?: number
  14187. /**
  14188. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14189. *
  14190. * Count returned LibraryCases
  14191. **/
  14192. _count?: true | LibraryCaseCountAggregateInputType
  14193. /**
  14194. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14195. *
  14196. * Select which fields to find the minimum value
  14197. **/
  14198. _min?: LibraryCaseMinAggregateInputType
  14199. /**
  14200. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14201. *
  14202. * Select which fields to find the maximum value
  14203. **/
  14204. _max?: LibraryCaseMaxAggregateInputType
  14205. }
  14206. export type GetLibraryCaseAggregateType<T extends LibraryCaseAggregateArgs> = {
  14207. [P in keyof T & keyof AggregateLibraryCase]: P extends '_count' | 'count'
  14208. ? T[P] extends true
  14209. ? number
  14210. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14211. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14212. }
  14213. export type LibraryCaseGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14214. where?: LibraryCaseWhereInput
  14215. orderBy?: LibraryCaseOrderByWithAggregationInput | LibraryCaseOrderByWithAggregationInput[]
  14216. by: LibraryCaseScalarFieldEnum[] | LibraryCaseScalarFieldEnum
  14217. having?: LibraryCaseScalarWhereWithAggregatesInput
  14218. take?: number
  14219. skip?: number
  14220. _count?: LibraryCaseCountAggregateInputType | true
  14221. _min?: LibraryCaseMinAggregateInputType
  14222. _max?: LibraryCaseMaxAggregateInputType
  14223. }
  14224. export type LibraryCaseGroupByOutputType = {
  14225. id: string
  14226. sector: string
  14227. department: string
  14228. title: string
  14229. description: string
  14230. createdAt: Date
  14231. updatedAt: Date
  14232. _count: LibraryCaseCountAggregateOutputType | null
  14233. _min: LibraryCaseMinAggregateOutputType | null
  14234. _max: LibraryCaseMaxAggregateOutputType | null
  14235. }
  14236. type GetLibraryCaseGroupByPayload<T extends LibraryCaseGroupByArgs> = Prisma.PrismaPromise<
  14237. Array<
  14238. PickEnumerable<LibraryCaseGroupByOutputType, T['by']> &
  14239. {
  14240. [P in ((keyof T) & (keyof LibraryCaseGroupByOutputType))]: P extends '_count'
  14241. ? T[P] extends boolean
  14242. ? number
  14243. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14244. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14245. }
  14246. >
  14247. >
  14248. export type LibraryCaseSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14249. id?: boolean
  14250. sector?: boolean
  14251. department?: boolean
  14252. title?: boolean
  14253. description?: boolean
  14254. createdAt?: boolean
  14255. updatedAt?: boolean
  14256. }, ExtArgs["result"]["libraryCase"]>
  14257. export type LibraryCaseSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14258. id?: boolean
  14259. sector?: boolean
  14260. department?: boolean
  14261. title?: boolean
  14262. description?: boolean
  14263. createdAt?: boolean
  14264. updatedAt?: boolean
  14265. }, ExtArgs["result"]["libraryCase"]>
  14266. export type LibraryCaseSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14267. id?: boolean
  14268. sector?: boolean
  14269. department?: boolean
  14270. title?: boolean
  14271. description?: boolean
  14272. createdAt?: boolean
  14273. updatedAt?: boolean
  14274. }, ExtArgs["result"]["libraryCase"]>
  14275. export type LibraryCaseSelectScalar = {
  14276. id?: boolean
  14277. sector?: boolean
  14278. department?: boolean
  14279. title?: boolean
  14280. description?: boolean
  14281. createdAt?: boolean
  14282. updatedAt?: boolean
  14283. }
  14284. export type LibraryCaseOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sector" | "department" | "title" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["libraryCase"]>
  14285. export type $LibraryCasePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14286. name: "LibraryCase"
  14287. objects: {}
  14288. scalars: $Extensions.GetPayloadResult<{
  14289. id: string
  14290. sector: string
  14291. department: string
  14292. title: string
  14293. description: string
  14294. createdAt: Date
  14295. updatedAt: Date
  14296. }, ExtArgs["result"]["libraryCase"]>
  14297. composites: {}
  14298. }
  14299. type LibraryCaseGetPayload<S extends boolean | null | undefined | LibraryCaseDefaultArgs> = $Result.GetResult<Prisma.$LibraryCasePayload, S>
  14300. type LibraryCaseCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  14301. Omit<LibraryCaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  14302. select?: LibraryCaseCountAggregateInputType | true
  14303. }
  14304. export interface LibraryCaseDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  14305. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LibraryCase'], meta: { name: 'LibraryCase' } }
  14306. /**
  14307. * Find zero or one LibraryCase that matches the filter.
  14308. * @param {LibraryCaseFindUniqueArgs} args - Arguments to find a LibraryCase
  14309. * @example
  14310. * // Get one LibraryCase
  14311. * const libraryCase = await prisma.libraryCase.findUnique({
  14312. * where: {
  14313. * // ... provide filter here
  14314. * }
  14315. * })
  14316. */
  14317. findUnique<T extends LibraryCaseFindUniqueArgs>(args: SelectSubset<T, LibraryCaseFindUniqueArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14318. /**
  14319. * Find one LibraryCase that matches the filter or throw an error with `error.code='P2025'`
  14320. * if no matches were found.
  14321. * @param {LibraryCaseFindUniqueOrThrowArgs} args - Arguments to find a LibraryCase
  14322. * @example
  14323. * // Get one LibraryCase
  14324. * const libraryCase = await prisma.libraryCase.findUniqueOrThrow({
  14325. * where: {
  14326. * // ... provide filter here
  14327. * }
  14328. * })
  14329. */
  14330. findUniqueOrThrow<T extends LibraryCaseFindUniqueOrThrowArgs>(args: SelectSubset<T, LibraryCaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14331. /**
  14332. * Find the first LibraryCase that matches the filter.
  14333. * Note, that providing `undefined` is treated as the value not being there.
  14334. * Read more here: https://pris.ly/d/null-undefined
  14335. * @param {LibraryCaseFindFirstArgs} args - Arguments to find a LibraryCase
  14336. * @example
  14337. * // Get one LibraryCase
  14338. * const libraryCase = await prisma.libraryCase.findFirst({
  14339. * where: {
  14340. * // ... provide filter here
  14341. * }
  14342. * })
  14343. */
  14344. findFirst<T extends LibraryCaseFindFirstArgs>(args?: SelectSubset<T, LibraryCaseFindFirstArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14345. /**
  14346. * Find the first LibraryCase that matches the filter or
  14347. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  14348. * Note, that providing `undefined` is treated as the value not being there.
  14349. * Read more here: https://pris.ly/d/null-undefined
  14350. * @param {LibraryCaseFindFirstOrThrowArgs} args - Arguments to find a LibraryCase
  14351. * @example
  14352. * // Get one LibraryCase
  14353. * const libraryCase = await prisma.libraryCase.findFirstOrThrow({
  14354. * where: {
  14355. * // ... provide filter here
  14356. * }
  14357. * })
  14358. */
  14359. findFirstOrThrow<T extends LibraryCaseFindFirstOrThrowArgs>(args?: SelectSubset<T, LibraryCaseFindFirstOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14360. /**
  14361. * Find zero or more LibraryCases that matches the filter.
  14362. * Note, that providing `undefined` is treated as the value not being there.
  14363. * Read more here: https://pris.ly/d/null-undefined
  14364. * @param {LibraryCaseFindManyArgs} args - Arguments to filter and select certain fields only.
  14365. * @example
  14366. * // Get all LibraryCases
  14367. * const libraryCases = await prisma.libraryCase.findMany()
  14368. *
  14369. * // Get first 10 LibraryCases
  14370. * const libraryCases = await prisma.libraryCase.findMany({ take: 10 })
  14371. *
  14372. * // Only select the `id`
  14373. * const libraryCaseWithIdOnly = await prisma.libraryCase.findMany({ select: { id: true } })
  14374. *
  14375. */
  14376. findMany<T extends LibraryCaseFindManyArgs>(args?: SelectSubset<T, LibraryCaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  14377. /**
  14378. * Create a LibraryCase.
  14379. * @param {LibraryCaseCreateArgs} args - Arguments to create a LibraryCase.
  14380. * @example
  14381. * // Create one LibraryCase
  14382. * const LibraryCase = await prisma.libraryCase.create({
  14383. * data: {
  14384. * // ... data to create a LibraryCase
  14385. * }
  14386. * })
  14387. *
  14388. */
  14389. create<T extends LibraryCaseCreateArgs>(args: SelectSubset<T, LibraryCaseCreateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14390. /**
  14391. * Create many LibraryCases.
  14392. * @param {LibraryCaseCreateManyArgs} args - Arguments to create many LibraryCases.
  14393. * @example
  14394. * // Create many LibraryCases
  14395. * const libraryCase = await prisma.libraryCase.createMany({
  14396. * data: [
  14397. * // ... provide data here
  14398. * ]
  14399. * })
  14400. *
  14401. */
  14402. createMany<T extends LibraryCaseCreateManyArgs>(args?: SelectSubset<T, LibraryCaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14403. /**
  14404. * Create many LibraryCases and returns the data saved in the database.
  14405. * @param {LibraryCaseCreateManyAndReturnArgs} args - Arguments to create many LibraryCases.
  14406. * @example
  14407. * // Create many LibraryCases
  14408. * const libraryCase = await prisma.libraryCase.createManyAndReturn({
  14409. * data: [
  14410. * // ... provide data here
  14411. * ]
  14412. * })
  14413. *
  14414. * // Create many LibraryCases and only return the `id`
  14415. * const libraryCaseWithIdOnly = await prisma.libraryCase.createManyAndReturn({
  14416. * select: { id: true },
  14417. * data: [
  14418. * // ... provide data here
  14419. * ]
  14420. * })
  14421. * Note, that providing `undefined` is treated as the value not being there.
  14422. * Read more here: https://pris.ly/d/null-undefined
  14423. *
  14424. */
  14425. createManyAndReturn<T extends LibraryCaseCreateManyAndReturnArgs>(args?: SelectSubset<T, LibraryCaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  14426. /**
  14427. * Delete a LibraryCase.
  14428. * @param {LibraryCaseDeleteArgs} args - Arguments to delete one LibraryCase.
  14429. * @example
  14430. * // Delete one LibraryCase
  14431. * const LibraryCase = await prisma.libraryCase.delete({
  14432. * where: {
  14433. * // ... filter to delete one LibraryCase
  14434. * }
  14435. * })
  14436. *
  14437. */
  14438. delete<T extends LibraryCaseDeleteArgs>(args: SelectSubset<T, LibraryCaseDeleteArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14439. /**
  14440. * Update one LibraryCase.
  14441. * @param {LibraryCaseUpdateArgs} args - Arguments to update one LibraryCase.
  14442. * @example
  14443. * // Update one LibraryCase
  14444. * const libraryCase = await prisma.libraryCase.update({
  14445. * where: {
  14446. * // ... provide filter here
  14447. * },
  14448. * data: {
  14449. * // ... provide data here
  14450. * }
  14451. * })
  14452. *
  14453. */
  14454. update<T extends LibraryCaseUpdateArgs>(args: SelectSubset<T, LibraryCaseUpdateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14455. /**
  14456. * Delete zero or more LibraryCases.
  14457. * @param {LibraryCaseDeleteManyArgs} args - Arguments to filter LibraryCases to delete.
  14458. * @example
  14459. * // Delete a few LibraryCases
  14460. * const { count } = await prisma.libraryCase.deleteMany({
  14461. * where: {
  14462. * // ... provide filter here
  14463. * }
  14464. * })
  14465. *
  14466. */
  14467. deleteMany<T extends LibraryCaseDeleteManyArgs>(args?: SelectSubset<T, LibraryCaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14468. /**
  14469. * Update zero or more LibraryCases.
  14470. * Note, that providing `undefined` is treated as the value not being there.
  14471. * Read more here: https://pris.ly/d/null-undefined
  14472. * @param {LibraryCaseUpdateManyArgs} args - Arguments to update one or more rows.
  14473. * @example
  14474. * // Update many LibraryCases
  14475. * const libraryCase = await prisma.libraryCase.updateMany({
  14476. * where: {
  14477. * // ... provide filter here
  14478. * },
  14479. * data: {
  14480. * // ... provide data here
  14481. * }
  14482. * })
  14483. *
  14484. */
  14485. updateMany<T extends LibraryCaseUpdateManyArgs>(args: SelectSubset<T, LibraryCaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14486. /**
  14487. * Update zero or more LibraryCases and returns the data updated in the database.
  14488. * @param {LibraryCaseUpdateManyAndReturnArgs} args - Arguments to update many LibraryCases.
  14489. * @example
  14490. * // Update many LibraryCases
  14491. * const libraryCase = await prisma.libraryCase.updateManyAndReturn({
  14492. * where: {
  14493. * // ... provide filter here
  14494. * },
  14495. * data: [
  14496. * // ... provide data here
  14497. * ]
  14498. * })
  14499. *
  14500. * // Update zero or more LibraryCases and only return the `id`
  14501. * const libraryCaseWithIdOnly = await prisma.libraryCase.updateManyAndReturn({
  14502. * select: { id: true },
  14503. * where: {
  14504. * // ... provide filter here
  14505. * },
  14506. * data: [
  14507. * // ... provide data here
  14508. * ]
  14509. * })
  14510. * Note, that providing `undefined` is treated as the value not being there.
  14511. * Read more here: https://pris.ly/d/null-undefined
  14512. *
  14513. */
  14514. updateManyAndReturn<T extends LibraryCaseUpdateManyAndReturnArgs>(args: SelectSubset<T, LibraryCaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  14515. /**
  14516. * Create or update one LibraryCase.
  14517. * @param {LibraryCaseUpsertArgs} args - Arguments to update or create a LibraryCase.
  14518. * @example
  14519. * // Update or create a LibraryCase
  14520. * const libraryCase = await prisma.libraryCase.upsert({
  14521. * create: {
  14522. * // ... data to create a LibraryCase
  14523. * },
  14524. * update: {
  14525. * // ... in case it already exists, update
  14526. * },
  14527. * where: {
  14528. * // ... the filter for the LibraryCase we want to update
  14529. * }
  14530. * })
  14531. */
  14532. upsert<T extends LibraryCaseUpsertArgs>(args: SelectSubset<T, LibraryCaseUpsertArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14533. /**
  14534. * Count the number of LibraryCases.
  14535. * Note, that providing `undefined` is treated as the value not being there.
  14536. * Read more here: https://pris.ly/d/null-undefined
  14537. * @param {LibraryCaseCountArgs} args - Arguments to filter LibraryCases to count.
  14538. * @example
  14539. * // Count the number of LibraryCases
  14540. * const count = await prisma.libraryCase.count({
  14541. * where: {
  14542. * // ... the filter for the LibraryCases we want to count
  14543. * }
  14544. * })
  14545. **/
  14546. count<T extends LibraryCaseCountArgs>(
  14547. args?: Subset<T, LibraryCaseCountArgs>,
  14548. ): Prisma.PrismaPromise<
  14549. T extends $Utils.Record<'select', any>
  14550. ? T['select'] extends true
  14551. ? number
  14552. : GetScalarType<T['select'], LibraryCaseCountAggregateOutputType>
  14553. : number
  14554. >
  14555. /**
  14556. * Allows you to perform aggregations operations on a LibraryCase.
  14557. * Note, that providing `undefined` is treated as the value not being there.
  14558. * Read more here: https://pris.ly/d/null-undefined
  14559. * @param {LibraryCaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  14560. * @example
  14561. * // Ordered by age ascending
  14562. * // Where email contains prisma.io
  14563. * // Limited to the 10 users
  14564. * const aggregations = await prisma.user.aggregate({
  14565. * _avg: {
  14566. * age: true,
  14567. * },
  14568. * where: {
  14569. * email: {
  14570. * contains: "prisma.io",
  14571. * },
  14572. * },
  14573. * orderBy: {
  14574. * age: "asc",
  14575. * },
  14576. * take: 10,
  14577. * })
  14578. **/
  14579. aggregate<T extends LibraryCaseAggregateArgs>(args: Subset<T, LibraryCaseAggregateArgs>): Prisma.PrismaPromise<GetLibraryCaseAggregateType<T>>
  14580. /**
  14581. * Group by LibraryCase.
  14582. * Note, that providing `undefined` is treated as the value not being there.
  14583. * Read more here: https://pris.ly/d/null-undefined
  14584. * @param {LibraryCaseGroupByArgs} args - Group by arguments.
  14585. * @example
  14586. * // Group by city, order by createdAt, get count
  14587. * const result = await prisma.user.groupBy({
  14588. * by: ['city', 'createdAt'],
  14589. * orderBy: {
  14590. * createdAt: true
  14591. * },
  14592. * _count: {
  14593. * _all: true
  14594. * },
  14595. * })
  14596. *
  14597. **/
  14598. groupBy<
  14599. T extends LibraryCaseGroupByArgs,
  14600. HasSelectOrTake extends Or<
  14601. Extends<'skip', Keys<T>>,
  14602. Extends<'take', Keys<T>>
  14603. >,
  14604. OrderByArg extends True extends HasSelectOrTake
  14605. ? { orderBy: LibraryCaseGroupByArgs['orderBy'] }
  14606. : { orderBy?: LibraryCaseGroupByArgs['orderBy'] },
  14607. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  14608. ByFields extends MaybeTupleToUnion<T['by']>,
  14609. ByValid extends Has<ByFields, OrderFields>,
  14610. HavingFields extends GetHavingFields<T['having']>,
  14611. HavingValid extends Has<ByFields, HavingFields>,
  14612. ByEmpty extends T['by'] extends never[] ? True : False,
  14613. InputErrors extends ByEmpty extends True
  14614. ? `Error: "by" must not be empty.`
  14615. : HavingValid extends False
  14616. ? {
  14617. [P in HavingFields]: P extends ByFields
  14618. ? never
  14619. : P extends string
  14620. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  14621. : [
  14622. Error,
  14623. 'Field ',
  14624. P,
  14625. ` in "having" needs to be provided in "by"`,
  14626. ]
  14627. }[HavingFields]
  14628. : 'take' extends Keys<T>
  14629. ? 'orderBy' extends Keys<T>
  14630. ? ByValid extends True
  14631. ? {}
  14632. : {
  14633. [P in OrderFields]: P extends ByFields
  14634. ? never
  14635. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14636. }[OrderFields]
  14637. : 'Error: If you provide "take", you also need to provide "orderBy"'
  14638. : 'skip' extends Keys<T>
  14639. ? 'orderBy' extends Keys<T>
  14640. ? ByValid extends True
  14641. ? {}
  14642. : {
  14643. [P in OrderFields]: P extends ByFields
  14644. ? never
  14645. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14646. }[OrderFields]
  14647. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  14648. : ByValid extends True
  14649. ? {}
  14650. : {
  14651. [P in OrderFields]: P extends ByFields
  14652. ? never
  14653. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14654. }[OrderFields]
  14655. >(args: SubsetIntersection<T, LibraryCaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLibraryCaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  14656. /**
  14657. * Fields of the LibraryCase model
  14658. */
  14659. readonly fields: LibraryCaseFieldRefs;
  14660. }
  14661. /**
  14662. * The delegate class that acts as a "Promise-like" for LibraryCase.
  14663. * Why is this prefixed with `Prisma__`?
  14664. * Because we want to prevent naming conflicts as mentioned in
  14665. * https://github.com/prisma/prisma-client-js/issues/707
  14666. */
  14667. export interface Prisma__LibraryCaseClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  14668. readonly [Symbol.toStringTag]: "PrismaPromise"
  14669. /**
  14670. * Attaches callbacks for the resolution and/or rejection of the Promise.
  14671. * @param onfulfilled The callback to execute when the Promise is resolved.
  14672. * @param onrejected The callback to execute when the Promise is rejected.
  14673. * @returns A Promise for the completion of which ever callback is executed.
  14674. */
  14675. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  14676. /**
  14677. * Attaches a callback for only the rejection of the Promise.
  14678. * @param onrejected The callback to execute when the Promise is rejected.
  14679. * @returns A Promise for the completion of the callback.
  14680. */
  14681. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  14682. /**
  14683. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  14684. * resolved value cannot be modified from the callback.
  14685. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  14686. * @returns A Promise for the completion of the callback.
  14687. */
  14688. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  14689. }
  14690. /**
  14691. * Fields of the LibraryCase model
  14692. */
  14693. interface LibraryCaseFieldRefs {
  14694. readonly id: FieldRef<"LibraryCase", 'String'>
  14695. readonly sector: FieldRef<"LibraryCase", 'String'>
  14696. readonly department: FieldRef<"LibraryCase", 'String'>
  14697. readonly title: FieldRef<"LibraryCase", 'String'>
  14698. readonly description: FieldRef<"LibraryCase", 'String'>
  14699. readonly createdAt: FieldRef<"LibraryCase", 'DateTime'>
  14700. readonly updatedAt: FieldRef<"LibraryCase", 'DateTime'>
  14701. }
  14702. // Custom InputTypes
  14703. /**
  14704. * LibraryCase findUnique
  14705. */
  14706. export type LibraryCaseFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14707. /**
  14708. * Select specific fields to fetch from the LibraryCase
  14709. */
  14710. select?: LibraryCaseSelect<ExtArgs> | null
  14711. /**
  14712. * Omit specific fields from the LibraryCase
  14713. */
  14714. omit?: LibraryCaseOmit<ExtArgs> | null
  14715. /**
  14716. * Filter, which LibraryCase to fetch.
  14717. */
  14718. where: LibraryCaseWhereUniqueInput
  14719. }
  14720. /**
  14721. * LibraryCase findUniqueOrThrow
  14722. */
  14723. export type LibraryCaseFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14724. /**
  14725. * Select specific fields to fetch from the LibraryCase
  14726. */
  14727. select?: LibraryCaseSelect<ExtArgs> | null
  14728. /**
  14729. * Omit specific fields from the LibraryCase
  14730. */
  14731. omit?: LibraryCaseOmit<ExtArgs> | null
  14732. /**
  14733. * Filter, which LibraryCase to fetch.
  14734. */
  14735. where: LibraryCaseWhereUniqueInput
  14736. }
  14737. /**
  14738. * LibraryCase findFirst
  14739. */
  14740. export type LibraryCaseFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14741. /**
  14742. * Select specific fields to fetch from the LibraryCase
  14743. */
  14744. select?: LibraryCaseSelect<ExtArgs> | null
  14745. /**
  14746. * Omit specific fields from the LibraryCase
  14747. */
  14748. omit?: LibraryCaseOmit<ExtArgs> | null
  14749. /**
  14750. * Filter, which LibraryCase to fetch.
  14751. */
  14752. where?: LibraryCaseWhereInput
  14753. /**
  14754. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14755. *
  14756. * Determine the order of LibraryCases to fetch.
  14757. */
  14758. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14759. /**
  14760. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14761. *
  14762. * Sets the position for searching for LibraryCases.
  14763. */
  14764. cursor?: LibraryCaseWhereUniqueInput
  14765. /**
  14766. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14767. *
  14768. * Take `±n` LibraryCases from the position of the cursor.
  14769. */
  14770. take?: number
  14771. /**
  14772. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14773. *
  14774. * Skip the first `n` LibraryCases.
  14775. */
  14776. skip?: number
  14777. /**
  14778. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14779. *
  14780. * Filter by unique combinations of LibraryCases.
  14781. */
  14782. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14783. }
  14784. /**
  14785. * LibraryCase findFirstOrThrow
  14786. */
  14787. export type LibraryCaseFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14788. /**
  14789. * Select specific fields to fetch from the LibraryCase
  14790. */
  14791. select?: LibraryCaseSelect<ExtArgs> | null
  14792. /**
  14793. * Omit specific fields from the LibraryCase
  14794. */
  14795. omit?: LibraryCaseOmit<ExtArgs> | null
  14796. /**
  14797. * Filter, which LibraryCase to fetch.
  14798. */
  14799. where?: LibraryCaseWhereInput
  14800. /**
  14801. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14802. *
  14803. * Determine the order of LibraryCases to fetch.
  14804. */
  14805. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14806. /**
  14807. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14808. *
  14809. * Sets the position for searching for LibraryCases.
  14810. */
  14811. cursor?: LibraryCaseWhereUniqueInput
  14812. /**
  14813. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14814. *
  14815. * Take `±n` LibraryCases from the position of the cursor.
  14816. */
  14817. take?: number
  14818. /**
  14819. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14820. *
  14821. * Skip the first `n` LibraryCases.
  14822. */
  14823. skip?: number
  14824. /**
  14825. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14826. *
  14827. * Filter by unique combinations of LibraryCases.
  14828. */
  14829. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14830. }
  14831. /**
  14832. * LibraryCase findMany
  14833. */
  14834. export type LibraryCaseFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14835. /**
  14836. * Select specific fields to fetch from the LibraryCase
  14837. */
  14838. select?: LibraryCaseSelect<ExtArgs> | null
  14839. /**
  14840. * Omit specific fields from the LibraryCase
  14841. */
  14842. omit?: LibraryCaseOmit<ExtArgs> | null
  14843. /**
  14844. * Filter, which LibraryCases to fetch.
  14845. */
  14846. where?: LibraryCaseWhereInput
  14847. /**
  14848. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14849. *
  14850. * Determine the order of LibraryCases to fetch.
  14851. */
  14852. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14853. /**
  14854. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14855. *
  14856. * Sets the position for listing LibraryCases.
  14857. */
  14858. cursor?: LibraryCaseWhereUniqueInput
  14859. /**
  14860. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14861. *
  14862. * Take `±n` LibraryCases from the position of the cursor.
  14863. */
  14864. take?: number
  14865. /**
  14866. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14867. *
  14868. * Skip the first `n` LibraryCases.
  14869. */
  14870. skip?: number
  14871. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14872. }
  14873. /**
  14874. * LibraryCase create
  14875. */
  14876. export type LibraryCaseCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14877. /**
  14878. * Select specific fields to fetch from the LibraryCase
  14879. */
  14880. select?: LibraryCaseSelect<ExtArgs> | null
  14881. /**
  14882. * Omit specific fields from the LibraryCase
  14883. */
  14884. omit?: LibraryCaseOmit<ExtArgs> | null
  14885. /**
  14886. * The data needed to create a LibraryCase.
  14887. */
  14888. data: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  14889. }
  14890. /**
  14891. * LibraryCase createMany
  14892. */
  14893. export type LibraryCaseCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14894. /**
  14895. * The data used to create many LibraryCases.
  14896. */
  14897. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  14898. skipDuplicates?: boolean
  14899. }
  14900. /**
  14901. * LibraryCase createManyAndReturn
  14902. */
  14903. export type LibraryCaseCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14904. /**
  14905. * Select specific fields to fetch from the LibraryCase
  14906. */
  14907. select?: LibraryCaseSelectCreateManyAndReturn<ExtArgs> | null
  14908. /**
  14909. * Omit specific fields from the LibraryCase
  14910. */
  14911. omit?: LibraryCaseOmit<ExtArgs> | null
  14912. /**
  14913. * The data used to create many LibraryCases.
  14914. */
  14915. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  14916. skipDuplicates?: boolean
  14917. }
  14918. /**
  14919. * LibraryCase update
  14920. */
  14921. export type LibraryCaseUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14922. /**
  14923. * Select specific fields to fetch from the LibraryCase
  14924. */
  14925. select?: LibraryCaseSelect<ExtArgs> | null
  14926. /**
  14927. * Omit specific fields from the LibraryCase
  14928. */
  14929. omit?: LibraryCaseOmit<ExtArgs> | null
  14930. /**
  14931. * The data needed to update a LibraryCase.
  14932. */
  14933. data: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  14934. /**
  14935. * Choose, which LibraryCase to update.
  14936. */
  14937. where: LibraryCaseWhereUniqueInput
  14938. }
  14939. /**
  14940. * LibraryCase updateMany
  14941. */
  14942. export type LibraryCaseUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14943. /**
  14944. * The data used to update LibraryCases.
  14945. */
  14946. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  14947. /**
  14948. * Filter which LibraryCases to update
  14949. */
  14950. where?: LibraryCaseWhereInput
  14951. /**
  14952. * Limit how many LibraryCases to update.
  14953. */
  14954. limit?: number
  14955. }
  14956. /**
  14957. * LibraryCase updateManyAndReturn
  14958. */
  14959. export type LibraryCaseUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14960. /**
  14961. * Select specific fields to fetch from the LibraryCase
  14962. */
  14963. select?: LibraryCaseSelectUpdateManyAndReturn<ExtArgs> | null
  14964. /**
  14965. * Omit specific fields from the LibraryCase
  14966. */
  14967. omit?: LibraryCaseOmit<ExtArgs> | null
  14968. /**
  14969. * The data used to update LibraryCases.
  14970. */
  14971. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  14972. /**
  14973. * Filter which LibraryCases to update
  14974. */
  14975. where?: LibraryCaseWhereInput
  14976. /**
  14977. * Limit how many LibraryCases to update.
  14978. */
  14979. limit?: number
  14980. }
  14981. /**
  14982. * LibraryCase upsert
  14983. */
  14984. export type LibraryCaseUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14985. /**
  14986. * Select specific fields to fetch from the LibraryCase
  14987. */
  14988. select?: LibraryCaseSelect<ExtArgs> | null
  14989. /**
  14990. * Omit specific fields from the LibraryCase
  14991. */
  14992. omit?: LibraryCaseOmit<ExtArgs> | null
  14993. /**
  14994. * The filter to search for the LibraryCase to update in case it exists.
  14995. */
  14996. where: LibraryCaseWhereUniqueInput
  14997. /**
  14998. * In case the LibraryCase found by the `where` argument doesn't exist, create a new LibraryCase with this data.
  14999. */
  15000. create: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  15001. /**
  15002. * In case the LibraryCase was found with the provided `where` argument, update it with this data.
  15003. */
  15004. update: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  15005. }
  15006. /**
  15007. * LibraryCase delete
  15008. */
  15009. export type LibraryCaseDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15010. /**
  15011. * Select specific fields to fetch from the LibraryCase
  15012. */
  15013. select?: LibraryCaseSelect<ExtArgs> | null
  15014. /**
  15015. * Omit specific fields from the LibraryCase
  15016. */
  15017. omit?: LibraryCaseOmit<ExtArgs> | null
  15018. /**
  15019. * Filter which LibraryCase to delete.
  15020. */
  15021. where: LibraryCaseWhereUniqueInput
  15022. }
  15023. /**
  15024. * LibraryCase deleteMany
  15025. */
  15026. export type LibraryCaseDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15027. /**
  15028. * Filter which LibraryCases to delete
  15029. */
  15030. where?: LibraryCaseWhereInput
  15031. /**
  15032. * Limit how many LibraryCases to delete.
  15033. */
  15034. limit?: number
  15035. }
  15036. /**
  15037. * LibraryCase without action
  15038. */
  15039. export type LibraryCaseDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15040. /**
  15041. * Select specific fields to fetch from the LibraryCase
  15042. */
  15043. select?: LibraryCaseSelect<ExtArgs> | null
  15044. /**
  15045. * Omit specific fields from the LibraryCase
  15046. */
  15047. omit?: LibraryCaseOmit<ExtArgs> | null
  15048. }
  15049. /**
  15050. * Model ShareLink
  15051. */
  15052. export type AggregateShareLink = {
  15053. _count: ShareLinkCountAggregateOutputType | null
  15054. _min: ShareLinkMinAggregateOutputType | null
  15055. _max: ShareLinkMaxAggregateOutputType | null
  15056. }
  15057. export type ShareLinkMinAggregateOutputType = {
  15058. id: string | null
  15059. workspaceId: string | null
  15060. token: string | null
  15061. expiresAt: Date | null
  15062. createdAt: Date | null
  15063. }
  15064. export type ShareLinkMaxAggregateOutputType = {
  15065. id: string | null
  15066. workspaceId: string | null
  15067. token: string | null
  15068. expiresAt: Date | null
  15069. createdAt: Date | null
  15070. }
  15071. export type ShareLinkCountAggregateOutputType = {
  15072. id: number
  15073. workspaceId: number
  15074. token: number
  15075. expiresAt: number
  15076. createdAt: number
  15077. _all: number
  15078. }
  15079. export type ShareLinkMinAggregateInputType = {
  15080. id?: true
  15081. workspaceId?: true
  15082. token?: true
  15083. expiresAt?: true
  15084. createdAt?: true
  15085. }
  15086. export type ShareLinkMaxAggregateInputType = {
  15087. id?: true
  15088. workspaceId?: true
  15089. token?: true
  15090. expiresAt?: true
  15091. createdAt?: true
  15092. }
  15093. export type ShareLinkCountAggregateInputType = {
  15094. id?: true
  15095. workspaceId?: true
  15096. token?: true
  15097. expiresAt?: true
  15098. createdAt?: true
  15099. _all?: true
  15100. }
  15101. export type ShareLinkAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15102. /**
  15103. * Filter which ShareLink to aggregate.
  15104. */
  15105. where?: ShareLinkWhereInput
  15106. /**
  15107. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15108. *
  15109. * Determine the order of ShareLinks to fetch.
  15110. */
  15111. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15112. /**
  15113. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15114. *
  15115. * Sets the start position
  15116. */
  15117. cursor?: ShareLinkWhereUniqueInput
  15118. /**
  15119. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15120. *
  15121. * Take `±n` ShareLinks from the position of the cursor.
  15122. */
  15123. take?: number
  15124. /**
  15125. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15126. *
  15127. * Skip the first `n` ShareLinks.
  15128. */
  15129. skip?: number
  15130. /**
  15131. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15132. *
  15133. * Count returned ShareLinks
  15134. **/
  15135. _count?: true | ShareLinkCountAggregateInputType
  15136. /**
  15137. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15138. *
  15139. * Select which fields to find the minimum value
  15140. **/
  15141. _min?: ShareLinkMinAggregateInputType
  15142. /**
  15143. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15144. *
  15145. * Select which fields to find the maximum value
  15146. **/
  15147. _max?: ShareLinkMaxAggregateInputType
  15148. }
  15149. export type GetShareLinkAggregateType<T extends ShareLinkAggregateArgs> = {
  15150. [P in keyof T & keyof AggregateShareLink]: P extends '_count' | 'count'
  15151. ? T[P] extends true
  15152. ? number
  15153. : GetScalarType<T[P], AggregateShareLink[P]>
  15154. : GetScalarType<T[P], AggregateShareLink[P]>
  15155. }
  15156. export type ShareLinkGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15157. where?: ShareLinkWhereInput
  15158. orderBy?: ShareLinkOrderByWithAggregationInput | ShareLinkOrderByWithAggregationInput[]
  15159. by: ShareLinkScalarFieldEnum[] | ShareLinkScalarFieldEnum
  15160. having?: ShareLinkScalarWhereWithAggregatesInput
  15161. take?: number
  15162. skip?: number
  15163. _count?: ShareLinkCountAggregateInputType | true
  15164. _min?: ShareLinkMinAggregateInputType
  15165. _max?: ShareLinkMaxAggregateInputType
  15166. }
  15167. export type ShareLinkGroupByOutputType = {
  15168. id: string
  15169. workspaceId: string
  15170. token: string
  15171. expiresAt: Date | null
  15172. createdAt: Date
  15173. _count: ShareLinkCountAggregateOutputType | null
  15174. _min: ShareLinkMinAggregateOutputType | null
  15175. _max: ShareLinkMaxAggregateOutputType | null
  15176. }
  15177. type GetShareLinkGroupByPayload<T extends ShareLinkGroupByArgs> = Prisma.PrismaPromise<
  15178. Array<
  15179. PickEnumerable<ShareLinkGroupByOutputType, T['by']> &
  15180. {
  15181. [P in ((keyof T) & (keyof ShareLinkGroupByOutputType))]: P extends '_count'
  15182. ? T[P] extends boolean
  15183. ? number
  15184. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  15185. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  15186. }
  15187. >
  15188. >
  15189. export type ShareLinkSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15190. id?: boolean
  15191. workspaceId?: boolean
  15192. token?: boolean
  15193. expiresAt?: boolean
  15194. createdAt?: boolean
  15195. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15196. }, ExtArgs["result"]["shareLink"]>
  15197. export type ShareLinkSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15198. id?: boolean
  15199. workspaceId?: boolean
  15200. token?: boolean
  15201. expiresAt?: boolean
  15202. createdAt?: boolean
  15203. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15204. }, ExtArgs["result"]["shareLink"]>
  15205. export type ShareLinkSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15206. id?: boolean
  15207. workspaceId?: boolean
  15208. token?: boolean
  15209. expiresAt?: boolean
  15210. createdAt?: boolean
  15211. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15212. }, ExtArgs["result"]["shareLink"]>
  15213. export type ShareLinkSelectScalar = {
  15214. id?: boolean
  15215. workspaceId?: boolean
  15216. token?: boolean
  15217. expiresAt?: boolean
  15218. createdAt?: boolean
  15219. }
  15220. export type ShareLinkOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "token" | "expiresAt" | "createdAt", ExtArgs["result"]["shareLink"]>
  15221. export type ShareLinkInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15222. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15223. }
  15224. export type ShareLinkIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15225. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15226. }
  15227. export type ShareLinkIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15228. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15229. }
  15230. export type $ShareLinkPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15231. name: "ShareLink"
  15232. objects: {
  15233. workspace: Prisma.$WorkspacePayload<ExtArgs>
  15234. }
  15235. scalars: $Extensions.GetPayloadResult<{
  15236. id: string
  15237. workspaceId: string
  15238. token: string
  15239. expiresAt: Date | null
  15240. createdAt: Date
  15241. }, ExtArgs["result"]["shareLink"]>
  15242. composites: {}
  15243. }
  15244. type ShareLinkGetPayload<S extends boolean | null | undefined | ShareLinkDefaultArgs> = $Result.GetResult<Prisma.$ShareLinkPayload, S>
  15245. type ShareLinkCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  15246. Omit<ShareLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  15247. select?: ShareLinkCountAggregateInputType | true
  15248. }
  15249. export interface ShareLinkDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  15250. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShareLink'], meta: { name: 'ShareLink' } }
  15251. /**
  15252. * Find zero or one ShareLink that matches the filter.
  15253. * @param {ShareLinkFindUniqueArgs} args - Arguments to find a ShareLink
  15254. * @example
  15255. * // Get one ShareLink
  15256. * const shareLink = await prisma.shareLink.findUnique({
  15257. * where: {
  15258. * // ... provide filter here
  15259. * }
  15260. * })
  15261. */
  15262. findUnique<T extends ShareLinkFindUniqueArgs>(args: SelectSubset<T, ShareLinkFindUniqueArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15263. /**
  15264. * Find one ShareLink that matches the filter or throw an error with `error.code='P2025'`
  15265. * if no matches were found.
  15266. * @param {ShareLinkFindUniqueOrThrowArgs} args - Arguments to find a ShareLink
  15267. * @example
  15268. * // Get one ShareLink
  15269. * const shareLink = await prisma.shareLink.findUniqueOrThrow({
  15270. * where: {
  15271. * // ... provide filter here
  15272. * }
  15273. * })
  15274. */
  15275. findUniqueOrThrow<T extends ShareLinkFindUniqueOrThrowArgs>(args: SelectSubset<T, ShareLinkFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15276. /**
  15277. * Find the first ShareLink that matches the filter.
  15278. * Note, that providing `undefined` is treated as the value not being there.
  15279. * Read more here: https://pris.ly/d/null-undefined
  15280. * @param {ShareLinkFindFirstArgs} args - Arguments to find a ShareLink
  15281. * @example
  15282. * // Get one ShareLink
  15283. * const shareLink = await prisma.shareLink.findFirst({
  15284. * where: {
  15285. * // ... provide filter here
  15286. * }
  15287. * })
  15288. */
  15289. findFirst<T extends ShareLinkFindFirstArgs>(args?: SelectSubset<T, ShareLinkFindFirstArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15290. /**
  15291. * Find the first ShareLink that matches the filter or
  15292. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  15293. * Note, that providing `undefined` is treated as the value not being there.
  15294. * Read more here: https://pris.ly/d/null-undefined
  15295. * @param {ShareLinkFindFirstOrThrowArgs} args - Arguments to find a ShareLink
  15296. * @example
  15297. * // Get one ShareLink
  15298. * const shareLink = await prisma.shareLink.findFirstOrThrow({
  15299. * where: {
  15300. * // ... provide filter here
  15301. * }
  15302. * })
  15303. */
  15304. findFirstOrThrow<T extends ShareLinkFindFirstOrThrowArgs>(args?: SelectSubset<T, ShareLinkFindFirstOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15305. /**
  15306. * Find zero or more ShareLinks that matches the filter.
  15307. * Note, that providing `undefined` is treated as the value not being there.
  15308. * Read more here: https://pris.ly/d/null-undefined
  15309. * @param {ShareLinkFindManyArgs} args - Arguments to filter and select certain fields only.
  15310. * @example
  15311. * // Get all ShareLinks
  15312. * const shareLinks = await prisma.shareLink.findMany()
  15313. *
  15314. * // Get first 10 ShareLinks
  15315. * const shareLinks = await prisma.shareLink.findMany({ take: 10 })
  15316. *
  15317. * // Only select the `id`
  15318. * const shareLinkWithIdOnly = await prisma.shareLink.findMany({ select: { id: true } })
  15319. *
  15320. */
  15321. findMany<T extends ShareLinkFindManyArgs>(args?: SelectSubset<T, ShareLinkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  15322. /**
  15323. * Create a ShareLink.
  15324. * @param {ShareLinkCreateArgs} args - Arguments to create a ShareLink.
  15325. * @example
  15326. * // Create one ShareLink
  15327. * const ShareLink = await prisma.shareLink.create({
  15328. * data: {
  15329. * // ... data to create a ShareLink
  15330. * }
  15331. * })
  15332. *
  15333. */
  15334. create<T extends ShareLinkCreateArgs>(args: SelectSubset<T, ShareLinkCreateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15335. /**
  15336. * Create many ShareLinks.
  15337. * @param {ShareLinkCreateManyArgs} args - Arguments to create many ShareLinks.
  15338. * @example
  15339. * // Create many ShareLinks
  15340. * const shareLink = await prisma.shareLink.createMany({
  15341. * data: [
  15342. * // ... provide data here
  15343. * ]
  15344. * })
  15345. *
  15346. */
  15347. createMany<T extends ShareLinkCreateManyArgs>(args?: SelectSubset<T, ShareLinkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15348. /**
  15349. * Create many ShareLinks and returns the data saved in the database.
  15350. * @param {ShareLinkCreateManyAndReturnArgs} args - Arguments to create many ShareLinks.
  15351. * @example
  15352. * // Create many ShareLinks
  15353. * const shareLink = await prisma.shareLink.createManyAndReturn({
  15354. * data: [
  15355. * // ... provide data here
  15356. * ]
  15357. * })
  15358. *
  15359. * // Create many ShareLinks and only return the `id`
  15360. * const shareLinkWithIdOnly = await prisma.shareLink.createManyAndReturn({
  15361. * select: { id: true },
  15362. * data: [
  15363. * // ... provide data here
  15364. * ]
  15365. * })
  15366. * Note, that providing `undefined` is treated as the value not being there.
  15367. * Read more here: https://pris.ly/d/null-undefined
  15368. *
  15369. */
  15370. createManyAndReturn<T extends ShareLinkCreateManyAndReturnArgs>(args?: SelectSubset<T, ShareLinkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  15371. /**
  15372. * Delete a ShareLink.
  15373. * @param {ShareLinkDeleteArgs} args - Arguments to delete one ShareLink.
  15374. * @example
  15375. * // Delete one ShareLink
  15376. * const ShareLink = await prisma.shareLink.delete({
  15377. * where: {
  15378. * // ... filter to delete one ShareLink
  15379. * }
  15380. * })
  15381. *
  15382. */
  15383. delete<T extends ShareLinkDeleteArgs>(args: SelectSubset<T, ShareLinkDeleteArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15384. /**
  15385. * Update one ShareLink.
  15386. * @param {ShareLinkUpdateArgs} args - Arguments to update one ShareLink.
  15387. * @example
  15388. * // Update one ShareLink
  15389. * const shareLink = await prisma.shareLink.update({
  15390. * where: {
  15391. * // ... provide filter here
  15392. * },
  15393. * data: {
  15394. * // ... provide data here
  15395. * }
  15396. * })
  15397. *
  15398. */
  15399. update<T extends ShareLinkUpdateArgs>(args: SelectSubset<T, ShareLinkUpdateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15400. /**
  15401. * Delete zero or more ShareLinks.
  15402. * @param {ShareLinkDeleteManyArgs} args - Arguments to filter ShareLinks to delete.
  15403. * @example
  15404. * // Delete a few ShareLinks
  15405. * const { count } = await prisma.shareLink.deleteMany({
  15406. * where: {
  15407. * // ... provide filter here
  15408. * }
  15409. * })
  15410. *
  15411. */
  15412. deleteMany<T extends ShareLinkDeleteManyArgs>(args?: SelectSubset<T, ShareLinkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15413. /**
  15414. * Update zero or more ShareLinks.
  15415. * Note, that providing `undefined` is treated as the value not being there.
  15416. * Read more here: https://pris.ly/d/null-undefined
  15417. * @param {ShareLinkUpdateManyArgs} args - Arguments to update one or more rows.
  15418. * @example
  15419. * // Update many ShareLinks
  15420. * const shareLink = await prisma.shareLink.updateMany({
  15421. * where: {
  15422. * // ... provide filter here
  15423. * },
  15424. * data: {
  15425. * // ... provide data here
  15426. * }
  15427. * })
  15428. *
  15429. */
  15430. updateMany<T extends ShareLinkUpdateManyArgs>(args: SelectSubset<T, ShareLinkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15431. /**
  15432. * Update zero or more ShareLinks and returns the data updated in the database.
  15433. * @param {ShareLinkUpdateManyAndReturnArgs} args - Arguments to update many ShareLinks.
  15434. * @example
  15435. * // Update many ShareLinks
  15436. * const shareLink = await prisma.shareLink.updateManyAndReturn({
  15437. * where: {
  15438. * // ... provide filter here
  15439. * },
  15440. * data: [
  15441. * // ... provide data here
  15442. * ]
  15443. * })
  15444. *
  15445. * // Update zero or more ShareLinks and only return the `id`
  15446. * const shareLinkWithIdOnly = await prisma.shareLink.updateManyAndReturn({
  15447. * select: { id: true },
  15448. * where: {
  15449. * // ... provide filter here
  15450. * },
  15451. * data: [
  15452. * // ... provide data here
  15453. * ]
  15454. * })
  15455. * Note, that providing `undefined` is treated as the value not being there.
  15456. * Read more here: https://pris.ly/d/null-undefined
  15457. *
  15458. */
  15459. updateManyAndReturn<T extends ShareLinkUpdateManyAndReturnArgs>(args: SelectSubset<T, ShareLinkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  15460. /**
  15461. * Create or update one ShareLink.
  15462. * @param {ShareLinkUpsertArgs} args - Arguments to update or create a ShareLink.
  15463. * @example
  15464. * // Update or create a ShareLink
  15465. * const shareLink = await prisma.shareLink.upsert({
  15466. * create: {
  15467. * // ... data to create a ShareLink
  15468. * },
  15469. * update: {
  15470. * // ... in case it already exists, update
  15471. * },
  15472. * where: {
  15473. * // ... the filter for the ShareLink we want to update
  15474. * }
  15475. * })
  15476. */
  15477. upsert<T extends ShareLinkUpsertArgs>(args: SelectSubset<T, ShareLinkUpsertArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15478. /**
  15479. * Count the number of ShareLinks.
  15480. * Note, that providing `undefined` is treated as the value not being there.
  15481. * Read more here: https://pris.ly/d/null-undefined
  15482. * @param {ShareLinkCountArgs} args - Arguments to filter ShareLinks to count.
  15483. * @example
  15484. * // Count the number of ShareLinks
  15485. * const count = await prisma.shareLink.count({
  15486. * where: {
  15487. * // ... the filter for the ShareLinks we want to count
  15488. * }
  15489. * })
  15490. **/
  15491. count<T extends ShareLinkCountArgs>(
  15492. args?: Subset<T, ShareLinkCountArgs>,
  15493. ): Prisma.PrismaPromise<
  15494. T extends $Utils.Record<'select', any>
  15495. ? T['select'] extends true
  15496. ? number
  15497. : GetScalarType<T['select'], ShareLinkCountAggregateOutputType>
  15498. : number
  15499. >
  15500. /**
  15501. * Allows you to perform aggregations operations on a ShareLink.
  15502. * Note, that providing `undefined` is treated as the value not being there.
  15503. * Read more here: https://pris.ly/d/null-undefined
  15504. * @param {ShareLinkAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  15505. * @example
  15506. * // Ordered by age ascending
  15507. * // Where email contains prisma.io
  15508. * // Limited to the 10 users
  15509. * const aggregations = await prisma.user.aggregate({
  15510. * _avg: {
  15511. * age: true,
  15512. * },
  15513. * where: {
  15514. * email: {
  15515. * contains: "prisma.io",
  15516. * },
  15517. * },
  15518. * orderBy: {
  15519. * age: "asc",
  15520. * },
  15521. * take: 10,
  15522. * })
  15523. **/
  15524. aggregate<T extends ShareLinkAggregateArgs>(args: Subset<T, ShareLinkAggregateArgs>): Prisma.PrismaPromise<GetShareLinkAggregateType<T>>
  15525. /**
  15526. * Group by ShareLink.
  15527. * Note, that providing `undefined` is treated as the value not being there.
  15528. * Read more here: https://pris.ly/d/null-undefined
  15529. * @param {ShareLinkGroupByArgs} args - Group by arguments.
  15530. * @example
  15531. * // Group by city, order by createdAt, get count
  15532. * const result = await prisma.user.groupBy({
  15533. * by: ['city', 'createdAt'],
  15534. * orderBy: {
  15535. * createdAt: true
  15536. * },
  15537. * _count: {
  15538. * _all: true
  15539. * },
  15540. * })
  15541. *
  15542. **/
  15543. groupBy<
  15544. T extends ShareLinkGroupByArgs,
  15545. HasSelectOrTake extends Or<
  15546. Extends<'skip', Keys<T>>,
  15547. Extends<'take', Keys<T>>
  15548. >,
  15549. OrderByArg extends True extends HasSelectOrTake
  15550. ? { orderBy: ShareLinkGroupByArgs['orderBy'] }
  15551. : { orderBy?: ShareLinkGroupByArgs['orderBy'] },
  15552. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  15553. ByFields extends MaybeTupleToUnion<T['by']>,
  15554. ByValid extends Has<ByFields, OrderFields>,
  15555. HavingFields extends GetHavingFields<T['having']>,
  15556. HavingValid extends Has<ByFields, HavingFields>,
  15557. ByEmpty extends T['by'] extends never[] ? True : False,
  15558. InputErrors extends ByEmpty extends True
  15559. ? `Error: "by" must not be empty.`
  15560. : HavingValid extends False
  15561. ? {
  15562. [P in HavingFields]: P extends ByFields
  15563. ? never
  15564. : P extends string
  15565. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  15566. : [
  15567. Error,
  15568. 'Field ',
  15569. P,
  15570. ` in "having" needs to be provided in "by"`,
  15571. ]
  15572. }[HavingFields]
  15573. : 'take' extends Keys<T>
  15574. ? 'orderBy' extends Keys<T>
  15575. ? ByValid extends True
  15576. ? {}
  15577. : {
  15578. [P in OrderFields]: P extends ByFields
  15579. ? never
  15580. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15581. }[OrderFields]
  15582. : 'Error: If you provide "take", you also need to provide "orderBy"'
  15583. : 'skip' extends Keys<T>
  15584. ? 'orderBy' extends Keys<T>
  15585. ? ByValid extends True
  15586. ? {}
  15587. : {
  15588. [P in OrderFields]: P extends ByFields
  15589. ? never
  15590. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15591. }[OrderFields]
  15592. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  15593. : ByValid extends True
  15594. ? {}
  15595. : {
  15596. [P in OrderFields]: P extends ByFields
  15597. ? never
  15598. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15599. }[OrderFields]
  15600. >(args: SubsetIntersection<T, ShareLinkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShareLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  15601. /**
  15602. * Fields of the ShareLink model
  15603. */
  15604. readonly fields: ShareLinkFieldRefs;
  15605. }
  15606. /**
  15607. * The delegate class that acts as a "Promise-like" for ShareLink.
  15608. * Why is this prefixed with `Prisma__`?
  15609. * Because we want to prevent naming conflicts as mentioned in
  15610. * https://github.com/prisma/prisma-client-js/issues/707
  15611. */
  15612. export interface Prisma__ShareLinkClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  15613. readonly [Symbol.toStringTag]: "PrismaPromise"
  15614. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  15615. /**
  15616. * Attaches callbacks for the resolution and/or rejection of the Promise.
  15617. * @param onfulfilled The callback to execute when the Promise is resolved.
  15618. * @param onrejected The callback to execute when the Promise is rejected.
  15619. * @returns A Promise for the completion of which ever callback is executed.
  15620. */
  15621. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  15622. /**
  15623. * Attaches a callback for only the rejection of the Promise.
  15624. * @param onrejected The callback to execute when the Promise is rejected.
  15625. * @returns A Promise for the completion of the callback.
  15626. */
  15627. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  15628. /**
  15629. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  15630. * resolved value cannot be modified from the callback.
  15631. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  15632. * @returns A Promise for the completion of the callback.
  15633. */
  15634. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  15635. }
  15636. /**
  15637. * Fields of the ShareLink model
  15638. */
  15639. interface ShareLinkFieldRefs {
  15640. readonly id: FieldRef<"ShareLink", 'String'>
  15641. readonly workspaceId: FieldRef<"ShareLink", 'String'>
  15642. readonly token: FieldRef<"ShareLink", 'String'>
  15643. readonly expiresAt: FieldRef<"ShareLink", 'DateTime'>
  15644. readonly createdAt: FieldRef<"ShareLink", 'DateTime'>
  15645. }
  15646. // Custom InputTypes
  15647. /**
  15648. * ShareLink findUnique
  15649. */
  15650. export type ShareLinkFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15651. /**
  15652. * Select specific fields to fetch from the ShareLink
  15653. */
  15654. select?: ShareLinkSelect<ExtArgs> | null
  15655. /**
  15656. * Omit specific fields from the ShareLink
  15657. */
  15658. omit?: ShareLinkOmit<ExtArgs> | null
  15659. /**
  15660. * Choose, which related nodes to fetch as well
  15661. */
  15662. include?: ShareLinkInclude<ExtArgs> | null
  15663. /**
  15664. * Filter, which ShareLink to fetch.
  15665. */
  15666. where: ShareLinkWhereUniqueInput
  15667. }
  15668. /**
  15669. * ShareLink findUniqueOrThrow
  15670. */
  15671. export type ShareLinkFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15672. /**
  15673. * Select specific fields to fetch from the ShareLink
  15674. */
  15675. select?: ShareLinkSelect<ExtArgs> | null
  15676. /**
  15677. * Omit specific fields from the ShareLink
  15678. */
  15679. omit?: ShareLinkOmit<ExtArgs> | null
  15680. /**
  15681. * Choose, which related nodes to fetch as well
  15682. */
  15683. include?: ShareLinkInclude<ExtArgs> | null
  15684. /**
  15685. * Filter, which ShareLink to fetch.
  15686. */
  15687. where: ShareLinkWhereUniqueInput
  15688. }
  15689. /**
  15690. * ShareLink findFirst
  15691. */
  15692. export type ShareLinkFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15693. /**
  15694. * Select specific fields to fetch from the ShareLink
  15695. */
  15696. select?: ShareLinkSelect<ExtArgs> | null
  15697. /**
  15698. * Omit specific fields from the ShareLink
  15699. */
  15700. omit?: ShareLinkOmit<ExtArgs> | null
  15701. /**
  15702. * Choose, which related nodes to fetch as well
  15703. */
  15704. include?: ShareLinkInclude<ExtArgs> | null
  15705. /**
  15706. * Filter, which ShareLink to fetch.
  15707. */
  15708. where?: ShareLinkWhereInput
  15709. /**
  15710. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15711. *
  15712. * Determine the order of ShareLinks to fetch.
  15713. */
  15714. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15715. /**
  15716. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15717. *
  15718. * Sets the position for searching for ShareLinks.
  15719. */
  15720. cursor?: ShareLinkWhereUniqueInput
  15721. /**
  15722. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15723. *
  15724. * Take `±n` ShareLinks from the position of the cursor.
  15725. */
  15726. take?: number
  15727. /**
  15728. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15729. *
  15730. * Skip the first `n` ShareLinks.
  15731. */
  15732. skip?: number
  15733. /**
  15734. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15735. *
  15736. * Filter by unique combinations of ShareLinks.
  15737. */
  15738. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15739. }
  15740. /**
  15741. * ShareLink findFirstOrThrow
  15742. */
  15743. export type ShareLinkFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15744. /**
  15745. * Select specific fields to fetch from the ShareLink
  15746. */
  15747. select?: ShareLinkSelect<ExtArgs> | null
  15748. /**
  15749. * Omit specific fields from the ShareLink
  15750. */
  15751. omit?: ShareLinkOmit<ExtArgs> | null
  15752. /**
  15753. * Choose, which related nodes to fetch as well
  15754. */
  15755. include?: ShareLinkInclude<ExtArgs> | null
  15756. /**
  15757. * Filter, which ShareLink to fetch.
  15758. */
  15759. where?: ShareLinkWhereInput
  15760. /**
  15761. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15762. *
  15763. * Determine the order of ShareLinks to fetch.
  15764. */
  15765. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15766. /**
  15767. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15768. *
  15769. * Sets the position for searching for ShareLinks.
  15770. */
  15771. cursor?: ShareLinkWhereUniqueInput
  15772. /**
  15773. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15774. *
  15775. * Take `±n` ShareLinks from the position of the cursor.
  15776. */
  15777. take?: number
  15778. /**
  15779. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15780. *
  15781. * Skip the first `n` ShareLinks.
  15782. */
  15783. skip?: number
  15784. /**
  15785. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15786. *
  15787. * Filter by unique combinations of ShareLinks.
  15788. */
  15789. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15790. }
  15791. /**
  15792. * ShareLink findMany
  15793. */
  15794. export type ShareLinkFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15795. /**
  15796. * Select specific fields to fetch from the ShareLink
  15797. */
  15798. select?: ShareLinkSelect<ExtArgs> | null
  15799. /**
  15800. * Omit specific fields from the ShareLink
  15801. */
  15802. omit?: ShareLinkOmit<ExtArgs> | null
  15803. /**
  15804. * Choose, which related nodes to fetch as well
  15805. */
  15806. include?: ShareLinkInclude<ExtArgs> | null
  15807. /**
  15808. * Filter, which ShareLinks to fetch.
  15809. */
  15810. where?: ShareLinkWhereInput
  15811. /**
  15812. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15813. *
  15814. * Determine the order of ShareLinks to fetch.
  15815. */
  15816. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15817. /**
  15818. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15819. *
  15820. * Sets the position for listing ShareLinks.
  15821. */
  15822. cursor?: ShareLinkWhereUniqueInput
  15823. /**
  15824. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15825. *
  15826. * Take `±n` ShareLinks from the position of the cursor.
  15827. */
  15828. take?: number
  15829. /**
  15830. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15831. *
  15832. * Skip the first `n` ShareLinks.
  15833. */
  15834. skip?: number
  15835. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15836. }
  15837. /**
  15838. * ShareLink create
  15839. */
  15840. export type ShareLinkCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15841. /**
  15842. * Select specific fields to fetch from the ShareLink
  15843. */
  15844. select?: ShareLinkSelect<ExtArgs> | null
  15845. /**
  15846. * Omit specific fields from the ShareLink
  15847. */
  15848. omit?: ShareLinkOmit<ExtArgs> | null
  15849. /**
  15850. * Choose, which related nodes to fetch as well
  15851. */
  15852. include?: ShareLinkInclude<ExtArgs> | null
  15853. /**
  15854. * The data needed to create a ShareLink.
  15855. */
  15856. data: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  15857. }
  15858. /**
  15859. * ShareLink createMany
  15860. */
  15861. export type ShareLinkCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15862. /**
  15863. * The data used to create many ShareLinks.
  15864. */
  15865. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  15866. skipDuplicates?: boolean
  15867. }
  15868. /**
  15869. * ShareLink createManyAndReturn
  15870. */
  15871. export type ShareLinkCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15872. /**
  15873. * Select specific fields to fetch from the ShareLink
  15874. */
  15875. select?: ShareLinkSelectCreateManyAndReturn<ExtArgs> | null
  15876. /**
  15877. * Omit specific fields from the ShareLink
  15878. */
  15879. omit?: ShareLinkOmit<ExtArgs> | null
  15880. /**
  15881. * The data used to create many ShareLinks.
  15882. */
  15883. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  15884. skipDuplicates?: boolean
  15885. /**
  15886. * Choose, which related nodes to fetch as well
  15887. */
  15888. include?: ShareLinkIncludeCreateManyAndReturn<ExtArgs> | null
  15889. }
  15890. /**
  15891. * ShareLink update
  15892. */
  15893. export type ShareLinkUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15894. /**
  15895. * Select specific fields to fetch from the ShareLink
  15896. */
  15897. select?: ShareLinkSelect<ExtArgs> | null
  15898. /**
  15899. * Omit specific fields from the ShareLink
  15900. */
  15901. omit?: ShareLinkOmit<ExtArgs> | null
  15902. /**
  15903. * Choose, which related nodes to fetch as well
  15904. */
  15905. include?: ShareLinkInclude<ExtArgs> | null
  15906. /**
  15907. * The data needed to update a ShareLink.
  15908. */
  15909. data: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  15910. /**
  15911. * Choose, which ShareLink to update.
  15912. */
  15913. where: ShareLinkWhereUniqueInput
  15914. }
  15915. /**
  15916. * ShareLink updateMany
  15917. */
  15918. export type ShareLinkUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15919. /**
  15920. * The data used to update ShareLinks.
  15921. */
  15922. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  15923. /**
  15924. * Filter which ShareLinks to update
  15925. */
  15926. where?: ShareLinkWhereInput
  15927. /**
  15928. * Limit how many ShareLinks to update.
  15929. */
  15930. limit?: number
  15931. }
  15932. /**
  15933. * ShareLink updateManyAndReturn
  15934. */
  15935. export type ShareLinkUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15936. /**
  15937. * Select specific fields to fetch from the ShareLink
  15938. */
  15939. select?: ShareLinkSelectUpdateManyAndReturn<ExtArgs> | null
  15940. /**
  15941. * Omit specific fields from the ShareLink
  15942. */
  15943. omit?: ShareLinkOmit<ExtArgs> | null
  15944. /**
  15945. * The data used to update ShareLinks.
  15946. */
  15947. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  15948. /**
  15949. * Filter which ShareLinks to update
  15950. */
  15951. where?: ShareLinkWhereInput
  15952. /**
  15953. * Limit how many ShareLinks to update.
  15954. */
  15955. limit?: number
  15956. /**
  15957. * Choose, which related nodes to fetch as well
  15958. */
  15959. include?: ShareLinkIncludeUpdateManyAndReturn<ExtArgs> | null
  15960. }
  15961. /**
  15962. * ShareLink upsert
  15963. */
  15964. export type ShareLinkUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15965. /**
  15966. * Select specific fields to fetch from the ShareLink
  15967. */
  15968. select?: ShareLinkSelect<ExtArgs> | null
  15969. /**
  15970. * Omit specific fields from the ShareLink
  15971. */
  15972. omit?: ShareLinkOmit<ExtArgs> | null
  15973. /**
  15974. * Choose, which related nodes to fetch as well
  15975. */
  15976. include?: ShareLinkInclude<ExtArgs> | null
  15977. /**
  15978. * The filter to search for the ShareLink to update in case it exists.
  15979. */
  15980. where: ShareLinkWhereUniqueInput
  15981. /**
  15982. * In case the ShareLink found by the `where` argument doesn't exist, create a new ShareLink with this data.
  15983. */
  15984. create: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  15985. /**
  15986. * In case the ShareLink was found with the provided `where` argument, update it with this data.
  15987. */
  15988. update: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  15989. }
  15990. /**
  15991. * ShareLink delete
  15992. */
  15993. export type ShareLinkDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15994. /**
  15995. * Select specific fields to fetch from the ShareLink
  15996. */
  15997. select?: ShareLinkSelect<ExtArgs> | null
  15998. /**
  15999. * Omit specific fields from the ShareLink
  16000. */
  16001. omit?: ShareLinkOmit<ExtArgs> | null
  16002. /**
  16003. * Choose, which related nodes to fetch as well
  16004. */
  16005. include?: ShareLinkInclude<ExtArgs> | null
  16006. /**
  16007. * Filter which ShareLink to delete.
  16008. */
  16009. where: ShareLinkWhereUniqueInput
  16010. }
  16011. /**
  16012. * ShareLink deleteMany
  16013. */
  16014. export type ShareLinkDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16015. /**
  16016. * Filter which ShareLinks to delete
  16017. */
  16018. where?: ShareLinkWhereInput
  16019. /**
  16020. * Limit how many ShareLinks to delete.
  16021. */
  16022. limit?: number
  16023. }
  16024. /**
  16025. * ShareLink without action
  16026. */
  16027. export type ShareLinkDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16028. /**
  16029. * Select specific fields to fetch from the ShareLink
  16030. */
  16031. select?: ShareLinkSelect<ExtArgs> | null
  16032. /**
  16033. * Omit specific fields from the ShareLink
  16034. */
  16035. omit?: ShareLinkOmit<ExtArgs> | null
  16036. /**
  16037. * Choose, which related nodes to fetch as well
  16038. */
  16039. include?: ShareLinkInclude<ExtArgs> | null
  16040. }
  16041. /**
  16042. * Enums
  16043. */
  16044. export const TransactionIsolationLevel: {
  16045. ReadUncommitted: 'ReadUncommitted',
  16046. ReadCommitted: 'ReadCommitted',
  16047. RepeatableRead: 'RepeatableRead',
  16048. Serializable: 'Serializable'
  16049. };
  16050. export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
  16051. export const WorkspaceScalarFieldEnum: {
  16052. id: 'id',
  16053. name: 'name',
  16054. slug: 'slug',
  16055. sector: 'sector',
  16056. companySize: 'companySize',
  16057. contactEmail: 'contactEmail',
  16058. tier: 'tier',
  16059. llmCallsThisMonth: 'llmCallsThisMonth',
  16060. llmCallsResetAt: 'llmCallsResetAt',
  16061. autoRelanceEnabled: 'autoRelanceEnabled',
  16062. exportsThisMonth: 'exportsThisMonth',
  16063. exportsResetAt: 'exportsResetAt',
  16064. lastVisitedAt: 'lastVisitedAt',
  16065. onboardingDismissed: 'onboardingDismissed',
  16066. createdAt: 'createdAt',
  16067. updatedAt: 'updatedAt',
  16068. ownerId: 'ownerId'
  16069. };
  16070. export type WorkspaceScalarFieldEnum = (typeof WorkspaceScalarFieldEnum)[keyof typeof WorkspaceScalarFieldEnum]
  16071. export const ManualRelanceLogScalarFieldEnum: {
  16072. id: 'id',
  16073. workspaceId: 'workspaceId',
  16074. subject: 'subject',
  16075. recipientCount: 'recipientCount',
  16076. sentCount: 'sentCount',
  16077. failedCount: 'failedCount',
  16078. sentAt: 'sentAt'
  16079. };
  16080. export type ManualRelanceLogScalarFieldEnum = (typeof ManualRelanceLogScalarFieldEnum)[keyof typeof ManualRelanceLogScalarFieldEnum]
  16081. export const ContributorScalarFieldEnum: {
  16082. id: 'id',
  16083. workspaceId: 'workspaceId',
  16084. email: 'email',
  16085. service: 'service',
  16086. status: 'status',
  16087. invitedAt: 'invitedAt',
  16088. lastRemindedAt: 'lastRemindedAt',
  16089. createdAt: 'createdAt'
  16090. };
  16091. export type ContributorScalarFieldEnum = (typeof ContributorScalarFieldEnum)[keyof typeof ContributorScalarFieldEnum]
  16092. export const IdeaScalarFieldEnum: {
  16093. id: 'id',
  16094. workspaceId: 'workspaceId',
  16095. contributorEmail: 'contributorEmail',
  16096. contributorId: 'contributorId',
  16097. department: 'department',
  16098. problemDescription: 'problemDescription',
  16099. estimatedImpact: 'estimatedImpact',
  16100. frequency: 'frequency',
  16101. optionalWhoAffected: 'optionalWhoAffected',
  16102. optionalAlreadyTried: 'optionalAlreadyTried',
  16103. optionalSuccessLooksLike: 'optionalSuccessLooksLike',
  16104. status: 'status',
  16105. llmTitle: 'llmTitle',
  16106. llmDomain: 'llmDomain',
  16107. llmAiType: 'llmAiType',
  16108. llmExplanation: 'llmExplanation',
  16109. llmScoreImpact: 'llmScoreImpact',
  16110. llmScoreFeasibility: 'llmScoreFeasibility',
  16111. llmScoreUrgency: 'llmScoreUrgency',
  16112. llmEnrichedAt: 'llmEnrichedAt',
  16113. llmEnrichFailed: 'llmEnrichFailed',
  16114. manualScoreImpact: 'manualScoreImpact',
  16115. manualScoreFeasibility: 'manualScoreFeasibility',
  16116. manualScoreUrgency: 'manualScoreUrgency',
  16117. priorityOrder: 'priorityOrder',
  16118. emailMessageId: 'emailMessageId',
  16119. createdAt: 'createdAt',
  16120. updatedAt: 'updatedAt'
  16121. };
  16122. export type IdeaScalarFieldEnum = (typeof IdeaScalarFieldEnum)[keyof typeof IdeaScalarFieldEnum]
  16123. export const PostScalarFieldEnum: {
  16124. id: 'id',
  16125. name: 'name',
  16126. createdAt: 'createdAt',
  16127. updatedAt: 'updatedAt',
  16128. createdById: 'createdById'
  16129. };
  16130. export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum]
  16131. export const AccountScalarFieldEnum: {
  16132. id: 'id',
  16133. userId: 'userId',
  16134. type: 'type',
  16135. provider: 'provider',
  16136. providerAccountId: 'providerAccountId',
  16137. refresh_token: 'refresh_token',
  16138. access_token: 'access_token',
  16139. expires_at: 'expires_at',
  16140. token_type: 'token_type',
  16141. scope: 'scope',
  16142. id_token: 'id_token',
  16143. session_state: 'session_state',
  16144. refresh_token_expires_in: 'refresh_token_expires_in'
  16145. };
  16146. export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
  16147. export const SessionScalarFieldEnum: {
  16148. id: 'id',
  16149. sessionToken: 'sessionToken',
  16150. userId: 'userId',
  16151. expires: 'expires'
  16152. };
  16153. export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
  16154. export const UserScalarFieldEnum: {
  16155. id: 'id',
  16156. name: 'name',
  16157. email: 'email',
  16158. emailVerified: 'emailVerified',
  16159. password: 'password',
  16160. legalTermsAcceptedAt: 'legalTermsAcceptedAt',
  16161. image: 'image'
  16162. };
  16163. export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
  16164. export const VerificationTokenScalarFieldEnum: {
  16165. identifier: 'identifier',
  16166. token: 'token',
  16167. expires: 'expires'
  16168. };
  16169. export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum]
  16170. export const IdeaAttachmentScalarFieldEnum: {
  16171. id: 'id',
  16172. ideaId: 'ideaId',
  16173. workspaceId: 'workspaceId',
  16174. filename: 'filename',
  16175. contentType: 'contentType',
  16176. size: 'size',
  16177. url: 'url',
  16178. blobPath: 'blobPath',
  16179. createdAt: 'createdAt'
  16180. };
  16181. export type IdeaAttachmentScalarFieldEnum = (typeof IdeaAttachmentScalarFieldEnum)[keyof typeof IdeaAttachmentScalarFieldEnum]
  16182. export const QualificationQuestionScalarFieldEnum: {
  16183. id: 'id',
  16184. ideaId: 'ideaId',
  16185. workspaceId: 'workspaceId',
  16186. questionText: 'questionText',
  16187. responseToken: 'responseToken',
  16188. askedAt: 'askedAt',
  16189. responseText: 'responseText',
  16190. answeredAt: 'answeredAt'
  16191. };
  16192. export type QualificationQuestionScalarFieldEnum = (typeof QualificationQuestionScalarFieldEnum)[keyof typeof QualificationQuestionScalarFieldEnum]
  16193. export const LibraryCaseScalarFieldEnum: {
  16194. id: 'id',
  16195. sector: 'sector',
  16196. department: 'department',
  16197. title: 'title',
  16198. description: 'description',
  16199. createdAt: 'createdAt',
  16200. updatedAt: 'updatedAt'
  16201. };
  16202. export type LibraryCaseScalarFieldEnum = (typeof LibraryCaseScalarFieldEnum)[keyof typeof LibraryCaseScalarFieldEnum]
  16203. export const ShareLinkScalarFieldEnum: {
  16204. id: 'id',
  16205. workspaceId: 'workspaceId',
  16206. token: 'token',
  16207. expiresAt: 'expiresAt',
  16208. createdAt: 'createdAt'
  16209. };
  16210. export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
  16211. export const SortOrder: {
  16212. asc: 'asc',
  16213. desc: 'desc'
  16214. };
  16215. export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
  16216. export const QueryMode: {
  16217. default: 'default',
  16218. insensitive: 'insensitive'
  16219. };
  16220. export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
  16221. export const NullsOrder: {
  16222. first: 'first',
  16223. last: 'last'
  16224. };
  16225. export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
  16226. /**
  16227. * Field references
  16228. */
  16229. /**
  16230. * Reference to a field of type 'String'
  16231. */
  16232. export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
  16233. /**
  16234. * Reference to a field of type 'String[]'
  16235. */
  16236. export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
  16237. /**
  16238. * Reference to a field of type 'Int'
  16239. */
  16240. export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
  16241. /**
  16242. * Reference to a field of type 'Int[]'
  16243. */
  16244. export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
  16245. /**
  16246. * Reference to a field of type 'WorkspaceTier'
  16247. */
  16248. export type EnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier'>
  16249. /**
  16250. * Reference to a field of type 'WorkspaceTier[]'
  16251. */
  16252. export type ListEnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier[]'>
  16253. /**
  16254. * Reference to a field of type 'DateTime'
  16255. */
  16256. export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
  16257. /**
  16258. * Reference to a field of type 'DateTime[]'
  16259. */
  16260. export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
  16261. /**
  16262. * Reference to a field of type 'Boolean'
  16263. */
  16264. export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
  16265. /**
  16266. * Reference to a field of type 'ContributorStatus'
  16267. */
  16268. export type EnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus'>
  16269. /**
  16270. * Reference to a field of type 'ContributorStatus[]'
  16271. */
  16272. export type ListEnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus[]'>
  16273. /**
  16274. * Reference to a field of type 'ImpactLevel'
  16275. */
  16276. export type EnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel'>
  16277. /**
  16278. * Reference to a field of type 'ImpactLevel[]'
  16279. */
  16280. export type ListEnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel[]'>
  16281. /**
  16282. * Reference to a field of type 'Frequency'
  16283. */
  16284. export type EnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency'>
  16285. /**
  16286. * Reference to a field of type 'Frequency[]'
  16287. */
  16288. export type ListEnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency[]'>
  16289. /**
  16290. * Reference to a field of type 'IdeaStatus'
  16291. */
  16292. export type EnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus'>
  16293. /**
  16294. * Reference to a field of type 'IdeaStatus[]'
  16295. */
  16296. export type ListEnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus[]'>
  16297. /**
  16298. * Reference to a field of type 'Float'
  16299. */
  16300. export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
  16301. /**
  16302. * Reference to a field of type 'Float[]'
  16303. */
  16304. export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
  16305. /**
  16306. * Deep Input Types
  16307. */
  16308. export type WorkspaceWhereInput = {
  16309. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16310. OR?: WorkspaceWhereInput[]
  16311. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16312. id?: StringFilter<"Workspace"> | string
  16313. name?: StringFilter<"Workspace"> | string
  16314. slug?: StringFilter<"Workspace"> | string
  16315. sector?: StringNullableFilter<"Workspace"> | string | null
  16316. companySize?: IntNullableFilter<"Workspace"> | number | null
  16317. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  16318. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  16319. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  16320. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16321. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  16322. exportsThisMonth?: IntFilter<"Workspace"> | number
  16323. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16324. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  16325. onboardingDismissed?: BoolFilter<"Workspace"> | boolean
  16326. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  16327. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  16328. ownerId?: StringFilter<"Workspace"> | string
  16329. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  16330. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  16331. contributors?: ContributorListRelationFilter
  16332. ideas?: IdeaListRelationFilter
  16333. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  16334. }
  16335. export type WorkspaceOrderByWithRelationInput = {
  16336. id?: SortOrder
  16337. name?: SortOrder
  16338. slug?: SortOrder
  16339. sector?: SortOrderInput | SortOrder
  16340. companySize?: SortOrderInput | SortOrder
  16341. contactEmail?: SortOrderInput | SortOrder
  16342. tier?: SortOrder
  16343. llmCallsThisMonth?: SortOrder
  16344. llmCallsResetAt?: SortOrder
  16345. autoRelanceEnabled?: SortOrder
  16346. exportsThisMonth?: SortOrder
  16347. exportsResetAt?: SortOrder
  16348. lastVisitedAt?: SortOrderInput | SortOrder
  16349. onboardingDismissed?: SortOrder
  16350. createdAt?: SortOrder
  16351. updatedAt?: SortOrder
  16352. ownerId?: SortOrder
  16353. shareLink?: ShareLinkOrderByWithRelationInput
  16354. owner?: UserOrderByWithRelationInput
  16355. contributors?: ContributorOrderByRelationAggregateInput
  16356. ideas?: IdeaOrderByRelationAggregateInput
  16357. manualRelanceLogs?: ManualRelanceLogOrderByRelationAggregateInput
  16358. }
  16359. export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
  16360. id?: string
  16361. slug?: string
  16362. ownerId?: string
  16363. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16364. OR?: WorkspaceWhereInput[]
  16365. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16366. name?: StringFilter<"Workspace"> | string
  16367. sector?: StringNullableFilter<"Workspace"> | string | null
  16368. companySize?: IntNullableFilter<"Workspace"> | number | null
  16369. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  16370. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  16371. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  16372. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16373. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  16374. exportsThisMonth?: IntFilter<"Workspace"> | number
  16375. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16376. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  16377. onboardingDismissed?: BoolFilter<"Workspace"> | boolean
  16378. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  16379. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  16380. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  16381. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  16382. contributors?: ContributorListRelationFilter
  16383. ideas?: IdeaListRelationFilter
  16384. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  16385. }, "id" | "slug" | "ownerId">
  16386. export type WorkspaceOrderByWithAggregationInput = {
  16387. id?: SortOrder
  16388. name?: SortOrder
  16389. slug?: SortOrder
  16390. sector?: SortOrderInput | SortOrder
  16391. companySize?: SortOrderInput | SortOrder
  16392. contactEmail?: SortOrderInput | SortOrder
  16393. tier?: SortOrder
  16394. llmCallsThisMonth?: SortOrder
  16395. llmCallsResetAt?: SortOrder
  16396. autoRelanceEnabled?: SortOrder
  16397. exportsThisMonth?: SortOrder
  16398. exportsResetAt?: SortOrder
  16399. lastVisitedAt?: SortOrderInput | SortOrder
  16400. onboardingDismissed?: SortOrder
  16401. createdAt?: SortOrder
  16402. updatedAt?: SortOrder
  16403. ownerId?: SortOrder
  16404. _count?: WorkspaceCountOrderByAggregateInput
  16405. _avg?: WorkspaceAvgOrderByAggregateInput
  16406. _max?: WorkspaceMaxOrderByAggregateInput
  16407. _min?: WorkspaceMinOrderByAggregateInput
  16408. _sum?: WorkspaceSumOrderByAggregateInput
  16409. }
  16410. export type WorkspaceScalarWhereWithAggregatesInput = {
  16411. AND?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  16412. OR?: WorkspaceScalarWhereWithAggregatesInput[]
  16413. NOT?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  16414. id?: StringWithAggregatesFilter<"Workspace"> | string
  16415. name?: StringWithAggregatesFilter<"Workspace"> | string
  16416. slug?: StringWithAggregatesFilter<"Workspace"> | string
  16417. sector?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  16418. companySize?: IntNullableWithAggregatesFilter<"Workspace"> | number | null
  16419. contactEmail?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  16420. tier?: EnumWorkspaceTierWithAggregatesFilter<"Workspace"> | $Enums.WorkspaceTier
  16421. llmCallsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  16422. llmCallsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16423. autoRelanceEnabled?: BoolWithAggregatesFilter<"Workspace"> | boolean
  16424. exportsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  16425. exportsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16426. lastVisitedAt?: DateTimeNullableWithAggregatesFilter<"Workspace"> | Date | string | null
  16427. onboardingDismissed?: BoolWithAggregatesFilter<"Workspace"> | boolean
  16428. createdAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16429. updatedAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16430. ownerId?: StringWithAggregatesFilter<"Workspace"> | string
  16431. }
  16432. export type ManualRelanceLogWhereInput = {
  16433. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16434. OR?: ManualRelanceLogWhereInput[]
  16435. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16436. id?: StringFilter<"ManualRelanceLog"> | string
  16437. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  16438. subject?: StringFilter<"ManualRelanceLog"> | string
  16439. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  16440. sentCount?: IntFilter<"ManualRelanceLog"> | number
  16441. failedCount?: IntFilter<"ManualRelanceLog"> | number
  16442. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  16443. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16444. }
  16445. export type ManualRelanceLogOrderByWithRelationInput = {
  16446. id?: SortOrder
  16447. workspaceId?: SortOrder
  16448. subject?: SortOrder
  16449. recipientCount?: SortOrder
  16450. sentCount?: SortOrder
  16451. failedCount?: SortOrder
  16452. sentAt?: SortOrder
  16453. workspace?: WorkspaceOrderByWithRelationInput
  16454. }
  16455. export type ManualRelanceLogWhereUniqueInput = Prisma.AtLeast<{
  16456. id?: string
  16457. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16458. OR?: ManualRelanceLogWhereInput[]
  16459. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16460. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  16461. subject?: StringFilter<"ManualRelanceLog"> | string
  16462. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  16463. sentCount?: IntFilter<"ManualRelanceLog"> | number
  16464. failedCount?: IntFilter<"ManualRelanceLog"> | number
  16465. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  16466. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16467. }, "id">
  16468. export type ManualRelanceLogOrderByWithAggregationInput = {
  16469. id?: SortOrder
  16470. workspaceId?: SortOrder
  16471. subject?: SortOrder
  16472. recipientCount?: SortOrder
  16473. sentCount?: SortOrder
  16474. failedCount?: SortOrder
  16475. sentAt?: SortOrder
  16476. _count?: ManualRelanceLogCountOrderByAggregateInput
  16477. _avg?: ManualRelanceLogAvgOrderByAggregateInput
  16478. _max?: ManualRelanceLogMaxOrderByAggregateInput
  16479. _min?: ManualRelanceLogMinOrderByAggregateInput
  16480. _sum?: ManualRelanceLogSumOrderByAggregateInput
  16481. }
  16482. export type ManualRelanceLogScalarWhereWithAggregatesInput = {
  16483. AND?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  16484. OR?: ManualRelanceLogScalarWhereWithAggregatesInput[]
  16485. NOT?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  16486. id?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16487. workspaceId?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16488. subject?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16489. recipientCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16490. sentCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16491. failedCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16492. sentAt?: DateTimeWithAggregatesFilter<"ManualRelanceLog"> | Date | string
  16493. }
  16494. export type ContributorWhereInput = {
  16495. AND?: ContributorWhereInput | ContributorWhereInput[]
  16496. OR?: ContributorWhereInput[]
  16497. NOT?: ContributorWhereInput | ContributorWhereInput[]
  16498. id?: StringFilter<"Contributor"> | string
  16499. workspaceId?: StringFilter<"Contributor"> | string
  16500. email?: StringFilter<"Contributor"> | string
  16501. service?: StringNullableFilter<"Contributor"> | string | null
  16502. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  16503. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  16504. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  16505. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  16506. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16507. ideas?: IdeaListRelationFilter
  16508. }
  16509. export type ContributorOrderByWithRelationInput = {
  16510. id?: SortOrder
  16511. workspaceId?: SortOrder
  16512. email?: SortOrder
  16513. service?: SortOrderInput | SortOrder
  16514. status?: SortOrder
  16515. invitedAt?: SortOrder
  16516. lastRemindedAt?: SortOrderInput | SortOrder
  16517. createdAt?: SortOrder
  16518. workspace?: WorkspaceOrderByWithRelationInput
  16519. ideas?: IdeaOrderByRelationAggregateInput
  16520. }
  16521. export type ContributorWhereUniqueInput = Prisma.AtLeast<{
  16522. id?: string
  16523. workspaceId_email?: ContributorWorkspaceIdEmailCompoundUniqueInput
  16524. AND?: ContributorWhereInput | ContributorWhereInput[]
  16525. OR?: ContributorWhereInput[]
  16526. NOT?: ContributorWhereInput | ContributorWhereInput[]
  16527. workspaceId?: StringFilter<"Contributor"> | string
  16528. email?: StringFilter<"Contributor"> | string
  16529. service?: StringNullableFilter<"Contributor"> | string | null
  16530. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  16531. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  16532. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  16533. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  16534. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16535. ideas?: IdeaListRelationFilter
  16536. }, "id" | "workspaceId_email">
  16537. export type ContributorOrderByWithAggregationInput = {
  16538. id?: SortOrder
  16539. workspaceId?: SortOrder
  16540. email?: SortOrder
  16541. service?: SortOrderInput | SortOrder
  16542. status?: SortOrder
  16543. invitedAt?: SortOrder
  16544. lastRemindedAt?: SortOrderInput | SortOrder
  16545. createdAt?: SortOrder
  16546. _count?: ContributorCountOrderByAggregateInput
  16547. _max?: ContributorMaxOrderByAggregateInput
  16548. _min?: ContributorMinOrderByAggregateInput
  16549. }
  16550. export type ContributorScalarWhereWithAggregatesInput = {
  16551. AND?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  16552. OR?: ContributorScalarWhereWithAggregatesInput[]
  16553. NOT?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  16554. id?: StringWithAggregatesFilter<"Contributor"> | string
  16555. workspaceId?: StringWithAggregatesFilter<"Contributor"> | string
  16556. email?: StringWithAggregatesFilter<"Contributor"> | string
  16557. service?: StringNullableWithAggregatesFilter<"Contributor"> | string | null
  16558. status?: EnumContributorStatusWithAggregatesFilter<"Contributor"> | $Enums.ContributorStatus
  16559. invitedAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  16560. lastRemindedAt?: DateTimeNullableWithAggregatesFilter<"Contributor"> | Date | string | null
  16561. createdAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  16562. }
  16563. export type IdeaWhereInput = {
  16564. AND?: IdeaWhereInput | IdeaWhereInput[]
  16565. OR?: IdeaWhereInput[]
  16566. NOT?: IdeaWhereInput | IdeaWhereInput[]
  16567. id?: StringFilter<"Idea"> | string
  16568. workspaceId?: StringFilter<"Idea"> | string
  16569. contributorEmail?: StringFilter<"Idea"> | string
  16570. contributorId?: StringNullableFilter<"Idea"> | string | null
  16571. department?: StringFilter<"Idea"> | string
  16572. problemDescription?: StringFilter<"Idea"> | string
  16573. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  16574. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  16575. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  16576. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  16577. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  16578. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  16579. llmTitle?: StringNullableFilter<"Idea"> | string | null
  16580. llmDomain?: StringNullableFilter<"Idea"> | string | null
  16581. llmAiType?: StringNullableFilter<"Idea"> | string | null
  16582. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  16583. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16584. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16585. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16586. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  16587. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  16588. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16589. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16590. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16591. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  16592. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  16593. createdAt?: DateTimeFilter<"Idea"> | Date | string
  16594. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  16595. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16596. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  16597. attachments?: IdeaAttachmentListRelationFilter
  16598. qualificationQuestions?: QualificationQuestionListRelationFilter
  16599. }
  16600. export type IdeaOrderByWithRelationInput = {
  16601. id?: SortOrder
  16602. workspaceId?: SortOrder
  16603. contributorEmail?: SortOrder
  16604. contributorId?: SortOrderInput | SortOrder
  16605. department?: SortOrder
  16606. problemDescription?: SortOrder
  16607. estimatedImpact?: SortOrder
  16608. frequency?: SortOrder
  16609. optionalWhoAffected?: SortOrderInput | SortOrder
  16610. optionalAlreadyTried?: SortOrderInput | SortOrder
  16611. optionalSuccessLooksLike?: SortOrderInput | SortOrder
  16612. status?: SortOrder
  16613. llmTitle?: SortOrderInput | SortOrder
  16614. llmDomain?: SortOrderInput | SortOrder
  16615. llmAiType?: SortOrderInput | SortOrder
  16616. llmExplanation?: SortOrderInput | SortOrder
  16617. llmScoreImpact?: SortOrderInput | SortOrder
  16618. llmScoreFeasibility?: SortOrderInput | SortOrder
  16619. llmScoreUrgency?: SortOrderInput | SortOrder
  16620. llmEnrichedAt?: SortOrderInput | SortOrder
  16621. llmEnrichFailed?: SortOrder
  16622. manualScoreImpact?: SortOrderInput | SortOrder
  16623. manualScoreFeasibility?: SortOrderInput | SortOrder
  16624. manualScoreUrgency?: SortOrderInput | SortOrder
  16625. priorityOrder?: SortOrderInput | SortOrder
  16626. emailMessageId?: SortOrderInput | SortOrder
  16627. createdAt?: SortOrder
  16628. updatedAt?: SortOrder
  16629. workspace?: WorkspaceOrderByWithRelationInput
  16630. contributor?: ContributorOrderByWithRelationInput
  16631. attachments?: IdeaAttachmentOrderByRelationAggregateInput
  16632. qualificationQuestions?: QualificationQuestionOrderByRelationAggregateInput
  16633. }
  16634. export type IdeaWhereUniqueInput = Prisma.AtLeast<{
  16635. id?: string
  16636. emailMessageId?: string
  16637. AND?: IdeaWhereInput | IdeaWhereInput[]
  16638. OR?: IdeaWhereInput[]
  16639. NOT?: IdeaWhereInput | IdeaWhereInput[]
  16640. workspaceId?: StringFilter<"Idea"> | string
  16641. contributorEmail?: StringFilter<"Idea"> | string
  16642. contributorId?: StringNullableFilter<"Idea"> | string | null
  16643. department?: StringFilter<"Idea"> | string
  16644. problemDescription?: StringFilter<"Idea"> | string
  16645. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  16646. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  16647. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  16648. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  16649. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  16650. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  16651. llmTitle?: StringNullableFilter<"Idea"> | string | null
  16652. llmDomain?: StringNullableFilter<"Idea"> | string | null
  16653. llmAiType?: StringNullableFilter<"Idea"> | string | null
  16654. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  16655. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16656. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16657. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16658. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  16659. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  16660. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16661. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16662. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16663. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  16664. createdAt?: DateTimeFilter<"Idea"> | Date | string
  16665. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  16666. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16667. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  16668. attachments?: IdeaAttachmentListRelationFilter
  16669. qualificationQuestions?: QualificationQuestionListRelationFilter
  16670. }, "id" | "emailMessageId">
  16671. export type IdeaOrderByWithAggregationInput = {
  16672. id?: SortOrder
  16673. workspaceId?: SortOrder
  16674. contributorEmail?: SortOrder
  16675. contributorId?: SortOrderInput | SortOrder
  16676. department?: SortOrder
  16677. problemDescription?: SortOrder
  16678. estimatedImpact?: SortOrder
  16679. frequency?: SortOrder
  16680. optionalWhoAffected?: SortOrderInput | SortOrder
  16681. optionalAlreadyTried?: SortOrderInput | SortOrder
  16682. optionalSuccessLooksLike?: SortOrderInput | SortOrder
  16683. status?: SortOrder
  16684. llmTitle?: SortOrderInput | SortOrder
  16685. llmDomain?: SortOrderInput | SortOrder
  16686. llmAiType?: SortOrderInput | SortOrder
  16687. llmExplanation?: SortOrderInput | SortOrder
  16688. llmScoreImpact?: SortOrderInput | SortOrder
  16689. llmScoreFeasibility?: SortOrderInput | SortOrder
  16690. llmScoreUrgency?: SortOrderInput | SortOrder
  16691. llmEnrichedAt?: SortOrderInput | SortOrder
  16692. llmEnrichFailed?: SortOrder
  16693. manualScoreImpact?: SortOrderInput | SortOrder
  16694. manualScoreFeasibility?: SortOrderInput | SortOrder
  16695. manualScoreUrgency?: SortOrderInput | SortOrder
  16696. priorityOrder?: SortOrderInput | SortOrder
  16697. emailMessageId?: SortOrderInput | SortOrder
  16698. createdAt?: SortOrder
  16699. updatedAt?: SortOrder
  16700. _count?: IdeaCountOrderByAggregateInput
  16701. _avg?: IdeaAvgOrderByAggregateInput
  16702. _max?: IdeaMaxOrderByAggregateInput
  16703. _min?: IdeaMinOrderByAggregateInput
  16704. _sum?: IdeaSumOrderByAggregateInput
  16705. }
  16706. export type IdeaScalarWhereWithAggregatesInput = {
  16707. AND?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  16708. OR?: IdeaScalarWhereWithAggregatesInput[]
  16709. NOT?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  16710. id?: StringWithAggregatesFilter<"Idea"> | string
  16711. workspaceId?: StringWithAggregatesFilter<"Idea"> | string
  16712. contributorEmail?: StringWithAggregatesFilter<"Idea"> | string
  16713. contributorId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16714. department?: StringWithAggregatesFilter<"Idea"> | string
  16715. problemDescription?: StringWithAggregatesFilter<"Idea"> | string
  16716. estimatedImpact?: EnumImpactLevelWithAggregatesFilter<"Idea"> | $Enums.ImpactLevel
  16717. frequency?: EnumFrequencyWithAggregatesFilter<"Idea"> | $Enums.Frequency
  16718. optionalWhoAffected?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16719. optionalAlreadyTried?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16720. optionalSuccessLooksLike?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16721. status?: EnumIdeaStatusWithAggregatesFilter<"Idea"> | $Enums.IdeaStatus
  16722. llmTitle?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16723. llmDomain?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16724. llmAiType?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16725. llmExplanation?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16726. llmScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16727. llmScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16728. llmScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16729. llmEnrichedAt?: DateTimeNullableWithAggregatesFilter<"Idea"> | Date | string | null
  16730. llmEnrichFailed?: BoolWithAggregatesFilter<"Idea"> | boolean
  16731. manualScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16732. manualScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16733. manualScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16734. priorityOrder?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16735. emailMessageId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16736. createdAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  16737. updatedAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  16738. }
  16739. export type PostWhereInput = {
  16740. AND?: PostWhereInput | PostWhereInput[]
  16741. OR?: PostWhereInput[]
  16742. NOT?: PostWhereInput | PostWhereInput[]
  16743. id?: IntFilter<"Post"> | number
  16744. name?: StringFilter<"Post"> | string
  16745. createdAt?: DateTimeFilter<"Post"> | Date | string
  16746. updatedAt?: DateTimeFilter<"Post"> | Date | string
  16747. createdById?: StringFilter<"Post"> | string
  16748. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  16749. }
  16750. export type PostOrderByWithRelationInput = {
  16751. id?: SortOrder
  16752. name?: SortOrder
  16753. createdAt?: SortOrder
  16754. updatedAt?: SortOrder
  16755. createdById?: SortOrder
  16756. createdBy?: UserOrderByWithRelationInput
  16757. }
  16758. export type PostWhereUniqueInput = Prisma.AtLeast<{
  16759. id?: number
  16760. AND?: PostWhereInput | PostWhereInput[]
  16761. OR?: PostWhereInput[]
  16762. NOT?: PostWhereInput | PostWhereInput[]
  16763. name?: StringFilter<"Post"> | string
  16764. createdAt?: DateTimeFilter<"Post"> | Date | string
  16765. updatedAt?: DateTimeFilter<"Post"> | Date | string
  16766. createdById?: StringFilter<"Post"> | string
  16767. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  16768. }, "id">
  16769. export type PostOrderByWithAggregationInput = {
  16770. id?: SortOrder
  16771. name?: SortOrder
  16772. createdAt?: SortOrder
  16773. updatedAt?: SortOrder
  16774. createdById?: SortOrder
  16775. _count?: PostCountOrderByAggregateInput
  16776. _avg?: PostAvgOrderByAggregateInput
  16777. _max?: PostMaxOrderByAggregateInput
  16778. _min?: PostMinOrderByAggregateInput
  16779. _sum?: PostSumOrderByAggregateInput
  16780. }
  16781. export type PostScalarWhereWithAggregatesInput = {
  16782. AND?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  16783. OR?: PostScalarWhereWithAggregatesInput[]
  16784. NOT?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  16785. id?: IntWithAggregatesFilter<"Post"> | number
  16786. name?: StringWithAggregatesFilter<"Post"> | string
  16787. createdAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  16788. updatedAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  16789. createdById?: StringWithAggregatesFilter<"Post"> | string
  16790. }
  16791. export type AccountWhereInput = {
  16792. AND?: AccountWhereInput | AccountWhereInput[]
  16793. OR?: AccountWhereInput[]
  16794. NOT?: AccountWhereInput | AccountWhereInput[]
  16795. id?: StringFilter<"Account"> | string
  16796. userId?: StringFilter<"Account"> | string
  16797. type?: StringFilter<"Account"> | string
  16798. provider?: StringFilter<"Account"> | string
  16799. providerAccountId?: StringFilter<"Account"> | string
  16800. refresh_token?: StringNullableFilter<"Account"> | string | null
  16801. access_token?: StringNullableFilter<"Account"> | string | null
  16802. expires_at?: IntNullableFilter<"Account"> | number | null
  16803. token_type?: StringNullableFilter<"Account"> | string | null
  16804. scope?: StringNullableFilter<"Account"> | string | null
  16805. id_token?: StringNullableFilter<"Account"> | string | null
  16806. session_state?: StringNullableFilter<"Account"> | string | null
  16807. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  16808. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16809. }
  16810. export type AccountOrderByWithRelationInput = {
  16811. id?: SortOrder
  16812. userId?: SortOrder
  16813. type?: SortOrder
  16814. provider?: SortOrder
  16815. providerAccountId?: SortOrder
  16816. refresh_token?: SortOrderInput | SortOrder
  16817. access_token?: SortOrderInput | SortOrder
  16818. expires_at?: SortOrderInput | SortOrder
  16819. token_type?: SortOrderInput | SortOrder
  16820. scope?: SortOrderInput | SortOrder
  16821. id_token?: SortOrderInput | SortOrder
  16822. session_state?: SortOrderInput | SortOrder
  16823. refresh_token_expires_in?: SortOrderInput | SortOrder
  16824. user?: UserOrderByWithRelationInput
  16825. }
  16826. export type AccountWhereUniqueInput = Prisma.AtLeast<{
  16827. id?: string
  16828. provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput
  16829. AND?: AccountWhereInput | AccountWhereInput[]
  16830. OR?: AccountWhereInput[]
  16831. NOT?: AccountWhereInput | AccountWhereInput[]
  16832. userId?: StringFilter<"Account"> | string
  16833. type?: StringFilter<"Account"> | string
  16834. provider?: StringFilter<"Account"> | string
  16835. providerAccountId?: StringFilter<"Account"> | string
  16836. refresh_token?: StringNullableFilter<"Account"> | string | null
  16837. access_token?: StringNullableFilter<"Account"> | string | null
  16838. expires_at?: IntNullableFilter<"Account"> | number | null
  16839. token_type?: StringNullableFilter<"Account"> | string | null
  16840. scope?: StringNullableFilter<"Account"> | string | null
  16841. id_token?: StringNullableFilter<"Account"> | string | null
  16842. session_state?: StringNullableFilter<"Account"> | string | null
  16843. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  16844. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16845. }, "id" | "provider_providerAccountId">
  16846. export type AccountOrderByWithAggregationInput = {
  16847. id?: SortOrder
  16848. userId?: SortOrder
  16849. type?: SortOrder
  16850. provider?: SortOrder
  16851. providerAccountId?: SortOrder
  16852. refresh_token?: SortOrderInput | SortOrder
  16853. access_token?: SortOrderInput | SortOrder
  16854. expires_at?: SortOrderInput | SortOrder
  16855. token_type?: SortOrderInput | SortOrder
  16856. scope?: SortOrderInput | SortOrder
  16857. id_token?: SortOrderInput | SortOrder
  16858. session_state?: SortOrderInput | SortOrder
  16859. refresh_token_expires_in?: SortOrderInput | SortOrder
  16860. _count?: AccountCountOrderByAggregateInput
  16861. _avg?: AccountAvgOrderByAggregateInput
  16862. _max?: AccountMaxOrderByAggregateInput
  16863. _min?: AccountMinOrderByAggregateInput
  16864. _sum?: AccountSumOrderByAggregateInput
  16865. }
  16866. export type AccountScalarWhereWithAggregatesInput = {
  16867. AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  16868. OR?: AccountScalarWhereWithAggregatesInput[]
  16869. NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  16870. id?: StringWithAggregatesFilter<"Account"> | string
  16871. userId?: StringWithAggregatesFilter<"Account"> | string
  16872. type?: StringWithAggregatesFilter<"Account"> | string
  16873. provider?: StringWithAggregatesFilter<"Account"> | string
  16874. providerAccountId?: StringWithAggregatesFilter<"Account"> | string
  16875. refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16876. access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16877. expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null
  16878. token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16879. scope?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16880. id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16881. session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16882. refresh_token_expires_in?: IntNullableWithAggregatesFilter<"Account"> | number | null
  16883. }
  16884. export type SessionWhereInput = {
  16885. AND?: SessionWhereInput | SessionWhereInput[]
  16886. OR?: SessionWhereInput[]
  16887. NOT?: SessionWhereInput | SessionWhereInput[]
  16888. id?: StringFilter<"Session"> | string
  16889. sessionToken?: StringFilter<"Session"> | string
  16890. userId?: StringFilter<"Session"> | string
  16891. expires?: DateTimeFilter<"Session"> | Date | string
  16892. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16893. }
  16894. export type SessionOrderByWithRelationInput = {
  16895. id?: SortOrder
  16896. sessionToken?: SortOrder
  16897. userId?: SortOrder
  16898. expires?: SortOrder
  16899. user?: UserOrderByWithRelationInput
  16900. }
  16901. export type SessionWhereUniqueInput = Prisma.AtLeast<{
  16902. id?: string
  16903. sessionToken?: string
  16904. AND?: SessionWhereInput | SessionWhereInput[]
  16905. OR?: SessionWhereInput[]
  16906. NOT?: SessionWhereInput | SessionWhereInput[]
  16907. userId?: StringFilter<"Session"> | string
  16908. expires?: DateTimeFilter<"Session"> | Date | string
  16909. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16910. }, "id" | "sessionToken">
  16911. export type SessionOrderByWithAggregationInput = {
  16912. id?: SortOrder
  16913. sessionToken?: SortOrder
  16914. userId?: SortOrder
  16915. expires?: SortOrder
  16916. _count?: SessionCountOrderByAggregateInput
  16917. _max?: SessionMaxOrderByAggregateInput
  16918. _min?: SessionMinOrderByAggregateInput
  16919. }
  16920. export type SessionScalarWhereWithAggregatesInput = {
  16921. AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  16922. OR?: SessionScalarWhereWithAggregatesInput[]
  16923. NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  16924. id?: StringWithAggregatesFilter<"Session"> | string
  16925. sessionToken?: StringWithAggregatesFilter<"Session"> | string
  16926. userId?: StringWithAggregatesFilter<"Session"> | string
  16927. expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string
  16928. }
  16929. export type UserWhereInput = {
  16930. AND?: UserWhereInput | UserWhereInput[]
  16931. OR?: UserWhereInput[]
  16932. NOT?: UserWhereInput | UserWhereInput[]
  16933. id?: StringFilter<"User"> | string
  16934. name?: StringNullableFilter<"User"> | string | null
  16935. email?: StringNullableFilter<"User"> | string | null
  16936. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  16937. password?: StringNullableFilter<"User"> | string | null
  16938. legalTermsAcceptedAt?: DateTimeNullableFilter<"User"> | Date | string | null
  16939. image?: StringNullableFilter<"User"> | string | null
  16940. accounts?: AccountListRelationFilter
  16941. sessions?: SessionListRelationFilter
  16942. posts?: PostListRelationFilter
  16943. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  16944. }
  16945. export type UserOrderByWithRelationInput = {
  16946. id?: SortOrder
  16947. name?: SortOrderInput | SortOrder
  16948. email?: SortOrderInput | SortOrder
  16949. emailVerified?: SortOrderInput | SortOrder
  16950. password?: SortOrderInput | SortOrder
  16951. legalTermsAcceptedAt?: SortOrderInput | SortOrder
  16952. image?: SortOrderInput | SortOrder
  16953. accounts?: AccountOrderByRelationAggregateInput
  16954. sessions?: SessionOrderByRelationAggregateInput
  16955. posts?: PostOrderByRelationAggregateInput
  16956. workspace?: WorkspaceOrderByWithRelationInput
  16957. }
  16958. export type UserWhereUniqueInput = Prisma.AtLeast<{
  16959. id?: string
  16960. email?: string
  16961. AND?: UserWhereInput | UserWhereInput[]
  16962. OR?: UserWhereInput[]
  16963. NOT?: UserWhereInput | UserWhereInput[]
  16964. name?: StringNullableFilter<"User"> | string | null
  16965. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  16966. password?: StringNullableFilter<"User"> | string | null
  16967. legalTermsAcceptedAt?: DateTimeNullableFilter<"User"> | Date | string | null
  16968. image?: StringNullableFilter<"User"> | string | null
  16969. accounts?: AccountListRelationFilter
  16970. sessions?: SessionListRelationFilter
  16971. posts?: PostListRelationFilter
  16972. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  16973. }, "id" | "email">
  16974. export type UserOrderByWithAggregationInput = {
  16975. id?: SortOrder
  16976. name?: SortOrderInput | SortOrder
  16977. email?: SortOrderInput | SortOrder
  16978. emailVerified?: SortOrderInput | SortOrder
  16979. password?: SortOrderInput | SortOrder
  16980. legalTermsAcceptedAt?: SortOrderInput | SortOrder
  16981. image?: SortOrderInput | SortOrder
  16982. _count?: UserCountOrderByAggregateInput
  16983. _max?: UserMaxOrderByAggregateInput
  16984. _min?: UserMinOrderByAggregateInput
  16985. }
  16986. export type UserScalarWhereWithAggregatesInput = {
  16987. AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  16988. OR?: UserScalarWhereWithAggregatesInput[]
  16989. NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  16990. id?: StringWithAggregatesFilter<"User"> | string
  16991. name?: StringNullableWithAggregatesFilter<"User"> | string | null
  16992. email?: StringNullableWithAggregatesFilter<"User"> | string | null
  16993. emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
  16994. password?: StringNullableWithAggregatesFilter<"User"> | string | null
  16995. legalTermsAcceptedAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
  16996. image?: StringNullableWithAggregatesFilter<"User"> | string | null
  16997. }
  16998. export type VerificationTokenWhereInput = {
  16999. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  17000. OR?: VerificationTokenWhereInput[]
  17001. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  17002. identifier?: StringFilter<"VerificationToken"> | string
  17003. token?: StringFilter<"VerificationToken"> | string
  17004. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  17005. }
  17006. export type VerificationTokenOrderByWithRelationInput = {
  17007. identifier?: SortOrder
  17008. token?: SortOrder
  17009. expires?: SortOrder
  17010. }
  17011. export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
  17012. token?: string
  17013. identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput
  17014. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  17015. OR?: VerificationTokenWhereInput[]
  17016. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  17017. identifier?: StringFilter<"VerificationToken"> | string
  17018. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  17019. }, "token" | "identifier_token">
  17020. export type VerificationTokenOrderByWithAggregationInput = {
  17021. identifier?: SortOrder
  17022. token?: SortOrder
  17023. expires?: SortOrder
  17024. _count?: VerificationTokenCountOrderByAggregateInput
  17025. _max?: VerificationTokenMaxOrderByAggregateInput
  17026. _min?: VerificationTokenMinOrderByAggregateInput
  17027. }
  17028. export type VerificationTokenScalarWhereWithAggregatesInput = {
  17029. AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  17030. OR?: VerificationTokenScalarWhereWithAggregatesInput[]
  17031. NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  17032. identifier?: StringWithAggregatesFilter<"VerificationToken"> | string
  17033. token?: StringWithAggregatesFilter<"VerificationToken"> | string
  17034. expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string
  17035. }
  17036. export type IdeaAttachmentWhereInput = {
  17037. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17038. OR?: IdeaAttachmentWhereInput[]
  17039. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17040. id?: StringFilter<"IdeaAttachment"> | string
  17041. ideaId?: StringFilter<"IdeaAttachment"> | string
  17042. workspaceId?: StringFilter<"IdeaAttachment"> | string
  17043. filename?: StringFilter<"IdeaAttachment"> | string
  17044. contentType?: StringFilter<"IdeaAttachment"> | string
  17045. size?: IntFilter<"IdeaAttachment"> | number
  17046. url?: StringFilter<"IdeaAttachment"> | string
  17047. blobPath?: StringFilter<"IdeaAttachment"> | string
  17048. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  17049. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17050. }
  17051. export type IdeaAttachmentOrderByWithRelationInput = {
  17052. id?: SortOrder
  17053. ideaId?: SortOrder
  17054. workspaceId?: SortOrder
  17055. filename?: SortOrder
  17056. contentType?: SortOrder
  17057. size?: SortOrder
  17058. url?: SortOrder
  17059. blobPath?: SortOrder
  17060. createdAt?: SortOrder
  17061. idea?: IdeaOrderByWithRelationInput
  17062. }
  17063. export type IdeaAttachmentWhereUniqueInput = Prisma.AtLeast<{
  17064. id?: string
  17065. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17066. OR?: IdeaAttachmentWhereInput[]
  17067. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17068. ideaId?: StringFilter<"IdeaAttachment"> | string
  17069. workspaceId?: StringFilter<"IdeaAttachment"> | string
  17070. filename?: StringFilter<"IdeaAttachment"> | string
  17071. contentType?: StringFilter<"IdeaAttachment"> | string
  17072. size?: IntFilter<"IdeaAttachment"> | number
  17073. url?: StringFilter<"IdeaAttachment"> | string
  17074. blobPath?: StringFilter<"IdeaAttachment"> | string
  17075. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  17076. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17077. }, "id">
  17078. export type IdeaAttachmentOrderByWithAggregationInput = {
  17079. id?: SortOrder
  17080. ideaId?: SortOrder
  17081. workspaceId?: SortOrder
  17082. filename?: SortOrder
  17083. contentType?: SortOrder
  17084. size?: SortOrder
  17085. url?: SortOrder
  17086. blobPath?: SortOrder
  17087. createdAt?: SortOrder
  17088. _count?: IdeaAttachmentCountOrderByAggregateInput
  17089. _avg?: IdeaAttachmentAvgOrderByAggregateInput
  17090. _max?: IdeaAttachmentMaxOrderByAggregateInput
  17091. _min?: IdeaAttachmentMinOrderByAggregateInput
  17092. _sum?: IdeaAttachmentSumOrderByAggregateInput
  17093. }
  17094. export type IdeaAttachmentScalarWhereWithAggregatesInput = {
  17095. AND?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  17096. OR?: IdeaAttachmentScalarWhereWithAggregatesInput[]
  17097. NOT?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  17098. id?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17099. ideaId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17100. workspaceId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17101. filename?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17102. contentType?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17103. size?: IntWithAggregatesFilter<"IdeaAttachment"> | number
  17104. url?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17105. blobPath?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17106. createdAt?: DateTimeWithAggregatesFilter<"IdeaAttachment"> | Date | string
  17107. }
  17108. export type QualificationQuestionWhereInput = {
  17109. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17110. OR?: QualificationQuestionWhereInput[]
  17111. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17112. id?: StringFilter<"QualificationQuestion"> | string
  17113. ideaId?: StringFilter<"QualificationQuestion"> | string
  17114. workspaceId?: StringFilter<"QualificationQuestion"> | string
  17115. questionText?: StringFilter<"QualificationQuestion"> | string
  17116. responseToken?: StringFilter<"QualificationQuestion"> | string
  17117. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  17118. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  17119. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  17120. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17121. }
  17122. export type QualificationQuestionOrderByWithRelationInput = {
  17123. id?: SortOrder
  17124. ideaId?: SortOrder
  17125. workspaceId?: SortOrder
  17126. questionText?: SortOrder
  17127. responseToken?: SortOrder
  17128. askedAt?: SortOrder
  17129. responseText?: SortOrderInput | SortOrder
  17130. answeredAt?: SortOrderInput | SortOrder
  17131. idea?: IdeaOrderByWithRelationInput
  17132. }
  17133. export type QualificationQuestionWhereUniqueInput = Prisma.AtLeast<{
  17134. id?: string
  17135. responseToken?: string
  17136. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17137. OR?: QualificationQuestionWhereInput[]
  17138. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17139. ideaId?: StringFilter<"QualificationQuestion"> | string
  17140. workspaceId?: StringFilter<"QualificationQuestion"> | string
  17141. questionText?: StringFilter<"QualificationQuestion"> | string
  17142. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  17143. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  17144. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  17145. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17146. }, "id" | "responseToken">
  17147. export type QualificationQuestionOrderByWithAggregationInput = {
  17148. id?: SortOrder
  17149. ideaId?: SortOrder
  17150. workspaceId?: SortOrder
  17151. questionText?: SortOrder
  17152. responseToken?: SortOrder
  17153. askedAt?: SortOrder
  17154. responseText?: SortOrderInput | SortOrder
  17155. answeredAt?: SortOrderInput | SortOrder
  17156. _count?: QualificationQuestionCountOrderByAggregateInput
  17157. _max?: QualificationQuestionMaxOrderByAggregateInput
  17158. _min?: QualificationQuestionMinOrderByAggregateInput
  17159. }
  17160. export type QualificationQuestionScalarWhereWithAggregatesInput = {
  17161. AND?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  17162. OR?: QualificationQuestionScalarWhereWithAggregatesInput[]
  17163. NOT?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  17164. id?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17165. ideaId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17166. workspaceId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17167. questionText?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17168. responseToken?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17169. askedAt?: DateTimeWithAggregatesFilter<"QualificationQuestion"> | Date | string
  17170. responseText?: StringNullableWithAggregatesFilter<"QualificationQuestion"> | string | null
  17171. answeredAt?: DateTimeNullableWithAggregatesFilter<"QualificationQuestion"> | Date | string | null
  17172. }
  17173. export type LibraryCaseWhereInput = {
  17174. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17175. OR?: LibraryCaseWhereInput[]
  17176. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17177. id?: StringFilter<"LibraryCase"> | string
  17178. sector?: StringFilter<"LibraryCase"> | string
  17179. department?: StringFilter<"LibraryCase"> | string
  17180. title?: StringFilter<"LibraryCase"> | string
  17181. description?: StringFilter<"LibraryCase"> | string
  17182. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17183. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17184. }
  17185. export type LibraryCaseOrderByWithRelationInput = {
  17186. id?: SortOrder
  17187. sector?: SortOrder
  17188. department?: SortOrder
  17189. title?: SortOrder
  17190. description?: SortOrder
  17191. createdAt?: SortOrder
  17192. updatedAt?: SortOrder
  17193. }
  17194. export type LibraryCaseWhereUniqueInput = Prisma.AtLeast<{
  17195. id?: string
  17196. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17197. OR?: LibraryCaseWhereInput[]
  17198. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17199. sector?: StringFilter<"LibraryCase"> | string
  17200. department?: StringFilter<"LibraryCase"> | string
  17201. title?: StringFilter<"LibraryCase"> | string
  17202. description?: StringFilter<"LibraryCase"> | string
  17203. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17204. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17205. }, "id">
  17206. export type LibraryCaseOrderByWithAggregationInput = {
  17207. id?: SortOrder
  17208. sector?: SortOrder
  17209. department?: SortOrder
  17210. title?: SortOrder
  17211. description?: SortOrder
  17212. createdAt?: SortOrder
  17213. updatedAt?: SortOrder
  17214. _count?: LibraryCaseCountOrderByAggregateInput
  17215. _max?: LibraryCaseMaxOrderByAggregateInput
  17216. _min?: LibraryCaseMinOrderByAggregateInput
  17217. }
  17218. export type LibraryCaseScalarWhereWithAggregatesInput = {
  17219. AND?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  17220. OR?: LibraryCaseScalarWhereWithAggregatesInput[]
  17221. NOT?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  17222. id?: StringWithAggregatesFilter<"LibraryCase"> | string
  17223. sector?: StringWithAggregatesFilter<"LibraryCase"> | string
  17224. department?: StringWithAggregatesFilter<"LibraryCase"> | string
  17225. title?: StringWithAggregatesFilter<"LibraryCase"> | string
  17226. description?: StringWithAggregatesFilter<"LibraryCase"> | string
  17227. createdAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  17228. updatedAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  17229. }
  17230. export type ShareLinkWhereInput = {
  17231. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17232. OR?: ShareLinkWhereInput[]
  17233. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17234. id?: StringFilter<"ShareLink"> | string
  17235. workspaceId?: StringFilter<"ShareLink"> | string
  17236. token?: StringFilter<"ShareLink"> | string
  17237. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  17238. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  17239. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17240. }
  17241. export type ShareLinkOrderByWithRelationInput = {
  17242. id?: SortOrder
  17243. workspaceId?: SortOrder
  17244. token?: SortOrder
  17245. expiresAt?: SortOrderInput | SortOrder
  17246. createdAt?: SortOrder
  17247. workspace?: WorkspaceOrderByWithRelationInput
  17248. }
  17249. export type ShareLinkWhereUniqueInput = Prisma.AtLeast<{
  17250. id?: string
  17251. workspaceId?: string
  17252. token?: string
  17253. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17254. OR?: ShareLinkWhereInput[]
  17255. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17256. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  17257. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  17258. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17259. }, "id" | "workspaceId" | "token">
  17260. export type ShareLinkOrderByWithAggregationInput = {
  17261. id?: SortOrder
  17262. workspaceId?: SortOrder
  17263. token?: SortOrder
  17264. expiresAt?: SortOrderInput | SortOrder
  17265. createdAt?: SortOrder
  17266. _count?: ShareLinkCountOrderByAggregateInput
  17267. _max?: ShareLinkMaxOrderByAggregateInput
  17268. _min?: ShareLinkMinOrderByAggregateInput
  17269. }
  17270. export type ShareLinkScalarWhereWithAggregatesInput = {
  17271. AND?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  17272. OR?: ShareLinkScalarWhereWithAggregatesInput[]
  17273. NOT?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  17274. id?: StringWithAggregatesFilter<"ShareLink"> | string
  17275. workspaceId?: StringWithAggregatesFilter<"ShareLink"> | string
  17276. token?: StringWithAggregatesFilter<"ShareLink"> | string
  17277. expiresAt?: DateTimeNullableWithAggregatesFilter<"ShareLink"> | Date | string | null
  17278. createdAt?: DateTimeWithAggregatesFilter<"ShareLink"> | Date | string
  17279. }
  17280. export type WorkspaceCreateInput = {
  17281. id?: string
  17282. name: string
  17283. slug: string
  17284. sector?: string | null
  17285. companySize?: number | null
  17286. contactEmail?: string | null
  17287. tier?: $Enums.WorkspaceTier
  17288. llmCallsThisMonth?: number
  17289. llmCallsResetAt?: Date | string
  17290. autoRelanceEnabled?: boolean
  17291. exportsThisMonth?: number
  17292. exportsResetAt?: Date | string
  17293. lastVisitedAt?: Date | string | null
  17294. onboardingDismissed?: boolean
  17295. createdAt?: Date | string
  17296. updatedAt?: Date | string
  17297. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  17298. owner: UserCreateNestedOneWithoutWorkspaceInput
  17299. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  17300. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  17301. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  17302. }
  17303. export type WorkspaceUncheckedCreateInput = {
  17304. id?: string
  17305. name: string
  17306. slug: string
  17307. sector?: string | null
  17308. companySize?: number | null
  17309. contactEmail?: string | null
  17310. tier?: $Enums.WorkspaceTier
  17311. llmCallsThisMonth?: number
  17312. llmCallsResetAt?: Date | string
  17313. autoRelanceEnabled?: boolean
  17314. exportsThisMonth?: number
  17315. exportsResetAt?: Date | string
  17316. lastVisitedAt?: Date | string | null
  17317. onboardingDismissed?: boolean
  17318. createdAt?: Date | string
  17319. updatedAt?: Date | string
  17320. ownerId: string
  17321. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  17322. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  17323. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  17324. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  17325. }
  17326. export type WorkspaceUpdateInput = {
  17327. id?: StringFieldUpdateOperationsInput | string
  17328. name?: StringFieldUpdateOperationsInput | string
  17329. slug?: StringFieldUpdateOperationsInput | string
  17330. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17331. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17332. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17333. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17334. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17335. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17336. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17337. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17338. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17339. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17340. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17341. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17342. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17343. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  17344. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  17345. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  17346. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  17347. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  17348. }
  17349. export type WorkspaceUncheckedUpdateInput = {
  17350. id?: StringFieldUpdateOperationsInput | string
  17351. name?: StringFieldUpdateOperationsInput | string
  17352. slug?: StringFieldUpdateOperationsInput | string
  17353. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17354. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17355. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17356. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17357. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17358. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17359. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17360. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17361. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17362. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17363. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17364. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17365. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17366. ownerId?: StringFieldUpdateOperationsInput | string
  17367. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  17368. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  17369. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  17370. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  17371. }
  17372. export type WorkspaceCreateManyInput = {
  17373. id?: string
  17374. name: string
  17375. slug: string
  17376. sector?: string | null
  17377. companySize?: number | null
  17378. contactEmail?: string | null
  17379. tier?: $Enums.WorkspaceTier
  17380. llmCallsThisMonth?: number
  17381. llmCallsResetAt?: Date | string
  17382. autoRelanceEnabled?: boolean
  17383. exportsThisMonth?: number
  17384. exportsResetAt?: Date | string
  17385. lastVisitedAt?: Date | string | null
  17386. onboardingDismissed?: boolean
  17387. createdAt?: Date | string
  17388. updatedAt?: Date | string
  17389. ownerId: string
  17390. }
  17391. export type WorkspaceUpdateManyMutationInput = {
  17392. id?: StringFieldUpdateOperationsInput | string
  17393. name?: StringFieldUpdateOperationsInput | string
  17394. slug?: StringFieldUpdateOperationsInput | string
  17395. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17396. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17397. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17398. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17399. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17400. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17401. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17402. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17403. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17404. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17405. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17406. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17407. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17408. }
  17409. export type WorkspaceUncheckedUpdateManyInput = {
  17410. id?: StringFieldUpdateOperationsInput | string
  17411. name?: StringFieldUpdateOperationsInput | string
  17412. slug?: StringFieldUpdateOperationsInput | string
  17413. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17414. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17415. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17416. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17417. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17418. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17419. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17420. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17421. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17422. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17423. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17424. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17425. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17426. ownerId?: StringFieldUpdateOperationsInput | string
  17427. }
  17428. export type ManualRelanceLogCreateInput = {
  17429. id?: string
  17430. subject: string
  17431. recipientCount: number
  17432. sentCount: number
  17433. failedCount?: number
  17434. sentAt?: Date | string
  17435. workspace: WorkspaceCreateNestedOneWithoutManualRelanceLogsInput
  17436. }
  17437. export type ManualRelanceLogUncheckedCreateInput = {
  17438. id?: string
  17439. workspaceId: string
  17440. subject: string
  17441. recipientCount: number
  17442. sentCount: number
  17443. failedCount?: number
  17444. sentAt?: Date | string
  17445. }
  17446. export type ManualRelanceLogUpdateInput = {
  17447. id?: StringFieldUpdateOperationsInput | string
  17448. subject?: StringFieldUpdateOperationsInput | string
  17449. recipientCount?: IntFieldUpdateOperationsInput | number
  17450. sentCount?: IntFieldUpdateOperationsInput | number
  17451. failedCount?: IntFieldUpdateOperationsInput | number
  17452. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17453. workspace?: WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput
  17454. }
  17455. export type ManualRelanceLogUncheckedUpdateInput = {
  17456. id?: StringFieldUpdateOperationsInput | string
  17457. workspaceId?: StringFieldUpdateOperationsInput | string
  17458. subject?: StringFieldUpdateOperationsInput | string
  17459. recipientCount?: IntFieldUpdateOperationsInput | number
  17460. sentCount?: IntFieldUpdateOperationsInput | number
  17461. failedCount?: IntFieldUpdateOperationsInput | number
  17462. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17463. }
  17464. export type ManualRelanceLogCreateManyInput = {
  17465. id?: string
  17466. workspaceId: string
  17467. subject: string
  17468. recipientCount: number
  17469. sentCount: number
  17470. failedCount?: number
  17471. sentAt?: Date | string
  17472. }
  17473. export type ManualRelanceLogUpdateManyMutationInput = {
  17474. id?: StringFieldUpdateOperationsInput | string
  17475. subject?: StringFieldUpdateOperationsInput | string
  17476. recipientCount?: IntFieldUpdateOperationsInput | number
  17477. sentCount?: IntFieldUpdateOperationsInput | number
  17478. failedCount?: IntFieldUpdateOperationsInput | number
  17479. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17480. }
  17481. export type ManualRelanceLogUncheckedUpdateManyInput = {
  17482. id?: StringFieldUpdateOperationsInput | string
  17483. workspaceId?: StringFieldUpdateOperationsInput | string
  17484. subject?: StringFieldUpdateOperationsInput | string
  17485. recipientCount?: IntFieldUpdateOperationsInput | number
  17486. sentCount?: IntFieldUpdateOperationsInput | number
  17487. failedCount?: IntFieldUpdateOperationsInput | number
  17488. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17489. }
  17490. export type ContributorCreateInput = {
  17491. id?: string
  17492. email: string
  17493. service?: string | null
  17494. status?: $Enums.ContributorStatus
  17495. invitedAt?: Date | string
  17496. lastRemindedAt?: Date | string | null
  17497. createdAt?: Date | string
  17498. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  17499. ideas?: IdeaCreateNestedManyWithoutContributorInput
  17500. }
  17501. export type ContributorUncheckedCreateInput = {
  17502. id?: string
  17503. workspaceId: string
  17504. email: string
  17505. service?: string | null
  17506. status?: $Enums.ContributorStatus
  17507. invitedAt?: Date | string
  17508. lastRemindedAt?: Date | string | null
  17509. createdAt?: Date | string
  17510. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  17511. }
  17512. export type ContributorUpdateInput = {
  17513. id?: StringFieldUpdateOperationsInput | string
  17514. email?: StringFieldUpdateOperationsInput | string
  17515. service?: NullableStringFieldUpdateOperationsInput | string | null
  17516. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17517. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17518. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17519. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17520. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  17521. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  17522. }
  17523. export type ContributorUncheckedUpdateInput = {
  17524. id?: StringFieldUpdateOperationsInput | string
  17525. workspaceId?: StringFieldUpdateOperationsInput | string
  17526. email?: StringFieldUpdateOperationsInput | string
  17527. service?: NullableStringFieldUpdateOperationsInput | string | null
  17528. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17529. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17530. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17531. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17532. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  17533. }
  17534. export type ContributorCreateManyInput = {
  17535. id?: string
  17536. workspaceId: string
  17537. email: string
  17538. service?: string | null
  17539. status?: $Enums.ContributorStatus
  17540. invitedAt?: Date | string
  17541. lastRemindedAt?: Date | string | null
  17542. createdAt?: Date | string
  17543. }
  17544. export type ContributorUpdateManyMutationInput = {
  17545. id?: StringFieldUpdateOperationsInput | string
  17546. email?: StringFieldUpdateOperationsInput | string
  17547. service?: NullableStringFieldUpdateOperationsInput | string | null
  17548. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17549. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17550. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17551. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17552. }
  17553. export type ContributorUncheckedUpdateManyInput = {
  17554. id?: StringFieldUpdateOperationsInput | string
  17555. workspaceId?: StringFieldUpdateOperationsInput | string
  17556. email?: StringFieldUpdateOperationsInput | string
  17557. service?: NullableStringFieldUpdateOperationsInput | string | null
  17558. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17559. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17560. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17561. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17562. }
  17563. export type IdeaCreateInput = {
  17564. id?: string
  17565. contributorEmail: string
  17566. department: string
  17567. problemDescription: string
  17568. estimatedImpact: $Enums.ImpactLevel
  17569. frequency: $Enums.Frequency
  17570. optionalWhoAffected?: string | null
  17571. optionalAlreadyTried?: string | null
  17572. optionalSuccessLooksLike?: string | null
  17573. status?: $Enums.IdeaStatus
  17574. llmTitle?: string | null
  17575. llmDomain?: string | null
  17576. llmAiType?: string | null
  17577. llmExplanation?: string | null
  17578. llmScoreImpact?: number | null
  17579. llmScoreFeasibility?: number | null
  17580. llmScoreUrgency?: number | null
  17581. llmEnrichedAt?: Date | string | null
  17582. llmEnrichFailed?: boolean
  17583. manualScoreImpact?: number | null
  17584. manualScoreFeasibility?: number | null
  17585. manualScoreUrgency?: number | null
  17586. priorityOrder?: number | null
  17587. emailMessageId?: string | null
  17588. createdAt?: Date | string
  17589. updatedAt?: Date | string
  17590. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  17591. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  17592. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  17593. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  17594. }
  17595. export type IdeaUncheckedCreateInput = {
  17596. id?: string
  17597. workspaceId: string
  17598. contributorEmail: string
  17599. contributorId?: string | null
  17600. department: string
  17601. problemDescription: string
  17602. estimatedImpact: $Enums.ImpactLevel
  17603. frequency: $Enums.Frequency
  17604. optionalWhoAffected?: string | null
  17605. optionalAlreadyTried?: string | null
  17606. optionalSuccessLooksLike?: string | null
  17607. status?: $Enums.IdeaStatus
  17608. llmTitle?: string | null
  17609. llmDomain?: string | null
  17610. llmAiType?: string | null
  17611. llmExplanation?: string | null
  17612. llmScoreImpact?: number | null
  17613. llmScoreFeasibility?: number | null
  17614. llmScoreUrgency?: number | null
  17615. llmEnrichedAt?: Date | string | null
  17616. llmEnrichFailed?: boolean
  17617. manualScoreImpact?: number | null
  17618. manualScoreFeasibility?: number | null
  17619. manualScoreUrgency?: number | null
  17620. priorityOrder?: number | null
  17621. emailMessageId?: string | null
  17622. createdAt?: Date | string
  17623. updatedAt?: Date | string
  17624. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  17625. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  17626. }
  17627. export type IdeaUpdateInput = {
  17628. id?: StringFieldUpdateOperationsInput | string
  17629. contributorEmail?: StringFieldUpdateOperationsInput | string
  17630. department?: StringFieldUpdateOperationsInput | string
  17631. problemDescription?: StringFieldUpdateOperationsInput | string
  17632. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17633. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17634. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17635. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17636. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17637. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17638. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17639. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17640. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17641. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17642. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17643. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17644. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17645. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17646. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17647. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17648. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17649. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17650. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17651. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17652. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17653. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17654. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  17655. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  17656. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  17657. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  17658. }
  17659. export type IdeaUncheckedUpdateInput = {
  17660. id?: StringFieldUpdateOperationsInput | string
  17661. workspaceId?: StringFieldUpdateOperationsInput | string
  17662. contributorEmail?: StringFieldUpdateOperationsInput | string
  17663. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  17664. department?: StringFieldUpdateOperationsInput | string
  17665. problemDescription?: StringFieldUpdateOperationsInput | string
  17666. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17667. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17668. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17669. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17670. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17671. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17672. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17673. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17674. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17675. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17676. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17677. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17678. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17679. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17680. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17681. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17682. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17683. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17684. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17685. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17686. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17687. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17688. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  17689. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  17690. }
  17691. export type IdeaCreateManyInput = {
  17692. id?: string
  17693. workspaceId: string
  17694. contributorEmail: string
  17695. contributorId?: string | null
  17696. department: string
  17697. problemDescription: string
  17698. estimatedImpact: $Enums.ImpactLevel
  17699. frequency: $Enums.Frequency
  17700. optionalWhoAffected?: string | null
  17701. optionalAlreadyTried?: string | null
  17702. optionalSuccessLooksLike?: string | null
  17703. status?: $Enums.IdeaStatus
  17704. llmTitle?: string | null
  17705. llmDomain?: string | null
  17706. llmAiType?: string | null
  17707. llmExplanation?: string | null
  17708. llmScoreImpact?: number | null
  17709. llmScoreFeasibility?: number | null
  17710. llmScoreUrgency?: number | null
  17711. llmEnrichedAt?: Date | string | null
  17712. llmEnrichFailed?: boolean
  17713. manualScoreImpact?: number | null
  17714. manualScoreFeasibility?: number | null
  17715. manualScoreUrgency?: number | null
  17716. priorityOrder?: number | null
  17717. emailMessageId?: string | null
  17718. createdAt?: Date | string
  17719. updatedAt?: Date | string
  17720. }
  17721. export type IdeaUpdateManyMutationInput = {
  17722. id?: StringFieldUpdateOperationsInput | string
  17723. contributorEmail?: StringFieldUpdateOperationsInput | string
  17724. department?: StringFieldUpdateOperationsInput | string
  17725. problemDescription?: StringFieldUpdateOperationsInput | string
  17726. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17727. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17728. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17729. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17730. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17731. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17732. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17733. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17734. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17735. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17736. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17737. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17738. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17739. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17740. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17741. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17742. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17743. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17744. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17745. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17746. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17747. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17748. }
  17749. export type IdeaUncheckedUpdateManyInput = {
  17750. id?: StringFieldUpdateOperationsInput | string
  17751. workspaceId?: StringFieldUpdateOperationsInput | string
  17752. contributorEmail?: StringFieldUpdateOperationsInput | string
  17753. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  17754. department?: StringFieldUpdateOperationsInput | string
  17755. problemDescription?: StringFieldUpdateOperationsInput | string
  17756. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17757. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17758. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17759. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17760. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17761. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17762. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17763. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17764. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17765. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17766. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17767. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17768. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17769. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17770. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17771. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17772. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17773. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17774. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17775. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17776. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17777. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17778. }
  17779. export type PostCreateInput = {
  17780. name: string
  17781. createdAt?: Date | string
  17782. updatedAt?: Date | string
  17783. createdBy: UserCreateNestedOneWithoutPostsInput
  17784. }
  17785. export type PostUncheckedCreateInput = {
  17786. id?: number
  17787. name: string
  17788. createdAt?: Date | string
  17789. updatedAt?: Date | string
  17790. createdById: string
  17791. }
  17792. export type PostUpdateInput = {
  17793. name?: StringFieldUpdateOperationsInput | string
  17794. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17795. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17796. createdBy?: UserUpdateOneRequiredWithoutPostsNestedInput
  17797. }
  17798. export type PostUncheckedUpdateInput = {
  17799. id?: IntFieldUpdateOperationsInput | number
  17800. name?: StringFieldUpdateOperationsInput | string
  17801. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17802. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17803. createdById?: StringFieldUpdateOperationsInput | string
  17804. }
  17805. export type PostCreateManyInput = {
  17806. id?: number
  17807. name: string
  17808. createdAt?: Date | string
  17809. updatedAt?: Date | string
  17810. createdById: string
  17811. }
  17812. export type PostUpdateManyMutationInput = {
  17813. name?: StringFieldUpdateOperationsInput | string
  17814. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17815. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17816. }
  17817. export type PostUncheckedUpdateManyInput = {
  17818. id?: IntFieldUpdateOperationsInput | number
  17819. name?: StringFieldUpdateOperationsInput | string
  17820. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17821. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17822. createdById?: StringFieldUpdateOperationsInput | string
  17823. }
  17824. export type AccountCreateInput = {
  17825. id?: string
  17826. type: string
  17827. provider: string
  17828. providerAccountId: string
  17829. refresh_token?: string | null
  17830. access_token?: string | null
  17831. expires_at?: number | null
  17832. token_type?: string | null
  17833. scope?: string | null
  17834. id_token?: string | null
  17835. session_state?: string | null
  17836. refresh_token_expires_in?: number | null
  17837. user: UserCreateNestedOneWithoutAccountsInput
  17838. }
  17839. export type AccountUncheckedCreateInput = {
  17840. id?: string
  17841. userId: string
  17842. type: string
  17843. provider: string
  17844. providerAccountId: string
  17845. refresh_token?: string | null
  17846. access_token?: string | null
  17847. expires_at?: number | null
  17848. token_type?: string | null
  17849. scope?: string | null
  17850. id_token?: string | null
  17851. session_state?: string | null
  17852. refresh_token_expires_in?: number | null
  17853. }
  17854. export type AccountUpdateInput = {
  17855. id?: StringFieldUpdateOperationsInput | string
  17856. type?: StringFieldUpdateOperationsInput | string
  17857. provider?: StringFieldUpdateOperationsInput | string
  17858. providerAccountId?: StringFieldUpdateOperationsInput | string
  17859. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17860. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17861. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17862. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17863. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17864. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17865. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17866. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17867. user?: UserUpdateOneRequiredWithoutAccountsNestedInput
  17868. }
  17869. export type AccountUncheckedUpdateInput = {
  17870. id?: StringFieldUpdateOperationsInput | string
  17871. userId?: StringFieldUpdateOperationsInput | string
  17872. type?: StringFieldUpdateOperationsInput | string
  17873. provider?: StringFieldUpdateOperationsInput | string
  17874. providerAccountId?: StringFieldUpdateOperationsInput | string
  17875. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17876. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17877. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17878. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17879. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17880. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17881. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17882. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17883. }
  17884. export type AccountCreateManyInput = {
  17885. id?: string
  17886. userId: string
  17887. type: string
  17888. provider: string
  17889. providerAccountId: string
  17890. refresh_token?: string | null
  17891. access_token?: string | null
  17892. expires_at?: number | null
  17893. token_type?: string | null
  17894. scope?: string | null
  17895. id_token?: string | null
  17896. session_state?: string | null
  17897. refresh_token_expires_in?: number | null
  17898. }
  17899. export type AccountUpdateManyMutationInput = {
  17900. id?: StringFieldUpdateOperationsInput | string
  17901. type?: StringFieldUpdateOperationsInput | string
  17902. provider?: StringFieldUpdateOperationsInput | string
  17903. providerAccountId?: StringFieldUpdateOperationsInput | string
  17904. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17905. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17906. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17907. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17908. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17909. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17910. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17911. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17912. }
  17913. export type AccountUncheckedUpdateManyInput = {
  17914. id?: StringFieldUpdateOperationsInput | string
  17915. userId?: StringFieldUpdateOperationsInput | string
  17916. type?: StringFieldUpdateOperationsInput | string
  17917. provider?: StringFieldUpdateOperationsInput | string
  17918. providerAccountId?: StringFieldUpdateOperationsInput | string
  17919. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17920. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17921. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17922. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17923. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17924. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17925. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17926. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17927. }
  17928. export type SessionCreateInput = {
  17929. id?: string
  17930. sessionToken: string
  17931. expires: Date | string
  17932. user: UserCreateNestedOneWithoutSessionsInput
  17933. }
  17934. export type SessionUncheckedCreateInput = {
  17935. id?: string
  17936. sessionToken: string
  17937. userId: string
  17938. expires: Date | string
  17939. }
  17940. export type SessionUpdateInput = {
  17941. id?: StringFieldUpdateOperationsInput | string
  17942. sessionToken?: StringFieldUpdateOperationsInput | string
  17943. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17944. user?: UserUpdateOneRequiredWithoutSessionsNestedInput
  17945. }
  17946. export type SessionUncheckedUpdateInput = {
  17947. id?: StringFieldUpdateOperationsInput | string
  17948. sessionToken?: StringFieldUpdateOperationsInput | string
  17949. userId?: StringFieldUpdateOperationsInput | string
  17950. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17951. }
  17952. export type SessionCreateManyInput = {
  17953. id?: string
  17954. sessionToken: string
  17955. userId: string
  17956. expires: Date | string
  17957. }
  17958. export type SessionUpdateManyMutationInput = {
  17959. id?: StringFieldUpdateOperationsInput | string
  17960. sessionToken?: StringFieldUpdateOperationsInput | string
  17961. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17962. }
  17963. export type SessionUncheckedUpdateManyInput = {
  17964. id?: StringFieldUpdateOperationsInput | string
  17965. sessionToken?: StringFieldUpdateOperationsInput | string
  17966. userId?: StringFieldUpdateOperationsInput | string
  17967. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17968. }
  17969. export type UserCreateInput = {
  17970. id?: string
  17971. name?: string | null
  17972. email?: string | null
  17973. emailVerified?: Date | string | null
  17974. password?: string | null
  17975. legalTermsAcceptedAt?: Date | string | null
  17976. image?: string | null
  17977. accounts?: AccountCreateNestedManyWithoutUserInput
  17978. sessions?: SessionCreateNestedManyWithoutUserInput
  17979. posts?: PostCreateNestedManyWithoutCreatedByInput
  17980. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  17981. }
  17982. export type UserUncheckedCreateInput = {
  17983. id?: string
  17984. name?: string | null
  17985. email?: string | null
  17986. emailVerified?: Date | string | null
  17987. password?: string | null
  17988. legalTermsAcceptedAt?: Date | string | null
  17989. image?: string | null
  17990. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  17991. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  17992. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  17993. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  17994. }
  17995. export type UserUpdateInput = {
  17996. id?: StringFieldUpdateOperationsInput | string
  17997. name?: NullableStringFieldUpdateOperationsInput | string | null
  17998. email?: NullableStringFieldUpdateOperationsInput | string | null
  17999. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18000. password?: NullableStringFieldUpdateOperationsInput | string | null
  18001. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18002. image?: NullableStringFieldUpdateOperationsInput | string | null
  18003. accounts?: AccountUpdateManyWithoutUserNestedInput
  18004. sessions?: SessionUpdateManyWithoutUserNestedInput
  18005. posts?: PostUpdateManyWithoutCreatedByNestedInput
  18006. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  18007. }
  18008. export type UserUncheckedUpdateInput = {
  18009. id?: StringFieldUpdateOperationsInput | string
  18010. name?: NullableStringFieldUpdateOperationsInput | string | null
  18011. email?: NullableStringFieldUpdateOperationsInput | string | null
  18012. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18013. password?: NullableStringFieldUpdateOperationsInput | string | null
  18014. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18015. image?: NullableStringFieldUpdateOperationsInput | string | null
  18016. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  18017. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  18018. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  18019. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  18020. }
  18021. export type UserCreateManyInput = {
  18022. id?: string
  18023. name?: string | null
  18024. email?: string | null
  18025. emailVerified?: Date | string | null
  18026. password?: string | null
  18027. legalTermsAcceptedAt?: Date | string | null
  18028. image?: string | null
  18029. }
  18030. export type UserUpdateManyMutationInput = {
  18031. id?: StringFieldUpdateOperationsInput | string
  18032. name?: NullableStringFieldUpdateOperationsInput | string | null
  18033. email?: NullableStringFieldUpdateOperationsInput | string | null
  18034. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18035. password?: NullableStringFieldUpdateOperationsInput | string | null
  18036. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18037. image?: NullableStringFieldUpdateOperationsInput | string | null
  18038. }
  18039. export type UserUncheckedUpdateManyInput = {
  18040. id?: StringFieldUpdateOperationsInput | string
  18041. name?: NullableStringFieldUpdateOperationsInput | string | null
  18042. email?: NullableStringFieldUpdateOperationsInput | string | null
  18043. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18044. password?: NullableStringFieldUpdateOperationsInput | string | null
  18045. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18046. image?: NullableStringFieldUpdateOperationsInput | string | null
  18047. }
  18048. export type VerificationTokenCreateInput = {
  18049. identifier: string
  18050. token: string
  18051. expires: Date | string
  18052. }
  18053. export type VerificationTokenUncheckedCreateInput = {
  18054. identifier: string
  18055. token: string
  18056. expires: Date | string
  18057. }
  18058. export type VerificationTokenUpdateInput = {
  18059. identifier?: StringFieldUpdateOperationsInput | string
  18060. token?: StringFieldUpdateOperationsInput | string
  18061. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18062. }
  18063. export type VerificationTokenUncheckedUpdateInput = {
  18064. identifier?: StringFieldUpdateOperationsInput | string
  18065. token?: StringFieldUpdateOperationsInput | string
  18066. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18067. }
  18068. export type VerificationTokenCreateManyInput = {
  18069. identifier: string
  18070. token: string
  18071. expires: Date | string
  18072. }
  18073. export type VerificationTokenUpdateManyMutationInput = {
  18074. identifier?: StringFieldUpdateOperationsInput | string
  18075. token?: StringFieldUpdateOperationsInput | string
  18076. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18077. }
  18078. export type VerificationTokenUncheckedUpdateManyInput = {
  18079. identifier?: StringFieldUpdateOperationsInput | string
  18080. token?: StringFieldUpdateOperationsInput | string
  18081. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18082. }
  18083. export type IdeaAttachmentCreateInput = {
  18084. id?: string
  18085. workspaceId: string
  18086. filename: string
  18087. contentType: string
  18088. size: number
  18089. url: string
  18090. blobPath: string
  18091. createdAt?: Date | string
  18092. idea: IdeaCreateNestedOneWithoutAttachmentsInput
  18093. }
  18094. export type IdeaAttachmentUncheckedCreateInput = {
  18095. id?: string
  18096. ideaId: string
  18097. workspaceId: string
  18098. filename: string
  18099. contentType: string
  18100. size: number
  18101. url: string
  18102. blobPath: string
  18103. createdAt?: Date | string
  18104. }
  18105. export type IdeaAttachmentUpdateInput = {
  18106. id?: StringFieldUpdateOperationsInput | string
  18107. workspaceId?: StringFieldUpdateOperationsInput | string
  18108. filename?: StringFieldUpdateOperationsInput | string
  18109. contentType?: StringFieldUpdateOperationsInput | string
  18110. size?: IntFieldUpdateOperationsInput | number
  18111. url?: StringFieldUpdateOperationsInput | string
  18112. blobPath?: StringFieldUpdateOperationsInput | string
  18113. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18114. idea?: IdeaUpdateOneRequiredWithoutAttachmentsNestedInput
  18115. }
  18116. export type IdeaAttachmentUncheckedUpdateInput = {
  18117. id?: StringFieldUpdateOperationsInput | string
  18118. ideaId?: StringFieldUpdateOperationsInput | string
  18119. workspaceId?: StringFieldUpdateOperationsInput | string
  18120. filename?: StringFieldUpdateOperationsInput | string
  18121. contentType?: StringFieldUpdateOperationsInput | string
  18122. size?: IntFieldUpdateOperationsInput | number
  18123. url?: StringFieldUpdateOperationsInput | string
  18124. blobPath?: StringFieldUpdateOperationsInput | string
  18125. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18126. }
  18127. export type IdeaAttachmentCreateManyInput = {
  18128. id?: string
  18129. ideaId: string
  18130. workspaceId: string
  18131. filename: string
  18132. contentType: string
  18133. size: number
  18134. url: string
  18135. blobPath: string
  18136. createdAt?: Date | string
  18137. }
  18138. export type IdeaAttachmentUpdateManyMutationInput = {
  18139. id?: StringFieldUpdateOperationsInput | string
  18140. workspaceId?: StringFieldUpdateOperationsInput | string
  18141. filename?: StringFieldUpdateOperationsInput | string
  18142. contentType?: StringFieldUpdateOperationsInput | string
  18143. size?: IntFieldUpdateOperationsInput | number
  18144. url?: StringFieldUpdateOperationsInput | string
  18145. blobPath?: StringFieldUpdateOperationsInput | string
  18146. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18147. }
  18148. export type IdeaAttachmentUncheckedUpdateManyInput = {
  18149. id?: StringFieldUpdateOperationsInput | string
  18150. ideaId?: StringFieldUpdateOperationsInput | string
  18151. workspaceId?: StringFieldUpdateOperationsInput | string
  18152. filename?: StringFieldUpdateOperationsInput | string
  18153. contentType?: StringFieldUpdateOperationsInput | string
  18154. size?: IntFieldUpdateOperationsInput | number
  18155. url?: StringFieldUpdateOperationsInput | string
  18156. blobPath?: StringFieldUpdateOperationsInput | string
  18157. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18158. }
  18159. export type QualificationQuestionCreateInput = {
  18160. id?: string
  18161. workspaceId: string
  18162. questionText: string
  18163. responseToken?: string
  18164. askedAt?: Date | string
  18165. responseText?: string | null
  18166. answeredAt?: Date | string | null
  18167. idea: IdeaCreateNestedOneWithoutQualificationQuestionsInput
  18168. }
  18169. export type QualificationQuestionUncheckedCreateInput = {
  18170. id?: string
  18171. ideaId: string
  18172. workspaceId: string
  18173. questionText: string
  18174. responseToken?: string
  18175. askedAt?: Date | string
  18176. responseText?: string | null
  18177. answeredAt?: Date | string | null
  18178. }
  18179. export type QualificationQuestionUpdateInput = {
  18180. id?: StringFieldUpdateOperationsInput | string
  18181. workspaceId?: StringFieldUpdateOperationsInput | string
  18182. questionText?: StringFieldUpdateOperationsInput | string
  18183. responseToken?: StringFieldUpdateOperationsInput | string
  18184. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18185. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18186. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18187. idea?: IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput
  18188. }
  18189. export type QualificationQuestionUncheckedUpdateInput = {
  18190. id?: StringFieldUpdateOperationsInput | string
  18191. ideaId?: StringFieldUpdateOperationsInput | string
  18192. workspaceId?: StringFieldUpdateOperationsInput | string
  18193. questionText?: StringFieldUpdateOperationsInput | string
  18194. responseToken?: StringFieldUpdateOperationsInput | string
  18195. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18196. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18197. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18198. }
  18199. export type QualificationQuestionCreateManyInput = {
  18200. id?: string
  18201. ideaId: string
  18202. workspaceId: string
  18203. questionText: string
  18204. responseToken?: string
  18205. askedAt?: Date | string
  18206. responseText?: string | null
  18207. answeredAt?: Date | string | null
  18208. }
  18209. export type QualificationQuestionUpdateManyMutationInput = {
  18210. id?: StringFieldUpdateOperationsInput | string
  18211. workspaceId?: StringFieldUpdateOperationsInput | string
  18212. questionText?: StringFieldUpdateOperationsInput | string
  18213. responseToken?: StringFieldUpdateOperationsInput | string
  18214. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18215. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18216. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18217. }
  18218. export type QualificationQuestionUncheckedUpdateManyInput = {
  18219. id?: StringFieldUpdateOperationsInput | string
  18220. ideaId?: StringFieldUpdateOperationsInput | string
  18221. workspaceId?: StringFieldUpdateOperationsInput | string
  18222. questionText?: StringFieldUpdateOperationsInput | string
  18223. responseToken?: StringFieldUpdateOperationsInput | string
  18224. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18225. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18226. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18227. }
  18228. export type LibraryCaseCreateInput = {
  18229. id?: string
  18230. sector: string
  18231. department: string
  18232. title: string
  18233. description: string
  18234. createdAt?: Date | string
  18235. updatedAt?: Date | string
  18236. }
  18237. export type LibraryCaseUncheckedCreateInput = {
  18238. id?: string
  18239. sector: string
  18240. department: string
  18241. title: string
  18242. description: string
  18243. createdAt?: Date | string
  18244. updatedAt?: Date | string
  18245. }
  18246. export type LibraryCaseUpdateInput = {
  18247. id?: StringFieldUpdateOperationsInput | string
  18248. sector?: StringFieldUpdateOperationsInput | string
  18249. department?: StringFieldUpdateOperationsInput | string
  18250. title?: StringFieldUpdateOperationsInput | string
  18251. description?: StringFieldUpdateOperationsInput | string
  18252. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18253. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18254. }
  18255. export type LibraryCaseUncheckedUpdateInput = {
  18256. id?: StringFieldUpdateOperationsInput | string
  18257. sector?: StringFieldUpdateOperationsInput | string
  18258. department?: StringFieldUpdateOperationsInput | string
  18259. title?: StringFieldUpdateOperationsInput | string
  18260. description?: StringFieldUpdateOperationsInput | string
  18261. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18262. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18263. }
  18264. export type LibraryCaseCreateManyInput = {
  18265. id?: string
  18266. sector: string
  18267. department: string
  18268. title: string
  18269. description: string
  18270. createdAt?: Date | string
  18271. updatedAt?: Date | string
  18272. }
  18273. export type LibraryCaseUpdateManyMutationInput = {
  18274. id?: StringFieldUpdateOperationsInput | string
  18275. sector?: StringFieldUpdateOperationsInput | string
  18276. department?: StringFieldUpdateOperationsInput | string
  18277. title?: StringFieldUpdateOperationsInput | string
  18278. description?: StringFieldUpdateOperationsInput | string
  18279. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18280. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18281. }
  18282. export type LibraryCaseUncheckedUpdateManyInput = {
  18283. id?: StringFieldUpdateOperationsInput | string
  18284. sector?: StringFieldUpdateOperationsInput | string
  18285. department?: StringFieldUpdateOperationsInput | string
  18286. title?: StringFieldUpdateOperationsInput | string
  18287. description?: StringFieldUpdateOperationsInput | string
  18288. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18289. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18290. }
  18291. export type ShareLinkCreateInput = {
  18292. id?: string
  18293. token?: string
  18294. expiresAt?: Date | string | null
  18295. createdAt?: Date | string
  18296. workspace: WorkspaceCreateNestedOneWithoutShareLinkInput
  18297. }
  18298. export type ShareLinkUncheckedCreateInput = {
  18299. id?: string
  18300. workspaceId: string
  18301. token?: string
  18302. expiresAt?: Date | string | null
  18303. createdAt?: Date | string
  18304. }
  18305. export type ShareLinkUpdateInput = {
  18306. id?: StringFieldUpdateOperationsInput | string
  18307. token?: StringFieldUpdateOperationsInput | string
  18308. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18309. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18310. workspace?: WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput
  18311. }
  18312. export type ShareLinkUncheckedUpdateInput = {
  18313. id?: StringFieldUpdateOperationsInput | string
  18314. workspaceId?: StringFieldUpdateOperationsInput | string
  18315. token?: StringFieldUpdateOperationsInput | string
  18316. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18317. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18318. }
  18319. export type ShareLinkCreateManyInput = {
  18320. id?: string
  18321. workspaceId: string
  18322. token?: string
  18323. expiresAt?: Date | string | null
  18324. createdAt?: Date | string
  18325. }
  18326. export type ShareLinkUpdateManyMutationInput = {
  18327. id?: StringFieldUpdateOperationsInput | string
  18328. token?: StringFieldUpdateOperationsInput | string
  18329. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18330. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18331. }
  18332. export type ShareLinkUncheckedUpdateManyInput = {
  18333. id?: StringFieldUpdateOperationsInput | string
  18334. workspaceId?: StringFieldUpdateOperationsInput | string
  18335. token?: StringFieldUpdateOperationsInput | string
  18336. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18337. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18338. }
  18339. export type StringFilter<$PrismaModel = never> = {
  18340. equals?: string | StringFieldRefInput<$PrismaModel>
  18341. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  18342. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  18343. lt?: string | StringFieldRefInput<$PrismaModel>
  18344. lte?: string | StringFieldRefInput<$PrismaModel>
  18345. gt?: string | StringFieldRefInput<$PrismaModel>
  18346. gte?: string | StringFieldRefInput<$PrismaModel>
  18347. contains?: string | StringFieldRefInput<$PrismaModel>
  18348. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18349. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18350. mode?: QueryMode
  18351. not?: NestedStringFilter<$PrismaModel> | string
  18352. }
  18353. export type StringNullableFilter<$PrismaModel = never> = {
  18354. equals?: string | StringFieldRefInput<$PrismaModel> | null
  18355. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18356. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18357. lt?: string | StringFieldRefInput<$PrismaModel>
  18358. lte?: string | StringFieldRefInput<$PrismaModel>
  18359. gt?: string | StringFieldRefInput<$PrismaModel>
  18360. gte?: string | StringFieldRefInput<$PrismaModel>
  18361. contains?: string | StringFieldRefInput<$PrismaModel>
  18362. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18363. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18364. mode?: QueryMode
  18365. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  18366. }
  18367. export type IntNullableFilter<$PrismaModel = never> = {
  18368. equals?: number | IntFieldRefInput<$PrismaModel> | null
  18369. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18370. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18371. lt?: number | IntFieldRefInput<$PrismaModel>
  18372. lte?: number | IntFieldRefInput<$PrismaModel>
  18373. gt?: number | IntFieldRefInput<$PrismaModel>
  18374. gte?: number | IntFieldRefInput<$PrismaModel>
  18375. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  18376. }
  18377. export type EnumWorkspaceTierFilter<$PrismaModel = never> = {
  18378. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  18379. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18380. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18381. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  18382. }
  18383. export type IntFilter<$PrismaModel = never> = {
  18384. equals?: number | IntFieldRefInput<$PrismaModel>
  18385. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  18386. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  18387. lt?: number | IntFieldRefInput<$PrismaModel>
  18388. lte?: number | IntFieldRefInput<$PrismaModel>
  18389. gt?: number | IntFieldRefInput<$PrismaModel>
  18390. gte?: number | IntFieldRefInput<$PrismaModel>
  18391. not?: NestedIntFilter<$PrismaModel> | number
  18392. }
  18393. export type DateTimeFilter<$PrismaModel = never> = {
  18394. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18395. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18396. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18397. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18398. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18399. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18400. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18401. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  18402. }
  18403. export type BoolFilter<$PrismaModel = never> = {
  18404. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  18405. not?: NestedBoolFilter<$PrismaModel> | boolean
  18406. }
  18407. export type DateTimeNullableFilter<$PrismaModel = never> = {
  18408. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  18409. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18410. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18411. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18412. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18413. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18414. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18415. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  18416. }
  18417. export type ShareLinkNullableScalarRelationFilter = {
  18418. is?: ShareLinkWhereInput | null
  18419. isNot?: ShareLinkWhereInput | null
  18420. }
  18421. export type UserScalarRelationFilter = {
  18422. is?: UserWhereInput
  18423. isNot?: UserWhereInput
  18424. }
  18425. export type ContributorListRelationFilter = {
  18426. every?: ContributorWhereInput
  18427. some?: ContributorWhereInput
  18428. none?: ContributorWhereInput
  18429. }
  18430. export type IdeaListRelationFilter = {
  18431. every?: IdeaWhereInput
  18432. some?: IdeaWhereInput
  18433. none?: IdeaWhereInput
  18434. }
  18435. export type ManualRelanceLogListRelationFilter = {
  18436. every?: ManualRelanceLogWhereInput
  18437. some?: ManualRelanceLogWhereInput
  18438. none?: ManualRelanceLogWhereInput
  18439. }
  18440. export type SortOrderInput = {
  18441. sort: SortOrder
  18442. nulls?: NullsOrder
  18443. }
  18444. export type ContributorOrderByRelationAggregateInput = {
  18445. _count?: SortOrder
  18446. }
  18447. export type IdeaOrderByRelationAggregateInput = {
  18448. _count?: SortOrder
  18449. }
  18450. export type ManualRelanceLogOrderByRelationAggregateInput = {
  18451. _count?: SortOrder
  18452. }
  18453. export type WorkspaceCountOrderByAggregateInput = {
  18454. id?: SortOrder
  18455. name?: SortOrder
  18456. slug?: SortOrder
  18457. sector?: SortOrder
  18458. companySize?: SortOrder
  18459. contactEmail?: SortOrder
  18460. tier?: SortOrder
  18461. llmCallsThisMonth?: SortOrder
  18462. llmCallsResetAt?: SortOrder
  18463. autoRelanceEnabled?: SortOrder
  18464. exportsThisMonth?: SortOrder
  18465. exportsResetAt?: SortOrder
  18466. lastVisitedAt?: SortOrder
  18467. onboardingDismissed?: SortOrder
  18468. createdAt?: SortOrder
  18469. updatedAt?: SortOrder
  18470. ownerId?: SortOrder
  18471. }
  18472. export type WorkspaceAvgOrderByAggregateInput = {
  18473. companySize?: SortOrder
  18474. llmCallsThisMonth?: SortOrder
  18475. exportsThisMonth?: SortOrder
  18476. }
  18477. export type WorkspaceMaxOrderByAggregateInput = {
  18478. id?: SortOrder
  18479. name?: SortOrder
  18480. slug?: SortOrder
  18481. sector?: SortOrder
  18482. companySize?: SortOrder
  18483. contactEmail?: SortOrder
  18484. tier?: SortOrder
  18485. llmCallsThisMonth?: SortOrder
  18486. llmCallsResetAt?: SortOrder
  18487. autoRelanceEnabled?: SortOrder
  18488. exportsThisMonth?: SortOrder
  18489. exportsResetAt?: SortOrder
  18490. lastVisitedAt?: SortOrder
  18491. onboardingDismissed?: SortOrder
  18492. createdAt?: SortOrder
  18493. updatedAt?: SortOrder
  18494. ownerId?: SortOrder
  18495. }
  18496. export type WorkspaceMinOrderByAggregateInput = {
  18497. id?: SortOrder
  18498. name?: SortOrder
  18499. slug?: SortOrder
  18500. sector?: SortOrder
  18501. companySize?: SortOrder
  18502. contactEmail?: SortOrder
  18503. tier?: SortOrder
  18504. llmCallsThisMonth?: SortOrder
  18505. llmCallsResetAt?: SortOrder
  18506. autoRelanceEnabled?: SortOrder
  18507. exportsThisMonth?: SortOrder
  18508. exportsResetAt?: SortOrder
  18509. lastVisitedAt?: SortOrder
  18510. onboardingDismissed?: SortOrder
  18511. createdAt?: SortOrder
  18512. updatedAt?: SortOrder
  18513. ownerId?: SortOrder
  18514. }
  18515. export type WorkspaceSumOrderByAggregateInput = {
  18516. companySize?: SortOrder
  18517. llmCallsThisMonth?: SortOrder
  18518. exportsThisMonth?: SortOrder
  18519. }
  18520. export type StringWithAggregatesFilter<$PrismaModel = never> = {
  18521. equals?: string | StringFieldRefInput<$PrismaModel>
  18522. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  18523. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  18524. lt?: string | StringFieldRefInput<$PrismaModel>
  18525. lte?: string | StringFieldRefInput<$PrismaModel>
  18526. gt?: string | StringFieldRefInput<$PrismaModel>
  18527. gte?: string | StringFieldRefInput<$PrismaModel>
  18528. contains?: string | StringFieldRefInput<$PrismaModel>
  18529. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18530. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18531. mode?: QueryMode
  18532. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  18533. _count?: NestedIntFilter<$PrismaModel>
  18534. _min?: NestedStringFilter<$PrismaModel>
  18535. _max?: NestedStringFilter<$PrismaModel>
  18536. }
  18537. export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
  18538. equals?: string | StringFieldRefInput<$PrismaModel> | null
  18539. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18540. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18541. lt?: string | StringFieldRefInput<$PrismaModel>
  18542. lte?: string | StringFieldRefInput<$PrismaModel>
  18543. gt?: string | StringFieldRefInput<$PrismaModel>
  18544. gte?: string | StringFieldRefInput<$PrismaModel>
  18545. contains?: string | StringFieldRefInput<$PrismaModel>
  18546. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18547. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18548. mode?: QueryMode
  18549. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  18550. _count?: NestedIntNullableFilter<$PrismaModel>
  18551. _min?: NestedStringNullableFilter<$PrismaModel>
  18552. _max?: NestedStringNullableFilter<$PrismaModel>
  18553. }
  18554. export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
  18555. equals?: number | IntFieldRefInput<$PrismaModel> | null
  18556. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18557. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18558. lt?: number | IntFieldRefInput<$PrismaModel>
  18559. lte?: number | IntFieldRefInput<$PrismaModel>
  18560. gt?: number | IntFieldRefInput<$PrismaModel>
  18561. gte?: number | IntFieldRefInput<$PrismaModel>
  18562. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  18563. _count?: NestedIntNullableFilter<$PrismaModel>
  18564. _avg?: NestedFloatNullableFilter<$PrismaModel>
  18565. _sum?: NestedIntNullableFilter<$PrismaModel>
  18566. _min?: NestedIntNullableFilter<$PrismaModel>
  18567. _max?: NestedIntNullableFilter<$PrismaModel>
  18568. }
  18569. export type EnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  18570. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  18571. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18572. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18573. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  18574. _count?: NestedIntFilter<$PrismaModel>
  18575. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  18576. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  18577. }
  18578. export type IntWithAggregatesFilter<$PrismaModel = never> = {
  18579. equals?: number | IntFieldRefInput<$PrismaModel>
  18580. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  18581. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  18582. lt?: number | IntFieldRefInput<$PrismaModel>
  18583. lte?: number | IntFieldRefInput<$PrismaModel>
  18584. gt?: number | IntFieldRefInput<$PrismaModel>
  18585. gte?: number | IntFieldRefInput<$PrismaModel>
  18586. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  18587. _count?: NestedIntFilter<$PrismaModel>
  18588. _avg?: NestedFloatFilter<$PrismaModel>
  18589. _sum?: NestedIntFilter<$PrismaModel>
  18590. _min?: NestedIntFilter<$PrismaModel>
  18591. _max?: NestedIntFilter<$PrismaModel>
  18592. }
  18593. export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
  18594. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18595. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18596. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18597. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18598. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18599. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18600. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18601. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  18602. _count?: NestedIntFilter<$PrismaModel>
  18603. _min?: NestedDateTimeFilter<$PrismaModel>
  18604. _max?: NestedDateTimeFilter<$PrismaModel>
  18605. }
  18606. export type BoolWithAggregatesFilter<$PrismaModel = never> = {
  18607. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  18608. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  18609. _count?: NestedIntFilter<$PrismaModel>
  18610. _min?: NestedBoolFilter<$PrismaModel>
  18611. _max?: NestedBoolFilter<$PrismaModel>
  18612. }
  18613. export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  18614. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  18615. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18616. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18617. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18618. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18619. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18620. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18621. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  18622. _count?: NestedIntNullableFilter<$PrismaModel>
  18623. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  18624. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  18625. }
  18626. export type WorkspaceScalarRelationFilter = {
  18627. is?: WorkspaceWhereInput
  18628. isNot?: WorkspaceWhereInput
  18629. }
  18630. export type ManualRelanceLogCountOrderByAggregateInput = {
  18631. id?: SortOrder
  18632. workspaceId?: SortOrder
  18633. subject?: SortOrder
  18634. recipientCount?: SortOrder
  18635. sentCount?: SortOrder
  18636. failedCount?: SortOrder
  18637. sentAt?: SortOrder
  18638. }
  18639. export type ManualRelanceLogAvgOrderByAggregateInput = {
  18640. recipientCount?: SortOrder
  18641. sentCount?: SortOrder
  18642. failedCount?: SortOrder
  18643. }
  18644. export type ManualRelanceLogMaxOrderByAggregateInput = {
  18645. id?: SortOrder
  18646. workspaceId?: SortOrder
  18647. subject?: SortOrder
  18648. recipientCount?: SortOrder
  18649. sentCount?: SortOrder
  18650. failedCount?: SortOrder
  18651. sentAt?: SortOrder
  18652. }
  18653. export type ManualRelanceLogMinOrderByAggregateInput = {
  18654. id?: SortOrder
  18655. workspaceId?: SortOrder
  18656. subject?: SortOrder
  18657. recipientCount?: SortOrder
  18658. sentCount?: SortOrder
  18659. failedCount?: SortOrder
  18660. sentAt?: SortOrder
  18661. }
  18662. export type ManualRelanceLogSumOrderByAggregateInput = {
  18663. recipientCount?: SortOrder
  18664. sentCount?: SortOrder
  18665. failedCount?: SortOrder
  18666. }
  18667. export type EnumContributorStatusFilter<$PrismaModel = never> = {
  18668. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  18669. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18670. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18671. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  18672. }
  18673. export type ContributorWorkspaceIdEmailCompoundUniqueInput = {
  18674. workspaceId: string
  18675. email: string
  18676. }
  18677. export type ContributorCountOrderByAggregateInput = {
  18678. id?: SortOrder
  18679. workspaceId?: SortOrder
  18680. email?: SortOrder
  18681. service?: SortOrder
  18682. status?: SortOrder
  18683. invitedAt?: SortOrder
  18684. lastRemindedAt?: SortOrder
  18685. createdAt?: SortOrder
  18686. }
  18687. export type ContributorMaxOrderByAggregateInput = {
  18688. id?: SortOrder
  18689. workspaceId?: SortOrder
  18690. email?: SortOrder
  18691. service?: SortOrder
  18692. status?: SortOrder
  18693. invitedAt?: SortOrder
  18694. lastRemindedAt?: SortOrder
  18695. createdAt?: SortOrder
  18696. }
  18697. export type ContributorMinOrderByAggregateInput = {
  18698. id?: SortOrder
  18699. workspaceId?: SortOrder
  18700. email?: SortOrder
  18701. service?: SortOrder
  18702. status?: SortOrder
  18703. invitedAt?: SortOrder
  18704. lastRemindedAt?: SortOrder
  18705. createdAt?: SortOrder
  18706. }
  18707. export type EnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  18708. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  18709. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18710. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18711. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  18712. _count?: NestedIntFilter<$PrismaModel>
  18713. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  18714. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  18715. }
  18716. export type EnumImpactLevelFilter<$PrismaModel = never> = {
  18717. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  18718. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18719. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18720. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  18721. }
  18722. export type EnumFrequencyFilter<$PrismaModel = never> = {
  18723. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  18724. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18725. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18726. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  18727. }
  18728. export type EnumIdeaStatusFilter<$PrismaModel = never> = {
  18729. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  18730. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18731. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18732. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  18733. }
  18734. export type ContributorNullableScalarRelationFilter = {
  18735. is?: ContributorWhereInput | null
  18736. isNot?: ContributorWhereInput | null
  18737. }
  18738. export type IdeaAttachmentListRelationFilter = {
  18739. every?: IdeaAttachmentWhereInput
  18740. some?: IdeaAttachmentWhereInput
  18741. none?: IdeaAttachmentWhereInput
  18742. }
  18743. export type QualificationQuestionListRelationFilter = {
  18744. every?: QualificationQuestionWhereInput
  18745. some?: QualificationQuestionWhereInput
  18746. none?: QualificationQuestionWhereInput
  18747. }
  18748. export type IdeaAttachmentOrderByRelationAggregateInput = {
  18749. _count?: SortOrder
  18750. }
  18751. export type QualificationQuestionOrderByRelationAggregateInput = {
  18752. _count?: SortOrder
  18753. }
  18754. export type IdeaCountOrderByAggregateInput = {
  18755. id?: SortOrder
  18756. workspaceId?: SortOrder
  18757. contributorEmail?: SortOrder
  18758. contributorId?: SortOrder
  18759. department?: SortOrder
  18760. problemDescription?: SortOrder
  18761. estimatedImpact?: SortOrder
  18762. frequency?: SortOrder
  18763. optionalWhoAffected?: SortOrder
  18764. optionalAlreadyTried?: SortOrder
  18765. optionalSuccessLooksLike?: SortOrder
  18766. status?: SortOrder
  18767. llmTitle?: SortOrder
  18768. llmDomain?: SortOrder
  18769. llmAiType?: SortOrder
  18770. llmExplanation?: SortOrder
  18771. llmScoreImpact?: SortOrder
  18772. llmScoreFeasibility?: SortOrder
  18773. llmScoreUrgency?: SortOrder
  18774. llmEnrichedAt?: SortOrder
  18775. llmEnrichFailed?: SortOrder
  18776. manualScoreImpact?: SortOrder
  18777. manualScoreFeasibility?: SortOrder
  18778. manualScoreUrgency?: SortOrder
  18779. priorityOrder?: SortOrder
  18780. emailMessageId?: SortOrder
  18781. createdAt?: SortOrder
  18782. updatedAt?: SortOrder
  18783. }
  18784. export type IdeaAvgOrderByAggregateInput = {
  18785. llmScoreImpact?: SortOrder
  18786. llmScoreFeasibility?: SortOrder
  18787. llmScoreUrgency?: SortOrder
  18788. manualScoreImpact?: SortOrder
  18789. manualScoreFeasibility?: SortOrder
  18790. manualScoreUrgency?: SortOrder
  18791. priorityOrder?: SortOrder
  18792. }
  18793. export type IdeaMaxOrderByAggregateInput = {
  18794. id?: SortOrder
  18795. workspaceId?: SortOrder
  18796. contributorEmail?: SortOrder
  18797. contributorId?: SortOrder
  18798. department?: SortOrder
  18799. problemDescription?: SortOrder
  18800. estimatedImpact?: SortOrder
  18801. frequency?: SortOrder
  18802. optionalWhoAffected?: SortOrder
  18803. optionalAlreadyTried?: SortOrder
  18804. optionalSuccessLooksLike?: SortOrder
  18805. status?: SortOrder
  18806. llmTitle?: SortOrder
  18807. llmDomain?: SortOrder
  18808. llmAiType?: SortOrder
  18809. llmExplanation?: SortOrder
  18810. llmScoreImpact?: SortOrder
  18811. llmScoreFeasibility?: SortOrder
  18812. llmScoreUrgency?: SortOrder
  18813. llmEnrichedAt?: SortOrder
  18814. llmEnrichFailed?: SortOrder
  18815. manualScoreImpact?: SortOrder
  18816. manualScoreFeasibility?: SortOrder
  18817. manualScoreUrgency?: SortOrder
  18818. priorityOrder?: SortOrder
  18819. emailMessageId?: SortOrder
  18820. createdAt?: SortOrder
  18821. updatedAt?: SortOrder
  18822. }
  18823. export type IdeaMinOrderByAggregateInput = {
  18824. id?: SortOrder
  18825. workspaceId?: SortOrder
  18826. contributorEmail?: SortOrder
  18827. contributorId?: SortOrder
  18828. department?: SortOrder
  18829. problemDescription?: SortOrder
  18830. estimatedImpact?: SortOrder
  18831. frequency?: SortOrder
  18832. optionalWhoAffected?: SortOrder
  18833. optionalAlreadyTried?: SortOrder
  18834. optionalSuccessLooksLike?: SortOrder
  18835. status?: SortOrder
  18836. llmTitle?: SortOrder
  18837. llmDomain?: SortOrder
  18838. llmAiType?: SortOrder
  18839. llmExplanation?: SortOrder
  18840. llmScoreImpact?: SortOrder
  18841. llmScoreFeasibility?: SortOrder
  18842. llmScoreUrgency?: SortOrder
  18843. llmEnrichedAt?: SortOrder
  18844. llmEnrichFailed?: SortOrder
  18845. manualScoreImpact?: SortOrder
  18846. manualScoreFeasibility?: SortOrder
  18847. manualScoreUrgency?: SortOrder
  18848. priorityOrder?: SortOrder
  18849. emailMessageId?: SortOrder
  18850. createdAt?: SortOrder
  18851. updatedAt?: SortOrder
  18852. }
  18853. export type IdeaSumOrderByAggregateInput = {
  18854. llmScoreImpact?: SortOrder
  18855. llmScoreFeasibility?: SortOrder
  18856. llmScoreUrgency?: SortOrder
  18857. manualScoreImpact?: SortOrder
  18858. manualScoreFeasibility?: SortOrder
  18859. manualScoreUrgency?: SortOrder
  18860. priorityOrder?: SortOrder
  18861. }
  18862. export type EnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  18863. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  18864. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18865. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18866. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  18867. _count?: NestedIntFilter<$PrismaModel>
  18868. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  18869. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  18870. }
  18871. export type EnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  18872. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  18873. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18874. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18875. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  18876. _count?: NestedIntFilter<$PrismaModel>
  18877. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  18878. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  18879. }
  18880. export type EnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  18881. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  18882. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18883. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18884. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  18885. _count?: NestedIntFilter<$PrismaModel>
  18886. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  18887. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  18888. }
  18889. export type PostCountOrderByAggregateInput = {
  18890. id?: SortOrder
  18891. name?: SortOrder
  18892. createdAt?: SortOrder
  18893. updatedAt?: SortOrder
  18894. createdById?: SortOrder
  18895. }
  18896. export type PostAvgOrderByAggregateInput = {
  18897. id?: SortOrder
  18898. }
  18899. export type PostMaxOrderByAggregateInput = {
  18900. id?: SortOrder
  18901. name?: SortOrder
  18902. createdAt?: SortOrder
  18903. updatedAt?: SortOrder
  18904. createdById?: SortOrder
  18905. }
  18906. export type PostMinOrderByAggregateInput = {
  18907. id?: SortOrder
  18908. name?: SortOrder
  18909. createdAt?: SortOrder
  18910. updatedAt?: SortOrder
  18911. createdById?: SortOrder
  18912. }
  18913. export type PostSumOrderByAggregateInput = {
  18914. id?: SortOrder
  18915. }
  18916. export type AccountProviderProviderAccountIdCompoundUniqueInput = {
  18917. provider: string
  18918. providerAccountId: string
  18919. }
  18920. export type AccountCountOrderByAggregateInput = {
  18921. id?: SortOrder
  18922. userId?: SortOrder
  18923. type?: SortOrder
  18924. provider?: SortOrder
  18925. providerAccountId?: SortOrder
  18926. refresh_token?: SortOrder
  18927. access_token?: SortOrder
  18928. expires_at?: SortOrder
  18929. token_type?: SortOrder
  18930. scope?: SortOrder
  18931. id_token?: SortOrder
  18932. session_state?: SortOrder
  18933. refresh_token_expires_in?: SortOrder
  18934. }
  18935. export type AccountAvgOrderByAggregateInput = {
  18936. expires_at?: SortOrder
  18937. refresh_token_expires_in?: SortOrder
  18938. }
  18939. export type AccountMaxOrderByAggregateInput = {
  18940. id?: SortOrder
  18941. userId?: SortOrder
  18942. type?: SortOrder
  18943. provider?: SortOrder
  18944. providerAccountId?: SortOrder
  18945. refresh_token?: SortOrder
  18946. access_token?: SortOrder
  18947. expires_at?: SortOrder
  18948. token_type?: SortOrder
  18949. scope?: SortOrder
  18950. id_token?: SortOrder
  18951. session_state?: SortOrder
  18952. refresh_token_expires_in?: SortOrder
  18953. }
  18954. export type AccountMinOrderByAggregateInput = {
  18955. id?: SortOrder
  18956. userId?: SortOrder
  18957. type?: SortOrder
  18958. provider?: SortOrder
  18959. providerAccountId?: SortOrder
  18960. refresh_token?: SortOrder
  18961. access_token?: SortOrder
  18962. expires_at?: SortOrder
  18963. token_type?: SortOrder
  18964. scope?: SortOrder
  18965. id_token?: SortOrder
  18966. session_state?: SortOrder
  18967. refresh_token_expires_in?: SortOrder
  18968. }
  18969. export type AccountSumOrderByAggregateInput = {
  18970. expires_at?: SortOrder
  18971. refresh_token_expires_in?: SortOrder
  18972. }
  18973. export type SessionCountOrderByAggregateInput = {
  18974. id?: SortOrder
  18975. sessionToken?: SortOrder
  18976. userId?: SortOrder
  18977. expires?: SortOrder
  18978. }
  18979. export type SessionMaxOrderByAggregateInput = {
  18980. id?: SortOrder
  18981. sessionToken?: SortOrder
  18982. userId?: SortOrder
  18983. expires?: SortOrder
  18984. }
  18985. export type SessionMinOrderByAggregateInput = {
  18986. id?: SortOrder
  18987. sessionToken?: SortOrder
  18988. userId?: SortOrder
  18989. expires?: SortOrder
  18990. }
  18991. export type AccountListRelationFilter = {
  18992. every?: AccountWhereInput
  18993. some?: AccountWhereInput
  18994. none?: AccountWhereInput
  18995. }
  18996. export type SessionListRelationFilter = {
  18997. every?: SessionWhereInput
  18998. some?: SessionWhereInput
  18999. none?: SessionWhereInput
  19000. }
  19001. export type PostListRelationFilter = {
  19002. every?: PostWhereInput
  19003. some?: PostWhereInput
  19004. none?: PostWhereInput
  19005. }
  19006. export type WorkspaceNullableScalarRelationFilter = {
  19007. is?: WorkspaceWhereInput | null
  19008. isNot?: WorkspaceWhereInput | null
  19009. }
  19010. export type AccountOrderByRelationAggregateInput = {
  19011. _count?: SortOrder
  19012. }
  19013. export type SessionOrderByRelationAggregateInput = {
  19014. _count?: SortOrder
  19015. }
  19016. export type PostOrderByRelationAggregateInput = {
  19017. _count?: SortOrder
  19018. }
  19019. export type UserCountOrderByAggregateInput = {
  19020. id?: SortOrder
  19021. name?: SortOrder
  19022. email?: SortOrder
  19023. emailVerified?: SortOrder
  19024. password?: SortOrder
  19025. legalTermsAcceptedAt?: SortOrder
  19026. image?: SortOrder
  19027. }
  19028. export type UserMaxOrderByAggregateInput = {
  19029. id?: SortOrder
  19030. name?: SortOrder
  19031. email?: SortOrder
  19032. emailVerified?: SortOrder
  19033. password?: SortOrder
  19034. legalTermsAcceptedAt?: SortOrder
  19035. image?: SortOrder
  19036. }
  19037. export type UserMinOrderByAggregateInput = {
  19038. id?: SortOrder
  19039. name?: SortOrder
  19040. email?: SortOrder
  19041. emailVerified?: SortOrder
  19042. password?: SortOrder
  19043. legalTermsAcceptedAt?: SortOrder
  19044. image?: SortOrder
  19045. }
  19046. export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
  19047. identifier: string
  19048. token: string
  19049. }
  19050. export type VerificationTokenCountOrderByAggregateInput = {
  19051. identifier?: SortOrder
  19052. token?: SortOrder
  19053. expires?: SortOrder
  19054. }
  19055. export type VerificationTokenMaxOrderByAggregateInput = {
  19056. identifier?: SortOrder
  19057. token?: SortOrder
  19058. expires?: SortOrder
  19059. }
  19060. export type VerificationTokenMinOrderByAggregateInput = {
  19061. identifier?: SortOrder
  19062. token?: SortOrder
  19063. expires?: SortOrder
  19064. }
  19065. export type IdeaScalarRelationFilter = {
  19066. is?: IdeaWhereInput
  19067. isNot?: IdeaWhereInput
  19068. }
  19069. export type IdeaAttachmentCountOrderByAggregateInput = {
  19070. id?: SortOrder
  19071. ideaId?: SortOrder
  19072. workspaceId?: SortOrder
  19073. filename?: SortOrder
  19074. contentType?: SortOrder
  19075. size?: SortOrder
  19076. url?: SortOrder
  19077. blobPath?: SortOrder
  19078. createdAt?: SortOrder
  19079. }
  19080. export type IdeaAttachmentAvgOrderByAggregateInput = {
  19081. size?: SortOrder
  19082. }
  19083. export type IdeaAttachmentMaxOrderByAggregateInput = {
  19084. id?: SortOrder
  19085. ideaId?: SortOrder
  19086. workspaceId?: SortOrder
  19087. filename?: SortOrder
  19088. contentType?: SortOrder
  19089. size?: SortOrder
  19090. url?: SortOrder
  19091. blobPath?: SortOrder
  19092. createdAt?: SortOrder
  19093. }
  19094. export type IdeaAttachmentMinOrderByAggregateInput = {
  19095. id?: SortOrder
  19096. ideaId?: SortOrder
  19097. workspaceId?: SortOrder
  19098. filename?: SortOrder
  19099. contentType?: SortOrder
  19100. size?: SortOrder
  19101. url?: SortOrder
  19102. blobPath?: SortOrder
  19103. createdAt?: SortOrder
  19104. }
  19105. export type IdeaAttachmentSumOrderByAggregateInput = {
  19106. size?: SortOrder
  19107. }
  19108. export type QualificationQuestionCountOrderByAggregateInput = {
  19109. id?: SortOrder
  19110. ideaId?: SortOrder
  19111. workspaceId?: SortOrder
  19112. questionText?: SortOrder
  19113. responseToken?: SortOrder
  19114. askedAt?: SortOrder
  19115. responseText?: SortOrder
  19116. answeredAt?: SortOrder
  19117. }
  19118. export type QualificationQuestionMaxOrderByAggregateInput = {
  19119. id?: SortOrder
  19120. ideaId?: SortOrder
  19121. workspaceId?: SortOrder
  19122. questionText?: SortOrder
  19123. responseToken?: SortOrder
  19124. askedAt?: SortOrder
  19125. responseText?: SortOrder
  19126. answeredAt?: SortOrder
  19127. }
  19128. export type QualificationQuestionMinOrderByAggregateInput = {
  19129. id?: SortOrder
  19130. ideaId?: SortOrder
  19131. workspaceId?: SortOrder
  19132. questionText?: SortOrder
  19133. responseToken?: SortOrder
  19134. askedAt?: SortOrder
  19135. responseText?: SortOrder
  19136. answeredAt?: SortOrder
  19137. }
  19138. export type LibraryCaseCountOrderByAggregateInput = {
  19139. id?: SortOrder
  19140. sector?: SortOrder
  19141. department?: SortOrder
  19142. title?: SortOrder
  19143. description?: SortOrder
  19144. createdAt?: SortOrder
  19145. updatedAt?: SortOrder
  19146. }
  19147. export type LibraryCaseMaxOrderByAggregateInput = {
  19148. id?: SortOrder
  19149. sector?: SortOrder
  19150. department?: SortOrder
  19151. title?: SortOrder
  19152. description?: SortOrder
  19153. createdAt?: SortOrder
  19154. updatedAt?: SortOrder
  19155. }
  19156. export type LibraryCaseMinOrderByAggregateInput = {
  19157. id?: SortOrder
  19158. sector?: SortOrder
  19159. department?: SortOrder
  19160. title?: SortOrder
  19161. description?: SortOrder
  19162. createdAt?: SortOrder
  19163. updatedAt?: SortOrder
  19164. }
  19165. export type ShareLinkCountOrderByAggregateInput = {
  19166. id?: SortOrder
  19167. workspaceId?: SortOrder
  19168. token?: SortOrder
  19169. expiresAt?: SortOrder
  19170. createdAt?: SortOrder
  19171. }
  19172. export type ShareLinkMaxOrderByAggregateInput = {
  19173. id?: SortOrder
  19174. workspaceId?: SortOrder
  19175. token?: SortOrder
  19176. expiresAt?: SortOrder
  19177. createdAt?: SortOrder
  19178. }
  19179. export type ShareLinkMinOrderByAggregateInput = {
  19180. id?: SortOrder
  19181. workspaceId?: SortOrder
  19182. token?: SortOrder
  19183. expiresAt?: SortOrder
  19184. createdAt?: SortOrder
  19185. }
  19186. export type ShareLinkCreateNestedOneWithoutWorkspaceInput = {
  19187. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19188. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19189. connect?: ShareLinkWhereUniqueInput
  19190. }
  19191. export type UserCreateNestedOneWithoutWorkspaceInput = {
  19192. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  19193. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  19194. connect?: UserWhereUniqueInput
  19195. }
  19196. export type ContributorCreateNestedManyWithoutWorkspaceInput = {
  19197. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19198. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19199. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19200. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19201. }
  19202. export type IdeaCreateNestedManyWithoutWorkspaceInput = {
  19203. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19204. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19205. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19206. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19207. }
  19208. export type ManualRelanceLogCreateNestedManyWithoutWorkspaceInput = {
  19209. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19210. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19211. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19212. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19213. }
  19214. export type ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput = {
  19215. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19216. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19217. connect?: ShareLinkWhereUniqueInput
  19218. }
  19219. export type ContributorUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19220. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19221. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19222. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19223. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19224. }
  19225. export type IdeaUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19226. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19227. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19228. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19229. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19230. }
  19231. export type ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19232. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19233. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19234. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19235. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19236. }
  19237. export type StringFieldUpdateOperationsInput = {
  19238. set?: string
  19239. }
  19240. export type NullableStringFieldUpdateOperationsInput = {
  19241. set?: string | null
  19242. }
  19243. export type NullableIntFieldUpdateOperationsInput = {
  19244. set?: number | null
  19245. increment?: number
  19246. decrement?: number
  19247. multiply?: number
  19248. divide?: number
  19249. }
  19250. export type EnumWorkspaceTierFieldUpdateOperationsInput = {
  19251. set?: $Enums.WorkspaceTier
  19252. }
  19253. export type IntFieldUpdateOperationsInput = {
  19254. set?: number
  19255. increment?: number
  19256. decrement?: number
  19257. multiply?: number
  19258. divide?: number
  19259. }
  19260. export type DateTimeFieldUpdateOperationsInput = {
  19261. set?: Date | string
  19262. }
  19263. export type BoolFieldUpdateOperationsInput = {
  19264. set?: boolean
  19265. }
  19266. export type NullableDateTimeFieldUpdateOperationsInput = {
  19267. set?: Date | string | null
  19268. }
  19269. export type ShareLinkUpdateOneWithoutWorkspaceNestedInput = {
  19270. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19271. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19272. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  19273. disconnect?: ShareLinkWhereInput | boolean
  19274. delete?: ShareLinkWhereInput | boolean
  19275. connect?: ShareLinkWhereUniqueInput
  19276. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  19277. }
  19278. export type UserUpdateOneRequiredWithoutWorkspaceNestedInput = {
  19279. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  19280. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  19281. upsert?: UserUpsertWithoutWorkspaceInput
  19282. connect?: UserWhereUniqueInput
  19283. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutWorkspaceInput, UserUpdateWithoutWorkspaceInput>, UserUncheckedUpdateWithoutWorkspaceInput>
  19284. }
  19285. export type ContributorUpdateManyWithoutWorkspaceNestedInput = {
  19286. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19287. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19288. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19289. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19290. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19291. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19292. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19293. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19294. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19295. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  19296. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  19297. }
  19298. export type IdeaUpdateManyWithoutWorkspaceNestedInput = {
  19299. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19300. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19301. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19302. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19303. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19304. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19305. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19306. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19307. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19308. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  19309. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19310. }
  19311. export type ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput = {
  19312. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19313. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19314. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19315. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19316. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19317. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19318. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19319. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19320. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19321. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  19322. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  19323. }
  19324. export type ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput = {
  19325. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19326. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19327. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  19328. disconnect?: ShareLinkWhereInput | boolean
  19329. delete?: ShareLinkWhereInput | boolean
  19330. connect?: ShareLinkWhereUniqueInput
  19331. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  19332. }
  19333. export type ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19334. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19335. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19336. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19337. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19338. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19339. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19340. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19341. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19342. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19343. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  19344. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  19345. }
  19346. export type IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19347. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19348. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19349. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19350. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19351. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19352. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19353. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19354. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19355. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19356. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  19357. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19358. }
  19359. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19360. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19361. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19362. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19363. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19364. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19365. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19366. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19367. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19368. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19369. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  19370. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  19371. }
  19372. export type WorkspaceCreateNestedOneWithoutManualRelanceLogsInput = {
  19373. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  19374. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  19375. connect?: WorkspaceWhereUniqueInput
  19376. }
  19377. export type WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput = {
  19378. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  19379. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  19380. upsert?: WorkspaceUpsertWithoutManualRelanceLogsInput
  19381. connect?: WorkspaceWhereUniqueInput
  19382. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput, WorkspaceUpdateWithoutManualRelanceLogsInput>, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  19383. }
  19384. export type WorkspaceCreateNestedOneWithoutContributorsInput = {
  19385. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  19386. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  19387. connect?: WorkspaceWhereUniqueInput
  19388. }
  19389. export type IdeaCreateNestedManyWithoutContributorInput = {
  19390. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19391. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19392. createMany?: IdeaCreateManyContributorInputEnvelope
  19393. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19394. }
  19395. export type IdeaUncheckedCreateNestedManyWithoutContributorInput = {
  19396. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19397. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19398. createMany?: IdeaCreateManyContributorInputEnvelope
  19399. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19400. }
  19401. export type EnumContributorStatusFieldUpdateOperationsInput = {
  19402. set?: $Enums.ContributorStatus
  19403. }
  19404. export type WorkspaceUpdateOneRequiredWithoutContributorsNestedInput = {
  19405. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  19406. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  19407. upsert?: WorkspaceUpsertWithoutContributorsInput
  19408. connect?: WorkspaceWhereUniqueInput
  19409. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutContributorsInput, WorkspaceUpdateWithoutContributorsInput>, WorkspaceUncheckedUpdateWithoutContributorsInput>
  19410. }
  19411. export type IdeaUpdateManyWithoutContributorNestedInput = {
  19412. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19413. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19414. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  19415. createMany?: IdeaCreateManyContributorInputEnvelope
  19416. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19417. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19418. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19419. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19420. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  19421. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  19422. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19423. }
  19424. export type IdeaUncheckedUpdateManyWithoutContributorNestedInput = {
  19425. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19426. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19427. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  19428. createMany?: IdeaCreateManyContributorInputEnvelope
  19429. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19430. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19431. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19432. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19433. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  19434. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  19435. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19436. }
  19437. export type WorkspaceCreateNestedOneWithoutIdeasInput = {
  19438. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  19439. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  19440. connect?: WorkspaceWhereUniqueInput
  19441. }
  19442. export type ContributorCreateNestedOneWithoutIdeasInput = {
  19443. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  19444. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  19445. connect?: ContributorWhereUniqueInput
  19446. }
  19447. export type IdeaAttachmentCreateNestedManyWithoutIdeaInput = {
  19448. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19449. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19450. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19451. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19452. }
  19453. export type QualificationQuestionCreateNestedManyWithoutIdeaInput = {
  19454. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19455. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19456. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19457. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19458. }
  19459. export type IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput = {
  19460. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19461. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19462. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19463. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19464. }
  19465. export type QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput = {
  19466. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19467. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19468. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19469. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19470. }
  19471. export type EnumImpactLevelFieldUpdateOperationsInput = {
  19472. set?: $Enums.ImpactLevel
  19473. }
  19474. export type EnumFrequencyFieldUpdateOperationsInput = {
  19475. set?: $Enums.Frequency
  19476. }
  19477. export type EnumIdeaStatusFieldUpdateOperationsInput = {
  19478. set?: $Enums.IdeaStatus
  19479. }
  19480. export type WorkspaceUpdateOneRequiredWithoutIdeasNestedInput = {
  19481. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  19482. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  19483. upsert?: WorkspaceUpsertWithoutIdeasInput
  19484. connect?: WorkspaceWhereUniqueInput
  19485. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutIdeasInput, WorkspaceUpdateWithoutIdeasInput>, WorkspaceUncheckedUpdateWithoutIdeasInput>
  19486. }
  19487. export type ContributorUpdateOneWithoutIdeasNestedInput = {
  19488. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  19489. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  19490. upsert?: ContributorUpsertWithoutIdeasInput
  19491. disconnect?: ContributorWhereInput | boolean
  19492. delete?: ContributorWhereInput | boolean
  19493. connect?: ContributorWhereUniqueInput
  19494. update?: XOR<XOR<ContributorUpdateToOneWithWhereWithoutIdeasInput, ContributorUpdateWithoutIdeasInput>, ContributorUncheckedUpdateWithoutIdeasInput>
  19495. }
  19496. export type IdeaAttachmentUpdateManyWithoutIdeaNestedInput = {
  19497. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19498. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19499. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  19500. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19501. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19502. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19503. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19504. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19505. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  19506. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  19507. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  19508. }
  19509. export type QualificationQuestionUpdateManyWithoutIdeaNestedInput = {
  19510. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19511. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19512. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  19513. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19514. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19515. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19516. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19517. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19518. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  19519. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  19520. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  19521. }
  19522. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput = {
  19523. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19524. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19525. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  19526. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19527. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19528. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19529. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19530. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19531. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  19532. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  19533. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  19534. }
  19535. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput = {
  19536. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19537. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19538. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  19539. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19540. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19541. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19542. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19543. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19544. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  19545. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  19546. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  19547. }
  19548. export type UserCreateNestedOneWithoutPostsInput = {
  19549. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  19550. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  19551. connect?: UserWhereUniqueInput
  19552. }
  19553. export type UserUpdateOneRequiredWithoutPostsNestedInput = {
  19554. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  19555. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  19556. upsert?: UserUpsertWithoutPostsInput
  19557. connect?: UserWhereUniqueInput
  19558. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutPostsInput, UserUpdateWithoutPostsInput>, UserUncheckedUpdateWithoutPostsInput>
  19559. }
  19560. export type UserCreateNestedOneWithoutAccountsInput = {
  19561. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  19562. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  19563. connect?: UserWhereUniqueInput
  19564. }
  19565. export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
  19566. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  19567. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  19568. upsert?: UserUpsertWithoutAccountsInput
  19569. connect?: UserWhereUniqueInput
  19570. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAccountsInput, UserUpdateWithoutAccountsInput>, UserUncheckedUpdateWithoutAccountsInput>
  19571. }
  19572. export type UserCreateNestedOneWithoutSessionsInput = {
  19573. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  19574. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  19575. connect?: UserWhereUniqueInput
  19576. }
  19577. export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
  19578. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  19579. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  19580. upsert?: UserUpsertWithoutSessionsInput
  19581. connect?: UserWhereUniqueInput
  19582. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
  19583. }
  19584. export type AccountCreateNestedManyWithoutUserInput = {
  19585. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19586. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19587. createMany?: AccountCreateManyUserInputEnvelope
  19588. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19589. }
  19590. export type SessionCreateNestedManyWithoutUserInput = {
  19591. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19592. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19593. createMany?: SessionCreateManyUserInputEnvelope
  19594. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19595. }
  19596. export type PostCreateNestedManyWithoutCreatedByInput = {
  19597. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19598. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19599. createMany?: PostCreateManyCreatedByInputEnvelope
  19600. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19601. }
  19602. export type WorkspaceCreateNestedOneWithoutOwnerInput = {
  19603. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19604. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19605. connect?: WorkspaceWhereUniqueInput
  19606. }
  19607. export type AccountUncheckedCreateNestedManyWithoutUserInput = {
  19608. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19609. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19610. createMany?: AccountCreateManyUserInputEnvelope
  19611. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19612. }
  19613. export type SessionUncheckedCreateNestedManyWithoutUserInput = {
  19614. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19615. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19616. createMany?: SessionCreateManyUserInputEnvelope
  19617. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19618. }
  19619. export type PostUncheckedCreateNestedManyWithoutCreatedByInput = {
  19620. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19621. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19622. createMany?: PostCreateManyCreatedByInputEnvelope
  19623. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19624. }
  19625. export type WorkspaceUncheckedCreateNestedOneWithoutOwnerInput = {
  19626. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19627. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19628. connect?: WorkspaceWhereUniqueInput
  19629. }
  19630. export type AccountUpdateManyWithoutUserNestedInput = {
  19631. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19632. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19633. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  19634. createMany?: AccountCreateManyUserInputEnvelope
  19635. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19636. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19637. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19638. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19639. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  19640. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  19641. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  19642. }
  19643. export type SessionUpdateManyWithoutUserNestedInput = {
  19644. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19645. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19646. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  19647. createMany?: SessionCreateManyUserInputEnvelope
  19648. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19649. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19650. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19651. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19652. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  19653. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  19654. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  19655. }
  19656. export type PostUpdateManyWithoutCreatedByNestedInput = {
  19657. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19658. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19659. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  19660. createMany?: PostCreateManyCreatedByInputEnvelope
  19661. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19662. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19663. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19664. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19665. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  19666. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  19667. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  19668. }
  19669. export type WorkspaceUpdateOneWithoutOwnerNestedInput = {
  19670. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19671. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19672. upsert?: WorkspaceUpsertWithoutOwnerInput
  19673. disconnect?: WorkspaceWhereInput | boolean
  19674. delete?: WorkspaceWhereInput | boolean
  19675. connect?: WorkspaceWhereUniqueInput
  19676. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  19677. }
  19678. export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
  19679. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19680. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19681. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  19682. createMany?: AccountCreateManyUserInputEnvelope
  19683. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19684. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19685. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19686. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19687. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  19688. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  19689. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  19690. }
  19691. export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
  19692. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19693. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19694. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  19695. createMany?: SessionCreateManyUserInputEnvelope
  19696. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19697. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19698. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19699. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19700. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  19701. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  19702. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  19703. }
  19704. export type PostUncheckedUpdateManyWithoutCreatedByNestedInput = {
  19705. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19706. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19707. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  19708. createMany?: PostCreateManyCreatedByInputEnvelope
  19709. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19710. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19711. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19712. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19713. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  19714. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  19715. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  19716. }
  19717. export type WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput = {
  19718. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19719. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19720. upsert?: WorkspaceUpsertWithoutOwnerInput
  19721. disconnect?: WorkspaceWhereInput | boolean
  19722. delete?: WorkspaceWhereInput | boolean
  19723. connect?: WorkspaceWhereUniqueInput
  19724. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  19725. }
  19726. export type IdeaCreateNestedOneWithoutAttachmentsInput = {
  19727. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  19728. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  19729. connect?: IdeaWhereUniqueInput
  19730. }
  19731. export type IdeaUpdateOneRequiredWithoutAttachmentsNestedInput = {
  19732. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  19733. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  19734. upsert?: IdeaUpsertWithoutAttachmentsInput
  19735. connect?: IdeaWhereUniqueInput
  19736. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutAttachmentsInput, IdeaUpdateWithoutAttachmentsInput>, IdeaUncheckedUpdateWithoutAttachmentsInput>
  19737. }
  19738. export type IdeaCreateNestedOneWithoutQualificationQuestionsInput = {
  19739. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  19740. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  19741. connect?: IdeaWhereUniqueInput
  19742. }
  19743. export type IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput = {
  19744. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  19745. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  19746. upsert?: IdeaUpsertWithoutQualificationQuestionsInput
  19747. connect?: IdeaWhereUniqueInput
  19748. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput, IdeaUpdateWithoutQualificationQuestionsInput>, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  19749. }
  19750. export type WorkspaceCreateNestedOneWithoutShareLinkInput = {
  19751. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  19752. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  19753. connect?: WorkspaceWhereUniqueInput
  19754. }
  19755. export type WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput = {
  19756. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  19757. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  19758. upsert?: WorkspaceUpsertWithoutShareLinkInput
  19759. connect?: WorkspaceWhereUniqueInput
  19760. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutShareLinkInput, WorkspaceUpdateWithoutShareLinkInput>, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  19761. }
  19762. export type NestedStringFilter<$PrismaModel = never> = {
  19763. equals?: string | StringFieldRefInput<$PrismaModel>
  19764. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19765. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19766. lt?: string | StringFieldRefInput<$PrismaModel>
  19767. lte?: string | StringFieldRefInput<$PrismaModel>
  19768. gt?: string | StringFieldRefInput<$PrismaModel>
  19769. gte?: string | StringFieldRefInput<$PrismaModel>
  19770. contains?: string | StringFieldRefInput<$PrismaModel>
  19771. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19772. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19773. not?: NestedStringFilter<$PrismaModel> | string
  19774. }
  19775. export type NestedStringNullableFilter<$PrismaModel = never> = {
  19776. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19777. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19778. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19779. lt?: string | StringFieldRefInput<$PrismaModel>
  19780. lte?: string | StringFieldRefInput<$PrismaModel>
  19781. gt?: string | StringFieldRefInput<$PrismaModel>
  19782. gte?: string | StringFieldRefInput<$PrismaModel>
  19783. contains?: string | StringFieldRefInput<$PrismaModel>
  19784. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19785. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19786. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  19787. }
  19788. export type NestedIntNullableFilter<$PrismaModel = never> = {
  19789. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19790. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19791. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19792. lt?: number | IntFieldRefInput<$PrismaModel>
  19793. lte?: number | IntFieldRefInput<$PrismaModel>
  19794. gt?: number | IntFieldRefInput<$PrismaModel>
  19795. gte?: number | IntFieldRefInput<$PrismaModel>
  19796. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  19797. }
  19798. export type NestedEnumWorkspaceTierFilter<$PrismaModel = never> = {
  19799. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19800. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19801. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19802. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  19803. }
  19804. export type NestedIntFilter<$PrismaModel = never> = {
  19805. equals?: number | IntFieldRefInput<$PrismaModel>
  19806. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19807. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19808. lt?: number | IntFieldRefInput<$PrismaModel>
  19809. lte?: number | IntFieldRefInput<$PrismaModel>
  19810. gt?: number | IntFieldRefInput<$PrismaModel>
  19811. gte?: number | IntFieldRefInput<$PrismaModel>
  19812. not?: NestedIntFilter<$PrismaModel> | number
  19813. }
  19814. export type NestedDateTimeFilter<$PrismaModel = never> = {
  19815. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19816. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19817. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19818. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19819. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19820. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19821. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19822. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  19823. }
  19824. export type NestedBoolFilter<$PrismaModel = never> = {
  19825. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19826. not?: NestedBoolFilter<$PrismaModel> | boolean
  19827. }
  19828. export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
  19829. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19830. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19831. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19832. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19833. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19834. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19835. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19836. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  19837. }
  19838. export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
  19839. equals?: string | StringFieldRefInput<$PrismaModel>
  19840. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19841. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19842. lt?: string | StringFieldRefInput<$PrismaModel>
  19843. lte?: string | StringFieldRefInput<$PrismaModel>
  19844. gt?: string | StringFieldRefInput<$PrismaModel>
  19845. gte?: string | StringFieldRefInput<$PrismaModel>
  19846. contains?: string | StringFieldRefInput<$PrismaModel>
  19847. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19848. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19849. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  19850. _count?: NestedIntFilter<$PrismaModel>
  19851. _min?: NestedStringFilter<$PrismaModel>
  19852. _max?: NestedStringFilter<$PrismaModel>
  19853. }
  19854. export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
  19855. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19856. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19857. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19858. lt?: string | StringFieldRefInput<$PrismaModel>
  19859. lte?: string | StringFieldRefInput<$PrismaModel>
  19860. gt?: string | StringFieldRefInput<$PrismaModel>
  19861. gte?: string | StringFieldRefInput<$PrismaModel>
  19862. contains?: string | StringFieldRefInput<$PrismaModel>
  19863. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19864. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19865. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  19866. _count?: NestedIntNullableFilter<$PrismaModel>
  19867. _min?: NestedStringNullableFilter<$PrismaModel>
  19868. _max?: NestedStringNullableFilter<$PrismaModel>
  19869. }
  19870. export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
  19871. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19872. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19873. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19874. lt?: number | IntFieldRefInput<$PrismaModel>
  19875. lte?: number | IntFieldRefInput<$PrismaModel>
  19876. gt?: number | IntFieldRefInput<$PrismaModel>
  19877. gte?: number | IntFieldRefInput<$PrismaModel>
  19878. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  19879. _count?: NestedIntNullableFilter<$PrismaModel>
  19880. _avg?: NestedFloatNullableFilter<$PrismaModel>
  19881. _sum?: NestedIntNullableFilter<$PrismaModel>
  19882. _min?: NestedIntNullableFilter<$PrismaModel>
  19883. _max?: NestedIntNullableFilter<$PrismaModel>
  19884. }
  19885. export type NestedFloatNullableFilter<$PrismaModel = never> = {
  19886. equals?: number | FloatFieldRefInput<$PrismaModel> | null
  19887. in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  19888. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  19889. lt?: number | FloatFieldRefInput<$PrismaModel>
  19890. lte?: number | FloatFieldRefInput<$PrismaModel>
  19891. gt?: number | FloatFieldRefInput<$PrismaModel>
  19892. gte?: number | FloatFieldRefInput<$PrismaModel>
  19893. not?: NestedFloatNullableFilter<$PrismaModel> | number | null
  19894. }
  19895. export type NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  19896. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19897. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19898. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19899. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  19900. _count?: NestedIntFilter<$PrismaModel>
  19901. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19902. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19903. }
  19904. export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
  19905. equals?: number | IntFieldRefInput<$PrismaModel>
  19906. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19907. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19908. lt?: number | IntFieldRefInput<$PrismaModel>
  19909. lte?: number | IntFieldRefInput<$PrismaModel>
  19910. gt?: number | IntFieldRefInput<$PrismaModel>
  19911. gte?: number | IntFieldRefInput<$PrismaModel>
  19912. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  19913. _count?: NestedIntFilter<$PrismaModel>
  19914. _avg?: NestedFloatFilter<$PrismaModel>
  19915. _sum?: NestedIntFilter<$PrismaModel>
  19916. _min?: NestedIntFilter<$PrismaModel>
  19917. _max?: NestedIntFilter<$PrismaModel>
  19918. }
  19919. export type NestedFloatFilter<$PrismaModel = never> = {
  19920. equals?: number | FloatFieldRefInput<$PrismaModel>
  19921. in?: number[] | ListFloatFieldRefInput<$PrismaModel>
  19922. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
  19923. lt?: number | FloatFieldRefInput<$PrismaModel>
  19924. lte?: number | FloatFieldRefInput<$PrismaModel>
  19925. gt?: number | FloatFieldRefInput<$PrismaModel>
  19926. gte?: number | FloatFieldRefInput<$PrismaModel>
  19927. not?: NestedFloatFilter<$PrismaModel> | number
  19928. }
  19929. export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
  19930. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19931. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19932. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19933. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19934. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19935. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19936. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19937. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  19938. _count?: NestedIntFilter<$PrismaModel>
  19939. _min?: NestedDateTimeFilter<$PrismaModel>
  19940. _max?: NestedDateTimeFilter<$PrismaModel>
  19941. }
  19942. export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
  19943. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19944. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  19945. _count?: NestedIntFilter<$PrismaModel>
  19946. _min?: NestedBoolFilter<$PrismaModel>
  19947. _max?: NestedBoolFilter<$PrismaModel>
  19948. }
  19949. export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  19950. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19951. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19952. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19953. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19954. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19955. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19956. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19957. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  19958. _count?: NestedIntNullableFilter<$PrismaModel>
  19959. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  19960. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  19961. }
  19962. export type NestedEnumContributorStatusFilter<$PrismaModel = never> = {
  19963. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  19964. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19965. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19966. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  19967. }
  19968. export type NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  19969. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  19970. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19971. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19972. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  19973. _count?: NestedIntFilter<$PrismaModel>
  19974. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  19975. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  19976. }
  19977. export type NestedEnumImpactLevelFilter<$PrismaModel = never> = {
  19978. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  19979. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19980. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19981. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  19982. }
  19983. export type NestedEnumFrequencyFilter<$PrismaModel = never> = {
  19984. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  19985. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19986. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19987. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  19988. }
  19989. export type NestedEnumIdeaStatusFilter<$PrismaModel = never> = {
  19990. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  19991. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19992. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19993. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  19994. }
  19995. export type NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  19996. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  19997. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19998. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19999. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  20000. _count?: NestedIntFilter<$PrismaModel>
  20001. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  20002. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  20003. }
  20004. export type NestedEnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  20005. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  20006. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  20007. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  20008. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  20009. _count?: NestedIntFilter<$PrismaModel>
  20010. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  20011. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  20012. }
  20013. export type NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  20014. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  20015. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  20016. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  20017. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  20018. _count?: NestedIntFilter<$PrismaModel>
  20019. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  20020. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  20021. }
  20022. export type ShareLinkCreateWithoutWorkspaceInput = {
  20023. id?: string
  20024. token?: string
  20025. expiresAt?: Date | string | null
  20026. createdAt?: Date | string
  20027. }
  20028. export type ShareLinkUncheckedCreateWithoutWorkspaceInput = {
  20029. id?: string
  20030. token?: string
  20031. expiresAt?: Date | string | null
  20032. createdAt?: Date | string
  20033. }
  20034. export type ShareLinkCreateOrConnectWithoutWorkspaceInput = {
  20035. where: ShareLinkWhereUniqueInput
  20036. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20037. }
  20038. export type UserCreateWithoutWorkspaceInput = {
  20039. id?: string
  20040. name?: string | null
  20041. email?: string | null
  20042. emailVerified?: Date | string | null
  20043. password?: string | null
  20044. legalTermsAcceptedAt?: Date | string | null
  20045. image?: string | null
  20046. accounts?: AccountCreateNestedManyWithoutUserInput
  20047. sessions?: SessionCreateNestedManyWithoutUserInput
  20048. posts?: PostCreateNestedManyWithoutCreatedByInput
  20049. }
  20050. export type UserUncheckedCreateWithoutWorkspaceInput = {
  20051. id?: string
  20052. name?: string | null
  20053. email?: string | null
  20054. emailVerified?: Date | string | null
  20055. password?: string | null
  20056. legalTermsAcceptedAt?: Date | string | null
  20057. image?: string | null
  20058. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  20059. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20060. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  20061. }
  20062. export type UserCreateOrConnectWithoutWorkspaceInput = {
  20063. where: UserWhereUniqueInput
  20064. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  20065. }
  20066. export type ContributorCreateWithoutWorkspaceInput = {
  20067. id?: string
  20068. email: string
  20069. service?: string | null
  20070. status?: $Enums.ContributorStatus
  20071. invitedAt?: Date | string
  20072. lastRemindedAt?: Date | string | null
  20073. createdAt?: Date | string
  20074. ideas?: IdeaCreateNestedManyWithoutContributorInput
  20075. }
  20076. export type ContributorUncheckedCreateWithoutWorkspaceInput = {
  20077. id?: string
  20078. email: string
  20079. service?: string | null
  20080. status?: $Enums.ContributorStatus
  20081. invitedAt?: Date | string
  20082. lastRemindedAt?: Date | string | null
  20083. createdAt?: Date | string
  20084. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  20085. }
  20086. export type ContributorCreateOrConnectWithoutWorkspaceInput = {
  20087. where: ContributorWhereUniqueInput
  20088. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  20089. }
  20090. export type ContributorCreateManyWorkspaceInputEnvelope = {
  20091. data: ContributorCreateManyWorkspaceInput | ContributorCreateManyWorkspaceInput[]
  20092. skipDuplicates?: boolean
  20093. }
  20094. export type IdeaCreateWithoutWorkspaceInput = {
  20095. id?: string
  20096. contributorEmail: string
  20097. department: string
  20098. problemDescription: string
  20099. estimatedImpact: $Enums.ImpactLevel
  20100. frequency: $Enums.Frequency
  20101. optionalWhoAffected?: string | null
  20102. optionalAlreadyTried?: string | null
  20103. optionalSuccessLooksLike?: string | null
  20104. status?: $Enums.IdeaStatus
  20105. llmTitle?: string | null
  20106. llmDomain?: string | null
  20107. llmAiType?: string | null
  20108. llmExplanation?: string | null
  20109. llmScoreImpact?: number | null
  20110. llmScoreFeasibility?: number | null
  20111. llmScoreUrgency?: number | null
  20112. llmEnrichedAt?: Date | string | null
  20113. llmEnrichFailed?: boolean
  20114. manualScoreImpact?: number | null
  20115. manualScoreFeasibility?: number | null
  20116. manualScoreUrgency?: number | null
  20117. priorityOrder?: number | null
  20118. emailMessageId?: string | null
  20119. createdAt?: Date | string
  20120. updatedAt?: Date | string
  20121. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  20122. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  20123. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  20124. }
  20125. export type IdeaUncheckedCreateWithoutWorkspaceInput = {
  20126. id?: string
  20127. contributorEmail: string
  20128. contributorId?: string | null
  20129. department: string
  20130. problemDescription: string
  20131. estimatedImpact: $Enums.ImpactLevel
  20132. frequency: $Enums.Frequency
  20133. optionalWhoAffected?: string | null
  20134. optionalAlreadyTried?: string | null
  20135. optionalSuccessLooksLike?: string | null
  20136. status?: $Enums.IdeaStatus
  20137. llmTitle?: string | null
  20138. llmDomain?: string | null
  20139. llmAiType?: string | null
  20140. llmExplanation?: string | null
  20141. llmScoreImpact?: number | null
  20142. llmScoreFeasibility?: number | null
  20143. llmScoreUrgency?: number | null
  20144. llmEnrichedAt?: Date | string | null
  20145. llmEnrichFailed?: boolean
  20146. manualScoreImpact?: number | null
  20147. manualScoreFeasibility?: number | null
  20148. manualScoreUrgency?: number | null
  20149. priorityOrder?: number | null
  20150. emailMessageId?: string | null
  20151. createdAt?: Date | string
  20152. updatedAt?: Date | string
  20153. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  20154. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  20155. }
  20156. export type IdeaCreateOrConnectWithoutWorkspaceInput = {
  20157. where: IdeaWhereUniqueInput
  20158. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  20159. }
  20160. export type IdeaCreateManyWorkspaceInputEnvelope = {
  20161. data: IdeaCreateManyWorkspaceInput | IdeaCreateManyWorkspaceInput[]
  20162. skipDuplicates?: boolean
  20163. }
  20164. export type ManualRelanceLogCreateWithoutWorkspaceInput = {
  20165. id?: string
  20166. subject: string
  20167. recipientCount: number
  20168. sentCount: number
  20169. failedCount?: number
  20170. sentAt?: Date | string
  20171. }
  20172. export type ManualRelanceLogUncheckedCreateWithoutWorkspaceInput = {
  20173. id?: string
  20174. subject: string
  20175. recipientCount: number
  20176. sentCount: number
  20177. failedCount?: number
  20178. sentAt?: Date | string
  20179. }
  20180. export type ManualRelanceLogCreateOrConnectWithoutWorkspaceInput = {
  20181. where: ManualRelanceLogWhereUniqueInput
  20182. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  20183. }
  20184. export type ManualRelanceLogCreateManyWorkspaceInputEnvelope = {
  20185. data: ManualRelanceLogCreateManyWorkspaceInput | ManualRelanceLogCreateManyWorkspaceInput[]
  20186. skipDuplicates?: boolean
  20187. }
  20188. export type ShareLinkUpsertWithoutWorkspaceInput = {
  20189. update: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  20190. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20191. where?: ShareLinkWhereInput
  20192. }
  20193. export type ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput = {
  20194. where?: ShareLinkWhereInput
  20195. data: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  20196. }
  20197. export type ShareLinkUpdateWithoutWorkspaceInput = {
  20198. id?: StringFieldUpdateOperationsInput | string
  20199. token?: StringFieldUpdateOperationsInput | string
  20200. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20201. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20202. }
  20203. export type ShareLinkUncheckedUpdateWithoutWorkspaceInput = {
  20204. id?: StringFieldUpdateOperationsInput | string
  20205. token?: StringFieldUpdateOperationsInput | string
  20206. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20207. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20208. }
  20209. export type UserUpsertWithoutWorkspaceInput = {
  20210. update: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  20211. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  20212. where?: UserWhereInput
  20213. }
  20214. export type UserUpdateToOneWithWhereWithoutWorkspaceInput = {
  20215. where?: UserWhereInput
  20216. data: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  20217. }
  20218. export type UserUpdateWithoutWorkspaceInput = {
  20219. id?: StringFieldUpdateOperationsInput | string
  20220. name?: NullableStringFieldUpdateOperationsInput | string | null
  20221. email?: NullableStringFieldUpdateOperationsInput | string | null
  20222. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20223. password?: NullableStringFieldUpdateOperationsInput | string | null
  20224. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20225. image?: NullableStringFieldUpdateOperationsInput | string | null
  20226. accounts?: AccountUpdateManyWithoutUserNestedInput
  20227. sessions?: SessionUpdateManyWithoutUserNestedInput
  20228. posts?: PostUpdateManyWithoutCreatedByNestedInput
  20229. }
  20230. export type UserUncheckedUpdateWithoutWorkspaceInput = {
  20231. id?: StringFieldUpdateOperationsInput | string
  20232. name?: NullableStringFieldUpdateOperationsInput | string | null
  20233. email?: NullableStringFieldUpdateOperationsInput | string | null
  20234. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20235. password?: NullableStringFieldUpdateOperationsInput | string | null
  20236. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20237. image?: NullableStringFieldUpdateOperationsInput | string | null
  20238. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  20239. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20240. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  20241. }
  20242. export type ContributorUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20243. where: ContributorWhereUniqueInput
  20244. update: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  20245. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  20246. }
  20247. export type ContributorUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20248. where: ContributorWhereUniqueInput
  20249. data: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  20250. }
  20251. export type ContributorUpdateManyWithWhereWithoutWorkspaceInput = {
  20252. where: ContributorScalarWhereInput
  20253. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyWithoutWorkspaceInput>
  20254. }
  20255. export type ContributorScalarWhereInput = {
  20256. AND?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20257. OR?: ContributorScalarWhereInput[]
  20258. NOT?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20259. id?: StringFilter<"Contributor"> | string
  20260. workspaceId?: StringFilter<"Contributor"> | string
  20261. email?: StringFilter<"Contributor"> | string
  20262. service?: StringNullableFilter<"Contributor"> | string | null
  20263. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  20264. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  20265. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  20266. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  20267. }
  20268. export type IdeaUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20269. where: IdeaWhereUniqueInput
  20270. update: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  20271. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  20272. }
  20273. export type IdeaUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20274. where: IdeaWhereUniqueInput
  20275. data: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  20276. }
  20277. export type IdeaUpdateManyWithWhereWithoutWorkspaceInput = {
  20278. where: IdeaScalarWhereInput
  20279. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutWorkspaceInput>
  20280. }
  20281. export type IdeaScalarWhereInput = {
  20282. AND?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20283. OR?: IdeaScalarWhereInput[]
  20284. NOT?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20285. id?: StringFilter<"Idea"> | string
  20286. workspaceId?: StringFilter<"Idea"> | string
  20287. contributorEmail?: StringFilter<"Idea"> | string
  20288. contributorId?: StringNullableFilter<"Idea"> | string | null
  20289. department?: StringFilter<"Idea"> | string
  20290. problemDescription?: StringFilter<"Idea"> | string
  20291. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  20292. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  20293. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  20294. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  20295. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  20296. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  20297. llmTitle?: StringNullableFilter<"Idea"> | string | null
  20298. llmDomain?: StringNullableFilter<"Idea"> | string | null
  20299. llmAiType?: StringNullableFilter<"Idea"> | string | null
  20300. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  20301. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  20302. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  20303. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  20304. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  20305. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  20306. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  20307. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  20308. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  20309. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  20310. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  20311. createdAt?: DateTimeFilter<"Idea"> | Date | string
  20312. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  20313. }
  20314. export type ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20315. where: ManualRelanceLogWhereUniqueInput
  20316. update: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  20317. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  20318. }
  20319. export type ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20320. where: ManualRelanceLogWhereUniqueInput
  20321. data: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  20322. }
  20323. export type ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput = {
  20324. where: ManualRelanceLogScalarWhereInput
  20325. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput>
  20326. }
  20327. export type ManualRelanceLogScalarWhereInput = {
  20328. AND?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20329. OR?: ManualRelanceLogScalarWhereInput[]
  20330. NOT?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20331. id?: StringFilter<"ManualRelanceLog"> | string
  20332. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  20333. subject?: StringFilter<"ManualRelanceLog"> | string
  20334. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  20335. sentCount?: IntFilter<"ManualRelanceLog"> | number
  20336. failedCount?: IntFilter<"ManualRelanceLog"> | number
  20337. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  20338. }
  20339. export type WorkspaceCreateWithoutManualRelanceLogsInput = {
  20340. id?: string
  20341. name: string
  20342. slug: string
  20343. sector?: string | null
  20344. companySize?: number | null
  20345. contactEmail?: string | null
  20346. tier?: $Enums.WorkspaceTier
  20347. llmCallsThisMonth?: number
  20348. llmCallsResetAt?: Date | string
  20349. autoRelanceEnabled?: boolean
  20350. exportsThisMonth?: number
  20351. exportsResetAt?: Date | string
  20352. lastVisitedAt?: Date | string | null
  20353. onboardingDismissed?: boolean
  20354. createdAt?: Date | string
  20355. updatedAt?: Date | string
  20356. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20357. owner: UserCreateNestedOneWithoutWorkspaceInput
  20358. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  20359. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  20360. }
  20361. export type WorkspaceUncheckedCreateWithoutManualRelanceLogsInput = {
  20362. id?: string
  20363. name: string
  20364. slug: string
  20365. sector?: string | null
  20366. companySize?: number | null
  20367. contactEmail?: string | null
  20368. tier?: $Enums.WorkspaceTier
  20369. llmCallsThisMonth?: number
  20370. llmCallsResetAt?: Date | string
  20371. autoRelanceEnabled?: boolean
  20372. exportsThisMonth?: number
  20373. exportsResetAt?: Date | string
  20374. lastVisitedAt?: Date | string | null
  20375. onboardingDismissed?: boolean
  20376. createdAt?: Date | string
  20377. updatedAt?: Date | string
  20378. ownerId: string
  20379. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20380. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  20381. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  20382. }
  20383. export type WorkspaceCreateOrConnectWithoutManualRelanceLogsInput = {
  20384. where: WorkspaceWhereUniqueInput
  20385. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20386. }
  20387. export type WorkspaceUpsertWithoutManualRelanceLogsInput = {
  20388. update: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  20389. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20390. where?: WorkspaceWhereInput
  20391. }
  20392. export type WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput = {
  20393. where?: WorkspaceWhereInput
  20394. data: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  20395. }
  20396. export type WorkspaceUpdateWithoutManualRelanceLogsInput = {
  20397. id?: StringFieldUpdateOperationsInput | string
  20398. name?: StringFieldUpdateOperationsInput | string
  20399. slug?: StringFieldUpdateOperationsInput | string
  20400. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20401. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20402. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20403. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20404. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20405. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20406. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20407. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20408. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20409. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20410. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20411. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20412. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20413. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20414. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20415. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  20416. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  20417. }
  20418. export type WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput = {
  20419. id?: StringFieldUpdateOperationsInput | string
  20420. name?: StringFieldUpdateOperationsInput | string
  20421. slug?: StringFieldUpdateOperationsInput | string
  20422. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20423. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20424. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20425. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20426. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20427. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20428. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20429. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20430. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20431. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20432. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20433. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20434. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20435. ownerId?: StringFieldUpdateOperationsInput | string
  20436. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20437. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  20438. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  20439. }
  20440. export type WorkspaceCreateWithoutContributorsInput = {
  20441. id?: string
  20442. name: string
  20443. slug: string
  20444. sector?: string | null
  20445. companySize?: number | null
  20446. contactEmail?: string | null
  20447. tier?: $Enums.WorkspaceTier
  20448. llmCallsThisMonth?: number
  20449. llmCallsResetAt?: Date | string
  20450. autoRelanceEnabled?: boolean
  20451. exportsThisMonth?: number
  20452. exportsResetAt?: Date | string
  20453. lastVisitedAt?: Date | string | null
  20454. onboardingDismissed?: boolean
  20455. createdAt?: Date | string
  20456. updatedAt?: Date | string
  20457. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20458. owner: UserCreateNestedOneWithoutWorkspaceInput
  20459. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  20460. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  20461. }
  20462. export type WorkspaceUncheckedCreateWithoutContributorsInput = {
  20463. id?: string
  20464. name: string
  20465. slug: string
  20466. sector?: string | null
  20467. companySize?: number | null
  20468. contactEmail?: string | null
  20469. tier?: $Enums.WorkspaceTier
  20470. llmCallsThisMonth?: number
  20471. llmCallsResetAt?: Date | string
  20472. autoRelanceEnabled?: boolean
  20473. exportsThisMonth?: number
  20474. exportsResetAt?: Date | string
  20475. lastVisitedAt?: Date | string | null
  20476. onboardingDismissed?: boolean
  20477. createdAt?: Date | string
  20478. updatedAt?: Date | string
  20479. ownerId: string
  20480. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20481. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  20482. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  20483. }
  20484. export type WorkspaceCreateOrConnectWithoutContributorsInput = {
  20485. where: WorkspaceWhereUniqueInput
  20486. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20487. }
  20488. export type IdeaCreateWithoutContributorInput = {
  20489. id?: string
  20490. contributorEmail: string
  20491. department: string
  20492. problemDescription: string
  20493. estimatedImpact: $Enums.ImpactLevel
  20494. frequency: $Enums.Frequency
  20495. optionalWhoAffected?: string | null
  20496. optionalAlreadyTried?: string | null
  20497. optionalSuccessLooksLike?: string | null
  20498. status?: $Enums.IdeaStatus
  20499. llmTitle?: string | null
  20500. llmDomain?: string | null
  20501. llmAiType?: string | null
  20502. llmExplanation?: string | null
  20503. llmScoreImpact?: number | null
  20504. llmScoreFeasibility?: number | null
  20505. llmScoreUrgency?: number | null
  20506. llmEnrichedAt?: Date | string | null
  20507. llmEnrichFailed?: boolean
  20508. manualScoreImpact?: number | null
  20509. manualScoreFeasibility?: number | null
  20510. manualScoreUrgency?: number | null
  20511. priorityOrder?: number | null
  20512. emailMessageId?: string | null
  20513. createdAt?: Date | string
  20514. updatedAt?: Date | string
  20515. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  20516. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  20517. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  20518. }
  20519. export type IdeaUncheckedCreateWithoutContributorInput = {
  20520. id?: string
  20521. workspaceId: string
  20522. contributorEmail: string
  20523. department: string
  20524. problemDescription: string
  20525. estimatedImpact: $Enums.ImpactLevel
  20526. frequency: $Enums.Frequency
  20527. optionalWhoAffected?: string | null
  20528. optionalAlreadyTried?: string | null
  20529. optionalSuccessLooksLike?: string | null
  20530. status?: $Enums.IdeaStatus
  20531. llmTitle?: string | null
  20532. llmDomain?: string | null
  20533. llmAiType?: string | null
  20534. llmExplanation?: string | null
  20535. llmScoreImpact?: number | null
  20536. llmScoreFeasibility?: number | null
  20537. llmScoreUrgency?: number | null
  20538. llmEnrichedAt?: Date | string | null
  20539. llmEnrichFailed?: boolean
  20540. manualScoreImpact?: number | null
  20541. manualScoreFeasibility?: number | null
  20542. manualScoreUrgency?: number | null
  20543. priorityOrder?: number | null
  20544. emailMessageId?: string | null
  20545. createdAt?: Date | string
  20546. updatedAt?: Date | string
  20547. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  20548. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  20549. }
  20550. export type IdeaCreateOrConnectWithoutContributorInput = {
  20551. where: IdeaWhereUniqueInput
  20552. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  20553. }
  20554. export type IdeaCreateManyContributorInputEnvelope = {
  20555. data: IdeaCreateManyContributorInput | IdeaCreateManyContributorInput[]
  20556. skipDuplicates?: boolean
  20557. }
  20558. export type WorkspaceUpsertWithoutContributorsInput = {
  20559. update: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  20560. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20561. where?: WorkspaceWhereInput
  20562. }
  20563. export type WorkspaceUpdateToOneWithWhereWithoutContributorsInput = {
  20564. where?: WorkspaceWhereInput
  20565. data: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  20566. }
  20567. export type WorkspaceUpdateWithoutContributorsInput = {
  20568. id?: StringFieldUpdateOperationsInput | string
  20569. name?: StringFieldUpdateOperationsInput | string
  20570. slug?: StringFieldUpdateOperationsInput | string
  20571. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20572. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20573. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20574. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20575. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20576. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20577. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20578. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20579. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20580. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20581. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20582. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20583. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20584. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20585. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20586. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  20587. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  20588. }
  20589. export type WorkspaceUncheckedUpdateWithoutContributorsInput = {
  20590. id?: StringFieldUpdateOperationsInput | string
  20591. name?: StringFieldUpdateOperationsInput | string
  20592. slug?: StringFieldUpdateOperationsInput | string
  20593. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20594. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20595. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20596. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20597. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20598. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20599. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20600. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20601. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20602. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20603. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20604. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20605. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20606. ownerId?: StringFieldUpdateOperationsInput | string
  20607. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20608. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  20609. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  20610. }
  20611. export type IdeaUpsertWithWhereUniqueWithoutContributorInput = {
  20612. where: IdeaWhereUniqueInput
  20613. update: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  20614. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  20615. }
  20616. export type IdeaUpdateWithWhereUniqueWithoutContributorInput = {
  20617. where: IdeaWhereUniqueInput
  20618. data: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  20619. }
  20620. export type IdeaUpdateManyWithWhereWithoutContributorInput = {
  20621. where: IdeaScalarWhereInput
  20622. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutContributorInput>
  20623. }
  20624. export type WorkspaceCreateWithoutIdeasInput = {
  20625. id?: string
  20626. name: string
  20627. slug: string
  20628. sector?: string | null
  20629. companySize?: number | null
  20630. contactEmail?: string | null
  20631. tier?: $Enums.WorkspaceTier
  20632. llmCallsThisMonth?: number
  20633. llmCallsResetAt?: Date | string
  20634. autoRelanceEnabled?: boolean
  20635. exportsThisMonth?: number
  20636. exportsResetAt?: Date | string
  20637. lastVisitedAt?: Date | string | null
  20638. onboardingDismissed?: boolean
  20639. createdAt?: Date | string
  20640. updatedAt?: Date | string
  20641. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20642. owner: UserCreateNestedOneWithoutWorkspaceInput
  20643. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  20644. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  20645. }
  20646. export type WorkspaceUncheckedCreateWithoutIdeasInput = {
  20647. id?: string
  20648. name: string
  20649. slug: string
  20650. sector?: string | null
  20651. companySize?: number | null
  20652. contactEmail?: string | null
  20653. tier?: $Enums.WorkspaceTier
  20654. llmCallsThisMonth?: number
  20655. llmCallsResetAt?: Date | string
  20656. autoRelanceEnabled?: boolean
  20657. exportsThisMonth?: number
  20658. exportsResetAt?: Date | string
  20659. lastVisitedAt?: Date | string | null
  20660. onboardingDismissed?: boolean
  20661. createdAt?: Date | string
  20662. updatedAt?: Date | string
  20663. ownerId: string
  20664. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20665. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  20666. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  20667. }
  20668. export type WorkspaceCreateOrConnectWithoutIdeasInput = {
  20669. where: WorkspaceWhereUniqueInput
  20670. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20671. }
  20672. export type ContributorCreateWithoutIdeasInput = {
  20673. id?: string
  20674. email: string
  20675. service?: string | null
  20676. status?: $Enums.ContributorStatus
  20677. invitedAt?: Date | string
  20678. lastRemindedAt?: Date | string | null
  20679. createdAt?: Date | string
  20680. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  20681. }
  20682. export type ContributorUncheckedCreateWithoutIdeasInput = {
  20683. id?: string
  20684. workspaceId: string
  20685. email: string
  20686. service?: string | null
  20687. status?: $Enums.ContributorStatus
  20688. invitedAt?: Date | string
  20689. lastRemindedAt?: Date | string | null
  20690. createdAt?: Date | string
  20691. }
  20692. export type ContributorCreateOrConnectWithoutIdeasInput = {
  20693. where: ContributorWhereUniqueInput
  20694. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20695. }
  20696. export type IdeaAttachmentCreateWithoutIdeaInput = {
  20697. id?: string
  20698. workspaceId: string
  20699. filename: string
  20700. contentType: string
  20701. size: number
  20702. url: string
  20703. blobPath: string
  20704. createdAt?: Date | string
  20705. }
  20706. export type IdeaAttachmentUncheckedCreateWithoutIdeaInput = {
  20707. id?: string
  20708. workspaceId: string
  20709. filename: string
  20710. contentType: string
  20711. size: number
  20712. url: string
  20713. blobPath: string
  20714. createdAt?: Date | string
  20715. }
  20716. export type IdeaAttachmentCreateOrConnectWithoutIdeaInput = {
  20717. where: IdeaAttachmentWhereUniqueInput
  20718. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  20719. }
  20720. export type IdeaAttachmentCreateManyIdeaInputEnvelope = {
  20721. data: IdeaAttachmentCreateManyIdeaInput | IdeaAttachmentCreateManyIdeaInput[]
  20722. skipDuplicates?: boolean
  20723. }
  20724. export type QualificationQuestionCreateWithoutIdeaInput = {
  20725. id?: string
  20726. workspaceId: string
  20727. questionText: string
  20728. responseToken?: string
  20729. askedAt?: Date | string
  20730. responseText?: string | null
  20731. answeredAt?: Date | string | null
  20732. }
  20733. export type QualificationQuestionUncheckedCreateWithoutIdeaInput = {
  20734. id?: string
  20735. workspaceId: string
  20736. questionText: string
  20737. responseToken?: string
  20738. askedAt?: Date | string
  20739. responseText?: string | null
  20740. answeredAt?: Date | string | null
  20741. }
  20742. export type QualificationQuestionCreateOrConnectWithoutIdeaInput = {
  20743. where: QualificationQuestionWhereUniqueInput
  20744. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  20745. }
  20746. export type QualificationQuestionCreateManyIdeaInputEnvelope = {
  20747. data: QualificationQuestionCreateManyIdeaInput | QualificationQuestionCreateManyIdeaInput[]
  20748. skipDuplicates?: boolean
  20749. }
  20750. export type WorkspaceUpsertWithoutIdeasInput = {
  20751. update: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  20752. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20753. where?: WorkspaceWhereInput
  20754. }
  20755. export type WorkspaceUpdateToOneWithWhereWithoutIdeasInput = {
  20756. where?: WorkspaceWhereInput
  20757. data: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  20758. }
  20759. export type WorkspaceUpdateWithoutIdeasInput = {
  20760. id?: StringFieldUpdateOperationsInput | string
  20761. name?: StringFieldUpdateOperationsInput | string
  20762. slug?: StringFieldUpdateOperationsInput | string
  20763. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20764. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20765. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20766. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20767. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20768. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20769. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20770. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20771. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20772. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20773. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20774. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20775. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20776. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20777. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20778. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  20779. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  20780. }
  20781. export type WorkspaceUncheckedUpdateWithoutIdeasInput = {
  20782. id?: StringFieldUpdateOperationsInput | string
  20783. name?: StringFieldUpdateOperationsInput | string
  20784. slug?: StringFieldUpdateOperationsInput | string
  20785. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20786. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20787. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20788. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20789. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20790. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20791. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20792. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20793. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20794. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20795. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20796. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20797. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20798. ownerId?: StringFieldUpdateOperationsInput | string
  20799. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20800. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  20801. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  20802. }
  20803. export type ContributorUpsertWithoutIdeasInput = {
  20804. update: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  20805. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20806. where?: ContributorWhereInput
  20807. }
  20808. export type ContributorUpdateToOneWithWhereWithoutIdeasInput = {
  20809. where?: ContributorWhereInput
  20810. data: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  20811. }
  20812. export type ContributorUpdateWithoutIdeasInput = {
  20813. id?: StringFieldUpdateOperationsInput | string
  20814. email?: StringFieldUpdateOperationsInput | string
  20815. service?: NullableStringFieldUpdateOperationsInput | string | null
  20816. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  20817. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20818. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20819. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20820. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  20821. }
  20822. export type ContributorUncheckedUpdateWithoutIdeasInput = {
  20823. id?: StringFieldUpdateOperationsInput | string
  20824. workspaceId?: StringFieldUpdateOperationsInput | string
  20825. email?: StringFieldUpdateOperationsInput | string
  20826. service?: NullableStringFieldUpdateOperationsInput | string | null
  20827. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  20828. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20829. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20830. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20831. }
  20832. export type IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput = {
  20833. where: IdeaAttachmentWhereUniqueInput
  20834. update: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  20835. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  20836. }
  20837. export type IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput = {
  20838. where: IdeaAttachmentWhereUniqueInput
  20839. data: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  20840. }
  20841. export type IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput = {
  20842. where: IdeaAttachmentScalarWhereInput
  20843. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput>
  20844. }
  20845. export type IdeaAttachmentScalarWhereInput = {
  20846. AND?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20847. OR?: IdeaAttachmentScalarWhereInput[]
  20848. NOT?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20849. id?: StringFilter<"IdeaAttachment"> | string
  20850. ideaId?: StringFilter<"IdeaAttachment"> | string
  20851. workspaceId?: StringFilter<"IdeaAttachment"> | string
  20852. filename?: StringFilter<"IdeaAttachment"> | string
  20853. contentType?: StringFilter<"IdeaAttachment"> | string
  20854. size?: IntFilter<"IdeaAttachment"> | number
  20855. url?: StringFilter<"IdeaAttachment"> | string
  20856. blobPath?: StringFilter<"IdeaAttachment"> | string
  20857. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  20858. }
  20859. export type QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput = {
  20860. where: QualificationQuestionWhereUniqueInput
  20861. update: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  20862. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  20863. }
  20864. export type QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput = {
  20865. where: QualificationQuestionWhereUniqueInput
  20866. data: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  20867. }
  20868. export type QualificationQuestionUpdateManyWithWhereWithoutIdeaInput = {
  20869. where: QualificationQuestionScalarWhereInput
  20870. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyWithoutIdeaInput>
  20871. }
  20872. export type QualificationQuestionScalarWhereInput = {
  20873. AND?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20874. OR?: QualificationQuestionScalarWhereInput[]
  20875. NOT?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20876. id?: StringFilter<"QualificationQuestion"> | string
  20877. ideaId?: StringFilter<"QualificationQuestion"> | string
  20878. workspaceId?: StringFilter<"QualificationQuestion"> | string
  20879. questionText?: StringFilter<"QualificationQuestion"> | string
  20880. responseToken?: StringFilter<"QualificationQuestion"> | string
  20881. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  20882. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  20883. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  20884. }
  20885. export type UserCreateWithoutPostsInput = {
  20886. id?: string
  20887. name?: string | null
  20888. email?: string | null
  20889. emailVerified?: Date | string | null
  20890. password?: string | null
  20891. legalTermsAcceptedAt?: Date | string | null
  20892. image?: string | null
  20893. accounts?: AccountCreateNestedManyWithoutUserInput
  20894. sessions?: SessionCreateNestedManyWithoutUserInput
  20895. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20896. }
  20897. export type UserUncheckedCreateWithoutPostsInput = {
  20898. id?: string
  20899. name?: string | null
  20900. email?: string | null
  20901. emailVerified?: Date | string | null
  20902. password?: string | null
  20903. legalTermsAcceptedAt?: Date | string | null
  20904. image?: string | null
  20905. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  20906. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20907. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20908. }
  20909. export type UserCreateOrConnectWithoutPostsInput = {
  20910. where: UserWhereUniqueInput
  20911. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20912. }
  20913. export type UserUpsertWithoutPostsInput = {
  20914. update: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  20915. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20916. where?: UserWhereInput
  20917. }
  20918. export type UserUpdateToOneWithWhereWithoutPostsInput = {
  20919. where?: UserWhereInput
  20920. data: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  20921. }
  20922. export type UserUpdateWithoutPostsInput = {
  20923. id?: StringFieldUpdateOperationsInput | string
  20924. name?: NullableStringFieldUpdateOperationsInput | string | null
  20925. email?: NullableStringFieldUpdateOperationsInput | string | null
  20926. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20927. password?: NullableStringFieldUpdateOperationsInput | string | null
  20928. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20929. image?: NullableStringFieldUpdateOperationsInput | string | null
  20930. accounts?: AccountUpdateManyWithoutUserNestedInput
  20931. sessions?: SessionUpdateManyWithoutUserNestedInput
  20932. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  20933. }
  20934. export type UserUncheckedUpdateWithoutPostsInput = {
  20935. id?: StringFieldUpdateOperationsInput | string
  20936. name?: NullableStringFieldUpdateOperationsInput | string | null
  20937. email?: NullableStringFieldUpdateOperationsInput | string | null
  20938. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20939. password?: NullableStringFieldUpdateOperationsInput | string | null
  20940. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20941. image?: NullableStringFieldUpdateOperationsInput | string | null
  20942. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  20943. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20944. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  20945. }
  20946. export type UserCreateWithoutAccountsInput = {
  20947. id?: string
  20948. name?: string | null
  20949. email?: string | null
  20950. emailVerified?: Date | string | null
  20951. password?: string | null
  20952. legalTermsAcceptedAt?: Date | string | null
  20953. image?: string | null
  20954. sessions?: SessionCreateNestedManyWithoutUserInput
  20955. posts?: PostCreateNestedManyWithoutCreatedByInput
  20956. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20957. }
  20958. export type UserUncheckedCreateWithoutAccountsInput = {
  20959. id?: string
  20960. name?: string | null
  20961. email?: string | null
  20962. emailVerified?: Date | string | null
  20963. password?: string | null
  20964. legalTermsAcceptedAt?: Date | string | null
  20965. image?: string | null
  20966. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20967. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  20968. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20969. }
  20970. export type UserCreateOrConnectWithoutAccountsInput = {
  20971. where: UserWhereUniqueInput
  20972. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  20973. }
  20974. export type UserUpsertWithoutAccountsInput = {
  20975. update: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  20976. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  20977. where?: UserWhereInput
  20978. }
  20979. export type UserUpdateToOneWithWhereWithoutAccountsInput = {
  20980. where?: UserWhereInput
  20981. data: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  20982. }
  20983. export type UserUpdateWithoutAccountsInput = {
  20984. id?: StringFieldUpdateOperationsInput | string
  20985. name?: NullableStringFieldUpdateOperationsInput | string | null
  20986. email?: NullableStringFieldUpdateOperationsInput | string | null
  20987. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20988. password?: NullableStringFieldUpdateOperationsInput | string | null
  20989. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20990. image?: NullableStringFieldUpdateOperationsInput | string | null
  20991. sessions?: SessionUpdateManyWithoutUserNestedInput
  20992. posts?: PostUpdateManyWithoutCreatedByNestedInput
  20993. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  20994. }
  20995. export type UserUncheckedUpdateWithoutAccountsInput = {
  20996. id?: StringFieldUpdateOperationsInput | string
  20997. name?: NullableStringFieldUpdateOperationsInput | string | null
  20998. email?: NullableStringFieldUpdateOperationsInput | string | null
  20999. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21000. password?: NullableStringFieldUpdateOperationsInput | string | null
  21001. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21002. image?: NullableStringFieldUpdateOperationsInput | string | null
  21003. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  21004. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  21005. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  21006. }
  21007. export type UserCreateWithoutSessionsInput = {
  21008. id?: string
  21009. name?: string | null
  21010. email?: string | null
  21011. emailVerified?: Date | string | null
  21012. password?: string | null
  21013. legalTermsAcceptedAt?: Date | string | null
  21014. image?: string | null
  21015. accounts?: AccountCreateNestedManyWithoutUserInput
  21016. posts?: PostCreateNestedManyWithoutCreatedByInput
  21017. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  21018. }
  21019. export type UserUncheckedCreateWithoutSessionsInput = {
  21020. id?: string
  21021. name?: string | null
  21022. email?: string | null
  21023. emailVerified?: Date | string | null
  21024. password?: string | null
  21025. legalTermsAcceptedAt?: Date | string | null
  21026. image?: string | null
  21027. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  21028. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  21029. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  21030. }
  21031. export type UserCreateOrConnectWithoutSessionsInput = {
  21032. where: UserWhereUniqueInput
  21033. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  21034. }
  21035. export type UserUpsertWithoutSessionsInput = {
  21036. update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  21037. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  21038. where?: UserWhereInput
  21039. }
  21040. export type UserUpdateToOneWithWhereWithoutSessionsInput = {
  21041. where?: UserWhereInput
  21042. data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  21043. }
  21044. export type UserUpdateWithoutSessionsInput = {
  21045. id?: StringFieldUpdateOperationsInput | string
  21046. name?: NullableStringFieldUpdateOperationsInput | string | null
  21047. email?: NullableStringFieldUpdateOperationsInput | string | null
  21048. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21049. password?: NullableStringFieldUpdateOperationsInput | string | null
  21050. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21051. image?: NullableStringFieldUpdateOperationsInput | string | null
  21052. accounts?: AccountUpdateManyWithoutUserNestedInput
  21053. posts?: PostUpdateManyWithoutCreatedByNestedInput
  21054. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  21055. }
  21056. export type UserUncheckedUpdateWithoutSessionsInput = {
  21057. id?: StringFieldUpdateOperationsInput | string
  21058. name?: NullableStringFieldUpdateOperationsInput | string | null
  21059. email?: NullableStringFieldUpdateOperationsInput | string | null
  21060. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21061. password?: NullableStringFieldUpdateOperationsInput | string | null
  21062. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21063. image?: NullableStringFieldUpdateOperationsInput | string | null
  21064. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  21065. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  21066. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  21067. }
  21068. export type AccountCreateWithoutUserInput = {
  21069. id?: string
  21070. type: string
  21071. provider: string
  21072. providerAccountId: string
  21073. refresh_token?: string | null
  21074. access_token?: string | null
  21075. expires_at?: number | null
  21076. token_type?: string | null
  21077. scope?: string | null
  21078. id_token?: string | null
  21079. session_state?: string | null
  21080. refresh_token_expires_in?: number | null
  21081. }
  21082. export type AccountUncheckedCreateWithoutUserInput = {
  21083. id?: string
  21084. type: string
  21085. provider: string
  21086. providerAccountId: string
  21087. refresh_token?: string | null
  21088. access_token?: string | null
  21089. expires_at?: number | null
  21090. token_type?: string | null
  21091. scope?: string | null
  21092. id_token?: string | null
  21093. session_state?: string | null
  21094. refresh_token_expires_in?: number | null
  21095. }
  21096. export type AccountCreateOrConnectWithoutUserInput = {
  21097. where: AccountWhereUniqueInput
  21098. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  21099. }
  21100. export type AccountCreateManyUserInputEnvelope = {
  21101. data: AccountCreateManyUserInput | AccountCreateManyUserInput[]
  21102. skipDuplicates?: boolean
  21103. }
  21104. export type SessionCreateWithoutUserInput = {
  21105. id?: string
  21106. sessionToken: string
  21107. expires: Date | string
  21108. }
  21109. export type SessionUncheckedCreateWithoutUserInput = {
  21110. id?: string
  21111. sessionToken: string
  21112. expires: Date | string
  21113. }
  21114. export type SessionCreateOrConnectWithoutUserInput = {
  21115. where: SessionWhereUniqueInput
  21116. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  21117. }
  21118. export type SessionCreateManyUserInputEnvelope = {
  21119. data: SessionCreateManyUserInput | SessionCreateManyUserInput[]
  21120. skipDuplicates?: boolean
  21121. }
  21122. export type PostCreateWithoutCreatedByInput = {
  21123. name: string
  21124. createdAt?: Date | string
  21125. updatedAt?: Date | string
  21126. }
  21127. export type PostUncheckedCreateWithoutCreatedByInput = {
  21128. id?: number
  21129. name: string
  21130. createdAt?: Date | string
  21131. updatedAt?: Date | string
  21132. }
  21133. export type PostCreateOrConnectWithoutCreatedByInput = {
  21134. where: PostWhereUniqueInput
  21135. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  21136. }
  21137. export type PostCreateManyCreatedByInputEnvelope = {
  21138. data: PostCreateManyCreatedByInput | PostCreateManyCreatedByInput[]
  21139. skipDuplicates?: boolean
  21140. }
  21141. export type WorkspaceCreateWithoutOwnerInput = {
  21142. id?: string
  21143. name: string
  21144. slug: string
  21145. sector?: string | null
  21146. companySize?: number | null
  21147. contactEmail?: string | null
  21148. tier?: $Enums.WorkspaceTier
  21149. llmCallsThisMonth?: number
  21150. llmCallsResetAt?: Date | string
  21151. autoRelanceEnabled?: boolean
  21152. exportsThisMonth?: number
  21153. exportsResetAt?: Date | string
  21154. lastVisitedAt?: Date | string | null
  21155. onboardingDismissed?: boolean
  21156. createdAt?: Date | string
  21157. updatedAt?: Date | string
  21158. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  21159. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  21160. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  21161. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  21162. }
  21163. export type WorkspaceUncheckedCreateWithoutOwnerInput = {
  21164. id?: string
  21165. name: string
  21166. slug: string
  21167. sector?: string | null
  21168. companySize?: number | null
  21169. contactEmail?: string | null
  21170. tier?: $Enums.WorkspaceTier
  21171. llmCallsThisMonth?: number
  21172. llmCallsResetAt?: Date | string
  21173. autoRelanceEnabled?: boolean
  21174. exportsThisMonth?: number
  21175. exportsResetAt?: Date | string
  21176. lastVisitedAt?: Date | string | null
  21177. onboardingDismissed?: boolean
  21178. createdAt?: Date | string
  21179. updatedAt?: Date | string
  21180. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  21181. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  21182. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  21183. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  21184. }
  21185. export type WorkspaceCreateOrConnectWithoutOwnerInput = {
  21186. where: WorkspaceWhereUniqueInput
  21187. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21188. }
  21189. export type AccountUpsertWithWhereUniqueWithoutUserInput = {
  21190. where: AccountWhereUniqueInput
  21191. update: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  21192. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  21193. }
  21194. export type AccountUpdateWithWhereUniqueWithoutUserInput = {
  21195. where: AccountWhereUniqueInput
  21196. data: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  21197. }
  21198. export type AccountUpdateManyWithWhereWithoutUserInput = {
  21199. where: AccountScalarWhereInput
  21200. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyWithoutUserInput>
  21201. }
  21202. export type AccountScalarWhereInput = {
  21203. AND?: AccountScalarWhereInput | AccountScalarWhereInput[]
  21204. OR?: AccountScalarWhereInput[]
  21205. NOT?: AccountScalarWhereInput | AccountScalarWhereInput[]
  21206. id?: StringFilter<"Account"> | string
  21207. userId?: StringFilter<"Account"> | string
  21208. type?: StringFilter<"Account"> | string
  21209. provider?: StringFilter<"Account"> | string
  21210. providerAccountId?: StringFilter<"Account"> | string
  21211. refresh_token?: StringNullableFilter<"Account"> | string | null
  21212. access_token?: StringNullableFilter<"Account"> | string | null
  21213. expires_at?: IntNullableFilter<"Account"> | number | null
  21214. token_type?: StringNullableFilter<"Account"> | string | null
  21215. scope?: StringNullableFilter<"Account"> | string | null
  21216. id_token?: StringNullableFilter<"Account"> | string | null
  21217. session_state?: StringNullableFilter<"Account"> | string | null
  21218. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  21219. }
  21220. export type SessionUpsertWithWhereUniqueWithoutUserInput = {
  21221. where: SessionWhereUniqueInput
  21222. update: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  21223. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  21224. }
  21225. export type SessionUpdateWithWhereUniqueWithoutUserInput = {
  21226. where: SessionWhereUniqueInput
  21227. data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  21228. }
  21229. export type SessionUpdateManyWithWhereWithoutUserInput = {
  21230. where: SessionScalarWhereInput
  21231. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
  21232. }
  21233. export type SessionScalarWhereInput = {
  21234. AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21235. OR?: SessionScalarWhereInput[]
  21236. NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21237. id?: StringFilter<"Session"> | string
  21238. sessionToken?: StringFilter<"Session"> | string
  21239. userId?: StringFilter<"Session"> | string
  21240. expires?: DateTimeFilter<"Session"> | Date | string
  21241. }
  21242. export type PostUpsertWithWhereUniqueWithoutCreatedByInput = {
  21243. where: PostWhereUniqueInput
  21244. update: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  21245. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  21246. }
  21247. export type PostUpdateWithWhereUniqueWithoutCreatedByInput = {
  21248. where: PostWhereUniqueInput
  21249. data: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  21250. }
  21251. export type PostUpdateManyWithWhereWithoutCreatedByInput = {
  21252. where: PostScalarWhereInput
  21253. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyWithoutCreatedByInput>
  21254. }
  21255. export type PostScalarWhereInput = {
  21256. AND?: PostScalarWhereInput | PostScalarWhereInput[]
  21257. OR?: PostScalarWhereInput[]
  21258. NOT?: PostScalarWhereInput | PostScalarWhereInput[]
  21259. id?: IntFilter<"Post"> | number
  21260. name?: StringFilter<"Post"> | string
  21261. createdAt?: DateTimeFilter<"Post"> | Date | string
  21262. updatedAt?: DateTimeFilter<"Post"> | Date | string
  21263. createdById?: StringFilter<"Post"> | string
  21264. }
  21265. export type WorkspaceUpsertWithoutOwnerInput = {
  21266. update: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21267. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21268. where?: WorkspaceWhereInput
  21269. }
  21270. export type WorkspaceUpdateToOneWithWhereWithoutOwnerInput = {
  21271. where?: WorkspaceWhereInput
  21272. data: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21273. }
  21274. export type WorkspaceUpdateWithoutOwnerInput = {
  21275. id?: StringFieldUpdateOperationsInput | string
  21276. name?: StringFieldUpdateOperationsInput | string
  21277. slug?: StringFieldUpdateOperationsInput | string
  21278. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21279. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21280. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21281. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21282. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21283. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21284. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21285. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21286. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21287. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21288. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21289. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21290. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21291. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  21292. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  21293. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  21294. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  21295. }
  21296. export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
  21297. id?: StringFieldUpdateOperationsInput | string
  21298. name?: StringFieldUpdateOperationsInput | string
  21299. slug?: StringFieldUpdateOperationsInput | string
  21300. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21301. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21302. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21303. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21304. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21305. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21306. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21307. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21308. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21309. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21310. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21311. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21312. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21313. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  21314. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  21315. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  21316. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  21317. }
  21318. export type IdeaCreateWithoutAttachmentsInput = {
  21319. id?: string
  21320. contributorEmail: string
  21321. department: string
  21322. problemDescription: string
  21323. estimatedImpact: $Enums.ImpactLevel
  21324. frequency: $Enums.Frequency
  21325. optionalWhoAffected?: string | null
  21326. optionalAlreadyTried?: string | null
  21327. optionalSuccessLooksLike?: string | null
  21328. status?: $Enums.IdeaStatus
  21329. llmTitle?: string | null
  21330. llmDomain?: string | null
  21331. llmAiType?: string | null
  21332. llmExplanation?: string | null
  21333. llmScoreImpact?: number | null
  21334. llmScoreFeasibility?: number | null
  21335. llmScoreUrgency?: number | null
  21336. llmEnrichedAt?: Date | string | null
  21337. llmEnrichFailed?: boolean
  21338. manualScoreImpact?: number | null
  21339. manualScoreFeasibility?: number | null
  21340. manualScoreUrgency?: number | null
  21341. priorityOrder?: number | null
  21342. emailMessageId?: string | null
  21343. createdAt?: Date | string
  21344. updatedAt?: Date | string
  21345. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  21346. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  21347. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  21348. }
  21349. export type IdeaUncheckedCreateWithoutAttachmentsInput = {
  21350. id?: string
  21351. workspaceId: string
  21352. contributorEmail: string
  21353. contributorId?: string | null
  21354. department: string
  21355. problemDescription: string
  21356. estimatedImpact: $Enums.ImpactLevel
  21357. frequency: $Enums.Frequency
  21358. optionalWhoAffected?: string | null
  21359. optionalAlreadyTried?: string | null
  21360. optionalSuccessLooksLike?: string | null
  21361. status?: $Enums.IdeaStatus
  21362. llmTitle?: string | null
  21363. llmDomain?: string | null
  21364. llmAiType?: string | null
  21365. llmExplanation?: string | null
  21366. llmScoreImpact?: number | null
  21367. llmScoreFeasibility?: number | null
  21368. llmScoreUrgency?: number | null
  21369. llmEnrichedAt?: Date | string | null
  21370. llmEnrichFailed?: boolean
  21371. manualScoreImpact?: number | null
  21372. manualScoreFeasibility?: number | null
  21373. manualScoreUrgency?: number | null
  21374. priorityOrder?: number | null
  21375. emailMessageId?: string | null
  21376. createdAt?: Date | string
  21377. updatedAt?: Date | string
  21378. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  21379. }
  21380. export type IdeaCreateOrConnectWithoutAttachmentsInput = {
  21381. where: IdeaWhereUniqueInput
  21382. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21383. }
  21384. export type IdeaUpsertWithoutAttachmentsInput = {
  21385. update: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  21386. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21387. where?: IdeaWhereInput
  21388. }
  21389. export type IdeaUpdateToOneWithWhereWithoutAttachmentsInput = {
  21390. where?: IdeaWhereInput
  21391. data: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  21392. }
  21393. export type IdeaUpdateWithoutAttachmentsInput = {
  21394. id?: StringFieldUpdateOperationsInput | string
  21395. contributorEmail?: StringFieldUpdateOperationsInput | string
  21396. department?: StringFieldUpdateOperationsInput | string
  21397. problemDescription?: StringFieldUpdateOperationsInput | string
  21398. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21399. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21400. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21401. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21402. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21403. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21404. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21405. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21406. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21407. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21408. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21409. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21410. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21411. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21412. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21413. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21414. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21415. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21416. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21417. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21418. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21419. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21420. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21421. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21422. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21423. }
  21424. export type IdeaUncheckedUpdateWithoutAttachmentsInput = {
  21425. id?: StringFieldUpdateOperationsInput | string
  21426. workspaceId?: StringFieldUpdateOperationsInput | string
  21427. contributorEmail?: StringFieldUpdateOperationsInput | string
  21428. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21429. department?: StringFieldUpdateOperationsInput | string
  21430. problemDescription?: StringFieldUpdateOperationsInput | string
  21431. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21432. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21433. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21434. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21435. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21436. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21437. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21438. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21439. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21440. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21441. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21442. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21443. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21444. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21445. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21446. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21447. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21448. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21449. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21450. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21451. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21452. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21453. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21454. }
  21455. export type IdeaCreateWithoutQualificationQuestionsInput = {
  21456. id?: string
  21457. contributorEmail: string
  21458. department: string
  21459. problemDescription: string
  21460. estimatedImpact: $Enums.ImpactLevel
  21461. frequency: $Enums.Frequency
  21462. optionalWhoAffected?: string | null
  21463. optionalAlreadyTried?: string | null
  21464. optionalSuccessLooksLike?: string | null
  21465. status?: $Enums.IdeaStatus
  21466. llmTitle?: string | null
  21467. llmDomain?: string | null
  21468. llmAiType?: string | null
  21469. llmExplanation?: string | null
  21470. llmScoreImpact?: number | null
  21471. llmScoreFeasibility?: number | null
  21472. llmScoreUrgency?: number | null
  21473. llmEnrichedAt?: Date | string | null
  21474. llmEnrichFailed?: boolean
  21475. manualScoreImpact?: number | null
  21476. manualScoreFeasibility?: number | null
  21477. manualScoreUrgency?: number | null
  21478. priorityOrder?: number | null
  21479. emailMessageId?: string | null
  21480. createdAt?: Date | string
  21481. updatedAt?: Date | string
  21482. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  21483. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  21484. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  21485. }
  21486. export type IdeaUncheckedCreateWithoutQualificationQuestionsInput = {
  21487. id?: string
  21488. workspaceId: string
  21489. contributorEmail: string
  21490. contributorId?: string | null
  21491. department: string
  21492. problemDescription: string
  21493. estimatedImpact: $Enums.ImpactLevel
  21494. frequency: $Enums.Frequency
  21495. optionalWhoAffected?: string | null
  21496. optionalAlreadyTried?: string | null
  21497. optionalSuccessLooksLike?: string | null
  21498. status?: $Enums.IdeaStatus
  21499. llmTitle?: string | null
  21500. llmDomain?: string | null
  21501. llmAiType?: string | null
  21502. llmExplanation?: string | null
  21503. llmScoreImpact?: number | null
  21504. llmScoreFeasibility?: number | null
  21505. llmScoreUrgency?: number | null
  21506. llmEnrichedAt?: Date | string | null
  21507. llmEnrichFailed?: boolean
  21508. manualScoreImpact?: number | null
  21509. manualScoreFeasibility?: number | null
  21510. manualScoreUrgency?: number | null
  21511. priorityOrder?: number | null
  21512. emailMessageId?: string | null
  21513. createdAt?: Date | string
  21514. updatedAt?: Date | string
  21515. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  21516. }
  21517. export type IdeaCreateOrConnectWithoutQualificationQuestionsInput = {
  21518. where: IdeaWhereUniqueInput
  21519. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21520. }
  21521. export type IdeaUpsertWithoutQualificationQuestionsInput = {
  21522. update: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  21523. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21524. where?: IdeaWhereInput
  21525. }
  21526. export type IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput = {
  21527. where?: IdeaWhereInput
  21528. data: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  21529. }
  21530. export type IdeaUpdateWithoutQualificationQuestionsInput = {
  21531. id?: StringFieldUpdateOperationsInput | string
  21532. contributorEmail?: StringFieldUpdateOperationsInput | string
  21533. department?: StringFieldUpdateOperationsInput | string
  21534. problemDescription?: StringFieldUpdateOperationsInput | string
  21535. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21536. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21537. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21538. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21539. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21540. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21541. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21542. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21543. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21544. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21545. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21546. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21547. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21548. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21549. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21550. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21551. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21552. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21553. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21554. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21555. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21556. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21557. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21558. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21559. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21560. }
  21561. export type IdeaUncheckedUpdateWithoutQualificationQuestionsInput = {
  21562. id?: StringFieldUpdateOperationsInput | string
  21563. workspaceId?: StringFieldUpdateOperationsInput | string
  21564. contributorEmail?: StringFieldUpdateOperationsInput | string
  21565. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21566. department?: StringFieldUpdateOperationsInput | string
  21567. problemDescription?: StringFieldUpdateOperationsInput | string
  21568. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21569. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21570. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21571. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21572. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21573. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21574. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21575. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21576. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21577. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21578. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21579. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21580. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21581. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21582. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21583. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21584. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21585. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21586. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21587. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21588. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21589. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21590. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21591. }
  21592. export type WorkspaceCreateWithoutShareLinkInput = {
  21593. id?: string
  21594. name: string
  21595. slug: string
  21596. sector?: string | null
  21597. companySize?: number | null
  21598. contactEmail?: string | null
  21599. tier?: $Enums.WorkspaceTier
  21600. llmCallsThisMonth?: number
  21601. llmCallsResetAt?: Date | string
  21602. autoRelanceEnabled?: boolean
  21603. exportsThisMonth?: number
  21604. exportsResetAt?: Date | string
  21605. lastVisitedAt?: Date | string | null
  21606. onboardingDismissed?: boolean
  21607. createdAt?: Date | string
  21608. updatedAt?: Date | string
  21609. owner: UserCreateNestedOneWithoutWorkspaceInput
  21610. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  21611. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  21612. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  21613. }
  21614. export type WorkspaceUncheckedCreateWithoutShareLinkInput = {
  21615. id?: string
  21616. name: string
  21617. slug: string
  21618. sector?: string | null
  21619. companySize?: number | null
  21620. contactEmail?: string | null
  21621. tier?: $Enums.WorkspaceTier
  21622. llmCallsThisMonth?: number
  21623. llmCallsResetAt?: Date | string
  21624. autoRelanceEnabled?: boolean
  21625. exportsThisMonth?: number
  21626. exportsResetAt?: Date | string
  21627. lastVisitedAt?: Date | string | null
  21628. onboardingDismissed?: boolean
  21629. createdAt?: Date | string
  21630. updatedAt?: Date | string
  21631. ownerId: string
  21632. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  21633. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  21634. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  21635. }
  21636. export type WorkspaceCreateOrConnectWithoutShareLinkInput = {
  21637. where: WorkspaceWhereUniqueInput
  21638. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21639. }
  21640. export type WorkspaceUpsertWithoutShareLinkInput = {
  21641. update: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  21642. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21643. where?: WorkspaceWhereInput
  21644. }
  21645. export type WorkspaceUpdateToOneWithWhereWithoutShareLinkInput = {
  21646. where?: WorkspaceWhereInput
  21647. data: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  21648. }
  21649. export type WorkspaceUpdateWithoutShareLinkInput = {
  21650. id?: StringFieldUpdateOperationsInput | string
  21651. name?: StringFieldUpdateOperationsInput | string
  21652. slug?: StringFieldUpdateOperationsInput | string
  21653. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21654. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21655. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21656. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21657. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21658. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21659. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21660. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21661. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21662. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21663. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21664. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21665. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21666. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  21667. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  21668. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  21669. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  21670. }
  21671. export type WorkspaceUncheckedUpdateWithoutShareLinkInput = {
  21672. id?: StringFieldUpdateOperationsInput | string
  21673. name?: StringFieldUpdateOperationsInput | string
  21674. slug?: StringFieldUpdateOperationsInput | string
  21675. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21676. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21677. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21678. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21679. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21680. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21681. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21682. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21683. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21684. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21685. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21686. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21687. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21688. ownerId?: StringFieldUpdateOperationsInput | string
  21689. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  21690. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  21691. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  21692. }
  21693. export type ContributorCreateManyWorkspaceInput = {
  21694. id?: string
  21695. email: string
  21696. service?: string | null
  21697. status?: $Enums.ContributorStatus
  21698. invitedAt?: Date | string
  21699. lastRemindedAt?: Date | string | null
  21700. createdAt?: Date | string
  21701. }
  21702. export type IdeaCreateManyWorkspaceInput = {
  21703. id?: string
  21704. contributorEmail: string
  21705. contributorId?: string | null
  21706. department: string
  21707. problemDescription: string
  21708. estimatedImpact: $Enums.ImpactLevel
  21709. frequency: $Enums.Frequency
  21710. optionalWhoAffected?: string | null
  21711. optionalAlreadyTried?: string | null
  21712. optionalSuccessLooksLike?: string | null
  21713. status?: $Enums.IdeaStatus
  21714. llmTitle?: string | null
  21715. llmDomain?: string | null
  21716. llmAiType?: string | null
  21717. llmExplanation?: string | null
  21718. llmScoreImpact?: number | null
  21719. llmScoreFeasibility?: number | null
  21720. llmScoreUrgency?: number | null
  21721. llmEnrichedAt?: Date | string | null
  21722. llmEnrichFailed?: boolean
  21723. manualScoreImpact?: number | null
  21724. manualScoreFeasibility?: number | null
  21725. manualScoreUrgency?: number | null
  21726. priorityOrder?: number | null
  21727. emailMessageId?: string | null
  21728. createdAt?: Date | string
  21729. updatedAt?: Date | string
  21730. }
  21731. export type ManualRelanceLogCreateManyWorkspaceInput = {
  21732. id?: string
  21733. subject: string
  21734. recipientCount: number
  21735. sentCount: number
  21736. failedCount?: number
  21737. sentAt?: Date | string
  21738. }
  21739. export type ContributorUpdateWithoutWorkspaceInput = {
  21740. id?: StringFieldUpdateOperationsInput | string
  21741. email?: StringFieldUpdateOperationsInput | string
  21742. service?: NullableStringFieldUpdateOperationsInput | string | null
  21743. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21744. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21745. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21746. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21747. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  21748. }
  21749. export type ContributorUncheckedUpdateWithoutWorkspaceInput = {
  21750. id?: StringFieldUpdateOperationsInput | string
  21751. email?: StringFieldUpdateOperationsInput | string
  21752. service?: NullableStringFieldUpdateOperationsInput | string | null
  21753. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21754. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21755. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21756. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21757. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  21758. }
  21759. export type ContributorUncheckedUpdateManyWithoutWorkspaceInput = {
  21760. id?: StringFieldUpdateOperationsInput | string
  21761. email?: StringFieldUpdateOperationsInput | string
  21762. service?: NullableStringFieldUpdateOperationsInput | string | null
  21763. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21764. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21765. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21766. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21767. }
  21768. export type IdeaUpdateWithoutWorkspaceInput = {
  21769. id?: StringFieldUpdateOperationsInput | string
  21770. contributorEmail?: StringFieldUpdateOperationsInput | string
  21771. department?: StringFieldUpdateOperationsInput | string
  21772. problemDescription?: StringFieldUpdateOperationsInput | string
  21773. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21774. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21775. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21776. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21777. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21778. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21779. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21780. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21781. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21782. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21783. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21784. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21785. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21786. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21787. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21788. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21789. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21790. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21791. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21792. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21793. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21794. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21795. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21796. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21797. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21798. }
  21799. export type IdeaUncheckedUpdateWithoutWorkspaceInput = {
  21800. id?: StringFieldUpdateOperationsInput | string
  21801. contributorEmail?: StringFieldUpdateOperationsInput | string
  21802. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21803. department?: StringFieldUpdateOperationsInput | string
  21804. problemDescription?: StringFieldUpdateOperationsInput | string
  21805. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21806. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21807. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21808. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21809. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21810. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21811. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21812. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21813. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21814. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21815. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21816. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21817. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21818. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21819. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21820. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21821. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21822. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21823. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21824. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21825. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21826. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21827. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21828. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21829. }
  21830. export type IdeaUncheckedUpdateManyWithoutWorkspaceInput = {
  21831. id?: StringFieldUpdateOperationsInput | string
  21832. contributorEmail?: StringFieldUpdateOperationsInput | string
  21833. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21834. department?: StringFieldUpdateOperationsInput | string
  21835. problemDescription?: StringFieldUpdateOperationsInput | string
  21836. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21837. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21838. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21839. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21840. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21841. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21842. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21843. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21844. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21845. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21846. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21847. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21848. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21849. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21850. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21851. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21852. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21853. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21854. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21855. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21856. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21857. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21858. }
  21859. export type ManualRelanceLogUpdateWithoutWorkspaceInput = {
  21860. id?: StringFieldUpdateOperationsInput | string
  21861. subject?: StringFieldUpdateOperationsInput | string
  21862. recipientCount?: IntFieldUpdateOperationsInput | number
  21863. sentCount?: IntFieldUpdateOperationsInput | number
  21864. failedCount?: IntFieldUpdateOperationsInput | number
  21865. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21866. }
  21867. export type ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput = {
  21868. id?: StringFieldUpdateOperationsInput | string
  21869. subject?: StringFieldUpdateOperationsInput | string
  21870. recipientCount?: IntFieldUpdateOperationsInput | number
  21871. sentCount?: IntFieldUpdateOperationsInput | number
  21872. failedCount?: IntFieldUpdateOperationsInput | number
  21873. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21874. }
  21875. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput = {
  21876. id?: StringFieldUpdateOperationsInput | string
  21877. subject?: StringFieldUpdateOperationsInput | string
  21878. recipientCount?: IntFieldUpdateOperationsInput | number
  21879. sentCount?: IntFieldUpdateOperationsInput | number
  21880. failedCount?: IntFieldUpdateOperationsInput | number
  21881. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21882. }
  21883. export type IdeaCreateManyContributorInput = {
  21884. id?: string
  21885. workspaceId: string
  21886. contributorEmail: string
  21887. department: string
  21888. problemDescription: string
  21889. estimatedImpact: $Enums.ImpactLevel
  21890. frequency: $Enums.Frequency
  21891. optionalWhoAffected?: string | null
  21892. optionalAlreadyTried?: string | null
  21893. optionalSuccessLooksLike?: string | null
  21894. status?: $Enums.IdeaStatus
  21895. llmTitle?: string | null
  21896. llmDomain?: string | null
  21897. llmAiType?: string | null
  21898. llmExplanation?: string | null
  21899. llmScoreImpact?: number | null
  21900. llmScoreFeasibility?: number | null
  21901. llmScoreUrgency?: number | null
  21902. llmEnrichedAt?: Date | string | null
  21903. llmEnrichFailed?: boolean
  21904. manualScoreImpact?: number | null
  21905. manualScoreFeasibility?: number | null
  21906. manualScoreUrgency?: number | null
  21907. priorityOrder?: number | null
  21908. emailMessageId?: string | null
  21909. createdAt?: Date | string
  21910. updatedAt?: Date | string
  21911. }
  21912. export type IdeaUpdateWithoutContributorInput = {
  21913. id?: StringFieldUpdateOperationsInput | string
  21914. contributorEmail?: StringFieldUpdateOperationsInput | string
  21915. department?: StringFieldUpdateOperationsInput | string
  21916. problemDescription?: StringFieldUpdateOperationsInput | string
  21917. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21918. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21919. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21920. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21921. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21922. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21923. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21924. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21925. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21926. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21927. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21928. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21929. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21930. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21931. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21932. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21933. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21934. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21935. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21936. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21937. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21938. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21939. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21940. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21941. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21942. }
  21943. export type IdeaUncheckedUpdateWithoutContributorInput = {
  21944. id?: StringFieldUpdateOperationsInput | string
  21945. workspaceId?: StringFieldUpdateOperationsInput | string
  21946. contributorEmail?: StringFieldUpdateOperationsInput | string
  21947. department?: StringFieldUpdateOperationsInput | string
  21948. problemDescription?: StringFieldUpdateOperationsInput | string
  21949. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21950. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21951. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21952. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21953. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21954. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21955. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21956. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21957. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21958. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21959. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21960. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21961. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21962. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21963. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21964. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21965. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21966. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21967. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21968. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21969. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21970. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21971. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21972. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21973. }
  21974. export type IdeaUncheckedUpdateManyWithoutContributorInput = {
  21975. id?: StringFieldUpdateOperationsInput | string
  21976. workspaceId?: StringFieldUpdateOperationsInput | string
  21977. contributorEmail?: StringFieldUpdateOperationsInput | string
  21978. department?: StringFieldUpdateOperationsInput | string
  21979. problemDescription?: StringFieldUpdateOperationsInput | string
  21980. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21981. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21982. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21983. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21984. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21985. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21986. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21987. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21988. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21989. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21990. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21991. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21992. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21993. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21994. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21995. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21996. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21997. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21998. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21999. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  22000. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22001. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22002. }
  22003. export type IdeaAttachmentCreateManyIdeaInput = {
  22004. id?: string
  22005. workspaceId: string
  22006. filename: string
  22007. contentType: string
  22008. size: number
  22009. url: string
  22010. blobPath: string
  22011. createdAt?: Date | string
  22012. }
  22013. export type QualificationQuestionCreateManyIdeaInput = {
  22014. id?: string
  22015. workspaceId: string
  22016. questionText: string
  22017. responseToken?: string
  22018. askedAt?: Date | string
  22019. responseText?: string | null
  22020. answeredAt?: Date | string | null
  22021. }
  22022. export type IdeaAttachmentUpdateWithoutIdeaInput = {
  22023. id?: StringFieldUpdateOperationsInput | string
  22024. workspaceId?: StringFieldUpdateOperationsInput | string
  22025. filename?: StringFieldUpdateOperationsInput | string
  22026. contentType?: StringFieldUpdateOperationsInput | string
  22027. size?: IntFieldUpdateOperationsInput | number
  22028. url?: StringFieldUpdateOperationsInput | string
  22029. blobPath?: StringFieldUpdateOperationsInput | string
  22030. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22031. }
  22032. export type IdeaAttachmentUncheckedUpdateWithoutIdeaInput = {
  22033. id?: StringFieldUpdateOperationsInput | string
  22034. workspaceId?: StringFieldUpdateOperationsInput | string
  22035. filename?: StringFieldUpdateOperationsInput | string
  22036. contentType?: StringFieldUpdateOperationsInput | string
  22037. size?: IntFieldUpdateOperationsInput | number
  22038. url?: StringFieldUpdateOperationsInput | string
  22039. blobPath?: StringFieldUpdateOperationsInput | string
  22040. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22041. }
  22042. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput = {
  22043. id?: StringFieldUpdateOperationsInput | string
  22044. workspaceId?: StringFieldUpdateOperationsInput | string
  22045. filename?: StringFieldUpdateOperationsInput | string
  22046. contentType?: StringFieldUpdateOperationsInput | string
  22047. size?: IntFieldUpdateOperationsInput | number
  22048. url?: StringFieldUpdateOperationsInput | string
  22049. blobPath?: StringFieldUpdateOperationsInput | string
  22050. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22051. }
  22052. export type QualificationQuestionUpdateWithoutIdeaInput = {
  22053. id?: StringFieldUpdateOperationsInput | string
  22054. workspaceId?: StringFieldUpdateOperationsInput | string
  22055. questionText?: StringFieldUpdateOperationsInput | string
  22056. responseToken?: StringFieldUpdateOperationsInput | string
  22057. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22058. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  22059. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22060. }
  22061. export type QualificationQuestionUncheckedUpdateWithoutIdeaInput = {
  22062. id?: StringFieldUpdateOperationsInput | string
  22063. workspaceId?: StringFieldUpdateOperationsInput | string
  22064. questionText?: StringFieldUpdateOperationsInput | string
  22065. responseToken?: StringFieldUpdateOperationsInput | string
  22066. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22067. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  22068. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22069. }
  22070. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaInput = {
  22071. id?: StringFieldUpdateOperationsInput | string
  22072. workspaceId?: StringFieldUpdateOperationsInput | string
  22073. questionText?: StringFieldUpdateOperationsInput | string
  22074. responseToken?: StringFieldUpdateOperationsInput | string
  22075. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22076. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  22077. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22078. }
  22079. export type AccountCreateManyUserInput = {
  22080. id?: string
  22081. type: string
  22082. provider: string
  22083. providerAccountId: string
  22084. refresh_token?: string | null
  22085. access_token?: string | null
  22086. expires_at?: number | null
  22087. token_type?: string | null
  22088. scope?: string | null
  22089. id_token?: string | null
  22090. session_state?: string | null
  22091. refresh_token_expires_in?: number | null
  22092. }
  22093. export type SessionCreateManyUserInput = {
  22094. id?: string
  22095. sessionToken: string
  22096. expires: Date | string
  22097. }
  22098. export type PostCreateManyCreatedByInput = {
  22099. id?: number
  22100. name: string
  22101. createdAt?: Date | string
  22102. updatedAt?: Date | string
  22103. }
  22104. export type AccountUpdateWithoutUserInput = {
  22105. id?: StringFieldUpdateOperationsInput | string
  22106. type?: StringFieldUpdateOperationsInput | string
  22107. provider?: StringFieldUpdateOperationsInput | string
  22108. providerAccountId?: StringFieldUpdateOperationsInput | string
  22109. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  22110. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  22111. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  22112. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  22113. scope?: NullableStringFieldUpdateOperationsInput | string | null
  22114. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  22115. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  22116. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  22117. }
  22118. export type AccountUncheckedUpdateWithoutUserInput = {
  22119. id?: StringFieldUpdateOperationsInput | string
  22120. type?: StringFieldUpdateOperationsInput | string
  22121. provider?: StringFieldUpdateOperationsInput | string
  22122. providerAccountId?: StringFieldUpdateOperationsInput | string
  22123. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  22124. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  22125. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  22126. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  22127. scope?: NullableStringFieldUpdateOperationsInput | string | null
  22128. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  22129. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  22130. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  22131. }
  22132. export type AccountUncheckedUpdateManyWithoutUserInput = {
  22133. id?: StringFieldUpdateOperationsInput | string
  22134. type?: StringFieldUpdateOperationsInput | string
  22135. provider?: StringFieldUpdateOperationsInput | string
  22136. providerAccountId?: StringFieldUpdateOperationsInput | string
  22137. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  22138. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  22139. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  22140. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  22141. scope?: NullableStringFieldUpdateOperationsInput | string | null
  22142. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  22143. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  22144. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  22145. }
  22146. export type SessionUpdateWithoutUserInput = {
  22147. id?: StringFieldUpdateOperationsInput | string
  22148. sessionToken?: StringFieldUpdateOperationsInput | string
  22149. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  22150. }
  22151. export type SessionUncheckedUpdateWithoutUserInput = {
  22152. id?: StringFieldUpdateOperationsInput | string
  22153. sessionToken?: StringFieldUpdateOperationsInput | string
  22154. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  22155. }
  22156. export type SessionUncheckedUpdateManyWithoutUserInput = {
  22157. id?: StringFieldUpdateOperationsInput | string
  22158. sessionToken?: StringFieldUpdateOperationsInput | string
  22159. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  22160. }
  22161. export type PostUpdateWithoutCreatedByInput = {
  22162. name?: StringFieldUpdateOperationsInput | string
  22163. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22164. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22165. }
  22166. export type PostUncheckedUpdateWithoutCreatedByInput = {
  22167. id?: IntFieldUpdateOperationsInput | number
  22168. name?: StringFieldUpdateOperationsInput | string
  22169. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22170. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22171. }
  22172. export type PostUncheckedUpdateManyWithoutCreatedByInput = {
  22173. id?: IntFieldUpdateOperationsInput | number
  22174. name?: StringFieldUpdateOperationsInput | string
  22175. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22176. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22177. }
  22178. /**
  22179. * Batch Payload for updateMany & deleteMany & createMany
  22180. */
  22181. export type BatchPayload = {
  22182. count: number
  22183. }
  22184. /**
  22185. * DMMF
  22186. */
  22187. export const dmmf: runtime.BaseDMMF
  22188. }