index.d.ts 867 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654
  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. createdAt: Date | null
  2042. updatedAt: Date | null
  2043. ownerId: string | null
  2044. }
  2045. export type WorkspaceMaxAggregateOutputType = {
  2046. id: string | null
  2047. name: string | null
  2048. slug: string | null
  2049. sector: string | null
  2050. companySize: number | null
  2051. contactEmail: string | null
  2052. tier: $Enums.WorkspaceTier | null
  2053. llmCallsThisMonth: number | null
  2054. llmCallsResetAt: Date | null
  2055. autoRelanceEnabled: boolean | null
  2056. exportsThisMonth: number | null
  2057. exportsResetAt: Date | null
  2058. lastVisitedAt: Date | null
  2059. createdAt: Date | null
  2060. updatedAt: Date | null
  2061. ownerId: string | null
  2062. }
  2063. export type WorkspaceCountAggregateOutputType = {
  2064. id: number
  2065. name: number
  2066. slug: number
  2067. sector: number
  2068. companySize: number
  2069. contactEmail: number
  2070. tier: number
  2071. llmCallsThisMonth: number
  2072. llmCallsResetAt: number
  2073. autoRelanceEnabled: number
  2074. exportsThisMonth: number
  2075. exportsResetAt: number
  2076. lastVisitedAt: number
  2077. createdAt: number
  2078. updatedAt: number
  2079. ownerId: number
  2080. _all: number
  2081. }
  2082. export type WorkspaceAvgAggregateInputType = {
  2083. companySize?: true
  2084. llmCallsThisMonth?: true
  2085. exportsThisMonth?: true
  2086. }
  2087. export type WorkspaceSumAggregateInputType = {
  2088. companySize?: true
  2089. llmCallsThisMonth?: true
  2090. exportsThisMonth?: true
  2091. }
  2092. export type WorkspaceMinAggregateInputType = {
  2093. id?: true
  2094. name?: true
  2095. slug?: true
  2096. sector?: true
  2097. companySize?: true
  2098. contactEmail?: true
  2099. tier?: true
  2100. llmCallsThisMonth?: true
  2101. llmCallsResetAt?: true
  2102. autoRelanceEnabled?: true
  2103. exportsThisMonth?: true
  2104. exportsResetAt?: true
  2105. lastVisitedAt?: true
  2106. createdAt?: true
  2107. updatedAt?: true
  2108. ownerId?: true
  2109. }
  2110. export type WorkspaceMaxAggregateInputType = {
  2111. id?: true
  2112. name?: true
  2113. slug?: true
  2114. sector?: true
  2115. companySize?: true
  2116. contactEmail?: true
  2117. tier?: true
  2118. llmCallsThisMonth?: true
  2119. llmCallsResetAt?: true
  2120. autoRelanceEnabled?: true
  2121. exportsThisMonth?: true
  2122. exportsResetAt?: true
  2123. lastVisitedAt?: true
  2124. createdAt?: true
  2125. updatedAt?: true
  2126. ownerId?: true
  2127. }
  2128. export type WorkspaceCountAggregateInputType = {
  2129. id?: true
  2130. name?: true
  2131. slug?: true
  2132. sector?: true
  2133. companySize?: true
  2134. contactEmail?: true
  2135. tier?: true
  2136. llmCallsThisMonth?: true
  2137. llmCallsResetAt?: true
  2138. autoRelanceEnabled?: true
  2139. exportsThisMonth?: true
  2140. exportsResetAt?: true
  2141. lastVisitedAt?: true
  2142. createdAt?: true
  2143. updatedAt?: true
  2144. ownerId?: true
  2145. _all?: true
  2146. }
  2147. export type WorkspaceAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2148. /**
  2149. * Filter which Workspace to aggregate.
  2150. */
  2151. where?: WorkspaceWhereInput
  2152. /**
  2153. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2154. *
  2155. * Determine the order of Workspaces to fetch.
  2156. */
  2157. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2158. /**
  2159. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2160. *
  2161. * Sets the start position
  2162. */
  2163. cursor?: WorkspaceWhereUniqueInput
  2164. /**
  2165. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2166. *
  2167. * Take `±n` Workspaces from the position of the cursor.
  2168. */
  2169. take?: number
  2170. /**
  2171. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2172. *
  2173. * Skip the first `n` Workspaces.
  2174. */
  2175. skip?: number
  2176. /**
  2177. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2178. *
  2179. * Count returned Workspaces
  2180. **/
  2181. _count?: true | WorkspaceCountAggregateInputType
  2182. /**
  2183. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2184. *
  2185. * Select which fields to average
  2186. **/
  2187. _avg?: WorkspaceAvgAggregateInputType
  2188. /**
  2189. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2190. *
  2191. * Select which fields to sum
  2192. **/
  2193. _sum?: WorkspaceSumAggregateInputType
  2194. /**
  2195. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2196. *
  2197. * Select which fields to find the minimum value
  2198. **/
  2199. _min?: WorkspaceMinAggregateInputType
  2200. /**
  2201. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2202. *
  2203. * Select which fields to find the maximum value
  2204. **/
  2205. _max?: WorkspaceMaxAggregateInputType
  2206. }
  2207. export type GetWorkspaceAggregateType<T extends WorkspaceAggregateArgs> = {
  2208. [P in keyof T & keyof AggregateWorkspace]: P extends '_count' | 'count'
  2209. ? T[P] extends true
  2210. ? number
  2211. : GetScalarType<T[P], AggregateWorkspace[P]>
  2212. : GetScalarType<T[P], AggregateWorkspace[P]>
  2213. }
  2214. export type WorkspaceGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2215. where?: WorkspaceWhereInput
  2216. orderBy?: WorkspaceOrderByWithAggregationInput | WorkspaceOrderByWithAggregationInput[]
  2217. by: WorkspaceScalarFieldEnum[] | WorkspaceScalarFieldEnum
  2218. having?: WorkspaceScalarWhereWithAggregatesInput
  2219. take?: number
  2220. skip?: number
  2221. _count?: WorkspaceCountAggregateInputType | true
  2222. _avg?: WorkspaceAvgAggregateInputType
  2223. _sum?: WorkspaceSumAggregateInputType
  2224. _min?: WorkspaceMinAggregateInputType
  2225. _max?: WorkspaceMaxAggregateInputType
  2226. }
  2227. export type WorkspaceGroupByOutputType = {
  2228. id: string
  2229. name: string
  2230. slug: string
  2231. sector: string | null
  2232. companySize: number | null
  2233. contactEmail: string | null
  2234. tier: $Enums.WorkspaceTier
  2235. llmCallsThisMonth: number
  2236. llmCallsResetAt: Date
  2237. autoRelanceEnabled: boolean
  2238. exportsThisMonth: number
  2239. exportsResetAt: Date
  2240. lastVisitedAt: Date | null
  2241. createdAt: Date
  2242. updatedAt: Date
  2243. ownerId: string
  2244. _count: WorkspaceCountAggregateOutputType | null
  2245. _avg: WorkspaceAvgAggregateOutputType | null
  2246. _sum: WorkspaceSumAggregateOutputType | null
  2247. _min: WorkspaceMinAggregateOutputType | null
  2248. _max: WorkspaceMaxAggregateOutputType | null
  2249. }
  2250. type GetWorkspaceGroupByPayload<T extends WorkspaceGroupByArgs> = Prisma.PrismaPromise<
  2251. Array<
  2252. PickEnumerable<WorkspaceGroupByOutputType, T['by']> &
  2253. {
  2254. [P in ((keyof T) & (keyof WorkspaceGroupByOutputType))]: P extends '_count'
  2255. ? T[P] extends boolean
  2256. ? number
  2257. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2258. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2259. }
  2260. >
  2261. >
  2262. export type WorkspaceSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2263. id?: boolean
  2264. name?: boolean
  2265. slug?: boolean
  2266. sector?: boolean
  2267. companySize?: boolean
  2268. contactEmail?: boolean
  2269. tier?: boolean
  2270. llmCallsThisMonth?: boolean
  2271. llmCallsResetAt?: boolean
  2272. autoRelanceEnabled?: boolean
  2273. exportsThisMonth?: boolean
  2274. exportsResetAt?: boolean
  2275. lastVisitedAt?: boolean
  2276. createdAt?: boolean
  2277. updatedAt?: boolean
  2278. ownerId?: boolean
  2279. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2280. owner?: boolean | UserDefaultArgs<ExtArgs>
  2281. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2282. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2283. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2284. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2285. }, ExtArgs["result"]["workspace"]>
  2286. export type WorkspaceSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2287. id?: boolean
  2288. name?: boolean
  2289. slug?: boolean
  2290. sector?: boolean
  2291. companySize?: boolean
  2292. contactEmail?: boolean
  2293. tier?: boolean
  2294. llmCallsThisMonth?: boolean
  2295. llmCallsResetAt?: boolean
  2296. autoRelanceEnabled?: boolean
  2297. exportsThisMonth?: boolean
  2298. exportsResetAt?: boolean
  2299. lastVisitedAt?: boolean
  2300. createdAt?: boolean
  2301. updatedAt?: boolean
  2302. ownerId?: boolean
  2303. owner?: boolean | UserDefaultArgs<ExtArgs>
  2304. }, ExtArgs["result"]["workspace"]>
  2305. export type WorkspaceSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2306. id?: boolean
  2307. name?: boolean
  2308. slug?: boolean
  2309. sector?: boolean
  2310. companySize?: boolean
  2311. contactEmail?: boolean
  2312. tier?: boolean
  2313. llmCallsThisMonth?: boolean
  2314. llmCallsResetAt?: boolean
  2315. autoRelanceEnabled?: boolean
  2316. exportsThisMonth?: boolean
  2317. exportsResetAt?: boolean
  2318. lastVisitedAt?: boolean
  2319. createdAt?: boolean
  2320. updatedAt?: boolean
  2321. ownerId?: boolean
  2322. owner?: boolean | UserDefaultArgs<ExtArgs>
  2323. }, ExtArgs["result"]["workspace"]>
  2324. export type WorkspaceSelectScalar = {
  2325. id?: boolean
  2326. name?: boolean
  2327. slug?: boolean
  2328. sector?: boolean
  2329. companySize?: boolean
  2330. contactEmail?: boolean
  2331. tier?: boolean
  2332. llmCallsThisMonth?: boolean
  2333. llmCallsResetAt?: boolean
  2334. autoRelanceEnabled?: boolean
  2335. exportsThisMonth?: boolean
  2336. exportsResetAt?: boolean
  2337. lastVisitedAt?: boolean
  2338. createdAt?: boolean
  2339. updatedAt?: boolean
  2340. ownerId?: boolean
  2341. }
  2342. export type WorkspaceOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "slug" | "sector" | "companySize" | "contactEmail" | "tier" | "llmCallsThisMonth" | "llmCallsResetAt" | "autoRelanceEnabled" | "exportsThisMonth" | "exportsResetAt" | "lastVisitedAt" | "createdAt" | "updatedAt" | "ownerId", ExtArgs["result"]["workspace"]>
  2343. export type WorkspaceInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2344. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2345. owner?: boolean | UserDefaultArgs<ExtArgs>
  2346. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2347. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2348. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2349. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2350. }
  2351. export type WorkspaceIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2352. owner?: boolean | UserDefaultArgs<ExtArgs>
  2353. }
  2354. export type WorkspaceIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2355. owner?: boolean | UserDefaultArgs<ExtArgs>
  2356. }
  2357. export type $WorkspacePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2358. name: "Workspace"
  2359. objects: {
  2360. shareLink: Prisma.$ShareLinkPayload<ExtArgs> | null
  2361. owner: Prisma.$UserPayload<ExtArgs>
  2362. contributors: Prisma.$ContributorPayload<ExtArgs>[]
  2363. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  2364. manualRelanceLogs: Prisma.$ManualRelanceLogPayload<ExtArgs>[]
  2365. }
  2366. scalars: $Extensions.GetPayloadResult<{
  2367. id: string
  2368. name: string
  2369. slug: string
  2370. sector: string | null
  2371. companySize: number | null
  2372. contactEmail: string | null
  2373. tier: $Enums.WorkspaceTier
  2374. llmCallsThisMonth: number
  2375. llmCallsResetAt: Date
  2376. autoRelanceEnabled: boolean
  2377. exportsThisMonth: number
  2378. exportsResetAt: Date
  2379. lastVisitedAt: Date | null
  2380. createdAt: Date
  2381. updatedAt: Date
  2382. ownerId: string
  2383. }, ExtArgs["result"]["workspace"]>
  2384. composites: {}
  2385. }
  2386. type WorkspaceGetPayload<S extends boolean | null | undefined | WorkspaceDefaultArgs> = $Result.GetResult<Prisma.$WorkspacePayload, S>
  2387. type WorkspaceCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  2388. Omit<WorkspaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  2389. select?: WorkspaceCountAggregateInputType | true
  2390. }
  2391. export interface WorkspaceDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  2392. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Workspace'], meta: { name: 'Workspace' } }
  2393. /**
  2394. * Find zero or one Workspace that matches the filter.
  2395. * @param {WorkspaceFindUniqueArgs} args - Arguments to find a Workspace
  2396. * @example
  2397. * // Get one Workspace
  2398. * const workspace = await prisma.workspace.findUnique({
  2399. * where: {
  2400. * // ... provide filter here
  2401. * }
  2402. * })
  2403. */
  2404. findUnique<T extends WorkspaceFindUniqueArgs>(args: SelectSubset<T, WorkspaceFindUniqueArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2405. /**
  2406. * Find one Workspace that matches the filter or throw an error with `error.code='P2025'`
  2407. * if no matches were found.
  2408. * @param {WorkspaceFindUniqueOrThrowArgs} args - Arguments to find a Workspace
  2409. * @example
  2410. * // Get one Workspace
  2411. * const workspace = await prisma.workspace.findUniqueOrThrow({
  2412. * where: {
  2413. * // ... provide filter here
  2414. * }
  2415. * })
  2416. */
  2417. findUniqueOrThrow<T extends WorkspaceFindUniqueOrThrowArgs>(args: SelectSubset<T, WorkspaceFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2418. /**
  2419. * Find the first Workspace that matches the filter.
  2420. * Note, that providing `undefined` is treated as the value not being there.
  2421. * Read more here: https://pris.ly/d/null-undefined
  2422. * @param {WorkspaceFindFirstArgs} args - Arguments to find a Workspace
  2423. * @example
  2424. * // Get one Workspace
  2425. * const workspace = await prisma.workspace.findFirst({
  2426. * where: {
  2427. * // ... provide filter here
  2428. * }
  2429. * })
  2430. */
  2431. findFirst<T extends WorkspaceFindFirstArgs>(args?: SelectSubset<T, WorkspaceFindFirstArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2432. /**
  2433. * Find the first Workspace that matches the filter or
  2434. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  2435. * Note, that providing `undefined` is treated as the value not being there.
  2436. * Read more here: https://pris.ly/d/null-undefined
  2437. * @param {WorkspaceFindFirstOrThrowArgs} args - Arguments to find a Workspace
  2438. * @example
  2439. * // Get one Workspace
  2440. * const workspace = await prisma.workspace.findFirstOrThrow({
  2441. * where: {
  2442. * // ... provide filter here
  2443. * }
  2444. * })
  2445. */
  2446. findFirstOrThrow<T extends WorkspaceFindFirstOrThrowArgs>(args?: SelectSubset<T, WorkspaceFindFirstOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2447. /**
  2448. * Find zero or more Workspaces that matches the filter.
  2449. * Note, that providing `undefined` is treated as the value not being there.
  2450. * Read more here: https://pris.ly/d/null-undefined
  2451. * @param {WorkspaceFindManyArgs} args - Arguments to filter and select certain fields only.
  2452. * @example
  2453. * // Get all Workspaces
  2454. * const workspaces = await prisma.workspace.findMany()
  2455. *
  2456. * // Get first 10 Workspaces
  2457. * const workspaces = await prisma.workspace.findMany({ take: 10 })
  2458. *
  2459. * // Only select the `id`
  2460. * const workspaceWithIdOnly = await prisma.workspace.findMany({ select: { id: true } })
  2461. *
  2462. */
  2463. findMany<T extends WorkspaceFindManyArgs>(args?: SelectSubset<T, WorkspaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  2464. /**
  2465. * Create a Workspace.
  2466. * @param {WorkspaceCreateArgs} args - Arguments to create a Workspace.
  2467. * @example
  2468. * // Create one Workspace
  2469. * const Workspace = await prisma.workspace.create({
  2470. * data: {
  2471. * // ... data to create a Workspace
  2472. * }
  2473. * })
  2474. *
  2475. */
  2476. create<T extends WorkspaceCreateArgs>(args: SelectSubset<T, WorkspaceCreateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2477. /**
  2478. * Create many Workspaces.
  2479. * @param {WorkspaceCreateManyArgs} args - Arguments to create many Workspaces.
  2480. * @example
  2481. * // Create many Workspaces
  2482. * const workspace = await prisma.workspace.createMany({
  2483. * data: [
  2484. * // ... provide data here
  2485. * ]
  2486. * })
  2487. *
  2488. */
  2489. createMany<T extends WorkspaceCreateManyArgs>(args?: SelectSubset<T, WorkspaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2490. /**
  2491. * Create many Workspaces and returns the data saved in the database.
  2492. * @param {WorkspaceCreateManyAndReturnArgs} args - Arguments to create many Workspaces.
  2493. * @example
  2494. * // Create many Workspaces
  2495. * const workspace = await prisma.workspace.createManyAndReturn({
  2496. * data: [
  2497. * // ... provide data here
  2498. * ]
  2499. * })
  2500. *
  2501. * // Create many Workspaces and only return the `id`
  2502. * const workspaceWithIdOnly = await prisma.workspace.createManyAndReturn({
  2503. * select: { id: true },
  2504. * data: [
  2505. * // ... provide data here
  2506. * ]
  2507. * })
  2508. * Note, that providing `undefined` is treated as the value not being there.
  2509. * Read more here: https://pris.ly/d/null-undefined
  2510. *
  2511. */
  2512. createManyAndReturn<T extends WorkspaceCreateManyAndReturnArgs>(args?: SelectSubset<T, WorkspaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  2513. /**
  2514. * Delete a Workspace.
  2515. * @param {WorkspaceDeleteArgs} args - Arguments to delete one Workspace.
  2516. * @example
  2517. * // Delete one Workspace
  2518. * const Workspace = await prisma.workspace.delete({
  2519. * where: {
  2520. * // ... filter to delete one Workspace
  2521. * }
  2522. * })
  2523. *
  2524. */
  2525. delete<T extends WorkspaceDeleteArgs>(args: SelectSubset<T, WorkspaceDeleteArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2526. /**
  2527. * Update one Workspace.
  2528. * @param {WorkspaceUpdateArgs} args - Arguments to update one Workspace.
  2529. * @example
  2530. * // Update one Workspace
  2531. * const workspace = await prisma.workspace.update({
  2532. * where: {
  2533. * // ... provide filter here
  2534. * },
  2535. * data: {
  2536. * // ... provide data here
  2537. * }
  2538. * })
  2539. *
  2540. */
  2541. update<T extends WorkspaceUpdateArgs>(args: SelectSubset<T, WorkspaceUpdateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2542. /**
  2543. * Delete zero or more Workspaces.
  2544. * @param {WorkspaceDeleteManyArgs} args - Arguments to filter Workspaces to delete.
  2545. * @example
  2546. * // Delete a few Workspaces
  2547. * const { count } = await prisma.workspace.deleteMany({
  2548. * where: {
  2549. * // ... provide filter here
  2550. * }
  2551. * })
  2552. *
  2553. */
  2554. deleteMany<T extends WorkspaceDeleteManyArgs>(args?: SelectSubset<T, WorkspaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2555. /**
  2556. * Update zero or more Workspaces.
  2557. * Note, that providing `undefined` is treated as the value not being there.
  2558. * Read more here: https://pris.ly/d/null-undefined
  2559. * @param {WorkspaceUpdateManyArgs} args - Arguments to update one or more rows.
  2560. * @example
  2561. * // Update many Workspaces
  2562. * const workspace = await prisma.workspace.updateMany({
  2563. * where: {
  2564. * // ... provide filter here
  2565. * },
  2566. * data: {
  2567. * // ... provide data here
  2568. * }
  2569. * })
  2570. *
  2571. */
  2572. updateMany<T extends WorkspaceUpdateManyArgs>(args: SelectSubset<T, WorkspaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2573. /**
  2574. * Update zero or more Workspaces and returns the data updated in the database.
  2575. * @param {WorkspaceUpdateManyAndReturnArgs} args - Arguments to update many Workspaces.
  2576. * @example
  2577. * // Update many Workspaces
  2578. * const workspace = await prisma.workspace.updateManyAndReturn({
  2579. * where: {
  2580. * // ... provide filter here
  2581. * },
  2582. * data: [
  2583. * // ... provide data here
  2584. * ]
  2585. * })
  2586. *
  2587. * // Update zero or more Workspaces and only return the `id`
  2588. * const workspaceWithIdOnly = await prisma.workspace.updateManyAndReturn({
  2589. * select: { id: true },
  2590. * where: {
  2591. * // ... provide filter here
  2592. * },
  2593. * data: [
  2594. * // ... provide data here
  2595. * ]
  2596. * })
  2597. * Note, that providing `undefined` is treated as the value not being there.
  2598. * Read more here: https://pris.ly/d/null-undefined
  2599. *
  2600. */
  2601. updateManyAndReturn<T extends WorkspaceUpdateManyAndReturnArgs>(args: SelectSubset<T, WorkspaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  2602. /**
  2603. * Create or update one Workspace.
  2604. * @param {WorkspaceUpsertArgs} args - Arguments to update or create a Workspace.
  2605. * @example
  2606. * // Update or create a Workspace
  2607. * const workspace = await prisma.workspace.upsert({
  2608. * create: {
  2609. * // ... data to create a Workspace
  2610. * },
  2611. * update: {
  2612. * // ... in case it already exists, update
  2613. * },
  2614. * where: {
  2615. * // ... the filter for the Workspace we want to update
  2616. * }
  2617. * })
  2618. */
  2619. upsert<T extends WorkspaceUpsertArgs>(args: SelectSubset<T, WorkspaceUpsertArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2620. /**
  2621. * Count the number of Workspaces.
  2622. * Note, that providing `undefined` is treated as the value not being there.
  2623. * Read more here: https://pris.ly/d/null-undefined
  2624. * @param {WorkspaceCountArgs} args - Arguments to filter Workspaces to count.
  2625. * @example
  2626. * // Count the number of Workspaces
  2627. * const count = await prisma.workspace.count({
  2628. * where: {
  2629. * // ... the filter for the Workspaces we want to count
  2630. * }
  2631. * })
  2632. **/
  2633. count<T extends WorkspaceCountArgs>(
  2634. args?: Subset<T, WorkspaceCountArgs>,
  2635. ): Prisma.PrismaPromise<
  2636. T extends $Utils.Record<'select', any>
  2637. ? T['select'] extends true
  2638. ? number
  2639. : GetScalarType<T['select'], WorkspaceCountAggregateOutputType>
  2640. : number
  2641. >
  2642. /**
  2643. * Allows you to perform aggregations operations on a Workspace.
  2644. * Note, that providing `undefined` is treated as the value not being there.
  2645. * Read more here: https://pris.ly/d/null-undefined
  2646. * @param {WorkspaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  2647. * @example
  2648. * // Ordered by age ascending
  2649. * // Where email contains prisma.io
  2650. * // Limited to the 10 users
  2651. * const aggregations = await prisma.user.aggregate({
  2652. * _avg: {
  2653. * age: true,
  2654. * },
  2655. * where: {
  2656. * email: {
  2657. * contains: "prisma.io",
  2658. * },
  2659. * },
  2660. * orderBy: {
  2661. * age: "asc",
  2662. * },
  2663. * take: 10,
  2664. * })
  2665. **/
  2666. aggregate<T extends WorkspaceAggregateArgs>(args: Subset<T, WorkspaceAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceAggregateType<T>>
  2667. /**
  2668. * Group by Workspace.
  2669. * Note, that providing `undefined` is treated as the value not being there.
  2670. * Read more here: https://pris.ly/d/null-undefined
  2671. * @param {WorkspaceGroupByArgs} args - Group by arguments.
  2672. * @example
  2673. * // Group by city, order by createdAt, get count
  2674. * const result = await prisma.user.groupBy({
  2675. * by: ['city', 'createdAt'],
  2676. * orderBy: {
  2677. * createdAt: true
  2678. * },
  2679. * _count: {
  2680. * _all: true
  2681. * },
  2682. * })
  2683. *
  2684. **/
  2685. groupBy<
  2686. T extends WorkspaceGroupByArgs,
  2687. HasSelectOrTake extends Or<
  2688. Extends<'skip', Keys<T>>,
  2689. Extends<'take', Keys<T>>
  2690. >,
  2691. OrderByArg extends True extends HasSelectOrTake
  2692. ? { orderBy: WorkspaceGroupByArgs['orderBy'] }
  2693. : { orderBy?: WorkspaceGroupByArgs['orderBy'] },
  2694. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  2695. ByFields extends MaybeTupleToUnion<T['by']>,
  2696. ByValid extends Has<ByFields, OrderFields>,
  2697. HavingFields extends GetHavingFields<T['having']>,
  2698. HavingValid extends Has<ByFields, HavingFields>,
  2699. ByEmpty extends T['by'] extends never[] ? True : False,
  2700. InputErrors extends ByEmpty extends True
  2701. ? `Error: "by" must not be empty.`
  2702. : HavingValid extends False
  2703. ? {
  2704. [P in HavingFields]: P extends ByFields
  2705. ? never
  2706. : P extends string
  2707. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  2708. : [
  2709. Error,
  2710. 'Field ',
  2711. P,
  2712. ` in "having" needs to be provided in "by"`,
  2713. ]
  2714. }[HavingFields]
  2715. : 'take' extends Keys<T>
  2716. ? 'orderBy' extends Keys<T>
  2717. ? ByValid extends True
  2718. ? {}
  2719. : {
  2720. [P in OrderFields]: P extends ByFields
  2721. ? never
  2722. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2723. }[OrderFields]
  2724. : 'Error: If you provide "take", you also need to provide "orderBy"'
  2725. : 'skip' extends Keys<T>
  2726. ? 'orderBy' extends Keys<T>
  2727. ? ByValid extends True
  2728. ? {}
  2729. : {
  2730. [P in OrderFields]: P extends ByFields
  2731. ? never
  2732. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2733. }[OrderFields]
  2734. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  2735. : ByValid extends True
  2736. ? {}
  2737. : {
  2738. [P in OrderFields]: P extends ByFields
  2739. ? never
  2740. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2741. }[OrderFields]
  2742. >(args: SubsetIntersection<T, WorkspaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  2743. /**
  2744. * Fields of the Workspace model
  2745. */
  2746. readonly fields: WorkspaceFieldRefs;
  2747. }
  2748. /**
  2749. * The delegate class that acts as a "Promise-like" for Workspace.
  2750. * Why is this prefixed with `Prisma__`?
  2751. * Because we want to prevent naming conflicts as mentioned in
  2752. * https://github.com/prisma/prisma-client-js/issues/707
  2753. */
  2754. export interface Prisma__WorkspaceClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  2755. readonly [Symbol.toStringTag]: "PrismaPromise"
  2756. 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>
  2757. owner<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  2758. contributors<T extends Workspace$contributorsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$contributorsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2759. ideas<T extends Workspace$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2760. manualRelanceLogs<T extends Workspace$manualRelanceLogsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$manualRelanceLogsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2761. /**
  2762. * Attaches callbacks for the resolution and/or rejection of the Promise.
  2763. * @param onfulfilled The callback to execute when the Promise is resolved.
  2764. * @param onrejected The callback to execute when the Promise is rejected.
  2765. * @returns A Promise for the completion of which ever callback is executed.
  2766. */
  2767. 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>
  2768. /**
  2769. * Attaches a callback for only the rejection of the Promise.
  2770. * @param onrejected The callback to execute when the Promise is rejected.
  2771. * @returns A Promise for the completion of the callback.
  2772. */
  2773. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  2774. /**
  2775. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  2776. * resolved value cannot be modified from the callback.
  2777. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  2778. * @returns A Promise for the completion of the callback.
  2779. */
  2780. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  2781. }
  2782. /**
  2783. * Fields of the Workspace model
  2784. */
  2785. interface WorkspaceFieldRefs {
  2786. readonly id: FieldRef<"Workspace", 'String'>
  2787. readonly name: FieldRef<"Workspace", 'String'>
  2788. readonly slug: FieldRef<"Workspace", 'String'>
  2789. readonly sector: FieldRef<"Workspace", 'String'>
  2790. readonly companySize: FieldRef<"Workspace", 'Int'>
  2791. readonly contactEmail: FieldRef<"Workspace", 'String'>
  2792. readonly tier: FieldRef<"Workspace", 'WorkspaceTier'>
  2793. readonly llmCallsThisMonth: FieldRef<"Workspace", 'Int'>
  2794. readonly llmCallsResetAt: FieldRef<"Workspace", 'DateTime'>
  2795. readonly autoRelanceEnabled: FieldRef<"Workspace", 'Boolean'>
  2796. readonly exportsThisMonth: FieldRef<"Workspace", 'Int'>
  2797. readonly exportsResetAt: FieldRef<"Workspace", 'DateTime'>
  2798. readonly lastVisitedAt: FieldRef<"Workspace", 'DateTime'>
  2799. readonly createdAt: FieldRef<"Workspace", 'DateTime'>
  2800. readonly updatedAt: FieldRef<"Workspace", 'DateTime'>
  2801. readonly ownerId: FieldRef<"Workspace", 'String'>
  2802. }
  2803. // Custom InputTypes
  2804. /**
  2805. * Workspace findUnique
  2806. */
  2807. export type WorkspaceFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2808. /**
  2809. * Select specific fields to fetch from the Workspace
  2810. */
  2811. select?: WorkspaceSelect<ExtArgs> | null
  2812. /**
  2813. * Omit specific fields from the Workspace
  2814. */
  2815. omit?: WorkspaceOmit<ExtArgs> | null
  2816. /**
  2817. * Choose, which related nodes to fetch as well
  2818. */
  2819. include?: WorkspaceInclude<ExtArgs> | null
  2820. /**
  2821. * Filter, which Workspace to fetch.
  2822. */
  2823. where: WorkspaceWhereUniqueInput
  2824. }
  2825. /**
  2826. * Workspace findUniqueOrThrow
  2827. */
  2828. export type WorkspaceFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2829. /**
  2830. * Select specific fields to fetch from the Workspace
  2831. */
  2832. select?: WorkspaceSelect<ExtArgs> | null
  2833. /**
  2834. * Omit specific fields from the Workspace
  2835. */
  2836. omit?: WorkspaceOmit<ExtArgs> | null
  2837. /**
  2838. * Choose, which related nodes to fetch as well
  2839. */
  2840. include?: WorkspaceInclude<ExtArgs> | null
  2841. /**
  2842. * Filter, which Workspace to fetch.
  2843. */
  2844. where: WorkspaceWhereUniqueInput
  2845. }
  2846. /**
  2847. * Workspace findFirst
  2848. */
  2849. export type WorkspaceFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2850. /**
  2851. * Select specific fields to fetch from the Workspace
  2852. */
  2853. select?: WorkspaceSelect<ExtArgs> | null
  2854. /**
  2855. * Omit specific fields from the Workspace
  2856. */
  2857. omit?: WorkspaceOmit<ExtArgs> | null
  2858. /**
  2859. * Choose, which related nodes to fetch as well
  2860. */
  2861. include?: WorkspaceInclude<ExtArgs> | null
  2862. /**
  2863. * Filter, which Workspace to fetch.
  2864. */
  2865. where?: WorkspaceWhereInput
  2866. /**
  2867. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2868. *
  2869. * Determine the order of Workspaces to fetch.
  2870. */
  2871. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2872. /**
  2873. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2874. *
  2875. * Sets the position for searching for Workspaces.
  2876. */
  2877. cursor?: WorkspaceWhereUniqueInput
  2878. /**
  2879. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2880. *
  2881. * Take `±n` Workspaces from the position of the cursor.
  2882. */
  2883. take?: number
  2884. /**
  2885. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2886. *
  2887. * Skip the first `n` Workspaces.
  2888. */
  2889. skip?: number
  2890. /**
  2891. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  2892. *
  2893. * Filter by unique combinations of Workspaces.
  2894. */
  2895. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  2896. }
  2897. /**
  2898. * Workspace findFirstOrThrow
  2899. */
  2900. export type WorkspaceFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2901. /**
  2902. * Select specific fields to fetch from the Workspace
  2903. */
  2904. select?: WorkspaceSelect<ExtArgs> | null
  2905. /**
  2906. * Omit specific fields from the Workspace
  2907. */
  2908. omit?: WorkspaceOmit<ExtArgs> | null
  2909. /**
  2910. * Choose, which related nodes to fetch as well
  2911. */
  2912. include?: WorkspaceInclude<ExtArgs> | null
  2913. /**
  2914. * Filter, which Workspace to fetch.
  2915. */
  2916. where?: WorkspaceWhereInput
  2917. /**
  2918. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2919. *
  2920. * Determine the order of Workspaces to fetch.
  2921. */
  2922. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2923. /**
  2924. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2925. *
  2926. * Sets the position for searching for Workspaces.
  2927. */
  2928. cursor?: WorkspaceWhereUniqueInput
  2929. /**
  2930. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2931. *
  2932. * Take `±n` Workspaces from the position of the cursor.
  2933. */
  2934. take?: number
  2935. /**
  2936. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2937. *
  2938. * Skip the first `n` Workspaces.
  2939. */
  2940. skip?: number
  2941. /**
  2942. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  2943. *
  2944. * Filter by unique combinations of Workspaces.
  2945. */
  2946. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  2947. }
  2948. /**
  2949. * Workspace findMany
  2950. */
  2951. export type WorkspaceFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2952. /**
  2953. * Select specific fields to fetch from the Workspace
  2954. */
  2955. select?: WorkspaceSelect<ExtArgs> | null
  2956. /**
  2957. * Omit specific fields from the Workspace
  2958. */
  2959. omit?: WorkspaceOmit<ExtArgs> | null
  2960. /**
  2961. * Choose, which related nodes to fetch as well
  2962. */
  2963. include?: WorkspaceInclude<ExtArgs> | null
  2964. /**
  2965. * Filter, which Workspaces to fetch.
  2966. */
  2967. where?: WorkspaceWhereInput
  2968. /**
  2969. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2970. *
  2971. * Determine the order of Workspaces to fetch.
  2972. */
  2973. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2974. /**
  2975. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2976. *
  2977. * Sets the position for listing Workspaces.
  2978. */
  2979. cursor?: WorkspaceWhereUniqueInput
  2980. /**
  2981. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2982. *
  2983. * Take `±n` Workspaces from the position of the cursor.
  2984. */
  2985. take?: number
  2986. /**
  2987. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2988. *
  2989. * Skip the first `n` Workspaces.
  2990. */
  2991. skip?: number
  2992. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  2993. }
  2994. /**
  2995. * Workspace create
  2996. */
  2997. export type WorkspaceCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2998. /**
  2999. * Select specific fields to fetch from the Workspace
  3000. */
  3001. select?: WorkspaceSelect<ExtArgs> | null
  3002. /**
  3003. * Omit specific fields from the Workspace
  3004. */
  3005. omit?: WorkspaceOmit<ExtArgs> | null
  3006. /**
  3007. * Choose, which related nodes to fetch as well
  3008. */
  3009. include?: WorkspaceInclude<ExtArgs> | null
  3010. /**
  3011. * The data needed to create a Workspace.
  3012. */
  3013. data: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3014. }
  3015. /**
  3016. * Workspace createMany
  3017. */
  3018. export type WorkspaceCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3019. /**
  3020. * The data used to create many Workspaces.
  3021. */
  3022. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3023. skipDuplicates?: boolean
  3024. }
  3025. /**
  3026. * Workspace createManyAndReturn
  3027. */
  3028. export type WorkspaceCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3029. /**
  3030. * Select specific fields to fetch from the Workspace
  3031. */
  3032. select?: WorkspaceSelectCreateManyAndReturn<ExtArgs> | null
  3033. /**
  3034. * Omit specific fields from the Workspace
  3035. */
  3036. omit?: WorkspaceOmit<ExtArgs> | null
  3037. /**
  3038. * The data used to create many Workspaces.
  3039. */
  3040. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3041. skipDuplicates?: boolean
  3042. /**
  3043. * Choose, which related nodes to fetch as well
  3044. */
  3045. include?: WorkspaceIncludeCreateManyAndReturn<ExtArgs> | null
  3046. }
  3047. /**
  3048. * Workspace update
  3049. */
  3050. export type WorkspaceUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3051. /**
  3052. * Select specific fields to fetch from the Workspace
  3053. */
  3054. select?: WorkspaceSelect<ExtArgs> | null
  3055. /**
  3056. * Omit specific fields from the Workspace
  3057. */
  3058. omit?: WorkspaceOmit<ExtArgs> | null
  3059. /**
  3060. * Choose, which related nodes to fetch as well
  3061. */
  3062. include?: WorkspaceInclude<ExtArgs> | null
  3063. /**
  3064. * The data needed to update a Workspace.
  3065. */
  3066. data: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3067. /**
  3068. * Choose, which Workspace to update.
  3069. */
  3070. where: WorkspaceWhereUniqueInput
  3071. }
  3072. /**
  3073. * Workspace updateMany
  3074. */
  3075. export type WorkspaceUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3076. /**
  3077. * The data used to update Workspaces.
  3078. */
  3079. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3080. /**
  3081. * Filter which Workspaces to update
  3082. */
  3083. where?: WorkspaceWhereInput
  3084. /**
  3085. * Limit how many Workspaces to update.
  3086. */
  3087. limit?: number
  3088. }
  3089. /**
  3090. * Workspace updateManyAndReturn
  3091. */
  3092. export type WorkspaceUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3093. /**
  3094. * Select specific fields to fetch from the Workspace
  3095. */
  3096. select?: WorkspaceSelectUpdateManyAndReturn<ExtArgs> | null
  3097. /**
  3098. * Omit specific fields from the Workspace
  3099. */
  3100. omit?: WorkspaceOmit<ExtArgs> | null
  3101. /**
  3102. * The data used to update Workspaces.
  3103. */
  3104. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3105. /**
  3106. * Filter which Workspaces to update
  3107. */
  3108. where?: WorkspaceWhereInput
  3109. /**
  3110. * Limit how many Workspaces to update.
  3111. */
  3112. limit?: number
  3113. /**
  3114. * Choose, which related nodes to fetch as well
  3115. */
  3116. include?: WorkspaceIncludeUpdateManyAndReturn<ExtArgs> | null
  3117. }
  3118. /**
  3119. * Workspace upsert
  3120. */
  3121. export type WorkspaceUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3122. /**
  3123. * Select specific fields to fetch from the Workspace
  3124. */
  3125. select?: WorkspaceSelect<ExtArgs> | null
  3126. /**
  3127. * Omit specific fields from the Workspace
  3128. */
  3129. omit?: WorkspaceOmit<ExtArgs> | null
  3130. /**
  3131. * Choose, which related nodes to fetch as well
  3132. */
  3133. include?: WorkspaceInclude<ExtArgs> | null
  3134. /**
  3135. * The filter to search for the Workspace to update in case it exists.
  3136. */
  3137. where: WorkspaceWhereUniqueInput
  3138. /**
  3139. * In case the Workspace found by the `where` argument doesn't exist, create a new Workspace with this data.
  3140. */
  3141. create: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3142. /**
  3143. * In case the Workspace was found with the provided `where` argument, update it with this data.
  3144. */
  3145. update: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3146. }
  3147. /**
  3148. * Workspace delete
  3149. */
  3150. export type WorkspaceDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3151. /**
  3152. * Select specific fields to fetch from the Workspace
  3153. */
  3154. select?: WorkspaceSelect<ExtArgs> | null
  3155. /**
  3156. * Omit specific fields from the Workspace
  3157. */
  3158. omit?: WorkspaceOmit<ExtArgs> | null
  3159. /**
  3160. * Choose, which related nodes to fetch as well
  3161. */
  3162. include?: WorkspaceInclude<ExtArgs> | null
  3163. /**
  3164. * Filter which Workspace to delete.
  3165. */
  3166. where: WorkspaceWhereUniqueInput
  3167. }
  3168. /**
  3169. * Workspace deleteMany
  3170. */
  3171. export type WorkspaceDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3172. /**
  3173. * Filter which Workspaces to delete
  3174. */
  3175. where?: WorkspaceWhereInput
  3176. /**
  3177. * Limit how many Workspaces to delete.
  3178. */
  3179. limit?: number
  3180. }
  3181. /**
  3182. * Workspace.shareLink
  3183. */
  3184. export type Workspace$shareLinkArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3185. /**
  3186. * Select specific fields to fetch from the ShareLink
  3187. */
  3188. select?: ShareLinkSelect<ExtArgs> | null
  3189. /**
  3190. * Omit specific fields from the ShareLink
  3191. */
  3192. omit?: ShareLinkOmit<ExtArgs> | null
  3193. /**
  3194. * Choose, which related nodes to fetch as well
  3195. */
  3196. include?: ShareLinkInclude<ExtArgs> | null
  3197. where?: ShareLinkWhereInput
  3198. }
  3199. /**
  3200. * Workspace.contributors
  3201. */
  3202. export type Workspace$contributorsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3203. /**
  3204. * Select specific fields to fetch from the Contributor
  3205. */
  3206. select?: ContributorSelect<ExtArgs> | null
  3207. /**
  3208. * Omit specific fields from the Contributor
  3209. */
  3210. omit?: ContributorOmit<ExtArgs> | null
  3211. /**
  3212. * Choose, which related nodes to fetch as well
  3213. */
  3214. include?: ContributorInclude<ExtArgs> | null
  3215. where?: ContributorWhereInput
  3216. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  3217. cursor?: ContributorWhereUniqueInput
  3218. take?: number
  3219. skip?: number
  3220. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  3221. }
  3222. /**
  3223. * Workspace.ideas
  3224. */
  3225. export type Workspace$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3226. /**
  3227. * Select specific fields to fetch from the Idea
  3228. */
  3229. select?: IdeaSelect<ExtArgs> | null
  3230. /**
  3231. * Omit specific fields from the Idea
  3232. */
  3233. omit?: IdeaOmit<ExtArgs> | null
  3234. /**
  3235. * Choose, which related nodes to fetch as well
  3236. */
  3237. include?: IdeaInclude<ExtArgs> | null
  3238. where?: IdeaWhereInput
  3239. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  3240. cursor?: IdeaWhereUniqueInput
  3241. take?: number
  3242. skip?: number
  3243. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  3244. }
  3245. /**
  3246. * Workspace.manualRelanceLogs
  3247. */
  3248. export type Workspace$manualRelanceLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3249. /**
  3250. * Select specific fields to fetch from the ManualRelanceLog
  3251. */
  3252. select?: ManualRelanceLogSelect<ExtArgs> | null
  3253. /**
  3254. * Omit specific fields from the ManualRelanceLog
  3255. */
  3256. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3257. /**
  3258. * Choose, which related nodes to fetch as well
  3259. */
  3260. include?: ManualRelanceLogInclude<ExtArgs> | null
  3261. where?: ManualRelanceLogWhereInput
  3262. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3263. cursor?: ManualRelanceLogWhereUniqueInput
  3264. take?: number
  3265. skip?: number
  3266. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  3267. }
  3268. /**
  3269. * Workspace without action
  3270. */
  3271. export type WorkspaceDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3272. /**
  3273. * Select specific fields to fetch from the Workspace
  3274. */
  3275. select?: WorkspaceSelect<ExtArgs> | null
  3276. /**
  3277. * Omit specific fields from the Workspace
  3278. */
  3279. omit?: WorkspaceOmit<ExtArgs> | null
  3280. /**
  3281. * Choose, which related nodes to fetch as well
  3282. */
  3283. include?: WorkspaceInclude<ExtArgs> | null
  3284. }
  3285. /**
  3286. * Model ManualRelanceLog
  3287. */
  3288. export type AggregateManualRelanceLog = {
  3289. _count: ManualRelanceLogCountAggregateOutputType | null
  3290. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3291. _sum: ManualRelanceLogSumAggregateOutputType | null
  3292. _min: ManualRelanceLogMinAggregateOutputType | null
  3293. _max: ManualRelanceLogMaxAggregateOutputType | null
  3294. }
  3295. export type ManualRelanceLogAvgAggregateOutputType = {
  3296. recipientCount: number | null
  3297. sentCount: number | null
  3298. failedCount: number | null
  3299. }
  3300. export type ManualRelanceLogSumAggregateOutputType = {
  3301. recipientCount: number | null
  3302. sentCount: number | null
  3303. failedCount: number | null
  3304. }
  3305. export type ManualRelanceLogMinAggregateOutputType = {
  3306. id: string | null
  3307. workspaceId: string | null
  3308. subject: string | null
  3309. recipientCount: number | null
  3310. sentCount: number | null
  3311. failedCount: number | null
  3312. sentAt: Date | null
  3313. }
  3314. export type ManualRelanceLogMaxAggregateOutputType = {
  3315. id: string | null
  3316. workspaceId: string | null
  3317. subject: string | null
  3318. recipientCount: number | null
  3319. sentCount: number | null
  3320. failedCount: number | null
  3321. sentAt: Date | null
  3322. }
  3323. export type ManualRelanceLogCountAggregateOutputType = {
  3324. id: number
  3325. workspaceId: number
  3326. subject: number
  3327. recipientCount: number
  3328. sentCount: number
  3329. failedCount: number
  3330. sentAt: number
  3331. _all: number
  3332. }
  3333. export type ManualRelanceLogAvgAggregateInputType = {
  3334. recipientCount?: true
  3335. sentCount?: true
  3336. failedCount?: true
  3337. }
  3338. export type ManualRelanceLogSumAggregateInputType = {
  3339. recipientCount?: true
  3340. sentCount?: true
  3341. failedCount?: true
  3342. }
  3343. export type ManualRelanceLogMinAggregateInputType = {
  3344. id?: true
  3345. workspaceId?: true
  3346. subject?: true
  3347. recipientCount?: true
  3348. sentCount?: true
  3349. failedCount?: true
  3350. sentAt?: true
  3351. }
  3352. export type ManualRelanceLogMaxAggregateInputType = {
  3353. id?: true
  3354. workspaceId?: true
  3355. subject?: true
  3356. recipientCount?: true
  3357. sentCount?: true
  3358. failedCount?: true
  3359. sentAt?: true
  3360. }
  3361. export type ManualRelanceLogCountAggregateInputType = {
  3362. id?: true
  3363. workspaceId?: true
  3364. subject?: true
  3365. recipientCount?: true
  3366. sentCount?: true
  3367. failedCount?: true
  3368. sentAt?: true
  3369. _all?: true
  3370. }
  3371. export type ManualRelanceLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3372. /**
  3373. * Filter which ManualRelanceLog to aggregate.
  3374. */
  3375. where?: ManualRelanceLogWhereInput
  3376. /**
  3377. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  3378. *
  3379. * Determine the order of ManualRelanceLogs to fetch.
  3380. */
  3381. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3382. /**
  3383. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  3384. *
  3385. * Sets the start position
  3386. */
  3387. cursor?: ManualRelanceLogWhereUniqueInput
  3388. /**
  3389. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3390. *
  3391. * Take `±n` ManualRelanceLogs from the position of the cursor.
  3392. */
  3393. take?: number
  3394. /**
  3395. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3396. *
  3397. * Skip the first `n` ManualRelanceLogs.
  3398. */
  3399. skip?: number
  3400. /**
  3401. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3402. *
  3403. * Count returned ManualRelanceLogs
  3404. **/
  3405. _count?: true | ManualRelanceLogCountAggregateInputType
  3406. /**
  3407. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3408. *
  3409. * Select which fields to average
  3410. **/
  3411. _avg?: ManualRelanceLogAvgAggregateInputType
  3412. /**
  3413. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3414. *
  3415. * Select which fields to sum
  3416. **/
  3417. _sum?: ManualRelanceLogSumAggregateInputType
  3418. /**
  3419. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3420. *
  3421. * Select which fields to find the minimum value
  3422. **/
  3423. _min?: ManualRelanceLogMinAggregateInputType
  3424. /**
  3425. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3426. *
  3427. * Select which fields to find the maximum value
  3428. **/
  3429. _max?: ManualRelanceLogMaxAggregateInputType
  3430. }
  3431. export type GetManualRelanceLogAggregateType<T extends ManualRelanceLogAggregateArgs> = {
  3432. [P in keyof T & keyof AggregateManualRelanceLog]: P extends '_count' | 'count'
  3433. ? T[P] extends true
  3434. ? number
  3435. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3436. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3437. }
  3438. export type ManualRelanceLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3439. where?: ManualRelanceLogWhereInput
  3440. orderBy?: ManualRelanceLogOrderByWithAggregationInput | ManualRelanceLogOrderByWithAggregationInput[]
  3441. by: ManualRelanceLogScalarFieldEnum[] | ManualRelanceLogScalarFieldEnum
  3442. having?: ManualRelanceLogScalarWhereWithAggregatesInput
  3443. take?: number
  3444. skip?: number
  3445. _count?: ManualRelanceLogCountAggregateInputType | true
  3446. _avg?: ManualRelanceLogAvgAggregateInputType
  3447. _sum?: ManualRelanceLogSumAggregateInputType
  3448. _min?: ManualRelanceLogMinAggregateInputType
  3449. _max?: ManualRelanceLogMaxAggregateInputType
  3450. }
  3451. export type ManualRelanceLogGroupByOutputType = {
  3452. id: string
  3453. workspaceId: string
  3454. subject: string
  3455. recipientCount: number
  3456. sentCount: number
  3457. failedCount: number
  3458. sentAt: Date
  3459. _count: ManualRelanceLogCountAggregateOutputType | null
  3460. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3461. _sum: ManualRelanceLogSumAggregateOutputType | null
  3462. _min: ManualRelanceLogMinAggregateOutputType | null
  3463. _max: ManualRelanceLogMaxAggregateOutputType | null
  3464. }
  3465. type GetManualRelanceLogGroupByPayload<T extends ManualRelanceLogGroupByArgs> = Prisma.PrismaPromise<
  3466. Array<
  3467. PickEnumerable<ManualRelanceLogGroupByOutputType, T['by']> &
  3468. {
  3469. [P in ((keyof T) & (keyof ManualRelanceLogGroupByOutputType))]: P extends '_count'
  3470. ? T[P] extends boolean
  3471. ? number
  3472. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3473. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3474. }
  3475. >
  3476. >
  3477. export type ManualRelanceLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3478. id?: boolean
  3479. workspaceId?: boolean
  3480. subject?: boolean
  3481. recipientCount?: boolean
  3482. sentCount?: boolean
  3483. failedCount?: boolean
  3484. sentAt?: boolean
  3485. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3486. }, ExtArgs["result"]["manualRelanceLog"]>
  3487. export type ManualRelanceLogSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3488. id?: boolean
  3489. workspaceId?: boolean
  3490. subject?: boolean
  3491. recipientCount?: boolean
  3492. sentCount?: boolean
  3493. failedCount?: boolean
  3494. sentAt?: boolean
  3495. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3496. }, ExtArgs["result"]["manualRelanceLog"]>
  3497. export type ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3498. id?: boolean
  3499. workspaceId?: boolean
  3500. subject?: boolean
  3501. recipientCount?: boolean
  3502. sentCount?: boolean
  3503. failedCount?: boolean
  3504. sentAt?: boolean
  3505. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3506. }, ExtArgs["result"]["manualRelanceLog"]>
  3507. export type ManualRelanceLogSelectScalar = {
  3508. id?: boolean
  3509. workspaceId?: boolean
  3510. subject?: boolean
  3511. recipientCount?: boolean
  3512. sentCount?: boolean
  3513. failedCount?: boolean
  3514. sentAt?: boolean
  3515. }
  3516. export type ManualRelanceLogOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "subject" | "recipientCount" | "sentCount" | "failedCount" | "sentAt", ExtArgs["result"]["manualRelanceLog"]>
  3517. export type ManualRelanceLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3518. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3519. }
  3520. export type ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3521. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3522. }
  3523. export type ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3524. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3525. }
  3526. export type $ManualRelanceLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3527. name: "ManualRelanceLog"
  3528. objects: {
  3529. workspace: Prisma.$WorkspacePayload<ExtArgs>
  3530. }
  3531. scalars: $Extensions.GetPayloadResult<{
  3532. id: string
  3533. workspaceId: string
  3534. subject: string
  3535. recipientCount: number
  3536. sentCount: number
  3537. failedCount: number
  3538. sentAt: Date
  3539. }, ExtArgs["result"]["manualRelanceLog"]>
  3540. composites: {}
  3541. }
  3542. type ManualRelanceLogGetPayload<S extends boolean | null | undefined | ManualRelanceLogDefaultArgs> = $Result.GetResult<Prisma.$ManualRelanceLogPayload, S>
  3543. type ManualRelanceLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  3544. Omit<ManualRelanceLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  3545. select?: ManualRelanceLogCountAggregateInputType | true
  3546. }
  3547. export interface ManualRelanceLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  3548. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ManualRelanceLog'], meta: { name: 'ManualRelanceLog' } }
  3549. /**
  3550. * Find zero or one ManualRelanceLog that matches the filter.
  3551. * @param {ManualRelanceLogFindUniqueArgs} args - Arguments to find a ManualRelanceLog
  3552. * @example
  3553. * // Get one ManualRelanceLog
  3554. * const manualRelanceLog = await prisma.manualRelanceLog.findUnique({
  3555. * where: {
  3556. * // ... provide filter here
  3557. * }
  3558. * })
  3559. */
  3560. findUnique<T extends ManualRelanceLogFindUniqueArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3561. /**
  3562. * Find one ManualRelanceLog that matches the filter or throw an error with `error.code='P2025'`
  3563. * if no matches were found.
  3564. * @param {ManualRelanceLogFindUniqueOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3565. * @example
  3566. * // Get one ManualRelanceLog
  3567. * const manualRelanceLog = await prisma.manualRelanceLog.findUniqueOrThrow({
  3568. * where: {
  3569. * // ... provide filter here
  3570. * }
  3571. * })
  3572. */
  3573. findUniqueOrThrow<T extends ManualRelanceLogFindUniqueOrThrowArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3574. /**
  3575. * Find the first ManualRelanceLog that matches the filter.
  3576. * Note, that providing `undefined` is treated as the value not being there.
  3577. * Read more here: https://pris.ly/d/null-undefined
  3578. * @param {ManualRelanceLogFindFirstArgs} args - Arguments to find a ManualRelanceLog
  3579. * @example
  3580. * // Get one ManualRelanceLog
  3581. * const manualRelanceLog = await prisma.manualRelanceLog.findFirst({
  3582. * where: {
  3583. * // ... provide filter here
  3584. * }
  3585. * })
  3586. */
  3587. findFirst<T extends ManualRelanceLogFindFirstArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3588. /**
  3589. * Find the first ManualRelanceLog that matches the filter or
  3590. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  3591. * Note, that providing `undefined` is treated as the value not being there.
  3592. * Read more here: https://pris.ly/d/null-undefined
  3593. * @param {ManualRelanceLogFindFirstOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3594. * @example
  3595. * // Get one ManualRelanceLog
  3596. * const manualRelanceLog = await prisma.manualRelanceLog.findFirstOrThrow({
  3597. * where: {
  3598. * // ... provide filter here
  3599. * }
  3600. * })
  3601. */
  3602. findFirstOrThrow<T extends ManualRelanceLogFindFirstOrThrowArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3603. /**
  3604. * Find zero or more ManualRelanceLogs that matches the filter.
  3605. * Note, that providing `undefined` is treated as the value not being there.
  3606. * Read more here: https://pris.ly/d/null-undefined
  3607. * @param {ManualRelanceLogFindManyArgs} args - Arguments to filter and select certain fields only.
  3608. * @example
  3609. * // Get all ManualRelanceLogs
  3610. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany()
  3611. *
  3612. * // Get first 10 ManualRelanceLogs
  3613. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany({ take: 10 })
  3614. *
  3615. * // Only select the `id`
  3616. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.findMany({ select: { id: true } })
  3617. *
  3618. */
  3619. findMany<T extends ManualRelanceLogFindManyArgs>(args?: SelectSubset<T, ManualRelanceLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  3620. /**
  3621. * Create a ManualRelanceLog.
  3622. * @param {ManualRelanceLogCreateArgs} args - Arguments to create a ManualRelanceLog.
  3623. * @example
  3624. * // Create one ManualRelanceLog
  3625. * const ManualRelanceLog = await prisma.manualRelanceLog.create({
  3626. * data: {
  3627. * // ... data to create a ManualRelanceLog
  3628. * }
  3629. * })
  3630. *
  3631. */
  3632. create<T extends ManualRelanceLogCreateArgs>(args: SelectSubset<T, ManualRelanceLogCreateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3633. /**
  3634. * Create many ManualRelanceLogs.
  3635. * @param {ManualRelanceLogCreateManyArgs} args - Arguments to create many ManualRelanceLogs.
  3636. * @example
  3637. * // Create many ManualRelanceLogs
  3638. * const manualRelanceLog = await prisma.manualRelanceLog.createMany({
  3639. * data: [
  3640. * // ... provide data here
  3641. * ]
  3642. * })
  3643. *
  3644. */
  3645. createMany<T extends ManualRelanceLogCreateManyArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3646. /**
  3647. * Create many ManualRelanceLogs and returns the data saved in the database.
  3648. * @param {ManualRelanceLogCreateManyAndReturnArgs} args - Arguments to create many ManualRelanceLogs.
  3649. * @example
  3650. * // Create many ManualRelanceLogs
  3651. * const manualRelanceLog = await prisma.manualRelanceLog.createManyAndReturn({
  3652. * data: [
  3653. * // ... provide data here
  3654. * ]
  3655. * })
  3656. *
  3657. * // Create many ManualRelanceLogs and only return the `id`
  3658. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.createManyAndReturn({
  3659. * select: { id: true },
  3660. * data: [
  3661. * // ... provide data here
  3662. * ]
  3663. * })
  3664. * Note, that providing `undefined` is treated as the value not being there.
  3665. * Read more here: https://pris.ly/d/null-undefined
  3666. *
  3667. */
  3668. createManyAndReturn<T extends ManualRelanceLogCreateManyAndReturnArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  3669. /**
  3670. * Delete a ManualRelanceLog.
  3671. * @param {ManualRelanceLogDeleteArgs} args - Arguments to delete one ManualRelanceLog.
  3672. * @example
  3673. * // Delete one ManualRelanceLog
  3674. * const ManualRelanceLog = await prisma.manualRelanceLog.delete({
  3675. * where: {
  3676. * // ... filter to delete one ManualRelanceLog
  3677. * }
  3678. * })
  3679. *
  3680. */
  3681. delete<T extends ManualRelanceLogDeleteArgs>(args: SelectSubset<T, ManualRelanceLogDeleteArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3682. /**
  3683. * Update one ManualRelanceLog.
  3684. * @param {ManualRelanceLogUpdateArgs} args - Arguments to update one ManualRelanceLog.
  3685. * @example
  3686. * // Update one ManualRelanceLog
  3687. * const manualRelanceLog = await prisma.manualRelanceLog.update({
  3688. * where: {
  3689. * // ... provide filter here
  3690. * },
  3691. * data: {
  3692. * // ... provide data here
  3693. * }
  3694. * })
  3695. *
  3696. */
  3697. update<T extends ManualRelanceLogUpdateArgs>(args: SelectSubset<T, ManualRelanceLogUpdateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3698. /**
  3699. * Delete zero or more ManualRelanceLogs.
  3700. * @param {ManualRelanceLogDeleteManyArgs} args - Arguments to filter ManualRelanceLogs to delete.
  3701. * @example
  3702. * // Delete a few ManualRelanceLogs
  3703. * const { count } = await prisma.manualRelanceLog.deleteMany({
  3704. * where: {
  3705. * // ... provide filter here
  3706. * }
  3707. * })
  3708. *
  3709. */
  3710. deleteMany<T extends ManualRelanceLogDeleteManyArgs>(args?: SelectSubset<T, ManualRelanceLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3711. /**
  3712. * Update zero or more ManualRelanceLogs.
  3713. * Note, that providing `undefined` is treated as the value not being there.
  3714. * Read more here: https://pris.ly/d/null-undefined
  3715. * @param {ManualRelanceLogUpdateManyArgs} args - Arguments to update one or more rows.
  3716. * @example
  3717. * // Update many ManualRelanceLogs
  3718. * const manualRelanceLog = await prisma.manualRelanceLog.updateMany({
  3719. * where: {
  3720. * // ... provide filter here
  3721. * },
  3722. * data: {
  3723. * // ... provide data here
  3724. * }
  3725. * })
  3726. *
  3727. */
  3728. updateMany<T extends ManualRelanceLogUpdateManyArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3729. /**
  3730. * Update zero or more ManualRelanceLogs and returns the data updated in the database.
  3731. * @param {ManualRelanceLogUpdateManyAndReturnArgs} args - Arguments to update many ManualRelanceLogs.
  3732. * @example
  3733. * // Update many ManualRelanceLogs
  3734. * const manualRelanceLog = await prisma.manualRelanceLog.updateManyAndReturn({
  3735. * where: {
  3736. * // ... provide filter here
  3737. * },
  3738. * data: [
  3739. * // ... provide data here
  3740. * ]
  3741. * })
  3742. *
  3743. * // Update zero or more ManualRelanceLogs and only return the `id`
  3744. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.updateManyAndReturn({
  3745. * select: { id: true },
  3746. * where: {
  3747. * // ... provide filter here
  3748. * },
  3749. * data: [
  3750. * // ... provide data here
  3751. * ]
  3752. * })
  3753. * Note, that providing `undefined` is treated as the value not being there.
  3754. * Read more here: https://pris.ly/d/null-undefined
  3755. *
  3756. */
  3757. updateManyAndReturn<T extends ManualRelanceLogUpdateManyAndReturnArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  3758. /**
  3759. * Create or update one ManualRelanceLog.
  3760. * @param {ManualRelanceLogUpsertArgs} args - Arguments to update or create a ManualRelanceLog.
  3761. * @example
  3762. * // Update or create a ManualRelanceLog
  3763. * const manualRelanceLog = await prisma.manualRelanceLog.upsert({
  3764. * create: {
  3765. * // ... data to create a ManualRelanceLog
  3766. * },
  3767. * update: {
  3768. * // ... in case it already exists, update
  3769. * },
  3770. * where: {
  3771. * // ... the filter for the ManualRelanceLog we want to update
  3772. * }
  3773. * })
  3774. */
  3775. upsert<T extends ManualRelanceLogUpsertArgs>(args: SelectSubset<T, ManualRelanceLogUpsertArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3776. /**
  3777. * Count the number of ManualRelanceLogs.
  3778. * Note, that providing `undefined` is treated as the value not being there.
  3779. * Read more here: https://pris.ly/d/null-undefined
  3780. * @param {ManualRelanceLogCountArgs} args - Arguments to filter ManualRelanceLogs to count.
  3781. * @example
  3782. * // Count the number of ManualRelanceLogs
  3783. * const count = await prisma.manualRelanceLog.count({
  3784. * where: {
  3785. * // ... the filter for the ManualRelanceLogs we want to count
  3786. * }
  3787. * })
  3788. **/
  3789. count<T extends ManualRelanceLogCountArgs>(
  3790. args?: Subset<T, ManualRelanceLogCountArgs>,
  3791. ): Prisma.PrismaPromise<
  3792. T extends $Utils.Record<'select', any>
  3793. ? T['select'] extends true
  3794. ? number
  3795. : GetScalarType<T['select'], ManualRelanceLogCountAggregateOutputType>
  3796. : number
  3797. >
  3798. /**
  3799. * Allows you to perform aggregations operations on a ManualRelanceLog.
  3800. * Note, that providing `undefined` is treated as the value not being there.
  3801. * Read more here: https://pris.ly/d/null-undefined
  3802. * @param {ManualRelanceLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  3803. * @example
  3804. * // Ordered by age ascending
  3805. * // Where email contains prisma.io
  3806. * // Limited to the 10 users
  3807. * const aggregations = await prisma.user.aggregate({
  3808. * _avg: {
  3809. * age: true,
  3810. * },
  3811. * where: {
  3812. * email: {
  3813. * contains: "prisma.io",
  3814. * },
  3815. * },
  3816. * orderBy: {
  3817. * age: "asc",
  3818. * },
  3819. * take: 10,
  3820. * })
  3821. **/
  3822. aggregate<T extends ManualRelanceLogAggregateArgs>(args: Subset<T, ManualRelanceLogAggregateArgs>): Prisma.PrismaPromise<GetManualRelanceLogAggregateType<T>>
  3823. /**
  3824. * Group by ManualRelanceLog.
  3825. * Note, that providing `undefined` is treated as the value not being there.
  3826. * Read more here: https://pris.ly/d/null-undefined
  3827. * @param {ManualRelanceLogGroupByArgs} args - Group by arguments.
  3828. * @example
  3829. * // Group by city, order by createdAt, get count
  3830. * const result = await prisma.user.groupBy({
  3831. * by: ['city', 'createdAt'],
  3832. * orderBy: {
  3833. * createdAt: true
  3834. * },
  3835. * _count: {
  3836. * _all: true
  3837. * },
  3838. * })
  3839. *
  3840. **/
  3841. groupBy<
  3842. T extends ManualRelanceLogGroupByArgs,
  3843. HasSelectOrTake extends Or<
  3844. Extends<'skip', Keys<T>>,
  3845. Extends<'take', Keys<T>>
  3846. >,
  3847. OrderByArg extends True extends HasSelectOrTake
  3848. ? { orderBy: ManualRelanceLogGroupByArgs['orderBy'] }
  3849. : { orderBy?: ManualRelanceLogGroupByArgs['orderBy'] },
  3850. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  3851. ByFields extends MaybeTupleToUnion<T['by']>,
  3852. ByValid extends Has<ByFields, OrderFields>,
  3853. HavingFields extends GetHavingFields<T['having']>,
  3854. HavingValid extends Has<ByFields, HavingFields>,
  3855. ByEmpty extends T['by'] extends never[] ? True : False,
  3856. InputErrors extends ByEmpty extends True
  3857. ? `Error: "by" must not be empty.`
  3858. : HavingValid extends False
  3859. ? {
  3860. [P in HavingFields]: P extends ByFields
  3861. ? never
  3862. : P extends string
  3863. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  3864. : [
  3865. Error,
  3866. 'Field ',
  3867. P,
  3868. ` in "having" needs to be provided in "by"`,
  3869. ]
  3870. }[HavingFields]
  3871. : 'take' extends Keys<T>
  3872. ? 'orderBy' extends Keys<T>
  3873. ? ByValid extends True
  3874. ? {}
  3875. : {
  3876. [P in OrderFields]: P extends ByFields
  3877. ? never
  3878. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3879. }[OrderFields]
  3880. : 'Error: If you provide "take", you also need to provide "orderBy"'
  3881. : 'skip' extends Keys<T>
  3882. ? 'orderBy' extends Keys<T>
  3883. ? ByValid extends True
  3884. ? {}
  3885. : {
  3886. [P in OrderFields]: P extends ByFields
  3887. ? never
  3888. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3889. }[OrderFields]
  3890. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  3891. : ByValid extends True
  3892. ? {}
  3893. : {
  3894. [P in OrderFields]: P extends ByFields
  3895. ? never
  3896. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3897. }[OrderFields]
  3898. >(args: SubsetIntersection<T, ManualRelanceLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetManualRelanceLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  3899. /**
  3900. * Fields of the ManualRelanceLog model
  3901. */
  3902. readonly fields: ManualRelanceLogFieldRefs;
  3903. }
  3904. /**
  3905. * The delegate class that acts as a "Promise-like" for ManualRelanceLog.
  3906. * Why is this prefixed with `Prisma__`?
  3907. * Because we want to prevent naming conflicts as mentioned in
  3908. * https://github.com/prisma/prisma-client-js/issues/707
  3909. */
  3910. export interface Prisma__ManualRelanceLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  3911. readonly [Symbol.toStringTag]: "PrismaPromise"
  3912. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  3913. /**
  3914. * Attaches callbacks for the resolution and/or rejection of the Promise.
  3915. * @param onfulfilled The callback to execute when the Promise is resolved.
  3916. * @param onrejected The callback to execute when the Promise is rejected.
  3917. * @returns A Promise for the completion of which ever callback is executed.
  3918. */
  3919. 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>
  3920. /**
  3921. * Attaches a callback for only the rejection of the Promise.
  3922. * @param onrejected The callback to execute when the Promise is rejected.
  3923. * @returns A Promise for the completion of the callback.
  3924. */
  3925. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  3926. /**
  3927. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  3928. * resolved value cannot be modified from the callback.
  3929. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  3930. * @returns A Promise for the completion of the callback.
  3931. */
  3932. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  3933. }
  3934. /**
  3935. * Fields of the ManualRelanceLog model
  3936. */
  3937. interface ManualRelanceLogFieldRefs {
  3938. readonly id: FieldRef<"ManualRelanceLog", 'String'>
  3939. readonly workspaceId: FieldRef<"ManualRelanceLog", 'String'>
  3940. readonly subject: FieldRef<"ManualRelanceLog", 'String'>
  3941. readonly recipientCount: FieldRef<"ManualRelanceLog", 'Int'>
  3942. readonly sentCount: FieldRef<"ManualRelanceLog", 'Int'>
  3943. readonly failedCount: FieldRef<"ManualRelanceLog", 'Int'>
  3944. readonly sentAt: FieldRef<"ManualRelanceLog", 'DateTime'>
  3945. }
  3946. // Custom InputTypes
  3947. /**
  3948. * ManualRelanceLog findUnique
  3949. */
  3950. export type ManualRelanceLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3951. /**
  3952. * Select specific fields to fetch from the ManualRelanceLog
  3953. */
  3954. select?: ManualRelanceLogSelect<ExtArgs> | null
  3955. /**
  3956. * Omit specific fields from the ManualRelanceLog
  3957. */
  3958. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3959. /**
  3960. * Choose, which related nodes to fetch as well
  3961. */
  3962. include?: ManualRelanceLogInclude<ExtArgs> | null
  3963. /**
  3964. * Filter, which ManualRelanceLog to fetch.
  3965. */
  3966. where: ManualRelanceLogWhereUniqueInput
  3967. }
  3968. /**
  3969. * ManualRelanceLog findUniqueOrThrow
  3970. */
  3971. export type ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3972. /**
  3973. * Select specific fields to fetch from the ManualRelanceLog
  3974. */
  3975. select?: ManualRelanceLogSelect<ExtArgs> | null
  3976. /**
  3977. * Omit specific fields from the ManualRelanceLog
  3978. */
  3979. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3980. /**
  3981. * Choose, which related nodes to fetch as well
  3982. */
  3983. include?: ManualRelanceLogInclude<ExtArgs> | null
  3984. /**
  3985. * Filter, which ManualRelanceLog to fetch.
  3986. */
  3987. where: ManualRelanceLogWhereUniqueInput
  3988. }
  3989. /**
  3990. * ManualRelanceLog findFirst
  3991. */
  3992. export type ManualRelanceLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3993. /**
  3994. * Select specific fields to fetch from the ManualRelanceLog
  3995. */
  3996. select?: ManualRelanceLogSelect<ExtArgs> | null
  3997. /**
  3998. * Omit specific fields from the ManualRelanceLog
  3999. */
  4000. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4001. /**
  4002. * Choose, which related nodes to fetch as well
  4003. */
  4004. include?: ManualRelanceLogInclude<ExtArgs> | null
  4005. /**
  4006. * Filter, which ManualRelanceLog to fetch.
  4007. */
  4008. where?: ManualRelanceLogWhereInput
  4009. /**
  4010. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4011. *
  4012. * Determine the order of ManualRelanceLogs to fetch.
  4013. */
  4014. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4015. /**
  4016. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4017. *
  4018. * Sets the position for searching for ManualRelanceLogs.
  4019. */
  4020. cursor?: ManualRelanceLogWhereUniqueInput
  4021. /**
  4022. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4023. *
  4024. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4025. */
  4026. take?: number
  4027. /**
  4028. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4029. *
  4030. * Skip the first `n` ManualRelanceLogs.
  4031. */
  4032. skip?: number
  4033. /**
  4034. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4035. *
  4036. * Filter by unique combinations of ManualRelanceLogs.
  4037. */
  4038. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4039. }
  4040. /**
  4041. * ManualRelanceLog findFirstOrThrow
  4042. */
  4043. export type ManualRelanceLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4044. /**
  4045. * Select specific fields to fetch from the ManualRelanceLog
  4046. */
  4047. select?: ManualRelanceLogSelect<ExtArgs> | null
  4048. /**
  4049. * Omit specific fields from the ManualRelanceLog
  4050. */
  4051. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4052. /**
  4053. * Choose, which related nodes to fetch as well
  4054. */
  4055. include?: ManualRelanceLogInclude<ExtArgs> | null
  4056. /**
  4057. * Filter, which ManualRelanceLog to fetch.
  4058. */
  4059. where?: ManualRelanceLogWhereInput
  4060. /**
  4061. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4062. *
  4063. * Determine the order of ManualRelanceLogs to fetch.
  4064. */
  4065. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4066. /**
  4067. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4068. *
  4069. * Sets the position for searching for ManualRelanceLogs.
  4070. */
  4071. cursor?: ManualRelanceLogWhereUniqueInput
  4072. /**
  4073. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4074. *
  4075. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4076. */
  4077. take?: number
  4078. /**
  4079. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4080. *
  4081. * Skip the first `n` ManualRelanceLogs.
  4082. */
  4083. skip?: number
  4084. /**
  4085. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4086. *
  4087. * Filter by unique combinations of ManualRelanceLogs.
  4088. */
  4089. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4090. }
  4091. /**
  4092. * ManualRelanceLog findMany
  4093. */
  4094. export type ManualRelanceLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4095. /**
  4096. * Select specific fields to fetch from the ManualRelanceLog
  4097. */
  4098. select?: ManualRelanceLogSelect<ExtArgs> | null
  4099. /**
  4100. * Omit specific fields from the ManualRelanceLog
  4101. */
  4102. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4103. /**
  4104. * Choose, which related nodes to fetch as well
  4105. */
  4106. include?: ManualRelanceLogInclude<ExtArgs> | null
  4107. /**
  4108. * Filter, which ManualRelanceLogs to fetch.
  4109. */
  4110. where?: ManualRelanceLogWhereInput
  4111. /**
  4112. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4113. *
  4114. * Determine the order of ManualRelanceLogs to fetch.
  4115. */
  4116. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4117. /**
  4118. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4119. *
  4120. * Sets the position for listing ManualRelanceLogs.
  4121. */
  4122. cursor?: ManualRelanceLogWhereUniqueInput
  4123. /**
  4124. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4125. *
  4126. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4127. */
  4128. take?: number
  4129. /**
  4130. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4131. *
  4132. * Skip the first `n` ManualRelanceLogs.
  4133. */
  4134. skip?: number
  4135. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4136. }
  4137. /**
  4138. * ManualRelanceLog create
  4139. */
  4140. export type ManualRelanceLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4141. /**
  4142. * Select specific fields to fetch from the ManualRelanceLog
  4143. */
  4144. select?: ManualRelanceLogSelect<ExtArgs> | null
  4145. /**
  4146. * Omit specific fields from the ManualRelanceLog
  4147. */
  4148. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4149. /**
  4150. * Choose, which related nodes to fetch as well
  4151. */
  4152. include?: ManualRelanceLogInclude<ExtArgs> | null
  4153. /**
  4154. * The data needed to create a ManualRelanceLog.
  4155. */
  4156. data: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4157. }
  4158. /**
  4159. * ManualRelanceLog createMany
  4160. */
  4161. export type ManualRelanceLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4162. /**
  4163. * The data used to create many ManualRelanceLogs.
  4164. */
  4165. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4166. skipDuplicates?: boolean
  4167. }
  4168. /**
  4169. * ManualRelanceLog createManyAndReturn
  4170. */
  4171. export type ManualRelanceLogCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4172. /**
  4173. * Select specific fields to fetch from the ManualRelanceLog
  4174. */
  4175. select?: ManualRelanceLogSelectCreateManyAndReturn<ExtArgs> | null
  4176. /**
  4177. * Omit specific fields from the ManualRelanceLog
  4178. */
  4179. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4180. /**
  4181. * The data used to create many ManualRelanceLogs.
  4182. */
  4183. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4184. skipDuplicates?: boolean
  4185. /**
  4186. * Choose, which related nodes to fetch as well
  4187. */
  4188. include?: ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs> | null
  4189. }
  4190. /**
  4191. * ManualRelanceLog update
  4192. */
  4193. export type ManualRelanceLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4194. /**
  4195. * Select specific fields to fetch from the ManualRelanceLog
  4196. */
  4197. select?: ManualRelanceLogSelect<ExtArgs> | null
  4198. /**
  4199. * Omit specific fields from the ManualRelanceLog
  4200. */
  4201. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4202. /**
  4203. * Choose, which related nodes to fetch as well
  4204. */
  4205. include?: ManualRelanceLogInclude<ExtArgs> | null
  4206. /**
  4207. * The data needed to update a ManualRelanceLog.
  4208. */
  4209. data: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4210. /**
  4211. * Choose, which ManualRelanceLog to update.
  4212. */
  4213. where: ManualRelanceLogWhereUniqueInput
  4214. }
  4215. /**
  4216. * ManualRelanceLog updateMany
  4217. */
  4218. export type ManualRelanceLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4219. /**
  4220. * The data used to update ManualRelanceLogs.
  4221. */
  4222. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4223. /**
  4224. * Filter which ManualRelanceLogs to update
  4225. */
  4226. where?: ManualRelanceLogWhereInput
  4227. /**
  4228. * Limit how many ManualRelanceLogs to update.
  4229. */
  4230. limit?: number
  4231. }
  4232. /**
  4233. * ManualRelanceLog updateManyAndReturn
  4234. */
  4235. export type ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4236. /**
  4237. * Select specific fields to fetch from the ManualRelanceLog
  4238. */
  4239. select?: ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs> | null
  4240. /**
  4241. * Omit specific fields from the ManualRelanceLog
  4242. */
  4243. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4244. /**
  4245. * The data used to update ManualRelanceLogs.
  4246. */
  4247. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4248. /**
  4249. * Filter which ManualRelanceLogs to update
  4250. */
  4251. where?: ManualRelanceLogWhereInput
  4252. /**
  4253. * Limit how many ManualRelanceLogs to update.
  4254. */
  4255. limit?: number
  4256. /**
  4257. * Choose, which related nodes to fetch as well
  4258. */
  4259. include?: ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs> | null
  4260. }
  4261. /**
  4262. * ManualRelanceLog upsert
  4263. */
  4264. export type ManualRelanceLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4265. /**
  4266. * Select specific fields to fetch from the ManualRelanceLog
  4267. */
  4268. select?: ManualRelanceLogSelect<ExtArgs> | null
  4269. /**
  4270. * Omit specific fields from the ManualRelanceLog
  4271. */
  4272. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4273. /**
  4274. * Choose, which related nodes to fetch as well
  4275. */
  4276. include?: ManualRelanceLogInclude<ExtArgs> | null
  4277. /**
  4278. * The filter to search for the ManualRelanceLog to update in case it exists.
  4279. */
  4280. where: ManualRelanceLogWhereUniqueInput
  4281. /**
  4282. * In case the ManualRelanceLog found by the `where` argument doesn't exist, create a new ManualRelanceLog with this data.
  4283. */
  4284. create: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4285. /**
  4286. * In case the ManualRelanceLog was found with the provided `where` argument, update it with this data.
  4287. */
  4288. update: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4289. }
  4290. /**
  4291. * ManualRelanceLog delete
  4292. */
  4293. export type ManualRelanceLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4294. /**
  4295. * Select specific fields to fetch from the ManualRelanceLog
  4296. */
  4297. select?: ManualRelanceLogSelect<ExtArgs> | null
  4298. /**
  4299. * Omit specific fields from the ManualRelanceLog
  4300. */
  4301. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4302. /**
  4303. * Choose, which related nodes to fetch as well
  4304. */
  4305. include?: ManualRelanceLogInclude<ExtArgs> | null
  4306. /**
  4307. * Filter which ManualRelanceLog to delete.
  4308. */
  4309. where: ManualRelanceLogWhereUniqueInput
  4310. }
  4311. /**
  4312. * ManualRelanceLog deleteMany
  4313. */
  4314. export type ManualRelanceLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4315. /**
  4316. * Filter which ManualRelanceLogs to delete
  4317. */
  4318. where?: ManualRelanceLogWhereInput
  4319. /**
  4320. * Limit how many ManualRelanceLogs to delete.
  4321. */
  4322. limit?: number
  4323. }
  4324. /**
  4325. * ManualRelanceLog without action
  4326. */
  4327. export type ManualRelanceLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4328. /**
  4329. * Select specific fields to fetch from the ManualRelanceLog
  4330. */
  4331. select?: ManualRelanceLogSelect<ExtArgs> | null
  4332. /**
  4333. * Omit specific fields from the ManualRelanceLog
  4334. */
  4335. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4336. /**
  4337. * Choose, which related nodes to fetch as well
  4338. */
  4339. include?: ManualRelanceLogInclude<ExtArgs> | null
  4340. }
  4341. /**
  4342. * Model Contributor
  4343. */
  4344. export type AggregateContributor = {
  4345. _count: ContributorCountAggregateOutputType | null
  4346. _min: ContributorMinAggregateOutputType | null
  4347. _max: ContributorMaxAggregateOutputType | null
  4348. }
  4349. export type ContributorMinAggregateOutputType = {
  4350. id: string | null
  4351. workspaceId: string | null
  4352. email: string | null
  4353. status: $Enums.ContributorStatus | null
  4354. invitedAt: Date | null
  4355. lastRemindedAt: Date | null
  4356. createdAt: Date | null
  4357. }
  4358. export type ContributorMaxAggregateOutputType = {
  4359. id: string | null
  4360. workspaceId: string | null
  4361. email: string | null
  4362. status: $Enums.ContributorStatus | null
  4363. invitedAt: Date | null
  4364. lastRemindedAt: Date | null
  4365. createdAt: Date | null
  4366. }
  4367. export type ContributorCountAggregateOutputType = {
  4368. id: number
  4369. workspaceId: number
  4370. email: number
  4371. status: number
  4372. invitedAt: number
  4373. lastRemindedAt: number
  4374. createdAt: number
  4375. _all: number
  4376. }
  4377. export type ContributorMinAggregateInputType = {
  4378. id?: true
  4379. workspaceId?: true
  4380. email?: true
  4381. status?: true
  4382. invitedAt?: true
  4383. lastRemindedAt?: true
  4384. createdAt?: true
  4385. }
  4386. export type ContributorMaxAggregateInputType = {
  4387. id?: true
  4388. workspaceId?: true
  4389. email?: true
  4390. status?: true
  4391. invitedAt?: true
  4392. lastRemindedAt?: true
  4393. createdAt?: true
  4394. }
  4395. export type ContributorCountAggregateInputType = {
  4396. id?: true
  4397. workspaceId?: true
  4398. email?: true
  4399. status?: true
  4400. invitedAt?: true
  4401. lastRemindedAt?: true
  4402. createdAt?: true
  4403. _all?: true
  4404. }
  4405. export type ContributorAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4406. /**
  4407. * Filter which Contributor to aggregate.
  4408. */
  4409. where?: ContributorWhereInput
  4410. /**
  4411. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4412. *
  4413. * Determine the order of Contributors to fetch.
  4414. */
  4415. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  4416. /**
  4417. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4418. *
  4419. * Sets the start position
  4420. */
  4421. cursor?: ContributorWhereUniqueInput
  4422. /**
  4423. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4424. *
  4425. * Take `±n` Contributors from the position of the cursor.
  4426. */
  4427. take?: number
  4428. /**
  4429. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4430. *
  4431. * Skip the first `n` Contributors.
  4432. */
  4433. skip?: number
  4434. /**
  4435. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4436. *
  4437. * Count returned Contributors
  4438. **/
  4439. _count?: true | ContributorCountAggregateInputType
  4440. /**
  4441. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4442. *
  4443. * Select which fields to find the minimum value
  4444. **/
  4445. _min?: ContributorMinAggregateInputType
  4446. /**
  4447. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4448. *
  4449. * Select which fields to find the maximum value
  4450. **/
  4451. _max?: ContributorMaxAggregateInputType
  4452. }
  4453. export type GetContributorAggregateType<T extends ContributorAggregateArgs> = {
  4454. [P in keyof T & keyof AggregateContributor]: P extends '_count' | 'count'
  4455. ? T[P] extends true
  4456. ? number
  4457. : GetScalarType<T[P], AggregateContributor[P]>
  4458. : GetScalarType<T[P], AggregateContributor[P]>
  4459. }
  4460. export type ContributorGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4461. where?: ContributorWhereInput
  4462. orderBy?: ContributorOrderByWithAggregationInput | ContributorOrderByWithAggregationInput[]
  4463. by: ContributorScalarFieldEnum[] | ContributorScalarFieldEnum
  4464. having?: ContributorScalarWhereWithAggregatesInput
  4465. take?: number
  4466. skip?: number
  4467. _count?: ContributorCountAggregateInputType | true
  4468. _min?: ContributorMinAggregateInputType
  4469. _max?: ContributorMaxAggregateInputType
  4470. }
  4471. export type ContributorGroupByOutputType = {
  4472. id: string
  4473. workspaceId: string
  4474. email: string
  4475. status: $Enums.ContributorStatus
  4476. invitedAt: Date
  4477. lastRemindedAt: Date | null
  4478. createdAt: Date
  4479. _count: ContributorCountAggregateOutputType | null
  4480. _min: ContributorMinAggregateOutputType | null
  4481. _max: ContributorMaxAggregateOutputType | null
  4482. }
  4483. type GetContributorGroupByPayload<T extends ContributorGroupByArgs> = Prisma.PrismaPromise<
  4484. Array<
  4485. PickEnumerable<ContributorGroupByOutputType, T['by']> &
  4486. {
  4487. [P in ((keyof T) & (keyof ContributorGroupByOutputType))]: P extends '_count'
  4488. ? T[P] extends boolean
  4489. ? number
  4490. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4491. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4492. }
  4493. >
  4494. >
  4495. export type ContributorSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4496. id?: boolean
  4497. workspaceId?: boolean
  4498. email?: boolean
  4499. status?: boolean
  4500. invitedAt?: boolean
  4501. lastRemindedAt?: boolean
  4502. createdAt?: boolean
  4503. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4504. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4505. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4506. }, ExtArgs["result"]["contributor"]>
  4507. export type ContributorSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4508. id?: boolean
  4509. workspaceId?: boolean
  4510. email?: boolean
  4511. status?: boolean
  4512. invitedAt?: boolean
  4513. lastRemindedAt?: boolean
  4514. createdAt?: boolean
  4515. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4516. }, ExtArgs["result"]["contributor"]>
  4517. export type ContributorSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4518. id?: boolean
  4519. workspaceId?: boolean
  4520. email?: boolean
  4521. status?: boolean
  4522. invitedAt?: boolean
  4523. lastRemindedAt?: boolean
  4524. createdAt?: boolean
  4525. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4526. }, ExtArgs["result"]["contributor"]>
  4527. export type ContributorSelectScalar = {
  4528. id?: boolean
  4529. workspaceId?: boolean
  4530. email?: boolean
  4531. status?: boolean
  4532. invitedAt?: boolean
  4533. lastRemindedAt?: boolean
  4534. createdAt?: boolean
  4535. }
  4536. export type ContributorOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "email" | "status" | "invitedAt" | "lastRemindedAt" | "createdAt", ExtArgs["result"]["contributor"]>
  4537. export type ContributorInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4538. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4539. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4540. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4541. }
  4542. export type ContributorIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4543. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4544. }
  4545. export type ContributorIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4546. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4547. }
  4548. export type $ContributorPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4549. name: "Contributor"
  4550. objects: {
  4551. workspace: Prisma.$WorkspacePayload<ExtArgs>
  4552. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  4553. }
  4554. scalars: $Extensions.GetPayloadResult<{
  4555. id: string
  4556. workspaceId: string
  4557. email: string
  4558. status: $Enums.ContributorStatus
  4559. invitedAt: Date
  4560. lastRemindedAt: Date | null
  4561. createdAt: Date
  4562. }, ExtArgs["result"]["contributor"]>
  4563. composites: {}
  4564. }
  4565. type ContributorGetPayload<S extends boolean | null | undefined | ContributorDefaultArgs> = $Result.GetResult<Prisma.$ContributorPayload, S>
  4566. type ContributorCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  4567. Omit<ContributorFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  4568. select?: ContributorCountAggregateInputType | true
  4569. }
  4570. export interface ContributorDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  4571. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Contributor'], meta: { name: 'Contributor' } }
  4572. /**
  4573. * Find zero or one Contributor that matches the filter.
  4574. * @param {ContributorFindUniqueArgs} args - Arguments to find a Contributor
  4575. * @example
  4576. * // Get one Contributor
  4577. * const contributor = await prisma.contributor.findUnique({
  4578. * where: {
  4579. * // ... provide filter here
  4580. * }
  4581. * })
  4582. */
  4583. findUnique<T extends ContributorFindUniqueArgs>(args: SelectSubset<T, ContributorFindUniqueArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4584. /**
  4585. * Find one Contributor that matches the filter or throw an error with `error.code='P2025'`
  4586. * if no matches were found.
  4587. * @param {ContributorFindUniqueOrThrowArgs} args - Arguments to find a Contributor
  4588. * @example
  4589. * // Get one Contributor
  4590. * const contributor = await prisma.contributor.findUniqueOrThrow({
  4591. * where: {
  4592. * // ... provide filter here
  4593. * }
  4594. * })
  4595. */
  4596. findUniqueOrThrow<T extends ContributorFindUniqueOrThrowArgs>(args: SelectSubset<T, ContributorFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4597. /**
  4598. * Find the first Contributor that matches the filter.
  4599. * Note, that providing `undefined` is treated as the value not being there.
  4600. * Read more here: https://pris.ly/d/null-undefined
  4601. * @param {ContributorFindFirstArgs} args - Arguments to find a Contributor
  4602. * @example
  4603. * // Get one Contributor
  4604. * const contributor = await prisma.contributor.findFirst({
  4605. * where: {
  4606. * // ... provide filter here
  4607. * }
  4608. * })
  4609. */
  4610. findFirst<T extends ContributorFindFirstArgs>(args?: SelectSubset<T, ContributorFindFirstArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4611. /**
  4612. * Find the first Contributor that matches the filter or
  4613. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  4614. * Note, that providing `undefined` is treated as the value not being there.
  4615. * Read more here: https://pris.ly/d/null-undefined
  4616. * @param {ContributorFindFirstOrThrowArgs} args - Arguments to find a Contributor
  4617. * @example
  4618. * // Get one Contributor
  4619. * const contributor = await prisma.contributor.findFirstOrThrow({
  4620. * where: {
  4621. * // ... provide filter here
  4622. * }
  4623. * })
  4624. */
  4625. findFirstOrThrow<T extends ContributorFindFirstOrThrowArgs>(args?: SelectSubset<T, ContributorFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4626. /**
  4627. * Find zero or more Contributors that matches the filter.
  4628. * Note, that providing `undefined` is treated as the value not being there.
  4629. * Read more here: https://pris.ly/d/null-undefined
  4630. * @param {ContributorFindManyArgs} args - Arguments to filter and select certain fields only.
  4631. * @example
  4632. * // Get all Contributors
  4633. * const contributors = await prisma.contributor.findMany()
  4634. *
  4635. * // Get first 10 Contributors
  4636. * const contributors = await prisma.contributor.findMany({ take: 10 })
  4637. *
  4638. * // Only select the `id`
  4639. * const contributorWithIdOnly = await prisma.contributor.findMany({ select: { id: true } })
  4640. *
  4641. */
  4642. findMany<T extends ContributorFindManyArgs>(args?: SelectSubset<T, ContributorFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  4643. /**
  4644. * Create a Contributor.
  4645. * @param {ContributorCreateArgs} args - Arguments to create a Contributor.
  4646. * @example
  4647. * // Create one Contributor
  4648. * const Contributor = await prisma.contributor.create({
  4649. * data: {
  4650. * // ... data to create a Contributor
  4651. * }
  4652. * })
  4653. *
  4654. */
  4655. create<T extends ContributorCreateArgs>(args: SelectSubset<T, ContributorCreateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4656. /**
  4657. * Create many Contributors.
  4658. * @param {ContributorCreateManyArgs} args - Arguments to create many Contributors.
  4659. * @example
  4660. * // Create many Contributors
  4661. * const contributor = await prisma.contributor.createMany({
  4662. * data: [
  4663. * // ... provide data here
  4664. * ]
  4665. * })
  4666. *
  4667. */
  4668. createMany<T extends ContributorCreateManyArgs>(args?: SelectSubset<T, ContributorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4669. /**
  4670. * Create many Contributors and returns the data saved in the database.
  4671. * @param {ContributorCreateManyAndReturnArgs} args - Arguments to create many Contributors.
  4672. * @example
  4673. * // Create many Contributors
  4674. * const contributor = await prisma.contributor.createManyAndReturn({
  4675. * data: [
  4676. * // ... provide data here
  4677. * ]
  4678. * })
  4679. *
  4680. * // Create many Contributors and only return the `id`
  4681. * const contributorWithIdOnly = await prisma.contributor.createManyAndReturn({
  4682. * select: { id: true },
  4683. * data: [
  4684. * // ... provide data here
  4685. * ]
  4686. * })
  4687. * Note, that providing `undefined` is treated as the value not being there.
  4688. * Read more here: https://pris.ly/d/null-undefined
  4689. *
  4690. */
  4691. createManyAndReturn<T extends ContributorCreateManyAndReturnArgs>(args?: SelectSubset<T, ContributorCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  4692. /**
  4693. * Delete a Contributor.
  4694. * @param {ContributorDeleteArgs} args - Arguments to delete one Contributor.
  4695. * @example
  4696. * // Delete one Contributor
  4697. * const Contributor = await prisma.contributor.delete({
  4698. * where: {
  4699. * // ... filter to delete one Contributor
  4700. * }
  4701. * })
  4702. *
  4703. */
  4704. delete<T extends ContributorDeleteArgs>(args: SelectSubset<T, ContributorDeleteArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4705. /**
  4706. * Update one Contributor.
  4707. * @param {ContributorUpdateArgs} args - Arguments to update one Contributor.
  4708. * @example
  4709. * // Update one Contributor
  4710. * const contributor = await prisma.contributor.update({
  4711. * where: {
  4712. * // ... provide filter here
  4713. * },
  4714. * data: {
  4715. * // ... provide data here
  4716. * }
  4717. * })
  4718. *
  4719. */
  4720. update<T extends ContributorUpdateArgs>(args: SelectSubset<T, ContributorUpdateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4721. /**
  4722. * Delete zero or more Contributors.
  4723. * @param {ContributorDeleteManyArgs} args - Arguments to filter Contributors to delete.
  4724. * @example
  4725. * // Delete a few Contributors
  4726. * const { count } = await prisma.contributor.deleteMany({
  4727. * where: {
  4728. * // ... provide filter here
  4729. * }
  4730. * })
  4731. *
  4732. */
  4733. deleteMany<T extends ContributorDeleteManyArgs>(args?: SelectSubset<T, ContributorDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4734. /**
  4735. * Update zero or more Contributors.
  4736. * Note, that providing `undefined` is treated as the value not being there.
  4737. * Read more here: https://pris.ly/d/null-undefined
  4738. * @param {ContributorUpdateManyArgs} args - Arguments to update one or more rows.
  4739. * @example
  4740. * // Update many Contributors
  4741. * const contributor = await prisma.contributor.updateMany({
  4742. * where: {
  4743. * // ... provide filter here
  4744. * },
  4745. * data: {
  4746. * // ... provide data here
  4747. * }
  4748. * })
  4749. *
  4750. */
  4751. updateMany<T extends ContributorUpdateManyArgs>(args: SelectSubset<T, ContributorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4752. /**
  4753. * Update zero or more Contributors and returns the data updated in the database.
  4754. * @param {ContributorUpdateManyAndReturnArgs} args - Arguments to update many Contributors.
  4755. * @example
  4756. * // Update many Contributors
  4757. * const contributor = await prisma.contributor.updateManyAndReturn({
  4758. * where: {
  4759. * // ... provide filter here
  4760. * },
  4761. * data: [
  4762. * // ... provide data here
  4763. * ]
  4764. * })
  4765. *
  4766. * // Update zero or more Contributors and only return the `id`
  4767. * const contributorWithIdOnly = await prisma.contributor.updateManyAndReturn({
  4768. * select: { id: true },
  4769. * where: {
  4770. * // ... provide filter here
  4771. * },
  4772. * data: [
  4773. * // ... provide data here
  4774. * ]
  4775. * })
  4776. * Note, that providing `undefined` is treated as the value not being there.
  4777. * Read more here: https://pris.ly/d/null-undefined
  4778. *
  4779. */
  4780. updateManyAndReturn<T extends ContributorUpdateManyAndReturnArgs>(args: SelectSubset<T, ContributorUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  4781. /**
  4782. * Create or update one Contributor.
  4783. * @param {ContributorUpsertArgs} args - Arguments to update or create a Contributor.
  4784. * @example
  4785. * // Update or create a Contributor
  4786. * const contributor = await prisma.contributor.upsert({
  4787. * create: {
  4788. * // ... data to create a Contributor
  4789. * },
  4790. * update: {
  4791. * // ... in case it already exists, update
  4792. * },
  4793. * where: {
  4794. * // ... the filter for the Contributor we want to update
  4795. * }
  4796. * })
  4797. */
  4798. upsert<T extends ContributorUpsertArgs>(args: SelectSubset<T, ContributorUpsertArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4799. /**
  4800. * Count the number of Contributors.
  4801. * Note, that providing `undefined` is treated as the value not being there.
  4802. * Read more here: https://pris.ly/d/null-undefined
  4803. * @param {ContributorCountArgs} args - Arguments to filter Contributors to count.
  4804. * @example
  4805. * // Count the number of Contributors
  4806. * const count = await prisma.contributor.count({
  4807. * where: {
  4808. * // ... the filter for the Contributors we want to count
  4809. * }
  4810. * })
  4811. **/
  4812. count<T extends ContributorCountArgs>(
  4813. args?: Subset<T, ContributorCountArgs>,
  4814. ): Prisma.PrismaPromise<
  4815. T extends $Utils.Record<'select', any>
  4816. ? T['select'] extends true
  4817. ? number
  4818. : GetScalarType<T['select'], ContributorCountAggregateOutputType>
  4819. : number
  4820. >
  4821. /**
  4822. * Allows you to perform aggregations operations on a Contributor.
  4823. * Note, that providing `undefined` is treated as the value not being there.
  4824. * Read more here: https://pris.ly/d/null-undefined
  4825. * @param {ContributorAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  4826. * @example
  4827. * // Ordered by age ascending
  4828. * // Where email contains prisma.io
  4829. * // Limited to the 10 users
  4830. * const aggregations = await prisma.user.aggregate({
  4831. * _avg: {
  4832. * age: true,
  4833. * },
  4834. * where: {
  4835. * email: {
  4836. * contains: "prisma.io",
  4837. * },
  4838. * },
  4839. * orderBy: {
  4840. * age: "asc",
  4841. * },
  4842. * take: 10,
  4843. * })
  4844. **/
  4845. aggregate<T extends ContributorAggregateArgs>(args: Subset<T, ContributorAggregateArgs>): Prisma.PrismaPromise<GetContributorAggregateType<T>>
  4846. /**
  4847. * Group by Contributor.
  4848. * Note, that providing `undefined` is treated as the value not being there.
  4849. * Read more here: https://pris.ly/d/null-undefined
  4850. * @param {ContributorGroupByArgs} args - Group by arguments.
  4851. * @example
  4852. * // Group by city, order by createdAt, get count
  4853. * const result = await prisma.user.groupBy({
  4854. * by: ['city', 'createdAt'],
  4855. * orderBy: {
  4856. * createdAt: true
  4857. * },
  4858. * _count: {
  4859. * _all: true
  4860. * },
  4861. * })
  4862. *
  4863. **/
  4864. groupBy<
  4865. T extends ContributorGroupByArgs,
  4866. HasSelectOrTake extends Or<
  4867. Extends<'skip', Keys<T>>,
  4868. Extends<'take', Keys<T>>
  4869. >,
  4870. OrderByArg extends True extends HasSelectOrTake
  4871. ? { orderBy: ContributorGroupByArgs['orderBy'] }
  4872. : { orderBy?: ContributorGroupByArgs['orderBy'] },
  4873. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  4874. ByFields extends MaybeTupleToUnion<T['by']>,
  4875. ByValid extends Has<ByFields, OrderFields>,
  4876. HavingFields extends GetHavingFields<T['having']>,
  4877. HavingValid extends Has<ByFields, HavingFields>,
  4878. ByEmpty extends T['by'] extends never[] ? True : False,
  4879. InputErrors extends ByEmpty extends True
  4880. ? `Error: "by" must not be empty.`
  4881. : HavingValid extends False
  4882. ? {
  4883. [P in HavingFields]: P extends ByFields
  4884. ? never
  4885. : P extends string
  4886. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  4887. : [
  4888. Error,
  4889. 'Field ',
  4890. P,
  4891. ` in "having" needs to be provided in "by"`,
  4892. ]
  4893. }[HavingFields]
  4894. : 'take' extends Keys<T>
  4895. ? 'orderBy' extends Keys<T>
  4896. ? ByValid extends True
  4897. ? {}
  4898. : {
  4899. [P in OrderFields]: P extends ByFields
  4900. ? never
  4901. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4902. }[OrderFields]
  4903. : 'Error: If you provide "take", you also need to provide "orderBy"'
  4904. : 'skip' extends Keys<T>
  4905. ? 'orderBy' extends Keys<T>
  4906. ? ByValid extends True
  4907. ? {}
  4908. : {
  4909. [P in OrderFields]: P extends ByFields
  4910. ? never
  4911. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4912. }[OrderFields]
  4913. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  4914. : ByValid extends True
  4915. ? {}
  4916. : {
  4917. [P in OrderFields]: P extends ByFields
  4918. ? never
  4919. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4920. }[OrderFields]
  4921. >(args: SubsetIntersection<T, ContributorGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContributorGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  4922. /**
  4923. * Fields of the Contributor model
  4924. */
  4925. readonly fields: ContributorFieldRefs;
  4926. }
  4927. /**
  4928. * The delegate class that acts as a "Promise-like" for Contributor.
  4929. * Why is this prefixed with `Prisma__`?
  4930. * Because we want to prevent naming conflicts as mentioned in
  4931. * https://github.com/prisma/prisma-client-js/issues/707
  4932. */
  4933. export interface Prisma__ContributorClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  4934. readonly [Symbol.toStringTag]: "PrismaPromise"
  4935. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  4936. ideas<T extends Contributor$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Contributor$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  4937. /**
  4938. * Attaches callbacks for the resolution and/or rejection of the Promise.
  4939. * @param onfulfilled The callback to execute when the Promise is resolved.
  4940. * @param onrejected The callback to execute when the Promise is rejected.
  4941. * @returns A Promise for the completion of which ever callback is executed.
  4942. */
  4943. 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>
  4944. /**
  4945. * Attaches a callback for only the rejection of the Promise.
  4946. * @param onrejected The callback to execute when the Promise is rejected.
  4947. * @returns A Promise for the completion of the callback.
  4948. */
  4949. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  4950. /**
  4951. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  4952. * resolved value cannot be modified from the callback.
  4953. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  4954. * @returns A Promise for the completion of the callback.
  4955. */
  4956. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  4957. }
  4958. /**
  4959. * Fields of the Contributor model
  4960. */
  4961. interface ContributorFieldRefs {
  4962. readonly id: FieldRef<"Contributor", 'String'>
  4963. readonly workspaceId: FieldRef<"Contributor", 'String'>
  4964. readonly email: FieldRef<"Contributor", 'String'>
  4965. readonly status: FieldRef<"Contributor", 'ContributorStatus'>
  4966. readonly invitedAt: FieldRef<"Contributor", 'DateTime'>
  4967. readonly lastRemindedAt: FieldRef<"Contributor", 'DateTime'>
  4968. readonly createdAt: FieldRef<"Contributor", 'DateTime'>
  4969. }
  4970. // Custom InputTypes
  4971. /**
  4972. * Contributor findUnique
  4973. */
  4974. export type ContributorFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4975. /**
  4976. * Select specific fields to fetch from the Contributor
  4977. */
  4978. select?: ContributorSelect<ExtArgs> | null
  4979. /**
  4980. * Omit specific fields from the Contributor
  4981. */
  4982. omit?: ContributorOmit<ExtArgs> | null
  4983. /**
  4984. * Choose, which related nodes to fetch as well
  4985. */
  4986. include?: ContributorInclude<ExtArgs> | null
  4987. /**
  4988. * Filter, which Contributor to fetch.
  4989. */
  4990. where: ContributorWhereUniqueInput
  4991. }
  4992. /**
  4993. * Contributor findUniqueOrThrow
  4994. */
  4995. export type ContributorFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4996. /**
  4997. * Select specific fields to fetch from the Contributor
  4998. */
  4999. select?: ContributorSelect<ExtArgs> | null
  5000. /**
  5001. * Omit specific fields from the Contributor
  5002. */
  5003. omit?: ContributorOmit<ExtArgs> | null
  5004. /**
  5005. * Choose, which related nodes to fetch as well
  5006. */
  5007. include?: ContributorInclude<ExtArgs> | null
  5008. /**
  5009. * Filter, which Contributor to fetch.
  5010. */
  5011. where: ContributorWhereUniqueInput
  5012. }
  5013. /**
  5014. * Contributor findFirst
  5015. */
  5016. export type ContributorFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5017. /**
  5018. * Select specific fields to fetch from the Contributor
  5019. */
  5020. select?: ContributorSelect<ExtArgs> | null
  5021. /**
  5022. * Omit specific fields from the Contributor
  5023. */
  5024. omit?: ContributorOmit<ExtArgs> | null
  5025. /**
  5026. * Choose, which related nodes to fetch as well
  5027. */
  5028. include?: ContributorInclude<ExtArgs> | null
  5029. /**
  5030. * Filter, which Contributor to fetch.
  5031. */
  5032. where?: ContributorWhereInput
  5033. /**
  5034. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5035. *
  5036. * Determine the order of Contributors to fetch.
  5037. */
  5038. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5039. /**
  5040. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5041. *
  5042. * Sets the position for searching for Contributors.
  5043. */
  5044. cursor?: ContributorWhereUniqueInput
  5045. /**
  5046. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5047. *
  5048. * Take `±n` Contributors from the position of the cursor.
  5049. */
  5050. take?: number
  5051. /**
  5052. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5053. *
  5054. * Skip the first `n` Contributors.
  5055. */
  5056. skip?: number
  5057. /**
  5058. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5059. *
  5060. * Filter by unique combinations of Contributors.
  5061. */
  5062. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5063. }
  5064. /**
  5065. * Contributor findFirstOrThrow
  5066. */
  5067. export type ContributorFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5068. /**
  5069. * Select specific fields to fetch from the Contributor
  5070. */
  5071. select?: ContributorSelect<ExtArgs> | null
  5072. /**
  5073. * Omit specific fields from the Contributor
  5074. */
  5075. omit?: ContributorOmit<ExtArgs> | null
  5076. /**
  5077. * Choose, which related nodes to fetch as well
  5078. */
  5079. include?: ContributorInclude<ExtArgs> | null
  5080. /**
  5081. * Filter, which Contributor to fetch.
  5082. */
  5083. where?: ContributorWhereInput
  5084. /**
  5085. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5086. *
  5087. * Determine the order of Contributors to fetch.
  5088. */
  5089. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5090. /**
  5091. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5092. *
  5093. * Sets the position for searching for Contributors.
  5094. */
  5095. cursor?: ContributorWhereUniqueInput
  5096. /**
  5097. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5098. *
  5099. * Take `±n` Contributors from the position of the cursor.
  5100. */
  5101. take?: number
  5102. /**
  5103. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5104. *
  5105. * Skip the first `n` Contributors.
  5106. */
  5107. skip?: number
  5108. /**
  5109. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5110. *
  5111. * Filter by unique combinations of Contributors.
  5112. */
  5113. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5114. }
  5115. /**
  5116. * Contributor findMany
  5117. */
  5118. export type ContributorFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5119. /**
  5120. * Select specific fields to fetch from the Contributor
  5121. */
  5122. select?: ContributorSelect<ExtArgs> | null
  5123. /**
  5124. * Omit specific fields from the Contributor
  5125. */
  5126. omit?: ContributorOmit<ExtArgs> | null
  5127. /**
  5128. * Choose, which related nodes to fetch as well
  5129. */
  5130. include?: ContributorInclude<ExtArgs> | null
  5131. /**
  5132. * Filter, which Contributors to fetch.
  5133. */
  5134. where?: ContributorWhereInput
  5135. /**
  5136. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5137. *
  5138. * Determine the order of Contributors to fetch.
  5139. */
  5140. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5141. /**
  5142. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5143. *
  5144. * Sets the position for listing Contributors.
  5145. */
  5146. cursor?: ContributorWhereUniqueInput
  5147. /**
  5148. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5149. *
  5150. * Take `±n` Contributors from the position of the cursor.
  5151. */
  5152. take?: number
  5153. /**
  5154. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5155. *
  5156. * Skip the first `n` Contributors.
  5157. */
  5158. skip?: number
  5159. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5160. }
  5161. /**
  5162. * Contributor create
  5163. */
  5164. export type ContributorCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5165. /**
  5166. * Select specific fields to fetch from the Contributor
  5167. */
  5168. select?: ContributorSelect<ExtArgs> | null
  5169. /**
  5170. * Omit specific fields from the Contributor
  5171. */
  5172. omit?: ContributorOmit<ExtArgs> | null
  5173. /**
  5174. * Choose, which related nodes to fetch as well
  5175. */
  5176. include?: ContributorInclude<ExtArgs> | null
  5177. /**
  5178. * The data needed to create a Contributor.
  5179. */
  5180. data: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5181. }
  5182. /**
  5183. * Contributor createMany
  5184. */
  5185. export type ContributorCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5186. /**
  5187. * The data used to create many Contributors.
  5188. */
  5189. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5190. skipDuplicates?: boolean
  5191. }
  5192. /**
  5193. * Contributor createManyAndReturn
  5194. */
  5195. export type ContributorCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5196. /**
  5197. * Select specific fields to fetch from the Contributor
  5198. */
  5199. select?: ContributorSelectCreateManyAndReturn<ExtArgs> | null
  5200. /**
  5201. * Omit specific fields from the Contributor
  5202. */
  5203. omit?: ContributorOmit<ExtArgs> | null
  5204. /**
  5205. * The data used to create many Contributors.
  5206. */
  5207. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5208. skipDuplicates?: boolean
  5209. /**
  5210. * Choose, which related nodes to fetch as well
  5211. */
  5212. include?: ContributorIncludeCreateManyAndReturn<ExtArgs> | null
  5213. }
  5214. /**
  5215. * Contributor update
  5216. */
  5217. export type ContributorUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5218. /**
  5219. * Select specific fields to fetch from the Contributor
  5220. */
  5221. select?: ContributorSelect<ExtArgs> | null
  5222. /**
  5223. * Omit specific fields from the Contributor
  5224. */
  5225. omit?: ContributorOmit<ExtArgs> | null
  5226. /**
  5227. * Choose, which related nodes to fetch as well
  5228. */
  5229. include?: ContributorInclude<ExtArgs> | null
  5230. /**
  5231. * The data needed to update a Contributor.
  5232. */
  5233. data: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5234. /**
  5235. * Choose, which Contributor to update.
  5236. */
  5237. where: ContributorWhereUniqueInput
  5238. }
  5239. /**
  5240. * Contributor updateMany
  5241. */
  5242. export type ContributorUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5243. /**
  5244. * The data used to update Contributors.
  5245. */
  5246. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5247. /**
  5248. * Filter which Contributors to update
  5249. */
  5250. where?: ContributorWhereInput
  5251. /**
  5252. * Limit how many Contributors to update.
  5253. */
  5254. limit?: number
  5255. }
  5256. /**
  5257. * Contributor updateManyAndReturn
  5258. */
  5259. export type ContributorUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5260. /**
  5261. * Select specific fields to fetch from the Contributor
  5262. */
  5263. select?: ContributorSelectUpdateManyAndReturn<ExtArgs> | null
  5264. /**
  5265. * Omit specific fields from the Contributor
  5266. */
  5267. omit?: ContributorOmit<ExtArgs> | null
  5268. /**
  5269. * The data used to update Contributors.
  5270. */
  5271. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5272. /**
  5273. * Filter which Contributors to update
  5274. */
  5275. where?: ContributorWhereInput
  5276. /**
  5277. * Limit how many Contributors to update.
  5278. */
  5279. limit?: number
  5280. /**
  5281. * Choose, which related nodes to fetch as well
  5282. */
  5283. include?: ContributorIncludeUpdateManyAndReturn<ExtArgs> | null
  5284. }
  5285. /**
  5286. * Contributor upsert
  5287. */
  5288. export type ContributorUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5289. /**
  5290. * Select specific fields to fetch from the Contributor
  5291. */
  5292. select?: ContributorSelect<ExtArgs> | null
  5293. /**
  5294. * Omit specific fields from the Contributor
  5295. */
  5296. omit?: ContributorOmit<ExtArgs> | null
  5297. /**
  5298. * Choose, which related nodes to fetch as well
  5299. */
  5300. include?: ContributorInclude<ExtArgs> | null
  5301. /**
  5302. * The filter to search for the Contributor to update in case it exists.
  5303. */
  5304. where: ContributorWhereUniqueInput
  5305. /**
  5306. * In case the Contributor found by the `where` argument doesn't exist, create a new Contributor with this data.
  5307. */
  5308. create: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5309. /**
  5310. * In case the Contributor was found with the provided `where` argument, update it with this data.
  5311. */
  5312. update: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5313. }
  5314. /**
  5315. * Contributor delete
  5316. */
  5317. export type ContributorDeleteArgs<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. * Filter which Contributor to delete.
  5332. */
  5333. where: ContributorWhereUniqueInput
  5334. }
  5335. /**
  5336. * Contributor deleteMany
  5337. */
  5338. export type ContributorDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5339. /**
  5340. * Filter which Contributors to delete
  5341. */
  5342. where?: ContributorWhereInput
  5343. /**
  5344. * Limit how many Contributors to delete.
  5345. */
  5346. limit?: number
  5347. }
  5348. /**
  5349. * Contributor.ideas
  5350. */
  5351. export type Contributor$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5352. /**
  5353. * Select specific fields to fetch from the Idea
  5354. */
  5355. select?: IdeaSelect<ExtArgs> | null
  5356. /**
  5357. * Omit specific fields from the Idea
  5358. */
  5359. omit?: IdeaOmit<ExtArgs> | null
  5360. /**
  5361. * Choose, which related nodes to fetch as well
  5362. */
  5363. include?: IdeaInclude<ExtArgs> | null
  5364. where?: IdeaWhereInput
  5365. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5366. cursor?: IdeaWhereUniqueInput
  5367. take?: number
  5368. skip?: number
  5369. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  5370. }
  5371. /**
  5372. * Contributor without action
  5373. */
  5374. export type ContributorDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5375. /**
  5376. * Select specific fields to fetch from the Contributor
  5377. */
  5378. select?: ContributorSelect<ExtArgs> | null
  5379. /**
  5380. * Omit specific fields from the Contributor
  5381. */
  5382. omit?: ContributorOmit<ExtArgs> | null
  5383. /**
  5384. * Choose, which related nodes to fetch as well
  5385. */
  5386. include?: ContributorInclude<ExtArgs> | null
  5387. }
  5388. /**
  5389. * Model Idea
  5390. */
  5391. export type AggregateIdea = {
  5392. _count: IdeaCountAggregateOutputType | null
  5393. _avg: IdeaAvgAggregateOutputType | null
  5394. _sum: IdeaSumAggregateOutputType | null
  5395. _min: IdeaMinAggregateOutputType | null
  5396. _max: IdeaMaxAggregateOutputType | null
  5397. }
  5398. export type IdeaAvgAggregateOutputType = {
  5399. llmScoreImpact: number | null
  5400. llmScoreFeasibility: number | null
  5401. llmScoreUrgency: number | null
  5402. manualScoreImpact: number | null
  5403. manualScoreFeasibility: number | null
  5404. manualScoreUrgency: number | null
  5405. priorityOrder: number | null
  5406. }
  5407. export type IdeaSumAggregateOutputType = {
  5408. llmScoreImpact: number | null
  5409. llmScoreFeasibility: number | null
  5410. llmScoreUrgency: number | null
  5411. manualScoreImpact: number | null
  5412. manualScoreFeasibility: number | null
  5413. manualScoreUrgency: number | null
  5414. priorityOrder: number | null
  5415. }
  5416. export type IdeaMinAggregateOutputType = {
  5417. id: string | null
  5418. workspaceId: string | null
  5419. contributorEmail: string | null
  5420. contributorId: string | null
  5421. department: string | null
  5422. problemDescription: string | null
  5423. estimatedImpact: $Enums.ImpactLevel | null
  5424. frequency: $Enums.Frequency | null
  5425. status: $Enums.IdeaStatus | null
  5426. llmTitle: string | null
  5427. llmDomain: string | null
  5428. llmAiType: string | null
  5429. llmExplanation: string | null
  5430. llmScoreImpact: number | null
  5431. llmScoreFeasibility: number | null
  5432. llmScoreUrgency: number | null
  5433. llmEnrichedAt: Date | null
  5434. llmEnrichFailed: boolean | null
  5435. manualScoreImpact: number | null
  5436. manualScoreFeasibility: number | null
  5437. manualScoreUrgency: number | null
  5438. priorityOrder: number | null
  5439. emailMessageId: string | null
  5440. createdAt: Date | null
  5441. updatedAt: Date | null
  5442. }
  5443. export type IdeaMaxAggregateOutputType = {
  5444. id: string | null
  5445. workspaceId: string | null
  5446. contributorEmail: string | null
  5447. contributorId: string | null
  5448. department: string | null
  5449. problemDescription: string | null
  5450. estimatedImpact: $Enums.ImpactLevel | null
  5451. frequency: $Enums.Frequency | null
  5452. status: $Enums.IdeaStatus | null
  5453. llmTitle: string | null
  5454. llmDomain: string | null
  5455. llmAiType: string | null
  5456. llmExplanation: string | null
  5457. llmScoreImpact: number | null
  5458. llmScoreFeasibility: number | null
  5459. llmScoreUrgency: number | null
  5460. llmEnrichedAt: Date | null
  5461. llmEnrichFailed: boolean | null
  5462. manualScoreImpact: number | null
  5463. manualScoreFeasibility: number | null
  5464. manualScoreUrgency: number | null
  5465. priorityOrder: number | null
  5466. emailMessageId: string | null
  5467. createdAt: Date | null
  5468. updatedAt: Date | null
  5469. }
  5470. export type IdeaCountAggregateOutputType = {
  5471. id: number
  5472. workspaceId: number
  5473. contributorEmail: number
  5474. contributorId: number
  5475. department: number
  5476. problemDescription: number
  5477. estimatedImpact: number
  5478. frequency: number
  5479. status: number
  5480. llmTitle: number
  5481. llmDomain: number
  5482. llmAiType: number
  5483. llmExplanation: number
  5484. llmScoreImpact: number
  5485. llmScoreFeasibility: number
  5486. llmScoreUrgency: number
  5487. llmEnrichedAt: number
  5488. llmEnrichFailed: number
  5489. manualScoreImpact: number
  5490. manualScoreFeasibility: number
  5491. manualScoreUrgency: number
  5492. priorityOrder: number
  5493. emailMessageId: number
  5494. createdAt: number
  5495. updatedAt: number
  5496. _all: number
  5497. }
  5498. export type IdeaAvgAggregateInputType = {
  5499. llmScoreImpact?: true
  5500. llmScoreFeasibility?: true
  5501. llmScoreUrgency?: true
  5502. manualScoreImpact?: true
  5503. manualScoreFeasibility?: true
  5504. manualScoreUrgency?: true
  5505. priorityOrder?: true
  5506. }
  5507. export type IdeaSumAggregateInputType = {
  5508. llmScoreImpact?: true
  5509. llmScoreFeasibility?: true
  5510. llmScoreUrgency?: true
  5511. manualScoreImpact?: true
  5512. manualScoreFeasibility?: true
  5513. manualScoreUrgency?: true
  5514. priorityOrder?: true
  5515. }
  5516. export type IdeaMinAggregateInputType = {
  5517. id?: true
  5518. workspaceId?: true
  5519. contributorEmail?: true
  5520. contributorId?: true
  5521. department?: true
  5522. problemDescription?: true
  5523. estimatedImpact?: true
  5524. frequency?: true
  5525. status?: true
  5526. llmTitle?: true
  5527. llmDomain?: true
  5528. llmAiType?: true
  5529. llmExplanation?: true
  5530. llmScoreImpact?: true
  5531. llmScoreFeasibility?: true
  5532. llmScoreUrgency?: true
  5533. llmEnrichedAt?: true
  5534. llmEnrichFailed?: true
  5535. manualScoreImpact?: true
  5536. manualScoreFeasibility?: true
  5537. manualScoreUrgency?: true
  5538. priorityOrder?: true
  5539. emailMessageId?: true
  5540. createdAt?: true
  5541. updatedAt?: true
  5542. }
  5543. export type IdeaMaxAggregateInputType = {
  5544. id?: true
  5545. workspaceId?: true
  5546. contributorEmail?: true
  5547. contributorId?: true
  5548. department?: true
  5549. problemDescription?: true
  5550. estimatedImpact?: true
  5551. frequency?: true
  5552. status?: true
  5553. llmTitle?: true
  5554. llmDomain?: true
  5555. llmAiType?: true
  5556. llmExplanation?: true
  5557. llmScoreImpact?: true
  5558. llmScoreFeasibility?: true
  5559. llmScoreUrgency?: true
  5560. llmEnrichedAt?: true
  5561. llmEnrichFailed?: true
  5562. manualScoreImpact?: true
  5563. manualScoreFeasibility?: true
  5564. manualScoreUrgency?: true
  5565. priorityOrder?: true
  5566. emailMessageId?: true
  5567. createdAt?: true
  5568. updatedAt?: true
  5569. }
  5570. export type IdeaCountAggregateInputType = {
  5571. id?: true
  5572. workspaceId?: true
  5573. contributorEmail?: true
  5574. contributorId?: true
  5575. department?: true
  5576. problemDescription?: true
  5577. estimatedImpact?: true
  5578. frequency?: true
  5579. status?: true
  5580. llmTitle?: true
  5581. llmDomain?: true
  5582. llmAiType?: true
  5583. llmExplanation?: true
  5584. llmScoreImpact?: true
  5585. llmScoreFeasibility?: true
  5586. llmScoreUrgency?: true
  5587. llmEnrichedAt?: true
  5588. llmEnrichFailed?: true
  5589. manualScoreImpact?: true
  5590. manualScoreFeasibility?: true
  5591. manualScoreUrgency?: true
  5592. priorityOrder?: true
  5593. emailMessageId?: true
  5594. createdAt?: true
  5595. updatedAt?: true
  5596. _all?: true
  5597. }
  5598. export type IdeaAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5599. /**
  5600. * Filter which Idea to aggregate.
  5601. */
  5602. where?: IdeaWhereInput
  5603. /**
  5604. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5605. *
  5606. * Determine the order of Ideas to fetch.
  5607. */
  5608. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5609. /**
  5610. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5611. *
  5612. * Sets the start position
  5613. */
  5614. cursor?: IdeaWhereUniqueInput
  5615. /**
  5616. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5617. *
  5618. * Take `±n` Ideas from the position of the cursor.
  5619. */
  5620. take?: number
  5621. /**
  5622. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5623. *
  5624. * Skip the first `n` Ideas.
  5625. */
  5626. skip?: number
  5627. /**
  5628. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5629. *
  5630. * Count returned Ideas
  5631. **/
  5632. _count?: true | IdeaCountAggregateInputType
  5633. /**
  5634. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5635. *
  5636. * Select which fields to average
  5637. **/
  5638. _avg?: IdeaAvgAggregateInputType
  5639. /**
  5640. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5641. *
  5642. * Select which fields to sum
  5643. **/
  5644. _sum?: IdeaSumAggregateInputType
  5645. /**
  5646. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5647. *
  5648. * Select which fields to find the minimum value
  5649. **/
  5650. _min?: IdeaMinAggregateInputType
  5651. /**
  5652. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5653. *
  5654. * Select which fields to find the maximum value
  5655. **/
  5656. _max?: IdeaMaxAggregateInputType
  5657. }
  5658. export type GetIdeaAggregateType<T extends IdeaAggregateArgs> = {
  5659. [P in keyof T & keyof AggregateIdea]: P extends '_count' | 'count'
  5660. ? T[P] extends true
  5661. ? number
  5662. : GetScalarType<T[P], AggregateIdea[P]>
  5663. : GetScalarType<T[P], AggregateIdea[P]>
  5664. }
  5665. export type IdeaGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5666. where?: IdeaWhereInput
  5667. orderBy?: IdeaOrderByWithAggregationInput | IdeaOrderByWithAggregationInput[]
  5668. by: IdeaScalarFieldEnum[] | IdeaScalarFieldEnum
  5669. having?: IdeaScalarWhereWithAggregatesInput
  5670. take?: number
  5671. skip?: number
  5672. _count?: IdeaCountAggregateInputType | true
  5673. _avg?: IdeaAvgAggregateInputType
  5674. _sum?: IdeaSumAggregateInputType
  5675. _min?: IdeaMinAggregateInputType
  5676. _max?: IdeaMaxAggregateInputType
  5677. }
  5678. export type IdeaGroupByOutputType = {
  5679. id: string
  5680. workspaceId: string
  5681. contributorEmail: string
  5682. contributorId: string | null
  5683. department: string
  5684. problemDescription: string
  5685. estimatedImpact: $Enums.ImpactLevel
  5686. frequency: $Enums.Frequency
  5687. status: $Enums.IdeaStatus
  5688. llmTitle: string | null
  5689. llmDomain: string | null
  5690. llmAiType: string | null
  5691. llmExplanation: string | null
  5692. llmScoreImpact: number | null
  5693. llmScoreFeasibility: number | null
  5694. llmScoreUrgency: number | null
  5695. llmEnrichedAt: Date | null
  5696. llmEnrichFailed: boolean
  5697. manualScoreImpact: number | null
  5698. manualScoreFeasibility: number | null
  5699. manualScoreUrgency: number | null
  5700. priorityOrder: number | null
  5701. emailMessageId: string | null
  5702. createdAt: Date
  5703. updatedAt: Date
  5704. _count: IdeaCountAggregateOutputType | null
  5705. _avg: IdeaAvgAggregateOutputType | null
  5706. _sum: IdeaSumAggregateOutputType | null
  5707. _min: IdeaMinAggregateOutputType | null
  5708. _max: IdeaMaxAggregateOutputType | null
  5709. }
  5710. type GetIdeaGroupByPayload<T extends IdeaGroupByArgs> = Prisma.PrismaPromise<
  5711. Array<
  5712. PickEnumerable<IdeaGroupByOutputType, T['by']> &
  5713. {
  5714. [P in ((keyof T) & (keyof IdeaGroupByOutputType))]: P extends '_count'
  5715. ? T[P] extends boolean
  5716. ? number
  5717. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5718. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5719. }
  5720. >
  5721. >
  5722. export type IdeaSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5723. id?: boolean
  5724. workspaceId?: boolean
  5725. contributorEmail?: boolean
  5726. contributorId?: boolean
  5727. department?: boolean
  5728. problemDescription?: boolean
  5729. estimatedImpact?: boolean
  5730. frequency?: boolean
  5731. status?: boolean
  5732. llmTitle?: boolean
  5733. llmDomain?: boolean
  5734. llmAiType?: boolean
  5735. llmExplanation?: boolean
  5736. llmScoreImpact?: boolean
  5737. llmScoreFeasibility?: boolean
  5738. llmScoreUrgency?: boolean
  5739. llmEnrichedAt?: boolean
  5740. llmEnrichFailed?: boolean
  5741. manualScoreImpact?: boolean
  5742. manualScoreFeasibility?: boolean
  5743. manualScoreUrgency?: boolean
  5744. priorityOrder?: boolean
  5745. emailMessageId?: boolean
  5746. createdAt?: boolean
  5747. updatedAt?: boolean
  5748. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5749. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5750. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  5751. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  5752. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  5753. }, ExtArgs["result"]["idea"]>
  5754. export type IdeaSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5755. id?: boolean
  5756. workspaceId?: boolean
  5757. contributorEmail?: boolean
  5758. contributorId?: boolean
  5759. department?: boolean
  5760. problemDescription?: boolean
  5761. estimatedImpact?: boolean
  5762. frequency?: boolean
  5763. status?: boolean
  5764. llmTitle?: boolean
  5765. llmDomain?: boolean
  5766. llmAiType?: boolean
  5767. llmExplanation?: boolean
  5768. llmScoreImpact?: boolean
  5769. llmScoreFeasibility?: boolean
  5770. llmScoreUrgency?: boolean
  5771. llmEnrichedAt?: boolean
  5772. llmEnrichFailed?: boolean
  5773. manualScoreImpact?: boolean
  5774. manualScoreFeasibility?: boolean
  5775. manualScoreUrgency?: boolean
  5776. priorityOrder?: boolean
  5777. emailMessageId?: boolean
  5778. createdAt?: boolean
  5779. updatedAt?: boolean
  5780. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5781. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5782. }, ExtArgs["result"]["idea"]>
  5783. export type IdeaSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5784. id?: boolean
  5785. workspaceId?: boolean
  5786. contributorEmail?: boolean
  5787. contributorId?: boolean
  5788. department?: boolean
  5789. problemDescription?: boolean
  5790. estimatedImpact?: boolean
  5791. frequency?: boolean
  5792. status?: boolean
  5793. llmTitle?: boolean
  5794. llmDomain?: boolean
  5795. llmAiType?: boolean
  5796. llmExplanation?: boolean
  5797. llmScoreImpact?: boolean
  5798. llmScoreFeasibility?: boolean
  5799. llmScoreUrgency?: boolean
  5800. llmEnrichedAt?: boolean
  5801. llmEnrichFailed?: boolean
  5802. manualScoreImpact?: boolean
  5803. manualScoreFeasibility?: boolean
  5804. manualScoreUrgency?: boolean
  5805. priorityOrder?: boolean
  5806. emailMessageId?: boolean
  5807. createdAt?: boolean
  5808. updatedAt?: boolean
  5809. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5810. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5811. }, ExtArgs["result"]["idea"]>
  5812. export type IdeaSelectScalar = {
  5813. id?: boolean
  5814. workspaceId?: boolean
  5815. contributorEmail?: boolean
  5816. contributorId?: boolean
  5817. department?: boolean
  5818. problemDescription?: boolean
  5819. estimatedImpact?: boolean
  5820. frequency?: boolean
  5821. status?: boolean
  5822. llmTitle?: boolean
  5823. llmDomain?: boolean
  5824. llmAiType?: boolean
  5825. llmExplanation?: boolean
  5826. llmScoreImpact?: boolean
  5827. llmScoreFeasibility?: boolean
  5828. llmScoreUrgency?: boolean
  5829. llmEnrichedAt?: boolean
  5830. llmEnrichFailed?: boolean
  5831. manualScoreImpact?: boolean
  5832. manualScoreFeasibility?: boolean
  5833. manualScoreUrgency?: boolean
  5834. priorityOrder?: boolean
  5835. emailMessageId?: boolean
  5836. createdAt?: boolean
  5837. updatedAt?: boolean
  5838. }
  5839. export type IdeaOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "contributorEmail" | "contributorId" | "department" | "problemDescription" | "estimatedImpact" | "frequency" | "status" | "llmTitle" | "llmDomain" | "llmAiType" | "llmExplanation" | "llmScoreImpact" | "llmScoreFeasibility" | "llmScoreUrgency" | "llmEnrichedAt" | "llmEnrichFailed" | "manualScoreImpact" | "manualScoreFeasibility" | "manualScoreUrgency" | "priorityOrder" | "emailMessageId" | "createdAt" | "updatedAt", ExtArgs["result"]["idea"]>
  5840. export type IdeaInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5841. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5842. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5843. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  5844. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  5845. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  5846. }
  5847. export type IdeaIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5848. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5849. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5850. }
  5851. export type IdeaIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5852. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5853. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5854. }
  5855. export type $IdeaPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5856. name: "Idea"
  5857. objects: {
  5858. workspace: Prisma.$WorkspacePayload<ExtArgs>
  5859. contributor: Prisma.$ContributorPayload<ExtArgs> | null
  5860. attachments: Prisma.$IdeaAttachmentPayload<ExtArgs>[]
  5861. qualificationQuestions: Prisma.$QualificationQuestionPayload<ExtArgs>[]
  5862. }
  5863. scalars: $Extensions.GetPayloadResult<{
  5864. id: string
  5865. workspaceId: string
  5866. contributorEmail: string
  5867. contributorId: string | null
  5868. department: string
  5869. problemDescription: string
  5870. estimatedImpact: $Enums.ImpactLevel
  5871. frequency: $Enums.Frequency
  5872. status: $Enums.IdeaStatus
  5873. llmTitle: string | null
  5874. llmDomain: string | null
  5875. llmAiType: string | null
  5876. llmExplanation: string | null
  5877. llmScoreImpact: number | null
  5878. llmScoreFeasibility: number | null
  5879. llmScoreUrgency: number | null
  5880. llmEnrichedAt: Date | null
  5881. llmEnrichFailed: boolean
  5882. manualScoreImpact: number | null
  5883. manualScoreFeasibility: number | null
  5884. manualScoreUrgency: number | null
  5885. priorityOrder: number | null
  5886. emailMessageId: string | null
  5887. createdAt: Date
  5888. updatedAt: Date
  5889. }, ExtArgs["result"]["idea"]>
  5890. composites: {}
  5891. }
  5892. type IdeaGetPayload<S extends boolean | null | undefined | IdeaDefaultArgs> = $Result.GetResult<Prisma.$IdeaPayload, S>
  5893. type IdeaCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  5894. Omit<IdeaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  5895. select?: IdeaCountAggregateInputType | true
  5896. }
  5897. export interface IdeaDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  5898. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Idea'], meta: { name: 'Idea' } }
  5899. /**
  5900. * Find zero or one Idea that matches the filter.
  5901. * @param {IdeaFindUniqueArgs} args - Arguments to find a Idea
  5902. * @example
  5903. * // Get one Idea
  5904. * const idea = await prisma.idea.findUnique({
  5905. * where: {
  5906. * // ... provide filter here
  5907. * }
  5908. * })
  5909. */
  5910. findUnique<T extends IdeaFindUniqueArgs>(args: SelectSubset<T, IdeaFindUniqueArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  5911. /**
  5912. * Find one Idea that matches the filter or throw an error with `error.code='P2025'`
  5913. * if no matches were found.
  5914. * @param {IdeaFindUniqueOrThrowArgs} args - Arguments to find a Idea
  5915. * @example
  5916. * // Get one Idea
  5917. * const idea = await prisma.idea.findUniqueOrThrow({
  5918. * where: {
  5919. * // ... provide filter here
  5920. * }
  5921. * })
  5922. */
  5923. findUniqueOrThrow<T extends IdeaFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  5924. /**
  5925. * Find the first Idea that matches the filter.
  5926. * Note, that providing `undefined` is treated as the value not being there.
  5927. * Read more here: https://pris.ly/d/null-undefined
  5928. * @param {IdeaFindFirstArgs} args - Arguments to find a Idea
  5929. * @example
  5930. * // Get one Idea
  5931. * const idea = await prisma.idea.findFirst({
  5932. * where: {
  5933. * // ... provide filter here
  5934. * }
  5935. * })
  5936. */
  5937. findFirst<T extends IdeaFindFirstArgs>(args?: SelectSubset<T, IdeaFindFirstArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  5938. /**
  5939. * Find the first Idea that matches the filter or
  5940. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  5941. * Note, that providing `undefined` is treated as the value not being there.
  5942. * Read more here: https://pris.ly/d/null-undefined
  5943. * @param {IdeaFindFirstOrThrowArgs} args - Arguments to find a Idea
  5944. * @example
  5945. * // Get one Idea
  5946. * const idea = await prisma.idea.findFirstOrThrow({
  5947. * where: {
  5948. * // ... provide filter here
  5949. * }
  5950. * })
  5951. */
  5952. findFirstOrThrow<T extends IdeaFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  5953. /**
  5954. * Find zero or more Ideas that matches the filter.
  5955. * Note, that providing `undefined` is treated as the value not being there.
  5956. * Read more here: https://pris.ly/d/null-undefined
  5957. * @param {IdeaFindManyArgs} args - Arguments to filter and select certain fields only.
  5958. * @example
  5959. * // Get all Ideas
  5960. * const ideas = await prisma.idea.findMany()
  5961. *
  5962. * // Get first 10 Ideas
  5963. * const ideas = await prisma.idea.findMany({ take: 10 })
  5964. *
  5965. * // Only select the `id`
  5966. * const ideaWithIdOnly = await prisma.idea.findMany({ select: { id: true } })
  5967. *
  5968. */
  5969. findMany<T extends IdeaFindManyArgs>(args?: SelectSubset<T, IdeaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  5970. /**
  5971. * Create a Idea.
  5972. * @param {IdeaCreateArgs} args - Arguments to create a Idea.
  5973. * @example
  5974. * // Create one Idea
  5975. * const Idea = await prisma.idea.create({
  5976. * data: {
  5977. * // ... data to create a Idea
  5978. * }
  5979. * })
  5980. *
  5981. */
  5982. create<T extends IdeaCreateArgs>(args: SelectSubset<T, IdeaCreateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  5983. /**
  5984. * Create many Ideas.
  5985. * @param {IdeaCreateManyArgs} args - Arguments to create many Ideas.
  5986. * @example
  5987. * // Create many Ideas
  5988. * const idea = await prisma.idea.createMany({
  5989. * data: [
  5990. * // ... provide data here
  5991. * ]
  5992. * })
  5993. *
  5994. */
  5995. createMany<T extends IdeaCreateManyArgs>(args?: SelectSubset<T, IdeaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  5996. /**
  5997. * Create many Ideas and returns the data saved in the database.
  5998. * @param {IdeaCreateManyAndReturnArgs} args - Arguments to create many Ideas.
  5999. * @example
  6000. * // Create many Ideas
  6001. * const idea = await prisma.idea.createManyAndReturn({
  6002. * data: [
  6003. * // ... provide data here
  6004. * ]
  6005. * })
  6006. *
  6007. * // Create many Ideas and only return the `id`
  6008. * const ideaWithIdOnly = await prisma.idea.createManyAndReturn({
  6009. * select: { id: true },
  6010. * data: [
  6011. * // ... provide data here
  6012. * ]
  6013. * })
  6014. * Note, that providing `undefined` is treated as the value not being there.
  6015. * Read more here: https://pris.ly/d/null-undefined
  6016. *
  6017. */
  6018. createManyAndReturn<T extends IdeaCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  6019. /**
  6020. * Delete a Idea.
  6021. * @param {IdeaDeleteArgs} args - Arguments to delete one Idea.
  6022. * @example
  6023. * // Delete one Idea
  6024. * const Idea = await prisma.idea.delete({
  6025. * where: {
  6026. * // ... filter to delete one Idea
  6027. * }
  6028. * })
  6029. *
  6030. */
  6031. delete<T extends IdeaDeleteArgs>(args: SelectSubset<T, IdeaDeleteArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6032. /**
  6033. * Update one Idea.
  6034. * @param {IdeaUpdateArgs} args - Arguments to update one Idea.
  6035. * @example
  6036. * // Update one Idea
  6037. * const idea = await prisma.idea.update({
  6038. * where: {
  6039. * // ... provide filter here
  6040. * },
  6041. * data: {
  6042. * // ... provide data here
  6043. * }
  6044. * })
  6045. *
  6046. */
  6047. update<T extends IdeaUpdateArgs>(args: SelectSubset<T, IdeaUpdateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6048. /**
  6049. * Delete zero or more Ideas.
  6050. * @param {IdeaDeleteManyArgs} args - Arguments to filter Ideas to delete.
  6051. * @example
  6052. * // Delete a few Ideas
  6053. * const { count } = await prisma.idea.deleteMany({
  6054. * where: {
  6055. * // ... provide filter here
  6056. * }
  6057. * })
  6058. *
  6059. */
  6060. deleteMany<T extends IdeaDeleteManyArgs>(args?: SelectSubset<T, IdeaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6061. /**
  6062. * Update zero or more Ideas.
  6063. * Note, that providing `undefined` is treated as the value not being there.
  6064. * Read more here: https://pris.ly/d/null-undefined
  6065. * @param {IdeaUpdateManyArgs} args - Arguments to update one or more rows.
  6066. * @example
  6067. * // Update many Ideas
  6068. * const idea = await prisma.idea.updateMany({
  6069. * where: {
  6070. * // ... provide filter here
  6071. * },
  6072. * data: {
  6073. * // ... provide data here
  6074. * }
  6075. * })
  6076. *
  6077. */
  6078. updateMany<T extends IdeaUpdateManyArgs>(args: SelectSubset<T, IdeaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6079. /**
  6080. * Update zero or more Ideas and returns the data updated in the database.
  6081. * @param {IdeaUpdateManyAndReturnArgs} args - Arguments to update many Ideas.
  6082. * @example
  6083. * // Update many Ideas
  6084. * const idea = await prisma.idea.updateManyAndReturn({
  6085. * where: {
  6086. * // ... provide filter here
  6087. * },
  6088. * data: [
  6089. * // ... provide data here
  6090. * ]
  6091. * })
  6092. *
  6093. * // Update zero or more Ideas and only return the `id`
  6094. * const ideaWithIdOnly = await prisma.idea.updateManyAndReturn({
  6095. * select: { id: true },
  6096. * where: {
  6097. * // ... provide filter here
  6098. * },
  6099. * data: [
  6100. * // ... provide data here
  6101. * ]
  6102. * })
  6103. * Note, that providing `undefined` is treated as the value not being there.
  6104. * Read more here: https://pris.ly/d/null-undefined
  6105. *
  6106. */
  6107. updateManyAndReturn<T extends IdeaUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  6108. /**
  6109. * Create or update one Idea.
  6110. * @param {IdeaUpsertArgs} args - Arguments to update or create a Idea.
  6111. * @example
  6112. * // Update or create a Idea
  6113. * const idea = await prisma.idea.upsert({
  6114. * create: {
  6115. * // ... data to create a Idea
  6116. * },
  6117. * update: {
  6118. * // ... in case it already exists, update
  6119. * },
  6120. * where: {
  6121. * // ... the filter for the Idea we want to update
  6122. * }
  6123. * })
  6124. */
  6125. upsert<T extends IdeaUpsertArgs>(args: SelectSubset<T, IdeaUpsertArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6126. /**
  6127. * Count the number of Ideas.
  6128. * Note, that providing `undefined` is treated as the value not being there.
  6129. * Read more here: https://pris.ly/d/null-undefined
  6130. * @param {IdeaCountArgs} args - Arguments to filter Ideas to count.
  6131. * @example
  6132. * // Count the number of Ideas
  6133. * const count = await prisma.idea.count({
  6134. * where: {
  6135. * // ... the filter for the Ideas we want to count
  6136. * }
  6137. * })
  6138. **/
  6139. count<T extends IdeaCountArgs>(
  6140. args?: Subset<T, IdeaCountArgs>,
  6141. ): Prisma.PrismaPromise<
  6142. T extends $Utils.Record<'select', any>
  6143. ? T['select'] extends true
  6144. ? number
  6145. : GetScalarType<T['select'], IdeaCountAggregateOutputType>
  6146. : number
  6147. >
  6148. /**
  6149. * Allows you to perform aggregations operations on a Idea.
  6150. * Note, that providing `undefined` is treated as the value not being there.
  6151. * Read more here: https://pris.ly/d/null-undefined
  6152. * @param {IdeaAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  6153. * @example
  6154. * // Ordered by age ascending
  6155. * // Where email contains prisma.io
  6156. * // Limited to the 10 users
  6157. * const aggregations = await prisma.user.aggregate({
  6158. * _avg: {
  6159. * age: true,
  6160. * },
  6161. * where: {
  6162. * email: {
  6163. * contains: "prisma.io",
  6164. * },
  6165. * },
  6166. * orderBy: {
  6167. * age: "asc",
  6168. * },
  6169. * take: 10,
  6170. * })
  6171. **/
  6172. aggregate<T extends IdeaAggregateArgs>(args: Subset<T, IdeaAggregateArgs>): Prisma.PrismaPromise<GetIdeaAggregateType<T>>
  6173. /**
  6174. * Group by Idea.
  6175. * Note, that providing `undefined` is treated as the value not being there.
  6176. * Read more here: https://pris.ly/d/null-undefined
  6177. * @param {IdeaGroupByArgs} args - Group by arguments.
  6178. * @example
  6179. * // Group by city, order by createdAt, get count
  6180. * const result = await prisma.user.groupBy({
  6181. * by: ['city', 'createdAt'],
  6182. * orderBy: {
  6183. * createdAt: true
  6184. * },
  6185. * _count: {
  6186. * _all: true
  6187. * },
  6188. * })
  6189. *
  6190. **/
  6191. groupBy<
  6192. T extends IdeaGroupByArgs,
  6193. HasSelectOrTake extends Or<
  6194. Extends<'skip', Keys<T>>,
  6195. Extends<'take', Keys<T>>
  6196. >,
  6197. OrderByArg extends True extends HasSelectOrTake
  6198. ? { orderBy: IdeaGroupByArgs['orderBy'] }
  6199. : { orderBy?: IdeaGroupByArgs['orderBy'] },
  6200. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  6201. ByFields extends MaybeTupleToUnion<T['by']>,
  6202. ByValid extends Has<ByFields, OrderFields>,
  6203. HavingFields extends GetHavingFields<T['having']>,
  6204. HavingValid extends Has<ByFields, HavingFields>,
  6205. ByEmpty extends T['by'] extends never[] ? True : False,
  6206. InputErrors extends ByEmpty extends True
  6207. ? `Error: "by" must not be empty.`
  6208. : HavingValid extends False
  6209. ? {
  6210. [P in HavingFields]: P extends ByFields
  6211. ? never
  6212. : P extends string
  6213. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  6214. : [
  6215. Error,
  6216. 'Field ',
  6217. P,
  6218. ` in "having" needs to be provided in "by"`,
  6219. ]
  6220. }[HavingFields]
  6221. : 'take' extends Keys<T>
  6222. ? 'orderBy' extends Keys<T>
  6223. ? ByValid extends True
  6224. ? {}
  6225. : {
  6226. [P in OrderFields]: P extends ByFields
  6227. ? never
  6228. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6229. }[OrderFields]
  6230. : 'Error: If you provide "take", you also need to provide "orderBy"'
  6231. : 'skip' extends Keys<T>
  6232. ? 'orderBy' extends Keys<T>
  6233. ? ByValid extends True
  6234. ? {}
  6235. : {
  6236. [P in OrderFields]: P extends ByFields
  6237. ? never
  6238. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6239. }[OrderFields]
  6240. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  6241. : ByValid extends True
  6242. ? {}
  6243. : {
  6244. [P in OrderFields]: P extends ByFields
  6245. ? never
  6246. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6247. }[OrderFields]
  6248. >(args: SubsetIntersection<T, IdeaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  6249. /**
  6250. * Fields of the Idea model
  6251. */
  6252. readonly fields: IdeaFieldRefs;
  6253. }
  6254. /**
  6255. * The delegate class that acts as a "Promise-like" for Idea.
  6256. * Why is this prefixed with `Prisma__`?
  6257. * Because we want to prevent naming conflicts as mentioned in
  6258. * https://github.com/prisma/prisma-client-js/issues/707
  6259. */
  6260. export interface Prisma__IdeaClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  6261. readonly [Symbol.toStringTag]: "PrismaPromise"
  6262. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  6263. 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>
  6264. attachments<T extends Idea$attachmentsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6265. qualificationQuestions<T extends Idea$qualificationQuestionsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$qualificationQuestionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6266. /**
  6267. * Attaches callbacks for the resolution and/or rejection of the Promise.
  6268. * @param onfulfilled The callback to execute when the Promise is resolved.
  6269. * @param onrejected The callback to execute when the Promise is rejected.
  6270. * @returns A Promise for the completion of which ever callback is executed.
  6271. */
  6272. 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>
  6273. /**
  6274. * Attaches a callback for only the rejection of the Promise.
  6275. * @param onrejected The callback to execute when the Promise is rejected.
  6276. * @returns A Promise for the completion of the callback.
  6277. */
  6278. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  6279. /**
  6280. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  6281. * resolved value cannot be modified from the callback.
  6282. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  6283. * @returns A Promise for the completion of the callback.
  6284. */
  6285. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  6286. }
  6287. /**
  6288. * Fields of the Idea model
  6289. */
  6290. interface IdeaFieldRefs {
  6291. readonly id: FieldRef<"Idea", 'String'>
  6292. readonly workspaceId: FieldRef<"Idea", 'String'>
  6293. readonly contributorEmail: FieldRef<"Idea", 'String'>
  6294. readonly contributorId: FieldRef<"Idea", 'String'>
  6295. readonly department: FieldRef<"Idea", 'String'>
  6296. readonly problemDescription: FieldRef<"Idea", 'String'>
  6297. readonly estimatedImpact: FieldRef<"Idea", 'ImpactLevel'>
  6298. readonly frequency: FieldRef<"Idea", 'Frequency'>
  6299. readonly status: FieldRef<"Idea", 'IdeaStatus'>
  6300. readonly llmTitle: FieldRef<"Idea", 'String'>
  6301. readonly llmDomain: FieldRef<"Idea", 'String'>
  6302. readonly llmAiType: FieldRef<"Idea", 'String'>
  6303. readonly llmExplanation: FieldRef<"Idea", 'String'>
  6304. readonly llmScoreImpact: FieldRef<"Idea", 'Int'>
  6305. readonly llmScoreFeasibility: FieldRef<"Idea", 'Int'>
  6306. readonly llmScoreUrgency: FieldRef<"Idea", 'Int'>
  6307. readonly llmEnrichedAt: FieldRef<"Idea", 'DateTime'>
  6308. readonly llmEnrichFailed: FieldRef<"Idea", 'Boolean'>
  6309. readonly manualScoreImpact: FieldRef<"Idea", 'Int'>
  6310. readonly manualScoreFeasibility: FieldRef<"Idea", 'Int'>
  6311. readonly manualScoreUrgency: FieldRef<"Idea", 'Int'>
  6312. readonly priorityOrder: FieldRef<"Idea", 'Int'>
  6313. readonly emailMessageId: FieldRef<"Idea", 'String'>
  6314. readonly createdAt: FieldRef<"Idea", 'DateTime'>
  6315. readonly updatedAt: FieldRef<"Idea", 'DateTime'>
  6316. }
  6317. // Custom InputTypes
  6318. /**
  6319. * Idea findUnique
  6320. */
  6321. export type IdeaFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6322. /**
  6323. * Select specific fields to fetch from the Idea
  6324. */
  6325. select?: IdeaSelect<ExtArgs> | null
  6326. /**
  6327. * Omit specific fields from the Idea
  6328. */
  6329. omit?: IdeaOmit<ExtArgs> | null
  6330. /**
  6331. * Choose, which related nodes to fetch as well
  6332. */
  6333. include?: IdeaInclude<ExtArgs> | null
  6334. /**
  6335. * Filter, which Idea to fetch.
  6336. */
  6337. where: IdeaWhereUniqueInput
  6338. }
  6339. /**
  6340. * Idea findUniqueOrThrow
  6341. */
  6342. export type IdeaFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6343. /**
  6344. * Select specific fields to fetch from the Idea
  6345. */
  6346. select?: IdeaSelect<ExtArgs> | null
  6347. /**
  6348. * Omit specific fields from the Idea
  6349. */
  6350. omit?: IdeaOmit<ExtArgs> | null
  6351. /**
  6352. * Choose, which related nodes to fetch as well
  6353. */
  6354. include?: IdeaInclude<ExtArgs> | null
  6355. /**
  6356. * Filter, which Idea to fetch.
  6357. */
  6358. where: IdeaWhereUniqueInput
  6359. }
  6360. /**
  6361. * Idea findFirst
  6362. */
  6363. export type IdeaFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6364. /**
  6365. * Select specific fields to fetch from the Idea
  6366. */
  6367. select?: IdeaSelect<ExtArgs> | null
  6368. /**
  6369. * Omit specific fields from the Idea
  6370. */
  6371. omit?: IdeaOmit<ExtArgs> | null
  6372. /**
  6373. * Choose, which related nodes to fetch as well
  6374. */
  6375. include?: IdeaInclude<ExtArgs> | null
  6376. /**
  6377. * Filter, which Idea to fetch.
  6378. */
  6379. where?: IdeaWhereInput
  6380. /**
  6381. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6382. *
  6383. * Determine the order of Ideas to fetch.
  6384. */
  6385. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6386. /**
  6387. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6388. *
  6389. * Sets the position for searching for Ideas.
  6390. */
  6391. cursor?: IdeaWhereUniqueInput
  6392. /**
  6393. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6394. *
  6395. * Take `±n` Ideas from the position of the cursor.
  6396. */
  6397. take?: number
  6398. /**
  6399. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6400. *
  6401. * Skip the first `n` Ideas.
  6402. */
  6403. skip?: number
  6404. /**
  6405. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6406. *
  6407. * Filter by unique combinations of Ideas.
  6408. */
  6409. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6410. }
  6411. /**
  6412. * Idea findFirstOrThrow
  6413. */
  6414. export type IdeaFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6415. /**
  6416. * Select specific fields to fetch from the Idea
  6417. */
  6418. select?: IdeaSelect<ExtArgs> | null
  6419. /**
  6420. * Omit specific fields from the Idea
  6421. */
  6422. omit?: IdeaOmit<ExtArgs> | null
  6423. /**
  6424. * Choose, which related nodes to fetch as well
  6425. */
  6426. include?: IdeaInclude<ExtArgs> | null
  6427. /**
  6428. * Filter, which Idea to fetch.
  6429. */
  6430. where?: IdeaWhereInput
  6431. /**
  6432. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6433. *
  6434. * Determine the order of Ideas to fetch.
  6435. */
  6436. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6437. /**
  6438. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6439. *
  6440. * Sets the position for searching for Ideas.
  6441. */
  6442. cursor?: IdeaWhereUniqueInput
  6443. /**
  6444. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6445. *
  6446. * Take `±n` Ideas from the position of the cursor.
  6447. */
  6448. take?: number
  6449. /**
  6450. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6451. *
  6452. * Skip the first `n` Ideas.
  6453. */
  6454. skip?: number
  6455. /**
  6456. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6457. *
  6458. * Filter by unique combinations of Ideas.
  6459. */
  6460. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6461. }
  6462. /**
  6463. * Idea findMany
  6464. */
  6465. export type IdeaFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6466. /**
  6467. * Select specific fields to fetch from the Idea
  6468. */
  6469. select?: IdeaSelect<ExtArgs> | null
  6470. /**
  6471. * Omit specific fields from the Idea
  6472. */
  6473. omit?: IdeaOmit<ExtArgs> | null
  6474. /**
  6475. * Choose, which related nodes to fetch as well
  6476. */
  6477. include?: IdeaInclude<ExtArgs> | null
  6478. /**
  6479. * Filter, which Ideas to fetch.
  6480. */
  6481. where?: IdeaWhereInput
  6482. /**
  6483. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6484. *
  6485. * Determine the order of Ideas to fetch.
  6486. */
  6487. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6488. /**
  6489. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6490. *
  6491. * Sets the position for listing Ideas.
  6492. */
  6493. cursor?: IdeaWhereUniqueInput
  6494. /**
  6495. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6496. *
  6497. * Take `±n` Ideas from the position of the cursor.
  6498. */
  6499. take?: number
  6500. /**
  6501. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6502. *
  6503. * Skip the first `n` Ideas.
  6504. */
  6505. skip?: number
  6506. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6507. }
  6508. /**
  6509. * Idea create
  6510. */
  6511. export type IdeaCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6512. /**
  6513. * Select specific fields to fetch from the Idea
  6514. */
  6515. select?: IdeaSelect<ExtArgs> | null
  6516. /**
  6517. * Omit specific fields from the Idea
  6518. */
  6519. omit?: IdeaOmit<ExtArgs> | null
  6520. /**
  6521. * Choose, which related nodes to fetch as well
  6522. */
  6523. include?: IdeaInclude<ExtArgs> | null
  6524. /**
  6525. * The data needed to create a Idea.
  6526. */
  6527. data: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6528. }
  6529. /**
  6530. * Idea createMany
  6531. */
  6532. export type IdeaCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6533. /**
  6534. * The data used to create many Ideas.
  6535. */
  6536. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6537. skipDuplicates?: boolean
  6538. }
  6539. /**
  6540. * Idea createManyAndReturn
  6541. */
  6542. export type IdeaCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6543. /**
  6544. * Select specific fields to fetch from the Idea
  6545. */
  6546. select?: IdeaSelectCreateManyAndReturn<ExtArgs> | null
  6547. /**
  6548. * Omit specific fields from the Idea
  6549. */
  6550. omit?: IdeaOmit<ExtArgs> | null
  6551. /**
  6552. * The data used to create many Ideas.
  6553. */
  6554. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6555. skipDuplicates?: boolean
  6556. /**
  6557. * Choose, which related nodes to fetch as well
  6558. */
  6559. include?: IdeaIncludeCreateManyAndReturn<ExtArgs> | null
  6560. }
  6561. /**
  6562. * Idea update
  6563. */
  6564. export type IdeaUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6565. /**
  6566. * Select specific fields to fetch from the Idea
  6567. */
  6568. select?: IdeaSelect<ExtArgs> | null
  6569. /**
  6570. * Omit specific fields from the Idea
  6571. */
  6572. omit?: IdeaOmit<ExtArgs> | null
  6573. /**
  6574. * Choose, which related nodes to fetch as well
  6575. */
  6576. include?: IdeaInclude<ExtArgs> | null
  6577. /**
  6578. * The data needed to update a Idea.
  6579. */
  6580. data: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6581. /**
  6582. * Choose, which Idea to update.
  6583. */
  6584. where: IdeaWhereUniqueInput
  6585. }
  6586. /**
  6587. * Idea updateMany
  6588. */
  6589. export type IdeaUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6590. /**
  6591. * The data used to update Ideas.
  6592. */
  6593. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6594. /**
  6595. * Filter which Ideas to update
  6596. */
  6597. where?: IdeaWhereInput
  6598. /**
  6599. * Limit how many Ideas to update.
  6600. */
  6601. limit?: number
  6602. }
  6603. /**
  6604. * Idea updateManyAndReturn
  6605. */
  6606. export type IdeaUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6607. /**
  6608. * Select specific fields to fetch from the Idea
  6609. */
  6610. select?: IdeaSelectUpdateManyAndReturn<ExtArgs> | null
  6611. /**
  6612. * Omit specific fields from the Idea
  6613. */
  6614. omit?: IdeaOmit<ExtArgs> | null
  6615. /**
  6616. * The data used to update Ideas.
  6617. */
  6618. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6619. /**
  6620. * Filter which Ideas to update
  6621. */
  6622. where?: IdeaWhereInput
  6623. /**
  6624. * Limit how many Ideas to update.
  6625. */
  6626. limit?: number
  6627. /**
  6628. * Choose, which related nodes to fetch as well
  6629. */
  6630. include?: IdeaIncludeUpdateManyAndReturn<ExtArgs> | null
  6631. }
  6632. /**
  6633. * Idea upsert
  6634. */
  6635. export type IdeaUpsertArgs<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 filter to search for the Idea to update in case it exists.
  6650. */
  6651. where: IdeaWhereUniqueInput
  6652. /**
  6653. * In case the Idea found by the `where` argument doesn't exist, create a new Idea with this data.
  6654. */
  6655. create: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6656. /**
  6657. * In case the Idea was found with the provided `where` argument, update it with this data.
  6658. */
  6659. update: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6660. }
  6661. /**
  6662. * Idea delete
  6663. */
  6664. export type IdeaDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6665. /**
  6666. * Select specific fields to fetch from the Idea
  6667. */
  6668. select?: IdeaSelect<ExtArgs> | null
  6669. /**
  6670. * Omit specific fields from the Idea
  6671. */
  6672. omit?: IdeaOmit<ExtArgs> | null
  6673. /**
  6674. * Choose, which related nodes to fetch as well
  6675. */
  6676. include?: IdeaInclude<ExtArgs> | null
  6677. /**
  6678. * Filter which Idea to delete.
  6679. */
  6680. where: IdeaWhereUniqueInput
  6681. }
  6682. /**
  6683. * Idea deleteMany
  6684. */
  6685. export type IdeaDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6686. /**
  6687. * Filter which Ideas to delete
  6688. */
  6689. where?: IdeaWhereInput
  6690. /**
  6691. * Limit how many Ideas to delete.
  6692. */
  6693. limit?: number
  6694. }
  6695. /**
  6696. * Idea.contributor
  6697. */
  6698. export type Idea$contributorArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6699. /**
  6700. * Select specific fields to fetch from the Contributor
  6701. */
  6702. select?: ContributorSelect<ExtArgs> | null
  6703. /**
  6704. * Omit specific fields from the Contributor
  6705. */
  6706. omit?: ContributorOmit<ExtArgs> | null
  6707. /**
  6708. * Choose, which related nodes to fetch as well
  6709. */
  6710. include?: ContributorInclude<ExtArgs> | null
  6711. where?: ContributorWhereInput
  6712. }
  6713. /**
  6714. * Idea.attachments
  6715. */
  6716. export type Idea$attachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6717. /**
  6718. * Select specific fields to fetch from the IdeaAttachment
  6719. */
  6720. select?: IdeaAttachmentSelect<ExtArgs> | null
  6721. /**
  6722. * Omit specific fields from the IdeaAttachment
  6723. */
  6724. omit?: IdeaAttachmentOmit<ExtArgs> | null
  6725. /**
  6726. * Choose, which related nodes to fetch as well
  6727. */
  6728. include?: IdeaAttachmentInclude<ExtArgs> | null
  6729. where?: IdeaAttachmentWhereInput
  6730. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  6731. cursor?: IdeaAttachmentWhereUniqueInput
  6732. take?: number
  6733. skip?: number
  6734. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  6735. }
  6736. /**
  6737. * Idea.qualificationQuestions
  6738. */
  6739. export type Idea$qualificationQuestionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6740. /**
  6741. * Select specific fields to fetch from the QualificationQuestion
  6742. */
  6743. select?: QualificationQuestionSelect<ExtArgs> | null
  6744. /**
  6745. * Omit specific fields from the QualificationQuestion
  6746. */
  6747. omit?: QualificationQuestionOmit<ExtArgs> | null
  6748. /**
  6749. * Choose, which related nodes to fetch as well
  6750. */
  6751. include?: QualificationQuestionInclude<ExtArgs> | null
  6752. where?: QualificationQuestionWhereInput
  6753. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  6754. cursor?: QualificationQuestionWhereUniqueInput
  6755. take?: number
  6756. skip?: number
  6757. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  6758. }
  6759. /**
  6760. * Idea without action
  6761. */
  6762. export type IdeaDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6763. /**
  6764. * Select specific fields to fetch from the Idea
  6765. */
  6766. select?: IdeaSelect<ExtArgs> | null
  6767. /**
  6768. * Omit specific fields from the Idea
  6769. */
  6770. omit?: IdeaOmit<ExtArgs> | null
  6771. /**
  6772. * Choose, which related nodes to fetch as well
  6773. */
  6774. include?: IdeaInclude<ExtArgs> | null
  6775. }
  6776. /**
  6777. * Model Post
  6778. */
  6779. export type AggregatePost = {
  6780. _count: PostCountAggregateOutputType | null
  6781. _avg: PostAvgAggregateOutputType | null
  6782. _sum: PostSumAggregateOutputType | null
  6783. _min: PostMinAggregateOutputType | null
  6784. _max: PostMaxAggregateOutputType | null
  6785. }
  6786. export type PostAvgAggregateOutputType = {
  6787. id: number | null
  6788. }
  6789. export type PostSumAggregateOutputType = {
  6790. id: number | null
  6791. }
  6792. export type PostMinAggregateOutputType = {
  6793. id: number | null
  6794. name: string | null
  6795. createdAt: Date | null
  6796. updatedAt: Date | null
  6797. createdById: string | null
  6798. }
  6799. export type PostMaxAggregateOutputType = {
  6800. id: number | null
  6801. name: string | null
  6802. createdAt: Date | null
  6803. updatedAt: Date | null
  6804. createdById: string | null
  6805. }
  6806. export type PostCountAggregateOutputType = {
  6807. id: number
  6808. name: number
  6809. createdAt: number
  6810. updatedAt: number
  6811. createdById: number
  6812. _all: number
  6813. }
  6814. export type PostAvgAggregateInputType = {
  6815. id?: true
  6816. }
  6817. export type PostSumAggregateInputType = {
  6818. id?: true
  6819. }
  6820. export type PostMinAggregateInputType = {
  6821. id?: true
  6822. name?: true
  6823. createdAt?: true
  6824. updatedAt?: true
  6825. createdById?: true
  6826. }
  6827. export type PostMaxAggregateInputType = {
  6828. id?: true
  6829. name?: true
  6830. createdAt?: true
  6831. updatedAt?: true
  6832. createdById?: true
  6833. }
  6834. export type PostCountAggregateInputType = {
  6835. id?: true
  6836. name?: true
  6837. createdAt?: true
  6838. updatedAt?: true
  6839. createdById?: true
  6840. _all?: true
  6841. }
  6842. export type PostAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6843. /**
  6844. * Filter which Post to aggregate.
  6845. */
  6846. where?: PostWhereInput
  6847. /**
  6848. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6849. *
  6850. * Determine the order of Posts to fetch.
  6851. */
  6852. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  6853. /**
  6854. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6855. *
  6856. * Sets the start position
  6857. */
  6858. cursor?: PostWhereUniqueInput
  6859. /**
  6860. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6861. *
  6862. * Take `±n` Posts from the position of the cursor.
  6863. */
  6864. take?: number
  6865. /**
  6866. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6867. *
  6868. * Skip the first `n` Posts.
  6869. */
  6870. skip?: number
  6871. /**
  6872. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6873. *
  6874. * Count returned Posts
  6875. **/
  6876. _count?: true | PostCountAggregateInputType
  6877. /**
  6878. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6879. *
  6880. * Select which fields to average
  6881. **/
  6882. _avg?: PostAvgAggregateInputType
  6883. /**
  6884. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6885. *
  6886. * Select which fields to sum
  6887. **/
  6888. _sum?: PostSumAggregateInputType
  6889. /**
  6890. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6891. *
  6892. * Select which fields to find the minimum value
  6893. **/
  6894. _min?: PostMinAggregateInputType
  6895. /**
  6896. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6897. *
  6898. * Select which fields to find the maximum value
  6899. **/
  6900. _max?: PostMaxAggregateInputType
  6901. }
  6902. export type GetPostAggregateType<T extends PostAggregateArgs> = {
  6903. [P in keyof T & keyof AggregatePost]: P extends '_count' | 'count'
  6904. ? T[P] extends true
  6905. ? number
  6906. : GetScalarType<T[P], AggregatePost[P]>
  6907. : GetScalarType<T[P], AggregatePost[P]>
  6908. }
  6909. export type PostGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6910. where?: PostWhereInput
  6911. orderBy?: PostOrderByWithAggregationInput | PostOrderByWithAggregationInput[]
  6912. by: PostScalarFieldEnum[] | PostScalarFieldEnum
  6913. having?: PostScalarWhereWithAggregatesInput
  6914. take?: number
  6915. skip?: number
  6916. _count?: PostCountAggregateInputType | true
  6917. _avg?: PostAvgAggregateInputType
  6918. _sum?: PostSumAggregateInputType
  6919. _min?: PostMinAggregateInputType
  6920. _max?: PostMaxAggregateInputType
  6921. }
  6922. export type PostGroupByOutputType = {
  6923. id: number
  6924. name: string
  6925. createdAt: Date
  6926. updatedAt: Date
  6927. createdById: string
  6928. _count: PostCountAggregateOutputType | null
  6929. _avg: PostAvgAggregateOutputType | null
  6930. _sum: PostSumAggregateOutputType | null
  6931. _min: PostMinAggregateOutputType | null
  6932. _max: PostMaxAggregateOutputType | null
  6933. }
  6934. type GetPostGroupByPayload<T extends PostGroupByArgs> = Prisma.PrismaPromise<
  6935. Array<
  6936. PickEnumerable<PostGroupByOutputType, T['by']> &
  6937. {
  6938. [P in ((keyof T) & (keyof PostGroupByOutputType))]: P extends '_count'
  6939. ? T[P] extends boolean
  6940. ? number
  6941. : GetScalarType<T[P], PostGroupByOutputType[P]>
  6942. : GetScalarType<T[P], PostGroupByOutputType[P]>
  6943. }
  6944. >
  6945. >
  6946. export type PostSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  6947. id?: boolean
  6948. name?: boolean
  6949. createdAt?: boolean
  6950. updatedAt?: boolean
  6951. createdById?: boolean
  6952. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  6953. }, ExtArgs["result"]["post"]>
  6954. export type PostSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  6955. id?: boolean
  6956. name?: boolean
  6957. createdAt?: boolean
  6958. updatedAt?: boolean
  6959. createdById?: boolean
  6960. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  6961. }, ExtArgs["result"]["post"]>
  6962. export type PostSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  6963. id?: boolean
  6964. name?: boolean
  6965. createdAt?: boolean
  6966. updatedAt?: boolean
  6967. createdById?: boolean
  6968. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  6969. }, ExtArgs["result"]["post"]>
  6970. export type PostSelectScalar = {
  6971. id?: boolean
  6972. name?: boolean
  6973. createdAt?: boolean
  6974. updatedAt?: boolean
  6975. createdById?: boolean
  6976. }
  6977. export type PostOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt" | "createdById", ExtArgs["result"]["post"]>
  6978. export type PostInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6979. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  6980. }
  6981. export type PostIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6982. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  6983. }
  6984. export type PostIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6985. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  6986. }
  6987. export type $PostPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6988. name: "Post"
  6989. objects: {
  6990. createdBy: Prisma.$UserPayload<ExtArgs>
  6991. }
  6992. scalars: $Extensions.GetPayloadResult<{
  6993. id: number
  6994. name: string
  6995. createdAt: Date
  6996. updatedAt: Date
  6997. createdById: string
  6998. }, ExtArgs["result"]["post"]>
  6999. composites: {}
  7000. }
  7001. type PostGetPayload<S extends boolean | null | undefined | PostDefaultArgs> = $Result.GetResult<Prisma.$PostPayload, S>
  7002. type PostCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  7003. Omit<PostFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  7004. select?: PostCountAggregateInputType | true
  7005. }
  7006. export interface PostDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  7007. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Post'], meta: { name: 'Post' } }
  7008. /**
  7009. * Find zero or one Post that matches the filter.
  7010. * @param {PostFindUniqueArgs} args - Arguments to find a Post
  7011. * @example
  7012. * // Get one Post
  7013. * const post = await prisma.post.findUnique({
  7014. * where: {
  7015. * // ... provide filter here
  7016. * }
  7017. * })
  7018. */
  7019. findUnique<T extends PostFindUniqueArgs>(args: SelectSubset<T, PostFindUniqueArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7020. /**
  7021. * Find one Post that matches the filter or throw an error with `error.code='P2025'`
  7022. * if no matches were found.
  7023. * @param {PostFindUniqueOrThrowArgs} args - Arguments to find a Post
  7024. * @example
  7025. * // Get one Post
  7026. * const post = await prisma.post.findUniqueOrThrow({
  7027. * where: {
  7028. * // ... provide filter here
  7029. * }
  7030. * })
  7031. */
  7032. findUniqueOrThrow<T extends PostFindUniqueOrThrowArgs>(args: SelectSubset<T, PostFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7033. /**
  7034. * Find the first Post that matches the filter.
  7035. * Note, that providing `undefined` is treated as the value not being there.
  7036. * Read more here: https://pris.ly/d/null-undefined
  7037. * @param {PostFindFirstArgs} args - Arguments to find a Post
  7038. * @example
  7039. * // Get one Post
  7040. * const post = await prisma.post.findFirst({
  7041. * where: {
  7042. * // ... provide filter here
  7043. * }
  7044. * })
  7045. */
  7046. findFirst<T extends PostFindFirstArgs>(args?: SelectSubset<T, PostFindFirstArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7047. /**
  7048. * Find the first Post that matches the filter or
  7049. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  7050. * Note, that providing `undefined` is treated as the value not being there.
  7051. * Read more here: https://pris.ly/d/null-undefined
  7052. * @param {PostFindFirstOrThrowArgs} args - Arguments to find a Post
  7053. * @example
  7054. * // Get one Post
  7055. * const post = await prisma.post.findFirstOrThrow({
  7056. * where: {
  7057. * // ... provide filter here
  7058. * }
  7059. * })
  7060. */
  7061. findFirstOrThrow<T extends PostFindFirstOrThrowArgs>(args?: SelectSubset<T, PostFindFirstOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7062. /**
  7063. * Find zero or more Posts that matches the filter.
  7064. * Note, that providing `undefined` is treated as the value not being there.
  7065. * Read more here: https://pris.ly/d/null-undefined
  7066. * @param {PostFindManyArgs} args - Arguments to filter and select certain fields only.
  7067. * @example
  7068. * // Get all Posts
  7069. * const posts = await prisma.post.findMany()
  7070. *
  7071. * // Get first 10 Posts
  7072. * const posts = await prisma.post.findMany({ take: 10 })
  7073. *
  7074. * // Only select the `id`
  7075. * const postWithIdOnly = await prisma.post.findMany({ select: { id: true } })
  7076. *
  7077. */
  7078. findMany<T extends PostFindManyArgs>(args?: SelectSubset<T, PostFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  7079. /**
  7080. * Create a Post.
  7081. * @param {PostCreateArgs} args - Arguments to create a Post.
  7082. * @example
  7083. * // Create one Post
  7084. * const Post = await prisma.post.create({
  7085. * data: {
  7086. * // ... data to create a Post
  7087. * }
  7088. * })
  7089. *
  7090. */
  7091. create<T extends PostCreateArgs>(args: SelectSubset<T, PostCreateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7092. /**
  7093. * Create many Posts.
  7094. * @param {PostCreateManyArgs} args - Arguments to create many Posts.
  7095. * @example
  7096. * // Create many Posts
  7097. * const post = await prisma.post.createMany({
  7098. * data: [
  7099. * // ... provide data here
  7100. * ]
  7101. * })
  7102. *
  7103. */
  7104. createMany<T extends PostCreateManyArgs>(args?: SelectSubset<T, PostCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7105. /**
  7106. * Create many Posts and returns the data saved in the database.
  7107. * @param {PostCreateManyAndReturnArgs} args - Arguments to create many Posts.
  7108. * @example
  7109. * // Create many Posts
  7110. * const post = await prisma.post.createManyAndReturn({
  7111. * data: [
  7112. * // ... provide data here
  7113. * ]
  7114. * })
  7115. *
  7116. * // Create many Posts and only return the `id`
  7117. * const postWithIdOnly = await prisma.post.createManyAndReturn({
  7118. * select: { id: true },
  7119. * data: [
  7120. * // ... provide data here
  7121. * ]
  7122. * })
  7123. * Note, that providing `undefined` is treated as the value not being there.
  7124. * Read more here: https://pris.ly/d/null-undefined
  7125. *
  7126. */
  7127. createManyAndReturn<T extends PostCreateManyAndReturnArgs>(args?: SelectSubset<T, PostCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  7128. /**
  7129. * Delete a Post.
  7130. * @param {PostDeleteArgs} args - Arguments to delete one Post.
  7131. * @example
  7132. * // Delete one Post
  7133. * const Post = await prisma.post.delete({
  7134. * where: {
  7135. * // ... filter to delete one Post
  7136. * }
  7137. * })
  7138. *
  7139. */
  7140. delete<T extends PostDeleteArgs>(args: SelectSubset<T, PostDeleteArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7141. /**
  7142. * Update one Post.
  7143. * @param {PostUpdateArgs} args - Arguments to update one Post.
  7144. * @example
  7145. * // Update one Post
  7146. * const post = await prisma.post.update({
  7147. * where: {
  7148. * // ... provide filter here
  7149. * },
  7150. * data: {
  7151. * // ... provide data here
  7152. * }
  7153. * })
  7154. *
  7155. */
  7156. update<T extends PostUpdateArgs>(args: SelectSubset<T, PostUpdateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7157. /**
  7158. * Delete zero or more Posts.
  7159. * @param {PostDeleteManyArgs} args - Arguments to filter Posts to delete.
  7160. * @example
  7161. * // Delete a few Posts
  7162. * const { count } = await prisma.post.deleteMany({
  7163. * where: {
  7164. * // ... provide filter here
  7165. * }
  7166. * })
  7167. *
  7168. */
  7169. deleteMany<T extends PostDeleteManyArgs>(args?: SelectSubset<T, PostDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7170. /**
  7171. * Update zero or more Posts.
  7172. * Note, that providing `undefined` is treated as the value not being there.
  7173. * Read more here: https://pris.ly/d/null-undefined
  7174. * @param {PostUpdateManyArgs} args - Arguments to update one or more rows.
  7175. * @example
  7176. * // Update many Posts
  7177. * const post = await prisma.post.updateMany({
  7178. * where: {
  7179. * // ... provide filter here
  7180. * },
  7181. * data: {
  7182. * // ... provide data here
  7183. * }
  7184. * })
  7185. *
  7186. */
  7187. updateMany<T extends PostUpdateManyArgs>(args: SelectSubset<T, PostUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7188. /**
  7189. * Update zero or more Posts and returns the data updated in the database.
  7190. * @param {PostUpdateManyAndReturnArgs} args - Arguments to update many Posts.
  7191. * @example
  7192. * // Update many Posts
  7193. * const post = await prisma.post.updateManyAndReturn({
  7194. * where: {
  7195. * // ... provide filter here
  7196. * },
  7197. * data: [
  7198. * // ... provide data here
  7199. * ]
  7200. * })
  7201. *
  7202. * // Update zero or more Posts and only return the `id`
  7203. * const postWithIdOnly = await prisma.post.updateManyAndReturn({
  7204. * select: { id: true },
  7205. * where: {
  7206. * // ... provide filter here
  7207. * },
  7208. * data: [
  7209. * // ... provide data here
  7210. * ]
  7211. * })
  7212. * Note, that providing `undefined` is treated as the value not being there.
  7213. * Read more here: https://pris.ly/d/null-undefined
  7214. *
  7215. */
  7216. updateManyAndReturn<T extends PostUpdateManyAndReturnArgs>(args: SelectSubset<T, PostUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  7217. /**
  7218. * Create or update one Post.
  7219. * @param {PostUpsertArgs} args - Arguments to update or create a Post.
  7220. * @example
  7221. * // Update or create a Post
  7222. * const post = await prisma.post.upsert({
  7223. * create: {
  7224. * // ... data to create a Post
  7225. * },
  7226. * update: {
  7227. * // ... in case it already exists, update
  7228. * },
  7229. * where: {
  7230. * // ... the filter for the Post we want to update
  7231. * }
  7232. * })
  7233. */
  7234. upsert<T extends PostUpsertArgs>(args: SelectSubset<T, PostUpsertArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7235. /**
  7236. * Count the number of Posts.
  7237. * Note, that providing `undefined` is treated as the value not being there.
  7238. * Read more here: https://pris.ly/d/null-undefined
  7239. * @param {PostCountArgs} args - Arguments to filter Posts to count.
  7240. * @example
  7241. * // Count the number of Posts
  7242. * const count = await prisma.post.count({
  7243. * where: {
  7244. * // ... the filter for the Posts we want to count
  7245. * }
  7246. * })
  7247. **/
  7248. count<T extends PostCountArgs>(
  7249. args?: Subset<T, PostCountArgs>,
  7250. ): Prisma.PrismaPromise<
  7251. T extends $Utils.Record<'select', any>
  7252. ? T['select'] extends true
  7253. ? number
  7254. : GetScalarType<T['select'], PostCountAggregateOutputType>
  7255. : number
  7256. >
  7257. /**
  7258. * Allows you to perform aggregations operations on a Post.
  7259. * Note, that providing `undefined` is treated as the value not being there.
  7260. * Read more here: https://pris.ly/d/null-undefined
  7261. * @param {PostAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  7262. * @example
  7263. * // Ordered by age ascending
  7264. * // Where email contains prisma.io
  7265. * // Limited to the 10 users
  7266. * const aggregations = await prisma.user.aggregate({
  7267. * _avg: {
  7268. * age: true,
  7269. * },
  7270. * where: {
  7271. * email: {
  7272. * contains: "prisma.io",
  7273. * },
  7274. * },
  7275. * orderBy: {
  7276. * age: "asc",
  7277. * },
  7278. * take: 10,
  7279. * })
  7280. **/
  7281. aggregate<T extends PostAggregateArgs>(args: Subset<T, PostAggregateArgs>): Prisma.PrismaPromise<GetPostAggregateType<T>>
  7282. /**
  7283. * Group by Post.
  7284. * Note, that providing `undefined` is treated as the value not being there.
  7285. * Read more here: https://pris.ly/d/null-undefined
  7286. * @param {PostGroupByArgs} args - Group by arguments.
  7287. * @example
  7288. * // Group by city, order by createdAt, get count
  7289. * const result = await prisma.user.groupBy({
  7290. * by: ['city', 'createdAt'],
  7291. * orderBy: {
  7292. * createdAt: true
  7293. * },
  7294. * _count: {
  7295. * _all: true
  7296. * },
  7297. * })
  7298. *
  7299. **/
  7300. groupBy<
  7301. T extends PostGroupByArgs,
  7302. HasSelectOrTake extends Or<
  7303. Extends<'skip', Keys<T>>,
  7304. Extends<'take', Keys<T>>
  7305. >,
  7306. OrderByArg extends True extends HasSelectOrTake
  7307. ? { orderBy: PostGroupByArgs['orderBy'] }
  7308. : { orderBy?: PostGroupByArgs['orderBy'] },
  7309. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  7310. ByFields extends MaybeTupleToUnion<T['by']>,
  7311. ByValid extends Has<ByFields, OrderFields>,
  7312. HavingFields extends GetHavingFields<T['having']>,
  7313. HavingValid extends Has<ByFields, HavingFields>,
  7314. ByEmpty extends T['by'] extends never[] ? True : False,
  7315. InputErrors extends ByEmpty extends True
  7316. ? `Error: "by" must not be empty.`
  7317. : HavingValid extends False
  7318. ? {
  7319. [P in HavingFields]: P extends ByFields
  7320. ? never
  7321. : P extends string
  7322. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  7323. : [
  7324. Error,
  7325. 'Field ',
  7326. P,
  7327. ` in "having" needs to be provided in "by"`,
  7328. ]
  7329. }[HavingFields]
  7330. : 'take' extends Keys<T>
  7331. ? 'orderBy' extends Keys<T>
  7332. ? ByValid extends True
  7333. ? {}
  7334. : {
  7335. [P in OrderFields]: P extends ByFields
  7336. ? never
  7337. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7338. }[OrderFields]
  7339. : 'Error: If you provide "take", you also need to provide "orderBy"'
  7340. : 'skip' extends Keys<T>
  7341. ? 'orderBy' extends Keys<T>
  7342. ? ByValid extends True
  7343. ? {}
  7344. : {
  7345. [P in OrderFields]: P extends ByFields
  7346. ? never
  7347. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7348. }[OrderFields]
  7349. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  7350. : ByValid extends True
  7351. ? {}
  7352. : {
  7353. [P in OrderFields]: P extends ByFields
  7354. ? never
  7355. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7356. }[OrderFields]
  7357. >(args: SubsetIntersection<T, PostGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPostGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  7358. /**
  7359. * Fields of the Post model
  7360. */
  7361. readonly fields: PostFieldRefs;
  7362. }
  7363. /**
  7364. * The delegate class that acts as a "Promise-like" for Post.
  7365. * Why is this prefixed with `Prisma__`?
  7366. * Because we want to prevent naming conflicts as mentioned in
  7367. * https://github.com/prisma/prisma-client-js/issues/707
  7368. */
  7369. export interface Prisma__PostClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  7370. readonly [Symbol.toStringTag]: "PrismaPromise"
  7371. createdBy<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  7372. /**
  7373. * Attaches callbacks for the resolution and/or rejection of the Promise.
  7374. * @param onfulfilled The callback to execute when the Promise is resolved.
  7375. * @param onrejected The callback to execute when the Promise is rejected.
  7376. * @returns A Promise for the completion of which ever callback is executed.
  7377. */
  7378. 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>
  7379. /**
  7380. * Attaches a callback for only the rejection of the Promise.
  7381. * @param onrejected The callback to execute when the Promise is rejected.
  7382. * @returns A Promise for the completion of the callback.
  7383. */
  7384. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  7385. /**
  7386. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  7387. * resolved value cannot be modified from the callback.
  7388. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  7389. * @returns A Promise for the completion of the callback.
  7390. */
  7391. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  7392. }
  7393. /**
  7394. * Fields of the Post model
  7395. */
  7396. interface PostFieldRefs {
  7397. readonly id: FieldRef<"Post", 'Int'>
  7398. readonly name: FieldRef<"Post", 'String'>
  7399. readonly createdAt: FieldRef<"Post", 'DateTime'>
  7400. readonly updatedAt: FieldRef<"Post", 'DateTime'>
  7401. readonly createdById: FieldRef<"Post", 'String'>
  7402. }
  7403. // Custom InputTypes
  7404. /**
  7405. * Post findUnique
  7406. */
  7407. export type PostFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7408. /**
  7409. * Select specific fields to fetch from the Post
  7410. */
  7411. select?: PostSelect<ExtArgs> | null
  7412. /**
  7413. * Omit specific fields from the Post
  7414. */
  7415. omit?: PostOmit<ExtArgs> | null
  7416. /**
  7417. * Choose, which related nodes to fetch as well
  7418. */
  7419. include?: PostInclude<ExtArgs> | null
  7420. /**
  7421. * Filter, which Post to fetch.
  7422. */
  7423. where: PostWhereUniqueInput
  7424. }
  7425. /**
  7426. * Post findUniqueOrThrow
  7427. */
  7428. export type PostFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7429. /**
  7430. * Select specific fields to fetch from the Post
  7431. */
  7432. select?: PostSelect<ExtArgs> | null
  7433. /**
  7434. * Omit specific fields from the Post
  7435. */
  7436. omit?: PostOmit<ExtArgs> | null
  7437. /**
  7438. * Choose, which related nodes to fetch as well
  7439. */
  7440. include?: PostInclude<ExtArgs> | null
  7441. /**
  7442. * Filter, which Post to fetch.
  7443. */
  7444. where: PostWhereUniqueInput
  7445. }
  7446. /**
  7447. * Post findFirst
  7448. */
  7449. export type PostFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7450. /**
  7451. * Select specific fields to fetch from the Post
  7452. */
  7453. select?: PostSelect<ExtArgs> | null
  7454. /**
  7455. * Omit specific fields from the Post
  7456. */
  7457. omit?: PostOmit<ExtArgs> | null
  7458. /**
  7459. * Choose, which related nodes to fetch as well
  7460. */
  7461. include?: PostInclude<ExtArgs> | null
  7462. /**
  7463. * Filter, which Post to fetch.
  7464. */
  7465. where?: PostWhereInput
  7466. /**
  7467. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7468. *
  7469. * Determine the order of Posts to fetch.
  7470. */
  7471. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7472. /**
  7473. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7474. *
  7475. * Sets the position for searching for Posts.
  7476. */
  7477. cursor?: PostWhereUniqueInput
  7478. /**
  7479. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7480. *
  7481. * Take `±n` Posts from the position of the cursor.
  7482. */
  7483. take?: number
  7484. /**
  7485. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7486. *
  7487. * Skip the first `n` Posts.
  7488. */
  7489. skip?: number
  7490. /**
  7491. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7492. *
  7493. * Filter by unique combinations of Posts.
  7494. */
  7495. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7496. }
  7497. /**
  7498. * Post findFirstOrThrow
  7499. */
  7500. export type PostFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7501. /**
  7502. * Select specific fields to fetch from the Post
  7503. */
  7504. select?: PostSelect<ExtArgs> | null
  7505. /**
  7506. * Omit specific fields from the Post
  7507. */
  7508. omit?: PostOmit<ExtArgs> | null
  7509. /**
  7510. * Choose, which related nodes to fetch as well
  7511. */
  7512. include?: PostInclude<ExtArgs> | null
  7513. /**
  7514. * Filter, which Post to fetch.
  7515. */
  7516. where?: PostWhereInput
  7517. /**
  7518. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7519. *
  7520. * Determine the order of Posts to fetch.
  7521. */
  7522. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7523. /**
  7524. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7525. *
  7526. * Sets the position for searching for Posts.
  7527. */
  7528. cursor?: PostWhereUniqueInput
  7529. /**
  7530. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7531. *
  7532. * Take `±n` Posts from the position of the cursor.
  7533. */
  7534. take?: number
  7535. /**
  7536. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7537. *
  7538. * Skip the first `n` Posts.
  7539. */
  7540. skip?: number
  7541. /**
  7542. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7543. *
  7544. * Filter by unique combinations of Posts.
  7545. */
  7546. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7547. }
  7548. /**
  7549. * Post findMany
  7550. */
  7551. export type PostFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7552. /**
  7553. * Select specific fields to fetch from the Post
  7554. */
  7555. select?: PostSelect<ExtArgs> | null
  7556. /**
  7557. * Omit specific fields from the Post
  7558. */
  7559. omit?: PostOmit<ExtArgs> | null
  7560. /**
  7561. * Choose, which related nodes to fetch as well
  7562. */
  7563. include?: PostInclude<ExtArgs> | null
  7564. /**
  7565. * Filter, which Posts to fetch.
  7566. */
  7567. where?: PostWhereInput
  7568. /**
  7569. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7570. *
  7571. * Determine the order of Posts to fetch.
  7572. */
  7573. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7574. /**
  7575. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7576. *
  7577. * Sets the position for listing Posts.
  7578. */
  7579. cursor?: PostWhereUniqueInput
  7580. /**
  7581. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7582. *
  7583. * Take `±n` Posts from the position of the cursor.
  7584. */
  7585. take?: number
  7586. /**
  7587. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7588. *
  7589. * Skip the first `n` Posts.
  7590. */
  7591. skip?: number
  7592. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7593. }
  7594. /**
  7595. * Post create
  7596. */
  7597. export type PostCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7598. /**
  7599. * Select specific fields to fetch from the Post
  7600. */
  7601. select?: PostSelect<ExtArgs> | null
  7602. /**
  7603. * Omit specific fields from the Post
  7604. */
  7605. omit?: PostOmit<ExtArgs> | null
  7606. /**
  7607. * Choose, which related nodes to fetch as well
  7608. */
  7609. include?: PostInclude<ExtArgs> | null
  7610. /**
  7611. * The data needed to create a Post.
  7612. */
  7613. data: XOR<PostCreateInput, PostUncheckedCreateInput>
  7614. }
  7615. /**
  7616. * Post createMany
  7617. */
  7618. export type PostCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7619. /**
  7620. * The data used to create many Posts.
  7621. */
  7622. data: PostCreateManyInput | PostCreateManyInput[]
  7623. skipDuplicates?: boolean
  7624. }
  7625. /**
  7626. * Post createManyAndReturn
  7627. */
  7628. export type PostCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7629. /**
  7630. * Select specific fields to fetch from the Post
  7631. */
  7632. select?: PostSelectCreateManyAndReturn<ExtArgs> | null
  7633. /**
  7634. * Omit specific fields from the Post
  7635. */
  7636. omit?: PostOmit<ExtArgs> | null
  7637. /**
  7638. * The data used to create many Posts.
  7639. */
  7640. data: PostCreateManyInput | PostCreateManyInput[]
  7641. skipDuplicates?: boolean
  7642. /**
  7643. * Choose, which related nodes to fetch as well
  7644. */
  7645. include?: PostIncludeCreateManyAndReturn<ExtArgs> | null
  7646. }
  7647. /**
  7648. * Post update
  7649. */
  7650. export type PostUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7651. /**
  7652. * Select specific fields to fetch from the Post
  7653. */
  7654. select?: PostSelect<ExtArgs> | null
  7655. /**
  7656. * Omit specific fields from the Post
  7657. */
  7658. omit?: PostOmit<ExtArgs> | null
  7659. /**
  7660. * Choose, which related nodes to fetch as well
  7661. */
  7662. include?: PostInclude<ExtArgs> | null
  7663. /**
  7664. * The data needed to update a Post.
  7665. */
  7666. data: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7667. /**
  7668. * Choose, which Post to update.
  7669. */
  7670. where: PostWhereUniqueInput
  7671. }
  7672. /**
  7673. * Post updateMany
  7674. */
  7675. export type PostUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7676. /**
  7677. * The data used to update Posts.
  7678. */
  7679. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7680. /**
  7681. * Filter which Posts to update
  7682. */
  7683. where?: PostWhereInput
  7684. /**
  7685. * Limit how many Posts to update.
  7686. */
  7687. limit?: number
  7688. }
  7689. /**
  7690. * Post updateManyAndReturn
  7691. */
  7692. export type PostUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7693. /**
  7694. * Select specific fields to fetch from the Post
  7695. */
  7696. select?: PostSelectUpdateManyAndReturn<ExtArgs> | null
  7697. /**
  7698. * Omit specific fields from the Post
  7699. */
  7700. omit?: PostOmit<ExtArgs> | null
  7701. /**
  7702. * The data used to update Posts.
  7703. */
  7704. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7705. /**
  7706. * Filter which Posts to update
  7707. */
  7708. where?: PostWhereInput
  7709. /**
  7710. * Limit how many Posts to update.
  7711. */
  7712. limit?: number
  7713. /**
  7714. * Choose, which related nodes to fetch as well
  7715. */
  7716. include?: PostIncludeUpdateManyAndReturn<ExtArgs> | null
  7717. }
  7718. /**
  7719. * Post upsert
  7720. */
  7721. export type PostUpsertArgs<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 filter to search for the Post to update in case it exists.
  7736. */
  7737. where: PostWhereUniqueInput
  7738. /**
  7739. * In case the Post found by the `where` argument doesn't exist, create a new Post with this data.
  7740. */
  7741. create: XOR<PostCreateInput, PostUncheckedCreateInput>
  7742. /**
  7743. * In case the Post was found with the provided `where` argument, update it with this data.
  7744. */
  7745. update: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7746. }
  7747. /**
  7748. * Post delete
  7749. */
  7750. export type PostDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7751. /**
  7752. * Select specific fields to fetch from the Post
  7753. */
  7754. select?: PostSelect<ExtArgs> | null
  7755. /**
  7756. * Omit specific fields from the Post
  7757. */
  7758. omit?: PostOmit<ExtArgs> | null
  7759. /**
  7760. * Choose, which related nodes to fetch as well
  7761. */
  7762. include?: PostInclude<ExtArgs> | null
  7763. /**
  7764. * Filter which Post to delete.
  7765. */
  7766. where: PostWhereUniqueInput
  7767. }
  7768. /**
  7769. * Post deleteMany
  7770. */
  7771. export type PostDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7772. /**
  7773. * Filter which Posts to delete
  7774. */
  7775. where?: PostWhereInput
  7776. /**
  7777. * Limit how many Posts to delete.
  7778. */
  7779. limit?: number
  7780. }
  7781. /**
  7782. * Post without action
  7783. */
  7784. export type PostDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7785. /**
  7786. * Select specific fields to fetch from the Post
  7787. */
  7788. select?: PostSelect<ExtArgs> | null
  7789. /**
  7790. * Omit specific fields from the Post
  7791. */
  7792. omit?: PostOmit<ExtArgs> | null
  7793. /**
  7794. * Choose, which related nodes to fetch as well
  7795. */
  7796. include?: PostInclude<ExtArgs> | null
  7797. }
  7798. /**
  7799. * Model Account
  7800. */
  7801. export type AggregateAccount = {
  7802. _count: AccountCountAggregateOutputType | null
  7803. _avg: AccountAvgAggregateOutputType | null
  7804. _sum: AccountSumAggregateOutputType | null
  7805. _min: AccountMinAggregateOutputType | null
  7806. _max: AccountMaxAggregateOutputType | null
  7807. }
  7808. export type AccountAvgAggregateOutputType = {
  7809. expires_at: number | null
  7810. refresh_token_expires_in: number | null
  7811. }
  7812. export type AccountSumAggregateOutputType = {
  7813. expires_at: number | null
  7814. refresh_token_expires_in: number | null
  7815. }
  7816. export type AccountMinAggregateOutputType = {
  7817. id: string | null
  7818. userId: string | null
  7819. type: string | null
  7820. provider: string | null
  7821. providerAccountId: string | null
  7822. refresh_token: string | null
  7823. access_token: string | null
  7824. expires_at: number | null
  7825. token_type: string | null
  7826. scope: string | null
  7827. id_token: string | null
  7828. session_state: string | null
  7829. refresh_token_expires_in: number | null
  7830. }
  7831. export type AccountMaxAggregateOutputType = {
  7832. id: string | null
  7833. userId: string | null
  7834. type: string | null
  7835. provider: string | null
  7836. providerAccountId: string | null
  7837. refresh_token: string | null
  7838. access_token: string | null
  7839. expires_at: number | null
  7840. token_type: string | null
  7841. scope: string | null
  7842. id_token: string | null
  7843. session_state: string | null
  7844. refresh_token_expires_in: number | null
  7845. }
  7846. export type AccountCountAggregateOutputType = {
  7847. id: number
  7848. userId: number
  7849. type: number
  7850. provider: number
  7851. providerAccountId: number
  7852. refresh_token: number
  7853. access_token: number
  7854. expires_at: number
  7855. token_type: number
  7856. scope: number
  7857. id_token: number
  7858. session_state: number
  7859. refresh_token_expires_in: number
  7860. _all: number
  7861. }
  7862. export type AccountAvgAggregateInputType = {
  7863. expires_at?: true
  7864. refresh_token_expires_in?: true
  7865. }
  7866. export type AccountSumAggregateInputType = {
  7867. expires_at?: true
  7868. refresh_token_expires_in?: true
  7869. }
  7870. export type AccountMinAggregateInputType = {
  7871. id?: true
  7872. userId?: true
  7873. type?: true
  7874. provider?: true
  7875. providerAccountId?: true
  7876. refresh_token?: true
  7877. access_token?: true
  7878. expires_at?: true
  7879. token_type?: true
  7880. scope?: true
  7881. id_token?: true
  7882. session_state?: true
  7883. refresh_token_expires_in?: true
  7884. }
  7885. export type AccountMaxAggregateInputType = {
  7886. id?: true
  7887. userId?: true
  7888. type?: true
  7889. provider?: true
  7890. providerAccountId?: true
  7891. refresh_token?: true
  7892. access_token?: true
  7893. expires_at?: true
  7894. token_type?: true
  7895. scope?: true
  7896. id_token?: true
  7897. session_state?: true
  7898. refresh_token_expires_in?: true
  7899. }
  7900. export type AccountCountAggregateInputType = {
  7901. id?: true
  7902. userId?: true
  7903. type?: true
  7904. provider?: true
  7905. providerAccountId?: true
  7906. refresh_token?: true
  7907. access_token?: true
  7908. expires_at?: true
  7909. token_type?: true
  7910. scope?: true
  7911. id_token?: true
  7912. session_state?: true
  7913. refresh_token_expires_in?: true
  7914. _all?: true
  7915. }
  7916. export type AccountAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7917. /**
  7918. * Filter which Account to aggregate.
  7919. */
  7920. where?: AccountWhereInput
  7921. /**
  7922. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7923. *
  7924. * Determine the order of Accounts to fetch.
  7925. */
  7926. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  7927. /**
  7928. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7929. *
  7930. * Sets the start position
  7931. */
  7932. cursor?: AccountWhereUniqueInput
  7933. /**
  7934. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7935. *
  7936. * Take `±n` Accounts from the position of the cursor.
  7937. */
  7938. take?: number
  7939. /**
  7940. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7941. *
  7942. * Skip the first `n` Accounts.
  7943. */
  7944. skip?: number
  7945. /**
  7946. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7947. *
  7948. * Count returned Accounts
  7949. **/
  7950. _count?: true | AccountCountAggregateInputType
  7951. /**
  7952. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7953. *
  7954. * Select which fields to average
  7955. **/
  7956. _avg?: AccountAvgAggregateInputType
  7957. /**
  7958. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7959. *
  7960. * Select which fields to sum
  7961. **/
  7962. _sum?: AccountSumAggregateInputType
  7963. /**
  7964. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7965. *
  7966. * Select which fields to find the minimum value
  7967. **/
  7968. _min?: AccountMinAggregateInputType
  7969. /**
  7970. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7971. *
  7972. * Select which fields to find the maximum value
  7973. **/
  7974. _max?: AccountMaxAggregateInputType
  7975. }
  7976. export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
  7977. [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
  7978. ? T[P] extends true
  7979. ? number
  7980. : GetScalarType<T[P], AggregateAccount[P]>
  7981. : GetScalarType<T[P], AggregateAccount[P]>
  7982. }
  7983. export type AccountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7984. where?: AccountWhereInput
  7985. orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[]
  7986. by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
  7987. having?: AccountScalarWhereWithAggregatesInput
  7988. take?: number
  7989. skip?: number
  7990. _count?: AccountCountAggregateInputType | true
  7991. _avg?: AccountAvgAggregateInputType
  7992. _sum?: AccountSumAggregateInputType
  7993. _min?: AccountMinAggregateInputType
  7994. _max?: AccountMaxAggregateInputType
  7995. }
  7996. export type AccountGroupByOutputType = {
  7997. id: string
  7998. userId: string
  7999. type: string
  8000. provider: string
  8001. providerAccountId: string
  8002. refresh_token: string | null
  8003. access_token: string | null
  8004. expires_at: number | null
  8005. token_type: string | null
  8006. scope: string | null
  8007. id_token: string | null
  8008. session_state: string | null
  8009. refresh_token_expires_in: number | null
  8010. _count: AccountCountAggregateOutputType | null
  8011. _avg: AccountAvgAggregateOutputType | null
  8012. _sum: AccountSumAggregateOutputType | null
  8013. _min: AccountMinAggregateOutputType | null
  8014. _max: AccountMaxAggregateOutputType | null
  8015. }
  8016. type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
  8017. Array<
  8018. PickEnumerable<AccountGroupByOutputType, T['by']> &
  8019. {
  8020. [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
  8021. ? T[P] extends boolean
  8022. ? number
  8023. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8024. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8025. }
  8026. >
  8027. >
  8028. export type AccountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8029. id?: boolean
  8030. userId?: boolean
  8031. type?: boolean
  8032. provider?: boolean
  8033. providerAccountId?: boolean
  8034. refresh_token?: boolean
  8035. access_token?: boolean
  8036. expires_at?: boolean
  8037. token_type?: boolean
  8038. scope?: boolean
  8039. id_token?: boolean
  8040. session_state?: boolean
  8041. refresh_token_expires_in?: boolean
  8042. user?: boolean | UserDefaultArgs<ExtArgs>
  8043. }, ExtArgs["result"]["account"]>
  8044. export type AccountSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8045. id?: boolean
  8046. userId?: boolean
  8047. type?: boolean
  8048. provider?: boolean
  8049. providerAccountId?: boolean
  8050. refresh_token?: boolean
  8051. access_token?: boolean
  8052. expires_at?: boolean
  8053. token_type?: boolean
  8054. scope?: boolean
  8055. id_token?: boolean
  8056. session_state?: boolean
  8057. refresh_token_expires_in?: boolean
  8058. user?: boolean | UserDefaultArgs<ExtArgs>
  8059. }, ExtArgs["result"]["account"]>
  8060. export type AccountSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8061. id?: boolean
  8062. userId?: boolean
  8063. type?: boolean
  8064. provider?: boolean
  8065. providerAccountId?: boolean
  8066. refresh_token?: boolean
  8067. access_token?: boolean
  8068. expires_at?: boolean
  8069. token_type?: boolean
  8070. scope?: boolean
  8071. id_token?: boolean
  8072. session_state?: boolean
  8073. refresh_token_expires_in?: boolean
  8074. user?: boolean | UserDefaultArgs<ExtArgs>
  8075. }, ExtArgs["result"]["account"]>
  8076. export type AccountSelectScalar = {
  8077. id?: boolean
  8078. userId?: boolean
  8079. type?: boolean
  8080. provider?: boolean
  8081. providerAccountId?: boolean
  8082. refresh_token?: boolean
  8083. access_token?: boolean
  8084. expires_at?: boolean
  8085. token_type?: boolean
  8086. scope?: boolean
  8087. id_token?: boolean
  8088. session_state?: boolean
  8089. refresh_token_expires_in?: boolean
  8090. }
  8091. 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"]>
  8092. export type AccountInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8093. user?: boolean | UserDefaultArgs<ExtArgs>
  8094. }
  8095. export type AccountIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8096. user?: boolean | UserDefaultArgs<ExtArgs>
  8097. }
  8098. export type AccountIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8099. user?: boolean | UserDefaultArgs<ExtArgs>
  8100. }
  8101. export type $AccountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8102. name: "Account"
  8103. objects: {
  8104. user: Prisma.$UserPayload<ExtArgs>
  8105. }
  8106. scalars: $Extensions.GetPayloadResult<{
  8107. id: string
  8108. userId: string
  8109. type: string
  8110. provider: string
  8111. providerAccountId: string
  8112. refresh_token: string | null
  8113. access_token: string | null
  8114. expires_at: number | null
  8115. token_type: string | null
  8116. scope: string | null
  8117. id_token: string | null
  8118. session_state: string | null
  8119. refresh_token_expires_in: number | null
  8120. }, ExtArgs["result"]["account"]>
  8121. composites: {}
  8122. }
  8123. type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = $Result.GetResult<Prisma.$AccountPayload, S>
  8124. type AccountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  8125. Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  8126. select?: AccountCountAggregateInputType | true
  8127. }
  8128. export interface AccountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  8129. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
  8130. /**
  8131. * Find zero or one Account that matches the filter.
  8132. * @param {AccountFindUniqueArgs} args - Arguments to find a Account
  8133. * @example
  8134. * // Get one Account
  8135. * const account = await prisma.account.findUnique({
  8136. * where: {
  8137. * // ... provide filter here
  8138. * }
  8139. * })
  8140. */
  8141. findUnique<T extends AccountFindUniqueArgs>(args: SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8142. /**
  8143. * Find one Account that matches the filter or throw an error with `error.code='P2025'`
  8144. * if no matches were found.
  8145. * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
  8146. * @example
  8147. * // Get one Account
  8148. * const account = await prisma.account.findUniqueOrThrow({
  8149. * where: {
  8150. * // ... provide filter here
  8151. * }
  8152. * })
  8153. */
  8154. findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8155. /**
  8156. * Find the first Account that matches the filter.
  8157. * Note, that providing `undefined` is treated as the value not being there.
  8158. * Read more here: https://pris.ly/d/null-undefined
  8159. * @param {AccountFindFirstArgs} args - Arguments to find a Account
  8160. * @example
  8161. * // Get one Account
  8162. * const account = await prisma.account.findFirst({
  8163. * where: {
  8164. * // ... provide filter here
  8165. * }
  8166. * })
  8167. */
  8168. findFirst<T extends AccountFindFirstArgs>(args?: SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8169. /**
  8170. * Find the first Account that matches the filter or
  8171. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  8172. * Note, that providing `undefined` is treated as the value not being there.
  8173. * Read more here: https://pris.ly/d/null-undefined
  8174. * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
  8175. * @example
  8176. * // Get one Account
  8177. * const account = await prisma.account.findFirstOrThrow({
  8178. * where: {
  8179. * // ... provide filter here
  8180. * }
  8181. * })
  8182. */
  8183. findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8184. /**
  8185. * Find zero or more Accounts that matches the filter.
  8186. * Note, that providing `undefined` is treated as the value not being there.
  8187. * Read more here: https://pris.ly/d/null-undefined
  8188. * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
  8189. * @example
  8190. * // Get all Accounts
  8191. * const accounts = await prisma.account.findMany()
  8192. *
  8193. * // Get first 10 Accounts
  8194. * const accounts = await prisma.account.findMany({ take: 10 })
  8195. *
  8196. * // Only select the `id`
  8197. * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
  8198. *
  8199. */
  8200. findMany<T extends AccountFindManyArgs>(args?: SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  8201. /**
  8202. * Create a Account.
  8203. * @param {AccountCreateArgs} args - Arguments to create a Account.
  8204. * @example
  8205. * // Create one Account
  8206. * const Account = await prisma.account.create({
  8207. * data: {
  8208. * // ... data to create a Account
  8209. * }
  8210. * })
  8211. *
  8212. */
  8213. create<T extends AccountCreateArgs>(args: SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8214. /**
  8215. * Create many Accounts.
  8216. * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
  8217. * @example
  8218. * // Create many Accounts
  8219. * const account = await prisma.account.createMany({
  8220. * data: [
  8221. * // ... provide data here
  8222. * ]
  8223. * })
  8224. *
  8225. */
  8226. createMany<T extends AccountCreateManyArgs>(args?: SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8227. /**
  8228. * Create many Accounts and returns the data saved in the database.
  8229. * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
  8230. * @example
  8231. * // Create many Accounts
  8232. * const account = await prisma.account.createManyAndReturn({
  8233. * data: [
  8234. * // ... provide data here
  8235. * ]
  8236. * })
  8237. *
  8238. * // Create many Accounts and only return the `id`
  8239. * const accountWithIdOnly = await prisma.account.createManyAndReturn({
  8240. * select: { id: true },
  8241. * data: [
  8242. * // ... provide data here
  8243. * ]
  8244. * })
  8245. * Note, that providing `undefined` is treated as the value not being there.
  8246. * Read more here: https://pris.ly/d/null-undefined
  8247. *
  8248. */
  8249. createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  8250. /**
  8251. * Delete a Account.
  8252. * @param {AccountDeleteArgs} args - Arguments to delete one Account.
  8253. * @example
  8254. * // Delete one Account
  8255. * const Account = await prisma.account.delete({
  8256. * where: {
  8257. * // ... filter to delete one Account
  8258. * }
  8259. * })
  8260. *
  8261. */
  8262. delete<T extends AccountDeleteArgs>(args: SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8263. /**
  8264. * Update one Account.
  8265. * @param {AccountUpdateArgs} args - Arguments to update one Account.
  8266. * @example
  8267. * // Update one Account
  8268. * const account = await prisma.account.update({
  8269. * where: {
  8270. * // ... provide filter here
  8271. * },
  8272. * data: {
  8273. * // ... provide data here
  8274. * }
  8275. * })
  8276. *
  8277. */
  8278. update<T extends AccountUpdateArgs>(args: SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8279. /**
  8280. * Delete zero or more Accounts.
  8281. * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
  8282. * @example
  8283. * // Delete a few Accounts
  8284. * const { count } = await prisma.account.deleteMany({
  8285. * where: {
  8286. * // ... provide filter here
  8287. * }
  8288. * })
  8289. *
  8290. */
  8291. deleteMany<T extends AccountDeleteManyArgs>(args?: SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8292. /**
  8293. * Update zero or more Accounts.
  8294. * Note, that providing `undefined` is treated as the value not being there.
  8295. * Read more here: https://pris.ly/d/null-undefined
  8296. * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
  8297. * @example
  8298. * // Update many Accounts
  8299. * const account = await prisma.account.updateMany({
  8300. * where: {
  8301. * // ... provide filter here
  8302. * },
  8303. * data: {
  8304. * // ... provide data here
  8305. * }
  8306. * })
  8307. *
  8308. */
  8309. updateMany<T extends AccountUpdateManyArgs>(args: SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8310. /**
  8311. * Update zero or more Accounts and returns the data updated in the database.
  8312. * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
  8313. * @example
  8314. * // Update many Accounts
  8315. * const account = await prisma.account.updateManyAndReturn({
  8316. * where: {
  8317. * // ... provide filter here
  8318. * },
  8319. * data: [
  8320. * // ... provide data here
  8321. * ]
  8322. * })
  8323. *
  8324. * // Update zero or more Accounts and only return the `id`
  8325. * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
  8326. * select: { id: true },
  8327. * where: {
  8328. * // ... provide filter here
  8329. * },
  8330. * data: [
  8331. * // ... provide data here
  8332. * ]
  8333. * })
  8334. * Note, that providing `undefined` is treated as the value not being there.
  8335. * Read more here: https://pris.ly/d/null-undefined
  8336. *
  8337. */
  8338. updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  8339. /**
  8340. * Create or update one Account.
  8341. * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
  8342. * @example
  8343. * // Update or create a Account
  8344. * const account = await prisma.account.upsert({
  8345. * create: {
  8346. * // ... data to create a Account
  8347. * },
  8348. * update: {
  8349. * // ... in case it already exists, update
  8350. * },
  8351. * where: {
  8352. * // ... the filter for the Account we want to update
  8353. * }
  8354. * })
  8355. */
  8356. upsert<T extends AccountUpsertArgs>(args: SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8357. /**
  8358. * Count the number of Accounts.
  8359. * Note, that providing `undefined` is treated as the value not being there.
  8360. * Read more here: https://pris.ly/d/null-undefined
  8361. * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
  8362. * @example
  8363. * // Count the number of Accounts
  8364. * const count = await prisma.account.count({
  8365. * where: {
  8366. * // ... the filter for the Accounts we want to count
  8367. * }
  8368. * })
  8369. **/
  8370. count<T extends AccountCountArgs>(
  8371. args?: Subset<T, AccountCountArgs>,
  8372. ): Prisma.PrismaPromise<
  8373. T extends $Utils.Record<'select', any>
  8374. ? T['select'] extends true
  8375. ? number
  8376. : GetScalarType<T['select'], AccountCountAggregateOutputType>
  8377. : number
  8378. >
  8379. /**
  8380. * Allows you to perform aggregations operations on a Account.
  8381. * Note, that providing `undefined` is treated as the value not being there.
  8382. * Read more here: https://pris.ly/d/null-undefined
  8383. * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  8384. * @example
  8385. * // Ordered by age ascending
  8386. * // Where email contains prisma.io
  8387. * // Limited to the 10 users
  8388. * const aggregations = await prisma.user.aggregate({
  8389. * _avg: {
  8390. * age: true,
  8391. * },
  8392. * where: {
  8393. * email: {
  8394. * contains: "prisma.io",
  8395. * },
  8396. * },
  8397. * orderBy: {
  8398. * age: "asc",
  8399. * },
  8400. * take: 10,
  8401. * })
  8402. **/
  8403. aggregate<T extends AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
  8404. /**
  8405. * Group by Account.
  8406. * Note, that providing `undefined` is treated as the value not being there.
  8407. * Read more here: https://pris.ly/d/null-undefined
  8408. * @param {AccountGroupByArgs} args - Group by arguments.
  8409. * @example
  8410. * // Group by city, order by createdAt, get count
  8411. * const result = await prisma.user.groupBy({
  8412. * by: ['city', 'createdAt'],
  8413. * orderBy: {
  8414. * createdAt: true
  8415. * },
  8416. * _count: {
  8417. * _all: true
  8418. * },
  8419. * })
  8420. *
  8421. **/
  8422. groupBy<
  8423. T extends AccountGroupByArgs,
  8424. HasSelectOrTake extends Or<
  8425. Extends<'skip', Keys<T>>,
  8426. Extends<'take', Keys<T>>
  8427. >,
  8428. OrderByArg extends True extends HasSelectOrTake
  8429. ? { orderBy: AccountGroupByArgs['orderBy'] }
  8430. : { orderBy?: AccountGroupByArgs['orderBy'] },
  8431. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  8432. ByFields extends MaybeTupleToUnion<T['by']>,
  8433. ByValid extends Has<ByFields, OrderFields>,
  8434. HavingFields extends GetHavingFields<T['having']>,
  8435. HavingValid extends Has<ByFields, HavingFields>,
  8436. ByEmpty extends T['by'] extends never[] ? True : False,
  8437. InputErrors extends ByEmpty extends True
  8438. ? `Error: "by" must not be empty.`
  8439. : HavingValid extends False
  8440. ? {
  8441. [P in HavingFields]: P extends ByFields
  8442. ? never
  8443. : P extends string
  8444. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  8445. : [
  8446. Error,
  8447. 'Field ',
  8448. P,
  8449. ` in "having" needs to be provided in "by"`,
  8450. ]
  8451. }[HavingFields]
  8452. : 'take' extends Keys<T>
  8453. ? 'orderBy' extends Keys<T>
  8454. ? ByValid extends True
  8455. ? {}
  8456. : {
  8457. [P in OrderFields]: P extends ByFields
  8458. ? never
  8459. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8460. }[OrderFields]
  8461. : 'Error: If you provide "take", you also need to provide "orderBy"'
  8462. : 'skip' extends Keys<T>
  8463. ? 'orderBy' extends Keys<T>
  8464. ? ByValid extends True
  8465. ? {}
  8466. : {
  8467. [P in OrderFields]: P extends ByFields
  8468. ? never
  8469. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8470. }[OrderFields]
  8471. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  8472. : ByValid extends True
  8473. ? {}
  8474. : {
  8475. [P in OrderFields]: P extends ByFields
  8476. ? never
  8477. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8478. }[OrderFields]
  8479. >(args: SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  8480. /**
  8481. * Fields of the Account model
  8482. */
  8483. readonly fields: AccountFieldRefs;
  8484. }
  8485. /**
  8486. * The delegate class that acts as a "Promise-like" for Account.
  8487. * Why is this prefixed with `Prisma__`?
  8488. * Because we want to prevent naming conflicts as mentioned in
  8489. * https://github.com/prisma/prisma-client-js/issues/707
  8490. */
  8491. export interface Prisma__AccountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  8492. readonly [Symbol.toStringTag]: "PrismaPromise"
  8493. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  8494. /**
  8495. * Attaches callbacks for the resolution and/or rejection of the Promise.
  8496. * @param onfulfilled The callback to execute when the Promise is resolved.
  8497. * @param onrejected The callback to execute when the Promise is rejected.
  8498. * @returns A Promise for the completion of which ever callback is executed.
  8499. */
  8500. 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>
  8501. /**
  8502. * Attaches a callback for only the rejection of the Promise.
  8503. * @param onrejected The callback to execute when the Promise is rejected.
  8504. * @returns A Promise for the completion of the callback.
  8505. */
  8506. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  8507. /**
  8508. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  8509. * resolved value cannot be modified from the callback.
  8510. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  8511. * @returns A Promise for the completion of the callback.
  8512. */
  8513. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  8514. }
  8515. /**
  8516. * Fields of the Account model
  8517. */
  8518. interface AccountFieldRefs {
  8519. readonly id: FieldRef<"Account", 'String'>
  8520. readonly userId: FieldRef<"Account", 'String'>
  8521. readonly type: FieldRef<"Account", 'String'>
  8522. readonly provider: FieldRef<"Account", 'String'>
  8523. readonly providerAccountId: FieldRef<"Account", 'String'>
  8524. readonly refresh_token: FieldRef<"Account", 'String'>
  8525. readonly access_token: FieldRef<"Account", 'String'>
  8526. readonly expires_at: FieldRef<"Account", 'Int'>
  8527. readonly token_type: FieldRef<"Account", 'String'>
  8528. readonly scope: FieldRef<"Account", 'String'>
  8529. readonly id_token: FieldRef<"Account", 'String'>
  8530. readonly session_state: FieldRef<"Account", 'String'>
  8531. readonly refresh_token_expires_in: FieldRef<"Account", 'Int'>
  8532. }
  8533. // Custom InputTypes
  8534. /**
  8535. * Account findUnique
  8536. */
  8537. export type AccountFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8538. /**
  8539. * Select specific fields to fetch from the Account
  8540. */
  8541. select?: AccountSelect<ExtArgs> | null
  8542. /**
  8543. * Omit specific fields from the Account
  8544. */
  8545. omit?: AccountOmit<ExtArgs> | null
  8546. /**
  8547. * Choose, which related nodes to fetch as well
  8548. */
  8549. include?: AccountInclude<ExtArgs> | null
  8550. /**
  8551. * Filter, which Account to fetch.
  8552. */
  8553. where: AccountWhereUniqueInput
  8554. }
  8555. /**
  8556. * Account findUniqueOrThrow
  8557. */
  8558. export type AccountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8559. /**
  8560. * Select specific fields to fetch from the Account
  8561. */
  8562. select?: AccountSelect<ExtArgs> | null
  8563. /**
  8564. * Omit specific fields from the Account
  8565. */
  8566. omit?: AccountOmit<ExtArgs> | null
  8567. /**
  8568. * Choose, which related nodes to fetch as well
  8569. */
  8570. include?: AccountInclude<ExtArgs> | null
  8571. /**
  8572. * Filter, which Account to fetch.
  8573. */
  8574. where: AccountWhereUniqueInput
  8575. }
  8576. /**
  8577. * Account findFirst
  8578. */
  8579. export type AccountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8580. /**
  8581. * Select specific fields to fetch from the Account
  8582. */
  8583. select?: AccountSelect<ExtArgs> | null
  8584. /**
  8585. * Omit specific fields from the Account
  8586. */
  8587. omit?: AccountOmit<ExtArgs> | null
  8588. /**
  8589. * Choose, which related nodes to fetch as well
  8590. */
  8591. include?: AccountInclude<ExtArgs> | null
  8592. /**
  8593. * Filter, which Account to fetch.
  8594. */
  8595. where?: AccountWhereInput
  8596. /**
  8597. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8598. *
  8599. * Determine the order of Accounts to fetch.
  8600. */
  8601. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8602. /**
  8603. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8604. *
  8605. * Sets the position for searching for Accounts.
  8606. */
  8607. cursor?: AccountWhereUniqueInput
  8608. /**
  8609. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8610. *
  8611. * Take `±n` Accounts from the position of the cursor.
  8612. */
  8613. take?: number
  8614. /**
  8615. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8616. *
  8617. * Skip the first `n` Accounts.
  8618. */
  8619. skip?: number
  8620. /**
  8621. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8622. *
  8623. * Filter by unique combinations of Accounts.
  8624. */
  8625. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8626. }
  8627. /**
  8628. * Account findFirstOrThrow
  8629. */
  8630. export type AccountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8631. /**
  8632. * Select specific fields to fetch from the Account
  8633. */
  8634. select?: AccountSelect<ExtArgs> | null
  8635. /**
  8636. * Omit specific fields from the Account
  8637. */
  8638. omit?: AccountOmit<ExtArgs> | null
  8639. /**
  8640. * Choose, which related nodes to fetch as well
  8641. */
  8642. include?: AccountInclude<ExtArgs> | null
  8643. /**
  8644. * Filter, which Account to fetch.
  8645. */
  8646. where?: AccountWhereInput
  8647. /**
  8648. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8649. *
  8650. * Determine the order of Accounts to fetch.
  8651. */
  8652. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8653. /**
  8654. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8655. *
  8656. * Sets the position for searching for Accounts.
  8657. */
  8658. cursor?: AccountWhereUniqueInput
  8659. /**
  8660. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8661. *
  8662. * Take `±n` Accounts from the position of the cursor.
  8663. */
  8664. take?: number
  8665. /**
  8666. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8667. *
  8668. * Skip the first `n` Accounts.
  8669. */
  8670. skip?: number
  8671. /**
  8672. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8673. *
  8674. * Filter by unique combinations of Accounts.
  8675. */
  8676. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8677. }
  8678. /**
  8679. * Account findMany
  8680. */
  8681. export type AccountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8682. /**
  8683. * Select specific fields to fetch from the Account
  8684. */
  8685. select?: AccountSelect<ExtArgs> | null
  8686. /**
  8687. * Omit specific fields from the Account
  8688. */
  8689. omit?: AccountOmit<ExtArgs> | null
  8690. /**
  8691. * Choose, which related nodes to fetch as well
  8692. */
  8693. include?: AccountInclude<ExtArgs> | null
  8694. /**
  8695. * Filter, which Accounts to fetch.
  8696. */
  8697. where?: AccountWhereInput
  8698. /**
  8699. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8700. *
  8701. * Determine the order of Accounts to fetch.
  8702. */
  8703. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8704. /**
  8705. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8706. *
  8707. * Sets the position for listing Accounts.
  8708. */
  8709. cursor?: AccountWhereUniqueInput
  8710. /**
  8711. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8712. *
  8713. * Take `±n` Accounts from the position of the cursor.
  8714. */
  8715. take?: number
  8716. /**
  8717. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8718. *
  8719. * Skip the first `n` Accounts.
  8720. */
  8721. skip?: number
  8722. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8723. }
  8724. /**
  8725. * Account create
  8726. */
  8727. export type AccountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8728. /**
  8729. * Select specific fields to fetch from the Account
  8730. */
  8731. select?: AccountSelect<ExtArgs> | null
  8732. /**
  8733. * Omit specific fields from the Account
  8734. */
  8735. omit?: AccountOmit<ExtArgs> | null
  8736. /**
  8737. * Choose, which related nodes to fetch as well
  8738. */
  8739. include?: AccountInclude<ExtArgs> | null
  8740. /**
  8741. * The data needed to create a Account.
  8742. */
  8743. data: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  8744. }
  8745. /**
  8746. * Account createMany
  8747. */
  8748. export type AccountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8749. /**
  8750. * The data used to create many Accounts.
  8751. */
  8752. data: AccountCreateManyInput | AccountCreateManyInput[]
  8753. skipDuplicates?: boolean
  8754. }
  8755. /**
  8756. * Account createManyAndReturn
  8757. */
  8758. export type AccountCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8759. /**
  8760. * Select specific fields to fetch from the Account
  8761. */
  8762. select?: AccountSelectCreateManyAndReturn<ExtArgs> | null
  8763. /**
  8764. * Omit specific fields from the Account
  8765. */
  8766. omit?: AccountOmit<ExtArgs> | null
  8767. /**
  8768. * The data used to create many Accounts.
  8769. */
  8770. data: AccountCreateManyInput | AccountCreateManyInput[]
  8771. skipDuplicates?: boolean
  8772. /**
  8773. * Choose, which related nodes to fetch as well
  8774. */
  8775. include?: AccountIncludeCreateManyAndReturn<ExtArgs> | null
  8776. }
  8777. /**
  8778. * Account update
  8779. */
  8780. export type AccountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8781. /**
  8782. * Select specific fields to fetch from the Account
  8783. */
  8784. select?: AccountSelect<ExtArgs> | null
  8785. /**
  8786. * Omit specific fields from the Account
  8787. */
  8788. omit?: AccountOmit<ExtArgs> | null
  8789. /**
  8790. * Choose, which related nodes to fetch as well
  8791. */
  8792. include?: AccountInclude<ExtArgs> | null
  8793. /**
  8794. * The data needed to update a Account.
  8795. */
  8796. data: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  8797. /**
  8798. * Choose, which Account to update.
  8799. */
  8800. where: AccountWhereUniqueInput
  8801. }
  8802. /**
  8803. * Account updateMany
  8804. */
  8805. export type AccountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8806. /**
  8807. * The data used to update Accounts.
  8808. */
  8809. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  8810. /**
  8811. * Filter which Accounts to update
  8812. */
  8813. where?: AccountWhereInput
  8814. /**
  8815. * Limit how many Accounts to update.
  8816. */
  8817. limit?: number
  8818. }
  8819. /**
  8820. * Account updateManyAndReturn
  8821. */
  8822. export type AccountUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8823. /**
  8824. * Select specific fields to fetch from the Account
  8825. */
  8826. select?: AccountSelectUpdateManyAndReturn<ExtArgs> | null
  8827. /**
  8828. * Omit specific fields from the Account
  8829. */
  8830. omit?: AccountOmit<ExtArgs> | null
  8831. /**
  8832. * The data used to update Accounts.
  8833. */
  8834. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  8835. /**
  8836. * Filter which Accounts to update
  8837. */
  8838. where?: AccountWhereInput
  8839. /**
  8840. * Limit how many Accounts to update.
  8841. */
  8842. limit?: number
  8843. /**
  8844. * Choose, which related nodes to fetch as well
  8845. */
  8846. include?: AccountIncludeUpdateManyAndReturn<ExtArgs> | null
  8847. }
  8848. /**
  8849. * Account upsert
  8850. */
  8851. export type AccountUpsertArgs<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 filter to search for the Account to update in case it exists.
  8866. */
  8867. where: AccountWhereUniqueInput
  8868. /**
  8869. * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
  8870. */
  8871. create: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  8872. /**
  8873. * In case the Account was found with the provided `where` argument, update it with this data.
  8874. */
  8875. update: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  8876. }
  8877. /**
  8878. * Account delete
  8879. */
  8880. export type AccountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8881. /**
  8882. * Select specific fields to fetch from the Account
  8883. */
  8884. select?: AccountSelect<ExtArgs> | null
  8885. /**
  8886. * Omit specific fields from the Account
  8887. */
  8888. omit?: AccountOmit<ExtArgs> | null
  8889. /**
  8890. * Choose, which related nodes to fetch as well
  8891. */
  8892. include?: AccountInclude<ExtArgs> | null
  8893. /**
  8894. * Filter which Account to delete.
  8895. */
  8896. where: AccountWhereUniqueInput
  8897. }
  8898. /**
  8899. * Account deleteMany
  8900. */
  8901. export type AccountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8902. /**
  8903. * Filter which Accounts to delete
  8904. */
  8905. where?: AccountWhereInput
  8906. /**
  8907. * Limit how many Accounts to delete.
  8908. */
  8909. limit?: number
  8910. }
  8911. /**
  8912. * Account without action
  8913. */
  8914. export type AccountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8915. /**
  8916. * Select specific fields to fetch from the Account
  8917. */
  8918. select?: AccountSelect<ExtArgs> | null
  8919. /**
  8920. * Omit specific fields from the Account
  8921. */
  8922. omit?: AccountOmit<ExtArgs> | null
  8923. /**
  8924. * Choose, which related nodes to fetch as well
  8925. */
  8926. include?: AccountInclude<ExtArgs> | null
  8927. }
  8928. /**
  8929. * Model Session
  8930. */
  8931. export type AggregateSession = {
  8932. _count: SessionCountAggregateOutputType | null
  8933. _min: SessionMinAggregateOutputType | null
  8934. _max: SessionMaxAggregateOutputType | null
  8935. }
  8936. export type SessionMinAggregateOutputType = {
  8937. id: string | null
  8938. sessionToken: string | null
  8939. userId: string | null
  8940. expires: Date | null
  8941. }
  8942. export type SessionMaxAggregateOutputType = {
  8943. id: string | null
  8944. sessionToken: string | null
  8945. userId: string | null
  8946. expires: Date | null
  8947. }
  8948. export type SessionCountAggregateOutputType = {
  8949. id: number
  8950. sessionToken: number
  8951. userId: number
  8952. expires: number
  8953. _all: number
  8954. }
  8955. export type SessionMinAggregateInputType = {
  8956. id?: true
  8957. sessionToken?: true
  8958. userId?: true
  8959. expires?: true
  8960. }
  8961. export type SessionMaxAggregateInputType = {
  8962. id?: true
  8963. sessionToken?: true
  8964. userId?: true
  8965. expires?: true
  8966. }
  8967. export type SessionCountAggregateInputType = {
  8968. id?: true
  8969. sessionToken?: true
  8970. userId?: true
  8971. expires?: true
  8972. _all?: true
  8973. }
  8974. export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8975. /**
  8976. * Filter which Session to aggregate.
  8977. */
  8978. where?: SessionWhereInput
  8979. /**
  8980. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8981. *
  8982. * Determine the order of Sessions to fetch.
  8983. */
  8984. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  8985. /**
  8986. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8987. *
  8988. * Sets the start position
  8989. */
  8990. cursor?: SessionWhereUniqueInput
  8991. /**
  8992. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8993. *
  8994. * Take `±n` Sessions from the position of the cursor.
  8995. */
  8996. take?: number
  8997. /**
  8998. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8999. *
  9000. * Skip the first `n` Sessions.
  9001. */
  9002. skip?: number
  9003. /**
  9004. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9005. *
  9006. * Count returned Sessions
  9007. **/
  9008. _count?: true | SessionCountAggregateInputType
  9009. /**
  9010. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9011. *
  9012. * Select which fields to find the minimum value
  9013. **/
  9014. _min?: SessionMinAggregateInputType
  9015. /**
  9016. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9017. *
  9018. * Select which fields to find the maximum value
  9019. **/
  9020. _max?: SessionMaxAggregateInputType
  9021. }
  9022. export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
  9023. [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
  9024. ? T[P] extends true
  9025. ? number
  9026. : GetScalarType<T[P], AggregateSession[P]>
  9027. : GetScalarType<T[P], AggregateSession[P]>
  9028. }
  9029. export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9030. where?: SessionWhereInput
  9031. orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
  9032. by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
  9033. having?: SessionScalarWhereWithAggregatesInput
  9034. take?: number
  9035. skip?: number
  9036. _count?: SessionCountAggregateInputType | true
  9037. _min?: SessionMinAggregateInputType
  9038. _max?: SessionMaxAggregateInputType
  9039. }
  9040. export type SessionGroupByOutputType = {
  9041. id: string
  9042. sessionToken: string
  9043. userId: string
  9044. expires: Date
  9045. _count: SessionCountAggregateOutputType | null
  9046. _min: SessionMinAggregateOutputType | null
  9047. _max: SessionMaxAggregateOutputType | null
  9048. }
  9049. type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
  9050. Array<
  9051. PickEnumerable<SessionGroupByOutputType, T['by']> &
  9052. {
  9053. [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
  9054. ? T[P] extends boolean
  9055. ? number
  9056. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9057. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9058. }
  9059. >
  9060. >
  9061. export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9062. id?: boolean
  9063. sessionToken?: boolean
  9064. userId?: boolean
  9065. expires?: boolean
  9066. user?: boolean | UserDefaultArgs<ExtArgs>
  9067. }, ExtArgs["result"]["session"]>
  9068. export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9069. id?: boolean
  9070. sessionToken?: boolean
  9071. userId?: boolean
  9072. expires?: boolean
  9073. user?: boolean | UserDefaultArgs<ExtArgs>
  9074. }, ExtArgs["result"]["session"]>
  9075. export type SessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9076. id?: boolean
  9077. sessionToken?: boolean
  9078. userId?: boolean
  9079. expires?: boolean
  9080. user?: boolean | UserDefaultArgs<ExtArgs>
  9081. }, ExtArgs["result"]["session"]>
  9082. export type SessionSelectScalar = {
  9083. id?: boolean
  9084. sessionToken?: boolean
  9085. userId?: boolean
  9086. expires?: boolean
  9087. }
  9088. export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]>
  9089. export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9090. user?: boolean | UserDefaultArgs<ExtArgs>
  9091. }
  9092. export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9093. user?: boolean | UserDefaultArgs<ExtArgs>
  9094. }
  9095. export type SessionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9096. user?: boolean | UserDefaultArgs<ExtArgs>
  9097. }
  9098. export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9099. name: "Session"
  9100. objects: {
  9101. user: Prisma.$UserPayload<ExtArgs>
  9102. }
  9103. scalars: $Extensions.GetPayloadResult<{
  9104. id: string
  9105. sessionToken: string
  9106. userId: string
  9107. expires: Date
  9108. }, ExtArgs["result"]["session"]>
  9109. composites: {}
  9110. }
  9111. type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
  9112. type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  9113. Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  9114. select?: SessionCountAggregateInputType | true
  9115. }
  9116. export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  9117. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
  9118. /**
  9119. * Find zero or one Session that matches the filter.
  9120. * @param {SessionFindUniqueArgs} args - Arguments to find a Session
  9121. * @example
  9122. * // Get one Session
  9123. * const session = await prisma.session.findUnique({
  9124. * where: {
  9125. * // ... provide filter here
  9126. * }
  9127. * })
  9128. */
  9129. findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9130. /**
  9131. * Find one Session that matches the filter or throw an error with `error.code='P2025'`
  9132. * if no matches were found.
  9133. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
  9134. * @example
  9135. * // Get one Session
  9136. * const session = await prisma.session.findUniqueOrThrow({
  9137. * where: {
  9138. * // ... provide filter here
  9139. * }
  9140. * })
  9141. */
  9142. findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9143. /**
  9144. * Find the first Session that matches the filter.
  9145. * Note, that providing `undefined` is treated as the value not being there.
  9146. * Read more here: https://pris.ly/d/null-undefined
  9147. * @param {SessionFindFirstArgs} args - Arguments to find a Session
  9148. * @example
  9149. * // Get one Session
  9150. * const session = await prisma.session.findFirst({
  9151. * where: {
  9152. * // ... provide filter here
  9153. * }
  9154. * })
  9155. */
  9156. findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9157. /**
  9158. * Find the first Session that matches the filter or
  9159. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  9160. * Note, that providing `undefined` is treated as the value not being there.
  9161. * Read more here: https://pris.ly/d/null-undefined
  9162. * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
  9163. * @example
  9164. * // Get one Session
  9165. * const session = await prisma.session.findFirstOrThrow({
  9166. * where: {
  9167. * // ... provide filter here
  9168. * }
  9169. * })
  9170. */
  9171. findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9172. /**
  9173. * Find zero or more Sessions that matches the filter.
  9174. * Note, that providing `undefined` is treated as the value not being there.
  9175. * Read more here: https://pris.ly/d/null-undefined
  9176. * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
  9177. * @example
  9178. * // Get all Sessions
  9179. * const sessions = await prisma.session.findMany()
  9180. *
  9181. * // Get first 10 Sessions
  9182. * const sessions = await prisma.session.findMany({ take: 10 })
  9183. *
  9184. * // Only select the `id`
  9185. * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
  9186. *
  9187. */
  9188. findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  9189. /**
  9190. * Create a Session.
  9191. * @param {SessionCreateArgs} args - Arguments to create a Session.
  9192. * @example
  9193. * // Create one Session
  9194. * const Session = await prisma.session.create({
  9195. * data: {
  9196. * // ... data to create a Session
  9197. * }
  9198. * })
  9199. *
  9200. */
  9201. create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9202. /**
  9203. * Create many Sessions.
  9204. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
  9205. * @example
  9206. * // Create many Sessions
  9207. * const session = await prisma.session.createMany({
  9208. * data: [
  9209. * // ... provide data here
  9210. * ]
  9211. * })
  9212. *
  9213. */
  9214. createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9215. /**
  9216. * Create many Sessions and returns the data saved in the database.
  9217. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
  9218. * @example
  9219. * // Create many Sessions
  9220. * const session = await prisma.session.createManyAndReturn({
  9221. * data: [
  9222. * // ... provide data here
  9223. * ]
  9224. * })
  9225. *
  9226. * // Create many Sessions and only return the `id`
  9227. * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
  9228. * select: { id: true },
  9229. * data: [
  9230. * // ... provide data here
  9231. * ]
  9232. * })
  9233. * Note, that providing `undefined` is treated as the value not being there.
  9234. * Read more here: https://pris.ly/d/null-undefined
  9235. *
  9236. */
  9237. createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  9238. /**
  9239. * Delete a Session.
  9240. * @param {SessionDeleteArgs} args - Arguments to delete one Session.
  9241. * @example
  9242. * // Delete one Session
  9243. * const Session = await prisma.session.delete({
  9244. * where: {
  9245. * // ... filter to delete one Session
  9246. * }
  9247. * })
  9248. *
  9249. */
  9250. delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9251. /**
  9252. * Update one Session.
  9253. * @param {SessionUpdateArgs} args - Arguments to update one Session.
  9254. * @example
  9255. * // Update one Session
  9256. * const session = await prisma.session.update({
  9257. * where: {
  9258. * // ... provide filter here
  9259. * },
  9260. * data: {
  9261. * // ... provide data here
  9262. * }
  9263. * })
  9264. *
  9265. */
  9266. update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9267. /**
  9268. * Delete zero or more Sessions.
  9269. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
  9270. * @example
  9271. * // Delete a few Sessions
  9272. * const { count } = await prisma.session.deleteMany({
  9273. * where: {
  9274. * // ... provide filter here
  9275. * }
  9276. * })
  9277. *
  9278. */
  9279. deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9280. /**
  9281. * Update zero or more Sessions.
  9282. * Note, that providing `undefined` is treated as the value not being there.
  9283. * Read more here: https://pris.ly/d/null-undefined
  9284. * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
  9285. * @example
  9286. * // Update many Sessions
  9287. * const session = await prisma.session.updateMany({
  9288. * where: {
  9289. * // ... provide filter here
  9290. * },
  9291. * data: {
  9292. * // ... provide data here
  9293. * }
  9294. * })
  9295. *
  9296. */
  9297. updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9298. /**
  9299. * Update zero or more Sessions and returns the data updated in the database.
  9300. * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
  9301. * @example
  9302. * // Update many Sessions
  9303. * const session = await prisma.session.updateManyAndReturn({
  9304. * where: {
  9305. * // ... provide filter here
  9306. * },
  9307. * data: [
  9308. * // ... provide data here
  9309. * ]
  9310. * })
  9311. *
  9312. * // Update zero or more Sessions and only return the `id`
  9313. * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
  9314. * select: { id: true },
  9315. * where: {
  9316. * // ... provide filter here
  9317. * },
  9318. * data: [
  9319. * // ... provide data here
  9320. * ]
  9321. * })
  9322. * Note, that providing `undefined` is treated as the value not being there.
  9323. * Read more here: https://pris.ly/d/null-undefined
  9324. *
  9325. */
  9326. updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  9327. /**
  9328. * Create or update one Session.
  9329. * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
  9330. * @example
  9331. * // Update or create a Session
  9332. * const session = await prisma.session.upsert({
  9333. * create: {
  9334. * // ... data to create a Session
  9335. * },
  9336. * update: {
  9337. * // ... in case it already exists, update
  9338. * },
  9339. * where: {
  9340. * // ... the filter for the Session we want to update
  9341. * }
  9342. * })
  9343. */
  9344. upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9345. /**
  9346. * Count the number of Sessions.
  9347. * Note, that providing `undefined` is treated as the value not being there.
  9348. * Read more here: https://pris.ly/d/null-undefined
  9349. * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
  9350. * @example
  9351. * // Count the number of Sessions
  9352. * const count = await prisma.session.count({
  9353. * where: {
  9354. * // ... the filter for the Sessions we want to count
  9355. * }
  9356. * })
  9357. **/
  9358. count<T extends SessionCountArgs>(
  9359. args?: Subset<T, SessionCountArgs>,
  9360. ): Prisma.PrismaPromise<
  9361. T extends $Utils.Record<'select', any>
  9362. ? T['select'] extends true
  9363. ? number
  9364. : GetScalarType<T['select'], SessionCountAggregateOutputType>
  9365. : number
  9366. >
  9367. /**
  9368. * Allows you to perform aggregations operations on a Session.
  9369. * Note, that providing `undefined` is treated as the value not being there.
  9370. * Read more here: https://pris.ly/d/null-undefined
  9371. * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  9372. * @example
  9373. * // Ordered by age ascending
  9374. * // Where email contains prisma.io
  9375. * // Limited to the 10 users
  9376. * const aggregations = await prisma.user.aggregate({
  9377. * _avg: {
  9378. * age: true,
  9379. * },
  9380. * where: {
  9381. * email: {
  9382. * contains: "prisma.io",
  9383. * },
  9384. * },
  9385. * orderBy: {
  9386. * age: "asc",
  9387. * },
  9388. * take: 10,
  9389. * })
  9390. **/
  9391. aggregate<T extends SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
  9392. /**
  9393. * Group by Session.
  9394. * Note, that providing `undefined` is treated as the value not being there.
  9395. * Read more here: https://pris.ly/d/null-undefined
  9396. * @param {SessionGroupByArgs} args - Group by arguments.
  9397. * @example
  9398. * // Group by city, order by createdAt, get count
  9399. * const result = await prisma.user.groupBy({
  9400. * by: ['city', 'createdAt'],
  9401. * orderBy: {
  9402. * createdAt: true
  9403. * },
  9404. * _count: {
  9405. * _all: true
  9406. * },
  9407. * })
  9408. *
  9409. **/
  9410. groupBy<
  9411. T extends SessionGroupByArgs,
  9412. HasSelectOrTake extends Or<
  9413. Extends<'skip', Keys<T>>,
  9414. Extends<'take', Keys<T>>
  9415. >,
  9416. OrderByArg extends True extends HasSelectOrTake
  9417. ? { orderBy: SessionGroupByArgs['orderBy'] }
  9418. : { orderBy?: SessionGroupByArgs['orderBy'] },
  9419. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  9420. ByFields extends MaybeTupleToUnion<T['by']>,
  9421. ByValid extends Has<ByFields, OrderFields>,
  9422. HavingFields extends GetHavingFields<T['having']>,
  9423. HavingValid extends Has<ByFields, HavingFields>,
  9424. ByEmpty extends T['by'] extends never[] ? True : False,
  9425. InputErrors extends ByEmpty extends True
  9426. ? `Error: "by" must not be empty.`
  9427. : HavingValid extends False
  9428. ? {
  9429. [P in HavingFields]: P extends ByFields
  9430. ? never
  9431. : P extends string
  9432. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  9433. : [
  9434. Error,
  9435. 'Field ',
  9436. P,
  9437. ` in "having" needs to be provided in "by"`,
  9438. ]
  9439. }[HavingFields]
  9440. : 'take' extends Keys<T>
  9441. ? 'orderBy' extends Keys<T>
  9442. ? ByValid extends True
  9443. ? {}
  9444. : {
  9445. [P in OrderFields]: P extends ByFields
  9446. ? never
  9447. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9448. }[OrderFields]
  9449. : 'Error: If you provide "take", you also need to provide "orderBy"'
  9450. : 'skip' extends Keys<T>
  9451. ? 'orderBy' extends Keys<T>
  9452. ? ByValid extends True
  9453. ? {}
  9454. : {
  9455. [P in OrderFields]: P extends ByFields
  9456. ? never
  9457. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9458. }[OrderFields]
  9459. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  9460. : ByValid extends True
  9461. ? {}
  9462. : {
  9463. [P in OrderFields]: P extends ByFields
  9464. ? never
  9465. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9466. }[OrderFields]
  9467. >(args: SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  9468. /**
  9469. * Fields of the Session model
  9470. */
  9471. readonly fields: SessionFieldRefs;
  9472. }
  9473. /**
  9474. * The delegate class that acts as a "Promise-like" for Session.
  9475. * Why is this prefixed with `Prisma__`?
  9476. * Because we want to prevent naming conflicts as mentioned in
  9477. * https://github.com/prisma/prisma-client-js/issues/707
  9478. */
  9479. export interface Prisma__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  9480. readonly [Symbol.toStringTag]: "PrismaPromise"
  9481. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  9482. /**
  9483. * Attaches callbacks for the resolution and/or rejection of the Promise.
  9484. * @param onfulfilled The callback to execute when the Promise is resolved.
  9485. * @param onrejected The callback to execute when the Promise is rejected.
  9486. * @returns A Promise for the completion of which ever callback is executed.
  9487. */
  9488. 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>
  9489. /**
  9490. * Attaches a callback for only the rejection of the Promise.
  9491. * @param onrejected The callback to execute when the Promise is rejected.
  9492. * @returns A Promise for the completion of the callback.
  9493. */
  9494. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  9495. /**
  9496. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  9497. * resolved value cannot be modified from the callback.
  9498. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  9499. * @returns A Promise for the completion of the callback.
  9500. */
  9501. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  9502. }
  9503. /**
  9504. * Fields of the Session model
  9505. */
  9506. interface SessionFieldRefs {
  9507. readonly id: FieldRef<"Session", 'String'>
  9508. readonly sessionToken: FieldRef<"Session", 'String'>
  9509. readonly userId: FieldRef<"Session", 'String'>
  9510. readonly expires: FieldRef<"Session", 'DateTime'>
  9511. }
  9512. // Custom InputTypes
  9513. /**
  9514. * Session findUnique
  9515. */
  9516. export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9517. /**
  9518. * Select specific fields to fetch from the Session
  9519. */
  9520. select?: SessionSelect<ExtArgs> | null
  9521. /**
  9522. * Omit specific fields from the Session
  9523. */
  9524. omit?: SessionOmit<ExtArgs> | null
  9525. /**
  9526. * Choose, which related nodes to fetch as well
  9527. */
  9528. include?: SessionInclude<ExtArgs> | null
  9529. /**
  9530. * Filter, which Session to fetch.
  9531. */
  9532. where: SessionWhereUniqueInput
  9533. }
  9534. /**
  9535. * Session findUniqueOrThrow
  9536. */
  9537. export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9538. /**
  9539. * Select specific fields to fetch from the Session
  9540. */
  9541. select?: SessionSelect<ExtArgs> | null
  9542. /**
  9543. * Omit specific fields from the Session
  9544. */
  9545. omit?: SessionOmit<ExtArgs> | null
  9546. /**
  9547. * Choose, which related nodes to fetch as well
  9548. */
  9549. include?: SessionInclude<ExtArgs> | null
  9550. /**
  9551. * Filter, which Session to fetch.
  9552. */
  9553. where: SessionWhereUniqueInput
  9554. }
  9555. /**
  9556. * Session findFirst
  9557. */
  9558. export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9559. /**
  9560. * Select specific fields to fetch from the Session
  9561. */
  9562. select?: SessionSelect<ExtArgs> | null
  9563. /**
  9564. * Omit specific fields from the Session
  9565. */
  9566. omit?: SessionOmit<ExtArgs> | null
  9567. /**
  9568. * Choose, which related nodes to fetch as well
  9569. */
  9570. include?: SessionInclude<ExtArgs> | null
  9571. /**
  9572. * Filter, which Session to fetch.
  9573. */
  9574. where?: SessionWhereInput
  9575. /**
  9576. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9577. *
  9578. * Determine the order of Sessions to fetch.
  9579. */
  9580. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9581. /**
  9582. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9583. *
  9584. * Sets the position for searching for Sessions.
  9585. */
  9586. cursor?: SessionWhereUniqueInput
  9587. /**
  9588. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9589. *
  9590. * Take `±n` Sessions from the position of the cursor.
  9591. */
  9592. take?: number
  9593. /**
  9594. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9595. *
  9596. * Skip the first `n` Sessions.
  9597. */
  9598. skip?: number
  9599. /**
  9600. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9601. *
  9602. * Filter by unique combinations of Sessions.
  9603. */
  9604. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9605. }
  9606. /**
  9607. * Session findFirstOrThrow
  9608. */
  9609. export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9610. /**
  9611. * Select specific fields to fetch from the Session
  9612. */
  9613. select?: SessionSelect<ExtArgs> | null
  9614. /**
  9615. * Omit specific fields from the Session
  9616. */
  9617. omit?: SessionOmit<ExtArgs> | null
  9618. /**
  9619. * Choose, which related nodes to fetch as well
  9620. */
  9621. include?: SessionInclude<ExtArgs> | null
  9622. /**
  9623. * Filter, which Session to fetch.
  9624. */
  9625. where?: SessionWhereInput
  9626. /**
  9627. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9628. *
  9629. * Determine the order of Sessions to fetch.
  9630. */
  9631. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9632. /**
  9633. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9634. *
  9635. * Sets the position for searching for Sessions.
  9636. */
  9637. cursor?: SessionWhereUniqueInput
  9638. /**
  9639. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9640. *
  9641. * Take `±n` Sessions from the position of the cursor.
  9642. */
  9643. take?: number
  9644. /**
  9645. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9646. *
  9647. * Skip the first `n` Sessions.
  9648. */
  9649. skip?: number
  9650. /**
  9651. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9652. *
  9653. * Filter by unique combinations of Sessions.
  9654. */
  9655. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9656. }
  9657. /**
  9658. * Session findMany
  9659. */
  9660. export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9661. /**
  9662. * Select specific fields to fetch from the Session
  9663. */
  9664. select?: SessionSelect<ExtArgs> | null
  9665. /**
  9666. * Omit specific fields from the Session
  9667. */
  9668. omit?: SessionOmit<ExtArgs> | null
  9669. /**
  9670. * Choose, which related nodes to fetch as well
  9671. */
  9672. include?: SessionInclude<ExtArgs> | null
  9673. /**
  9674. * Filter, which Sessions to fetch.
  9675. */
  9676. where?: SessionWhereInput
  9677. /**
  9678. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9679. *
  9680. * Determine the order of Sessions to fetch.
  9681. */
  9682. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9683. /**
  9684. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9685. *
  9686. * Sets the position for listing Sessions.
  9687. */
  9688. cursor?: SessionWhereUniqueInput
  9689. /**
  9690. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9691. *
  9692. * Take `±n` Sessions from the position of the cursor.
  9693. */
  9694. take?: number
  9695. /**
  9696. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9697. *
  9698. * Skip the first `n` Sessions.
  9699. */
  9700. skip?: number
  9701. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9702. }
  9703. /**
  9704. * Session create
  9705. */
  9706. export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9707. /**
  9708. * Select specific fields to fetch from the Session
  9709. */
  9710. select?: SessionSelect<ExtArgs> | null
  9711. /**
  9712. * Omit specific fields from the Session
  9713. */
  9714. omit?: SessionOmit<ExtArgs> | null
  9715. /**
  9716. * Choose, which related nodes to fetch as well
  9717. */
  9718. include?: SessionInclude<ExtArgs> | null
  9719. /**
  9720. * The data needed to create a Session.
  9721. */
  9722. data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  9723. }
  9724. /**
  9725. * Session createMany
  9726. */
  9727. export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9728. /**
  9729. * The data used to create many Sessions.
  9730. */
  9731. data: SessionCreateManyInput | SessionCreateManyInput[]
  9732. skipDuplicates?: boolean
  9733. }
  9734. /**
  9735. * Session createManyAndReturn
  9736. */
  9737. export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9738. /**
  9739. * Select specific fields to fetch from the Session
  9740. */
  9741. select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
  9742. /**
  9743. * Omit specific fields from the Session
  9744. */
  9745. omit?: SessionOmit<ExtArgs> | null
  9746. /**
  9747. * The data used to create many Sessions.
  9748. */
  9749. data: SessionCreateManyInput | SessionCreateManyInput[]
  9750. skipDuplicates?: boolean
  9751. /**
  9752. * Choose, which related nodes to fetch as well
  9753. */
  9754. include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
  9755. }
  9756. /**
  9757. * Session update
  9758. */
  9759. export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9760. /**
  9761. * Select specific fields to fetch from the Session
  9762. */
  9763. select?: SessionSelect<ExtArgs> | null
  9764. /**
  9765. * Omit specific fields from the Session
  9766. */
  9767. omit?: SessionOmit<ExtArgs> | null
  9768. /**
  9769. * Choose, which related nodes to fetch as well
  9770. */
  9771. include?: SessionInclude<ExtArgs> | null
  9772. /**
  9773. * The data needed to update a Session.
  9774. */
  9775. data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  9776. /**
  9777. * Choose, which Session to update.
  9778. */
  9779. where: SessionWhereUniqueInput
  9780. }
  9781. /**
  9782. * Session updateMany
  9783. */
  9784. export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9785. /**
  9786. * The data used to update Sessions.
  9787. */
  9788. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  9789. /**
  9790. * Filter which Sessions to update
  9791. */
  9792. where?: SessionWhereInput
  9793. /**
  9794. * Limit how many Sessions to update.
  9795. */
  9796. limit?: number
  9797. }
  9798. /**
  9799. * Session updateManyAndReturn
  9800. */
  9801. export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9802. /**
  9803. * Select specific fields to fetch from the Session
  9804. */
  9805. select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
  9806. /**
  9807. * Omit specific fields from the Session
  9808. */
  9809. omit?: SessionOmit<ExtArgs> | null
  9810. /**
  9811. * The data used to update Sessions.
  9812. */
  9813. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  9814. /**
  9815. * Filter which Sessions to update
  9816. */
  9817. where?: SessionWhereInput
  9818. /**
  9819. * Limit how many Sessions to update.
  9820. */
  9821. limit?: number
  9822. /**
  9823. * Choose, which related nodes to fetch as well
  9824. */
  9825. include?: SessionIncludeUpdateManyAndReturn<ExtArgs> | null
  9826. }
  9827. /**
  9828. * Session upsert
  9829. */
  9830. export type SessionUpsertArgs<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 filter to search for the Session to update in case it exists.
  9845. */
  9846. where: SessionWhereUniqueInput
  9847. /**
  9848. * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
  9849. */
  9850. create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  9851. /**
  9852. * In case the Session was found with the provided `where` argument, update it with this data.
  9853. */
  9854. update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  9855. }
  9856. /**
  9857. * Session delete
  9858. */
  9859. export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9860. /**
  9861. * Select specific fields to fetch from the Session
  9862. */
  9863. select?: SessionSelect<ExtArgs> | null
  9864. /**
  9865. * Omit specific fields from the Session
  9866. */
  9867. omit?: SessionOmit<ExtArgs> | null
  9868. /**
  9869. * Choose, which related nodes to fetch as well
  9870. */
  9871. include?: SessionInclude<ExtArgs> | null
  9872. /**
  9873. * Filter which Session to delete.
  9874. */
  9875. where: SessionWhereUniqueInput
  9876. }
  9877. /**
  9878. * Session deleteMany
  9879. */
  9880. export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9881. /**
  9882. * Filter which Sessions to delete
  9883. */
  9884. where?: SessionWhereInput
  9885. /**
  9886. * Limit how many Sessions to delete.
  9887. */
  9888. limit?: number
  9889. }
  9890. /**
  9891. * Session without action
  9892. */
  9893. export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9894. /**
  9895. * Select specific fields to fetch from the Session
  9896. */
  9897. select?: SessionSelect<ExtArgs> | null
  9898. /**
  9899. * Omit specific fields from the Session
  9900. */
  9901. omit?: SessionOmit<ExtArgs> | null
  9902. /**
  9903. * Choose, which related nodes to fetch as well
  9904. */
  9905. include?: SessionInclude<ExtArgs> | null
  9906. }
  9907. /**
  9908. * Model User
  9909. */
  9910. export type AggregateUser = {
  9911. _count: UserCountAggregateOutputType | null
  9912. _min: UserMinAggregateOutputType | null
  9913. _max: UserMaxAggregateOutputType | null
  9914. }
  9915. export type UserMinAggregateOutputType = {
  9916. id: string | null
  9917. name: string | null
  9918. email: string | null
  9919. emailVerified: Date | null
  9920. password: string | null
  9921. image: string | null
  9922. }
  9923. export type UserMaxAggregateOutputType = {
  9924. id: string | null
  9925. name: string | null
  9926. email: string | null
  9927. emailVerified: Date | null
  9928. password: string | null
  9929. image: string | null
  9930. }
  9931. export type UserCountAggregateOutputType = {
  9932. id: number
  9933. name: number
  9934. email: number
  9935. emailVerified: number
  9936. password: number
  9937. image: number
  9938. _all: number
  9939. }
  9940. export type UserMinAggregateInputType = {
  9941. id?: true
  9942. name?: true
  9943. email?: true
  9944. emailVerified?: true
  9945. password?: true
  9946. image?: true
  9947. }
  9948. export type UserMaxAggregateInputType = {
  9949. id?: true
  9950. name?: true
  9951. email?: true
  9952. emailVerified?: true
  9953. password?: true
  9954. image?: true
  9955. }
  9956. export type UserCountAggregateInputType = {
  9957. id?: true
  9958. name?: true
  9959. email?: true
  9960. emailVerified?: true
  9961. password?: true
  9962. image?: true
  9963. _all?: true
  9964. }
  9965. export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9966. /**
  9967. * Filter which User to aggregate.
  9968. */
  9969. where?: UserWhereInput
  9970. /**
  9971. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9972. *
  9973. * Determine the order of Users to fetch.
  9974. */
  9975. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  9976. /**
  9977. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9978. *
  9979. * Sets the start position
  9980. */
  9981. cursor?: UserWhereUniqueInput
  9982. /**
  9983. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9984. *
  9985. * Take `±n` Users from the position of the cursor.
  9986. */
  9987. take?: number
  9988. /**
  9989. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9990. *
  9991. * Skip the first `n` Users.
  9992. */
  9993. skip?: number
  9994. /**
  9995. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9996. *
  9997. * Count returned Users
  9998. **/
  9999. _count?: true | UserCountAggregateInputType
  10000. /**
  10001. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10002. *
  10003. * Select which fields to find the minimum value
  10004. **/
  10005. _min?: UserMinAggregateInputType
  10006. /**
  10007. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10008. *
  10009. * Select which fields to find the maximum value
  10010. **/
  10011. _max?: UserMaxAggregateInputType
  10012. }
  10013. export type GetUserAggregateType<T extends UserAggregateArgs> = {
  10014. [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
  10015. ? T[P] extends true
  10016. ? number
  10017. : GetScalarType<T[P], AggregateUser[P]>
  10018. : GetScalarType<T[P], AggregateUser[P]>
  10019. }
  10020. export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10021. where?: UserWhereInput
  10022. orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
  10023. by: UserScalarFieldEnum[] | UserScalarFieldEnum
  10024. having?: UserScalarWhereWithAggregatesInput
  10025. take?: number
  10026. skip?: number
  10027. _count?: UserCountAggregateInputType | true
  10028. _min?: UserMinAggregateInputType
  10029. _max?: UserMaxAggregateInputType
  10030. }
  10031. export type UserGroupByOutputType = {
  10032. id: string
  10033. name: string | null
  10034. email: string | null
  10035. emailVerified: Date | null
  10036. password: string | null
  10037. image: string | null
  10038. _count: UserCountAggregateOutputType | null
  10039. _min: UserMinAggregateOutputType | null
  10040. _max: UserMaxAggregateOutputType | null
  10041. }
  10042. type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
  10043. Array<
  10044. PickEnumerable<UserGroupByOutputType, T['by']> &
  10045. {
  10046. [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
  10047. ? T[P] extends boolean
  10048. ? number
  10049. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10050. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10051. }
  10052. >
  10053. >
  10054. export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10055. id?: boolean
  10056. name?: boolean
  10057. email?: boolean
  10058. emailVerified?: boolean
  10059. password?: boolean
  10060. image?: boolean
  10061. accounts?: boolean | User$accountsArgs<ExtArgs>
  10062. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10063. posts?: boolean | User$postsArgs<ExtArgs>
  10064. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10065. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10066. }, ExtArgs["result"]["user"]>
  10067. export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10068. id?: boolean
  10069. name?: boolean
  10070. email?: boolean
  10071. emailVerified?: boolean
  10072. password?: boolean
  10073. image?: boolean
  10074. }, ExtArgs["result"]["user"]>
  10075. export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10076. id?: boolean
  10077. name?: boolean
  10078. email?: boolean
  10079. emailVerified?: boolean
  10080. password?: boolean
  10081. image?: boolean
  10082. }, ExtArgs["result"]["user"]>
  10083. export type UserSelectScalar = {
  10084. id?: boolean
  10085. name?: boolean
  10086. email?: boolean
  10087. emailVerified?: boolean
  10088. password?: boolean
  10089. image?: boolean
  10090. }
  10091. export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "password" | "image", ExtArgs["result"]["user"]>
  10092. export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10093. accounts?: boolean | User$accountsArgs<ExtArgs>
  10094. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10095. posts?: boolean | User$postsArgs<ExtArgs>
  10096. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10097. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10098. }
  10099. export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10100. export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10101. export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10102. name: "User"
  10103. objects: {
  10104. accounts: Prisma.$AccountPayload<ExtArgs>[]
  10105. sessions: Prisma.$SessionPayload<ExtArgs>[]
  10106. posts: Prisma.$PostPayload<ExtArgs>[]
  10107. workspace: Prisma.$WorkspacePayload<ExtArgs> | null
  10108. }
  10109. scalars: $Extensions.GetPayloadResult<{
  10110. id: string
  10111. name: string | null
  10112. email: string | null
  10113. emailVerified: Date | null
  10114. password: string | null
  10115. image: string | null
  10116. }, ExtArgs["result"]["user"]>
  10117. composites: {}
  10118. }
  10119. type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
  10120. type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  10121. Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  10122. select?: UserCountAggregateInputType | true
  10123. }
  10124. export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  10125. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
  10126. /**
  10127. * Find zero or one User that matches the filter.
  10128. * @param {UserFindUniqueArgs} args - Arguments to find a User
  10129. * @example
  10130. * // Get one User
  10131. * const user = await prisma.user.findUnique({
  10132. * where: {
  10133. * // ... provide filter here
  10134. * }
  10135. * })
  10136. */
  10137. findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10138. /**
  10139. * Find one User that matches the filter or throw an error with `error.code='P2025'`
  10140. * if no matches were found.
  10141. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
  10142. * @example
  10143. * // Get one User
  10144. * const user = await prisma.user.findUniqueOrThrow({
  10145. * where: {
  10146. * // ... provide filter here
  10147. * }
  10148. * })
  10149. */
  10150. findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10151. /**
  10152. * Find the first User that matches the filter.
  10153. * Note, that providing `undefined` is treated as the value not being there.
  10154. * Read more here: https://pris.ly/d/null-undefined
  10155. * @param {UserFindFirstArgs} args - Arguments to find a User
  10156. * @example
  10157. * // Get one User
  10158. * const user = await prisma.user.findFirst({
  10159. * where: {
  10160. * // ... provide filter here
  10161. * }
  10162. * })
  10163. */
  10164. findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10165. /**
  10166. * Find the first User that matches the filter or
  10167. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  10168. * Note, that providing `undefined` is treated as the value not being there.
  10169. * Read more here: https://pris.ly/d/null-undefined
  10170. * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
  10171. * @example
  10172. * // Get one User
  10173. * const user = await prisma.user.findFirstOrThrow({
  10174. * where: {
  10175. * // ... provide filter here
  10176. * }
  10177. * })
  10178. */
  10179. findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10180. /**
  10181. * Find zero or more Users that matches the filter.
  10182. * Note, that providing `undefined` is treated as the value not being there.
  10183. * Read more here: https://pris.ly/d/null-undefined
  10184. * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
  10185. * @example
  10186. * // Get all Users
  10187. * const users = await prisma.user.findMany()
  10188. *
  10189. * // Get first 10 Users
  10190. * const users = await prisma.user.findMany({ take: 10 })
  10191. *
  10192. * // Only select the `id`
  10193. * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
  10194. *
  10195. */
  10196. findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  10197. /**
  10198. * Create a User.
  10199. * @param {UserCreateArgs} args - Arguments to create a User.
  10200. * @example
  10201. * // Create one User
  10202. * const User = await prisma.user.create({
  10203. * data: {
  10204. * // ... data to create a User
  10205. * }
  10206. * })
  10207. *
  10208. */
  10209. create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10210. /**
  10211. * Create many Users.
  10212. * @param {UserCreateManyArgs} args - Arguments to create many Users.
  10213. * @example
  10214. * // Create many Users
  10215. * const user = await prisma.user.createMany({
  10216. * data: [
  10217. * // ... provide data here
  10218. * ]
  10219. * })
  10220. *
  10221. */
  10222. createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10223. /**
  10224. * Create many Users and returns the data saved in the database.
  10225. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
  10226. * @example
  10227. * // Create many Users
  10228. * const user = await prisma.user.createManyAndReturn({
  10229. * data: [
  10230. * // ... provide data here
  10231. * ]
  10232. * })
  10233. *
  10234. * // Create many Users and only return the `id`
  10235. * const userWithIdOnly = await prisma.user.createManyAndReturn({
  10236. * select: { id: true },
  10237. * data: [
  10238. * // ... provide data here
  10239. * ]
  10240. * })
  10241. * Note, that providing `undefined` is treated as the value not being there.
  10242. * Read more here: https://pris.ly/d/null-undefined
  10243. *
  10244. */
  10245. createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  10246. /**
  10247. * Delete a User.
  10248. * @param {UserDeleteArgs} args - Arguments to delete one User.
  10249. * @example
  10250. * // Delete one User
  10251. * const User = await prisma.user.delete({
  10252. * where: {
  10253. * // ... filter to delete one User
  10254. * }
  10255. * })
  10256. *
  10257. */
  10258. delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10259. /**
  10260. * Update one User.
  10261. * @param {UserUpdateArgs} args - Arguments to update one User.
  10262. * @example
  10263. * // Update one User
  10264. * const user = await prisma.user.update({
  10265. * where: {
  10266. * // ... provide filter here
  10267. * },
  10268. * data: {
  10269. * // ... provide data here
  10270. * }
  10271. * })
  10272. *
  10273. */
  10274. update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10275. /**
  10276. * Delete zero or more Users.
  10277. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
  10278. * @example
  10279. * // Delete a few Users
  10280. * const { count } = await prisma.user.deleteMany({
  10281. * where: {
  10282. * // ... provide filter here
  10283. * }
  10284. * })
  10285. *
  10286. */
  10287. deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10288. /**
  10289. * Update zero or more Users.
  10290. * Note, that providing `undefined` is treated as the value not being there.
  10291. * Read more here: https://pris.ly/d/null-undefined
  10292. * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
  10293. * @example
  10294. * // Update many Users
  10295. * const user = await prisma.user.updateMany({
  10296. * where: {
  10297. * // ... provide filter here
  10298. * },
  10299. * data: {
  10300. * // ... provide data here
  10301. * }
  10302. * })
  10303. *
  10304. */
  10305. updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10306. /**
  10307. * Update zero or more Users and returns the data updated in the database.
  10308. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
  10309. * @example
  10310. * // Update many Users
  10311. * const user = await prisma.user.updateManyAndReturn({
  10312. * where: {
  10313. * // ... provide filter here
  10314. * },
  10315. * data: [
  10316. * // ... provide data here
  10317. * ]
  10318. * })
  10319. *
  10320. * // Update zero or more Users and only return the `id`
  10321. * const userWithIdOnly = await prisma.user.updateManyAndReturn({
  10322. * select: { id: true },
  10323. * where: {
  10324. * // ... provide filter here
  10325. * },
  10326. * data: [
  10327. * // ... provide data here
  10328. * ]
  10329. * })
  10330. * Note, that providing `undefined` is treated as the value not being there.
  10331. * Read more here: https://pris.ly/d/null-undefined
  10332. *
  10333. */
  10334. updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  10335. /**
  10336. * Create or update one User.
  10337. * @param {UserUpsertArgs} args - Arguments to update or create a User.
  10338. * @example
  10339. * // Update or create a User
  10340. * const user = await prisma.user.upsert({
  10341. * create: {
  10342. * // ... data to create a User
  10343. * },
  10344. * update: {
  10345. * // ... in case it already exists, update
  10346. * },
  10347. * where: {
  10348. * // ... the filter for the User we want to update
  10349. * }
  10350. * })
  10351. */
  10352. upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10353. /**
  10354. * Count the number of Users.
  10355. * Note, that providing `undefined` is treated as the value not being there.
  10356. * Read more here: https://pris.ly/d/null-undefined
  10357. * @param {UserCountArgs} args - Arguments to filter Users to count.
  10358. * @example
  10359. * // Count the number of Users
  10360. * const count = await prisma.user.count({
  10361. * where: {
  10362. * // ... the filter for the Users we want to count
  10363. * }
  10364. * })
  10365. **/
  10366. count<T extends UserCountArgs>(
  10367. args?: Subset<T, UserCountArgs>,
  10368. ): Prisma.PrismaPromise<
  10369. T extends $Utils.Record<'select', any>
  10370. ? T['select'] extends true
  10371. ? number
  10372. : GetScalarType<T['select'], UserCountAggregateOutputType>
  10373. : number
  10374. >
  10375. /**
  10376. * Allows you to perform aggregations operations on a User.
  10377. * Note, that providing `undefined` is treated as the value not being there.
  10378. * Read more here: https://pris.ly/d/null-undefined
  10379. * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  10380. * @example
  10381. * // Ordered by age ascending
  10382. * // Where email contains prisma.io
  10383. * // Limited to the 10 users
  10384. * const aggregations = await prisma.user.aggregate({
  10385. * _avg: {
  10386. * age: true,
  10387. * },
  10388. * where: {
  10389. * email: {
  10390. * contains: "prisma.io",
  10391. * },
  10392. * },
  10393. * orderBy: {
  10394. * age: "asc",
  10395. * },
  10396. * take: 10,
  10397. * })
  10398. **/
  10399. aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
  10400. /**
  10401. * Group by User.
  10402. * Note, that providing `undefined` is treated as the value not being there.
  10403. * Read more here: https://pris.ly/d/null-undefined
  10404. * @param {UserGroupByArgs} args - Group by arguments.
  10405. * @example
  10406. * // Group by city, order by createdAt, get count
  10407. * const result = await prisma.user.groupBy({
  10408. * by: ['city', 'createdAt'],
  10409. * orderBy: {
  10410. * createdAt: true
  10411. * },
  10412. * _count: {
  10413. * _all: true
  10414. * },
  10415. * })
  10416. *
  10417. **/
  10418. groupBy<
  10419. T extends UserGroupByArgs,
  10420. HasSelectOrTake extends Or<
  10421. Extends<'skip', Keys<T>>,
  10422. Extends<'take', Keys<T>>
  10423. >,
  10424. OrderByArg extends True extends HasSelectOrTake
  10425. ? { orderBy: UserGroupByArgs['orderBy'] }
  10426. : { orderBy?: UserGroupByArgs['orderBy'] },
  10427. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  10428. ByFields extends MaybeTupleToUnion<T['by']>,
  10429. ByValid extends Has<ByFields, OrderFields>,
  10430. HavingFields extends GetHavingFields<T['having']>,
  10431. HavingValid extends Has<ByFields, HavingFields>,
  10432. ByEmpty extends T['by'] extends never[] ? True : False,
  10433. InputErrors extends ByEmpty extends True
  10434. ? `Error: "by" must not be empty.`
  10435. : HavingValid extends False
  10436. ? {
  10437. [P in HavingFields]: P extends ByFields
  10438. ? never
  10439. : P extends string
  10440. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  10441. : [
  10442. Error,
  10443. 'Field ',
  10444. P,
  10445. ` in "having" needs to be provided in "by"`,
  10446. ]
  10447. }[HavingFields]
  10448. : 'take' extends Keys<T>
  10449. ? 'orderBy' extends Keys<T>
  10450. ? ByValid extends True
  10451. ? {}
  10452. : {
  10453. [P in OrderFields]: P extends ByFields
  10454. ? never
  10455. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10456. }[OrderFields]
  10457. : 'Error: If you provide "take", you also need to provide "orderBy"'
  10458. : 'skip' extends Keys<T>
  10459. ? 'orderBy' extends Keys<T>
  10460. ? ByValid extends True
  10461. ? {}
  10462. : {
  10463. [P in OrderFields]: P extends ByFields
  10464. ? never
  10465. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10466. }[OrderFields]
  10467. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  10468. : ByValid extends True
  10469. ? {}
  10470. : {
  10471. [P in OrderFields]: P extends ByFields
  10472. ? never
  10473. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10474. }[OrderFields]
  10475. >(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  10476. /**
  10477. * Fields of the User model
  10478. */
  10479. readonly fields: UserFieldRefs;
  10480. }
  10481. /**
  10482. * The delegate class that acts as a "Promise-like" for User.
  10483. * Why is this prefixed with `Prisma__`?
  10484. * Because we want to prevent naming conflicts as mentioned in
  10485. * https://github.com/prisma/prisma-client-js/issues/707
  10486. */
  10487. export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  10488. readonly [Symbol.toStringTag]: "PrismaPromise"
  10489. accounts<T extends User$accountsArgs<ExtArgs> = {}>(args?: Subset<T, User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10490. sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10491. posts<T extends User$postsArgs<ExtArgs> = {}>(args?: Subset<T, User$postsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10492. 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>
  10493. /**
  10494. * Attaches callbacks for the resolution and/or rejection of the Promise.
  10495. * @param onfulfilled The callback to execute when the Promise is resolved.
  10496. * @param onrejected The callback to execute when the Promise is rejected.
  10497. * @returns A Promise for the completion of which ever callback is executed.
  10498. */
  10499. 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>
  10500. /**
  10501. * Attaches a callback for only the rejection of the Promise.
  10502. * @param onrejected The callback to execute when the Promise is rejected.
  10503. * @returns A Promise for the completion of the callback.
  10504. */
  10505. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  10506. /**
  10507. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  10508. * resolved value cannot be modified from the callback.
  10509. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  10510. * @returns A Promise for the completion of the callback.
  10511. */
  10512. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  10513. }
  10514. /**
  10515. * Fields of the User model
  10516. */
  10517. interface UserFieldRefs {
  10518. readonly id: FieldRef<"User", 'String'>
  10519. readonly name: FieldRef<"User", 'String'>
  10520. readonly email: FieldRef<"User", 'String'>
  10521. readonly emailVerified: FieldRef<"User", 'DateTime'>
  10522. readonly password: FieldRef<"User", 'String'>
  10523. readonly image: FieldRef<"User", 'String'>
  10524. }
  10525. // Custom InputTypes
  10526. /**
  10527. * User findUnique
  10528. */
  10529. export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10530. /**
  10531. * Select specific fields to fetch from the User
  10532. */
  10533. select?: UserSelect<ExtArgs> | null
  10534. /**
  10535. * Omit specific fields from the User
  10536. */
  10537. omit?: UserOmit<ExtArgs> | null
  10538. /**
  10539. * Choose, which related nodes to fetch as well
  10540. */
  10541. include?: UserInclude<ExtArgs> | null
  10542. /**
  10543. * Filter, which User to fetch.
  10544. */
  10545. where: UserWhereUniqueInput
  10546. }
  10547. /**
  10548. * User findUniqueOrThrow
  10549. */
  10550. export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10551. /**
  10552. * Select specific fields to fetch from the User
  10553. */
  10554. select?: UserSelect<ExtArgs> | null
  10555. /**
  10556. * Omit specific fields from the User
  10557. */
  10558. omit?: UserOmit<ExtArgs> | null
  10559. /**
  10560. * Choose, which related nodes to fetch as well
  10561. */
  10562. include?: UserInclude<ExtArgs> | null
  10563. /**
  10564. * Filter, which User to fetch.
  10565. */
  10566. where: UserWhereUniqueInput
  10567. }
  10568. /**
  10569. * User findFirst
  10570. */
  10571. export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10572. /**
  10573. * Select specific fields to fetch from the User
  10574. */
  10575. select?: UserSelect<ExtArgs> | null
  10576. /**
  10577. * Omit specific fields from the User
  10578. */
  10579. omit?: UserOmit<ExtArgs> | null
  10580. /**
  10581. * Choose, which related nodes to fetch as well
  10582. */
  10583. include?: UserInclude<ExtArgs> | null
  10584. /**
  10585. * Filter, which User to fetch.
  10586. */
  10587. where?: UserWhereInput
  10588. /**
  10589. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10590. *
  10591. * Determine the order of Users to fetch.
  10592. */
  10593. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10594. /**
  10595. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10596. *
  10597. * Sets the position for searching for Users.
  10598. */
  10599. cursor?: UserWhereUniqueInput
  10600. /**
  10601. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10602. *
  10603. * Take `±n` Users from the position of the cursor.
  10604. */
  10605. take?: number
  10606. /**
  10607. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10608. *
  10609. * Skip the first `n` Users.
  10610. */
  10611. skip?: number
  10612. /**
  10613. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10614. *
  10615. * Filter by unique combinations of Users.
  10616. */
  10617. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10618. }
  10619. /**
  10620. * User findFirstOrThrow
  10621. */
  10622. export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10623. /**
  10624. * Select specific fields to fetch from the User
  10625. */
  10626. select?: UserSelect<ExtArgs> | null
  10627. /**
  10628. * Omit specific fields from the User
  10629. */
  10630. omit?: UserOmit<ExtArgs> | null
  10631. /**
  10632. * Choose, which related nodes to fetch as well
  10633. */
  10634. include?: UserInclude<ExtArgs> | null
  10635. /**
  10636. * Filter, which User to fetch.
  10637. */
  10638. where?: UserWhereInput
  10639. /**
  10640. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10641. *
  10642. * Determine the order of Users to fetch.
  10643. */
  10644. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10645. /**
  10646. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10647. *
  10648. * Sets the position for searching for Users.
  10649. */
  10650. cursor?: UserWhereUniqueInput
  10651. /**
  10652. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10653. *
  10654. * Take `±n` Users from the position of the cursor.
  10655. */
  10656. take?: number
  10657. /**
  10658. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10659. *
  10660. * Skip the first `n` Users.
  10661. */
  10662. skip?: number
  10663. /**
  10664. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10665. *
  10666. * Filter by unique combinations of Users.
  10667. */
  10668. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10669. }
  10670. /**
  10671. * User findMany
  10672. */
  10673. export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10674. /**
  10675. * Select specific fields to fetch from the User
  10676. */
  10677. select?: UserSelect<ExtArgs> | null
  10678. /**
  10679. * Omit specific fields from the User
  10680. */
  10681. omit?: UserOmit<ExtArgs> | null
  10682. /**
  10683. * Choose, which related nodes to fetch as well
  10684. */
  10685. include?: UserInclude<ExtArgs> | null
  10686. /**
  10687. * Filter, which Users to fetch.
  10688. */
  10689. where?: UserWhereInput
  10690. /**
  10691. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10692. *
  10693. * Determine the order of Users to fetch.
  10694. */
  10695. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10696. /**
  10697. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10698. *
  10699. * Sets the position for listing Users.
  10700. */
  10701. cursor?: UserWhereUniqueInput
  10702. /**
  10703. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10704. *
  10705. * Take `±n` Users from the position of the cursor.
  10706. */
  10707. take?: number
  10708. /**
  10709. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10710. *
  10711. * Skip the first `n` Users.
  10712. */
  10713. skip?: number
  10714. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10715. }
  10716. /**
  10717. * User create
  10718. */
  10719. export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10720. /**
  10721. * Select specific fields to fetch from the User
  10722. */
  10723. select?: UserSelect<ExtArgs> | null
  10724. /**
  10725. * Omit specific fields from the User
  10726. */
  10727. omit?: UserOmit<ExtArgs> | null
  10728. /**
  10729. * Choose, which related nodes to fetch as well
  10730. */
  10731. include?: UserInclude<ExtArgs> | null
  10732. /**
  10733. * The data needed to create a User.
  10734. */
  10735. data?: XOR<UserCreateInput, UserUncheckedCreateInput>
  10736. }
  10737. /**
  10738. * User createMany
  10739. */
  10740. export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10741. /**
  10742. * The data used to create many Users.
  10743. */
  10744. data: UserCreateManyInput | UserCreateManyInput[]
  10745. skipDuplicates?: boolean
  10746. }
  10747. /**
  10748. * User createManyAndReturn
  10749. */
  10750. export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10751. /**
  10752. * Select specific fields to fetch from the User
  10753. */
  10754. select?: UserSelectCreateManyAndReturn<ExtArgs> | null
  10755. /**
  10756. * Omit specific fields from the User
  10757. */
  10758. omit?: UserOmit<ExtArgs> | null
  10759. /**
  10760. * The data used to create many Users.
  10761. */
  10762. data: UserCreateManyInput | UserCreateManyInput[]
  10763. skipDuplicates?: boolean
  10764. }
  10765. /**
  10766. * User update
  10767. */
  10768. export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10769. /**
  10770. * Select specific fields to fetch from the User
  10771. */
  10772. select?: UserSelect<ExtArgs> | null
  10773. /**
  10774. * Omit specific fields from the User
  10775. */
  10776. omit?: UserOmit<ExtArgs> | null
  10777. /**
  10778. * Choose, which related nodes to fetch as well
  10779. */
  10780. include?: UserInclude<ExtArgs> | null
  10781. /**
  10782. * The data needed to update a User.
  10783. */
  10784. data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  10785. /**
  10786. * Choose, which User to update.
  10787. */
  10788. where: UserWhereUniqueInput
  10789. }
  10790. /**
  10791. * User updateMany
  10792. */
  10793. export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10794. /**
  10795. * The data used to update Users.
  10796. */
  10797. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  10798. /**
  10799. * Filter which Users to update
  10800. */
  10801. where?: UserWhereInput
  10802. /**
  10803. * Limit how many Users to update.
  10804. */
  10805. limit?: number
  10806. }
  10807. /**
  10808. * User updateManyAndReturn
  10809. */
  10810. export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10811. /**
  10812. * Select specific fields to fetch from the User
  10813. */
  10814. select?: UserSelectUpdateManyAndReturn<ExtArgs> | null
  10815. /**
  10816. * Omit specific fields from the User
  10817. */
  10818. omit?: UserOmit<ExtArgs> | null
  10819. /**
  10820. * The data used to update Users.
  10821. */
  10822. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  10823. /**
  10824. * Filter which Users to update
  10825. */
  10826. where?: UserWhereInput
  10827. /**
  10828. * Limit how many Users to update.
  10829. */
  10830. limit?: number
  10831. }
  10832. /**
  10833. * User upsert
  10834. */
  10835. export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10836. /**
  10837. * Select specific fields to fetch from the User
  10838. */
  10839. select?: UserSelect<ExtArgs> | null
  10840. /**
  10841. * Omit specific fields from the User
  10842. */
  10843. omit?: UserOmit<ExtArgs> | null
  10844. /**
  10845. * Choose, which related nodes to fetch as well
  10846. */
  10847. include?: UserInclude<ExtArgs> | null
  10848. /**
  10849. * The filter to search for the User to update in case it exists.
  10850. */
  10851. where: UserWhereUniqueInput
  10852. /**
  10853. * In case the User found by the `where` argument doesn't exist, create a new User with this data.
  10854. */
  10855. create: XOR<UserCreateInput, UserUncheckedCreateInput>
  10856. /**
  10857. * In case the User was found with the provided `where` argument, update it with this data.
  10858. */
  10859. update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  10860. }
  10861. /**
  10862. * User delete
  10863. */
  10864. export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10865. /**
  10866. * Select specific fields to fetch from the User
  10867. */
  10868. select?: UserSelect<ExtArgs> | null
  10869. /**
  10870. * Omit specific fields from the User
  10871. */
  10872. omit?: UserOmit<ExtArgs> | null
  10873. /**
  10874. * Choose, which related nodes to fetch as well
  10875. */
  10876. include?: UserInclude<ExtArgs> | null
  10877. /**
  10878. * Filter which User to delete.
  10879. */
  10880. where: UserWhereUniqueInput
  10881. }
  10882. /**
  10883. * User deleteMany
  10884. */
  10885. export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10886. /**
  10887. * Filter which Users to delete
  10888. */
  10889. where?: UserWhereInput
  10890. /**
  10891. * Limit how many Users to delete.
  10892. */
  10893. limit?: number
  10894. }
  10895. /**
  10896. * User.accounts
  10897. */
  10898. export type User$accountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10899. /**
  10900. * Select specific fields to fetch from the Account
  10901. */
  10902. select?: AccountSelect<ExtArgs> | null
  10903. /**
  10904. * Omit specific fields from the Account
  10905. */
  10906. omit?: AccountOmit<ExtArgs> | null
  10907. /**
  10908. * Choose, which related nodes to fetch as well
  10909. */
  10910. include?: AccountInclude<ExtArgs> | null
  10911. where?: AccountWhereInput
  10912. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  10913. cursor?: AccountWhereUniqueInput
  10914. take?: number
  10915. skip?: number
  10916. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  10917. }
  10918. /**
  10919. * User.sessions
  10920. */
  10921. export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10922. /**
  10923. * Select specific fields to fetch from the Session
  10924. */
  10925. select?: SessionSelect<ExtArgs> | null
  10926. /**
  10927. * Omit specific fields from the Session
  10928. */
  10929. omit?: SessionOmit<ExtArgs> | null
  10930. /**
  10931. * Choose, which related nodes to fetch as well
  10932. */
  10933. include?: SessionInclude<ExtArgs> | null
  10934. where?: SessionWhereInput
  10935. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  10936. cursor?: SessionWhereUniqueInput
  10937. take?: number
  10938. skip?: number
  10939. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  10940. }
  10941. /**
  10942. * User.posts
  10943. */
  10944. export type User$postsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10945. /**
  10946. * Select specific fields to fetch from the Post
  10947. */
  10948. select?: PostSelect<ExtArgs> | null
  10949. /**
  10950. * Omit specific fields from the Post
  10951. */
  10952. omit?: PostOmit<ExtArgs> | null
  10953. /**
  10954. * Choose, which related nodes to fetch as well
  10955. */
  10956. include?: PostInclude<ExtArgs> | null
  10957. where?: PostWhereInput
  10958. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  10959. cursor?: PostWhereUniqueInput
  10960. take?: number
  10961. skip?: number
  10962. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  10963. }
  10964. /**
  10965. * User.workspace
  10966. */
  10967. export type User$workspaceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10968. /**
  10969. * Select specific fields to fetch from the Workspace
  10970. */
  10971. select?: WorkspaceSelect<ExtArgs> | null
  10972. /**
  10973. * Omit specific fields from the Workspace
  10974. */
  10975. omit?: WorkspaceOmit<ExtArgs> | null
  10976. /**
  10977. * Choose, which related nodes to fetch as well
  10978. */
  10979. include?: WorkspaceInclude<ExtArgs> | null
  10980. where?: WorkspaceWhereInput
  10981. }
  10982. /**
  10983. * User without action
  10984. */
  10985. export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10986. /**
  10987. * Select specific fields to fetch from the User
  10988. */
  10989. select?: UserSelect<ExtArgs> | null
  10990. /**
  10991. * Omit specific fields from the User
  10992. */
  10993. omit?: UserOmit<ExtArgs> | null
  10994. /**
  10995. * Choose, which related nodes to fetch as well
  10996. */
  10997. include?: UserInclude<ExtArgs> | null
  10998. }
  10999. /**
  11000. * Model VerificationToken
  11001. */
  11002. export type AggregateVerificationToken = {
  11003. _count: VerificationTokenCountAggregateOutputType | null
  11004. _min: VerificationTokenMinAggregateOutputType | null
  11005. _max: VerificationTokenMaxAggregateOutputType | null
  11006. }
  11007. export type VerificationTokenMinAggregateOutputType = {
  11008. identifier: string | null
  11009. token: string | null
  11010. expires: Date | null
  11011. }
  11012. export type VerificationTokenMaxAggregateOutputType = {
  11013. identifier: string | null
  11014. token: string | null
  11015. expires: Date | null
  11016. }
  11017. export type VerificationTokenCountAggregateOutputType = {
  11018. identifier: number
  11019. token: number
  11020. expires: number
  11021. _all: number
  11022. }
  11023. export type VerificationTokenMinAggregateInputType = {
  11024. identifier?: true
  11025. token?: true
  11026. expires?: true
  11027. }
  11028. export type VerificationTokenMaxAggregateInputType = {
  11029. identifier?: true
  11030. token?: true
  11031. expires?: true
  11032. }
  11033. export type VerificationTokenCountAggregateInputType = {
  11034. identifier?: true
  11035. token?: true
  11036. expires?: true
  11037. _all?: true
  11038. }
  11039. export type VerificationTokenAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11040. /**
  11041. * Filter which VerificationToken to aggregate.
  11042. */
  11043. where?: VerificationTokenWhereInput
  11044. /**
  11045. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11046. *
  11047. * Determine the order of VerificationTokens to fetch.
  11048. */
  11049. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11050. /**
  11051. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11052. *
  11053. * Sets the start position
  11054. */
  11055. cursor?: VerificationTokenWhereUniqueInput
  11056. /**
  11057. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11058. *
  11059. * Take `±n` VerificationTokens from the position of the cursor.
  11060. */
  11061. take?: number
  11062. /**
  11063. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11064. *
  11065. * Skip the first `n` VerificationTokens.
  11066. */
  11067. skip?: number
  11068. /**
  11069. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11070. *
  11071. * Count returned VerificationTokens
  11072. **/
  11073. _count?: true | VerificationTokenCountAggregateInputType
  11074. /**
  11075. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11076. *
  11077. * Select which fields to find the minimum value
  11078. **/
  11079. _min?: VerificationTokenMinAggregateInputType
  11080. /**
  11081. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11082. *
  11083. * Select which fields to find the maximum value
  11084. **/
  11085. _max?: VerificationTokenMaxAggregateInputType
  11086. }
  11087. export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
  11088. [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
  11089. ? T[P] extends true
  11090. ? number
  11091. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11092. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11093. }
  11094. export type VerificationTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11095. where?: VerificationTokenWhereInput
  11096. orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[]
  11097. by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum
  11098. having?: VerificationTokenScalarWhereWithAggregatesInput
  11099. take?: number
  11100. skip?: number
  11101. _count?: VerificationTokenCountAggregateInputType | true
  11102. _min?: VerificationTokenMinAggregateInputType
  11103. _max?: VerificationTokenMaxAggregateInputType
  11104. }
  11105. export type VerificationTokenGroupByOutputType = {
  11106. identifier: string
  11107. token: string
  11108. expires: Date
  11109. _count: VerificationTokenCountAggregateOutputType | null
  11110. _min: VerificationTokenMinAggregateOutputType | null
  11111. _max: VerificationTokenMaxAggregateOutputType | null
  11112. }
  11113. type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
  11114. Array<
  11115. PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
  11116. {
  11117. [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
  11118. ? T[P] extends boolean
  11119. ? number
  11120. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11121. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11122. }
  11123. >
  11124. >
  11125. export type VerificationTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11126. identifier?: boolean
  11127. token?: boolean
  11128. expires?: boolean
  11129. }, ExtArgs["result"]["verificationToken"]>
  11130. export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11131. identifier?: boolean
  11132. token?: boolean
  11133. expires?: boolean
  11134. }, ExtArgs["result"]["verificationToken"]>
  11135. export type VerificationTokenSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11136. identifier?: boolean
  11137. token?: boolean
  11138. expires?: boolean
  11139. }, ExtArgs["result"]["verificationToken"]>
  11140. export type VerificationTokenSelectScalar = {
  11141. identifier?: boolean
  11142. token?: boolean
  11143. expires?: boolean
  11144. }
  11145. export type VerificationTokenOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]>
  11146. export type $VerificationTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11147. name: "VerificationToken"
  11148. objects: {}
  11149. scalars: $Extensions.GetPayloadResult<{
  11150. identifier: string
  11151. token: string
  11152. expires: Date
  11153. }, ExtArgs["result"]["verificationToken"]>
  11154. composites: {}
  11155. }
  11156. type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = $Result.GetResult<Prisma.$VerificationTokenPayload, S>
  11157. type VerificationTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  11158. Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  11159. select?: VerificationTokenCountAggregateInputType | true
  11160. }
  11161. export interface VerificationTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  11162. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'], meta: { name: 'VerificationToken' } }
  11163. /**
  11164. * Find zero or one VerificationToken that matches the filter.
  11165. * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
  11166. * @example
  11167. * // Get one VerificationToken
  11168. * const verificationToken = await prisma.verificationToken.findUnique({
  11169. * where: {
  11170. * // ... provide filter here
  11171. * }
  11172. * })
  11173. */
  11174. findUnique<T extends VerificationTokenFindUniqueArgs>(args: SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11175. /**
  11176. * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
  11177. * if no matches were found.
  11178. * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
  11179. * @example
  11180. * // Get one VerificationToken
  11181. * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
  11182. * where: {
  11183. * // ... provide filter here
  11184. * }
  11185. * })
  11186. */
  11187. findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11188. /**
  11189. * Find the first VerificationToken that matches the filter.
  11190. * Note, that providing `undefined` is treated as the value not being there.
  11191. * Read more here: https://pris.ly/d/null-undefined
  11192. * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
  11193. * @example
  11194. * // Get one VerificationToken
  11195. * const verificationToken = await prisma.verificationToken.findFirst({
  11196. * where: {
  11197. * // ... provide filter here
  11198. * }
  11199. * })
  11200. */
  11201. findFirst<T extends VerificationTokenFindFirstArgs>(args?: SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11202. /**
  11203. * Find the first VerificationToken that matches the filter or
  11204. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  11205. * Note, that providing `undefined` is treated as the value not being there.
  11206. * Read more here: https://pris.ly/d/null-undefined
  11207. * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
  11208. * @example
  11209. * // Get one VerificationToken
  11210. * const verificationToken = await prisma.verificationToken.findFirstOrThrow({
  11211. * where: {
  11212. * // ... provide filter here
  11213. * }
  11214. * })
  11215. */
  11216. findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11217. /**
  11218. * Find zero or more VerificationTokens that matches the filter.
  11219. * Note, that providing `undefined` is treated as the value not being there.
  11220. * Read more here: https://pris.ly/d/null-undefined
  11221. * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
  11222. * @example
  11223. * // Get all VerificationTokens
  11224. * const verificationTokens = await prisma.verificationToken.findMany()
  11225. *
  11226. * // Get first 10 VerificationTokens
  11227. * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
  11228. *
  11229. * // Only select the `identifier`
  11230. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
  11231. *
  11232. */
  11233. findMany<T extends VerificationTokenFindManyArgs>(args?: SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  11234. /**
  11235. * Create a VerificationToken.
  11236. * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
  11237. * @example
  11238. * // Create one VerificationToken
  11239. * const VerificationToken = await prisma.verificationToken.create({
  11240. * data: {
  11241. * // ... data to create a VerificationToken
  11242. * }
  11243. * })
  11244. *
  11245. */
  11246. create<T extends VerificationTokenCreateArgs>(args: SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11247. /**
  11248. * Create many VerificationTokens.
  11249. * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
  11250. * @example
  11251. * // Create many VerificationTokens
  11252. * const verificationToken = await prisma.verificationToken.createMany({
  11253. * data: [
  11254. * // ... provide data here
  11255. * ]
  11256. * })
  11257. *
  11258. */
  11259. createMany<T extends VerificationTokenCreateManyArgs>(args?: SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11260. /**
  11261. * Create many VerificationTokens and returns the data saved in the database.
  11262. * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
  11263. * @example
  11264. * // Create many VerificationTokens
  11265. * const verificationToken = await prisma.verificationToken.createManyAndReturn({
  11266. * data: [
  11267. * // ... provide data here
  11268. * ]
  11269. * })
  11270. *
  11271. * // Create many VerificationTokens and only return the `identifier`
  11272. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
  11273. * select: { identifier: true },
  11274. * data: [
  11275. * // ... provide data here
  11276. * ]
  11277. * })
  11278. * Note, that providing `undefined` is treated as the value not being there.
  11279. * Read more here: https://pris.ly/d/null-undefined
  11280. *
  11281. */
  11282. createManyAndReturn<T extends VerificationTokenCreateManyAndReturnArgs>(args?: SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  11283. /**
  11284. * Delete a VerificationToken.
  11285. * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
  11286. * @example
  11287. * // Delete one VerificationToken
  11288. * const VerificationToken = await prisma.verificationToken.delete({
  11289. * where: {
  11290. * // ... filter to delete one VerificationToken
  11291. * }
  11292. * })
  11293. *
  11294. */
  11295. delete<T extends VerificationTokenDeleteArgs>(args: SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11296. /**
  11297. * Update one VerificationToken.
  11298. * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
  11299. * @example
  11300. * // Update one VerificationToken
  11301. * const verificationToken = await prisma.verificationToken.update({
  11302. * where: {
  11303. * // ... provide filter here
  11304. * },
  11305. * data: {
  11306. * // ... provide data here
  11307. * }
  11308. * })
  11309. *
  11310. */
  11311. update<T extends VerificationTokenUpdateArgs>(args: SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11312. /**
  11313. * Delete zero or more VerificationTokens.
  11314. * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
  11315. * @example
  11316. * // Delete a few VerificationTokens
  11317. * const { count } = await prisma.verificationToken.deleteMany({
  11318. * where: {
  11319. * // ... provide filter here
  11320. * }
  11321. * })
  11322. *
  11323. */
  11324. deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11325. /**
  11326. * Update zero or more VerificationTokens.
  11327. * Note, that providing `undefined` is treated as the value not being there.
  11328. * Read more here: https://pris.ly/d/null-undefined
  11329. * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
  11330. * @example
  11331. * // Update many VerificationTokens
  11332. * const verificationToken = await prisma.verificationToken.updateMany({
  11333. * where: {
  11334. * // ... provide filter here
  11335. * },
  11336. * data: {
  11337. * // ... provide data here
  11338. * }
  11339. * })
  11340. *
  11341. */
  11342. updateMany<T extends VerificationTokenUpdateManyArgs>(args: SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11343. /**
  11344. * Update zero or more VerificationTokens and returns the data updated in the database.
  11345. * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens.
  11346. * @example
  11347. * // Update many VerificationTokens
  11348. * const verificationToken = await prisma.verificationToken.updateManyAndReturn({
  11349. * where: {
  11350. * // ... provide filter here
  11351. * },
  11352. * data: [
  11353. * // ... provide data here
  11354. * ]
  11355. * })
  11356. *
  11357. * // Update zero or more VerificationTokens and only return the `identifier`
  11358. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({
  11359. * select: { identifier: true },
  11360. * where: {
  11361. * // ... provide filter here
  11362. * },
  11363. * data: [
  11364. * // ... provide data here
  11365. * ]
  11366. * })
  11367. * Note, that providing `undefined` is treated as the value not being there.
  11368. * Read more here: https://pris.ly/d/null-undefined
  11369. *
  11370. */
  11371. updateManyAndReturn<T extends VerificationTokenUpdateManyAndReturnArgs>(args: SelectSubset<T, VerificationTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  11372. /**
  11373. * Create or update one VerificationToken.
  11374. * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
  11375. * @example
  11376. * // Update or create a VerificationToken
  11377. * const verificationToken = await prisma.verificationToken.upsert({
  11378. * create: {
  11379. * // ... data to create a VerificationToken
  11380. * },
  11381. * update: {
  11382. * // ... in case it already exists, update
  11383. * },
  11384. * where: {
  11385. * // ... the filter for the VerificationToken we want to update
  11386. * }
  11387. * })
  11388. */
  11389. upsert<T extends VerificationTokenUpsertArgs>(args: SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11390. /**
  11391. * Count the number of VerificationTokens.
  11392. * Note, that providing `undefined` is treated as the value not being there.
  11393. * Read more here: https://pris.ly/d/null-undefined
  11394. * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
  11395. * @example
  11396. * // Count the number of VerificationTokens
  11397. * const count = await prisma.verificationToken.count({
  11398. * where: {
  11399. * // ... the filter for the VerificationTokens we want to count
  11400. * }
  11401. * })
  11402. **/
  11403. count<T extends VerificationTokenCountArgs>(
  11404. args?: Subset<T, VerificationTokenCountArgs>,
  11405. ): Prisma.PrismaPromise<
  11406. T extends $Utils.Record<'select', any>
  11407. ? T['select'] extends true
  11408. ? number
  11409. : GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
  11410. : number
  11411. >
  11412. /**
  11413. * Allows you to perform aggregations operations on a VerificationToken.
  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 {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  11417. * @example
  11418. * // Ordered by age ascending
  11419. * // Where email contains prisma.io
  11420. * // Limited to the 10 users
  11421. * const aggregations = await prisma.user.aggregate({
  11422. * _avg: {
  11423. * age: true,
  11424. * },
  11425. * where: {
  11426. * email: {
  11427. * contains: "prisma.io",
  11428. * },
  11429. * },
  11430. * orderBy: {
  11431. * age: "asc",
  11432. * },
  11433. * take: 10,
  11434. * })
  11435. **/
  11436. aggregate<T extends VerificationTokenAggregateArgs>(args: Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
  11437. /**
  11438. * Group by VerificationToken.
  11439. * Note, that providing `undefined` is treated as the value not being there.
  11440. * Read more here: https://pris.ly/d/null-undefined
  11441. * @param {VerificationTokenGroupByArgs} args - Group by arguments.
  11442. * @example
  11443. * // Group by city, order by createdAt, get count
  11444. * const result = await prisma.user.groupBy({
  11445. * by: ['city', 'createdAt'],
  11446. * orderBy: {
  11447. * createdAt: true
  11448. * },
  11449. * _count: {
  11450. * _all: true
  11451. * },
  11452. * })
  11453. *
  11454. **/
  11455. groupBy<
  11456. T extends VerificationTokenGroupByArgs,
  11457. HasSelectOrTake extends Or<
  11458. Extends<'skip', Keys<T>>,
  11459. Extends<'take', Keys<T>>
  11460. >,
  11461. OrderByArg extends True extends HasSelectOrTake
  11462. ? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
  11463. : { orderBy?: VerificationTokenGroupByArgs['orderBy'] },
  11464. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  11465. ByFields extends MaybeTupleToUnion<T['by']>,
  11466. ByValid extends Has<ByFields, OrderFields>,
  11467. HavingFields extends GetHavingFields<T['having']>,
  11468. HavingValid extends Has<ByFields, HavingFields>,
  11469. ByEmpty extends T['by'] extends never[] ? True : False,
  11470. InputErrors extends ByEmpty extends True
  11471. ? `Error: "by" must not be empty.`
  11472. : HavingValid extends False
  11473. ? {
  11474. [P in HavingFields]: P extends ByFields
  11475. ? never
  11476. : P extends string
  11477. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  11478. : [
  11479. Error,
  11480. 'Field ',
  11481. P,
  11482. ` in "having" needs to be provided in "by"`,
  11483. ]
  11484. }[HavingFields]
  11485. : 'take' extends Keys<T>
  11486. ? 'orderBy' extends Keys<T>
  11487. ? ByValid extends True
  11488. ? {}
  11489. : {
  11490. [P in OrderFields]: P extends ByFields
  11491. ? never
  11492. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11493. }[OrderFields]
  11494. : 'Error: If you provide "take", you also need to provide "orderBy"'
  11495. : 'skip' extends Keys<T>
  11496. ? 'orderBy' extends Keys<T>
  11497. ? ByValid extends True
  11498. ? {}
  11499. : {
  11500. [P in OrderFields]: P extends ByFields
  11501. ? never
  11502. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11503. }[OrderFields]
  11504. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  11505. : ByValid extends True
  11506. ? {}
  11507. : {
  11508. [P in OrderFields]: P extends ByFields
  11509. ? never
  11510. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11511. }[OrderFields]
  11512. >(args: SubsetIntersection<T, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  11513. /**
  11514. * Fields of the VerificationToken model
  11515. */
  11516. readonly fields: VerificationTokenFieldRefs;
  11517. }
  11518. /**
  11519. * The delegate class that acts as a "Promise-like" for VerificationToken.
  11520. * Why is this prefixed with `Prisma__`?
  11521. * Because we want to prevent naming conflicts as mentioned in
  11522. * https://github.com/prisma/prisma-client-js/issues/707
  11523. */
  11524. export interface Prisma__VerificationTokenClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  11525. readonly [Symbol.toStringTag]: "PrismaPromise"
  11526. /**
  11527. * Attaches callbacks for the resolution and/or rejection of the Promise.
  11528. * @param onfulfilled The callback to execute when the Promise is resolved.
  11529. * @param onrejected The callback to execute when the Promise is rejected.
  11530. * @returns A Promise for the completion of which ever callback is executed.
  11531. */
  11532. 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>
  11533. /**
  11534. * Attaches a callback for only the rejection of the Promise.
  11535. * @param onrejected The callback to execute when the Promise is rejected.
  11536. * @returns A Promise for the completion of the callback.
  11537. */
  11538. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  11539. /**
  11540. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  11541. * resolved value cannot be modified from the callback.
  11542. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  11543. * @returns A Promise for the completion of the callback.
  11544. */
  11545. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  11546. }
  11547. /**
  11548. * Fields of the VerificationToken model
  11549. */
  11550. interface VerificationTokenFieldRefs {
  11551. readonly identifier: FieldRef<"VerificationToken", 'String'>
  11552. readonly token: FieldRef<"VerificationToken", 'String'>
  11553. readonly expires: FieldRef<"VerificationToken", 'DateTime'>
  11554. }
  11555. // Custom InputTypes
  11556. /**
  11557. * VerificationToken findUnique
  11558. */
  11559. export type VerificationTokenFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11560. /**
  11561. * Select specific fields to fetch from the VerificationToken
  11562. */
  11563. select?: VerificationTokenSelect<ExtArgs> | null
  11564. /**
  11565. * Omit specific fields from the VerificationToken
  11566. */
  11567. omit?: VerificationTokenOmit<ExtArgs> | null
  11568. /**
  11569. * Filter, which VerificationToken to fetch.
  11570. */
  11571. where: VerificationTokenWhereUniqueInput
  11572. }
  11573. /**
  11574. * VerificationToken findUniqueOrThrow
  11575. */
  11576. export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11577. /**
  11578. * Select specific fields to fetch from the VerificationToken
  11579. */
  11580. select?: VerificationTokenSelect<ExtArgs> | null
  11581. /**
  11582. * Omit specific fields from the VerificationToken
  11583. */
  11584. omit?: VerificationTokenOmit<ExtArgs> | null
  11585. /**
  11586. * Filter, which VerificationToken to fetch.
  11587. */
  11588. where: VerificationTokenWhereUniqueInput
  11589. }
  11590. /**
  11591. * VerificationToken findFirst
  11592. */
  11593. export type VerificationTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11594. /**
  11595. * Select specific fields to fetch from the VerificationToken
  11596. */
  11597. select?: VerificationTokenSelect<ExtArgs> | null
  11598. /**
  11599. * Omit specific fields from the VerificationToken
  11600. */
  11601. omit?: VerificationTokenOmit<ExtArgs> | null
  11602. /**
  11603. * Filter, which VerificationToken to fetch.
  11604. */
  11605. where?: VerificationTokenWhereInput
  11606. /**
  11607. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11608. *
  11609. * Determine the order of VerificationTokens to fetch.
  11610. */
  11611. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11612. /**
  11613. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11614. *
  11615. * Sets the position for searching for VerificationTokens.
  11616. */
  11617. cursor?: VerificationTokenWhereUniqueInput
  11618. /**
  11619. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11620. *
  11621. * Take `±n` VerificationTokens from the position of the cursor.
  11622. */
  11623. take?: number
  11624. /**
  11625. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11626. *
  11627. * Skip the first `n` VerificationTokens.
  11628. */
  11629. skip?: number
  11630. /**
  11631. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11632. *
  11633. * Filter by unique combinations of VerificationTokens.
  11634. */
  11635. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11636. }
  11637. /**
  11638. * VerificationToken findFirstOrThrow
  11639. */
  11640. export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11641. /**
  11642. * Select specific fields to fetch from the VerificationToken
  11643. */
  11644. select?: VerificationTokenSelect<ExtArgs> | null
  11645. /**
  11646. * Omit specific fields from the VerificationToken
  11647. */
  11648. omit?: VerificationTokenOmit<ExtArgs> | null
  11649. /**
  11650. * Filter, which VerificationToken to fetch.
  11651. */
  11652. where?: VerificationTokenWhereInput
  11653. /**
  11654. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11655. *
  11656. * Determine the order of VerificationTokens to fetch.
  11657. */
  11658. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11659. /**
  11660. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11661. *
  11662. * Sets the position for searching for VerificationTokens.
  11663. */
  11664. cursor?: VerificationTokenWhereUniqueInput
  11665. /**
  11666. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11667. *
  11668. * Take `±n` VerificationTokens from the position of the cursor.
  11669. */
  11670. take?: number
  11671. /**
  11672. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11673. *
  11674. * Skip the first `n` VerificationTokens.
  11675. */
  11676. skip?: number
  11677. /**
  11678. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11679. *
  11680. * Filter by unique combinations of VerificationTokens.
  11681. */
  11682. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11683. }
  11684. /**
  11685. * VerificationToken findMany
  11686. */
  11687. export type VerificationTokenFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11688. /**
  11689. * Select specific fields to fetch from the VerificationToken
  11690. */
  11691. select?: VerificationTokenSelect<ExtArgs> | null
  11692. /**
  11693. * Omit specific fields from the VerificationToken
  11694. */
  11695. omit?: VerificationTokenOmit<ExtArgs> | null
  11696. /**
  11697. * Filter, which VerificationTokens to fetch.
  11698. */
  11699. where?: VerificationTokenWhereInput
  11700. /**
  11701. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11702. *
  11703. * Determine the order of VerificationTokens to fetch.
  11704. */
  11705. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11706. /**
  11707. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11708. *
  11709. * Sets the position for listing VerificationTokens.
  11710. */
  11711. cursor?: VerificationTokenWhereUniqueInput
  11712. /**
  11713. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11714. *
  11715. * Take `±n` VerificationTokens from the position of the cursor.
  11716. */
  11717. take?: number
  11718. /**
  11719. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11720. *
  11721. * Skip the first `n` VerificationTokens.
  11722. */
  11723. skip?: number
  11724. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11725. }
  11726. /**
  11727. * VerificationToken create
  11728. */
  11729. export type VerificationTokenCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11730. /**
  11731. * Select specific fields to fetch from the VerificationToken
  11732. */
  11733. select?: VerificationTokenSelect<ExtArgs> | null
  11734. /**
  11735. * Omit specific fields from the VerificationToken
  11736. */
  11737. omit?: VerificationTokenOmit<ExtArgs> | null
  11738. /**
  11739. * The data needed to create a VerificationToken.
  11740. */
  11741. data: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  11742. }
  11743. /**
  11744. * VerificationToken createMany
  11745. */
  11746. export type VerificationTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11747. /**
  11748. * The data used to create many VerificationTokens.
  11749. */
  11750. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  11751. skipDuplicates?: boolean
  11752. }
  11753. /**
  11754. * VerificationToken createManyAndReturn
  11755. */
  11756. export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11757. /**
  11758. * Select specific fields to fetch from the VerificationToken
  11759. */
  11760. select?: VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null
  11761. /**
  11762. * Omit specific fields from the VerificationToken
  11763. */
  11764. omit?: VerificationTokenOmit<ExtArgs> | null
  11765. /**
  11766. * The data used to create many VerificationTokens.
  11767. */
  11768. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  11769. skipDuplicates?: boolean
  11770. }
  11771. /**
  11772. * VerificationToken update
  11773. */
  11774. export type VerificationTokenUpdateArgs<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. * The data needed to update a VerificationToken.
  11785. */
  11786. data: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  11787. /**
  11788. * Choose, which VerificationToken to update.
  11789. */
  11790. where: VerificationTokenWhereUniqueInput
  11791. }
  11792. /**
  11793. * VerificationToken updateMany
  11794. */
  11795. export type VerificationTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11796. /**
  11797. * The data used to update VerificationTokens.
  11798. */
  11799. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  11800. /**
  11801. * Filter which VerificationTokens to update
  11802. */
  11803. where?: VerificationTokenWhereInput
  11804. /**
  11805. * Limit how many VerificationTokens to update.
  11806. */
  11807. limit?: number
  11808. }
  11809. /**
  11810. * VerificationToken updateManyAndReturn
  11811. */
  11812. export type VerificationTokenUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11813. /**
  11814. * Select specific fields to fetch from the VerificationToken
  11815. */
  11816. select?: VerificationTokenSelectUpdateManyAndReturn<ExtArgs> | null
  11817. /**
  11818. * Omit specific fields from the VerificationToken
  11819. */
  11820. omit?: VerificationTokenOmit<ExtArgs> | null
  11821. /**
  11822. * The data used to update VerificationTokens.
  11823. */
  11824. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  11825. /**
  11826. * Filter which VerificationTokens to update
  11827. */
  11828. where?: VerificationTokenWhereInput
  11829. /**
  11830. * Limit how many VerificationTokens to update.
  11831. */
  11832. limit?: number
  11833. }
  11834. /**
  11835. * VerificationToken upsert
  11836. */
  11837. export type VerificationTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11838. /**
  11839. * Select specific fields to fetch from the VerificationToken
  11840. */
  11841. select?: VerificationTokenSelect<ExtArgs> | null
  11842. /**
  11843. * Omit specific fields from the VerificationToken
  11844. */
  11845. omit?: VerificationTokenOmit<ExtArgs> | null
  11846. /**
  11847. * The filter to search for the VerificationToken to update in case it exists.
  11848. */
  11849. where: VerificationTokenWhereUniqueInput
  11850. /**
  11851. * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
  11852. */
  11853. create: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  11854. /**
  11855. * In case the VerificationToken was found with the provided `where` argument, update it with this data.
  11856. */
  11857. update: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  11858. }
  11859. /**
  11860. * VerificationToken delete
  11861. */
  11862. export type VerificationTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11863. /**
  11864. * Select specific fields to fetch from the VerificationToken
  11865. */
  11866. select?: VerificationTokenSelect<ExtArgs> | null
  11867. /**
  11868. * Omit specific fields from the VerificationToken
  11869. */
  11870. omit?: VerificationTokenOmit<ExtArgs> | null
  11871. /**
  11872. * Filter which VerificationToken to delete.
  11873. */
  11874. where: VerificationTokenWhereUniqueInput
  11875. }
  11876. /**
  11877. * VerificationToken deleteMany
  11878. */
  11879. export type VerificationTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11880. /**
  11881. * Filter which VerificationTokens to delete
  11882. */
  11883. where?: VerificationTokenWhereInput
  11884. /**
  11885. * Limit how many VerificationTokens to delete.
  11886. */
  11887. limit?: number
  11888. }
  11889. /**
  11890. * VerificationToken without action
  11891. */
  11892. export type VerificationTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11893. /**
  11894. * Select specific fields to fetch from the VerificationToken
  11895. */
  11896. select?: VerificationTokenSelect<ExtArgs> | null
  11897. /**
  11898. * Omit specific fields from the VerificationToken
  11899. */
  11900. omit?: VerificationTokenOmit<ExtArgs> | null
  11901. }
  11902. /**
  11903. * Model IdeaAttachment
  11904. */
  11905. export type AggregateIdeaAttachment = {
  11906. _count: IdeaAttachmentCountAggregateOutputType | null
  11907. _avg: IdeaAttachmentAvgAggregateOutputType | null
  11908. _sum: IdeaAttachmentSumAggregateOutputType | null
  11909. _min: IdeaAttachmentMinAggregateOutputType | null
  11910. _max: IdeaAttachmentMaxAggregateOutputType | null
  11911. }
  11912. export type IdeaAttachmentAvgAggregateOutputType = {
  11913. size: number | null
  11914. }
  11915. export type IdeaAttachmentSumAggregateOutputType = {
  11916. size: number | null
  11917. }
  11918. export type IdeaAttachmentMinAggregateOutputType = {
  11919. id: string | null
  11920. ideaId: string | null
  11921. workspaceId: string | null
  11922. filename: string | null
  11923. contentType: string | null
  11924. size: number | null
  11925. url: string | null
  11926. blobPath: string | null
  11927. createdAt: Date | null
  11928. }
  11929. export type IdeaAttachmentMaxAggregateOutputType = {
  11930. id: string | null
  11931. ideaId: string | null
  11932. workspaceId: string | null
  11933. filename: string | null
  11934. contentType: string | null
  11935. size: number | null
  11936. url: string | null
  11937. blobPath: string | null
  11938. createdAt: Date | null
  11939. }
  11940. export type IdeaAttachmentCountAggregateOutputType = {
  11941. id: number
  11942. ideaId: number
  11943. workspaceId: number
  11944. filename: number
  11945. contentType: number
  11946. size: number
  11947. url: number
  11948. blobPath: number
  11949. createdAt: number
  11950. _all: number
  11951. }
  11952. export type IdeaAttachmentAvgAggregateInputType = {
  11953. size?: true
  11954. }
  11955. export type IdeaAttachmentSumAggregateInputType = {
  11956. size?: true
  11957. }
  11958. export type IdeaAttachmentMinAggregateInputType = {
  11959. id?: true
  11960. ideaId?: true
  11961. workspaceId?: true
  11962. filename?: true
  11963. contentType?: true
  11964. size?: true
  11965. url?: true
  11966. blobPath?: true
  11967. createdAt?: true
  11968. }
  11969. export type IdeaAttachmentMaxAggregateInputType = {
  11970. id?: true
  11971. ideaId?: true
  11972. workspaceId?: true
  11973. filename?: true
  11974. contentType?: true
  11975. size?: true
  11976. url?: true
  11977. blobPath?: true
  11978. createdAt?: true
  11979. }
  11980. export type IdeaAttachmentCountAggregateInputType = {
  11981. id?: true
  11982. ideaId?: true
  11983. workspaceId?: true
  11984. filename?: true
  11985. contentType?: true
  11986. size?: true
  11987. url?: true
  11988. blobPath?: true
  11989. createdAt?: true
  11990. _all?: true
  11991. }
  11992. export type IdeaAttachmentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11993. /**
  11994. * Filter which IdeaAttachment to aggregate.
  11995. */
  11996. where?: IdeaAttachmentWhereInput
  11997. /**
  11998. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11999. *
  12000. * Determine the order of IdeaAttachments to fetch.
  12001. */
  12002. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12003. /**
  12004. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12005. *
  12006. * Sets the start position
  12007. */
  12008. cursor?: IdeaAttachmentWhereUniqueInput
  12009. /**
  12010. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12011. *
  12012. * Take `±n` IdeaAttachments from the position of the cursor.
  12013. */
  12014. take?: number
  12015. /**
  12016. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12017. *
  12018. * Skip the first `n` IdeaAttachments.
  12019. */
  12020. skip?: number
  12021. /**
  12022. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12023. *
  12024. * Count returned IdeaAttachments
  12025. **/
  12026. _count?: true | IdeaAttachmentCountAggregateInputType
  12027. /**
  12028. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12029. *
  12030. * Select which fields to average
  12031. **/
  12032. _avg?: IdeaAttachmentAvgAggregateInputType
  12033. /**
  12034. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12035. *
  12036. * Select which fields to sum
  12037. **/
  12038. _sum?: IdeaAttachmentSumAggregateInputType
  12039. /**
  12040. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12041. *
  12042. * Select which fields to find the minimum value
  12043. **/
  12044. _min?: IdeaAttachmentMinAggregateInputType
  12045. /**
  12046. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12047. *
  12048. * Select which fields to find the maximum value
  12049. **/
  12050. _max?: IdeaAttachmentMaxAggregateInputType
  12051. }
  12052. export type GetIdeaAttachmentAggregateType<T extends IdeaAttachmentAggregateArgs> = {
  12053. [P in keyof T & keyof AggregateIdeaAttachment]: P extends '_count' | 'count'
  12054. ? T[P] extends true
  12055. ? number
  12056. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12057. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12058. }
  12059. export type IdeaAttachmentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12060. where?: IdeaAttachmentWhereInput
  12061. orderBy?: IdeaAttachmentOrderByWithAggregationInput | IdeaAttachmentOrderByWithAggregationInput[]
  12062. by: IdeaAttachmentScalarFieldEnum[] | IdeaAttachmentScalarFieldEnum
  12063. having?: IdeaAttachmentScalarWhereWithAggregatesInput
  12064. take?: number
  12065. skip?: number
  12066. _count?: IdeaAttachmentCountAggregateInputType | true
  12067. _avg?: IdeaAttachmentAvgAggregateInputType
  12068. _sum?: IdeaAttachmentSumAggregateInputType
  12069. _min?: IdeaAttachmentMinAggregateInputType
  12070. _max?: IdeaAttachmentMaxAggregateInputType
  12071. }
  12072. export type IdeaAttachmentGroupByOutputType = {
  12073. id: string
  12074. ideaId: string
  12075. workspaceId: string
  12076. filename: string
  12077. contentType: string
  12078. size: number
  12079. url: string
  12080. blobPath: string
  12081. createdAt: Date
  12082. _count: IdeaAttachmentCountAggregateOutputType | null
  12083. _avg: IdeaAttachmentAvgAggregateOutputType | null
  12084. _sum: IdeaAttachmentSumAggregateOutputType | null
  12085. _min: IdeaAttachmentMinAggregateOutputType | null
  12086. _max: IdeaAttachmentMaxAggregateOutputType | null
  12087. }
  12088. type GetIdeaAttachmentGroupByPayload<T extends IdeaAttachmentGroupByArgs> = Prisma.PrismaPromise<
  12089. Array<
  12090. PickEnumerable<IdeaAttachmentGroupByOutputType, T['by']> &
  12091. {
  12092. [P in ((keyof T) & (keyof IdeaAttachmentGroupByOutputType))]: P extends '_count'
  12093. ? T[P] extends boolean
  12094. ? number
  12095. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12096. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12097. }
  12098. >
  12099. >
  12100. export type IdeaAttachmentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12101. id?: boolean
  12102. ideaId?: boolean
  12103. workspaceId?: boolean
  12104. filename?: boolean
  12105. contentType?: boolean
  12106. size?: boolean
  12107. url?: boolean
  12108. blobPath?: boolean
  12109. createdAt?: boolean
  12110. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12111. }, ExtArgs["result"]["ideaAttachment"]>
  12112. export type IdeaAttachmentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12113. id?: boolean
  12114. ideaId?: boolean
  12115. workspaceId?: boolean
  12116. filename?: boolean
  12117. contentType?: boolean
  12118. size?: boolean
  12119. url?: boolean
  12120. blobPath?: boolean
  12121. createdAt?: boolean
  12122. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12123. }, ExtArgs["result"]["ideaAttachment"]>
  12124. export type IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12125. id?: boolean
  12126. ideaId?: boolean
  12127. workspaceId?: boolean
  12128. filename?: boolean
  12129. contentType?: boolean
  12130. size?: boolean
  12131. url?: boolean
  12132. blobPath?: boolean
  12133. createdAt?: boolean
  12134. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12135. }, ExtArgs["result"]["ideaAttachment"]>
  12136. export type IdeaAttachmentSelectScalar = {
  12137. id?: boolean
  12138. ideaId?: boolean
  12139. workspaceId?: boolean
  12140. filename?: boolean
  12141. contentType?: boolean
  12142. size?: boolean
  12143. url?: boolean
  12144. blobPath?: boolean
  12145. createdAt?: boolean
  12146. }
  12147. export type IdeaAttachmentOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "filename" | "contentType" | "size" | "url" | "blobPath" | "createdAt", ExtArgs["result"]["ideaAttachment"]>
  12148. export type IdeaAttachmentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12149. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12150. }
  12151. export type IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12152. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12153. }
  12154. export type IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12155. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12156. }
  12157. export type $IdeaAttachmentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12158. name: "IdeaAttachment"
  12159. objects: {
  12160. idea: Prisma.$IdeaPayload<ExtArgs>
  12161. }
  12162. scalars: $Extensions.GetPayloadResult<{
  12163. id: string
  12164. ideaId: string
  12165. workspaceId: string
  12166. filename: string
  12167. contentType: string
  12168. size: number
  12169. url: string
  12170. blobPath: string
  12171. createdAt: Date
  12172. }, ExtArgs["result"]["ideaAttachment"]>
  12173. composites: {}
  12174. }
  12175. type IdeaAttachmentGetPayload<S extends boolean | null | undefined | IdeaAttachmentDefaultArgs> = $Result.GetResult<Prisma.$IdeaAttachmentPayload, S>
  12176. type IdeaAttachmentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  12177. Omit<IdeaAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  12178. select?: IdeaAttachmentCountAggregateInputType | true
  12179. }
  12180. export interface IdeaAttachmentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  12181. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['IdeaAttachment'], meta: { name: 'IdeaAttachment' } }
  12182. /**
  12183. * Find zero or one IdeaAttachment that matches the filter.
  12184. * @param {IdeaAttachmentFindUniqueArgs} args - Arguments to find a IdeaAttachment
  12185. * @example
  12186. * // Get one IdeaAttachment
  12187. * const ideaAttachment = await prisma.ideaAttachment.findUnique({
  12188. * where: {
  12189. * // ... provide filter here
  12190. * }
  12191. * })
  12192. */
  12193. findUnique<T extends IdeaAttachmentFindUniqueArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12194. /**
  12195. * Find one IdeaAttachment that matches the filter or throw an error with `error.code='P2025'`
  12196. * if no matches were found.
  12197. * @param {IdeaAttachmentFindUniqueOrThrowArgs} args - Arguments to find a IdeaAttachment
  12198. * @example
  12199. * // Get one IdeaAttachment
  12200. * const ideaAttachment = await prisma.ideaAttachment.findUniqueOrThrow({
  12201. * where: {
  12202. * // ... provide filter here
  12203. * }
  12204. * })
  12205. */
  12206. findUniqueOrThrow<T extends IdeaAttachmentFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12207. /**
  12208. * Find the first IdeaAttachment that matches the filter.
  12209. * Note, that providing `undefined` is treated as the value not being there.
  12210. * Read more here: https://pris.ly/d/null-undefined
  12211. * @param {IdeaAttachmentFindFirstArgs} args - Arguments to find a IdeaAttachment
  12212. * @example
  12213. * // Get one IdeaAttachment
  12214. * const ideaAttachment = await prisma.ideaAttachment.findFirst({
  12215. * where: {
  12216. * // ... provide filter here
  12217. * }
  12218. * })
  12219. */
  12220. findFirst<T extends IdeaAttachmentFindFirstArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12221. /**
  12222. * Find the first IdeaAttachment that matches the filter or
  12223. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  12224. * Note, that providing `undefined` is treated as the value not being there.
  12225. * Read more here: https://pris.ly/d/null-undefined
  12226. * @param {IdeaAttachmentFindFirstOrThrowArgs} args - Arguments to find a IdeaAttachment
  12227. * @example
  12228. * // Get one IdeaAttachment
  12229. * const ideaAttachment = await prisma.ideaAttachment.findFirstOrThrow({
  12230. * where: {
  12231. * // ... provide filter here
  12232. * }
  12233. * })
  12234. */
  12235. findFirstOrThrow<T extends IdeaAttachmentFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12236. /**
  12237. * Find zero or more IdeaAttachments that matches the filter.
  12238. * Note, that providing `undefined` is treated as the value not being there.
  12239. * Read more here: https://pris.ly/d/null-undefined
  12240. * @param {IdeaAttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
  12241. * @example
  12242. * // Get all IdeaAttachments
  12243. * const ideaAttachments = await prisma.ideaAttachment.findMany()
  12244. *
  12245. * // Get first 10 IdeaAttachments
  12246. * const ideaAttachments = await prisma.ideaAttachment.findMany({ take: 10 })
  12247. *
  12248. * // Only select the `id`
  12249. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.findMany({ select: { id: true } })
  12250. *
  12251. */
  12252. findMany<T extends IdeaAttachmentFindManyArgs>(args?: SelectSubset<T, IdeaAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  12253. /**
  12254. * Create a IdeaAttachment.
  12255. * @param {IdeaAttachmentCreateArgs} args - Arguments to create a IdeaAttachment.
  12256. * @example
  12257. * // Create one IdeaAttachment
  12258. * const IdeaAttachment = await prisma.ideaAttachment.create({
  12259. * data: {
  12260. * // ... data to create a IdeaAttachment
  12261. * }
  12262. * })
  12263. *
  12264. */
  12265. create<T extends IdeaAttachmentCreateArgs>(args: SelectSubset<T, IdeaAttachmentCreateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12266. /**
  12267. * Create many IdeaAttachments.
  12268. * @param {IdeaAttachmentCreateManyArgs} args - Arguments to create many IdeaAttachments.
  12269. * @example
  12270. * // Create many IdeaAttachments
  12271. * const ideaAttachment = await prisma.ideaAttachment.createMany({
  12272. * data: [
  12273. * // ... provide data here
  12274. * ]
  12275. * })
  12276. *
  12277. */
  12278. createMany<T extends IdeaAttachmentCreateManyArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12279. /**
  12280. * Create many IdeaAttachments and returns the data saved in the database.
  12281. * @param {IdeaAttachmentCreateManyAndReturnArgs} args - Arguments to create many IdeaAttachments.
  12282. * @example
  12283. * // Create many IdeaAttachments
  12284. * const ideaAttachment = await prisma.ideaAttachment.createManyAndReturn({
  12285. * data: [
  12286. * // ... provide data here
  12287. * ]
  12288. * })
  12289. *
  12290. * // Create many IdeaAttachments and only return the `id`
  12291. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.createManyAndReturn({
  12292. * select: { id: true },
  12293. * data: [
  12294. * // ... provide data here
  12295. * ]
  12296. * })
  12297. * Note, that providing `undefined` is treated as the value not being there.
  12298. * Read more here: https://pris.ly/d/null-undefined
  12299. *
  12300. */
  12301. createManyAndReturn<T extends IdeaAttachmentCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  12302. /**
  12303. * Delete a IdeaAttachment.
  12304. * @param {IdeaAttachmentDeleteArgs} args - Arguments to delete one IdeaAttachment.
  12305. * @example
  12306. * // Delete one IdeaAttachment
  12307. * const IdeaAttachment = await prisma.ideaAttachment.delete({
  12308. * where: {
  12309. * // ... filter to delete one IdeaAttachment
  12310. * }
  12311. * })
  12312. *
  12313. */
  12314. delete<T extends IdeaAttachmentDeleteArgs>(args: SelectSubset<T, IdeaAttachmentDeleteArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12315. /**
  12316. * Update one IdeaAttachment.
  12317. * @param {IdeaAttachmentUpdateArgs} args - Arguments to update one IdeaAttachment.
  12318. * @example
  12319. * // Update one IdeaAttachment
  12320. * const ideaAttachment = await prisma.ideaAttachment.update({
  12321. * where: {
  12322. * // ... provide filter here
  12323. * },
  12324. * data: {
  12325. * // ... provide data here
  12326. * }
  12327. * })
  12328. *
  12329. */
  12330. update<T extends IdeaAttachmentUpdateArgs>(args: SelectSubset<T, IdeaAttachmentUpdateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12331. /**
  12332. * Delete zero or more IdeaAttachments.
  12333. * @param {IdeaAttachmentDeleteManyArgs} args - Arguments to filter IdeaAttachments to delete.
  12334. * @example
  12335. * // Delete a few IdeaAttachments
  12336. * const { count } = await prisma.ideaAttachment.deleteMany({
  12337. * where: {
  12338. * // ... provide filter here
  12339. * }
  12340. * })
  12341. *
  12342. */
  12343. deleteMany<T extends IdeaAttachmentDeleteManyArgs>(args?: SelectSubset<T, IdeaAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12344. /**
  12345. * Update zero or more IdeaAttachments.
  12346. * Note, that providing `undefined` is treated as the value not being there.
  12347. * Read more here: https://pris.ly/d/null-undefined
  12348. * @param {IdeaAttachmentUpdateManyArgs} args - Arguments to update one or more rows.
  12349. * @example
  12350. * // Update many IdeaAttachments
  12351. * const ideaAttachment = await prisma.ideaAttachment.updateMany({
  12352. * where: {
  12353. * // ... provide filter here
  12354. * },
  12355. * data: {
  12356. * // ... provide data here
  12357. * }
  12358. * })
  12359. *
  12360. */
  12361. updateMany<T extends IdeaAttachmentUpdateManyArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12362. /**
  12363. * Update zero or more IdeaAttachments and returns the data updated in the database.
  12364. * @param {IdeaAttachmentUpdateManyAndReturnArgs} args - Arguments to update many IdeaAttachments.
  12365. * @example
  12366. * // Update many IdeaAttachments
  12367. * const ideaAttachment = await prisma.ideaAttachment.updateManyAndReturn({
  12368. * where: {
  12369. * // ... provide filter here
  12370. * },
  12371. * data: [
  12372. * // ... provide data here
  12373. * ]
  12374. * })
  12375. *
  12376. * // Update zero or more IdeaAttachments and only return the `id`
  12377. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.updateManyAndReturn({
  12378. * select: { id: true },
  12379. * where: {
  12380. * // ... provide filter here
  12381. * },
  12382. * data: [
  12383. * // ... provide data here
  12384. * ]
  12385. * })
  12386. * Note, that providing `undefined` is treated as the value not being there.
  12387. * Read more here: https://pris.ly/d/null-undefined
  12388. *
  12389. */
  12390. updateManyAndReturn<T extends IdeaAttachmentUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  12391. /**
  12392. * Create or update one IdeaAttachment.
  12393. * @param {IdeaAttachmentUpsertArgs} args - Arguments to update or create a IdeaAttachment.
  12394. * @example
  12395. * // Update or create a IdeaAttachment
  12396. * const ideaAttachment = await prisma.ideaAttachment.upsert({
  12397. * create: {
  12398. * // ... data to create a IdeaAttachment
  12399. * },
  12400. * update: {
  12401. * // ... in case it already exists, update
  12402. * },
  12403. * where: {
  12404. * // ... the filter for the IdeaAttachment we want to update
  12405. * }
  12406. * })
  12407. */
  12408. upsert<T extends IdeaAttachmentUpsertArgs>(args: SelectSubset<T, IdeaAttachmentUpsertArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12409. /**
  12410. * Count the number of IdeaAttachments.
  12411. * Note, that providing `undefined` is treated as the value not being there.
  12412. * Read more here: https://pris.ly/d/null-undefined
  12413. * @param {IdeaAttachmentCountArgs} args - Arguments to filter IdeaAttachments to count.
  12414. * @example
  12415. * // Count the number of IdeaAttachments
  12416. * const count = await prisma.ideaAttachment.count({
  12417. * where: {
  12418. * // ... the filter for the IdeaAttachments we want to count
  12419. * }
  12420. * })
  12421. **/
  12422. count<T extends IdeaAttachmentCountArgs>(
  12423. args?: Subset<T, IdeaAttachmentCountArgs>,
  12424. ): Prisma.PrismaPromise<
  12425. T extends $Utils.Record<'select', any>
  12426. ? T['select'] extends true
  12427. ? number
  12428. : GetScalarType<T['select'], IdeaAttachmentCountAggregateOutputType>
  12429. : number
  12430. >
  12431. /**
  12432. * Allows you to perform aggregations operations on a IdeaAttachment.
  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 {IdeaAttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  12436. * @example
  12437. * // Ordered by age ascending
  12438. * // Where email contains prisma.io
  12439. * // Limited to the 10 users
  12440. * const aggregations = await prisma.user.aggregate({
  12441. * _avg: {
  12442. * age: true,
  12443. * },
  12444. * where: {
  12445. * email: {
  12446. * contains: "prisma.io",
  12447. * },
  12448. * },
  12449. * orderBy: {
  12450. * age: "asc",
  12451. * },
  12452. * take: 10,
  12453. * })
  12454. **/
  12455. aggregate<T extends IdeaAttachmentAggregateArgs>(args: Subset<T, IdeaAttachmentAggregateArgs>): Prisma.PrismaPromise<GetIdeaAttachmentAggregateType<T>>
  12456. /**
  12457. * Group by IdeaAttachment.
  12458. * Note, that providing `undefined` is treated as the value not being there.
  12459. * Read more here: https://pris.ly/d/null-undefined
  12460. * @param {IdeaAttachmentGroupByArgs} args - Group by arguments.
  12461. * @example
  12462. * // Group by city, order by createdAt, get count
  12463. * const result = await prisma.user.groupBy({
  12464. * by: ['city', 'createdAt'],
  12465. * orderBy: {
  12466. * createdAt: true
  12467. * },
  12468. * _count: {
  12469. * _all: true
  12470. * },
  12471. * })
  12472. *
  12473. **/
  12474. groupBy<
  12475. T extends IdeaAttachmentGroupByArgs,
  12476. HasSelectOrTake extends Or<
  12477. Extends<'skip', Keys<T>>,
  12478. Extends<'take', Keys<T>>
  12479. >,
  12480. OrderByArg extends True extends HasSelectOrTake
  12481. ? { orderBy: IdeaAttachmentGroupByArgs['orderBy'] }
  12482. : { orderBy?: IdeaAttachmentGroupByArgs['orderBy'] },
  12483. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  12484. ByFields extends MaybeTupleToUnion<T['by']>,
  12485. ByValid extends Has<ByFields, OrderFields>,
  12486. HavingFields extends GetHavingFields<T['having']>,
  12487. HavingValid extends Has<ByFields, HavingFields>,
  12488. ByEmpty extends T['by'] extends never[] ? True : False,
  12489. InputErrors extends ByEmpty extends True
  12490. ? `Error: "by" must not be empty.`
  12491. : HavingValid extends False
  12492. ? {
  12493. [P in HavingFields]: P extends ByFields
  12494. ? never
  12495. : P extends string
  12496. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  12497. : [
  12498. Error,
  12499. 'Field ',
  12500. P,
  12501. ` in "having" needs to be provided in "by"`,
  12502. ]
  12503. }[HavingFields]
  12504. : 'take' extends Keys<T>
  12505. ? 'orderBy' extends Keys<T>
  12506. ? ByValid extends True
  12507. ? {}
  12508. : {
  12509. [P in OrderFields]: P extends ByFields
  12510. ? never
  12511. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12512. }[OrderFields]
  12513. : 'Error: If you provide "take", you also need to provide "orderBy"'
  12514. : 'skip' extends Keys<T>
  12515. ? 'orderBy' extends Keys<T>
  12516. ? ByValid extends True
  12517. ? {}
  12518. : {
  12519. [P in OrderFields]: P extends ByFields
  12520. ? never
  12521. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12522. }[OrderFields]
  12523. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  12524. : ByValid extends True
  12525. ? {}
  12526. : {
  12527. [P in OrderFields]: P extends ByFields
  12528. ? never
  12529. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12530. }[OrderFields]
  12531. >(args: SubsetIntersection<T, IdeaAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  12532. /**
  12533. * Fields of the IdeaAttachment model
  12534. */
  12535. readonly fields: IdeaAttachmentFieldRefs;
  12536. }
  12537. /**
  12538. * The delegate class that acts as a "Promise-like" for IdeaAttachment.
  12539. * Why is this prefixed with `Prisma__`?
  12540. * Because we want to prevent naming conflicts as mentioned in
  12541. * https://github.com/prisma/prisma-client-js/issues/707
  12542. */
  12543. export interface Prisma__IdeaAttachmentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  12544. readonly [Symbol.toStringTag]: "PrismaPromise"
  12545. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  12546. /**
  12547. * Attaches callbacks for the resolution and/or rejection of the Promise.
  12548. * @param onfulfilled The callback to execute when the Promise is resolved.
  12549. * @param onrejected The callback to execute when the Promise is rejected.
  12550. * @returns A Promise for the completion of which ever callback is executed.
  12551. */
  12552. 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>
  12553. /**
  12554. * Attaches a callback for only the rejection of the Promise.
  12555. * @param onrejected The callback to execute when the Promise is rejected.
  12556. * @returns A Promise for the completion of the callback.
  12557. */
  12558. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  12559. /**
  12560. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  12561. * resolved value cannot be modified from the callback.
  12562. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  12563. * @returns A Promise for the completion of the callback.
  12564. */
  12565. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  12566. }
  12567. /**
  12568. * Fields of the IdeaAttachment model
  12569. */
  12570. interface IdeaAttachmentFieldRefs {
  12571. readonly id: FieldRef<"IdeaAttachment", 'String'>
  12572. readonly ideaId: FieldRef<"IdeaAttachment", 'String'>
  12573. readonly workspaceId: FieldRef<"IdeaAttachment", 'String'>
  12574. readonly filename: FieldRef<"IdeaAttachment", 'String'>
  12575. readonly contentType: FieldRef<"IdeaAttachment", 'String'>
  12576. readonly size: FieldRef<"IdeaAttachment", 'Int'>
  12577. readonly url: FieldRef<"IdeaAttachment", 'String'>
  12578. readonly blobPath: FieldRef<"IdeaAttachment", 'String'>
  12579. readonly createdAt: FieldRef<"IdeaAttachment", 'DateTime'>
  12580. }
  12581. // Custom InputTypes
  12582. /**
  12583. * IdeaAttachment findUnique
  12584. */
  12585. export type IdeaAttachmentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12586. /**
  12587. * Select specific fields to fetch from the IdeaAttachment
  12588. */
  12589. select?: IdeaAttachmentSelect<ExtArgs> | null
  12590. /**
  12591. * Omit specific fields from the IdeaAttachment
  12592. */
  12593. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12594. /**
  12595. * Choose, which related nodes to fetch as well
  12596. */
  12597. include?: IdeaAttachmentInclude<ExtArgs> | null
  12598. /**
  12599. * Filter, which IdeaAttachment to fetch.
  12600. */
  12601. where: IdeaAttachmentWhereUniqueInput
  12602. }
  12603. /**
  12604. * IdeaAttachment findUniqueOrThrow
  12605. */
  12606. export type IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12607. /**
  12608. * Select specific fields to fetch from the IdeaAttachment
  12609. */
  12610. select?: IdeaAttachmentSelect<ExtArgs> | null
  12611. /**
  12612. * Omit specific fields from the IdeaAttachment
  12613. */
  12614. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12615. /**
  12616. * Choose, which related nodes to fetch as well
  12617. */
  12618. include?: IdeaAttachmentInclude<ExtArgs> | null
  12619. /**
  12620. * Filter, which IdeaAttachment to fetch.
  12621. */
  12622. where: IdeaAttachmentWhereUniqueInput
  12623. }
  12624. /**
  12625. * IdeaAttachment findFirst
  12626. */
  12627. export type IdeaAttachmentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12628. /**
  12629. * Select specific fields to fetch from the IdeaAttachment
  12630. */
  12631. select?: IdeaAttachmentSelect<ExtArgs> | null
  12632. /**
  12633. * Omit specific fields from the IdeaAttachment
  12634. */
  12635. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12636. /**
  12637. * Choose, which related nodes to fetch as well
  12638. */
  12639. include?: IdeaAttachmentInclude<ExtArgs> | null
  12640. /**
  12641. * Filter, which IdeaAttachment to fetch.
  12642. */
  12643. where?: IdeaAttachmentWhereInput
  12644. /**
  12645. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12646. *
  12647. * Determine the order of IdeaAttachments to fetch.
  12648. */
  12649. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12650. /**
  12651. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12652. *
  12653. * Sets the position for searching for IdeaAttachments.
  12654. */
  12655. cursor?: IdeaAttachmentWhereUniqueInput
  12656. /**
  12657. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12658. *
  12659. * Take `±n` IdeaAttachments from the position of the cursor.
  12660. */
  12661. take?: number
  12662. /**
  12663. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12664. *
  12665. * Skip the first `n` IdeaAttachments.
  12666. */
  12667. skip?: number
  12668. /**
  12669. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12670. *
  12671. * Filter by unique combinations of IdeaAttachments.
  12672. */
  12673. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12674. }
  12675. /**
  12676. * IdeaAttachment findFirstOrThrow
  12677. */
  12678. export type IdeaAttachmentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12679. /**
  12680. * Select specific fields to fetch from the IdeaAttachment
  12681. */
  12682. select?: IdeaAttachmentSelect<ExtArgs> | null
  12683. /**
  12684. * Omit specific fields from the IdeaAttachment
  12685. */
  12686. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12687. /**
  12688. * Choose, which related nodes to fetch as well
  12689. */
  12690. include?: IdeaAttachmentInclude<ExtArgs> | null
  12691. /**
  12692. * Filter, which IdeaAttachment to fetch.
  12693. */
  12694. where?: IdeaAttachmentWhereInput
  12695. /**
  12696. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12697. *
  12698. * Determine the order of IdeaAttachments to fetch.
  12699. */
  12700. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12701. /**
  12702. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12703. *
  12704. * Sets the position for searching for IdeaAttachments.
  12705. */
  12706. cursor?: IdeaAttachmentWhereUniqueInput
  12707. /**
  12708. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12709. *
  12710. * Take `±n` IdeaAttachments from the position of the cursor.
  12711. */
  12712. take?: number
  12713. /**
  12714. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12715. *
  12716. * Skip the first `n` IdeaAttachments.
  12717. */
  12718. skip?: number
  12719. /**
  12720. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12721. *
  12722. * Filter by unique combinations of IdeaAttachments.
  12723. */
  12724. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12725. }
  12726. /**
  12727. * IdeaAttachment findMany
  12728. */
  12729. export type IdeaAttachmentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12730. /**
  12731. * Select specific fields to fetch from the IdeaAttachment
  12732. */
  12733. select?: IdeaAttachmentSelect<ExtArgs> | null
  12734. /**
  12735. * Omit specific fields from the IdeaAttachment
  12736. */
  12737. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12738. /**
  12739. * Choose, which related nodes to fetch as well
  12740. */
  12741. include?: IdeaAttachmentInclude<ExtArgs> | null
  12742. /**
  12743. * Filter, which IdeaAttachments to fetch.
  12744. */
  12745. where?: IdeaAttachmentWhereInput
  12746. /**
  12747. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12748. *
  12749. * Determine the order of IdeaAttachments to fetch.
  12750. */
  12751. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12752. /**
  12753. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12754. *
  12755. * Sets the position for listing IdeaAttachments.
  12756. */
  12757. cursor?: IdeaAttachmentWhereUniqueInput
  12758. /**
  12759. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12760. *
  12761. * Take `±n` IdeaAttachments from the position of the cursor.
  12762. */
  12763. take?: number
  12764. /**
  12765. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12766. *
  12767. * Skip the first `n` IdeaAttachments.
  12768. */
  12769. skip?: number
  12770. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12771. }
  12772. /**
  12773. * IdeaAttachment create
  12774. */
  12775. export type IdeaAttachmentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12776. /**
  12777. * Select specific fields to fetch from the IdeaAttachment
  12778. */
  12779. select?: IdeaAttachmentSelect<ExtArgs> | null
  12780. /**
  12781. * Omit specific fields from the IdeaAttachment
  12782. */
  12783. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12784. /**
  12785. * Choose, which related nodes to fetch as well
  12786. */
  12787. include?: IdeaAttachmentInclude<ExtArgs> | null
  12788. /**
  12789. * The data needed to create a IdeaAttachment.
  12790. */
  12791. data: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  12792. }
  12793. /**
  12794. * IdeaAttachment createMany
  12795. */
  12796. export type IdeaAttachmentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12797. /**
  12798. * The data used to create many IdeaAttachments.
  12799. */
  12800. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  12801. skipDuplicates?: boolean
  12802. }
  12803. /**
  12804. * IdeaAttachment createManyAndReturn
  12805. */
  12806. export type IdeaAttachmentCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12807. /**
  12808. * Select specific fields to fetch from the IdeaAttachment
  12809. */
  12810. select?: IdeaAttachmentSelectCreateManyAndReturn<ExtArgs> | null
  12811. /**
  12812. * Omit specific fields from the IdeaAttachment
  12813. */
  12814. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12815. /**
  12816. * The data used to create many IdeaAttachments.
  12817. */
  12818. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  12819. skipDuplicates?: boolean
  12820. /**
  12821. * Choose, which related nodes to fetch as well
  12822. */
  12823. include?: IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs> | null
  12824. }
  12825. /**
  12826. * IdeaAttachment update
  12827. */
  12828. export type IdeaAttachmentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12829. /**
  12830. * Select specific fields to fetch from the IdeaAttachment
  12831. */
  12832. select?: IdeaAttachmentSelect<ExtArgs> | null
  12833. /**
  12834. * Omit specific fields from the IdeaAttachment
  12835. */
  12836. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12837. /**
  12838. * Choose, which related nodes to fetch as well
  12839. */
  12840. include?: IdeaAttachmentInclude<ExtArgs> | null
  12841. /**
  12842. * The data needed to update a IdeaAttachment.
  12843. */
  12844. data: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  12845. /**
  12846. * Choose, which IdeaAttachment to update.
  12847. */
  12848. where: IdeaAttachmentWhereUniqueInput
  12849. }
  12850. /**
  12851. * IdeaAttachment updateMany
  12852. */
  12853. export type IdeaAttachmentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12854. /**
  12855. * The data used to update IdeaAttachments.
  12856. */
  12857. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  12858. /**
  12859. * Filter which IdeaAttachments to update
  12860. */
  12861. where?: IdeaAttachmentWhereInput
  12862. /**
  12863. * Limit how many IdeaAttachments to update.
  12864. */
  12865. limit?: number
  12866. }
  12867. /**
  12868. * IdeaAttachment updateManyAndReturn
  12869. */
  12870. export type IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12871. /**
  12872. * Select specific fields to fetch from the IdeaAttachment
  12873. */
  12874. select?: IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
  12875. /**
  12876. * Omit specific fields from the IdeaAttachment
  12877. */
  12878. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12879. /**
  12880. * The data used to update IdeaAttachments.
  12881. */
  12882. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  12883. /**
  12884. * Filter which IdeaAttachments to update
  12885. */
  12886. where?: IdeaAttachmentWhereInput
  12887. /**
  12888. * Limit how many IdeaAttachments to update.
  12889. */
  12890. limit?: number
  12891. /**
  12892. * Choose, which related nodes to fetch as well
  12893. */
  12894. include?: IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
  12895. }
  12896. /**
  12897. * IdeaAttachment upsert
  12898. */
  12899. export type IdeaAttachmentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12900. /**
  12901. * Select specific fields to fetch from the IdeaAttachment
  12902. */
  12903. select?: IdeaAttachmentSelect<ExtArgs> | null
  12904. /**
  12905. * Omit specific fields from the IdeaAttachment
  12906. */
  12907. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12908. /**
  12909. * Choose, which related nodes to fetch as well
  12910. */
  12911. include?: IdeaAttachmentInclude<ExtArgs> | null
  12912. /**
  12913. * The filter to search for the IdeaAttachment to update in case it exists.
  12914. */
  12915. where: IdeaAttachmentWhereUniqueInput
  12916. /**
  12917. * In case the IdeaAttachment found by the `where` argument doesn't exist, create a new IdeaAttachment with this data.
  12918. */
  12919. create: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  12920. /**
  12921. * In case the IdeaAttachment was found with the provided `where` argument, update it with this data.
  12922. */
  12923. update: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  12924. }
  12925. /**
  12926. * IdeaAttachment delete
  12927. */
  12928. export type IdeaAttachmentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12929. /**
  12930. * Select specific fields to fetch from the IdeaAttachment
  12931. */
  12932. select?: IdeaAttachmentSelect<ExtArgs> | null
  12933. /**
  12934. * Omit specific fields from the IdeaAttachment
  12935. */
  12936. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12937. /**
  12938. * Choose, which related nodes to fetch as well
  12939. */
  12940. include?: IdeaAttachmentInclude<ExtArgs> | null
  12941. /**
  12942. * Filter which IdeaAttachment to delete.
  12943. */
  12944. where: IdeaAttachmentWhereUniqueInput
  12945. }
  12946. /**
  12947. * IdeaAttachment deleteMany
  12948. */
  12949. export type IdeaAttachmentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12950. /**
  12951. * Filter which IdeaAttachments to delete
  12952. */
  12953. where?: IdeaAttachmentWhereInput
  12954. /**
  12955. * Limit how many IdeaAttachments to delete.
  12956. */
  12957. limit?: number
  12958. }
  12959. /**
  12960. * IdeaAttachment without action
  12961. */
  12962. export type IdeaAttachmentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12963. /**
  12964. * Select specific fields to fetch from the IdeaAttachment
  12965. */
  12966. select?: IdeaAttachmentSelect<ExtArgs> | null
  12967. /**
  12968. * Omit specific fields from the IdeaAttachment
  12969. */
  12970. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12971. /**
  12972. * Choose, which related nodes to fetch as well
  12973. */
  12974. include?: IdeaAttachmentInclude<ExtArgs> | null
  12975. }
  12976. /**
  12977. * Model QualificationQuestion
  12978. */
  12979. export type AggregateQualificationQuestion = {
  12980. _count: QualificationQuestionCountAggregateOutputType | null
  12981. _min: QualificationQuestionMinAggregateOutputType | null
  12982. _max: QualificationQuestionMaxAggregateOutputType | null
  12983. }
  12984. export type QualificationQuestionMinAggregateOutputType = {
  12985. id: string | null
  12986. ideaId: string | null
  12987. workspaceId: string | null
  12988. questionText: string | null
  12989. responseToken: string | null
  12990. askedAt: Date | null
  12991. responseText: string | null
  12992. answeredAt: Date | null
  12993. }
  12994. export type QualificationQuestionMaxAggregateOutputType = {
  12995. id: string | null
  12996. ideaId: string | null
  12997. workspaceId: string | null
  12998. questionText: string | null
  12999. responseToken: string | null
  13000. askedAt: Date | null
  13001. responseText: string | null
  13002. answeredAt: Date | null
  13003. }
  13004. export type QualificationQuestionCountAggregateOutputType = {
  13005. id: number
  13006. ideaId: number
  13007. workspaceId: number
  13008. questionText: number
  13009. responseToken: number
  13010. askedAt: number
  13011. responseText: number
  13012. answeredAt: number
  13013. _all: number
  13014. }
  13015. export type QualificationQuestionMinAggregateInputType = {
  13016. id?: true
  13017. ideaId?: true
  13018. workspaceId?: true
  13019. questionText?: true
  13020. responseToken?: true
  13021. askedAt?: true
  13022. responseText?: true
  13023. answeredAt?: true
  13024. }
  13025. export type QualificationQuestionMaxAggregateInputType = {
  13026. id?: true
  13027. ideaId?: true
  13028. workspaceId?: true
  13029. questionText?: true
  13030. responseToken?: true
  13031. askedAt?: true
  13032. responseText?: true
  13033. answeredAt?: true
  13034. }
  13035. export type QualificationQuestionCountAggregateInputType = {
  13036. id?: true
  13037. ideaId?: true
  13038. workspaceId?: true
  13039. questionText?: true
  13040. responseToken?: true
  13041. askedAt?: true
  13042. responseText?: true
  13043. answeredAt?: true
  13044. _all?: true
  13045. }
  13046. export type QualificationQuestionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13047. /**
  13048. * Filter which QualificationQuestion to aggregate.
  13049. */
  13050. where?: QualificationQuestionWhereInput
  13051. /**
  13052. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13053. *
  13054. * Determine the order of QualificationQuestions to fetch.
  13055. */
  13056. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13057. /**
  13058. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13059. *
  13060. * Sets the start position
  13061. */
  13062. cursor?: QualificationQuestionWhereUniqueInput
  13063. /**
  13064. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13065. *
  13066. * Take `±n` QualificationQuestions from the position of the cursor.
  13067. */
  13068. take?: number
  13069. /**
  13070. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13071. *
  13072. * Skip the first `n` QualificationQuestions.
  13073. */
  13074. skip?: number
  13075. /**
  13076. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13077. *
  13078. * Count returned QualificationQuestions
  13079. **/
  13080. _count?: true | QualificationQuestionCountAggregateInputType
  13081. /**
  13082. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13083. *
  13084. * Select which fields to find the minimum value
  13085. **/
  13086. _min?: QualificationQuestionMinAggregateInputType
  13087. /**
  13088. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13089. *
  13090. * Select which fields to find the maximum value
  13091. **/
  13092. _max?: QualificationQuestionMaxAggregateInputType
  13093. }
  13094. export type GetQualificationQuestionAggregateType<T extends QualificationQuestionAggregateArgs> = {
  13095. [P in keyof T & keyof AggregateQualificationQuestion]: P extends '_count' | 'count'
  13096. ? T[P] extends true
  13097. ? number
  13098. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13099. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13100. }
  13101. export type QualificationQuestionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13102. where?: QualificationQuestionWhereInput
  13103. orderBy?: QualificationQuestionOrderByWithAggregationInput | QualificationQuestionOrderByWithAggregationInput[]
  13104. by: QualificationQuestionScalarFieldEnum[] | QualificationQuestionScalarFieldEnum
  13105. having?: QualificationQuestionScalarWhereWithAggregatesInput
  13106. take?: number
  13107. skip?: number
  13108. _count?: QualificationQuestionCountAggregateInputType | true
  13109. _min?: QualificationQuestionMinAggregateInputType
  13110. _max?: QualificationQuestionMaxAggregateInputType
  13111. }
  13112. export type QualificationQuestionGroupByOutputType = {
  13113. id: string
  13114. ideaId: string
  13115. workspaceId: string
  13116. questionText: string
  13117. responseToken: string
  13118. askedAt: Date
  13119. responseText: string | null
  13120. answeredAt: Date | null
  13121. _count: QualificationQuestionCountAggregateOutputType | null
  13122. _min: QualificationQuestionMinAggregateOutputType | null
  13123. _max: QualificationQuestionMaxAggregateOutputType | null
  13124. }
  13125. type GetQualificationQuestionGroupByPayload<T extends QualificationQuestionGroupByArgs> = Prisma.PrismaPromise<
  13126. Array<
  13127. PickEnumerable<QualificationQuestionGroupByOutputType, T['by']> &
  13128. {
  13129. [P in ((keyof T) & (keyof QualificationQuestionGroupByOutputType))]: P extends '_count'
  13130. ? T[P] extends boolean
  13131. ? number
  13132. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13133. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13134. }
  13135. >
  13136. >
  13137. export type QualificationQuestionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13138. id?: boolean
  13139. ideaId?: boolean
  13140. workspaceId?: boolean
  13141. questionText?: boolean
  13142. responseToken?: boolean
  13143. askedAt?: boolean
  13144. responseText?: boolean
  13145. answeredAt?: boolean
  13146. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13147. }, ExtArgs["result"]["qualificationQuestion"]>
  13148. export type QualificationQuestionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13149. id?: boolean
  13150. ideaId?: boolean
  13151. workspaceId?: boolean
  13152. questionText?: boolean
  13153. responseToken?: boolean
  13154. askedAt?: boolean
  13155. responseText?: boolean
  13156. answeredAt?: boolean
  13157. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13158. }, ExtArgs["result"]["qualificationQuestion"]>
  13159. export type QualificationQuestionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13160. id?: boolean
  13161. ideaId?: boolean
  13162. workspaceId?: boolean
  13163. questionText?: boolean
  13164. responseToken?: boolean
  13165. askedAt?: boolean
  13166. responseText?: boolean
  13167. answeredAt?: boolean
  13168. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13169. }, ExtArgs["result"]["qualificationQuestion"]>
  13170. export type QualificationQuestionSelectScalar = {
  13171. id?: boolean
  13172. ideaId?: boolean
  13173. workspaceId?: boolean
  13174. questionText?: boolean
  13175. responseToken?: boolean
  13176. askedAt?: boolean
  13177. responseText?: boolean
  13178. answeredAt?: boolean
  13179. }
  13180. export type QualificationQuestionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "questionText" | "responseToken" | "askedAt" | "responseText" | "answeredAt", ExtArgs["result"]["qualificationQuestion"]>
  13181. export type QualificationQuestionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13182. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13183. }
  13184. export type QualificationQuestionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13185. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13186. }
  13187. export type QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13188. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13189. }
  13190. export type $QualificationQuestionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13191. name: "QualificationQuestion"
  13192. objects: {
  13193. idea: Prisma.$IdeaPayload<ExtArgs>
  13194. }
  13195. scalars: $Extensions.GetPayloadResult<{
  13196. id: string
  13197. ideaId: string
  13198. workspaceId: string
  13199. questionText: string
  13200. responseToken: string
  13201. askedAt: Date
  13202. responseText: string | null
  13203. answeredAt: Date | null
  13204. }, ExtArgs["result"]["qualificationQuestion"]>
  13205. composites: {}
  13206. }
  13207. type QualificationQuestionGetPayload<S extends boolean | null | undefined | QualificationQuestionDefaultArgs> = $Result.GetResult<Prisma.$QualificationQuestionPayload, S>
  13208. type QualificationQuestionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  13209. Omit<QualificationQuestionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  13210. select?: QualificationQuestionCountAggregateInputType | true
  13211. }
  13212. export interface QualificationQuestionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  13213. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['QualificationQuestion'], meta: { name: 'QualificationQuestion' } }
  13214. /**
  13215. * Find zero or one QualificationQuestion that matches the filter.
  13216. * @param {QualificationQuestionFindUniqueArgs} args - Arguments to find a QualificationQuestion
  13217. * @example
  13218. * // Get one QualificationQuestion
  13219. * const qualificationQuestion = await prisma.qualificationQuestion.findUnique({
  13220. * where: {
  13221. * // ... provide filter here
  13222. * }
  13223. * })
  13224. */
  13225. findUnique<T extends QualificationQuestionFindUniqueArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13226. /**
  13227. * Find one QualificationQuestion that matches the filter or throw an error with `error.code='P2025'`
  13228. * if no matches were found.
  13229. * @param {QualificationQuestionFindUniqueOrThrowArgs} args - Arguments to find a QualificationQuestion
  13230. * @example
  13231. * // Get one QualificationQuestion
  13232. * const qualificationQuestion = await prisma.qualificationQuestion.findUniqueOrThrow({
  13233. * where: {
  13234. * // ... provide filter here
  13235. * }
  13236. * })
  13237. */
  13238. findUniqueOrThrow<T extends QualificationQuestionFindUniqueOrThrowArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13239. /**
  13240. * Find the first QualificationQuestion that matches the filter.
  13241. * Note, that providing `undefined` is treated as the value not being there.
  13242. * Read more here: https://pris.ly/d/null-undefined
  13243. * @param {QualificationQuestionFindFirstArgs} args - Arguments to find a QualificationQuestion
  13244. * @example
  13245. * // Get one QualificationQuestion
  13246. * const qualificationQuestion = await prisma.qualificationQuestion.findFirst({
  13247. * where: {
  13248. * // ... provide filter here
  13249. * }
  13250. * })
  13251. */
  13252. findFirst<T extends QualificationQuestionFindFirstArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13253. /**
  13254. * Find the first QualificationQuestion that matches the filter or
  13255. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  13256. * Note, that providing `undefined` is treated as the value not being there.
  13257. * Read more here: https://pris.ly/d/null-undefined
  13258. * @param {QualificationQuestionFindFirstOrThrowArgs} args - Arguments to find a QualificationQuestion
  13259. * @example
  13260. * // Get one QualificationQuestion
  13261. * const qualificationQuestion = await prisma.qualificationQuestion.findFirstOrThrow({
  13262. * where: {
  13263. * // ... provide filter here
  13264. * }
  13265. * })
  13266. */
  13267. findFirstOrThrow<T extends QualificationQuestionFindFirstOrThrowArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13268. /**
  13269. * Find zero or more QualificationQuestions that matches the filter.
  13270. * Note, that providing `undefined` is treated as the value not being there.
  13271. * Read more here: https://pris.ly/d/null-undefined
  13272. * @param {QualificationQuestionFindManyArgs} args - Arguments to filter and select certain fields only.
  13273. * @example
  13274. * // Get all QualificationQuestions
  13275. * const qualificationQuestions = await prisma.qualificationQuestion.findMany()
  13276. *
  13277. * // Get first 10 QualificationQuestions
  13278. * const qualificationQuestions = await prisma.qualificationQuestion.findMany({ take: 10 })
  13279. *
  13280. * // Only select the `id`
  13281. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.findMany({ select: { id: true } })
  13282. *
  13283. */
  13284. findMany<T extends QualificationQuestionFindManyArgs>(args?: SelectSubset<T, QualificationQuestionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  13285. /**
  13286. * Create a QualificationQuestion.
  13287. * @param {QualificationQuestionCreateArgs} args - Arguments to create a QualificationQuestion.
  13288. * @example
  13289. * // Create one QualificationQuestion
  13290. * const QualificationQuestion = await prisma.qualificationQuestion.create({
  13291. * data: {
  13292. * // ... data to create a QualificationQuestion
  13293. * }
  13294. * })
  13295. *
  13296. */
  13297. create<T extends QualificationQuestionCreateArgs>(args: SelectSubset<T, QualificationQuestionCreateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13298. /**
  13299. * Create many QualificationQuestions.
  13300. * @param {QualificationQuestionCreateManyArgs} args - Arguments to create many QualificationQuestions.
  13301. * @example
  13302. * // Create many QualificationQuestions
  13303. * const qualificationQuestion = await prisma.qualificationQuestion.createMany({
  13304. * data: [
  13305. * // ... provide data here
  13306. * ]
  13307. * })
  13308. *
  13309. */
  13310. createMany<T extends QualificationQuestionCreateManyArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13311. /**
  13312. * Create many QualificationQuestions and returns the data saved in the database.
  13313. * @param {QualificationQuestionCreateManyAndReturnArgs} args - Arguments to create many QualificationQuestions.
  13314. * @example
  13315. * // Create many QualificationQuestions
  13316. * const qualificationQuestion = await prisma.qualificationQuestion.createManyAndReturn({
  13317. * data: [
  13318. * // ... provide data here
  13319. * ]
  13320. * })
  13321. *
  13322. * // Create many QualificationQuestions and only return the `id`
  13323. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.createManyAndReturn({
  13324. * select: { id: true },
  13325. * data: [
  13326. * // ... provide data here
  13327. * ]
  13328. * })
  13329. * Note, that providing `undefined` is treated as the value not being there.
  13330. * Read more here: https://pris.ly/d/null-undefined
  13331. *
  13332. */
  13333. createManyAndReturn<T extends QualificationQuestionCreateManyAndReturnArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  13334. /**
  13335. * Delete a QualificationQuestion.
  13336. * @param {QualificationQuestionDeleteArgs} args - Arguments to delete one QualificationQuestion.
  13337. * @example
  13338. * // Delete one QualificationQuestion
  13339. * const QualificationQuestion = await prisma.qualificationQuestion.delete({
  13340. * where: {
  13341. * // ... filter to delete one QualificationQuestion
  13342. * }
  13343. * })
  13344. *
  13345. */
  13346. delete<T extends QualificationQuestionDeleteArgs>(args: SelectSubset<T, QualificationQuestionDeleteArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13347. /**
  13348. * Update one QualificationQuestion.
  13349. * @param {QualificationQuestionUpdateArgs} args - Arguments to update one QualificationQuestion.
  13350. * @example
  13351. * // Update one QualificationQuestion
  13352. * const qualificationQuestion = await prisma.qualificationQuestion.update({
  13353. * where: {
  13354. * // ... provide filter here
  13355. * },
  13356. * data: {
  13357. * // ... provide data here
  13358. * }
  13359. * })
  13360. *
  13361. */
  13362. update<T extends QualificationQuestionUpdateArgs>(args: SelectSubset<T, QualificationQuestionUpdateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13363. /**
  13364. * Delete zero or more QualificationQuestions.
  13365. * @param {QualificationQuestionDeleteManyArgs} args - Arguments to filter QualificationQuestions to delete.
  13366. * @example
  13367. * // Delete a few QualificationQuestions
  13368. * const { count } = await prisma.qualificationQuestion.deleteMany({
  13369. * where: {
  13370. * // ... provide filter here
  13371. * }
  13372. * })
  13373. *
  13374. */
  13375. deleteMany<T extends QualificationQuestionDeleteManyArgs>(args?: SelectSubset<T, QualificationQuestionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13376. /**
  13377. * Update zero or more QualificationQuestions.
  13378. * Note, that providing `undefined` is treated as the value not being there.
  13379. * Read more here: https://pris.ly/d/null-undefined
  13380. * @param {QualificationQuestionUpdateManyArgs} args - Arguments to update one or more rows.
  13381. * @example
  13382. * // Update many QualificationQuestions
  13383. * const qualificationQuestion = await prisma.qualificationQuestion.updateMany({
  13384. * where: {
  13385. * // ... provide filter here
  13386. * },
  13387. * data: {
  13388. * // ... provide data here
  13389. * }
  13390. * })
  13391. *
  13392. */
  13393. updateMany<T extends QualificationQuestionUpdateManyArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13394. /**
  13395. * Update zero or more QualificationQuestions and returns the data updated in the database.
  13396. * @param {QualificationQuestionUpdateManyAndReturnArgs} args - Arguments to update many QualificationQuestions.
  13397. * @example
  13398. * // Update many QualificationQuestions
  13399. * const qualificationQuestion = await prisma.qualificationQuestion.updateManyAndReturn({
  13400. * where: {
  13401. * // ... provide filter here
  13402. * },
  13403. * data: [
  13404. * // ... provide data here
  13405. * ]
  13406. * })
  13407. *
  13408. * // Update zero or more QualificationQuestions and only return the `id`
  13409. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.updateManyAndReturn({
  13410. * select: { id: true },
  13411. * where: {
  13412. * // ... provide filter here
  13413. * },
  13414. * data: [
  13415. * // ... provide data here
  13416. * ]
  13417. * })
  13418. * Note, that providing `undefined` is treated as the value not being there.
  13419. * Read more here: https://pris.ly/d/null-undefined
  13420. *
  13421. */
  13422. updateManyAndReturn<T extends QualificationQuestionUpdateManyAndReturnArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  13423. /**
  13424. * Create or update one QualificationQuestion.
  13425. * @param {QualificationQuestionUpsertArgs} args - Arguments to update or create a QualificationQuestion.
  13426. * @example
  13427. * // Update or create a QualificationQuestion
  13428. * const qualificationQuestion = await prisma.qualificationQuestion.upsert({
  13429. * create: {
  13430. * // ... data to create a QualificationQuestion
  13431. * },
  13432. * update: {
  13433. * // ... in case it already exists, update
  13434. * },
  13435. * where: {
  13436. * // ... the filter for the QualificationQuestion we want to update
  13437. * }
  13438. * })
  13439. */
  13440. upsert<T extends QualificationQuestionUpsertArgs>(args: SelectSubset<T, QualificationQuestionUpsertArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13441. /**
  13442. * Count the number of QualificationQuestions.
  13443. * Note, that providing `undefined` is treated as the value not being there.
  13444. * Read more here: https://pris.ly/d/null-undefined
  13445. * @param {QualificationQuestionCountArgs} args - Arguments to filter QualificationQuestions to count.
  13446. * @example
  13447. * // Count the number of QualificationQuestions
  13448. * const count = await prisma.qualificationQuestion.count({
  13449. * where: {
  13450. * // ... the filter for the QualificationQuestions we want to count
  13451. * }
  13452. * })
  13453. **/
  13454. count<T extends QualificationQuestionCountArgs>(
  13455. args?: Subset<T, QualificationQuestionCountArgs>,
  13456. ): Prisma.PrismaPromise<
  13457. T extends $Utils.Record<'select', any>
  13458. ? T['select'] extends true
  13459. ? number
  13460. : GetScalarType<T['select'], QualificationQuestionCountAggregateOutputType>
  13461. : number
  13462. >
  13463. /**
  13464. * Allows you to perform aggregations operations on a QualificationQuestion.
  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 {QualificationQuestionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  13468. * @example
  13469. * // Ordered by age ascending
  13470. * // Where email contains prisma.io
  13471. * // Limited to the 10 users
  13472. * const aggregations = await prisma.user.aggregate({
  13473. * _avg: {
  13474. * age: true,
  13475. * },
  13476. * where: {
  13477. * email: {
  13478. * contains: "prisma.io",
  13479. * },
  13480. * },
  13481. * orderBy: {
  13482. * age: "asc",
  13483. * },
  13484. * take: 10,
  13485. * })
  13486. **/
  13487. aggregate<T extends QualificationQuestionAggregateArgs>(args: Subset<T, QualificationQuestionAggregateArgs>): Prisma.PrismaPromise<GetQualificationQuestionAggregateType<T>>
  13488. /**
  13489. * Group by QualificationQuestion.
  13490. * Note, that providing `undefined` is treated as the value not being there.
  13491. * Read more here: https://pris.ly/d/null-undefined
  13492. * @param {QualificationQuestionGroupByArgs} args - Group by arguments.
  13493. * @example
  13494. * // Group by city, order by createdAt, get count
  13495. * const result = await prisma.user.groupBy({
  13496. * by: ['city', 'createdAt'],
  13497. * orderBy: {
  13498. * createdAt: true
  13499. * },
  13500. * _count: {
  13501. * _all: true
  13502. * },
  13503. * })
  13504. *
  13505. **/
  13506. groupBy<
  13507. T extends QualificationQuestionGroupByArgs,
  13508. HasSelectOrTake extends Or<
  13509. Extends<'skip', Keys<T>>,
  13510. Extends<'take', Keys<T>>
  13511. >,
  13512. OrderByArg extends True extends HasSelectOrTake
  13513. ? { orderBy: QualificationQuestionGroupByArgs['orderBy'] }
  13514. : { orderBy?: QualificationQuestionGroupByArgs['orderBy'] },
  13515. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  13516. ByFields extends MaybeTupleToUnion<T['by']>,
  13517. ByValid extends Has<ByFields, OrderFields>,
  13518. HavingFields extends GetHavingFields<T['having']>,
  13519. HavingValid extends Has<ByFields, HavingFields>,
  13520. ByEmpty extends T['by'] extends never[] ? True : False,
  13521. InputErrors extends ByEmpty extends True
  13522. ? `Error: "by" must not be empty.`
  13523. : HavingValid extends False
  13524. ? {
  13525. [P in HavingFields]: P extends ByFields
  13526. ? never
  13527. : P extends string
  13528. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  13529. : [
  13530. Error,
  13531. 'Field ',
  13532. P,
  13533. ` in "having" needs to be provided in "by"`,
  13534. ]
  13535. }[HavingFields]
  13536. : 'take' extends Keys<T>
  13537. ? 'orderBy' extends Keys<T>
  13538. ? ByValid extends True
  13539. ? {}
  13540. : {
  13541. [P in OrderFields]: P extends ByFields
  13542. ? never
  13543. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13544. }[OrderFields]
  13545. : 'Error: If you provide "take", you also need to provide "orderBy"'
  13546. : 'skip' extends Keys<T>
  13547. ? 'orderBy' extends Keys<T>
  13548. ? ByValid extends True
  13549. ? {}
  13550. : {
  13551. [P in OrderFields]: P extends ByFields
  13552. ? never
  13553. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13554. }[OrderFields]
  13555. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  13556. : ByValid extends True
  13557. ? {}
  13558. : {
  13559. [P in OrderFields]: P extends ByFields
  13560. ? never
  13561. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13562. }[OrderFields]
  13563. >(args: SubsetIntersection<T, QualificationQuestionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQualificationQuestionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  13564. /**
  13565. * Fields of the QualificationQuestion model
  13566. */
  13567. readonly fields: QualificationQuestionFieldRefs;
  13568. }
  13569. /**
  13570. * The delegate class that acts as a "Promise-like" for QualificationQuestion.
  13571. * Why is this prefixed with `Prisma__`?
  13572. * Because we want to prevent naming conflicts as mentioned in
  13573. * https://github.com/prisma/prisma-client-js/issues/707
  13574. */
  13575. export interface Prisma__QualificationQuestionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  13576. readonly [Symbol.toStringTag]: "PrismaPromise"
  13577. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  13578. /**
  13579. * Attaches callbacks for the resolution and/or rejection of the Promise.
  13580. * @param onfulfilled The callback to execute when the Promise is resolved.
  13581. * @param onrejected The callback to execute when the Promise is rejected.
  13582. * @returns A Promise for the completion of which ever callback is executed.
  13583. */
  13584. 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>
  13585. /**
  13586. * Attaches a callback for only the rejection of the Promise.
  13587. * @param onrejected The callback to execute when the Promise is rejected.
  13588. * @returns A Promise for the completion of the callback.
  13589. */
  13590. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  13591. /**
  13592. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  13593. * resolved value cannot be modified from the callback.
  13594. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  13595. * @returns A Promise for the completion of the callback.
  13596. */
  13597. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  13598. }
  13599. /**
  13600. * Fields of the QualificationQuestion model
  13601. */
  13602. interface QualificationQuestionFieldRefs {
  13603. readonly id: FieldRef<"QualificationQuestion", 'String'>
  13604. readonly ideaId: FieldRef<"QualificationQuestion", 'String'>
  13605. readonly workspaceId: FieldRef<"QualificationQuestion", 'String'>
  13606. readonly questionText: FieldRef<"QualificationQuestion", 'String'>
  13607. readonly responseToken: FieldRef<"QualificationQuestion", 'String'>
  13608. readonly askedAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13609. readonly responseText: FieldRef<"QualificationQuestion", 'String'>
  13610. readonly answeredAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13611. }
  13612. // Custom InputTypes
  13613. /**
  13614. * QualificationQuestion findUnique
  13615. */
  13616. export type QualificationQuestionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13617. /**
  13618. * Select specific fields to fetch from the QualificationQuestion
  13619. */
  13620. select?: QualificationQuestionSelect<ExtArgs> | null
  13621. /**
  13622. * Omit specific fields from the QualificationQuestion
  13623. */
  13624. omit?: QualificationQuestionOmit<ExtArgs> | null
  13625. /**
  13626. * Choose, which related nodes to fetch as well
  13627. */
  13628. include?: QualificationQuestionInclude<ExtArgs> | null
  13629. /**
  13630. * Filter, which QualificationQuestion to fetch.
  13631. */
  13632. where: QualificationQuestionWhereUniqueInput
  13633. }
  13634. /**
  13635. * QualificationQuestion findUniqueOrThrow
  13636. */
  13637. export type QualificationQuestionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13638. /**
  13639. * Select specific fields to fetch from the QualificationQuestion
  13640. */
  13641. select?: QualificationQuestionSelect<ExtArgs> | null
  13642. /**
  13643. * Omit specific fields from the QualificationQuestion
  13644. */
  13645. omit?: QualificationQuestionOmit<ExtArgs> | null
  13646. /**
  13647. * Choose, which related nodes to fetch as well
  13648. */
  13649. include?: QualificationQuestionInclude<ExtArgs> | null
  13650. /**
  13651. * Filter, which QualificationQuestion to fetch.
  13652. */
  13653. where: QualificationQuestionWhereUniqueInput
  13654. }
  13655. /**
  13656. * QualificationQuestion findFirst
  13657. */
  13658. export type QualificationQuestionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13659. /**
  13660. * Select specific fields to fetch from the QualificationQuestion
  13661. */
  13662. select?: QualificationQuestionSelect<ExtArgs> | null
  13663. /**
  13664. * Omit specific fields from the QualificationQuestion
  13665. */
  13666. omit?: QualificationQuestionOmit<ExtArgs> | null
  13667. /**
  13668. * Choose, which related nodes to fetch as well
  13669. */
  13670. include?: QualificationQuestionInclude<ExtArgs> | null
  13671. /**
  13672. * Filter, which QualificationQuestion to fetch.
  13673. */
  13674. where?: QualificationQuestionWhereInput
  13675. /**
  13676. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13677. *
  13678. * Determine the order of QualificationQuestions to fetch.
  13679. */
  13680. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13681. /**
  13682. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13683. *
  13684. * Sets the position for searching for QualificationQuestions.
  13685. */
  13686. cursor?: QualificationQuestionWhereUniqueInput
  13687. /**
  13688. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13689. *
  13690. * Take `±n` QualificationQuestions from the position of the cursor.
  13691. */
  13692. take?: number
  13693. /**
  13694. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13695. *
  13696. * Skip the first `n` QualificationQuestions.
  13697. */
  13698. skip?: number
  13699. /**
  13700. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  13701. *
  13702. * Filter by unique combinations of QualificationQuestions.
  13703. */
  13704. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13705. }
  13706. /**
  13707. * QualificationQuestion findFirstOrThrow
  13708. */
  13709. export type QualificationQuestionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13710. /**
  13711. * Select specific fields to fetch from the QualificationQuestion
  13712. */
  13713. select?: QualificationQuestionSelect<ExtArgs> | null
  13714. /**
  13715. * Omit specific fields from the QualificationQuestion
  13716. */
  13717. omit?: QualificationQuestionOmit<ExtArgs> | null
  13718. /**
  13719. * Choose, which related nodes to fetch as well
  13720. */
  13721. include?: QualificationQuestionInclude<ExtArgs> | null
  13722. /**
  13723. * Filter, which QualificationQuestion to fetch.
  13724. */
  13725. where?: QualificationQuestionWhereInput
  13726. /**
  13727. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13728. *
  13729. * Determine the order of QualificationQuestions to fetch.
  13730. */
  13731. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13732. /**
  13733. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13734. *
  13735. * Sets the position for searching for QualificationQuestions.
  13736. */
  13737. cursor?: QualificationQuestionWhereUniqueInput
  13738. /**
  13739. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13740. *
  13741. * Take `±n` QualificationQuestions from the position of the cursor.
  13742. */
  13743. take?: number
  13744. /**
  13745. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13746. *
  13747. * Skip the first `n` QualificationQuestions.
  13748. */
  13749. skip?: number
  13750. /**
  13751. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  13752. *
  13753. * Filter by unique combinations of QualificationQuestions.
  13754. */
  13755. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13756. }
  13757. /**
  13758. * QualificationQuestion findMany
  13759. */
  13760. export type QualificationQuestionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13761. /**
  13762. * Select specific fields to fetch from the QualificationQuestion
  13763. */
  13764. select?: QualificationQuestionSelect<ExtArgs> | null
  13765. /**
  13766. * Omit specific fields from the QualificationQuestion
  13767. */
  13768. omit?: QualificationQuestionOmit<ExtArgs> | null
  13769. /**
  13770. * Choose, which related nodes to fetch as well
  13771. */
  13772. include?: QualificationQuestionInclude<ExtArgs> | null
  13773. /**
  13774. * Filter, which QualificationQuestions to fetch.
  13775. */
  13776. where?: QualificationQuestionWhereInput
  13777. /**
  13778. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13779. *
  13780. * Determine the order of QualificationQuestions to fetch.
  13781. */
  13782. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13783. /**
  13784. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13785. *
  13786. * Sets the position for listing QualificationQuestions.
  13787. */
  13788. cursor?: QualificationQuestionWhereUniqueInput
  13789. /**
  13790. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13791. *
  13792. * Take `±n` QualificationQuestions from the position of the cursor.
  13793. */
  13794. take?: number
  13795. /**
  13796. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13797. *
  13798. * Skip the first `n` QualificationQuestions.
  13799. */
  13800. skip?: number
  13801. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13802. }
  13803. /**
  13804. * QualificationQuestion create
  13805. */
  13806. export type QualificationQuestionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13807. /**
  13808. * Select specific fields to fetch from the QualificationQuestion
  13809. */
  13810. select?: QualificationQuestionSelect<ExtArgs> | null
  13811. /**
  13812. * Omit specific fields from the QualificationQuestion
  13813. */
  13814. omit?: QualificationQuestionOmit<ExtArgs> | null
  13815. /**
  13816. * Choose, which related nodes to fetch as well
  13817. */
  13818. include?: QualificationQuestionInclude<ExtArgs> | null
  13819. /**
  13820. * The data needed to create a QualificationQuestion.
  13821. */
  13822. data: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  13823. }
  13824. /**
  13825. * QualificationQuestion createMany
  13826. */
  13827. export type QualificationQuestionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13828. /**
  13829. * The data used to create many QualificationQuestions.
  13830. */
  13831. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  13832. skipDuplicates?: boolean
  13833. }
  13834. /**
  13835. * QualificationQuestion createManyAndReturn
  13836. */
  13837. export type QualificationQuestionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13838. /**
  13839. * Select specific fields to fetch from the QualificationQuestion
  13840. */
  13841. select?: QualificationQuestionSelectCreateManyAndReturn<ExtArgs> | null
  13842. /**
  13843. * Omit specific fields from the QualificationQuestion
  13844. */
  13845. omit?: QualificationQuestionOmit<ExtArgs> | null
  13846. /**
  13847. * The data used to create many QualificationQuestions.
  13848. */
  13849. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  13850. skipDuplicates?: boolean
  13851. /**
  13852. * Choose, which related nodes to fetch as well
  13853. */
  13854. include?: QualificationQuestionIncludeCreateManyAndReturn<ExtArgs> | null
  13855. }
  13856. /**
  13857. * QualificationQuestion update
  13858. */
  13859. export type QualificationQuestionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13860. /**
  13861. * Select specific fields to fetch from the QualificationQuestion
  13862. */
  13863. select?: QualificationQuestionSelect<ExtArgs> | null
  13864. /**
  13865. * Omit specific fields from the QualificationQuestion
  13866. */
  13867. omit?: QualificationQuestionOmit<ExtArgs> | null
  13868. /**
  13869. * Choose, which related nodes to fetch as well
  13870. */
  13871. include?: QualificationQuestionInclude<ExtArgs> | null
  13872. /**
  13873. * The data needed to update a QualificationQuestion.
  13874. */
  13875. data: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  13876. /**
  13877. * Choose, which QualificationQuestion to update.
  13878. */
  13879. where: QualificationQuestionWhereUniqueInput
  13880. }
  13881. /**
  13882. * QualificationQuestion updateMany
  13883. */
  13884. export type QualificationQuestionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13885. /**
  13886. * The data used to update QualificationQuestions.
  13887. */
  13888. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  13889. /**
  13890. * Filter which QualificationQuestions to update
  13891. */
  13892. where?: QualificationQuestionWhereInput
  13893. /**
  13894. * Limit how many QualificationQuestions to update.
  13895. */
  13896. limit?: number
  13897. }
  13898. /**
  13899. * QualificationQuestion updateManyAndReturn
  13900. */
  13901. export type QualificationQuestionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13902. /**
  13903. * Select specific fields to fetch from the QualificationQuestion
  13904. */
  13905. select?: QualificationQuestionSelectUpdateManyAndReturn<ExtArgs> | null
  13906. /**
  13907. * Omit specific fields from the QualificationQuestion
  13908. */
  13909. omit?: QualificationQuestionOmit<ExtArgs> | null
  13910. /**
  13911. * The data used to update QualificationQuestions.
  13912. */
  13913. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  13914. /**
  13915. * Filter which QualificationQuestions to update
  13916. */
  13917. where?: QualificationQuestionWhereInput
  13918. /**
  13919. * Limit how many QualificationQuestions to update.
  13920. */
  13921. limit?: number
  13922. /**
  13923. * Choose, which related nodes to fetch as well
  13924. */
  13925. include?: QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs> | null
  13926. }
  13927. /**
  13928. * QualificationQuestion upsert
  13929. */
  13930. export type QualificationQuestionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13931. /**
  13932. * Select specific fields to fetch from the QualificationQuestion
  13933. */
  13934. select?: QualificationQuestionSelect<ExtArgs> | null
  13935. /**
  13936. * Omit specific fields from the QualificationQuestion
  13937. */
  13938. omit?: QualificationQuestionOmit<ExtArgs> | null
  13939. /**
  13940. * Choose, which related nodes to fetch as well
  13941. */
  13942. include?: QualificationQuestionInclude<ExtArgs> | null
  13943. /**
  13944. * The filter to search for the QualificationQuestion to update in case it exists.
  13945. */
  13946. where: QualificationQuestionWhereUniqueInput
  13947. /**
  13948. * In case the QualificationQuestion found by the `where` argument doesn't exist, create a new QualificationQuestion with this data.
  13949. */
  13950. create: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  13951. /**
  13952. * In case the QualificationQuestion was found with the provided `where` argument, update it with this data.
  13953. */
  13954. update: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  13955. }
  13956. /**
  13957. * QualificationQuestion delete
  13958. */
  13959. export type QualificationQuestionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13960. /**
  13961. * Select specific fields to fetch from the QualificationQuestion
  13962. */
  13963. select?: QualificationQuestionSelect<ExtArgs> | null
  13964. /**
  13965. * Omit specific fields from the QualificationQuestion
  13966. */
  13967. omit?: QualificationQuestionOmit<ExtArgs> | null
  13968. /**
  13969. * Choose, which related nodes to fetch as well
  13970. */
  13971. include?: QualificationQuestionInclude<ExtArgs> | null
  13972. /**
  13973. * Filter which QualificationQuestion to delete.
  13974. */
  13975. where: QualificationQuestionWhereUniqueInput
  13976. }
  13977. /**
  13978. * QualificationQuestion deleteMany
  13979. */
  13980. export type QualificationQuestionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13981. /**
  13982. * Filter which QualificationQuestions to delete
  13983. */
  13984. where?: QualificationQuestionWhereInput
  13985. /**
  13986. * Limit how many QualificationQuestions to delete.
  13987. */
  13988. limit?: number
  13989. }
  13990. /**
  13991. * QualificationQuestion without action
  13992. */
  13993. export type QualificationQuestionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13994. /**
  13995. * Select specific fields to fetch from the QualificationQuestion
  13996. */
  13997. select?: QualificationQuestionSelect<ExtArgs> | null
  13998. /**
  13999. * Omit specific fields from the QualificationQuestion
  14000. */
  14001. omit?: QualificationQuestionOmit<ExtArgs> | null
  14002. /**
  14003. * Choose, which related nodes to fetch as well
  14004. */
  14005. include?: QualificationQuestionInclude<ExtArgs> | null
  14006. }
  14007. /**
  14008. * Model LibraryCase
  14009. */
  14010. export type AggregateLibraryCase = {
  14011. _count: LibraryCaseCountAggregateOutputType | null
  14012. _min: LibraryCaseMinAggregateOutputType | null
  14013. _max: LibraryCaseMaxAggregateOutputType | null
  14014. }
  14015. export type LibraryCaseMinAggregateOutputType = {
  14016. id: string | null
  14017. sector: string | null
  14018. department: string | null
  14019. title: string | null
  14020. description: string | null
  14021. createdAt: Date | null
  14022. updatedAt: Date | null
  14023. }
  14024. export type LibraryCaseMaxAggregateOutputType = {
  14025. id: string | null
  14026. sector: string | null
  14027. department: string | null
  14028. title: string | null
  14029. description: string | null
  14030. createdAt: Date | null
  14031. updatedAt: Date | null
  14032. }
  14033. export type LibraryCaseCountAggregateOutputType = {
  14034. id: number
  14035. sector: number
  14036. department: number
  14037. title: number
  14038. description: number
  14039. createdAt: number
  14040. updatedAt: number
  14041. _all: number
  14042. }
  14043. export type LibraryCaseMinAggregateInputType = {
  14044. id?: true
  14045. sector?: true
  14046. department?: true
  14047. title?: true
  14048. description?: true
  14049. createdAt?: true
  14050. updatedAt?: true
  14051. }
  14052. export type LibraryCaseMaxAggregateInputType = {
  14053. id?: true
  14054. sector?: true
  14055. department?: true
  14056. title?: true
  14057. description?: true
  14058. createdAt?: true
  14059. updatedAt?: true
  14060. }
  14061. export type LibraryCaseCountAggregateInputType = {
  14062. id?: true
  14063. sector?: true
  14064. department?: true
  14065. title?: true
  14066. description?: true
  14067. createdAt?: true
  14068. updatedAt?: true
  14069. _all?: true
  14070. }
  14071. export type LibraryCaseAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14072. /**
  14073. * Filter which LibraryCase to aggregate.
  14074. */
  14075. where?: LibraryCaseWhereInput
  14076. /**
  14077. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14078. *
  14079. * Determine the order of LibraryCases to fetch.
  14080. */
  14081. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14082. /**
  14083. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14084. *
  14085. * Sets the start position
  14086. */
  14087. cursor?: LibraryCaseWhereUniqueInput
  14088. /**
  14089. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14090. *
  14091. * Take `±n` LibraryCases from the position of the cursor.
  14092. */
  14093. take?: number
  14094. /**
  14095. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14096. *
  14097. * Skip the first `n` LibraryCases.
  14098. */
  14099. skip?: number
  14100. /**
  14101. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14102. *
  14103. * Count returned LibraryCases
  14104. **/
  14105. _count?: true | LibraryCaseCountAggregateInputType
  14106. /**
  14107. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14108. *
  14109. * Select which fields to find the minimum value
  14110. **/
  14111. _min?: LibraryCaseMinAggregateInputType
  14112. /**
  14113. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14114. *
  14115. * Select which fields to find the maximum value
  14116. **/
  14117. _max?: LibraryCaseMaxAggregateInputType
  14118. }
  14119. export type GetLibraryCaseAggregateType<T extends LibraryCaseAggregateArgs> = {
  14120. [P in keyof T & keyof AggregateLibraryCase]: P extends '_count' | 'count'
  14121. ? T[P] extends true
  14122. ? number
  14123. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14124. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14125. }
  14126. export type LibraryCaseGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14127. where?: LibraryCaseWhereInput
  14128. orderBy?: LibraryCaseOrderByWithAggregationInput | LibraryCaseOrderByWithAggregationInput[]
  14129. by: LibraryCaseScalarFieldEnum[] | LibraryCaseScalarFieldEnum
  14130. having?: LibraryCaseScalarWhereWithAggregatesInput
  14131. take?: number
  14132. skip?: number
  14133. _count?: LibraryCaseCountAggregateInputType | true
  14134. _min?: LibraryCaseMinAggregateInputType
  14135. _max?: LibraryCaseMaxAggregateInputType
  14136. }
  14137. export type LibraryCaseGroupByOutputType = {
  14138. id: string
  14139. sector: string
  14140. department: string
  14141. title: string
  14142. description: string
  14143. createdAt: Date
  14144. updatedAt: Date
  14145. _count: LibraryCaseCountAggregateOutputType | null
  14146. _min: LibraryCaseMinAggregateOutputType | null
  14147. _max: LibraryCaseMaxAggregateOutputType | null
  14148. }
  14149. type GetLibraryCaseGroupByPayload<T extends LibraryCaseGroupByArgs> = Prisma.PrismaPromise<
  14150. Array<
  14151. PickEnumerable<LibraryCaseGroupByOutputType, T['by']> &
  14152. {
  14153. [P in ((keyof T) & (keyof LibraryCaseGroupByOutputType))]: P extends '_count'
  14154. ? T[P] extends boolean
  14155. ? number
  14156. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14157. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14158. }
  14159. >
  14160. >
  14161. export type LibraryCaseSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14162. id?: boolean
  14163. sector?: boolean
  14164. department?: boolean
  14165. title?: boolean
  14166. description?: boolean
  14167. createdAt?: boolean
  14168. updatedAt?: boolean
  14169. }, ExtArgs["result"]["libraryCase"]>
  14170. export type LibraryCaseSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14171. id?: boolean
  14172. sector?: boolean
  14173. department?: boolean
  14174. title?: boolean
  14175. description?: boolean
  14176. createdAt?: boolean
  14177. updatedAt?: boolean
  14178. }, ExtArgs["result"]["libraryCase"]>
  14179. export type LibraryCaseSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14180. id?: boolean
  14181. sector?: boolean
  14182. department?: boolean
  14183. title?: boolean
  14184. description?: boolean
  14185. createdAt?: boolean
  14186. updatedAt?: boolean
  14187. }, ExtArgs["result"]["libraryCase"]>
  14188. export type LibraryCaseSelectScalar = {
  14189. id?: boolean
  14190. sector?: boolean
  14191. department?: boolean
  14192. title?: boolean
  14193. description?: boolean
  14194. createdAt?: boolean
  14195. updatedAt?: boolean
  14196. }
  14197. export type LibraryCaseOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sector" | "department" | "title" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["libraryCase"]>
  14198. export type $LibraryCasePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14199. name: "LibraryCase"
  14200. objects: {}
  14201. scalars: $Extensions.GetPayloadResult<{
  14202. id: string
  14203. sector: string
  14204. department: string
  14205. title: string
  14206. description: string
  14207. createdAt: Date
  14208. updatedAt: Date
  14209. }, ExtArgs["result"]["libraryCase"]>
  14210. composites: {}
  14211. }
  14212. type LibraryCaseGetPayload<S extends boolean | null | undefined | LibraryCaseDefaultArgs> = $Result.GetResult<Prisma.$LibraryCasePayload, S>
  14213. type LibraryCaseCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  14214. Omit<LibraryCaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  14215. select?: LibraryCaseCountAggregateInputType | true
  14216. }
  14217. export interface LibraryCaseDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  14218. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LibraryCase'], meta: { name: 'LibraryCase' } }
  14219. /**
  14220. * Find zero or one LibraryCase that matches the filter.
  14221. * @param {LibraryCaseFindUniqueArgs} args - Arguments to find a LibraryCase
  14222. * @example
  14223. * // Get one LibraryCase
  14224. * const libraryCase = await prisma.libraryCase.findUnique({
  14225. * where: {
  14226. * // ... provide filter here
  14227. * }
  14228. * })
  14229. */
  14230. findUnique<T extends LibraryCaseFindUniqueArgs>(args: SelectSubset<T, LibraryCaseFindUniqueArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14231. /**
  14232. * Find one LibraryCase that matches the filter or throw an error with `error.code='P2025'`
  14233. * if no matches were found.
  14234. * @param {LibraryCaseFindUniqueOrThrowArgs} args - Arguments to find a LibraryCase
  14235. * @example
  14236. * // Get one LibraryCase
  14237. * const libraryCase = await prisma.libraryCase.findUniqueOrThrow({
  14238. * where: {
  14239. * // ... provide filter here
  14240. * }
  14241. * })
  14242. */
  14243. findUniqueOrThrow<T extends LibraryCaseFindUniqueOrThrowArgs>(args: SelectSubset<T, LibraryCaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14244. /**
  14245. * Find the first LibraryCase that matches the filter.
  14246. * Note, that providing `undefined` is treated as the value not being there.
  14247. * Read more here: https://pris.ly/d/null-undefined
  14248. * @param {LibraryCaseFindFirstArgs} args - Arguments to find a LibraryCase
  14249. * @example
  14250. * // Get one LibraryCase
  14251. * const libraryCase = await prisma.libraryCase.findFirst({
  14252. * where: {
  14253. * // ... provide filter here
  14254. * }
  14255. * })
  14256. */
  14257. findFirst<T extends LibraryCaseFindFirstArgs>(args?: SelectSubset<T, LibraryCaseFindFirstArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14258. /**
  14259. * Find the first LibraryCase that matches the filter or
  14260. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  14261. * Note, that providing `undefined` is treated as the value not being there.
  14262. * Read more here: https://pris.ly/d/null-undefined
  14263. * @param {LibraryCaseFindFirstOrThrowArgs} args - Arguments to find a LibraryCase
  14264. * @example
  14265. * // Get one LibraryCase
  14266. * const libraryCase = await prisma.libraryCase.findFirstOrThrow({
  14267. * where: {
  14268. * // ... provide filter here
  14269. * }
  14270. * })
  14271. */
  14272. findFirstOrThrow<T extends LibraryCaseFindFirstOrThrowArgs>(args?: SelectSubset<T, LibraryCaseFindFirstOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14273. /**
  14274. * Find zero or more LibraryCases that matches the filter.
  14275. * Note, that providing `undefined` is treated as the value not being there.
  14276. * Read more here: https://pris.ly/d/null-undefined
  14277. * @param {LibraryCaseFindManyArgs} args - Arguments to filter and select certain fields only.
  14278. * @example
  14279. * // Get all LibraryCases
  14280. * const libraryCases = await prisma.libraryCase.findMany()
  14281. *
  14282. * // Get first 10 LibraryCases
  14283. * const libraryCases = await prisma.libraryCase.findMany({ take: 10 })
  14284. *
  14285. * // Only select the `id`
  14286. * const libraryCaseWithIdOnly = await prisma.libraryCase.findMany({ select: { id: true } })
  14287. *
  14288. */
  14289. findMany<T extends LibraryCaseFindManyArgs>(args?: SelectSubset<T, LibraryCaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  14290. /**
  14291. * Create a LibraryCase.
  14292. * @param {LibraryCaseCreateArgs} args - Arguments to create a LibraryCase.
  14293. * @example
  14294. * // Create one LibraryCase
  14295. * const LibraryCase = await prisma.libraryCase.create({
  14296. * data: {
  14297. * // ... data to create a LibraryCase
  14298. * }
  14299. * })
  14300. *
  14301. */
  14302. create<T extends LibraryCaseCreateArgs>(args: SelectSubset<T, LibraryCaseCreateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14303. /**
  14304. * Create many LibraryCases.
  14305. * @param {LibraryCaseCreateManyArgs} args - Arguments to create many LibraryCases.
  14306. * @example
  14307. * // Create many LibraryCases
  14308. * const libraryCase = await prisma.libraryCase.createMany({
  14309. * data: [
  14310. * // ... provide data here
  14311. * ]
  14312. * })
  14313. *
  14314. */
  14315. createMany<T extends LibraryCaseCreateManyArgs>(args?: SelectSubset<T, LibraryCaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14316. /**
  14317. * Create many LibraryCases and returns the data saved in the database.
  14318. * @param {LibraryCaseCreateManyAndReturnArgs} args - Arguments to create many LibraryCases.
  14319. * @example
  14320. * // Create many LibraryCases
  14321. * const libraryCase = await prisma.libraryCase.createManyAndReturn({
  14322. * data: [
  14323. * // ... provide data here
  14324. * ]
  14325. * })
  14326. *
  14327. * // Create many LibraryCases and only return the `id`
  14328. * const libraryCaseWithIdOnly = await prisma.libraryCase.createManyAndReturn({
  14329. * select: { id: true },
  14330. * data: [
  14331. * // ... provide data here
  14332. * ]
  14333. * })
  14334. * Note, that providing `undefined` is treated as the value not being there.
  14335. * Read more here: https://pris.ly/d/null-undefined
  14336. *
  14337. */
  14338. createManyAndReturn<T extends LibraryCaseCreateManyAndReturnArgs>(args?: SelectSubset<T, LibraryCaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  14339. /**
  14340. * Delete a LibraryCase.
  14341. * @param {LibraryCaseDeleteArgs} args - Arguments to delete one LibraryCase.
  14342. * @example
  14343. * // Delete one LibraryCase
  14344. * const LibraryCase = await prisma.libraryCase.delete({
  14345. * where: {
  14346. * // ... filter to delete one LibraryCase
  14347. * }
  14348. * })
  14349. *
  14350. */
  14351. delete<T extends LibraryCaseDeleteArgs>(args: SelectSubset<T, LibraryCaseDeleteArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14352. /**
  14353. * Update one LibraryCase.
  14354. * @param {LibraryCaseUpdateArgs} args - Arguments to update one LibraryCase.
  14355. * @example
  14356. * // Update one LibraryCase
  14357. * const libraryCase = await prisma.libraryCase.update({
  14358. * where: {
  14359. * // ... provide filter here
  14360. * },
  14361. * data: {
  14362. * // ... provide data here
  14363. * }
  14364. * })
  14365. *
  14366. */
  14367. update<T extends LibraryCaseUpdateArgs>(args: SelectSubset<T, LibraryCaseUpdateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14368. /**
  14369. * Delete zero or more LibraryCases.
  14370. * @param {LibraryCaseDeleteManyArgs} args - Arguments to filter LibraryCases to delete.
  14371. * @example
  14372. * // Delete a few LibraryCases
  14373. * const { count } = await prisma.libraryCase.deleteMany({
  14374. * where: {
  14375. * // ... provide filter here
  14376. * }
  14377. * })
  14378. *
  14379. */
  14380. deleteMany<T extends LibraryCaseDeleteManyArgs>(args?: SelectSubset<T, LibraryCaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14381. /**
  14382. * Update zero or more LibraryCases.
  14383. * Note, that providing `undefined` is treated as the value not being there.
  14384. * Read more here: https://pris.ly/d/null-undefined
  14385. * @param {LibraryCaseUpdateManyArgs} args - Arguments to update one or more rows.
  14386. * @example
  14387. * // Update many LibraryCases
  14388. * const libraryCase = await prisma.libraryCase.updateMany({
  14389. * where: {
  14390. * // ... provide filter here
  14391. * },
  14392. * data: {
  14393. * // ... provide data here
  14394. * }
  14395. * })
  14396. *
  14397. */
  14398. updateMany<T extends LibraryCaseUpdateManyArgs>(args: SelectSubset<T, LibraryCaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14399. /**
  14400. * Update zero or more LibraryCases and returns the data updated in the database.
  14401. * @param {LibraryCaseUpdateManyAndReturnArgs} args - Arguments to update many LibraryCases.
  14402. * @example
  14403. * // Update many LibraryCases
  14404. * const libraryCase = await prisma.libraryCase.updateManyAndReturn({
  14405. * where: {
  14406. * // ... provide filter here
  14407. * },
  14408. * data: [
  14409. * // ... provide data here
  14410. * ]
  14411. * })
  14412. *
  14413. * // Update zero or more LibraryCases and only return the `id`
  14414. * const libraryCaseWithIdOnly = await prisma.libraryCase.updateManyAndReturn({
  14415. * select: { id: true },
  14416. * where: {
  14417. * // ... provide filter here
  14418. * },
  14419. * data: [
  14420. * // ... provide data here
  14421. * ]
  14422. * })
  14423. * Note, that providing `undefined` is treated as the value not being there.
  14424. * Read more here: https://pris.ly/d/null-undefined
  14425. *
  14426. */
  14427. updateManyAndReturn<T extends LibraryCaseUpdateManyAndReturnArgs>(args: SelectSubset<T, LibraryCaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  14428. /**
  14429. * Create or update one LibraryCase.
  14430. * @param {LibraryCaseUpsertArgs} args - Arguments to update or create a LibraryCase.
  14431. * @example
  14432. * // Update or create a LibraryCase
  14433. * const libraryCase = await prisma.libraryCase.upsert({
  14434. * create: {
  14435. * // ... data to create a LibraryCase
  14436. * },
  14437. * update: {
  14438. * // ... in case it already exists, update
  14439. * },
  14440. * where: {
  14441. * // ... the filter for the LibraryCase we want to update
  14442. * }
  14443. * })
  14444. */
  14445. upsert<T extends LibraryCaseUpsertArgs>(args: SelectSubset<T, LibraryCaseUpsertArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14446. /**
  14447. * Count the number of LibraryCases.
  14448. * Note, that providing `undefined` is treated as the value not being there.
  14449. * Read more here: https://pris.ly/d/null-undefined
  14450. * @param {LibraryCaseCountArgs} args - Arguments to filter LibraryCases to count.
  14451. * @example
  14452. * // Count the number of LibraryCases
  14453. * const count = await prisma.libraryCase.count({
  14454. * where: {
  14455. * // ... the filter for the LibraryCases we want to count
  14456. * }
  14457. * })
  14458. **/
  14459. count<T extends LibraryCaseCountArgs>(
  14460. args?: Subset<T, LibraryCaseCountArgs>,
  14461. ): Prisma.PrismaPromise<
  14462. T extends $Utils.Record<'select', any>
  14463. ? T['select'] extends true
  14464. ? number
  14465. : GetScalarType<T['select'], LibraryCaseCountAggregateOutputType>
  14466. : number
  14467. >
  14468. /**
  14469. * Allows you to perform aggregations operations on a LibraryCase.
  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 {LibraryCaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  14473. * @example
  14474. * // Ordered by age ascending
  14475. * // Where email contains prisma.io
  14476. * // Limited to the 10 users
  14477. * const aggregations = await prisma.user.aggregate({
  14478. * _avg: {
  14479. * age: true,
  14480. * },
  14481. * where: {
  14482. * email: {
  14483. * contains: "prisma.io",
  14484. * },
  14485. * },
  14486. * orderBy: {
  14487. * age: "asc",
  14488. * },
  14489. * take: 10,
  14490. * })
  14491. **/
  14492. aggregate<T extends LibraryCaseAggregateArgs>(args: Subset<T, LibraryCaseAggregateArgs>): Prisma.PrismaPromise<GetLibraryCaseAggregateType<T>>
  14493. /**
  14494. * Group by LibraryCase.
  14495. * Note, that providing `undefined` is treated as the value not being there.
  14496. * Read more here: https://pris.ly/d/null-undefined
  14497. * @param {LibraryCaseGroupByArgs} args - Group by arguments.
  14498. * @example
  14499. * // Group by city, order by createdAt, get count
  14500. * const result = await prisma.user.groupBy({
  14501. * by: ['city', 'createdAt'],
  14502. * orderBy: {
  14503. * createdAt: true
  14504. * },
  14505. * _count: {
  14506. * _all: true
  14507. * },
  14508. * })
  14509. *
  14510. **/
  14511. groupBy<
  14512. T extends LibraryCaseGroupByArgs,
  14513. HasSelectOrTake extends Or<
  14514. Extends<'skip', Keys<T>>,
  14515. Extends<'take', Keys<T>>
  14516. >,
  14517. OrderByArg extends True extends HasSelectOrTake
  14518. ? { orderBy: LibraryCaseGroupByArgs['orderBy'] }
  14519. : { orderBy?: LibraryCaseGroupByArgs['orderBy'] },
  14520. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  14521. ByFields extends MaybeTupleToUnion<T['by']>,
  14522. ByValid extends Has<ByFields, OrderFields>,
  14523. HavingFields extends GetHavingFields<T['having']>,
  14524. HavingValid extends Has<ByFields, HavingFields>,
  14525. ByEmpty extends T['by'] extends never[] ? True : False,
  14526. InputErrors extends ByEmpty extends True
  14527. ? `Error: "by" must not be empty.`
  14528. : HavingValid extends False
  14529. ? {
  14530. [P in HavingFields]: P extends ByFields
  14531. ? never
  14532. : P extends string
  14533. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  14534. : [
  14535. Error,
  14536. 'Field ',
  14537. P,
  14538. ` in "having" needs to be provided in "by"`,
  14539. ]
  14540. }[HavingFields]
  14541. : 'take' extends Keys<T>
  14542. ? 'orderBy' extends Keys<T>
  14543. ? ByValid extends True
  14544. ? {}
  14545. : {
  14546. [P in OrderFields]: P extends ByFields
  14547. ? never
  14548. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14549. }[OrderFields]
  14550. : 'Error: If you provide "take", you also need to provide "orderBy"'
  14551. : 'skip' extends Keys<T>
  14552. ? 'orderBy' extends Keys<T>
  14553. ? ByValid extends True
  14554. ? {}
  14555. : {
  14556. [P in OrderFields]: P extends ByFields
  14557. ? never
  14558. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14559. }[OrderFields]
  14560. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  14561. : ByValid extends True
  14562. ? {}
  14563. : {
  14564. [P in OrderFields]: P extends ByFields
  14565. ? never
  14566. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14567. }[OrderFields]
  14568. >(args: SubsetIntersection<T, LibraryCaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLibraryCaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  14569. /**
  14570. * Fields of the LibraryCase model
  14571. */
  14572. readonly fields: LibraryCaseFieldRefs;
  14573. }
  14574. /**
  14575. * The delegate class that acts as a "Promise-like" for LibraryCase.
  14576. * Why is this prefixed with `Prisma__`?
  14577. * Because we want to prevent naming conflicts as mentioned in
  14578. * https://github.com/prisma/prisma-client-js/issues/707
  14579. */
  14580. export interface Prisma__LibraryCaseClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  14581. readonly [Symbol.toStringTag]: "PrismaPromise"
  14582. /**
  14583. * Attaches callbacks for the resolution and/or rejection of the Promise.
  14584. * @param onfulfilled The callback to execute when the Promise is resolved.
  14585. * @param onrejected The callback to execute when the Promise is rejected.
  14586. * @returns A Promise for the completion of which ever callback is executed.
  14587. */
  14588. 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>
  14589. /**
  14590. * Attaches a callback for only the rejection of the Promise.
  14591. * @param onrejected The callback to execute when the Promise is rejected.
  14592. * @returns A Promise for the completion of the callback.
  14593. */
  14594. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  14595. /**
  14596. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  14597. * resolved value cannot be modified from the callback.
  14598. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  14599. * @returns A Promise for the completion of the callback.
  14600. */
  14601. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  14602. }
  14603. /**
  14604. * Fields of the LibraryCase model
  14605. */
  14606. interface LibraryCaseFieldRefs {
  14607. readonly id: FieldRef<"LibraryCase", 'String'>
  14608. readonly sector: FieldRef<"LibraryCase", 'String'>
  14609. readonly department: FieldRef<"LibraryCase", 'String'>
  14610. readonly title: FieldRef<"LibraryCase", 'String'>
  14611. readonly description: FieldRef<"LibraryCase", 'String'>
  14612. readonly createdAt: FieldRef<"LibraryCase", 'DateTime'>
  14613. readonly updatedAt: FieldRef<"LibraryCase", 'DateTime'>
  14614. }
  14615. // Custom InputTypes
  14616. /**
  14617. * LibraryCase findUnique
  14618. */
  14619. export type LibraryCaseFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14620. /**
  14621. * Select specific fields to fetch from the LibraryCase
  14622. */
  14623. select?: LibraryCaseSelect<ExtArgs> | null
  14624. /**
  14625. * Omit specific fields from the LibraryCase
  14626. */
  14627. omit?: LibraryCaseOmit<ExtArgs> | null
  14628. /**
  14629. * Filter, which LibraryCase to fetch.
  14630. */
  14631. where: LibraryCaseWhereUniqueInput
  14632. }
  14633. /**
  14634. * LibraryCase findUniqueOrThrow
  14635. */
  14636. export type LibraryCaseFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14637. /**
  14638. * Select specific fields to fetch from the LibraryCase
  14639. */
  14640. select?: LibraryCaseSelect<ExtArgs> | null
  14641. /**
  14642. * Omit specific fields from the LibraryCase
  14643. */
  14644. omit?: LibraryCaseOmit<ExtArgs> | null
  14645. /**
  14646. * Filter, which LibraryCase to fetch.
  14647. */
  14648. where: LibraryCaseWhereUniqueInput
  14649. }
  14650. /**
  14651. * LibraryCase findFirst
  14652. */
  14653. export type LibraryCaseFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14654. /**
  14655. * Select specific fields to fetch from the LibraryCase
  14656. */
  14657. select?: LibraryCaseSelect<ExtArgs> | null
  14658. /**
  14659. * Omit specific fields from the LibraryCase
  14660. */
  14661. omit?: LibraryCaseOmit<ExtArgs> | null
  14662. /**
  14663. * Filter, which LibraryCase to fetch.
  14664. */
  14665. where?: LibraryCaseWhereInput
  14666. /**
  14667. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14668. *
  14669. * Determine the order of LibraryCases to fetch.
  14670. */
  14671. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14672. /**
  14673. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14674. *
  14675. * Sets the position for searching for LibraryCases.
  14676. */
  14677. cursor?: LibraryCaseWhereUniqueInput
  14678. /**
  14679. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14680. *
  14681. * Take `±n` LibraryCases from the position of the cursor.
  14682. */
  14683. take?: number
  14684. /**
  14685. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14686. *
  14687. * Skip the first `n` LibraryCases.
  14688. */
  14689. skip?: number
  14690. /**
  14691. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14692. *
  14693. * Filter by unique combinations of LibraryCases.
  14694. */
  14695. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14696. }
  14697. /**
  14698. * LibraryCase findFirstOrThrow
  14699. */
  14700. export type LibraryCaseFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14701. /**
  14702. * Select specific fields to fetch from the LibraryCase
  14703. */
  14704. select?: LibraryCaseSelect<ExtArgs> | null
  14705. /**
  14706. * Omit specific fields from the LibraryCase
  14707. */
  14708. omit?: LibraryCaseOmit<ExtArgs> | null
  14709. /**
  14710. * Filter, which LibraryCase to fetch.
  14711. */
  14712. where?: LibraryCaseWhereInput
  14713. /**
  14714. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14715. *
  14716. * Determine the order of LibraryCases to fetch.
  14717. */
  14718. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14719. /**
  14720. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14721. *
  14722. * Sets the position for searching for LibraryCases.
  14723. */
  14724. cursor?: LibraryCaseWhereUniqueInput
  14725. /**
  14726. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14727. *
  14728. * Take `±n` LibraryCases from the position of the cursor.
  14729. */
  14730. take?: number
  14731. /**
  14732. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14733. *
  14734. * Skip the first `n` LibraryCases.
  14735. */
  14736. skip?: number
  14737. /**
  14738. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14739. *
  14740. * Filter by unique combinations of LibraryCases.
  14741. */
  14742. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14743. }
  14744. /**
  14745. * LibraryCase findMany
  14746. */
  14747. export type LibraryCaseFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14748. /**
  14749. * Select specific fields to fetch from the LibraryCase
  14750. */
  14751. select?: LibraryCaseSelect<ExtArgs> | null
  14752. /**
  14753. * Omit specific fields from the LibraryCase
  14754. */
  14755. omit?: LibraryCaseOmit<ExtArgs> | null
  14756. /**
  14757. * Filter, which LibraryCases to fetch.
  14758. */
  14759. where?: LibraryCaseWhereInput
  14760. /**
  14761. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14762. *
  14763. * Determine the order of LibraryCases to fetch.
  14764. */
  14765. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14766. /**
  14767. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14768. *
  14769. * Sets the position for listing LibraryCases.
  14770. */
  14771. cursor?: LibraryCaseWhereUniqueInput
  14772. /**
  14773. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14774. *
  14775. * Take `±n` LibraryCases from the position of the cursor.
  14776. */
  14777. take?: number
  14778. /**
  14779. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14780. *
  14781. * Skip the first `n` LibraryCases.
  14782. */
  14783. skip?: number
  14784. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14785. }
  14786. /**
  14787. * LibraryCase create
  14788. */
  14789. export type LibraryCaseCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14790. /**
  14791. * Select specific fields to fetch from the LibraryCase
  14792. */
  14793. select?: LibraryCaseSelect<ExtArgs> | null
  14794. /**
  14795. * Omit specific fields from the LibraryCase
  14796. */
  14797. omit?: LibraryCaseOmit<ExtArgs> | null
  14798. /**
  14799. * The data needed to create a LibraryCase.
  14800. */
  14801. data: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  14802. }
  14803. /**
  14804. * LibraryCase createMany
  14805. */
  14806. export type LibraryCaseCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14807. /**
  14808. * The data used to create many LibraryCases.
  14809. */
  14810. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  14811. skipDuplicates?: boolean
  14812. }
  14813. /**
  14814. * LibraryCase createManyAndReturn
  14815. */
  14816. export type LibraryCaseCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14817. /**
  14818. * Select specific fields to fetch from the LibraryCase
  14819. */
  14820. select?: LibraryCaseSelectCreateManyAndReturn<ExtArgs> | null
  14821. /**
  14822. * Omit specific fields from the LibraryCase
  14823. */
  14824. omit?: LibraryCaseOmit<ExtArgs> | null
  14825. /**
  14826. * The data used to create many LibraryCases.
  14827. */
  14828. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  14829. skipDuplicates?: boolean
  14830. }
  14831. /**
  14832. * LibraryCase update
  14833. */
  14834. export type LibraryCaseUpdateArgs<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. * The data needed to update a LibraryCase.
  14845. */
  14846. data: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  14847. /**
  14848. * Choose, which LibraryCase to update.
  14849. */
  14850. where: LibraryCaseWhereUniqueInput
  14851. }
  14852. /**
  14853. * LibraryCase updateMany
  14854. */
  14855. export type LibraryCaseUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14856. /**
  14857. * The data used to update LibraryCases.
  14858. */
  14859. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  14860. /**
  14861. * Filter which LibraryCases to update
  14862. */
  14863. where?: LibraryCaseWhereInput
  14864. /**
  14865. * Limit how many LibraryCases to update.
  14866. */
  14867. limit?: number
  14868. }
  14869. /**
  14870. * LibraryCase updateManyAndReturn
  14871. */
  14872. export type LibraryCaseUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14873. /**
  14874. * Select specific fields to fetch from the LibraryCase
  14875. */
  14876. select?: LibraryCaseSelectUpdateManyAndReturn<ExtArgs> | null
  14877. /**
  14878. * Omit specific fields from the LibraryCase
  14879. */
  14880. omit?: LibraryCaseOmit<ExtArgs> | null
  14881. /**
  14882. * The data used to update LibraryCases.
  14883. */
  14884. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  14885. /**
  14886. * Filter which LibraryCases to update
  14887. */
  14888. where?: LibraryCaseWhereInput
  14889. /**
  14890. * Limit how many LibraryCases to update.
  14891. */
  14892. limit?: number
  14893. }
  14894. /**
  14895. * LibraryCase upsert
  14896. */
  14897. export type LibraryCaseUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14898. /**
  14899. * Select specific fields to fetch from the LibraryCase
  14900. */
  14901. select?: LibraryCaseSelect<ExtArgs> | null
  14902. /**
  14903. * Omit specific fields from the LibraryCase
  14904. */
  14905. omit?: LibraryCaseOmit<ExtArgs> | null
  14906. /**
  14907. * The filter to search for the LibraryCase to update in case it exists.
  14908. */
  14909. where: LibraryCaseWhereUniqueInput
  14910. /**
  14911. * In case the LibraryCase found by the `where` argument doesn't exist, create a new LibraryCase with this data.
  14912. */
  14913. create: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  14914. /**
  14915. * In case the LibraryCase was found with the provided `where` argument, update it with this data.
  14916. */
  14917. update: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  14918. }
  14919. /**
  14920. * LibraryCase delete
  14921. */
  14922. export type LibraryCaseDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14923. /**
  14924. * Select specific fields to fetch from the LibraryCase
  14925. */
  14926. select?: LibraryCaseSelect<ExtArgs> | null
  14927. /**
  14928. * Omit specific fields from the LibraryCase
  14929. */
  14930. omit?: LibraryCaseOmit<ExtArgs> | null
  14931. /**
  14932. * Filter which LibraryCase to delete.
  14933. */
  14934. where: LibraryCaseWhereUniqueInput
  14935. }
  14936. /**
  14937. * LibraryCase deleteMany
  14938. */
  14939. export type LibraryCaseDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14940. /**
  14941. * Filter which LibraryCases to delete
  14942. */
  14943. where?: LibraryCaseWhereInput
  14944. /**
  14945. * Limit how many LibraryCases to delete.
  14946. */
  14947. limit?: number
  14948. }
  14949. /**
  14950. * LibraryCase without action
  14951. */
  14952. export type LibraryCaseDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14953. /**
  14954. * Select specific fields to fetch from the LibraryCase
  14955. */
  14956. select?: LibraryCaseSelect<ExtArgs> | null
  14957. /**
  14958. * Omit specific fields from the LibraryCase
  14959. */
  14960. omit?: LibraryCaseOmit<ExtArgs> | null
  14961. }
  14962. /**
  14963. * Model ShareLink
  14964. */
  14965. export type AggregateShareLink = {
  14966. _count: ShareLinkCountAggregateOutputType | null
  14967. _min: ShareLinkMinAggregateOutputType | null
  14968. _max: ShareLinkMaxAggregateOutputType | null
  14969. }
  14970. export type ShareLinkMinAggregateOutputType = {
  14971. id: string | null
  14972. workspaceId: string | null
  14973. token: string | null
  14974. expiresAt: Date | null
  14975. createdAt: Date | null
  14976. }
  14977. export type ShareLinkMaxAggregateOutputType = {
  14978. id: string | null
  14979. workspaceId: string | null
  14980. token: string | null
  14981. expiresAt: Date | null
  14982. createdAt: Date | null
  14983. }
  14984. export type ShareLinkCountAggregateOutputType = {
  14985. id: number
  14986. workspaceId: number
  14987. token: number
  14988. expiresAt: number
  14989. createdAt: number
  14990. _all: number
  14991. }
  14992. export type ShareLinkMinAggregateInputType = {
  14993. id?: true
  14994. workspaceId?: true
  14995. token?: true
  14996. expiresAt?: true
  14997. createdAt?: true
  14998. }
  14999. export type ShareLinkMaxAggregateInputType = {
  15000. id?: true
  15001. workspaceId?: true
  15002. token?: true
  15003. expiresAt?: true
  15004. createdAt?: true
  15005. }
  15006. export type ShareLinkCountAggregateInputType = {
  15007. id?: true
  15008. workspaceId?: true
  15009. token?: true
  15010. expiresAt?: true
  15011. createdAt?: true
  15012. _all?: true
  15013. }
  15014. export type ShareLinkAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15015. /**
  15016. * Filter which ShareLink to aggregate.
  15017. */
  15018. where?: ShareLinkWhereInput
  15019. /**
  15020. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15021. *
  15022. * Determine the order of ShareLinks to fetch.
  15023. */
  15024. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15025. /**
  15026. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15027. *
  15028. * Sets the start position
  15029. */
  15030. cursor?: ShareLinkWhereUniqueInput
  15031. /**
  15032. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15033. *
  15034. * Take `±n` ShareLinks from the position of the cursor.
  15035. */
  15036. take?: number
  15037. /**
  15038. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15039. *
  15040. * Skip the first `n` ShareLinks.
  15041. */
  15042. skip?: number
  15043. /**
  15044. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15045. *
  15046. * Count returned ShareLinks
  15047. **/
  15048. _count?: true | ShareLinkCountAggregateInputType
  15049. /**
  15050. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15051. *
  15052. * Select which fields to find the minimum value
  15053. **/
  15054. _min?: ShareLinkMinAggregateInputType
  15055. /**
  15056. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15057. *
  15058. * Select which fields to find the maximum value
  15059. **/
  15060. _max?: ShareLinkMaxAggregateInputType
  15061. }
  15062. export type GetShareLinkAggregateType<T extends ShareLinkAggregateArgs> = {
  15063. [P in keyof T & keyof AggregateShareLink]: P extends '_count' | 'count'
  15064. ? T[P] extends true
  15065. ? number
  15066. : GetScalarType<T[P], AggregateShareLink[P]>
  15067. : GetScalarType<T[P], AggregateShareLink[P]>
  15068. }
  15069. export type ShareLinkGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15070. where?: ShareLinkWhereInput
  15071. orderBy?: ShareLinkOrderByWithAggregationInput | ShareLinkOrderByWithAggregationInput[]
  15072. by: ShareLinkScalarFieldEnum[] | ShareLinkScalarFieldEnum
  15073. having?: ShareLinkScalarWhereWithAggregatesInput
  15074. take?: number
  15075. skip?: number
  15076. _count?: ShareLinkCountAggregateInputType | true
  15077. _min?: ShareLinkMinAggregateInputType
  15078. _max?: ShareLinkMaxAggregateInputType
  15079. }
  15080. export type ShareLinkGroupByOutputType = {
  15081. id: string
  15082. workspaceId: string
  15083. token: string
  15084. expiresAt: Date | null
  15085. createdAt: Date
  15086. _count: ShareLinkCountAggregateOutputType | null
  15087. _min: ShareLinkMinAggregateOutputType | null
  15088. _max: ShareLinkMaxAggregateOutputType | null
  15089. }
  15090. type GetShareLinkGroupByPayload<T extends ShareLinkGroupByArgs> = Prisma.PrismaPromise<
  15091. Array<
  15092. PickEnumerable<ShareLinkGroupByOutputType, T['by']> &
  15093. {
  15094. [P in ((keyof T) & (keyof ShareLinkGroupByOutputType))]: P extends '_count'
  15095. ? T[P] extends boolean
  15096. ? number
  15097. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  15098. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  15099. }
  15100. >
  15101. >
  15102. export type ShareLinkSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15103. id?: boolean
  15104. workspaceId?: boolean
  15105. token?: boolean
  15106. expiresAt?: boolean
  15107. createdAt?: boolean
  15108. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15109. }, ExtArgs["result"]["shareLink"]>
  15110. export type ShareLinkSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15111. id?: boolean
  15112. workspaceId?: boolean
  15113. token?: boolean
  15114. expiresAt?: boolean
  15115. createdAt?: boolean
  15116. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15117. }, ExtArgs["result"]["shareLink"]>
  15118. export type ShareLinkSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15119. id?: boolean
  15120. workspaceId?: boolean
  15121. token?: boolean
  15122. expiresAt?: boolean
  15123. createdAt?: boolean
  15124. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15125. }, ExtArgs["result"]["shareLink"]>
  15126. export type ShareLinkSelectScalar = {
  15127. id?: boolean
  15128. workspaceId?: boolean
  15129. token?: boolean
  15130. expiresAt?: boolean
  15131. createdAt?: boolean
  15132. }
  15133. export type ShareLinkOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "token" | "expiresAt" | "createdAt", ExtArgs["result"]["shareLink"]>
  15134. export type ShareLinkInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15135. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15136. }
  15137. export type ShareLinkIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15138. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15139. }
  15140. export type ShareLinkIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15141. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15142. }
  15143. export type $ShareLinkPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15144. name: "ShareLink"
  15145. objects: {
  15146. workspace: Prisma.$WorkspacePayload<ExtArgs>
  15147. }
  15148. scalars: $Extensions.GetPayloadResult<{
  15149. id: string
  15150. workspaceId: string
  15151. token: string
  15152. expiresAt: Date | null
  15153. createdAt: Date
  15154. }, ExtArgs["result"]["shareLink"]>
  15155. composites: {}
  15156. }
  15157. type ShareLinkGetPayload<S extends boolean | null | undefined | ShareLinkDefaultArgs> = $Result.GetResult<Prisma.$ShareLinkPayload, S>
  15158. type ShareLinkCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  15159. Omit<ShareLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  15160. select?: ShareLinkCountAggregateInputType | true
  15161. }
  15162. export interface ShareLinkDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  15163. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShareLink'], meta: { name: 'ShareLink' } }
  15164. /**
  15165. * Find zero or one ShareLink that matches the filter.
  15166. * @param {ShareLinkFindUniqueArgs} args - Arguments to find a ShareLink
  15167. * @example
  15168. * // Get one ShareLink
  15169. * const shareLink = await prisma.shareLink.findUnique({
  15170. * where: {
  15171. * // ... provide filter here
  15172. * }
  15173. * })
  15174. */
  15175. findUnique<T extends ShareLinkFindUniqueArgs>(args: SelectSubset<T, ShareLinkFindUniqueArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15176. /**
  15177. * Find one ShareLink that matches the filter or throw an error with `error.code='P2025'`
  15178. * if no matches were found.
  15179. * @param {ShareLinkFindUniqueOrThrowArgs} args - Arguments to find a ShareLink
  15180. * @example
  15181. * // Get one ShareLink
  15182. * const shareLink = await prisma.shareLink.findUniqueOrThrow({
  15183. * where: {
  15184. * // ... provide filter here
  15185. * }
  15186. * })
  15187. */
  15188. findUniqueOrThrow<T extends ShareLinkFindUniqueOrThrowArgs>(args: SelectSubset<T, ShareLinkFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15189. /**
  15190. * Find the first ShareLink that matches the filter.
  15191. * Note, that providing `undefined` is treated as the value not being there.
  15192. * Read more here: https://pris.ly/d/null-undefined
  15193. * @param {ShareLinkFindFirstArgs} args - Arguments to find a ShareLink
  15194. * @example
  15195. * // Get one ShareLink
  15196. * const shareLink = await prisma.shareLink.findFirst({
  15197. * where: {
  15198. * // ... provide filter here
  15199. * }
  15200. * })
  15201. */
  15202. findFirst<T extends ShareLinkFindFirstArgs>(args?: SelectSubset<T, ShareLinkFindFirstArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15203. /**
  15204. * Find the first ShareLink that matches the filter or
  15205. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  15206. * Note, that providing `undefined` is treated as the value not being there.
  15207. * Read more here: https://pris.ly/d/null-undefined
  15208. * @param {ShareLinkFindFirstOrThrowArgs} args - Arguments to find a ShareLink
  15209. * @example
  15210. * // Get one ShareLink
  15211. * const shareLink = await prisma.shareLink.findFirstOrThrow({
  15212. * where: {
  15213. * // ... provide filter here
  15214. * }
  15215. * })
  15216. */
  15217. findFirstOrThrow<T extends ShareLinkFindFirstOrThrowArgs>(args?: SelectSubset<T, ShareLinkFindFirstOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15218. /**
  15219. * Find zero or more ShareLinks that matches the filter.
  15220. * Note, that providing `undefined` is treated as the value not being there.
  15221. * Read more here: https://pris.ly/d/null-undefined
  15222. * @param {ShareLinkFindManyArgs} args - Arguments to filter and select certain fields only.
  15223. * @example
  15224. * // Get all ShareLinks
  15225. * const shareLinks = await prisma.shareLink.findMany()
  15226. *
  15227. * // Get first 10 ShareLinks
  15228. * const shareLinks = await prisma.shareLink.findMany({ take: 10 })
  15229. *
  15230. * // Only select the `id`
  15231. * const shareLinkWithIdOnly = await prisma.shareLink.findMany({ select: { id: true } })
  15232. *
  15233. */
  15234. findMany<T extends ShareLinkFindManyArgs>(args?: SelectSubset<T, ShareLinkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  15235. /**
  15236. * Create a ShareLink.
  15237. * @param {ShareLinkCreateArgs} args - Arguments to create a ShareLink.
  15238. * @example
  15239. * // Create one ShareLink
  15240. * const ShareLink = await prisma.shareLink.create({
  15241. * data: {
  15242. * // ... data to create a ShareLink
  15243. * }
  15244. * })
  15245. *
  15246. */
  15247. create<T extends ShareLinkCreateArgs>(args: SelectSubset<T, ShareLinkCreateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15248. /**
  15249. * Create many ShareLinks.
  15250. * @param {ShareLinkCreateManyArgs} args - Arguments to create many ShareLinks.
  15251. * @example
  15252. * // Create many ShareLinks
  15253. * const shareLink = await prisma.shareLink.createMany({
  15254. * data: [
  15255. * // ... provide data here
  15256. * ]
  15257. * })
  15258. *
  15259. */
  15260. createMany<T extends ShareLinkCreateManyArgs>(args?: SelectSubset<T, ShareLinkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15261. /**
  15262. * Create many ShareLinks and returns the data saved in the database.
  15263. * @param {ShareLinkCreateManyAndReturnArgs} args - Arguments to create many ShareLinks.
  15264. * @example
  15265. * // Create many ShareLinks
  15266. * const shareLink = await prisma.shareLink.createManyAndReturn({
  15267. * data: [
  15268. * // ... provide data here
  15269. * ]
  15270. * })
  15271. *
  15272. * // Create many ShareLinks and only return the `id`
  15273. * const shareLinkWithIdOnly = await prisma.shareLink.createManyAndReturn({
  15274. * select: { id: true },
  15275. * data: [
  15276. * // ... provide data here
  15277. * ]
  15278. * })
  15279. * Note, that providing `undefined` is treated as the value not being there.
  15280. * Read more here: https://pris.ly/d/null-undefined
  15281. *
  15282. */
  15283. createManyAndReturn<T extends ShareLinkCreateManyAndReturnArgs>(args?: SelectSubset<T, ShareLinkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  15284. /**
  15285. * Delete a ShareLink.
  15286. * @param {ShareLinkDeleteArgs} args - Arguments to delete one ShareLink.
  15287. * @example
  15288. * // Delete one ShareLink
  15289. * const ShareLink = await prisma.shareLink.delete({
  15290. * where: {
  15291. * // ... filter to delete one ShareLink
  15292. * }
  15293. * })
  15294. *
  15295. */
  15296. delete<T extends ShareLinkDeleteArgs>(args: SelectSubset<T, ShareLinkDeleteArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15297. /**
  15298. * Update one ShareLink.
  15299. * @param {ShareLinkUpdateArgs} args - Arguments to update one ShareLink.
  15300. * @example
  15301. * // Update one ShareLink
  15302. * const shareLink = await prisma.shareLink.update({
  15303. * where: {
  15304. * // ... provide filter here
  15305. * },
  15306. * data: {
  15307. * // ... provide data here
  15308. * }
  15309. * })
  15310. *
  15311. */
  15312. update<T extends ShareLinkUpdateArgs>(args: SelectSubset<T, ShareLinkUpdateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15313. /**
  15314. * Delete zero or more ShareLinks.
  15315. * @param {ShareLinkDeleteManyArgs} args - Arguments to filter ShareLinks to delete.
  15316. * @example
  15317. * // Delete a few ShareLinks
  15318. * const { count } = await prisma.shareLink.deleteMany({
  15319. * where: {
  15320. * // ... provide filter here
  15321. * }
  15322. * })
  15323. *
  15324. */
  15325. deleteMany<T extends ShareLinkDeleteManyArgs>(args?: SelectSubset<T, ShareLinkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15326. /**
  15327. * Update zero or more ShareLinks.
  15328. * Note, that providing `undefined` is treated as the value not being there.
  15329. * Read more here: https://pris.ly/d/null-undefined
  15330. * @param {ShareLinkUpdateManyArgs} args - Arguments to update one or more rows.
  15331. * @example
  15332. * // Update many ShareLinks
  15333. * const shareLink = await prisma.shareLink.updateMany({
  15334. * where: {
  15335. * // ... provide filter here
  15336. * },
  15337. * data: {
  15338. * // ... provide data here
  15339. * }
  15340. * })
  15341. *
  15342. */
  15343. updateMany<T extends ShareLinkUpdateManyArgs>(args: SelectSubset<T, ShareLinkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15344. /**
  15345. * Update zero or more ShareLinks and returns the data updated in the database.
  15346. * @param {ShareLinkUpdateManyAndReturnArgs} args - Arguments to update many ShareLinks.
  15347. * @example
  15348. * // Update many ShareLinks
  15349. * const shareLink = await prisma.shareLink.updateManyAndReturn({
  15350. * where: {
  15351. * // ... provide filter here
  15352. * },
  15353. * data: [
  15354. * // ... provide data here
  15355. * ]
  15356. * })
  15357. *
  15358. * // Update zero or more ShareLinks and only return the `id`
  15359. * const shareLinkWithIdOnly = await prisma.shareLink.updateManyAndReturn({
  15360. * select: { id: true },
  15361. * where: {
  15362. * // ... provide filter here
  15363. * },
  15364. * data: [
  15365. * // ... provide data here
  15366. * ]
  15367. * })
  15368. * Note, that providing `undefined` is treated as the value not being there.
  15369. * Read more here: https://pris.ly/d/null-undefined
  15370. *
  15371. */
  15372. updateManyAndReturn<T extends ShareLinkUpdateManyAndReturnArgs>(args: SelectSubset<T, ShareLinkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  15373. /**
  15374. * Create or update one ShareLink.
  15375. * @param {ShareLinkUpsertArgs} args - Arguments to update or create a ShareLink.
  15376. * @example
  15377. * // Update or create a ShareLink
  15378. * const shareLink = await prisma.shareLink.upsert({
  15379. * create: {
  15380. * // ... data to create a ShareLink
  15381. * },
  15382. * update: {
  15383. * // ... in case it already exists, update
  15384. * },
  15385. * where: {
  15386. * // ... the filter for the ShareLink we want to update
  15387. * }
  15388. * })
  15389. */
  15390. upsert<T extends ShareLinkUpsertArgs>(args: SelectSubset<T, ShareLinkUpsertArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15391. /**
  15392. * Count the number of ShareLinks.
  15393. * Note, that providing `undefined` is treated as the value not being there.
  15394. * Read more here: https://pris.ly/d/null-undefined
  15395. * @param {ShareLinkCountArgs} args - Arguments to filter ShareLinks to count.
  15396. * @example
  15397. * // Count the number of ShareLinks
  15398. * const count = await prisma.shareLink.count({
  15399. * where: {
  15400. * // ... the filter for the ShareLinks we want to count
  15401. * }
  15402. * })
  15403. **/
  15404. count<T extends ShareLinkCountArgs>(
  15405. args?: Subset<T, ShareLinkCountArgs>,
  15406. ): Prisma.PrismaPromise<
  15407. T extends $Utils.Record<'select', any>
  15408. ? T['select'] extends true
  15409. ? number
  15410. : GetScalarType<T['select'], ShareLinkCountAggregateOutputType>
  15411. : number
  15412. >
  15413. /**
  15414. * Allows you to perform aggregations operations on a ShareLink.
  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 {ShareLinkAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  15418. * @example
  15419. * // Ordered by age ascending
  15420. * // Where email contains prisma.io
  15421. * // Limited to the 10 users
  15422. * const aggregations = await prisma.user.aggregate({
  15423. * _avg: {
  15424. * age: true,
  15425. * },
  15426. * where: {
  15427. * email: {
  15428. * contains: "prisma.io",
  15429. * },
  15430. * },
  15431. * orderBy: {
  15432. * age: "asc",
  15433. * },
  15434. * take: 10,
  15435. * })
  15436. **/
  15437. aggregate<T extends ShareLinkAggregateArgs>(args: Subset<T, ShareLinkAggregateArgs>): Prisma.PrismaPromise<GetShareLinkAggregateType<T>>
  15438. /**
  15439. * Group by ShareLink.
  15440. * Note, that providing `undefined` is treated as the value not being there.
  15441. * Read more here: https://pris.ly/d/null-undefined
  15442. * @param {ShareLinkGroupByArgs} args - Group by arguments.
  15443. * @example
  15444. * // Group by city, order by createdAt, get count
  15445. * const result = await prisma.user.groupBy({
  15446. * by: ['city', 'createdAt'],
  15447. * orderBy: {
  15448. * createdAt: true
  15449. * },
  15450. * _count: {
  15451. * _all: true
  15452. * },
  15453. * })
  15454. *
  15455. **/
  15456. groupBy<
  15457. T extends ShareLinkGroupByArgs,
  15458. HasSelectOrTake extends Or<
  15459. Extends<'skip', Keys<T>>,
  15460. Extends<'take', Keys<T>>
  15461. >,
  15462. OrderByArg extends True extends HasSelectOrTake
  15463. ? { orderBy: ShareLinkGroupByArgs['orderBy'] }
  15464. : { orderBy?: ShareLinkGroupByArgs['orderBy'] },
  15465. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  15466. ByFields extends MaybeTupleToUnion<T['by']>,
  15467. ByValid extends Has<ByFields, OrderFields>,
  15468. HavingFields extends GetHavingFields<T['having']>,
  15469. HavingValid extends Has<ByFields, HavingFields>,
  15470. ByEmpty extends T['by'] extends never[] ? True : False,
  15471. InputErrors extends ByEmpty extends True
  15472. ? `Error: "by" must not be empty.`
  15473. : HavingValid extends False
  15474. ? {
  15475. [P in HavingFields]: P extends ByFields
  15476. ? never
  15477. : P extends string
  15478. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  15479. : [
  15480. Error,
  15481. 'Field ',
  15482. P,
  15483. ` in "having" needs to be provided in "by"`,
  15484. ]
  15485. }[HavingFields]
  15486. : 'take' extends Keys<T>
  15487. ? 'orderBy' extends Keys<T>
  15488. ? ByValid extends True
  15489. ? {}
  15490. : {
  15491. [P in OrderFields]: P extends ByFields
  15492. ? never
  15493. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15494. }[OrderFields]
  15495. : 'Error: If you provide "take", you also need to provide "orderBy"'
  15496. : 'skip' extends Keys<T>
  15497. ? 'orderBy' extends Keys<T>
  15498. ? ByValid extends True
  15499. ? {}
  15500. : {
  15501. [P in OrderFields]: P extends ByFields
  15502. ? never
  15503. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15504. }[OrderFields]
  15505. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  15506. : ByValid extends True
  15507. ? {}
  15508. : {
  15509. [P in OrderFields]: P extends ByFields
  15510. ? never
  15511. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15512. }[OrderFields]
  15513. >(args: SubsetIntersection<T, ShareLinkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShareLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  15514. /**
  15515. * Fields of the ShareLink model
  15516. */
  15517. readonly fields: ShareLinkFieldRefs;
  15518. }
  15519. /**
  15520. * The delegate class that acts as a "Promise-like" for ShareLink.
  15521. * Why is this prefixed with `Prisma__`?
  15522. * Because we want to prevent naming conflicts as mentioned in
  15523. * https://github.com/prisma/prisma-client-js/issues/707
  15524. */
  15525. export interface Prisma__ShareLinkClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  15526. readonly [Symbol.toStringTag]: "PrismaPromise"
  15527. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  15528. /**
  15529. * Attaches callbacks for the resolution and/or rejection of the Promise.
  15530. * @param onfulfilled The callback to execute when the Promise is resolved.
  15531. * @param onrejected The callback to execute when the Promise is rejected.
  15532. * @returns A Promise for the completion of which ever callback is executed.
  15533. */
  15534. 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>
  15535. /**
  15536. * Attaches a callback for only the rejection of the Promise.
  15537. * @param onrejected The callback to execute when the Promise is rejected.
  15538. * @returns A Promise for the completion of the callback.
  15539. */
  15540. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  15541. /**
  15542. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  15543. * resolved value cannot be modified from the callback.
  15544. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  15545. * @returns A Promise for the completion of the callback.
  15546. */
  15547. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  15548. }
  15549. /**
  15550. * Fields of the ShareLink model
  15551. */
  15552. interface ShareLinkFieldRefs {
  15553. readonly id: FieldRef<"ShareLink", 'String'>
  15554. readonly workspaceId: FieldRef<"ShareLink", 'String'>
  15555. readonly token: FieldRef<"ShareLink", 'String'>
  15556. readonly expiresAt: FieldRef<"ShareLink", 'DateTime'>
  15557. readonly createdAt: FieldRef<"ShareLink", 'DateTime'>
  15558. }
  15559. // Custom InputTypes
  15560. /**
  15561. * ShareLink findUnique
  15562. */
  15563. export type ShareLinkFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15564. /**
  15565. * Select specific fields to fetch from the ShareLink
  15566. */
  15567. select?: ShareLinkSelect<ExtArgs> | null
  15568. /**
  15569. * Omit specific fields from the ShareLink
  15570. */
  15571. omit?: ShareLinkOmit<ExtArgs> | null
  15572. /**
  15573. * Choose, which related nodes to fetch as well
  15574. */
  15575. include?: ShareLinkInclude<ExtArgs> | null
  15576. /**
  15577. * Filter, which ShareLink to fetch.
  15578. */
  15579. where: ShareLinkWhereUniqueInput
  15580. }
  15581. /**
  15582. * ShareLink findUniqueOrThrow
  15583. */
  15584. export type ShareLinkFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15585. /**
  15586. * Select specific fields to fetch from the ShareLink
  15587. */
  15588. select?: ShareLinkSelect<ExtArgs> | null
  15589. /**
  15590. * Omit specific fields from the ShareLink
  15591. */
  15592. omit?: ShareLinkOmit<ExtArgs> | null
  15593. /**
  15594. * Choose, which related nodes to fetch as well
  15595. */
  15596. include?: ShareLinkInclude<ExtArgs> | null
  15597. /**
  15598. * Filter, which ShareLink to fetch.
  15599. */
  15600. where: ShareLinkWhereUniqueInput
  15601. }
  15602. /**
  15603. * ShareLink findFirst
  15604. */
  15605. export type ShareLinkFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15606. /**
  15607. * Select specific fields to fetch from the ShareLink
  15608. */
  15609. select?: ShareLinkSelect<ExtArgs> | null
  15610. /**
  15611. * Omit specific fields from the ShareLink
  15612. */
  15613. omit?: ShareLinkOmit<ExtArgs> | null
  15614. /**
  15615. * Choose, which related nodes to fetch as well
  15616. */
  15617. include?: ShareLinkInclude<ExtArgs> | null
  15618. /**
  15619. * Filter, which ShareLink to fetch.
  15620. */
  15621. where?: ShareLinkWhereInput
  15622. /**
  15623. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15624. *
  15625. * Determine the order of ShareLinks to fetch.
  15626. */
  15627. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15628. /**
  15629. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15630. *
  15631. * Sets the position for searching for ShareLinks.
  15632. */
  15633. cursor?: ShareLinkWhereUniqueInput
  15634. /**
  15635. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15636. *
  15637. * Take `±n` ShareLinks from the position of the cursor.
  15638. */
  15639. take?: number
  15640. /**
  15641. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15642. *
  15643. * Skip the first `n` ShareLinks.
  15644. */
  15645. skip?: number
  15646. /**
  15647. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15648. *
  15649. * Filter by unique combinations of ShareLinks.
  15650. */
  15651. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15652. }
  15653. /**
  15654. * ShareLink findFirstOrThrow
  15655. */
  15656. export type ShareLinkFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15657. /**
  15658. * Select specific fields to fetch from the ShareLink
  15659. */
  15660. select?: ShareLinkSelect<ExtArgs> | null
  15661. /**
  15662. * Omit specific fields from the ShareLink
  15663. */
  15664. omit?: ShareLinkOmit<ExtArgs> | null
  15665. /**
  15666. * Choose, which related nodes to fetch as well
  15667. */
  15668. include?: ShareLinkInclude<ExtArgs> | null
  15669. /**
  15670. * Filter, which ShareLink to fetch.
  15671. */
  15672. where?: ShareLinkWhereInput
  15673. /**
  15674. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15675. *
  15676. * Determine the order of ShareLinks to fetch.
  15677. */
  15678. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15679. /**
  15680. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15681. *
  15682. * Sets the position for searching for ShareLinks.
  15683. */
  15684. cursor?: ShareLinkWhereUniqueInput
  15685. /**
  15686. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15687. *
  15688. * Take `±n` ShareLinks from the position of the cursor.
  15689. */
  15690. take?: number
  15691. /**
  15692. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15693. *
  15694. * Skip the first `n` ShareLinks.
  15695. */
  15696. skip?: number
  15697. /**
  15698. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15699. *
  15700. * Filter by unique combinations of ShareLinks.
  15701. */
  15702. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15703. }
  15704. /**
  15705. * ShareLink findMany
  15706. */
  15707. export type ShareLinkFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15708. /**
  15709. * Select specific fields to fetch from the ShareLink
  15710. */
  15711. select?: ShareLinkSelect<ExtArgs> | null
  15712. /**
  15713. * Omit specific fields from the ShareLink
  15714. */
  15715. omit?: ShareLinkOmit<ExtArgs> | null
  15716. /**
  15717. * Choose, which related nodes to fetch as well
  15718. */
  15719. include?: ShareLinkInclude<ExtArgs> | null
  15720. /**
  15721. * Filter, which ShareLinks to fetch.
  15722. */
  15723. where?: ShareLinkWhereInput
  15724. /**
  15725. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15726. *
  15727. * Determine the order of ShareLinks to fetch.
  15728. */
  15729. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15730. /**
  15731. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15732. *
  15733. * Sets the position for listing ShareLinks.
  15734. */
  15735. cursor?: ShareLinkWhereUniqueInput
  15736. /**
  15737. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15738. *
  15739. * Take `±n` ShareLinks from the position of the cursor.
  15740. */
  15741. take?: number
  15742. /**
  15743. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15744. *
  15745. * Skip the first `n` ShareLinks.
  15746. */
  15747. skip?: number
  15748. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15749. }
  15750. /**
  15751. * ShareLink create
  15752. */
  15753. export type ShareLinkCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15754. /**
  15755. * Select specific fields to fetch from the ShareLink
  15756. */
  15757. select?: ShareLinkSelect<ExtArgs> | null
  15758. /**
  15759. * Omit specific fields from the ShareLink
  15760. */
  15761. omit?: ShareLinkOmit<ExtArgs> | null
  15762. /**
  15763. * Choose, which related nodes to fetch as well
  15764. */
  15765. include?: ShareLinkInclude<ExtArgs> | null
  15766. /**
  15767. * The data needed to create a ShareLink.
  15768. */
  15769. data: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  15770. }
  15771. /**
  15772. * ShareLink createMany
  15773. */
  15774. export type ShareLinkCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15775. /**
  15776. * The data used to create many ShareLinks.
  15777. */
  15778. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  15779. skipDuplicates?: boolean
  15780. }
  15781. /**
  15782. * ShareLink createManyAndReturn
  15783. */
  15784. export type ShareLinkCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15785. /**
  15786. * Select specific fields to fetch from the ShareLink
  15787. */
  15788. select?: ShareLinkSelectCreateManyAndReturn<ExtArgs> | null
  15789. /**
  15790. * Omit specific fields from the ShareLink
  15791. */
  15792. omit?: ShareLinkOmit<ExtArgs> | null
  15793. /**
  15794. * The data used to create many ShareLinks.
  15795. */
  15796. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  15797. skipDuplicates?: boolean
  15798. /**
  15799. * Choose, which related nodes to fetch as well
  15800. */
  15801. include?: ShareLinkIncludeCreateManyAndReturn<ExtArgs> | null
  15802. }
  15803. /**
  15804. * ShareLink update
  15805. */
  15806. export type ShareLinkUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15807. /**
  15808. * Select specific fields to fetch from the ShareLink
  15809. */
  15810. select?: ShareLinkSelect<ExtArgs> | null
  15811. /**
  15812. * Omit specific fields from the ShareLink
  15813. */
  15814. omit?: ShareLinkOmit<ExtArgs> | null
  15815. /**
  15816. * Choose, which related nodes to fetch as well
  15817. */
  15818. include?: ShareLinkInclude<ExtArgs> | null
  15819. /**
  15820. * The data needed to update a ShareLink.
  15821. */
  15822. data: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  15823. /**
  15824. * Choose, which ShareLink to update.
  15825. */
  15826. where: ShareLinkWhereUniqueInput
  15827. }
  15828. /**
  15829. * ShareLink updateMany
  15830. */
  15831. export type ShareLinkUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15832. /**
  15833. * The data used to update ShareLinks.
  15834. */
  15835. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  15836. /**
  15837. * Filter which ShareLinks to update
  15838. */
  15839. where?: ShareLinkWhereInput
  15840. /**
  15841. * Limit how many ShareLinks to update.
  15842. */
  15843. limit?: number
  15844. }
  15845. /**
  15846. * ShareLink updateManyAndReturn
  15847. */
  15848. export type ShareLinkUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15849. /**
  15850. * Select specific fields to fetch from the ShareLink
  15851. */
  15852. select?: ShareLinkSelectUpdateManyAndReturn<ExtArgs> | null
  15853. /**
  15854. * Omit specific fields from the ShareLink
  15855. */
  15856. omit?: ShareLinkOmit<ExtArgs> | null
  15857. /**
  15858. * The data used to update ShareLinks.
  15859. */
  15860. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  15861. /**
  15862. * Filter which ShareLinks to update
  15863. */
  15864. where?: ShareLinkWhereInput
  15865. /**
  15866. * Limit how many ShareLinks to update.
  15867. */
  15868. limit?: number
  15869. /**
  15870. * Choose, which related nodes to fetch as well
  15871. */
  15872. include?: ShareLinkIncludeUpdateManyAndReturn<ExtArgs> | null
  15873. }
  15874. /**
  15875. * ShareLink upsert
  15876. */
  15877. export type ShareLinkUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15878. /**
  15879. * Select specific fields to fetch from the ShareLink
  15880. */
  15881. select?: ShareLinkSelect<ExtArgs> | null
  15882. /**
  15883. * Omit specific fields from the ShareLink
  15884. */
  15885. omit?: ShareLinkOmit<ExtArgs> | null
  15886. /**
  15887. * Choose, which related nodes to fetch as well
  15888. */
  15889. include?: ShareLinkInclude<ExtArgs> | null
  15890. /**
  15891. * The filter to search for the ShareLink to update in case it exists.
  15892. */
  15893. where: ShareLinkWhereUniqueInput
  15894. /**
  15895. * In case the ShareLink found by the `where` argument doesn't exist, create a new ShareLink with this data.
  15896. */
  15897. create: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  15898. /**
  15899. * In case the ShareLink was found with the provided `where` argument, update it with this data.
  15900. */
  15901. update: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  15902. }
  15903. /**
  15904. * ShareLink delete
  15905. */
  15906. export type ShareLinkDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15907. /**
  15908. * Select specific fields to fetch from the ShareLink
  15909. */
  15910. select?: ShareLinkSelect<ExtArgs> | null
  15911. /**
  15912. * Omit specific fields from the ShareLink
  15913. */
  15914. omit?: ShareLinkOmit<ExtArgs> | null
  15915. /**
  15916. * Choose, which related nodes to fetch as well
  15917. */
  15918. include?: ShareLinkInclude<ExtArgs> | null
  15919. /**
  15920. * Filter which ShareLink to delete.
  15921. */
  15922. where: ShareLinkWhereUniqueInput
  15923. }
  15924. /**
  15925. * ShareLink deleteMany
  15926. */
  15927. export type ShareLinkDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15928. /**
  15929. * Filter which ShareLinks to delete
  15930. */
  15931. where?: ShareLinkWhereInput
  15932. /**
  15933. * Limit how many ShareLinks to delete.
  15934. */
  15935. limit?: number
  15936. }
  15937. /**
  15938. * ShareLink without action
  15939. */
  15940. export type ShareLinkDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15941. /**
  15942. * Select specific fields to fetch from the ShareLink
  15943. */
  15944. select?: ShareLinkSelect<ExtArgs> | null
  15945. /**
  15946. * Omit specific fields from the ShareLink
  15947. */
  15948. omit?: ShareLinkOmit<ExtArgs> | null
  15949. /**
  15950. * Choose, which related nodes to fetch as well
  15951. */
  15952. include?: ShareLinkInclude<ExtArgs> | null
  15953. }
  15954. /**
  15955. * Enums
  15956. */
  15957. export const TransactionIsolationLevel: {
  15958. ReadUncommitted: 'ReadUncommitted',
  15959. ReadCommitted: 'ReadCommitted',
  15960. RepeatableRead: 'RepeatableRead',
  15961. Serializable: 'Serializable'
  15962. };
  15963. export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
  15964. export const WorkspaceScalarFieldEnum: {
  15965. id: 'id',
  15966. name: 'name',
  15967. slug: 'slug',
  15968. sector: 'sector',
  15969. companySize: 'companySize',
  15970. contactEmail: 'contactEmail',
  15971. tier: 'tier',
  15972. llmCallsThisMonth: 'llmCallsThisMonth',
  15973. llmCallsResetAt: 'llmCallsResetAt',
  15974. autoRelanceEnabled: 'autoRelanceEnabled',
  15975. exportsThisMonth: 'exportsThisMonth',
  15976. exportsResetAt: 'exportsResetAt',
  15977. lastVisitedAt: 'lastVisitedAt',
  15978. createdAt: 'createdAt',
  15979. updatedAt: 'updatedAt',
  15980. ownerId: 'ownerId'
  15981. };
  15982. export type WorkspaceScalarFieldEnum = (typeof WorkspaceScalarFieldEnum)[keyof typeof WorkspaceScalarFieldEnum]
  15983. export const ManualRelanceLogScalarFieldEnum: {
  15984. id: 'id',
  15985. workspaceId: 'workspaceId',
  15986. subject: 'subject',
  15987. recipientCount: 'recipientCount',
  15988. sentCount: 'sentCount',
  15989. failedCount: 'failedCount',
  15990. sentAt: 'sentAt'
  15991. };
  15992. export type ManualRelanceLogScalarFieldEnum = (typeof ManualRelanceLogScalarFieldEnum)[keyof typeof ManualRelanceLogScalarFieldEnum]
  15993. export const ContributorScalarFieldEnum: {
  15994. id: 'id',
  15995. workspaceId: 'workspaceId',
  15996. email: 'email',
  15997. status: 'status',
  15998. invitedAt: 'invitedAt',
  15999. lastRemindedAt: 'lastRemindedAt',
  16000. createdAt: 'createdAt'
  16001. };
  16002. export type ContributorScalarFieldEnum = (typeof ContributorScalarFieldEnum)[keyof typeof ContributorScalarFieldEnum]
  16003. export const IdeaScalarFieldEnum: {
  16004. id: 'id',
  16005. workspaceId: 'workspaceId',
  16006. contributorEmail: 'contributorEmail',
  16007. contributorId: 'contributorId',
  16008. department: 'department',
  16009. problemDescription: 'problemDescription',
  16010. estimatedImpact: 'estimatedImpact',
  16011. frequency: 'frequency',
  16012. status: 'status',
  16013. llmTitle: 'llmTitle',
  16014. llmDomain: 'llmDomain',
  16015. llmAiType: 'llmAiType',
  16016. llmExplanation: 'llmExplanation',
  16017. llmScoreImpact: 'llmScoreImpact',
  16018. llmScoreFeasibility: 'llmScoreFeasibility',
  16019. llmScoreUrgency: 'llmScoreUrgency',
  16020. llmEnrichedAt: 'llmEnrichedAt',
  16021. llmEnrichFailed: 'llmEnrichFailed',
  16022. manualScoreImpact: 'manualScoreImpact',
  16023. manualScoreFeasibility: 'manualScoreFeasibility',
  16024. manualScoreUrgency: 'manualScoreUrgency',
  16025. priorityOrder: 'priorityOrder',
  16026. emailMessageId: 'emailMessageId',
  16027. createdAt: 'createdAt',
  16028. updatedAt: 'updatedAt'
  16029. };
  16030. export type IdeaScalarFieldEnum = (typeof IdeaScalarFieldEnum)[keyof typeof IdeaScalarFieldEnum]
  16031. export const PostScalarFieldEnum: {
  16032. id: 'id',
  16033. name: 'name',
  16034. createdAt: 'createdAt',
  16035. updatedAt: 'updatedAt',
  16036. createdById: 'createdById'
  16037. };
  16038. export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum]
  16039. export const AccountScalarFieldEnum: {
  16040. id: 'id',
  16041. userId: 'userId',
  16042. type: 'type',
  16043. provider: 'provider',
  16044. providerAccountId: 'providerAccountId',
  16045. refresh_token: 'refresh_token',
  16046. access_token: 'access_token',
  16047. expires_at: 'expires_at',
  16048. token_type: 'token_type',
  16049. scope: 'scope',
  16050. id_token: 'id_token',
  16051. session_state: 'session_state',
  16052. refresh_token_expires_in: 'refresh_token_expires_in'
  16053. };
  16054. export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
  16055. export const SessionScalarFieldEnum: {
  16056. id: 'id',
  16057. sessionToken: 'sessionToken',
  16058. userId: 'userId',
  16059. expires: 'expires'
  16060. };
  16061. export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
  16062. export const UserScalarFieldEnum: {
  16063. id: 'id',
  16064. name: 'name',
  16065. email: 'email',
  16066. emailVerified: 'emailVerified',
  16067. password: 'password',
  16068. image: 'image'
  16069. };
  16070. export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
  16071. export const VerificationTokenScalarFieldEnum: {
  16072. identifier: 'identifier',
  16073. token: 'token',
  16074. expires: 'expires'
  16075. };
  16076. export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum]
  16077. export const IdeaAttachmentScalarFieldEnum: {
  16078. id: 'id',
  16079. ideaId: 'ideaId',
  16080. workspaceId: 'workspaceId',
  16081. filename: 'filename',
  16082. contentType: 'contentType',
  16083. size: 'size',
  16084. url: 'url',
  16085. blobPath: 'blobPath',
  16086. createdAt: 'createdAt'
  16087. };
  16088. export type IdeaAttachmentScalarFieldEnum = (typeof IdeaAttachmentScalarFieldEnum)[keyof typeof IdeaAttachmentScalarFieldEnum]
  16089. export const QualificationQuestionScalarFieldEnum: {
  16090. id: 'id',
  16091. ideaId: 'ideaId',
  16092. workspaceId: 'workspaceId',
  16093. questionText: 'questionText',
  16094. responseToken: 'responseToken',
  16095. askedAt: 'askedAt',
  16096. responseText: 'responseText',
  16097. answeredAt: 'answeredAt'
  16098. };
  16099. export type QualificationQuestionScalarFieldEnum = (typeof QualificationQuestionScalarFieldEnum)[keyof typeof QualificationQuestionScalarFieldEnum]
  16100. export const LibraryCaseScalarFieldEnum: {
  16101. id: 'id',
  16102. sector: 'sector',
  16103. department: 'department',
  16104. title: 'title',
  16105. description: 'description',
  16106. createdAt: 'createdAt',
  16107. updatedAt: 'updatedAt'
  16108. };
  16109. export type LibraryCaseScalarFieldEnum = (typeof LibraryCaseScalarFieldEnum)[keyof typeof LibraryCaseScalarFieldEnum]
  16110. export const ShareLinkScalarFieldEnum: {
  16111. id: 'id',
  16112. workspaceId: 'workspaceId',
  16113. token: 'token',
  16114. expiresAt: 'expiresAt',
  16115. createdAt: 'createdAt'
  16116. };
  16117. export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
  16118. export const SortOrder: {
  16119. asc: 'asc',
  16120. desc: 'desc'
  16121. };
  16122. export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
  16123. export const QueryMode: {
  16124. default: 'default',
  16125. insensitive: 'insensitive'
  16126. };
  16127. export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
  16128. export const NullsOrder: {
  16129. first: 'first',
  16130. last: 'last'
  16131. };
  16132. export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
  16133. /**
  16134. * Field references
  16135. */
  16136. /**
  16137. * Reference to a field of type 'String'
  16138. */
  16139. export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
  16140. /**
  16141. * Reference to a field of type 'String[]'
  16142. */
  16143. export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
  16144. /**
  16145. * Reference to a field of type 'Int'
  16146. */
  16147. export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
  16148. /**
  16149. * Reference to a field of type 'Int[]'
  16150. */
  16151. export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
  16152. /**
  16153. * Reference to a field of type 'WorkspaceTier'
  16154. */
  16155. export type EnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier'>
  16156. /**
  16157. * Reference to a field of type 'WorkspaceTier[]'
  16158. */
  16159. export type ListEnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier[]'>
  16160. /**
  16161. * Reference to a field of type 'DateTime'
  16162. */
  16163. export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
  16164. /**
  16165. * Reference to a field of type 'DateTime[]'
  16166. */
  16167. export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
  16168. /**
  16169. * Reference to a field of type 'Boolean'
  16170. */
  16171. export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
  16172. /**
  16173. * Reference to a field of type 'ContributorStatus'
  16174. */
  16175. export type EnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus'>
  16176. /**
  16177. * Reference to a field of type 'ContributorStatus[]'
  16178. */
  16179. export type ListEnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus[]'>
  16180. /**
  16181. * Reference to a field of type 'ImpactLevel'
  16182. */
  16183. export type EnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel'>
  16184. /**
  16185. * Reference to a field of type 'ImpactLevel[]'
  16186. */
  16187. export type ListEnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel[]'>
  16188. /**
  16189. * Reference to a field of type 'Frequency'
  16190. */
  16191. export type EnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency'>
  16192. /**
  16193. * Reference to a field of type 'Frequency[]'
  16194. */
  16195. export type ListEnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency[]'>
  16196. /**
  16197. * Reference to a field of type 'IdeaStatus'
  16198. */
  16199. export type EnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus'>
  16200. /**
  16201. * Reference to a field of type 'IdeaStatus[]'
  16202. */
  16203. export type ListEnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus[]'>
  16204. /**
  16205. * Reference to a field of type 'Float'
  16206. */
  16207. export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
  16208. /**
  16209. * Reference to a field of type 'Float[]'
  16210. */
  16211. export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
  16212. /**
  16213. * Deep Input Types
  16214. */
  16215. export type WorkspaceWhereInput = {
  16216. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16217. OR?: WorkspaceWhereInput[]
  16218. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16219. id?: StringFilter<"Workspace"> | string
  16220. name?: StringFilter<"Workspace"> | string
  16221. slug?: StringFilter<"Workspace"> | string
  16222. sector?: StringNullableFilter<"Workspace"> | string | null
  16223. companySize?: IntNullableFilter<"Workspace"> | number | null
  16224. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  16225. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  16226. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  16227. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16228. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  16229. exportsThisMonth?: IntFilter<"Workspace"> | number
  16230. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16231. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  16232. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  16233. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  16234. ownerId?: StringFilter<"Workspace"> | string
  16235. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  16236. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  16237. contributors?: ContributorListRelationFilter
  16238. ideas?: IdeaListRelationFilter
  16239. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  16240. }
  16241. export type WorkspaceOrderByWithRelationInput = {
  16242. id?: SortOrder
  16243. name?: SortOrder
  16244. slug?: SortOrder
  16245. sector?: SortOrderInput | SortOrder
  16246. companySize?: SortOrderInput | SortOrder
  16247. contactEmail?: SortOrderInput | SortOrder
  16248. tier?: SortOrder
  16249. llmCallsThisMonth?: SortOrder
  16250. llmCallsResetAt?: SortOrder
  16251. autoRelanceEnabled?: SortOrder
  16252. exportsThisMonth?: SortOrder
  16253. exportsResetAt?: SortOrder
  16254. lastVisitedAt?: SortOrderInput | SortOrder
  16255. createdAt?: SortOrder
  16256. updatedAt?: SortOrder
  16257. ownerId?: SortOrder
  16258. shareLink?: ShareLinkOrderByWithRelationInput
  16259. owner?: UserOrderByWithRelationInput
  16260. contributors?: ContributorOrderByRelationAggregateInput
  16261. ideas?: IdeaOrderByRelationAggregateInput
  16262. manualRelanceLogs?: ManualRelanceLogOrderByRelationAggregateInput
  16263. }
  16264. export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
  16265. id?: string
  16266. slug?: string
  16267. ownerId?: string
  16268. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16269. OR?: WorkspaceWhereInput[]
  16270. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16271. name?: StringFilter<"Workspace"> | string
  16272. sector?: StringNullableFilter<"Workspace"> | string | null
  16273. companySize?: IntNullableFilter<"Workspace"> | number | null
  16274. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  16275. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  16276. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  16277. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16278. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  16279. exportsThisMonth?: IntFilter<"Workspace"> | number
  16280. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16281. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  16282. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  16283. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  16284. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  16285. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  16286. contributors?: ContributorListRelationFilter
  16287. ideas?: IdeaListRelationFilter
  16288. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  16289. }, "id" | "slug" | "ownerId">
  16290. export type WorkspaceOrderByWithAggregationInput = {
  16291. id?: SortOrder
  16292. name?: SortOrder
  16293. slug?: SortOrder
  16294. sector?: SortOrderInput | SortOrder
  16295. companySize?: SortOrderInput | SortOrder
  16296. contactEmail?: SortOrderInput | SortOrder
  16297. tier?: SortOrder
  16298. llmCallsThisMonth?: SortOrder
  16299. llmCallsResetAt?: SortOrder
  16300. autoRelanceEnabled?: SortOrder
  16301. exportsThisMonth?: SortOrder
  16302. exportsResetAt?: SortOrder
  16303. lastVisitedAt?: SortOrderInput | SortOrder
  16304. createdAt?: SortOrder
  16305. updatedAt?: SortOrder
  16306. ownerId?: SortOrder
  16307. _count?: WorkspaceCountOrderByAggregateInput
  16308. _avg?: WorkspaceAvgOrderByAggregateInput
  16309. _max?: WorkspaceMaxOrderByAggregateInput
  16310. _min?: WorkspaceMinOrderByAggregateInput
  16311. _sum?: WorkspaceSumOrderByAggregateInput
  16312. }
  16313. export type WorkspaceScalarWhereWithAggregatesInput = {
  16314. AND?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  16315. OR?: WorkspaceScalarWhereWithAggregatesInput[]
  16316. NOT?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  16317. id?: StringWithAggregatesFilter<"Workspace"> | string
  16318. name?: StringWithAggregatesFilter<"Workspace"> | string
  16319. slug?: StringWithAggregatesFilter<"Workspace"> | string
  16320. sector?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  16321. companySize?: IntNullableWithAggregatesFilter<"Workspace"> | number | null
  16322. contactEmail?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  16323. tier?: EnumWorkspaceTierWithAggregatesFilter<"Workspace"> | $Enums.WorkspaceTier
  16324. llmCallsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  16325. llmCallsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16326. autoRelanceEnabled?: BoolWithAggregatesFilter<"Workspace"> | boolean
  16327. exportsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  16328. exportsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16329. lastVisitedAt?: DateTimeNullableWithAggregatesFilter<"Workspace"> | Date | string | null
  16330. createdAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16331. updatedAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16332. ownerId?: StringWithAggregatesFilter<"Workspace"> | string
  16333. }
  16334. export type ManualRelanceLogWhereInput = {
  16335. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16336. OR?: ManualRelanceLogWhereInput[]
  16337. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16338. id?: StringFilter<"ManualRelanceLog"> | string
  16339. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  16340. subject?: StringFilter<"ManualRelanceLog"> | string
  16341. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  16342. sentCount?: IntFilter<"ManualRelanceLog"> | number
  16343. failedCount?: IntFilter<"ManualRelanceLog"> | number
  16344. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  16345. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16346. }
  16347. export type ManualRelanceLogOrderByWithRelationInput = {
  16348. id?: SortOrder
  16349. workspaceId?: SortOrder
  16350. subject?: SortOrder
  16351. recipientCount?: SortOrder
  16352. sentCount?: SortOrder
  16353. failedCount?: SortOrder
  16354. sentAt?: SortOrder
  16355. workspace?: WorkspaceOrderByWithRelationInput
  16356. }
  16357. export type ManualRelanceLogWhereUniqueInput = Prisma.AtLeast<{
  16358. id?: string
  16359. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16360. OR?: ManualRelanceLogWhereInput[]
  16361. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16362. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  16363. subject?: StringFilter<"ManualRelanceLog"> | string
  16364. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  16365. sentCount?: IntFilter<"ManualRelanceLog"> | number
  16366. failedCount?: IntFilter<"ManualRelanceLog"> | number
  16367. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  16368. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16369. }, "id">
  16370. export type ManualRelanceLogOrderByWithAggregationInput = {
  16371. id?: SortOrder
  16372. workspaceId?: SortOrder
  16373. subject?: SortOrder
  16374. recipientCount?: SortOrder
  16375. sentCount?: SortOrder
  16376. failedCount?: SortOrder
  16377. sentAt?: SortOrder
  16378. _count?: ManualRelanceLogCountOrderByAggregateInput
  16379. _avg?: ManualRelanceLogAvgOrderByAggregateInput
  16380. _max?: ManualRelanceLogMaxOrderByAggregateInput
  16381. _min?: ManualRelanceLogMinOrderByAggregateInput
  16382. _sum?: ManualRelanceLogSumOrderByAggregateInput
  16383. }
  16384. export type ManualRelanceLogScalarWhereWithAggregatesInput = {
  16385. AND?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  16386. OR?: ManualRelanceLogScalarWhereWithAggregatesInput[]
  16387. NOT?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  16388. id?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16389. workspaceId?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16390. subject?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16391. recipientCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16392. sentCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16393. failedCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16394. sentAt?: DateTimeWithAggregatesFilter<"ManualRelanceLog"> | Date | string
  16395. }
  16396. export type ContributorWhereInput = {
  16397. AND?: ContributorWhereInput | ContributorWhereInput[]
  16398. OR?: ContributorWhereInput[]
  16399. NOT?: ContributorWhereInput | ContributorWhereInput[]
  16400. id?: StringFilter<"Contributor"> | string
  16401. workspaceId?: StringFilter<"Contributor"> | string
  16402. email?: StringFilter<"Contributor"> | string
  16403. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  16404. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  16405. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  16406. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  16407. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16408. ideas?: IdeaListRelationFilter
  16409. }
  16410. export type ContributorOrderByWithRelationInput = {
  16411. id?: SortOrder
  16412. workspaceId?: SortOrder
  16413. email?: SortOrder
  16414. status?: SortOrder
  16415. invitedAt?: SortOrder
  16416. lastRemindedAt?: SortOrderInput | SortOrder
  16417. createdAt?: SortOrder
  16418. workspace?: WorkspaceOrderByWithRelationInput
  16419. ideas?: IdeaOrderByRelationAggregateInput
  16420. }
  16421. export type ContributorWhereUniqueInput = Prisma.AtLeast<{
  16422. id?: string
  16423. workspaceId_email?: ContributorWorkspaceIdEmailCompoundUniqueInput
  16424. AND?: ContributorWhereInput | ContributorWhereInput[]
  16425. OR?: ContributorWhereInput[]
  16426. NOT?: ContributorWhereInput | ContributorWhereInput[]
  16427. workspaceId?: StringFilter<"Contributor"> | string
  16428. email?: StringFilter<"Contributor"> | string
  16429. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  16430. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  16431. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  16432. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  16433. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16434. ideas?: IdeaListRelationFilter
  16435. }, "id" | "workspaceId_email">
  16436. export type ContributorOrderByWithAggregationInput = {
  16437. id?: SortOrder
  16438. workspaceId?: SortOrder
  16439. email?: SortOrder
  16440. status?: SortOrder
  16441. invitedAt?: SortOrder
  16442. lastRemindedAt?: SortOrderInput | SortOrder
  16443. createdAt?: SortOrder
  16444. _count?: ContributorCountOrderByAggregateInput
  16445. _max?: ContributorMaxOrderByAggregateInput
  16446. _min?: ContributorMinOrderByAggregateInput
  16447. }
  16448. export type ContributorScalarWhereWithAggregatesInput = {
  16449. AND?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  16450. OR?: ContributorScalarWhereWithAggregatesInput[]
  16451. NOT?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  16452. id?: StringWithAggregatesFilter<"Contributor"> | string
  16453. workspaceId?: StringWithAggregatesFilter<"Contributor"> | string
  16454. email?: StringWithAggregatesFilter<"Contributor"> | string
  16455. status?: EnumContributorStatusWithAggregatesFilter<"Contributor"> | $Enums.ContributorStatus
  16456. invitedAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  16457. lastRemindedAt?: DateTimeNullableWithAggregatesFilter<"Contributor"> | Date | string | null
  16458. createdAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  16459. }
  16460. export type IdeaWhereInput = {
  16461. AND?: IdeaWhereInput | IdeaWhereInput[]
  16462. OR?: IdeaWhereInput[]
  16463. NOT?: IdeaWhereInput | IdeaWhereInput[]
  16464. id?: StringFilter<"Idea"> | string
  16465. workspaceId?: StringFilter<"Idea"> | string
  16466. contributorEmail?: StringFilter<"Idea"> | string
  16467. contributorId?: StringNullableFilter<"Idea"> | string | null
  16468. department?: StringFilter<"Idea"> | string
  16469. problemDescription?: StringFilter<"Idea"> | string
  16470. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  16471. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  16472. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  16473. llmTitle?: StringNullableFilter<"Idea"> | string | null
  16474. llmDomain?: StringNullableFilter<"Idea"> | string | null
  16475. llmAiType?: StringNullableFilter<"Idea"> | string | null
  16476. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  16477. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16478. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16479. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16480. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  16481. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  16482. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16483. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16484. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16485. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  16486. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  16487. createdAt?: DateTimeFilter<"Idea"> | Date | string
  16488. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  16489. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16490. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  16491. attachments?: IdeaAttachmentListRelationFilter
  16492. qualificationQuestions?: QualificationQuestionListRelationFilter
  16493. }
  16494. export type IdeaOrderByWithRelationInput = {
  16495. id?: SortOrder
  16496. workspaceId?: SortOrder
  16497. contributorEmail?: SortOrder
  16498. contributorId?: SortOrderInput | SortOrder
  16499. department?: SortOrder
  16500. problemDescription?: SortOrder
  16501. estimatedImpact?: SortOrder
  16502. frequency?: SortOrder
  16503. status?: SortOrder
  16504. llmTitle?: SortOrderInput | SortOrder
  16505. llmDomain?: SortOrderInput | SortOrder
  16506. llmAiType?: SortOrderInput | SortOrder
  16507. llmExplanation?: SortOrderInput | SortOrder
  16508. llmScoreImpact?: SortOrderInput | SortOrder
  16509. llmScoreFeasibility?: SortOrderInput | SortOrder
  16510. llmScoreUrgency?: SortOrderInput | SortOrder
  16511. llmEnrichedAt?: SortOrderInput | SortOrder
  16512. llmEnrichFailed?: SortOrder
  16513. manualScoreImpact?: SortOrderInput | SortOrder
  16514. manualScoreFeasibility?: SortOrderInput | SortOrder
  16515. manualScoreUrgency?: SortOrderInput | SortOrder
  16516. priorityOrder?: SortOrderInput | SortOrder
  16517. emailMessageId?: SortOrderInput | SortOrder
  16518. createdAt?: SortOrder
  16519. updatedAt?: SortOrder
  16520. workspace?: WorkspaceOrderByWithRelationInput
  16521. contributor?: ContributorOrderByWithRelationInput
  16522. attachments?: IdeaAttachmentOrderByRelationAggregateInput
  16523. qualificationQuestions?: QualificationQuestionOrderByRelationAggregateInput
  16524. }
  16525. export type IdeaWhereUniqueInput = Prisma.AtLeast<{
  16526. id?: string
  16527. emailMessageId?: string
  16528. AND?: IdeaWhereInput | IdeaWhereInput[]
  16529. OR?: IdeaWhereInput[]
  16530. NOT?: IdeaWhereInput | IdeaWhereInput[]
  16531. workspaceId?: StringFilter<"Idea"> | string
  16532. contributorEmail?: StringFilter<"Idea"> | string
  16533. contributorId?: StringNullableFilter<"Idea"> | string | null
  16534. department?: StringFilter<"Idea"> | string
  16535. problemDescription?: StringFilter<"Idea"> | string
  16536. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  16537. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  16538. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  16539. llmTitle?: StringNullableFilter<"Idea"> | string | null
  16540. llmDomain?: StringNullableFilter<"Idea"> | string | null
  16541. llmAiType?: StringNullableFilter<"Idea"> | string | null
  16542. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  16543. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16544. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16545. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16546. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  16547. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  16548. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16549. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16550. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16551. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  16552. createdAt?: DateTimeFilter<"Idea"> | Date | string
  16553. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  16554. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16555. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  16556. attachments?: IdeaAttachmentListRelationFilter
  16557. qualificationQuestions?: QualificationQuestionListRelationFilter
  16558. }, "id" | "emailMessageId">
  16559. export type IdeaOrderByWithAggregationInput = {
  16560. id?: SortOrder
  16561. workspaceId?: SortOrder
  16562. contributorEmail?: SortOrder
  16563. contributorId?: SortOrderInput | SortOrder
  16564. department?: SortOrder
  16565. problemDescription?: SortOrder
  16566. estimatedImpact?: SortOrder
  16567. frequency?: SortOrder
  16568. status?: SortOrder
  16569. llmTitle?: SortOrderInput | SortOrder
  16570. llmDomain?: SortOrderInput | SortOrder
  16571. llmAiType?: SortOrderInput | SortOrder
  16572. llmExplanation?: SortOrderInput | SortOrder
  16573. llmScoreImpact?: SortOrderInput | SortOrder
  16574. llmScoreFeasibility?: SortOrderInput | SortOrder
  16575. llmScoreUrgency?: SortOrderInput | SortOrder
  16576. llmEnrichedAt?: SortOrderInput | SortOrder
  16577. llmEnrichFailed?: SortOrder
  16578. manualScoreImpact?: SortOrderInput | SortOrder
  16579. manualScoreFeasibility?: SortOrderInput | SortOrder
  16580. manualScoreUrgency?: SortOrderInput | SortOrder
  16581. priorityOrder?: SortOrderInput | SortOrder
  16582. emailMessageId?: SortOrderInput | SortOrder
  16583. createdAt?: SortOrder
  16584. updatedAt?: SortOrder
  16585. _count?: IdeaCountOrderByAggregateInput
  16586. _avg?: IdeaAvgOrderByAggregateInput
  16587. _max?: IdeaMaxOrderByAggregateInput
  16588. _min?: IdeaMinOrderByAggregateInput
  16589. _sum?: IdeaSumOrderByAggregateInput
  16590. }
  16591. export type IdeaScalarWhereWithAggregatesInput = {
  16592. AND?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  16593. OR?: IdeaScalarWhereWithAggregatesInput[]
  16594. NOT?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  16595. id?: StringWithAggregatesFilter<"Idea"> | string
  16596. workspaceId?: StringWithAggregatesFilter<"Idea"> | string
  16597. contributorEmail?: StringWithAggregatesFilter<"Idea"> | string
  16598. contributorId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16599. department?: StringWithAggregatesFilter<"Idea"> | string
  16600. problemDescription?: StringWithAggregatesFilter<"Idea"> | string
  16601. estimatedImpact?: EnumImpactLevelWithAggregatesFilter<"Idea"> | $Enums.ImpactLevel
  16602. frequency?: EnumFrequencyWithAggregatesFilter<"Idea"> | $Enums.Frequency
  16603. status?: EnumIdeaStatusWithAggregatesFilter<"Idea"> | $Enums.IdeaStatus
  16604. llmTitle?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16605. llmDomain?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16606. llmAiType?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16607. llmExplanation?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16608. llmScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16609. llmScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16610. llmScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16611. llmEnrichedAt?: DateTimeNullableWithAggregatesFilter<"Idea"> | Date | string | null
  16612. llmEnrichFailed?: BoolWithAggregatesFilter<"Idea"> | boolean
  16613. manualScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16614. manualScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16615. manualScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16616. priorityOrder?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16617. emailMessageId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16618. createdAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  16619. updatedAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  16620. }
  16621. export type PostWhereInput = {
  16622. AND?: PostWhereInput | PostWhereInput[]
  16623. OR?: PostWhereInput[]
  16624. NOT?: PostWhereInput | PostWhereInput[]
  16625. id?: IntFilter<"Post"> | number
  16626. name?: StringFilter<"Post"> | string
  16627. createdAt?: DateTimeFilter<"Post"> | Date | string
  16628. updatedAt?: DateTimeFilter<"Post"> | Date | string
  16629. createdById?: StringFilter<"Post"> | string
  16630. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  16631. }
  16632. export type PostOrderByWithRelationInput = {
  16633. id?: SortOrder
  16634. name?: SortOrder
  16635. createdAt?: SortOrder
  16636. updatedAt?: SortOrder
  16637. createdById?: SortOrder
  16638. createdBy?: UserOrderByWithRelationInput
  16639. }
  16640. export type PostWhereUniqueInput = Prisma.AtLeast<{
  16641. id?: number
  16642. AND?: PostWhereInput | PostWhereInput[]
  16643. OR?: PostWhereInput[]
  16644. NOT?: PostWhereInput | PostWhereInput[]
  16645. name?: StringFilter<"Post"> | string
  16646. createdAt?: DateTimeFilter<"Post"> | Date | string
  16647. updatedAt?: DateTimeFilter<"Post"> | Date | string
  16648. createdById?: StringFilter<"Post"> | string
  16649. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  16650. }, "id">
  16651. export type PostOrderByWithAggregationInput = {
  16652. id?: SortOrder
  16653. name?: SortOrder
  16654. createdAt?: SortOrder
  16655. updatedAt?: SortOrder
  16656. createdById?: SortOrder
  16657. _count?: PostCountOrderByAggregateInput
  16658. _avg?: PostAvgOrderByAggregateInput
  16659. _max?: PostMaxOrderByAggregateInput
  16660. _min?: PostMinOrderByAggregateInput
  16661. _sum?: PostSumOrderByAggregateInput
  16662. }
  16663. export type PostScalarWhereWithAggregatesInput = {
  16664. AND?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  16665. OR?: PostScalarWhereWithAggregatesInput[]
  16666. NOT?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  16667. id?: IntWithAggregatesFilter<"Post"> | number
  16668. name?: StringWithAggregatesFilter<"Post"> | string
  16669. createdAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  16670. updatedAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  16671. createdById?: StringWithAggregatesFilter<"Post"> | string
  16672. }
  16673. export type AccountWhereInput = {
  16674. AND?: AccountWhereInput | AccountWhereInput[]
  16675. OR?: AccountWhereInput[]
  16676. NOT?: AccountWhereInput | AccountWhereInput[]
  16677. id?: StringFilter<"Account"> | string
  16678. userId?: StringFilter<"Account"> | string
  16679. type?: StringFilter<"Account"> | string
  16680. provider?: StringFilter<"Account"> | string
  16681. providerAccountId?: StringFilter<"Account"> | string
  16682. refresh_token?: StringNullableFilter<"Account"> | string | null
  16683. access_token?: StringNullableFilter<"Account"> | string | null
  16684. expires_at?: IntNullableFilter<"Account"> | number | null
  16685. token_type?: StringNullableFilter<"Account"> | string | null
  16686. scope?: StringNullableFilter<"Account"> | string | null
  16687. id_token?: StringNullableFilter<"Account"> | string | null
  16688. session_state?: StringNullableFilter<"Account"> | string | null
  16689. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  16690. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16691. }
  16692. export type AccountOrderByWithRelationInput = {
  16693. id?: SortOrder
  16694. userId?: SortOrder
  16695. type?: SortOrder
  16696. provider?: SortOrder
  16697. providerAccountId?: SortOrder
  16698. refresh_token?: SortOrderInput | SortOrder
  16699. access_token?: SortOrderInput | SortOrder
  16700. expires_at?: SortOrderInput | SortOrder
  16701. token_type?: SortOrderInput | SortOrder
  16702. scope?: SortOrderInput | SortOrder
  16703. id_token?: SortOrderInput | SortOrder
  16704. session_state?: SortOrderInput | SortOrder
  16705. refresh_token_expires_in?: SortOrderInput | SortOrder
  16706. user?: UserOrderByWithRelationInput
  16707. }
  16708. export type AccountWhereUniqueInput = Prisma.AtLeast<{
  16709. id?: string
  16710. provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput
  16711. AND?: AccountWhereInput | AccountWhereInput[]
  16712. OR?: AccountWhereInput[]
  16713. NOT?: AccountWhereInput | AccountWhereInput[]
  16714. userId?: StringFilter<"Account"> | string
  16715. type?: StringFilter<"Account"> | string
  16716. provider?: StringFilter<"Account"> | string
  16717. providerAccountId?: StringFilter<"Account"> | string
  16718. refresh_token?: StringNullableFilter<"Account"> | string | null
  16719. access_token?: StringNullableFilter<"Account"> | string | null
  16720. expires_at?: IntNullableFilter<"Account"> | number | null
  16721. token_type?: StringNullableFilter<"Account"> | string | null
  16722. scope?: StringNullableFilter<"Account"> | string | null
  16723. id_token?: StringNullableFilter<"Account"> | string | null
  16724. session_state?: StringNullableFilter<"Account"> | string | null
  16725. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  16726. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16727. }, "id" | "provider_providerAccountId">
  16728. export type AccountOrderByWithAggregationInput = {
  16729. id?: SortOrder
  16730. userId?: SortOrder
  16731. type?: SortOrder
  16732. provider?: SortOrder
  16733. providerAccountId?: SortOrder
  16734. refresh_token?: SortOrderInput | SortOrder
  16735. access_token?: SortOrderInput | SortOrder
  16736. expires_at?: SortOrderInput | SortOrder
  16737. token_type?: SortOrderInput | SortOrder
  16738. scope?: SortOrderInput | SortOrder
  16739. id_token?: SortOrderInput | SortOrder
  16740. session_state?: SortOrderInput | SortOrder
  16741. refresh_token_expires_in?: SortOrderInput | SortOrder
  16742. _count?: AccountCountOrderByAggregateInput
  16743. _avg?: AccountAvgOrderByAggregateInput
  16744. _max?: AccountMaxOrderByAggregateInput
  16745. _min?: AccountMinOrderByAggregateInput
  16746. _sum?: AccountSumOrderByAggregateInput
  16747. }
  16748. export type AccountScalarWhereWithAggregatesInput = {
  16749. AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  16750. OR?: AccountScalarWhereWithAggregatesInput[]
  16751. NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  16752. id?: StringWithAggregatesFilter<"Account"> | string
  16753. userId?: StringWithAggregatesFilter<"Account"> | string
  16754. type?: StringWithAggregatesFilter<"Account"> | string
  16755. provider?: StringWithAggregatesFilter<"Account"> | string
  16756. providerAccountId?: StringWithAggregatesFilter<"Account"> | string
  16757. refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16758. access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16759. expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null
  16760. token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16761. scope?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16762. id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16763. session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16764. refresh_token_expires_in?: IntNullableWithAggregatesFilter<"Account"> | number | null
  16765. }
  16766. export type SessionWhereInput = {
  16767. AND?: SessionWhereInput | SessionWhereInput[]
  16768. OR?: SessionWhereInput[]
  16769. NOT?: SessionWhereInput | SessionWhereInput[]
  16770. id?: StringFilter<"Session"> | string
  16771. sessionToken?: StringFilter<"Session"> | string
  16772. userId?: StringFilter<"Session"> | string
  16773. expires?: DateTimeFilter<"Session"> | Date | string
  16774. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16775. }
  16776. export type SessionOrderByWithRelationInput = {
  16777. id?: SortOrder
  16778. sessionToken?: SortOrder
  16779. userId?: SortOrder
  16780. expires?: SortOrder
  16781. user?: UserOrderByWithRelationInput
  16782. }
  16783. export type SessionWhereUniqueInput = Prisma.AtLeast<{
  16784. id?: string
  16785. sessionToken?: string
  16786. AND?: SessionWhereInput | SessionWhereInput[]
  16787. OR?: SessionWhereInput[]
  16788. NOT?: SessionWhereInput | SessionWhereInput[]
  16789. userId?: StringFilter<"Session"> | string
  16790. expires?: DateTimeFilter<"Session"> | Date | string
  16791. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16792. }, "id" | "sessionToken">
  16793. export type SessionOrderByWithAggregationInput = {
  16794. id?: SortOrder
  16795. sessionToken?: SortOrder
  16796. userId?: SortOrder
  16797. expires?: SortOrder
  16798. _count?: SessionCountOrderByAggregateInput
  16799. _max?: SessionMaxOrderByAggregateInput
  16800. _min?: SessionMinOrderByAggregateInput
  16801. }
  16802. export type SessionScalarWhereWithAggregatesInput = {
  16803. AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  16804. OR?: SessionScalarWhereWithAggregatesInput[]
  16805. NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  16806. id?: StringWithAggregatesFilter<"Session"> | string
  16807. sessionToken?: StringWithAggregatesFilter<"Session"> | string
  16808. userId?: StringWithAggregatesFilter<"Session"> | string
  16809. expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string
  16810. }
  16811. export type UserWhereInput = {
  16812. AND?: UserWhereInput | UserWhereInput[]
  16813. OR?: UserWhereInput[]
  16814. NOT?: UserWhereInput | UserWhereInput[]
  16815. id?: StringFilter<"User"> | string
  16816. name?: StringNullableFilter<"User"> | string | null
  16817. email?: StringNullableFilter<"User"> | string | null
  16818. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  16819. password?: StringNullableFilter<"User"> | string | null
  16820. image?: StringNullableFilter<"User"> | string | null
  16821. accounts?: AccountListRelationFilter
  16822. sessions?: SessionListRelationFilter
  16823. posts?: PostListRelationFilter
  16824. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  16825. }
  16826. export type UserOrderByWithRelationInput = {
  16827. id?: SortOrder
  16828. name?: SortOrderInput | SortOrder
  16829. email?: SortOrderInput | SortOrder
  16830. emailVerified?: SortOrderInput | SortOrder
  16831. password?: SortOrderInput | SortOrder
  16832. image?: SortOrderInput | SortOrder
  16833. accounts?: AccountOrderByRelationAggregateInput
  16834. sessions?: SessionOrderByRelationAggregateInput
  16835. posts?: PostOrderByRelationAggregateInput
  16836. workspace?: WorkspaceOrderByWithRelationInput
  16837. }
  16838. export type UserWhereUniqueInput = Prisma.AtLeast<{
  16839. id?: string
  16840. email?: string
  16841. AND?: UserWhereInput | UserWhereInput[]
  16842. OR?: UserWhereInput[]
  16843. NOT?: UserWhereInput | UserWhereInput[]
  16844. name?: StringNullableFilter<"User"> | string | null
  16845. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  16846. password?: StringNullableFilter<"User"> | string | null
  16847. image?: StringNullableFilter<"User"> | string | null
  16848. accounts?: AccountListRelationFilter
  16849. sessions?: SessionListRelationFilter
  16850. posts?: PostListRelationFilter
  16851. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  16852. }, "id" | "email">
  16853. export type UserOrderByWithAggregationInput = {
  16854. id?: SortOrder
  16855. name?: SortOrderInput | SortOrder
  16856. email?: SortOrderInput | SortOrder
  16857. emailVerified?: SortOrderInput | SortOrder
  16858. password?: SortOrderInput | SortOrder
  16859. image?: SortOrderInput | SortOrder
  16860. _count?: UserCountOrderByAggregateInput
  16861. _max?: UserMaxOrderByAggregateInput
  16862. _min?: UserMinOrderByAggregateInput
  16863. }
  16864. export type UserScalarWhereWithAggregatesInput = {
  16865. AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  16866. OR?: UserScalarWhereWithAggregatesInput[]
  16867. NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  16868. id?: StringWithAggregatesFilter<"User"> | string
  16869. name?: StringNullableWithAggregatesFilter<"User"> | string | null
  16870. email?: StringNullableWithAggregatesFilter<"User"> | string | null
  16871. emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
  16872. password?: StringNullableWithAggregatesFilter<"User"> | string | null
  16873. image?: StringNullableWithAggregatesFilter<"User"> | string | null
  16874. }
  16875. export type VerificationTokenWhereInput = {
  16876. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16877. OR?: VerificationTokenWhereInput[]
  16878. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16879. identifier?: StringFilter<"VerificationToken"> | string
  16880. token?: StringFilter<"VerificationToken"> | string
  16881. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  16882. }
  16883. export type VerificationTokenOrderByWithRelationInput = {
  16884. identifier?: SortOrder
  16885. token?: SortOrder
  16886. expires?: SortOrder
  16887. }
  16888. export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
  16889. token?: string
  16890. identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput
  16891. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16892. OR?: VerificationTokenWhereInput[]
  16893. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16894. identifier?: StringFilter<"VerificationToken"> | string
  16895. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  16896. }, "token" | "identifier_token">
  16897. export type VerificationTokenOrderByWithAggregationInput = {
  16898. identifier?: SortOrder
  16899. token?: SortOrder
  16900. expires?: SortOrder
  16901. _count?: VerificationTokenCountOrderByAggregateInput
  16902. _max?: VerificationTokenMaxOrderByAggregateInput
  16903. _min?: VerificationTokenMinOrderByAggregateInput
  16904. }
  16905. export type VerificationTokenScalarWhereWithAggregatesInput = {
  16906. AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  16907. OR?: VerificationTokenScalarWhereWithAggregatesInput[]
  16908. NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  16909. identifier?: StringWithAggregatesFilter<"VerificationToken"> | string
  16910. token?: StringWithAggregatesFilter<"VerificationToken"> | string
  16911. expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string
  16912. }
  16913. export type IdeaAttachmentWhereInput = {
  16914. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  16915. OR?: IdeaAttachmentWhereInput[]
  16916. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  16917. id?: StringFilter<"IdeaAttachment"> | string
  16918. ideaId?: StringFilter<"IdeaAttachment"> | string
  16919. workspaceId?: StringFilter<"IdeaAttachment"> | string
  16920. filename?: StringFilter<"IdeaAttachment"> | string
  16921. contentType?: StringFilter<"IdeaAttachment"> | string
  16922. size?: IntFilter<"IdeaAttachment"> | number
  16923. url?: StringFilter<"IdeaAttachment"> | string
  16924. blobPath?: StringFilter<"IdeaAttachment"> | string
  16925. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  16926. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  16927. }
  16928. export type IdeaAttachmentOrderByWithRelationInput = {
  16929. id?: SortOrder
  16930. ideaId?: SortOrder
  16931. workspaceId?: SortOrder
  16932. filename?: SortOrder
  16933. contentType?: SortOrder
  16934. size?: SortOrder
  16935. url?: SortOrder
  16936. blobPath?: SortOrder
  16937. createdAt?: SortOrder
  16938. idea?: IdeaOrderByWithRelationInput
  16939. }
  16940. export type IdeaAttachmentWhereUniqueInput = Prisma.AtLeast<{
  16941. id?: string
  16942. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  16943. OR?: IdeaAttachmentWhereInput[]
  16944. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  16945. ideaId?: StringFilter<"IdeaAttachment"> | string
  16946. workspaceId?: StringFilter<"IdeaAttachment"> | string
  16947. filename?: StringFilter<"IdeaAttachment"> | string
  16948. contentType?: StringFilter<"IdeaAttachment"> | string
  16949. size?: IntFilter<"IdeaAttachment"> | number
  16950. url?: StringFilter<"IdeaAttachment"> | string
  16951. blobPath?: StringFilter<"IdeaAttachment"> | string
  16952. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  16953. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  16954. }, "id">
  16955. export type IdeaAttachmentOrderByWithAggregationInput = {
  16956. id?: SortOrder
  16957. ideaId?: SortOrder
  16958. workspaceId?: SortOrder
  16959. filename?: SortOrder
  16960. contentType?: SortOrder
  16961. size?: SortOrder
  16962. url?: SortOrder
  16963. blobPath?: SortOrder
  16964. createdAt?: SortOrder
  16965. _count?: IdeaAttachmentCountOrderByAggregateInput
  16966. _avg?: IdeaAttachmentAvgOrderByAggregateInput
  16967. _max?: IdeaAttachmentMaxOrderByAggregateInput
  16968. _min?: IdeaAttachmentMinOrderByAggregateInput
  16969. _sum?: IdeaAttachmentSumOrderByAggregateInput
  16970. }
  16971. export type IdeaAttachmentScalarWhereWithAggregatesInput = {
  16972. AND?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  16973. OR?: IdeaAttachmentScalarWhereWithAggregatesInput[]
  16974. NOT?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  16975. id?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  16976. ideaId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  16977. workspaceId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  16978. filename?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  16979. contentType?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  16980. size?: IntWithAggregatesFilter<"IdeaAttachment"> | number
  16981. url?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  16982. blobPath?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  16983. createdAt?: DateTimeWithAggregatesFilter<"IdeaAttachment"> | Date | string
  16984. }
  16985. export type QualificationQuestionWhereInput = {
  16986. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  16987. OR?: QualificationQuestionWhereInput[]
  16988. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  16989. id?: StringFilter<"QualificationQuestion"> | string
  16990. ideaId?: StringFilter<"QualificationQuestion"> | string
  16991. workspaceId?: StringFilter<"QualificationQuestion"> | string
  16992. questionText?: StringFilter<"QualificationQuestion"> | string
  16993. responseToken?: StringFilter<"QualificationQuestion"> | string
  16994. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  16995. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  16996. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  16997. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  16998. }
  16999. export type QualificationQuestionOrderByWithRelationInput = {
  17000. id?: SortOrder
  17001. ideaId?: SortOrder
  17002. workspaceId?: SortOrder
  17003. questionText?: SortOrder
  17004. responseToken?: SortOrder
  17005. askedAt?: SortOrder
  17006. responseText?: SortOrderInput | SortOrder
  17007. answeredAt?: SortOrderInput | SortOrder
  17008. idea?: IdeaOrderByWithRelationInput
  17009. }
  17010. export type QualificationQuestionWhereUniqueInput = Prisma.AtLeast<{
  17011. id?: string
  17012. responseToken?: string
  17013. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17014. OR?: QualificationQuestionWhereInput[]
  17015. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17016. ideaId?: StringFilter<"QualificationQuestion"> | string
  17017. workspaceId?: StringFilter<"QualificationQuestion"> | string
  17018. questionText?: StringFilter<"QualificationQuestion"> | string
  17019. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  17020. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  17021. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  17022. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17023. }, "id" | "responseToken">
  17024. export type QualificationQuestionOrderByWithAggregationInput = {
  17025. id?: SortOrder
  17026. ideaId?: SortOrder
  17027. workspaceId?: SortOrder
  17028. questionText?: SortOrder
  17029. responseToken?: SortOrder
  17030. askedAt?: SortOrder
  17031. responseText?: SortOrderInput | SortOrder
  17032. answeredAt?: SortOrderInput | SortOrder
  17033. _count?: QualificationQuestionCountOrderByAggregateInput
  17034. _max?: QualificationQuestionMaxOrderByAggregateInput
  17035. _min?: QualificationQuestionMinOrderByAggregateInput
  17036. }
  17037. export type QualificationQuestionScalarWhereWithAggregatesInput = {
  17038. AND?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  17039. OR?: QualificationQuestionScalarWhereWithAggregatesInput[]
  17040. NOT?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  17041. id?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17042. ideaId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17043. workspaceId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17044. questionText?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17045. responseToken?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17046. askedAt?: DateTimeWithAggregatesFilter<"QualificationQuestion"> | Date | string
  17047. responseText?: StringNullableWithAggregatesFilter<"QualificationQuestion"> | string | null
  17048. answeredAt?: DateTimeNullableWithAggregatesFilter<"QualificationQuestion"> | Date | string | null
  17049. }
  17050. export type LibraryCaseWhereInput = {
  17051. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17052. OR?: LibraryCaseWhereInput[]
  17053. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17054. id?: StringFilter<"LibraryCase"> | string
  17055. sector?: StringFilter<"LibraryCase"> | string
  17056. department?: StringFilter<"LibraryCase"> | string
  17057. title?: StringFilter<"LibraryCase"> | string
  17058. description?: StringFilter<"LibraryCase"> | string
  17059. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17060. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17061. }
  17062. export type LibraryCaseOrderByWithRelationInput = {
  17063. id?: SortOrder
  17064. sector?: SortOrder
  17065. department?: SortOrder
  17066. title?: SortOrder
  17067. description?: SortOrder
  17068. createdAt?: SortOrder
  17069. updatedAt?: SortOrder
  17070. }
  17071. export type LibraryCaseWhereUniqueInput = Prisma.AtLeast<{
  17072. id?: string
  17073. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17074. OR?: LibraryCaseWhereInput[]
  17075. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17076. sector?: StringFilter<"LibraryCase"> | string
  17077. department?: StringFilter<"LibraryCase"> | string
  17078. title?: StringFilter<"LibraryCase"> | string
  17079. description?: StringFilter<"LibraryCase"> | string
  17080. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17081. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17082. }, "id">
  17083. export type LibraryCaseOrderByWithAggregationInput = {
  17084. id?: SortOrder
  17085. sector?: SortOrder
  17086. department?: SortOrder
  17087. title?: SortOrder
  17088. description?: SortOrder
  17089. createdAt?: SortOrder
  17090. updatedAt?: SortOrder
  17091. _count?: LibraryCaseCountOrderByAggregateInput
  17092. _max?: LibraryCaseMaxOrderByAggregateInput
  17093. _min?: LibraryCaseMinOrderByAggregateInput
  17094. }
  17095. export type LibraryCaseScalarWhereWithAggregatesInput = {
  17096. AND?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  17097. OR?: LibraryCaseScalarWhereWithAggregatesInput[]
  17098. NOT?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  17099. id?: StringWithAggregatesFilter<"LibraryCase"> | string
  17100. sector?: StringWithAggregatesFilter<"LibraryCase"> | string
  17101. department?: StringWithAggregatesFilter<"LibraryCase"> | string
  17102. title?: StringWithAggregatesFilter<"LibraryCase"> | string
  17103. description?: StringWithAggregatesFilter<"LibraryCase"> | string
  17104. createdAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  17105. updatedAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  17106. }
  17107. export type ShareLinkWhereInput = {
  17108. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17109. OR?: ShareLinkWhereInput[]
  17110. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17111. id?: StringFilter<"ShareLink"> | string
  17112. workspaceId?: StringFilter<"ShareLink"> | string
  17113. token?: StringFilter<"ShareLink"> | string
  17114. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  17115. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  17116. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17117. }
  17118. export type ShareLinkOrderByWithRelationInput = {
  17119. id?: SortOrder
  17120. workspaceId?: SortOrder
  17121. token?: SortOrder
  17122. expiresAt?: SortOrderInput | SortOrder
  17123. createdAt?: SortOrder
  17124. workspace?: WorkspaceOrderByWithRelationInput
  17125. }
  17126. export type ShareLinkWhereUniqueInput = Prisma.AtLeast<{
  17127. id?: string
  17128. workspaceId?: string
  17129. token?: string
  17130. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17131. OR?: ShareLinkWhereInput[]
  17132. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17133. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  17134. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  17135. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17136. }, "id" | "workspaceId" | "token">
  17137. export type ShareLinkOrderByWithAggregationInput = {
  17138. id?: SortOrder
  17139. workspaceId?: SortOrder
  17140. token?: SortOrder
  17141. expiresAt?: SortOrderInput | SortOrder
  17142. createdAt?: SortOrder
  17143. _count?: ShareLinkCountOrderByAggregateInput
  17144. _max?: ShareLinkMaxOrderByAggregateInput
  17145. _min?: ShareLinkMinOrderByAggregateInput
  17146. }
  17147. export type ShareLinkScalarWhereWithAggregatesInput = {
  17148. AND?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  17149. OR?: ShareLinkScalarWhereWithAggregatesInput[]
  17150. NOT?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  17151. id?: StringWithAggregatesFilter<"ShareLink"> | string
  17152. workspaceId?: StringWithAggregatesFilter<"ShareLink"> | string
  17153. token?: StringWithAggregatesFilter<"ShareLink"> | string
  17154. expiresAt?: DateTimeNullableWithAggregatesFilter<"ShareLink"> | Date | string | null
  17155. createdAt?: DateTimeWithAggregatesFilter<"ShareLink"> | Date | string
  17156. }
  17157. export type WorkspaceCreateInput = {
  17158. id?: string
  17159. name: string
  17160. slug: string
  17161. sector?: string | null
  17162. companySize?: number | null
  17163. contactEmail?: string | null
  17164. tier?: $Enums.WorkspaceTier
  17165. llmCallsThisMonth?: number
  17166. llmCallsResetAt?: Date | string
  17167. autoRelanceEnabled?: boolean
  17168. exportsThisMonth?: number
  17169. exportsResetAt?: Date | string
  17170. lastVisitedAt?: Date | string | null
  17171. createdAt?: Date | string
  17172. updatedAt?: Date | string
  17173. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  17174. owner: UserCreateNestedOneWithoutWorkspaceInput
  17175. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  17176. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  17177. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  17178. }
  17179. export type WorkspaceUncheckedCreateInput = {
  17180. id?: string
  17181. name: string
  17182. slug: string
  17183. sector?: string | null
  17184. companySize?: number | null
  17185. contactEmail?: string | null
  17186. tier?: $Enums.WorkspaceTier
  17187. llmCallsThisMonth?: number
  17188. llmCallsResetAt?: Date | string
  17189. autoRelanceEnabled?: boolean
  17190. exportsThisMonth?: number
  17191. exportsResetAt?: Date | string
  17192. lastVisitedAt?: Date | string | null
  17193. createdAt?: Date | string
  17194. updatedAt?: Date | string
  17195. ownerId: string
  17196. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  17197. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  17198. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  17199. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  17200. }
  17201. export type WorkspaceUpdateInput = {
  17202. id?: StringFieldUpdateOperationsInput | string
  17203. name?: StringFieldUpdateOperationsInput | string
  17204. slug?: StringFieldUpdateOperationsInput | string
  17205. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17206. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17207. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17208. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17209. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17210. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17211. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17212. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17213. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17214. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17215. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17216. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17217. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  17218. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  17219. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  17220. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  17221. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  17222. }
  17223. export type WorkspaceUncheckedUpdateInput = {
  17224. id?: StringFieldUpdateOperationsInput | string
  17225. name?: StringFieldUpdateOperationsInput | string
  17226. slug?: StringFieldUpdateOperationsInput | string
  17227. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17228. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17229. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17230. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17231. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17232. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17233. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17234. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17235. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17236. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17237. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17238. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17239. ownerId?: StringFieldUpdateOperationsInput | string
  17240. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  17241. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  17242. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  17243. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  17244. }
  17245. export type WorkspaceCreateManyInput = {
  17246. id?: string
  17247. name: string
  17248. slug: string
  17249. sector?: string | null
  17250. companySize?: number | null
  17251. contactEmail?: string | null
  17252. tier?: $Enums.WorkspaceTier
  17253. llmCallsThisMonth?: number
  17254. llmCallsResetAt?: Date | string
  17255. autoRelanceEnabled?: boolean
  17256. exportsThisMonth?: number
  17257. exportsResetAt?: Date | string
  17258. lastVisitedAt?: Date | string | null
  17259. createdAt?: Date | string
  17260. updatedAt?: Date | string
  17261. ownerId: string
  17262. }
  17263. export type WorkspaceUpdateManyMutationInput = {
  17264. id?: StringFieldUpdateOperationsInput | string
  17265. name?: StringFieldUpdateOperationsInput | string
  17266. slug?: StringFieldUpdateOperationsInput | string
  17267. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17268. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17269. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17270. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17271. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17272. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17273. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17274. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17275. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17276. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17277. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17278. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17279. }
  17280. export type WorkspaceUncheckedUpdateManyInput = {
  17281. id?: StringFieldUpdateOperationsInput | string
  17282. name?: StringFieldUpdateOperationsInput | string
  17283. slug?: StringFieldUpdateOperationsInput | string
  17284. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17285. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17286. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17287. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17288. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17289. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17290. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17291. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17292. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17293. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17294. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17295. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17296. ownerId?: StringFieldUpdateOperationsInput | string
  17297. }
  17298. export type ManualRelanceLogCreateInput = {
  17299. id?: string
  17300. subject: string
  17301. recipientCount: number
  17302. sentCount: number
  17303. failedCount?: number
  17304. sentAt?: Date | string
  17305. workspace: WorkspaceCreateNestedOneWithoutManualRelanceLogsInput
  17306. }
  17307. export type ManualRelanceLogUncheckedCreateInput = {
  17308. id?: string
  17309. workspaceId: string
  17310. subject: string
  17311. recipientCount: number
  17312. sentCount: number
  17313. failedCount?: number
  17314. sentAt?: Date | string
  17315. }
  17316. export type ManualRelanceLogUpdateInput = {
  17317. id?: StringFieldUpdateOperationsInput | string
  17318. subject?: StringFieldUpdateOperationsInput | string
  17319. recipientCount?: IntFieldUpdateOperationsInput | number
  17320. sentCount?: IntFieldUpdateOperationsInput | number
  17321. failedCount?: IntFieldUpdateOperationsInput | number
  17322. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17323. workspace?: WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput
  17324. }
  17325. export type ManualRelanceLogUncheckedUpdateInput = {
  17326. id?: StringFieldUpdateOperationsInput | string
  17327. workspaceId?: StringFieldUpdateOperationsInput | string
  17328. subject?: StringFieldUpdateOperationsInput | string
  17329. recipientCount?: IntFieldUpdateOperationsInput | number
  17330. sentCount?: IntFieldUpdateOperationsInput | number
  17331. failedCount?: IntFieldUpdateOperationsInput | number
  17332. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17333. }
  17334. export type ManualRelanceLogCreateManyInput = {
  17335. id?: string
  17336. workspaceId: string
  17337. subject: string
  17338. recipientCount: number
  17339. sentCount: number
  17340. failedCount?: number
  17341. sentAt?: Date | string
  17342. }
  17343. export type ManualRelanceLogUpdateManyMutationInput = {
  17344. id?: StringFieldUpdateOperationsInput | string
  17345. subject?: StringFieldUpdateOperationsInput | string
  17346. recipientCount?: IntFieldUpdateOperationsInput | number
  17347. sentCount?: IntFieldUpdateOperationsInput | number
  17348. failedCount?: IntFieldUpdateOperationsInput | number
  17349. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17350. }
  17351. export type ManualRelanceLogUncheckedUpdateManyInput = {
  17352. id?: StringFieldUpdateOperationsInput | string
  17353. workspaceId?: StringFieldUpdateOperationsInput | string
  17354. subject?: StringFieldUpdateOperationsInput | string
  17355. recipientCount?: IntFieldUpdateOperationsInput | number
  17356. sentCount?: IntFieldUpdateOperationsInput | number
  17357. failedCount?: IntFieldUpdateOperationsInput | number
  17358. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17359. }
  17360. export type ContributorCreateInput = {
  17361. id?: string
  17362. email: string
  17363. status?: $Enums.ContributorStatus
  17364. invitedAt?: Date | string
  17365. lastRemindedAt?: Date | string | null
  17366. createdAt?: Date | string
  17367. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  17368. ideas?: IdeaCreateNestedManyWithoutContributorInput
  17369. }
  17370. export type ContributorUncheckedCreateInput = {
  17371. id?: string
  17372. workspaceId: string
  17373. email: string
  17374. status?: $Enums.ContributorStatus
  17375. invitedAt?: Date | string
  17376. lastRemindedAt?: Date | string | null
  17377. createdAt?: Date | string
  17378. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  17379. }
  17380. export type ContributorUpdateInput = {
  17381. id?: StringFieldUpdateOperationsInput | string
  17382. email?: StringFieldUpdateOperationsInput | string
  17383. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17384. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17385. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17386. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17387. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  17388. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  17389. }
  17390. export type ContributorUncheckedUpdateInput = {
  17391. id?: StringFieldUpdateOperationsInput | string
  17392. workspaceId?: StringFieldUpdateOperationsInput | string
  17393. email?: StringFieldUpdateOperationsInput | string
  17394. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17395. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17396. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17397. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17398. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  17399. }
  17400. export type ContributorCreateManyInput = {
  17401. id?: string
  17402. workspaceId: string
  17403. email: string
  17404. status?: $Enums.ContributorStatus
  17405. invitedAt?: Date | string
  17406. lastRemindedAt?: Date | string | null
  17407. createdAt?: Date | string
  17408. }
  17409. export type ContributorUpdateManyMutationInput = {
  17410. id?: StringFieldUpdateOperationsInput | string
  17411. email?: StringFieldUpdateOperationsInput | string
  17412. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17413. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17414. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17415. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17416. }
  17417. export type ContributorUncheckedUpdateManyInput = {
  17418. id?: StringFieldUpdateOperationsInput | string
  17419. workspaceId?: StringFieldUpdateOperationsInput | string
  17420. email?: StringFieldUpdateOperationsInput | string
  17421. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17422. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17423. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17424. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17425. }
  17426. export type IdeaCreateInput = {
  17427. id?: string
  17428. contributorEmail: string
  17429. department: string
  17430. problemDescription: string
  17431. estimatedImpact: $Enums.ImpactLevel
  17432. frequency: $Enums.Frequency
  17433. status?: $Enums.IdeaStatus
  17434. llmTitle?: string | null
  17435. llmDomain?: string | null
  17436. llmAiType?: string | null
  17437. llmExplanation?: string | null
  17438. llmScoreImpact?: number | null
  17439. llmScoreFeasibility?: number | null
  17440. llmScoreUrgency?: number | null
  17441. llmEnrichedAt?: Date | string | null
  17442. llmEnrichFailed?: boolean
  17443. manualScoreImpact?: number | null
  17444. manualScoreFeasibility?: number | null
  17445. manualScoreUrgency?: number | null
  17446. priorityOrder?: number | null
  17447. emailMessageId?: string | null
  17448. createdAt?: Date | string
  17449. updatedAt?: Date | string
  17450. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  17451. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  17452. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  17453. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  17454. }
  17455. export type IdeaUncheckedCreateInput = {
  17456. id?: string
  17457. workspaceId: string
  17458. contributorEmail: string
  17459. contributorId?: string | null
  17460. department: string
  17461. problemDescription: string
  17462. estimatedImpact: $Enums.ImpactLevel
  17463. frequency: $Enums.Frequency
  17464. status?: $Enums.IdeaStatus
  17465. llmTitle?: string | null
  17466. llmDomain?: string | null
  17467. llmAiType?: string | null
  17468. llmExplanation?: string | null
  17469. llmScoreImpact?: number | null
  17470. llmScoreFeasibility?: number | null
  17471. llmScoreUrgency?: number | null
  17472. llmEnrichedAt?: Date | string | null
  17473. llmEnrichFailed?: boolean
  17474. manualScoreImpact?: number | null
  17475. manualScoreFeasibility?: number | null
  17476. manualScoreUrgency?: number | null
  17477. priorityOrder?: number | null
  17478. emailMessageId?: string | null
  17479. createdAt?: Date | string
  17480. updatedAt?: Date | string
  17481. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  17482. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  17483. }
  17484. export type IdeaUpdateInput = {
  17485. id?: StringFieldUpdateOperationsInput | string
  17486. contributorEmail?: StringFieldUpdateOperationsInput | string
  17487. department?: StringFieldUpdateOperationsInput | string
  17488. problemDescription?: StringFieldUpdateOperationsInput | string
  17489. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17490. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17491. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17492. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17493. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17494. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17495. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17496. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17497. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17498. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17499. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17500. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17501. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17502. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17503. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17504. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17505. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17506. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17507. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17508. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  17509. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  17510. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  17511. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  17512. }
  17513. export type IdeaUncheckedUpdateInput = {
  17514. id?: StringFieldUpdateOperationsInput | string
  17515. workspaceId?: StringFieldUpdateOperationsInput | string
  17516. contributorEmail?: StringFieldUpdateOperationsInput | string
  17517. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  17518. department?: StringFieldUpdateOperationsInput | string
  17519. problemDescription?: StringFieldUpdateOperationsInput | string
  17520. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17521. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17522. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17523. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17524. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17525. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17526. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17527. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17528. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17529. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17530. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17531. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17532. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17533. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17534. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17535. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17536. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17537. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17538. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17539. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  17540. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  17541. }
  17542. export type IdeaCreateManyInput = {
  17543. id?: string
  17544. workspaceId: string
  17545. contributorEmail: string
  17546. contributorId?: string | null
  17547. department: string
  17548. problemDescription: string
  17549. estimatedImpact: $Enums.ImpactLevel
  17550. frequency: $Enums.Frequency
  17551. status?: $Enums.IdeaStatus
  17552. llmTitle?: string | null
  17553. llmDomain?: string | null
  17554. llmAiType?: string | null
  17555. llmExplanation?: string | null
  17556. llmScoreImpact?: number | null
  17557. llmScoreFeasibility?: number | null
  17558. llmScoreUrgency?: number | null
  17559. llmEnrichedAt?: Date | string | null
  17560. llmEnrichFailed?: boolean
  17561. manualScoreImpact?: number | null
  17562. manualScoreFeasibility?: number | null
  17563. manualScoreUrgency?: number | null
  17564. priorityOrder?: number | null
  17565. emailMessageId?: string | null
  17566. createdAt?: Date | string
  17567. updatedAt?: Date | string
  17568. }
  17569. export type IdeaUpdateManyMutationInput = {
  17570. id?: StringFieldUpdateOperationsInput | string
  17571. contributorEmail?: StringFieldUpdateOperationsInput | string
  17572. department?: StringFieldUpdateOperationsInput | string
  17573. problemDescription?: StringFieldUpdateOperationsInput | string
  17574. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17575. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17576. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17577. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17578. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17579. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17580. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17581. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17582. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17583. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17584. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17585. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17586. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17587. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17588. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17589. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17590. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17591. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17592. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17593. }
  17594. export type IdeaUncheckedUpdateManyInput = {
  17595. id?: StringFieldUpdateOperationsInput | string
  17596. workspaceId?: StringFieldUpdateOperationsInput | string
  17597. contributorEmail?: StringFieldUpdateOperationsInput | string
  17598. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  17599. department?: StringFieldUpdateOperationsInput | string
  17600. problemDescription?: StringFieldUpdateOperationsInput | string
  17601. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17602. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17603. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17604. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17605. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17606. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17607. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17608. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17609. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17610. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17611. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17612. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17613. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17614. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17615. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17616. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17617. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17618. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17619. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17620. }
  17621. export type PostCreateInput = {
  17622. name: string
  17623. createdAt?: Date | string
  17624. updatedAt?: Date | string
  17625. createdBy: UserCreateNestedOneWithoutPostsInput
  17626. }
  17627. export type PostUncheckedCreateInput = {
  17628. id?: number
  17629. name: string
  17630. createdAt?: Date | string
  17631. updatedAt?: Date | string
  17632. createdById: string
  17633. }
  17634. export type PostUpdateInput = {
  17635. name?: StringFieldUpdateOperationsInput | string
  17636. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17637. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17638. createdBy?: UserUpdateOneRequiredWithoutPostsNestedInput
  17639. }
  17640. export type PostUncheckedUpdateInput = {
  17641. id?: IntFieldUpdateOperationsInput | number
  17642. name?: StringFieldUpdateOperationsInput | string
  17643. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17644. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17645. createdById?: StringFieldUpdateOperationsInput | string
  17646. }
  17647. export type PostCreateManyInput = {
  17648. id?: number
  17649. name: string
  17650. createdAt?: Date | string
  17651. updatedAt?: Date | string
  17652. createdById: string
  17653. }
  17654. export type PostUpdateManyMutationInput = {
  17655. name?: StringFieldUpdateOperationsInput | string
  17656. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17657. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17658. }
  17659. export type PostUncheckedUpdateManyInput = {
  17660. id?: IntFieldUpdateOperationsInput | number
  17661. name?: StringFieldUpdateOperationsInput | string
  17662. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17663. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17664. createdById?: StringFieldUpdateOperationsInput | string
  17665. }
  17666. export type AccountCreateInput = {
  17667. id?: string
  17668. type: string
  17669. provider: string
  17670. providerAccountId: string
  17671. refresh_token?: string | null
  17672. access_token?: string | null
  17673. expires_at?: number | null
  17674. token_type?: string | null
  17675. scope?: string | null
  17676. id_token?: string | null
  17677. session_state?: string | null
  17678. refresh_token_expires_in?: number | null
  17679. user: UserCreateNestedOneWithoutAccountsInput
  17680. }
  17681. export type AccountUncheckedCreateInput = {
  17682. id?: string
  17683. userId: string
  17684. type: string
  17685. provider: string
  17686. providerAccountId: string
  17687. refresh_token?: string | null
  17688. access_token?: string | null
  17689. expires_at?: number | null
  17690. token_type?: string | null
  17691. scope?: string | null
  17692. id_token?: string | null
  17693. session_state?: string | null
  17694. refresh_token_expires_in?: number | null
  17695. }
  17696. export type AccountUpdateInput = {
  17697. id?: StringFieldUpdateOperationsInput | string
  17698. type?: StringFieldUpdateOperationsInput | string
  17699. provider?: StringFieldUpdateOperationsInput | string
  17700. providerAccountId?: StringFieldUpdateOperationsInput | string
  17701. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17702. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17703. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17704. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17705. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17706. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17707. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17708. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17709. user?: UserUpdateOneRequiredWithoutAccountsNestedInput
  17710. }
  17711. export type AccountUncheckedUpdateInput = {
  17712. id?: StringFieldUpdateOperationsInput | string
  17713. userId?: StringFieldUpdateOperationsInput | string
  17714. type?: StringFieldUpdateOperationsInput | string
  17715. provider?: StringFieldUpdateOperationsInput | string
  17716. providerAccountId?: StringFieldUpdateOperationsInput | string
  17717. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17718. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17719. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17720. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17721. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17722. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17723. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17724. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17725. }
  17726. export type AccountCreateManyInput = {
  17727. id?: string
  17728. userId: string
  17729. type: string
  17730. provider: string
  17731. providerAccountId: string
  17732. refresh_token?: string | null
  17733. access_token?: string | null
  17734. expires_at?: number | null
  17735. token_type?: string | null
  17736. scope?: string | null
  17737. id_token?: string | null
  17738. session_state?: string | null
  17739. refresh_token_expires_in?: number | null
  17740. }
  17741. export type AccountUpdateManyMutationInput = {
  17742. id?: StringFieldUpdateOperationsInput | string
  17743. type?: StringFieldUpdateOperationsInput | string
  17744. provider?: StringFieldUpdateOperationsInput | string
  17745. providerAccountId?: StringFieldUpdateOperationsInput | string
  17746. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17747. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17748. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17749. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17750. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17751. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17752. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17753. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17754. }
  17755. export type AccountUncheckedUpdateManyInput = {
  17756. id?: StringFieldUpdateOperationsInput | string
  17757. userId?: StringFieldUpdateOperationsInput | string
  17758. type?: StringFieldUpdateOperationsInput | string
  17759. provider?: StringFieldUpdateOperationsInput | string
  17760. providerAccountId?: StringFieldUpdateOperationsInput | string
  17761. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17762. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17763. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17764. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17765. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17766. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17767. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17768. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17769. }
  17770. export type SessionCreateInput = {
  17771. id?: string
  17772. sessionToken: string
  17773. expires: Date | string
  17774. user: UserCreateNestedOneWithoutSessionsInput
  17775. }
  17776. export type SessionUncheckedCreateInput = {
  17777. id?: string
  17778. sessionToken: string
  17779. userId: string
  17780. expires: Date | string
  17781. }
  17782. export type SessionUpdateInput = {
  17783. id?: StringFieldUpdateOperationsInput | string
  17784. sessionToken?: StringFieldUpdateOperationsInput | string
  17785. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17786. user?: UserUpdateOneRequiredWithoutSessionsNestedInput
  17787. }
  17788. export type SessionUncheckedUpdateInput = {
  17789. id?: StringFieldUpdateOperationsInput | string
  17790. sessionToken?: StringFieldUpdateOperationsInput | string
  17791. userId?: StringFieldUpdateOperationsInput | string
  17792. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17793. }
  17794. export type SessionCreateManyInput = {
  17795. id?: string
  17796. sessionToken: string
  17797. userId: string
  17798. expires: Date | string
  17799. }
  17800. export type SessionUpdateManyMutationInput = {
  17801. id?: StringFieldUpdateOperationsInput | string
  17802. sessionToken?: StringFieldUpdateOperationsInput | string
  17803. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17804. }
  17805. export type SessionUncheckedUpdateManyInput = {
  17806. id?: StringFieldUpdateOperationsInput | string
  17807. sessionToken?: StringFieldUpdateOperationsInput | string
  17808. userId?: StringFieldUpdateOperationsInput | string
  17809. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17810. }
  17811. export type UserCreateInput = {
  17812. id?: string
  17813. name?: string | null
  17814. email?: string | null
  17815. emailVerified?: Date | string | null
  17816. password?: string | null
  17817. image?: string | null
  17818. accounts?: AccountCreateNestedManyWithoutUserInput
  17819. sessions?: SessionCreateNestedManyWithoutUserInput
  17820. posts?: PostCreateNestedManyWithoutCreatedByInput
  17821. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  17822. }
  17823. export type UserUncheckedCreateInput = {
  17824. id?: string
  17825. name?: string | null
  17826. email?: string | null
  17827. emailVerified?: Date | string | null
  17828. password?: string | null
  17829. image?: string | null
  17830. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  17831. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  17832. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  17833. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  17834. }
  17835. export type UserUpdateInput = {
  17836. id?: StringFieldUpdateOperationsInput | string
  17837. name?: NullableStringFieldUpdateOperationsInput | string | null
  17838. email?: NullableStringFieldUpdateOperationsInput | string | null
  17839. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17840. password?: NullableStringFieldUpdateOperationsInput | string | null
  17841. image?: NullableStringFieldUpdateOperationsInput | string | null
  17842. accounts?: AccountUpdateManyWithoutUserNestedInput
  17843. sessions?: SessionUpdateManyWithoutUserNestedInput
  17844. posts?: PostUpdateManyWithoutCreatedByNestedInput
  17845. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  17846. }
  17847. export type UserUncheckedUpdateInput = {
  17848. id?: StringFieldUpdateOperationsInput | string
  17849. name?: NullableStringFieldUpdateOperationsInput | string | null
  17850. email?: NullableStringFieldUpdateOperationsInput | string | null
  17851. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17852. password?: NullableStringFieldUpdateOperationsInput | string | null
  17853. image?: NullableStringFieldUpdateOperationsInput | string | null
  17854. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  17855. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  17856. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  17857. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  17858. }
  17859. export type UserCreateManyInput = {
  17860. id?: string
  17861. name?: string | null
  17862. email?: string | null
  17863. emailVerified?: Date | string | null
  17864. password?: string | null
  17865. image?: string | null
  17866. }
  17867. export type UserUpdateManyMutationInput = {
  17868. id?: StringFieldUpdateOperationsInput | string
  17869. name?: NullableStringFieldUpdateOperationsInput | string | null
  17870. email?: NullableStringFieldUpdateOperationsInput | string | null
  17871. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17872. password?: NullableStringFieldUpdateOperationsInput | string | null
  17873. image?: NullableStringFieldUpdateOperationsInput | string | null
  17874. }
  17875. export type UserUncheckedUpdateManyInput = {
  17876. id?: StringFieldUpdateOperationsInput | string
  17877. name?: NullableStringFieldUpdateOperationsInput | string | null
  17878. email?: NullableStringFieldUpdateOperationsInput | string | null
  17879. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17880. password?: NullableStringFieldUpdateOperationsInput | string | null
  17881. image?: NullableStringFieldUpdateOperationsInput | string | null
  17882. }
  17883. export type VerificationTokenCreateInput = {
  17884. identifier: string
  17885. token: string
  17886. expires: Date | string
  17887. }
  17888. export type VerificationTokenUncheckedCreateInput = {
  17889. identifier: string
  17890. token: string
  17891. expires: Date | string
  17892. }
  17893. export type VerificationTokenUpdateInput = {
  17894. identifier?: StringFieldUpdateOperationsInput | string
  17895. token?: StringFieldUpdateOperationsInput | string
  17896. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17897. }
  17898. export type VerificationTokenUncheckedUpdateInput = {
  17899. identifier?: StringFieldUpdateOperationsInput | string
  17900. token?: StringFieldUpdateOperationsInput | string
  17901. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17902. }
  17903. export type VerificationTokenCreateManyInput = {
  17904. identifier: string
  17905. token: string
  17906. expires: Date | string
  17907. }
  17908. export type VerificationTokenUpdateManyMutationInput = {
  17909. identifier?: StringFieldUpdateOperationsInput | string
  17910. token?: StringFieldUpdateOperationsInput | string
  17911. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17912. }
  17913. export type VerificationTokenUncheckedUpdateManyInput = {
  17914. identifier?: StringFieldUpdateOperationsInput | string
  17915. token?: StringFieldUpdateOperationsInput | string
  17916. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17917. }
  17918. export type IdeaAttachmentCreateInput = {
  17919. id?: string
  17920. workspaceId: string
  17921. filename: string
  17922. contentType: string
  17923. size: number
  17924. url: string
  17925. blobPath: string
  17926. createdAt?: Date | string
  17927. idea: IdeaCreateNestedOneWithoutAttachmentsInput
  17928. }
  17929. export type IdeaAttachmentUncheckedCreateInput = {
  17930. id?: string
  17931. ideaId: string
  17932. workspaceId: string
  17933. filename: string
  17934. contentType: string
  17935. size: number
  17936. url: string
  17937. blobPath: string
  17938. createdAt?: Date | string
  17939. }
  17940. export type IdeaAttachmentUpdateInput = {
  17941. id?: StringFieldUpdateOperationsInput | string
  17942. workspaceId?: StringFieldUpdateOperationsInput | string
  17943. filename?: StringFieldUpdateOperationsInput | string
  17944. contentType?: StringFieldUpdateOperationsInput | string
  17945. size?: IntFieldUpdateOperationsInput | number
  17946. url?: StringFieldUpdateOperationsInput | string
  17947. blobPath?: StringFieldUpdateOperationsInput | string
  17948. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17949. idea?: IdeaUpdateOneRequiredWithoutAttachmentsNestedInput
  17950. }
  17951. export type IdeaAttachmentUncheckedUpdateInput = {
  17952. id?: StringFieldUpdateOperationsInput | string
  17953. ideaId?: StringFieldUpdateOperationsInput | string
  17954. workspaceId?: StringFieldUpdateOperationsInput | string
  17955. filename?: StringFieldUpdateOperationsInput | string
  17956. contentType?: StringFieldUpdateOperationsInput | string
  17957. size?: IntFieldUpdateOperationsInput | number
  17958. url?: StringFieldUpdateOperationsInput | string
  17959. blobPath?: StringFieldUpdateOperationsInput | string
  17960. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17961. }
  17962. export type IdeaAttachmentCreateManyInput = {
  17963. id?: string
  17964. ideaId: string
  17965. workspaceId: string
  17966. filename: string
  17967. contentType: string
  17968. size: number
  17969. url: string
  17970. blobPath: string
  17971. createdAt?: Date | string
  17972. }
  17973. export type IdeaAttachmentUpdateManyMutationInput = {
  17974. id?: StringFieldUpdateOperationsInput | string
  17975. workspaceId?: StringFieldUpdateOperationsInput | string
  17976. filename?: StringFieldUpdateOperationsInput | string
  17977. contentType?: StringFieldUpdateOperationsInput | string
  17978. size?: IntFieldUpdateOperationsInput | number
  17979. url?: StringFieldUpdateOperationsInput | string
  17980. blobPath?: StringFieldUpdateOperationsInput | string
  17981. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17982. }
  17983. export type IdeaAttachmentUncheckedUpdateManyInput = {
  17984. id?: StringFieldUpdateOperationsInput | string
  17985. ideaId?: StringFieldUpdateOperationsInput | string
  17986. workspaceId?: StringFieldUpdateOperationsInput | string
  17987. filename?: StringFieldUpdateOperationsInput | string
  17988. contentType?: StringFieldUpdateOperationsInput | string
  17989. size?: IntFieldUpdateOperationsInput | number
  17990. url?: StringFieldUpdateOperationsInput | string
  17991. blobPath?: StringFieldUpdateOperationsInput | string
  17992. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17993. }
  17994. export type QualificationQuestionCreateInput = {
  17995. id?: string
  17996. workspaceId: string
  17997. questionText: string
  17998. responseToken?: string
  17999. askedAt?: Date | string
  18000. responseText?: string | null
  18001. answeredAt?: Date | string | null
  18002. idea: IdeaCreateNestedOneWithoutQualificationQuestionsInput
  18003. }
  18004. export type QualificationQuestionUncheckedCreateInput = {
  18005. id?: string
  18006. ideaId: string
  18007. workspaceId: string
  18008. questionText: string
  18009. responseToken?: string
  18010. askedAt?: Date | string
  18011. responseText?: string | null
  18012. answeredAt?: Date | string | null
  18013. }
  18014. export type QualificationQuestionUpdateInput = {
  18015. id?: StringFieldUpdateOperationsInput | string
  18016. workspaceId?: StringFieldUpdateOperationsInput | string
  18017. questionText?: StringFieldUpdateOperationsInput | string
  18018. responseToken?: StringFieldUpdateOperationsInput | string
  18019. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18020. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18021. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18022. idea?: IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput
  18023. }
  18024. export type QualificationQuestionUncheckedUpdateInput = {
  18025. id?: StringFieldUpdateOperationsInput | string
  18026. ideaId?: StringFieldUpdateOperationsInput | string
  18027. workspaceId?: StringFieldUpdateOperationsInput | string
  18028. questionText?: StringFieldUpdateOperationsInput | string
  18029. responseToken?: StringFieldUpdateOperationsInput | string
  18030. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18031. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18032. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18033. }
  18034. export type QualificationQuestionCreateManyInput = {
  18035. id?: string
  18036. ideaId: string
  18037. workspaceId: string
  18038. questionText: string
  18039. responseToken?: string
  18040. askedAt?: Date | string
  18041. responseText?: string | null
  18042. answeredAt?: Date | string | null
  18043. }
  18044. export type QualificationQuestionUpdateManyMutationInput = {
  18045. id?: StringFieldUpdateOperationsInput | string
  18046. workspaceId?: StringFieldUpdateOperationsInput | string
  18047. questionText?: StringFieldUpdateOperationsInput | string
  18048. responseToken?: StringFieldUpdateOperationsInput | string
  18049. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18050. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18051. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18052. }
  18053. export type QualificationQuestionUncheckedUpdateManyInput = {
  18054. id?: StringFieldUpdateOperationsInput | string
  18055. ideaId?: StringFieldUpdateOperationsInput | string
  18056. workspaceId?: StringFieldUpdateOperationsInput | string
  18057. questionText?: StringFieldUpdateOperationsInput | string
  18058. responseToken?: StringFieldUpdateOperationsInput | string
  18059. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18060. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18061. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18062. }
  18063. export type LibraryCaseCreateInput = {
  18064. id?: string
  18065. sector: string
  18066. department: string
  18067. title: string
  18068. description: string
  18069. createdAt?: Date | string
  18070. updatedAt?: Date | string
  18071. }
  18072. export type LibraryCaseUncheckedCreateInput = {
  18073. id?: string
  18074. sector: string
  18075. department: string
  18076. title: string
  18077. description: string
  18078. createdAt?: Date | string
  18079. updatedAt?: Date | string
  18080. }
  18081. export type LibraryCaseUpdateInput = {
  18082. id?: StringFieldUpdateOperationsInput | string
  18083. sector?: StringFieldUpdateOperationsInput | string
  18084. department?: StringFieldUpdateOperationsInput | string
  18085. title?: StringFieldUpdateOperationsInput | string
  18086. description?: StringFieldUpdateOperationsInput | string
  18087. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18088. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18089. }
  18090. export type LibraryCaseUncheckedUpdateInput = {
  18091. id?: StringFieldUpdateOperationsInput | string
  18092. sector?: StringFieldUpdateOperationsInput | string
  18093. department?: StringFieldUpdateOperationsInput | string
  18094. title?: StringFieldUpdateOperationsInput | string
  18095. description?: StringFieldUpdateOperationsInput | string
  18096. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18097. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18098. }
  18099. export type LibraryCaseCreateManyInput = {
  18100. id?: string
  18101. sector: string
  18102. department: string
  18103. title: string
  18104. description: string
  18105. createdAt?: Date | string
  18106. updatedAt?: Date | string
  18107. }
  18108. export type LibraryCaseUpdateManyMutationInput = {
  18109. id?: StringFieldUpdateOperationsInput | string
  18110. sector?: StringFieldUpdateOperationsInput | string
  18111. department?: StringFieldUpdateOperationsInput | string
  18112. title?: StringFieldUpdateOperationsInput | string
  18113. description?: StringFieldUpdateOperationsInput | string
  18114. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18115. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18116. }
  18117. export type LibraryCaseUncheckedUpdateManyInput = {
  18118. id?: StringFieldUpdateOperationsInput | string
  18119. sector?: StringFieldUpdateOperationsInput | string
  18120. department?: StringFieldUpdateOperationsInput | string
  18121. title?: StringFieldUpdateOperationsInput | string
  18122. description?: StringFieldUpdateOperationsInput | string
  18123. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18124. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18125. }
  18126. export type ShareLinkCreateInput = {
  18127. id?: string
  18128. token?: string
  18129. expiresAt?: Date | string | null
  18130. createdAt?: Date | string
  18131. workspace: WorkspaceCreateNestedOneWithoutShareLinkInput
  18132. }
  18133. export type ShareLinkUncheckedCreateInput = {
  18134. id?: string
  18135. workspaceId: string
  18136. token?: string
  18137. expiresAt?: Date | string | null
  18138. createdAt?: Date | string
  18139. }
  18140. export type ShareLinkUpdateInput = {
  18141. id?: StringFieldUpdateOperationsInput | string
  18142. token?: StringFieldUpdateOperationsInput | string
  18143. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18144. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18145. workspace?: WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput
  18146. }
  18147. export type ShareLinkUncheckedUpdateInput = {
  18148. id?: StringFieldUpdateOperationsInput | string
  18149. workspaceId?: StringFieldUpdateOperationsInput | string
  18150. token?: StringFieldUpdateOperationsInput | string
  18151. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18152. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18153. }
  18154. export type ShareLinkCreateManyInput = {
  18155. id?: string
  18156. workspaceId: string
  18157. token?: string
  18158. expiresAt?: Date | string | null
  18159. createdAt?: Date | string
  18160. }
  18161. export type ShareLinkUpdateManyMutationInput = {
  18162. id?: StringFieldUpdateOperationsInput | string
  18163. token?: StringFieldUpdateOperationsInput | string
  18164. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18165. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18166. }
  18167. export type ShareLinkUncheckedUpdateManyInput = {
  18168. id?: StringFieldUpdateOperationsInput | string
  18169. workspaceId?: StringFieldUpdateOperationsInput | string
  18170. token?: StringFieldUpdateOperationsInput | string
  18171. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18172. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18173. }
  18174. export type StringFilter<$PrismaModel = never> = {
  18175. equals?: string | StringFieldRefInput<$PrismaModel>
  18176. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  18177. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  18178. lt?: string | StringFieldRefInput<$PrismaModel>
  18179. lte?: string | StringFieldRefInput<$PrismaModel>
  18180. gt?: string | StringFieldRefInput<$PrismaModel>
  18181. gte?: string | StringFieldRefInput<$PrismaModel>
  18182. contains?: string | StringFieldRefInput<$PrismaModel>
  18183. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18184. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18185. mode?: QueryMode
  18186. not?: NestedStringFilter<$PrismaModel> | string
  18187. }
  18188. export type StringNullableFilter<$PrismaModel = never> = {
  18189. equals?: string | StringFieldRefInput<$PrismaModel> | null
  18190. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18191. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18192. lt?: string | StringFieldRefInput<$PrismaModel>
  18193. lte?: string | StringFieldRefInput<$PrismaModel>
  18194. gt?: string | StringFieldRefInput<$PrismaModel>
  18195. gte?: string | StringFieldRefInput<$PrismaModel>
  18196. contains?: string | StringFieldRefInput<$PrismaModel>
  18197. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18198. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18199. mode?: QueryMode
  18200. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  18201. }
  18202. export type IntNullableFilter<$PrismaModel = never> = {
  18203. equals?: number | IntFieldRefInput<$PrismaModel> | null
  18204. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18205. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18206. lt?: number | IntFieldRefInput<$PrismaModel>
  18207. lte?: number | IntFieldRefInput<$PrismaModel>
  18208. gt?: number | IntFieldRefInput<$PrismaModel>
  18209. gte?: number | IntFieldRefInput<$PrismaModel>
  18210. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  18211. }
  18212. export type EnumWorkspaceTierFilter<$PrismaModel = never> = {
  18213. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  18214. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18215. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18216. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  18217. }
  18218. export type IntFilter<$PrismaModel = never> = {
  18219. equals?: number | IntFieldRefInput<$PrismaModel>
  18220. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  18221. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  18222. lt?: number | IntFieldRefInput<$PrismaModel>
  18223. lte?: number | IntFieldRefInput<$PrismaModel>
  18224. gt?: number | IntFieldRefInput<$PrismaModel>
  18225. gte?: number | IntFieldRefInput<$PrismaModel>
  18226. not?: NestedIntFilter<$PrismaModel> | number
  18227. }
  18228. export type DateTimeFilter<$PrismaModel = never> = {
  18229. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18230. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18231. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18232. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18233. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18234. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18235. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18236. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  18237. }
  18238. export type BoolFilter<$PrismaModel = never> = {
  18239. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  18240. not?: NestedBoolFilter<$PrismaModel> | boolean
  18241. }
  18242. export type DateTimeNullableFilter<$PrismaModel = never> = {
  18243. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  18244. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18245. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18246. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18247. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18248. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18249. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18250. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  18251. }
  18252. export type ShareLinkNullableScalarRelationFilter = {
  18253. is?: ShareLinkWhereInput | null
  18254. isNot?: ShareLinkWhereInput | null
  18255. }
  18256. export type UserScalarRelationFilter = {
  18257. is?: UserWhereInput
  18258. isNot?: UserWhereInput
  18259. }
  18260. export type ContributorListRelationFilter = {
  18261. every?: ContributorWhereInput
  18262. some?: ContributorWhereInput
  18263. none?: ContributorWhereInput
  18264. }
  18265. export type IdeaListRelationFilter = {
  18266. every?: IdeaWhereInput
  18267. some?: IdeaWhereInput
  18268. none?: IdeaWhereInput
  18269. }
  18270. export type ManualRelanceLogListRelationFilter = {
  18271. every?: ManualRelanceLogWhereInput
  18272. some?: ManualRelanceLogWhereInput
  18273. none?: ManualRelanceLogWhereInput
  18274. }
  18275. export type SortOrderInput = {
  18276. sort: SortOrder
  18277. nulls?: NullsOrder
  18278. }
  18279. export type ContributorOrderByRelationAggregateInput = {
  18280. _count?: SortOrder
  18281. }
  18282. export type IdeaOrderByRelationAggregateInput = {
  18283. _count?: SortOrder
  18284. }
  18285. export type ManualRelanceLogOrderByRelationAggregateInput = {
  18286. _count?: SortOrder
  18287. }
  18288. export type WorkspaceCountOrderByAggregateInput = {
  18289. id?: SortOrder
  18290. name?: SortOrder
  18291. slug?: SortOrder
  18292. sector?: SortOrder
  18293. companySize?: SortOrder
  18294. contactEmail?: SortOrder
  18295. tier?: SortOrder
  18296. llmCallsThisMonth?: SortOrder
  18297. llmCallsResetAt?: SortOrder
  18298. autoRelanceEnabled?: SortOrder
  18299. exportsThisMonth?: SortOrder
  18300. exportsResetAt?: SortOrder
  18301. lastVisitedAt?: SortOrder
  18302. createdAt?: SortOrder
  18303. updatedAt?: SortOrder
  18304. ownerId?: SortOrder
  18305. }
  18306. export type WorkspaceAvgOrderByAggregateInput = {
  18307. companySize?: SortOrder
  18308. llmCallsThisMonth?: SortOrder
  18309. exportsThisMonth?: SortOrder
  18310. }
  18311. export type WorkspaceMaxOrderByAggregateInput = {
  18312. id?: SortOrder
  18313. name?: SortOrder
  18314. slug?: SortOrder
  18315. sector?: SortOrder
  18316. companySize?: SortOrder
  18317. contactEmail?: SortOrder
  18318. tier?: SortOrder
  18319. llmCallsThisMonth?: SortOrder
  18320. llmCallsResetAt?: SortOrder
  18321. autoRelanceEnabled?: SortOrder
  18322. exportsThisMonth?: SortOrder
  18323. exportsResetAt?: SortOrder
  18324. lastVisitedAt?: SortOrder
  18325. createdAt?: SortOrder
  18326. updatedAt?: SortOrder
  18327. ownerId?: SortOrder
  18328. }
  18329. export type WorkspaceMinOrderByAggregateInput = {
  18330. id?: SortOrder
  18331. name?: SortOrder
  18332. slug?: SortOrder
  18333. sector?: SortOrder
  18334. companySize?: SortOrder
  18335. contactEmail?: SortOrder
  18336. tier?: SortOrder
  18337. llmCallsThisMonth?: SortOrder
  18338. llmCallsResetAt?: SortOrder
  18339. autoRelanceEnabled?: SortOrder
  18340. exportsThisMonth?: SortOrder
  18341. exportsResetAt?: SortOrder
  18342. lastVisitedAt?: SortOrder
  18343. createdAt?: SortOrder
  18344. updatedAt?: SortOrder
  18345. ownerId?: SortOrder
  18346. }
  18347. export type WorkspaceSumOrderByAggregateInput = {
  18348. companySize?: SortOrder
  18349. llmCallsThisMonth?: SortOrder
  18350. exportsThisMonth?: SortOrder
  18351. }
  18352. export type StringWithAggregatesFilter<$PrismaModel = never> = {
  18353. equals?: string | StringFieldRefInput<$PrismaModel>
  18354. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  18355. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  18356. lt?: string | StringFieldRefInput<$PrismaModel>
  18357. lte?: string | StringFieldRefInput<$PrismaModel>
  18358. gt?: string | StringFieldRefInput<$PrismaModel>
  18359. gte?: string | StringFieldRefInput<$PrismaModel>
  18360. contains?: string | StringFieldRefInput<$PrismaModel>
  18361. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18362. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18363. mode?: QueryMode
  18364. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  18365. _count?: NestedIntFilter<$PrismaModel>
  18366. _min?: NestedStringFilter<$PrismaModel>
  18367. _max?: NestedStringFilter<$PrismaModel>
  18368. }
  18369. export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
  18370. equals?: string | StringFieldRefInput<$PrismaModel> | null
  18371. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18372. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18373. lt?: string | StringFieldRefInput<$PrismaModel>
  18374. lte?: string | StringFieldRefInput<$PrismaModel>
  18375. gt?: string | StringFieldRefInput<$PrismaModel>
  18376. gte?: string | StringFieldRefInput<$PrismaModel>
  18377. contains?: string | StringFieldRefInput<$PrismaModel>
  18378. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18379. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18380. mode?: QueryMode
  18381. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  18382. _count?: NestedIntNullableFilter<$PrismaModel>
  18383. _min?: NestedStringNullableFilter<$PrismaModel>
  18384. _max?: NestedStringNullableFilter<$PrismaModel>
  18385. }
  18386. export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
  18387. equals?: number | IntFieldRefInput<$PrismaModel> | null
  18388. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18389. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18390. lt?: number | IntFieldRefInput<$PrismaModel>
  18391. lte?: number | IntFieldRefInput<$PrismaModel>
  18392. gt?: number | IntFieldRefInput<$PrismaModel>
  18393. gte?: number | IntFieldRefInput<$PrismaModel>
  18394. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  18395. _count?: NestedIntNullableFilter<$PrismaModel>
  18396. _avg?: NestedFloatNullableFilter<$PrismaModel>
  18397. _sum?: NestedIntNullableFilter<$PrismaModel>
  18398. _min?: NestedIntNullableFilter<$PrismaModel>
  18399. _max?: NestedIntNullableFilter<$PrismaModel>
  18400. }
  18401. export type EnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  18402. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  18403. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18404. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18405. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  18406. _count?: NestedIntFilter<$PrismaModel>
  18407. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  18408. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  18409. }
  18410. export type IntWithAggregatesFilter<$PrismaModel = never> = {
  18411. equals?: number | IntFieldRefInput<$PrismaModel>
  18412. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  18413. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  18414. lt?: number | IntFieldRefInput<$PrismaModel>
  18415. lte?: number | IntFieldRefInput<$PrismaModel>
  18416. gt?: number | IntFieldRefInput<$PrismaModel>
  18417. gte?: number | IntFieldRefInput<$PrismaModel>
  18418. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  18419. _count?: NestedIntFilter<$PrismaModel>
  18420. _avg?: NestedFloatFilter<$PrismaModel>
  18421. _sum?: NestedIntFilter<$PrismaModel>
  18422. _min?: NestedIntFilter<$PrismaModel>
  18423. _max?: NestedIntFilter<$PrismaModel>
  18424. }
  18425. export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
  18426. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18427. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18428. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18429. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18430. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18431. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18432. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18433. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  18434. _count?: NestedIntFilter<$PrismaModel>
  18435. _min?: NestedDateTimeFilter<$PrismaModel>
  18436. _max?: NestedDateTimeFilter<$PrismaModel>
  18437. }
  18438. export type BoolWithAggregatesFilter<$PrismaModel = never> = {
  18439. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  18440. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  18441. _count?: NestedIntFilter<$PrismaModel>
  18442. _min?: NestedBoolFilter<$PrismaModel>
  18443. _max?: NestedBoolFilter<$PrismaModel>
  18444. }
  18445. export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  18446. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  18447. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18448. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18449. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18450. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18451. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18452. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18453. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  18454. _count?: NestedIntNullableFilter<$PrismaModel>
  18455. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  18456. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  18457. }
  18458. export type WorkspaceScalarRelationFilter = {
  18459. is?: WorkspaceWhereInput
  18460. isNot?: WorkspaceWhereInput
  18461. }
  18462. export type ManualRelanceLogCountOrderByAggregateInput = {
  18463. id?: SortOrder
  18464. workspaceId?: SortOrder
  18465. subject?: SortOrder
  18466. recipientCount?: SortOrder
  18467. sentCount?: SortOrder
  18468. failedCount?: SortOrder
  18469. sentAt?: SortOrder
  18470. }
  18471. export type ManualRelanceLogAvgOrderByAggregateInput = {
  18472. recipientCount?: SortOrder
  18473. sentCount?: SortOrder
  18474. failedCount?: SortOrder
  18475. }
  18476. export type ManualRelanceLogMaxOrderByAggregateInput = {
  18477. id?: SortOrder
  18478. workspaceId?: SortOrder
  18479. subject?: SortOrder
  18480. recipientCount?: SortOrder
  18481. sentCount?: SortOrder
  18482. failedCount?: SortOrder
  18483. sentAt?: SortOrder
  18484. }
  18485. export type ManualRelanceLogMinOrderByAggregateInput = {
  18486. id?: SortOrder
  18487. workspaceId?: SortOrder
  18488. subject?: SortOrder
  18489. recipientCount?: SortOrder
  18490. sentCount?: SortOrder
  18491. failedCount?: SortOrder
  18492. sentAt?: SortOrder
  18493. }
  18494. export type ManualRelanceLogSumOrderByAggregateInput = {
  18495. recipientCount?: SortOrder
  18496. sentCount?: SortOrder
  18497. failedCount?: SortOrder
  18498. }
  18499. export type EnumContributorStatusFilter<$PrismaModel = never> = {
  18500. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  18501. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18502. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18503. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  18504. }
  18505. export type ContributorWorkspaceIdEmailCompoundUniqueInput = {
  18506. workspaceId: string
  18507. email: string
  18508. }
  18509. export type ContributorCountOrderByAggregateInput = {
  18510. id?: SortOrder
  18511. workspaceId?: SortOrder
  18512. email?: SortOrder
  18513. status?: SortOrder
  18514. invitedAt?: SortOrder
  18515. lastRemindedAt?: SortOrder
  18516. createdAt?: SortOrder
  18517. }
  18518. export type ContributorMaxOrderByAggregateInput = {
  18519. id?: SortOrder
  18520. workspaceId?: SortOrder
  18521. email?: SortOrder
  18522. status?: SortOrder
  18523. invitedAt?: SortOrder
  18524. lastRemindedAt?: SortOrder
  18525. createdAt?: SortOrder
  18526. }
  18527. export type ContributorMinOrderByAggregateInput = {
  18528. id?: SortOrder
  18529. workspaceId?: SortOrder
  18530. email?: SortOrder
  18531. status?: SortOrder
  18532. invitedAt?: SortOrder
  18533. lastRemindedAt?: SortOrder
  18534. createdAt?: SortOrder
  18535. }
  18536. export type EnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  18537. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  18538. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18539. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18540. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  18541. _count?: NestedIntFilter<$PrismaModel>
  18542. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  18543. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  18544. }
  18545. export type EnumImpactLevelFilter<$PrismaModel = never> = {
  18546. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  18547. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18548. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18549. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  18550. }
  18551. export type EnumFrequencyFilter<$PrismaModel = never> = {
  18552. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  18553. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18554. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18555. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  18556. }
  18557. export type EnumIdeaStatusFilter<$PrismaModel = never> = {
  18558. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  18559. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18560. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18561. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  18562. }
  18563. export type ContributorNullableScalarRelationFilter = {
  18564. is?: ContributorWhereInput | null
  18565. isNot?: ContributorWhereInput | null
  18566. }
  18567. export type IdeaAttachmentListRelationFilter = {
  18568. every?: IdeaAttachmentWhereInput
  18569. some?: IdeaAttachmentWhereInput
  18570. none?: IdeaAttachmentWhereInput
  18571. }
  18572. export type QualificationQuestionListRelationFilter = {
  18573. every?: QualificationQuestionWhereInput
  18574. some?: QualificationQuestionWhereInput
  18575. none?: QualificationQuestionWhereInput
  18576. }
  18577. export type IdeaAttachmentOrderByRelationAggregateInput = {
  18578. _count?: SortOrder
  18579. }
  18580. export type QualificationQuestionOrderByRelationAggregateInput = {
  18581. _count?: SortOrder
  18582. }
  18583. export type IdeaCountOrderByAggregateInput = {
  18584. id?: SortOrder
  18585. workspaceId?: SortOrder
  18586. contributorEmail?: SortOrder
  18587. contributorId?: SortOrder
  18588. department?: SortOrder
  18589. problemDescription?: SortOrder
  18590. estimatedImpact?: SortOrder
  18591. frequency?: SortOrder
  18592. status?: SortOrder
  18593. llmTitle?: SortOrder
  18594. llmDomain?: SortOrder
  18595. llmAiType?: SortOrder
  18596. llmExplanation?: SortOrder
  18597. llmScoreImpact?: SortOrder
  18598. llmScoreFeasibility?: SortOrder
  18599. llmScoreUrgency?: SortOrder
  18600. llmEnrichedAt?: SortOrder
  18601. llmEnrichFailed?: SortOrder
  18602. manualScoreImpact?: SortOrder
  18603. manualScoreFeasibility?: SortOrder
  18604. manualScoreUrgency?: SortOrder
  18605. priorityOrder?: SortOrder
  18606. emailMessageId?: SortOrder
  18607. createdAt?: SortOrder
  18608. updatedAt?: SortOrder
  18609. }
  18610. export type IdeaAvgOrderByAggregateInput = {
  18611. llmScoreImpact?: SortOrder
  18612. llmScoreFeasibility?: SortOrder
  18613. llmScoreUrgency?: SortOrder
  18614. manualScoreImpact?: SortOrder
  18615. manualScoreFeasibility?: SortOrder
  18616. manualScoreUrgency?: SortOrder
  18617. priorityOrder?: SortOrder
  18618. }
  18619. export type IdeaMaxOrderByAggregateInput = {
  18620. id?: SortOrder
  18621. workspaceId?: SortOrder
  18622. contributorEmail?: SortOrder
  18623. contributorId?: SortOrder
  18624. department?: SortOrder
  18625. problemDescription?: SortOrder
  18626. estimatedImpact?: SortOrder
  18627. frequency?: SortOrder
  18628. status?: SortOrder
  18629. llmTitle?: SortOrder
  18630. llmDomain?: SortOrder
  18631. llmAiType?: SortOrder
  18632. llmExplanation?: SortOrder
  18633. llmScoreImpact?: SortOrder
  18634. llmScoreFeasibility?: SortOrder
  18635. llmScoreUrgency?: SortOrder
  18636. llmEnrichedAt?: SortOrder
  18637. llmEnrichFailed?: SortOrder
  18638. manualScoreImpact?: SortOrder
  18639. manualScoreFeasibility?: SortOrder
  18640. manualScoreUrgency?: SortOrder
  18641. priorityOrder?: SortOrder
  18642. emailMessageId?: SortOrder
  18643. createdAt?: SortOrder
  18644. updatedAt?: SortOrder
  18645. }
  18646. export type IdeaMinOrderByAggregateInput = {
  18647. id?: SortOrder
  18648. workspaceId?: SortOrder
  18649. contributorEmail?: SortOrder
  18650. contributorId?: SortOrder
  18651. department?: SortOrder
  18652. problemDescription?: SortOrder
  18653. estimatedImpact?: SortOrder
  18654. frequency?: SortOrder
  18655. status?: SortOrder
  18656. llmTitle?: SortOrder
  18657. llmDomain?: SortOrder
  18658. llmAiType?: SortOrder
  18659. llmExplanation?: SortOrder
  18660. llmScoreImpact?: SortOrder
  18661. llmScoreFeasibility?: SortOrder
  18662. llmScoreUrgency?: SortOrder
  18663. llmEnrichedAt?: SortOrder
  18664. llmEnrichFailed?: SortOrder
  18665. manualScoreImpact?: SortOrder
  18666. manualScoreFeasibility?: SortOrder
  18667. manualScoreUrgency?: SortOrder
  18668. priorityOrder?: SortOrder
  18669. emailMessageId?: SortOrder
  18670. createdAt?: SortOrder
  18671. updatedAt?: SortOrder
  18672. }
  18673. export type IdeaSumOrderByAggregateInput = {
  18674. llmScoreImpact?: SortOrder
  18675. llmScoreFeasibility?: SortOrder
  18676. llmScoreUrgency?: SortOrder
  18677. manualScoreImpact?: SortOrder
  18678. manualScoreFeasibility?: SortOrder
  18679. manualScoreUrgency?: SortOrder
  18680. priorityOrder?: SortOrder
  18681. }
  18682. export type EnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  18683. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  18684. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18685. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18686. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  18687. _count?: NestedIntFilter<$PrismaModel>
  18688. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  18689. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  18690. }
  18691. export type EnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  18692. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  18693. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18694. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18695. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  18696. _count?: NestedIntFilter<$PrismaModel>
  18697. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  18698. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  18699. }
  18700. export type EnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  18701. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  18702. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18703. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18704. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  18705. _count?: NestedIntFilter<$PrismaModel>
  18706. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  18707. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  18708. }
  18709. export type PostCountOrderByAggregateInput = {
  18710. id?: SortOrder
  18711. name?: SortOrder
  18712. createdAt?: SortOrder
  18713. updatedAt?: SortOrder
  18714. createdById?: SortOrder
  18715. }
  18716. export type PostAvgOrderByAggregateInput = {
  18717. id?: SortOrder
  18718. }
  18719. export type PostMaxOrderByAggregateInput = {
  18720. id?: SortOrder
  18721. name?: SortOrder
  18722. createdAt?: SortOrder
  18723. updatedAt?: SortOrder
  18724. createdById?: SortOrder
  18725. }
  18726. export type PostMinOrderByAggregateInput = {
  18727. id?: SortOrder
  18728. name?: SortOrder
  18729. createdAt?: SortOrder
  18730. updatedAt?: SortOrder
  18731. createdById?: SortOrder
  18732. }
  18733. export type PostSumOrderByAggregateInput = {
  18734. id?: SortOrder
  18735. }
  18736. export type AccountProviderProviderAccountIdCompoundUniqueInput = {
  18737. provider: string
  18738. providerAccountId: string
  18739. }
  18740. export type AccountCountOrderByAggregateInput = {
  18741. id?: SortOrder
  18742. userId?: SortOrder
  18743. type?: SortOrder
  18744. provider?: SortOrder
  18745. providerAccountId?: SortOrder
  18746. refresh_token?: SortOrder
  18747. access_token?: SortOrder
  18748. expires_at?: SortOrder
  18749. token_type?: SortOrder
  18750. scope?: SortOrder
  18751. id_token?: SortOrder
  18752. session_state?: SortOrder
  18753. refresh_token_expires_in?: SortOrder
  18754. }
  18755. export type AccountAvgOrderByAggregateInput = {
  18756. expires_at?: SortOrder
  18757. refresh_token_expires_in?: SortOrder
  18758. }
  18759. export type AccountMaxOrderByAggregateInput = {
  18760. id?: SortOrder
  18761. userId?: SortOrder
  18762. type?: SortOrder
  18763. provider?: SortOrder
  18764. providerAccountId?: SortOrder
  18765. refresh_token?: SortOrder
  18766. access_token?: SortOrder
  18767. expires_at?: SortOrder
  18768. token_type?: SortOrder
  18769. scope?: SortOrder
  18770. id_token?: SortOrder
  18771. session_state?: SortOrder
  18772. refresh_token_expires_in?: SortOrder
  18773. }
  18774. export type AccountMinOrderByAggregateInput = {
  18775. id?: SortOrder
  18776. userId?: SortOrder
  18777. type?: SortOrder
  18778. provider?: SortOrder
  18779. providerAccountId?: SortOrder
  18780. refresh_token?: SortOrder
  18781. access_token?: SortOrder
  18782. expires_at?: SortOrder
  18783. token_type?: SortOrder
  18784. scope?: SortOrder
  18785. id_token?: SortOrder
  18786. session_state?: SortOrder
  18787. refresh_token_expires_in?: SortOrder
  18788. }
  18789. export type AccountSumOrderByAggregateInput = {
  18790. expires_at?: SortOrder
  18791. refresh_token_expires_in?: SortOrder
  18792. }
  18793. export type SessionCountOrderByAggregateInput = {
  18794. id?: SortOrder
  18795. sessionToken?: SortOrder
  18796. userId?: SortOrder
  18797. expires?: SortOrder
  18798. }
  18799. export type SessionMaxOrderByAggregateInput = {
  18800. id?: SortOrder
  18801. sessionToken?: SortOrder
  18802. userId?: SortOrder
  18803. expires?: SortOrder
  18804. }
  18805. export type SessionMinOrderByAggregateInput = {
  18806. id?: SortOrder
  18807. sessionToken?: SortOrder
  18808. userId?: SortOrder
  18809. expires?: SortOrder
  18810. }
  18811. export type AccountListRelationFilter = {
  18812. every?: AccountWhereInput
  18813. some?: AccountWhereInput
  18814. none?: AccountWhereInput
  18815. }
  18816. export type SessionListRelationFilter = {
  18817. every?: SessionWhereInput
  18818. some?: SessionWhereInput
  18819. none?: SessionWhereInput
  18820. }
  18821. export type PostListRelationFilter = {
  18822. every?: PostWhereInput
  18823. some?: PostWhereInput
  18824. none?: PostWhereInput
  18825. }
  18826. export type WorkspaceNullableScalarRelationFilter = {
  18827. is?: WorkspaceWhereInput | null
  18828. isNot?: WorkspaceWhereInput | null
  18829. }
  18830. export type AccountOrderByRelationAggregateInput = {
  18831. _count?: SortOrder
  18832. }
  18833. export type SessionOrderByRelationAggregateInput = {
  18834. _count?: SortOrder
  18835. }
  18836. export type PostOrderByRelationAggregateInput = {
  18837. _count?: SortOrder
  18838. }
  18839. export type UserCountOrderByAggregateInput = {
  18840. id?: SortOrder
  18841. name?: SortOrder
  18842. email?: SortOrder
  18843. emailVerified?: SortOrder
  18844. password?: SortOrder
  18845. image?: SortOrder
  18846. }
  18847. export type UserMaxOrderByAggregateInput = {
  18848. id?: SortOrder
  18849. name?: SortOrder
  18850. email?: SortOrder
  18851. emailVerified?: SortOrder
  18852. password?: SortOrder
  18853. image?: SortOrder
  18854. }
  18855. export type UserMinOrderByAggregateInput = {
  18856. id?: SortOrder
  18857. name?: SortOrder
  18858. email?: SortOrder
  18859. emailVerified?: SortOrder
  18860. password?: SortOrder
  18861. image?: SortOrder
  18862. }
  18863. export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
  18864. identifier: string
  18865. token: string
  18866. }
  18867. export type VerificationTokenCountOrderByAggregateInput = {
  18868. identifier?: SortOrder
  18869. token?: SortOrder
  18870. expires?: SortOrder
  18871. }
  18872. export type VerificationTokenMaxOrderByAggregateInput = {
  18873. identifier?: SortOrder
  18874. token?: SortOrder
  18875. expires?: SortOrder
  18876. }
  18877. export type VerificationTokenMinOrderByAggregateInput = {
  18878. identifier?: SortOrder
  18879. token?: SortOrder
  18880. expires?: SortOrder
  18881. }
  18882. export type IdeaScalarRelationFilter = {
  18883. is?: IdeaWhereInput
  18884. isNot?: IdeaWhereInput
  18885. }
  18886. export type IdeaAttachmentCountOrderByAggregateInput = {
  18887. id?: SortOrder
  18888. ideaId?: SortOrder
  18889. workspaceId?: SortOrder
  18890. filename?: SortOrder
  18891. contentType?: SortOrder
  18892. size?: SortOrder
  18893. url?: SortOrder
  18894. blobPath?: SortOrder
  18895. createdAt?: SortOrder
  18896. }
  18897. export type IdeaAttachmentAvgOrderByAggregateInput = {
  18898. size?: SortOrder
  18899. }
  18900. export type IdeaAttachmentMaxOrderByAggregateInput = {
  18901. id?: SortOrder
  18902. ideaId?: SortOrder
  18903. workspaceId?: SortOrder
  18904. filename?: SortOrder
  18905. contentType?: SortOrder
  18906. size?: SortOrder
  18907. url?: SortOrder
  18908. blobPath?: SortOrder
  18909. createdAt?: SortOrder
  18910. }
  18911. export type IdeaAttachmentMinOrderByAggregateInput = {
  18912. id?: SortOrder
  18913. ideaId?: SortOrder
  18914. workspaceId?: SortOrder
  18915. filename?: SortOrder
  18916. contentType?: SortOrder
  18917. size?: SortOrder
  18918. url?: SortOrder
  18919. blobPath?: SortOrder
  18920. createdAt?: SortOrder
  18921. }
  18922. export type IdeaAttachmentSumOrderByAggregateInput = {
  18923. size?: SortOrder
  18924. }
  18925. export type QualificationQuestionCountOrderByAggregateInput = {
  18926. id?: SortOrder
  18927. ideaId?: SortOrder
  18928. workspaceId?: SortOrder
  18929. questionText?: SortOrder
  18930. responseToken?: SortOrder
  18931. askedAt?: SortOrder
  18932. responseText?: SortOrder
  18933. answeredAt?: SortOrder
  18934. }
  18935. export type QualificationQuestionMaxOrderByAggregateInput = {
  18936. id?: SortOrder
  18937. ideaId?: SortOrder
  18938. workspaceId?: SortOrder
  18939. questionText?: SortOrder
  18940. responseToken?: SortOrder
  18941. askedAt?: SortOrder
  18942. responseText?: SortOrder
  18943. answeredAt?: SortOrder
  18944. }
  18945. export type QualificationQuestionMinOrderByAggregateInput = {
  18946. id?: SortOrder
  18947. ideaId?: SortOrder
  18948. workspaceId?: SortOrder
  18949. questionText?: SortOrder
  18950. responseToken?: SortOrder
  18951. askedAt?: SortOrder
  18952. responseText?: SortOrder
  18953. answeredAt?: SortOrder
  18954. }
  18955. export type LibraryCaseCountOrderByAggregateInput = {
  18956. id?: SortOrder
  18957. sector?: SortOrder
  18958. department?: SortOrder
  18959. title?: SortOrder
  18960. description?: SortOrder
  18961. createdAt?: SortOrder
  18962. updatedAt?: SortOrder
  18963. }
  18964. export type LibraryCaseMaxOrderByAggregateInput = {
  18965. id?: SortOrder
  18966. sector?: SortOrder
  18967. department?: SortOrder
  18968. title?: SortOrder
  18969. description?: SortOrder
  18970. createdAt?: SortOrder
  18971. updatedAt?: SortOrder
  18972. }
  18973. export type LibraryCaseMinOrderByAggregateInput = {
  18974. id?: SortOrder
  18975. sector?: SortOrder
  18976. department?: SortOrder
  18977. title?: SortOrder
  18978. description?: SortOrder
  18979. createdAt?: SortOrder
  18980. updatedAt?: SortOrder
  18981. }
  18982. export type ShareLinkCountOrderByAggregateInput = {
  18983. id?: SortOrder
  18984. workspaceId?: SortOrder
  18985. token?: SortOrder
  18986. expiresAt?: SortOrder
  18987. createdAt?: SortOrder
  18988. }
  18989. export type ShareLinkMaxOrderByAggregateInput = {
  18990. id?: SortOrder
  18991. workspaceId?: SortOrder
  18992. token?: SortOrder
  18993. expiresAt?: SortOrder
  18994. createdAt?: SortOrder
  18995. }
  18996. export type ShareLinkMinOrderByAggregateInput = {
  18997. id?: SortOrder
  18998. workspaceId?: SortOrder
  18999. token?: SortOrder
  19000. expiresAt?: SortOrder
  19001. createdAt?: SortOrder
  19002. }
  19003. export type ShareLinkCreateNestedOneWithoutWorkspaceInput = {
  19004. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19005. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19006. connect?: ShareLinkWhereUniqueInput
  19007. }
  19008. export type UserCreateNestedOneWithoutWorkspaceInput = {
  19009. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  19010. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  19011. connect?: UserWhereUniqueInput
  19012. }
  19013. export type ContributorCreateNestedManyWithoutWorkspaceInput = {
  19014. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19015. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19016. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19017. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19018. }
  19019. export type IdeaCreateNestedManyWithoutWorkspaceInput = {
  19020. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19021. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19022. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19023. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19024. }
  19025. export type ManualRelanceLogCreateNestedManyWithoutWorkspaceInput = {
  19026. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19027. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19028. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19029. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19030. }
  19031. export type ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput = {
  19032. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19033. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19034. connect?: ShareLinkWhereUniqueInput
  19035. }
  19036. export type ContributorUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19037. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19038. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19039. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19040. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19041. }
  19042. export type IdeaUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19043. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19044. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19045. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19046. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19047. }
  19048. export type ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19049. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19050. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19051. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19052. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19053. }
  19054. export type StringFieldUpdateOperationsInput = {
  19055. set?: string
  19056. }
  19057. export type NullableStringFieldUpdateOperationsInput = {
  19058. set?: string | null
  19059. }
  19060. export type NullableIntFieldUpdateOperationsInput = {
  19061. set?: number | null
  19062. increment?: number
  19063. decrement?: number
  19064. multiply?: number
  19065. divide?: number
  19066. }
  19067. export type EnumWorkspaceTierFieldUpdateOperationsInput = {
  19068. set?: $Enums.WorkspaceTier
  19069. }
  19070. export type IntFieldUpdateOperationsInput = {
  19071. set?: number
  19072. increment?: number
  19073. decrement?: number
  19074. multiply?: number
  19075. divide?: number
  19076. }
  19077. export type DateTimeFieldUpdateOperationsInput = {
  19078. set?: Date | string
  19079. }
  19080. export type BoolFieldUpdateOperationsInput = {
  19081. set?: boolean
  19082. }
  19083. export type NullableDateTimeFieldUpdateOperationsInput = {
  19084. set?: Date | string | null
  19085. }
  19086. export type ShareLinkUpdateOneWithoutWorkspaceNestedInput = {
  19087. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19088. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19089. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  19090. disconnect?: ShareLinkWhereInput | boolean
  19091. delete?: ShareLinkWhereInput | boolean
  19092. connect?: ShareLinkWhereUniqueInput
  19093. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  19094. }
  19095. export type UserUpdateOneRequiredWithoutWorkspaceNestedInput = {
  19096. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  19097. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  19098. upsert?: UserUpsertWithoutWorkspaceInput
  19099. connect?: UserWhereUniqueInput
  19100. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutWorkspaceInput, UserUpdateWithoutWorkspaceInput>, UserUncheckedUpdateWithoutWorkspaceInput>
  19101. }
  19102. export type ContributorUpdateManyWithoutWorkspaceNestedInput = {
  19103. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19104. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19105. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19106. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19107. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19108. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19109. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19110. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19111. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19112. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  19113. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  19114. }
  19115. export type IdeaUpdateManyWithoutWorkspaceNestedInput = {
  19116. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19117. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19118. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19119. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19120. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19121. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19122. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19123. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19124. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19125. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  19126. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19127. }
  19128. export type ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput = {
  19129. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19130. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19131. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19132. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19133. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19134. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19135. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19136. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19137. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19138. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  19139. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  19140. }
  19141. export type ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput = {
  19142. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19143. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19144. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  19145. disconnect?: ShareLinkWhereInput | boolean
  19146. delete?: ShareLinkWhereInput | boolean
  19147. connect?: ShareLinkWhereUniqueInput
  19148. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  19149. }
  19150. export type ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19151. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19152. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19153. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19154. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19155. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19156. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19157. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19158. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19159. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19160. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  19161. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  19162. }
  19163. export type IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19164. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19165. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19166. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19167. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19168. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19169. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19170. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19171. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19172. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19173. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  19174. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19175. }
  19176. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19177. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19178. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19179. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19180. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19181. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19182. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19183. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19184. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19185. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19186. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  19187. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  19188. }
  19189. export type WorkspaceCreateNestedOneWithoutManualRelanceLogsInput = {
  19190. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  19191. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  19192. connect?: WorkspaceWhereUniqueInput
  19193. }
  19194. export type WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput = {
  19195. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  19196. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  19197. upsert?: WorkspaceUpsertWithoutManualRelanceLogsInput
  19198. connect?: WorkspaceWhereUniqueInput
  19199. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput, WorkspaceUpdateWithoutManualRelanceLogsInput>, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  19200. }
  19201. export type WorkspaceCreateNestedOneWithoutContributorsInput = {
  19202. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  19203. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  19204. connect?: WorkspaceWhereUniqueInput
  19205. }
  19206. export type IdeaCreateNestedManyWithoutContributorInput = {
  19207. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19208. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19209. createMany?: IdeaCreateManyContributorInputEnvelope
  19210. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19211. }
  19212. export type IdeaUncheckedCreateNestedManyWithoutContributorInput = {
  19213. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19214. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19215. createMany?: IdeaCreateManyContributorInputEnvelope
  19216. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19217. }
  19218. export type EnumContributorStatusFieldUpdateOperationsInput = {
  19219. set?: $Enums.ContributorStatus
  19220. }
  19221. export type WorkspaceUpdateOneRequiredWithoutContributorsNestedInput = {
  19222. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  19223. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  19224. upsert?: WorkspaceUpsertWithoutContributorsInput
  19225. connect?: WorkspaceWhereUniqueInput
  19226. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutContributorsInput, WorkspaceUpdateWithoutContributorsInput>, WorkspaceUncheckedUpdateWithoutContributorsInput>
  19227. }
  19228. export type IdeaUpdateManyWithoutContributorNestedInput = {
  19229. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19230. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19231. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  19232. createMany?: IdeaCreateManyContributorInputEnvelope
  19233. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19234. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19235. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19236. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19237. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  19238. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  19239. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19240. }
  19241. export type IdeaUncheckedUpdateManyWithoutContributorNestedInput = {
  19242. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19243. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19244. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  19245. createMany?: IdeaCreateManyContributorInputEnvelope
  19246. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19247. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19248. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19249. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19250. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  19251. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  19252. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19253. }
  19254. export type WorkspaceCreateNestedOneWithoutIdeasInput = {
  19255. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  19256. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  19257. connect?: WorkspaceWhereUniqueInput
  19258. }
  19259. export type ContributorCreateNestedOneWithoutIdeasInput = {
  19260. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  19261. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  19262. connect?: ContributorWhereUniqueInput
  19263. }
  19264. export type IdeaAttachmentCreateNestedManyWithoutIdeaInput = {
  19265. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19266. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19267. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19268. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19269. }
  19270. export type QualificationQuestionCreateNestedManyWithoutIdeaInput = {
  19271. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19272. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19273. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19274. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19275. }
  19276. export type IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput = {
  19277. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19278. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19279. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19280. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19281. }
  19282. export type QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput = {
  19283. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19284. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19285. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19286. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19287. }
  19288. export type EnumImpactLevelFieldUpdateOperationsInput = {
  19289. set?: $Enums.ImpactLevel
  19290. }
  19291. export type EnumFrequencyFieldUpdateOperationsInput = {
  19292. set?: $Enums.Frequency
  19293. }
  19294. export type EnumIdeaStatusFieldUpdateOperationsInput = {
  19295. set?: $Enums.IdeaStatus
  19296. }
  19297. export type WorkspaceUpdateOneRequiredWithoutIdeasNestedInput = {
  19298. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  19299. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  19300. upsert?: WorkspaceUpsertWithoutIdeasInput
  19301. connect?: WorkspaceWhereUniqueInput
  19302. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutIdeasInput, WorkspaceUpdateWithoutIdeasInput>, WorkspaceUncheckedUpdateWithoutIdeasInput>
  19303. }
  19304. export type ContributorUpdateOneWithoutIdeasNestedInput = {
  19305. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  19306. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  19307. upsert?: ContributorUpsertWithoutIdeasInput
  19308. disconnect?: ContributorWhereInput | boolean
  19309. delete?: ContributorWhereInput | boolean
  19310. connect?: ContributorWhereUniqueInput
  19311. update?: XOR<XOR<ContributorUpdateToOneWithWhereWithoutIdeasInput, ContributorUpdateWithoutIdeasInput>, ContributorUncheckedUpdateWithoutIdeasInput>
  19312. }
  19313. export type IdeaAttachmentUpdateManyWithoutIdeaNestedInput = {
  19314. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19315. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19316. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  19317. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19318. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19319. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19320. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19321. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19322. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  19323. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  19324. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  19325. }
  19326. export type QualificationQuestionUpdateManyWithoutIdeaNestedInput = {
  19327. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19328. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19329. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  19330. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19331. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19332. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19333. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19334. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19335. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  19336. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  19337. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  19338. }
  19339. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput = {
  19340. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19341. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19342. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  19343. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19344. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19345. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19346. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19347. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19348. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  19349. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  19350. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  19351. }
  19352. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput = {
  19353. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19354. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19355. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  19356. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19357. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19358. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19359. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19360. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19361. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  19362. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  19363. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  19364. }
  19365. export type UserCreateNestedOneWithoutPostsInput = {
  19366. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  19367. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  19368. connect?: UserWhereUniqueInput
  19369. }
  19370. export type UserUpdateOneRequiredWithoutPostsNestedInput = {
  19371. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  19372. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  19373. upsert?: UserUpsertWithoutPostsInput
  19374. connect?: UserWhereUniqueInput
  19375. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutPostsInput, UserUpdateWithoutPostsInput>, UserUncheckedUpdateWithoutPostsInput>
  19376. }
  19377. export type UserCreateNestedOneWithoutAccountsInput = {
  19378. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  19379. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  19380. connect?: UserWhereUniqueInput
  19381. }
  19382. export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
  19383. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  19384. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  19385. upsert?: UserUpsertWithoutAccountsInput
  19386. connect?: UserWhereUniqueInput
  19387. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAccountsInput, UserUpdateWithoutAccountsInput>, UserUncheckedUpdateWithoutAccountsInput>
  19388. }
  19389. export type UserCreateNestedOneWithoutSessionsInput = {
  19390. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  19391. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  19392. connect?: UserWhereUniqueInput
  19393. }
  19394. export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
  19395. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  19396. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  19397. upsert?: UserUpsertWithoutSessionsInput
  19398. connect?: UserWhereUniqueInput
  19399. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
  19400. }
  19401. export type AccountCreateNestedManyWithoutUserInput = {
  19402. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19403. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19404. createMany?: AccountCreateManyUserInputEnvelope
  19405. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19406. }
  19407. export type SessionCreateNestedManyWithoutUserInput = {
  19408. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19409. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19410. createMany?: SessionCreateManyUserInputEnvelope
  19411. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19412. }
  19413. export type PostCreateNestedManyWithoutCreatedByInput = {
  19414. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19415. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19416. createMany?: PostCreateManyCreatedByInputEnvelope
  19417. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19418. }
  19419. export type WorkspaceCreateNestedOneWithoutOwnerInput = {
  19420. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19421. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19422. connect?: WorkspaceWhereUniqueInput
  19423. }
  19424. export type AccountUncheckedCreateNestedManyWithoutUserInput = {
  19425. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19426. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19427. createMany?: AccountCreateManyUserInputEnvelope
  19428. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19429. }
  19430. export type SessionUncheckedCreateNestedManyWithoutUserInput = {
  19431. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19432. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19433. createMany?: SessionCreateManyUserInputEnvelope
  19434. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19435. }
  19436. export type PostUncheckedCreateNestedManyWithoutCreatedByInput = {
  19437. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19438. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19439. createMany?: PostCreateManyCreatedByInputEnvelope
  19440. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19441. }
  19442. export type WorkspaceUncheckedCreateNestedOneWithoutOwnerInput = {
  19443. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19444. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19445. connect?: WorkspaceWhereUniqueInput
  19446. }
  19447. export type AccountUpdateManyWithoutUserNestedInput = {
  19448. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19449. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19450. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  19451. createMany?: AccountCreateManyUserInputEnvelope
  19452. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19453. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19454. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19455. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19456. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  19457. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  19458. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  19459. }
  19460. export type SessionUpdateManyWithoutUserNestedInput = {
  19461. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19462. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19463. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  19464. createMany?: SessionCreateManyUserInputEnvelope
  19465. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19466. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19467. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19468. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19469. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  19470. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  19471. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  19472. }
  19473. export type PostUpdateManyWithoutCreatedByNestedInput = {
  19474. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19475. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19476. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  19477. createMany?: PostCreateManyCreatedByInputEnvelope
  19478. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19479. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19480. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19481. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19482. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  19483. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  19484. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  19485. }
  19486. export type WorkspaceUpdateOneWithoutOwnerNestedInput = {
  19487. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19488. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19489. upsert?: WorkspaceUpsertWithoutOwnerInput
  19490. disconnect?: WorkspaceWhereInput | boolean
  19491. delete?: WorkspaceWhereInput | boolean
  19492. connect?: WorkspaceWhereUniqueInput
  19493. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  19494. }
  19495. export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
  19496. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19497. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19498. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  19499. createMany?: AccountCreateManyUserInputEnvelope
  19500. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19501. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19502. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19503. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19504. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  19505. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  19506. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  19507. }
  19508. export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
  19509. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19510. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19511. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  19512. createMany?: SessionCreateManyUserInputEnvelope
  19513. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19514. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19515. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19516. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19517. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  19518. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  19519. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  19520. }
  19521. export type PostUncheckedUpdateManyWithoutCreatedByNestedInput = {
  19522. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19523. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19524. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  19525. createMany?: PostCreateManyCreatedByInputEnvelope
  19526. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19527. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19528. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19529. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19530. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  19531. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  19532. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  19533. }
  19534. export type WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput = {
  19535. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19536. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19537. upsert?: WorkspaceUpsertWithoutOwnerInput
  19538. disconnect?: WorkspaceWhereInput | boolean
  19539. delete?: WorkspaceWhereInput | boolean
  19540. connect?: WorkspaceWhereUniqueInput
  19541. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  19542. }
  19543. export type IdeaCreateNestedOneWithoutAttachmentsInput = {
  19544. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  19545. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  19546. connect?: IdeaWhereUniqueInput
  19547. }
  19548. export type IdeaUpdateOneRequiredWithoutAttachmentsNestedInput = {
  19549. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  19550. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  19551. upsert?: IdeaUpsertWithoutAttachmentsInput
  19552. connect?: IdeaWhereUniqueInput
  19553. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutAttachmentsInput, IdeaUpdateWithoutAttachmentsInput>, IdeaUncheckedUpdateWithoutAttachmentsInput>
  19554. }
  19555. export type IdeaCreateNestedOneWithoutQualificationQuestionsInput = {
  19556. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  19557. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  19558. connect?: IdeaWhereUniqueInput
  19559. }
  19560. export type IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput = {
  19561. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  19562. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  19563. upsert?: IdeaUpsertWithoutQualificationQuestionsInput
  19564. connect?: IdeaWhereUniqueInput
  19565. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput, IdeaUpdateWithoutQualificationQuestionsInput>, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  19566. }
  19567. export type WorkspaceCreateNestedOneWithoutShareLinkInput = {
  19568. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  19569. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  19570. connect?: WorkspaceWhereUniqueInput
  19571. }
  19572. export type WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput = {
  19573. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  19574. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  19575. upsert?: WorkspaceUpsertWithoutShareLinkInput
  19576. connect?: WorkspaceWhereUniqueInput
  19577. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutShareLinkInput, WorkspaceUpdateWithoutShareLinkInput>, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  19578. }
  19579. export type NestedStringFilter<$PrismaModel = never> = {
  19580. equals?: string | StringFieldRefInput<$PrismaModel>
  19581. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19582. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19583. lt?: string | StringFieldRefInput<$PrismaModel>
  19584. lte?: string | StringFieldRefInput<$PrismaModel>
  19585. gt?: string | StringFieldRefInput<$PrismaModel>
  19586. gte?: string | StringFieldRefInput<$PrismaModel>
  19587. contains?: string | StringFieldRefInput<$PrismaModel>
  19588. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19589. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19590. not?: NestedStringFilter<$PrismaModel> | string
  19591. }
  19592. export type NestedStringNullableFilter<$PrismaModel = never> = {
  19593. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19594. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19595. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19596. lt?: string | StringFieldRefInput<$PrismaModel>
  19597. lte?: string | StringFieldRefInput<$PrismaModel>
  19598. gt?: string | StringFieldRefInput<$PrismaModel>
  19599. gte?: string | StringFieldRefInput<$PrismaModel>
  19600. contains?: string | StringFieldRefInput<$PrismaModel>
  19601. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19602. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19603. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  19604. }
  19605. export type NestedIntNullableFilter<$PrismaModel = never> = {
  19606. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19607. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19608. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19609. lt?: number | IntFieldRefInput<$PrismaModel>
  19610. lte?: number | IntFieldRefInput<$PrismaModel>
  19611. gt?: number | IntFieldRefInput<$PrismaModel>
  19612. gte?: number | IntFieldRefInput<$PrismaModel>
  19613. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  19614. }
  19615. export type NestedEnumWorkspaceTierFilter<$PrismaModel = never> = {
  19616. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19617. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19618. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19619. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  19620. }
  19621. export type NestedIntFilter<$PrismaModel = never> = {
  19622. equals?: number | IntFieldRefInput<$PrismaModel>
  19623. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19624. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19625. lt?: number | IntFieldRefInput<$PrismaModel>
  19626. lte?: number | IntFieldRefInput<$PrismaModel>
  19627. gt?: number | IntFieldRefInput<$PrismaModel>
  19628. gte?: number | IntFieldRefInput<$PrismaModel>
  19629. not?: NestedIntFilter<$PrismaModel> | number
  19630. }
  19631. export type NestedDateTimeFilter<$PrismaModel = never> = {
  19632. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19633. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19634. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19635. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19636. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19637. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19638. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19639. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  19640. }
  19641. export type NestedBoolFilter<$PrismaModel = never> = {
  19642. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19643. not?: NestedBoolFilter<$PrismaModel> | boolean
  19644. }
  19645. export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
  19646. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19647. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19648. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19649. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19650. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19651. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19652. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19653. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  19654. }
  19655. export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
  19656. equals?: string | StringFieldRefInput<$PrismaModel>
  19657. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19658. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19659. lt?: string | StringFieldRefInput<$PrismaModel>
  19660. lte?: string | StringFieldRefInput<$PrismaModel>
  19661. gt?: string | StringFieldRefInput<$PrismaModel>
  19662. gte?: string | StringFieldRefInput<$PrismaModel>
  19663. contains?: string | StringFieldRefInput<$PrismaModel>
  19664. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19665. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19666. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  19667. _count?: NestedIntFilter<$PrismaModel>
  19668. _min?: NestedStringFilter<$PrismaModel>
  19669. _max?: NestedStringFilter<$PrismaModel>
  19670. }
  19671. export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
  19672. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19673. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19674. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19675. lt?: string | StringFieldRefInput<$PrismaModel>
  19676. lte?: string | StringFieldRefInput<$PrismaModel>
  19677. gt?: string | StringFieldRefInput<$PrismaModel>
  19678. gte?: string | StringFieldRefInput<$PrismaModel>
  19679. contains?: string | StringFieldRefInput<$PrismaModel>
  19680. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19681. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19682. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  19683. _count?: NestedIntNullableFilter<$PrismaModel>
  19684. _min?: NestedStringNullableFilter<$PrismaModel>
  19685. _max?: NestedStringNullableFilter<$PrismaModel>
  19686. }
  19687. export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
  19688. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19689. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19690. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19691. lt?: number | IntFieldRefInput<$PrismaModel>
  19692. lte?: number | IntFieldRefInput<$PrismaModel>
  19693. gt?: number | IntFieldRefInput<$PrismaModel>
  19694. gte?: number | IntFieldRefInput<$PrismaModel>
  19695. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  19696. _count?: NestedIntNullableFilter<$PrismaModel>
  19697. _avg?: NestedFloatNullableFilter<$PrismaModel>
  19698. _sum?: NestedIntNullableFilter<$PrismaModel>
  19699. _min?: NestedIntNullableFilter<$PrismaModel>
  19700. _max?: NestedIntNullableFilter<$PrismaModel>
  19701. }
  19702. export type NestedFloatNullableFilter<$PrismaModel = never> = {
  19703. equals?: number | FloatFieldRefInput<$PrismaModel> | null
  19704. in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  19705. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  19706. lt?: number | FloatFieldRefInput<$PrismaModel>
  19707. lte?: number | FloatFieldRefInput<$PrismaModel>
  19708. gt?: number | FloatFieldRefInput<$PrismaModel>
  19709. gte?: number | FloatFieldRefInput<$PrismaModel>
  19710. not?: NestedFloatNullableFilter<$PrismaModel> | number | null
  19711. }
  19712. export type NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  19713. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19714. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19715. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19716. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  19717. _count?: NestedIntFilter<$PrismaModel>
  19718. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19719. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19720. }
  19721. export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
  19722. equals?: number | IntFieldRefInput<$PrismaModel>
  19723. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19724. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19725. lt?: number | IntFieldRefInput<$PrismaModel>
  19726. lte?: number | IntFieldRefInput<$PrismaModel>
  19727. gt?: number | IntFieldRefInput<$PrismaModel>
  19728. gte?: number | IntFieldRefInput<$PrismaModel>
  19729. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  19730. _count?: NestedIntFilter<$PrismaModel>
  19731. _avg?: NestedFloatFilter<$PrismaModel>
  19732. _sum?: NestedIntFilter<$PrismaModel>
  19733. _min?: NestedIntFilter<$PrismaModel>
  19734. _max?: NestedIntFilter<$PrismaModel>
  19735. }
  19736. export type NestedFloatFilter<$PrismaModel = never> = {
  19737. equals?: number | FloatFieldRefInput<$PrismaModel>
  19738. in?: number[] | ListFloatFieldRefInput<$PrismaModel>
  19739. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
  19740. lt?: number | FloatFieldRefInput<$PrismaModel>
  19741. lte?: number | FloatFieldRefInput<$PrismaModel>
  19742. gt?: number | FloatFieldRefInput<$PrismaModel>
  19743. gte?: number | FloatFieldRefInput<$PrismaModel>
  19744. not?: NestedFloatFilter<$PrismaModel> | number
  19745. }
  19746. export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
  19747. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19748. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19749. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19750. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19751. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19752. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19753. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19754. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  19755. _count?: NestedIntFilter<$PrismaModel>
  19756. _min?: NestedDateTimeFilter<$PrismaModel>
  19757. _max?: NestedDateTimeFilter<$PrismaModel>
  19758. }
  19759. export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
  19760. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19761. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  19762. _count?: NestedIntFilter<$PrismaModel>
  19763. _min?: NestedBoolFilter<$PrismaModel>
  19764. _max?: NestedBoolFilter<$PrismaModel>
  19765. }
  19766. export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  19767. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19768. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19769. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19770. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19771. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19772. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19773. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19774. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  19775. _count?: NestedIntNullableFilter<$PrismaModel>
  19776. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  19777. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  19778. }
  19779. export type NestedEnumContributorStatusFilter<$PrismaModel = never> = {
  19780. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  19781. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19782. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19783. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  19784. }
  19785. export type NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  19786. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  19787. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19788. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19789. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  19790. _count?: NestedIntFilter<$PrismaModel>
  19791. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  19792. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  19793. }
  19794. export type NestedEnumImpactLevelFilter<$PrismaModel = never> = {
  19795. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  19796. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19797. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19798. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  19799. }
  19800. export type NestedEnumFrequencyFilter<$PrismaModel = never> = {
  19801. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  19802. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19803. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19804. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  19805. }
  19806. export type NestedEnumIdeaStatusFilter<$PrismaModel = never> = {
  19807. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  19808. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19809. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19810. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  19811. }
  19812. export type NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  19813. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  19814. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19815. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19816. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  19817. _count?: NestedIntFilter<$PrismaModel>
  19818. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  19819. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  19820. }
  19821. export type NestedEnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  19822. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  19823. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19824. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19825. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  19826. _count?: NestedIntFilter<$PrismaModel>
  19827. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  19828. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  19829. }
  19830. export type NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  19831. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  19832. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19833. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19834. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  19835. _count?: NestedIntFilter<$PrismaModel>
  19836. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  19837. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  19838. }
  19839. export type ShareLinkCreateWithoutWorkspaceInput = {
  19840. id?: string
  19841. token?: string
  19842. expiresAt?: Date | string | null
  19843. createdAt?: Date | string
  19844. }
  19845. export type ShareLinkUncheckedCreateWithoutWorkspaceInput = {
  19846. id?: string
  19847. token?: string
  19848. expiresAt?: Date | string | null
  19849. createdAt?: Date | string
  19850. }
  19851. export type ShareLinkCreateOrConnectWithoutWorkspaceInput = {
  19852. where: ShareLinkWhereUniqueInput
  19853. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19854. }
  19855. export type UserCreateWithoutWorkspaceInput = {
  19856. id?: string
  19857. name?: string | null
  19858. email?: string | null
  19859. emailVerified?: Date | string | null
  19860. password?: string | null
  19861. image?: string | null
  19862. accounts?: AccountCreateNestedManyWithoutUserInput
  19863. sessions?: SessionCreateNestedManyWithoutUserInput
  19864. posts?: PostCreateNestedManyWithoutCreatedByInput
  19865. }
  19866. export type UserUncheckedCreateWithoutWorkspaceInput = {
  19867. id?: string
  19868. name?: string | null
  19869. email?: string | null
  19870. emailVerified?: Date | string | null
  19871. password?: string | null
  19872. image?: string | null
  19873. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  19874. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  19875. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  19876. }
  19877. export type UserCreateOrConnectWithoutWorkspaceInput = {
  19878. where: UserWhereUniqueInput
  19879. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  19880. }
  19881. export type ContributorCreateWithoutWorkspaceInput = {
  19882. id?: string
  19883. email: string
  19884. status?: $Enums.ContributorStatus
  19885. invitedAt?: Date | string
  19886. lastRemindedAt?: Date | string | null
  19887. createdAt?: Date | string
  19888. ideas?: IdeaCreateNestedManyWithoutContributorInput
  19889. }
  19890. export type ContributorUncheckedCreateWithoutWorkspaceInput = {
  19891. id?: string
  19892. email: string
  19893. status?: $Enums.ContributorStatus
  19894. invitedAt?: Date | string
  19895. lastRemindedAt?: Date | string | null
  19896. createdAt?: Date | string
  19897. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  19898. }
  19899. export type ContributorCreateOrConnectWithoutWorkspaceInput = {
  19900. where: ContributorWhereUniqueInput
  19901. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  19902. }
  19903. export type ContributorCreateManyWorkspaceInputEnvelope = {
  19904. data: ContributorCreateManyWorkspaceInput | ContributorCreateManyWorkspaceInput[]
  19905. skipDuplicates?: boolean
  19906. }
  19907. export type IdeaCreateWithoutWorkspaceInput = {
  19908. id?: string
  19909. contributorEmail: string
  19910. department: string
  19911. problemDescription: string
  19912. estimatedImpact: $Enums.ImpactLevel
  19913. frequency: $Enums.Frequency
  19914. status?: $Enums.IdeaStatus
  19915. llmTitle?: string | null
  19916. llmDomain?: string | null
  19917. llmAiType?: string | null
  19918. llmExplanation?: string | null
  19919. llmScoreImpact?: number | null
  19920. llmScoreFeasibility?: number | null
  19921. llmScoreUrgency?: number | null
  19922. llmEnrichedAt?: Date | string | null
  19923. llmEnrichFailed?: boolean
  19924. manualScoreImpact?: number | null
  19925. manualScoreFeasibility?: number | null
  19926. manualScoreUrgency?: number | null
  19927. priorityOrder?: number | null
  19928. emailMessageId?: string | null
  19929. createdAt?: Date | string
  19930. updatedAt?: Date | string
  19931. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  19932. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  19933. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  19934. }
  19935. export type IdeaUncheckedCreateWithoutWorkspaceInput = {
  19936. id?: string
  19937. contributorEmail: string
  19938. contributorId?: string | null
  19939. department: string
  19940. problemDescription: string
  19941. estimatedImpact: $Enums.ImpactLevel
  19942. frequency: $Enums.Frequency
  19943. status?: $Enums.IdeaStatus
  19944. llmTitle?: string | null
  19945. llmDomain?: string | null
  19946. llmAiType?: string | null
  19947. llmExplanation?: string | null
  19948. llmScoreImpact?: number | null
  19949. llmScoreFeasibility?: number | null
  19950. llmScoreUrgency?: number | null
  19951. llmEnrichedAt?: Date | string | null
  19952. llmEnrichFailed?: boolean
  19953. manualScoreImpact?: number | null
  19954. manualScoreFeasibility?: number | null
  19955. manualScoreUrgency?: number | null
  19956. priorityOrder?: number | null
  19957. emailMessageId?: string | null
  19958. createdAt?: Date | string
  19959. updatedAt?: Date | string
  19960. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  19961. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  19962. }
  19963. export type IdeaCreateOrConnectWithoutWorkspaceInput = {
  19964. where: IdeaWhereUniqueInput
  19965. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  19966. }
  19967. export type IdeaCreateManyWorkspaceInputEnvelope = {
  19968. data: IdeaCreateManyWorkspaceInput | IdeaCreateManyWorkspaceInput[]
  19969. skipDuplicates?: boolean
  19970. }
  19971. export type ManualRelanceLogCreateWithoutWorkspaceInput = {
  19972. id?: string
  19973. subject: string
  19974. recipientCount: number
  19975. sentCount: number
  19976. failedCount?: number
  19977. sentAt?: Date | string
  19978. }
  19979. export type ManualRelanceLogUncheckedCreateWithoutWorkspaceInput = {
  19980. id?: string
  19981. subject: string
  19982. recipientCount: number
  19983. sentCount: number
  19984. failedCount?: number
  19985. sentAt?: Date | string
  19986. }
  19987. export type ManualRelanceLogCreateOrConnectWithoutWorkspaceInput = {
  19988. where: ManualRelanceLogWhereUniqueInput
  19989. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  19990. }
  19991. export type ManualRelanceLogCreateManyWorkspaceInputEnvelope = {
  19992. data: ManualRelanceLogCreateManyWorkspaceInput | ManualRelanceLogCreateManyWorkspaceInput[]
  19993. skipDuplicates?: boolean
  19994. }
  19995. export type ShareLinkUpsertWithoutWorkspaceInput = {
  19996. update: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  19997. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19998. where?: ShareLinkWhereInput
  19999. }
  20000. export type ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput = {
  20001. where?: ShareLinkWhereInput
  20002. data: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  20003. }
  20004. export type ShareLinkUpdateWithoutWorkspaceInput = {
  20005. id?: StringFieldUpdateOperationsInput | string
  20006. token?: StringFieldUpdateOperationsInput | string
  20007. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20008. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20009. }
  20010. export type ShareLinkUncheckedUpdateWithoutWorkspaceInput = {
  20011. id?: StringFieldUpdateOperationsInput | string
  20012. token?: StringFieldUpdateOperationsInput | string
  20013. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20014. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20015. }
  20016. export type UserUpsertWithoutWorkspaceInput = {
  20017. update: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  20018. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  20019. where?: UserWhereInput
  20020. }
  20021. export type UserUpdateToOneWithWhereWithoutWorkspaceInput = {
  20022. where?: UserWhereInput
  20023. data: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  20024. }
  20025. export type UserUpdateWithoutWorkspaceInput = {
  20026. id?: StringFieldUpdateOperationsInput | string
  20027. name?: NullableStringFieldUpdateOperationsInput | string | null
  20028. email?: NullableStringFieldUpdateOperationsInput | string | null
  20029. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20030. password?: NullableStringFieldUpdateOperationsInput | string | null
  20031. image?: NullableStringFieldUpdateOperationsInput | string | null
  20032. accounts?: AccountUpdateManyWithoutUserNestedInput
  20033. sessions?: SessionUpdateManyWithoutUserNestedInput
  20034. posts?: PostUpdateManyWithoutCreatedByNestedInput
  20035. }
  20036. export type UserUncheckedUpdateWithoutWorkspaceInput = {
  20037. id?: StringFieldUpdateOperationsInput | string
  20038. name?: NullableStringFieldUpdateOperationsInput | string | null
  20039. email?: NullableStringFieldUpdateOperationsInput | string | null
  20040. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20041. password?: NullableStringFieldUpdateOperationsInput | string | null
  20042. image?: NullableStringFieldUpdateOperationsInput | string | null
  20043. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  20044. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20045. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  20046. }
  20047. export type ContributorUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20048. where: ContributorWhereUniqueInput
  20049. update: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  20050. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  20051. }
  20052. export type ContributorUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20053. where: ContributorWhereUniqueInput
  20054. data: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  20055. }
  20056. export type ContributorUpdateManyWithWhereWithoutWorkspaceInput = {
  20057. where: ContributorScalarWhereInput
  20058. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyWithoutWorkspaceInput>
  20059. }
  20060. export type ContributorScalarWhereInput = {
  20061. AND?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20062. OR?: ContributorScalarWhereInput[]
  20063. NOT?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20064. id?: StringFilter<"Contributor"> | string
  20065. workspaceId?: StringFilter<"Contributor"> | string
  20066. email?: StringFilter<"Contributor"> | string
  20067. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  20068. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  20069. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  20070. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  20071. }
  20072. export type IdeaUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20073. where: IdeaWhereUniqueInput
  20074. update: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  20075. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  20076. }
  20077. export type IdeaUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20078. where: IdeaWhereUniqueInput
  20079. data: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  20080. }
  20081. export type IdeaUpdateManyWithWhereWithoutWorkspaceInput = {
  20082. where: IdeaScalarWhereInput
  20083. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutWorkspaceInput>
  20084. }
  20085. export type IdeaScalarWhereInput = {
  20086. AND?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20087. OR?: IdeaScalarWhereInput[]
  20088. NOT?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20089. id?: StringFilter<"Idea"> | string
  20090. workspaceId?: StringFilter<"Idea"> | string
  20091. contributorEmail?: StringFilter<"Idea"> | string
  20092. contributorId?: StringNullableFilter<"Idea"> | string | null
  20093. department?: StringFilter<"Idea"> | string
  20094. problemDescription?: StringFilter<"Idea"> | string
  20095. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  20096. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  20097. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  20098. llmTitle?: StringNullableFilter<"Idea"> | string | null
  20099. llmDomain?: StringNullableFilter<"Idea"> | string | null
  20100. llmAiType?: StringNullableFilter<"Idea"> | string | null
  20101. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  20102. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  20103. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  20104. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  20105. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  20106. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  20107. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  20108. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  20109. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  20110. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  20111. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  20112. createdAt?: DateTimeFilter<"Idea"> | Date | string
  20113. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  20114. }
  20115. export type ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20116. where: ManualRelanceLogWhereUniqueInput
  20117. update: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  20118. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  20119. }
  20120. export type ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20121. where: ManualRelanceLogWhereUniqueInput
  20122. data: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  20123. }
  20124. export type ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput = {
  20125. where: ManualRelanceLogScalarWhereInput
  20126. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput>
  20127. }
  20128. export type ManualRelanceLogScalarWhereInput = {
  20129. AND?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20130. OR?: ManualRelanceLogScalarWhereInput[]
  20131. NOT?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20132. id?: StringFilter<"ManualRelanceLog"> | string
  20133. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  20134. subject?: StringFilter<"ManualRelanceLog"> | string
  20135. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  20136. sentCount?: IntFilter<"ManualRelanceLog"> | number
  20137. failedCount?: IntFilter<"ManualRelanceLog"> | number
  20138. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  20139. }
  20140. export type WorkspaceCreateWithoutManualRelanceLogsInput = {
  20141. id?: string
  20142. name: string
  20143. slug: string
  20144. sector?: string | null
  20145. companySize?: number | null
  20146. contactEmail?: string | null
  20147. tier?: $Enums.WorkspaceTier
  20148. llmCallsThisMonth?: number
  20149. llmCallsResetAt?: Date | string
  20150. autoRelanceEnabled?: boolean
  20151. exportsThisMonth?: number
  20152. exportsResetAt?: Date | string
  20153. lastVisitedAt?: Date | string | null
  20154. createdAt?: Date | string
  20155. updatedAt?: Date | string
  20156. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20157. owner: UserCreateNestedOneWithoutWorkspaceInput
  20158. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  20159. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  20160. }
  20161. export type WorkspaceUncheckedCreateWithoutManualRelanceLogsInput = {
  20162. id?: string
  20163. name: string
  20164. slug: string
  20165. sector?: string | null
  20166. companySize?: number | null
  20167. contactEmail?: string | null
  20168. tier?: $Enums.WorkspaceTier
  20169. llmCallsThisMonth?: number
  20170. llmCallsResetAt?: Date | string
  20171. autoRelanceEnabled?: boolean
  20172. exportsThisMonth?: number
  20173. exportsResetAt?: Date | string
  20174. lastVisitedAt?: Date | string | null
  20175. createdAt?: Date | string
  20176. updatedAt?: Date | string
  20177. ownerId: string
  20178. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20179. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  20180. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  20181. }
  20182. export type WorkspaceCreateOrConnectWithoutManualRelanceLogsInput = {
  20183. where: WorkspaceWhereUniqueInput
  20184. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20185. }
  20186. export type WorkspaceUpsertWithoutManualRelanceLogsInput = {
  20187. update: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  20188. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20189. where?: WorkspaceWhereInput
  20190. }
  20191. export type WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput = {
  20192. where?: WorkspaceWhereInput
  20193. data: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  20194. }
  20195. export type WorkspaceUpdateWithoutManualRelanceLogsInput = {
  20196. id?: StringFieldUpdateOperationsInput | string
  20197. name?: StringFieldUpdateOperationsInput | string
  20198. slug?: StringFieldUpdateOperationsInput | string
  20199. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20200. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20201. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20202. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20203. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20204. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20205. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20206. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20207. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20208. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20209. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20210. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20211. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20212. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20213. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  20214. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  20215. }
  20216. export type WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput = {
  20217. id?: StringFieldUpdateOperationsInput | string
  20218. name?: StringFieldUpdateOperationsInput | string
  20219. slug?: StringFieldUpdateOperationsInput | string
  20220. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20221. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20222. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20223. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20224. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20225. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20226. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20227. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20228. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20229. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20230. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20231. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20232. ownerId?: StringFieldUpdateOperationsInput | string
  20233. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20234. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  20235. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  20236. }
  20237. export type WorkspaceCreateWithoutContributorsInput = {
  20238. id?: string
  20239. name: string
  20240. slug: string
  20241. sector?: string | null
  20242. companySize?: number | null
  20243. contactEmail?: string | null
  20244. tier?: $Enums.WorkspaceTier
  20245. llmCallsThisMonth?: number
  20246. llmCallsResetAt?: Date | string
  20247. autoRelanceEnabled?: boolean
  20248. exportsThisMonth?: number
  20249. exportsResetAt?: Date | string
  20250. lastVisitedAt?: Date | string | null
  20251. createdAt?: Date | string
  20252. updatedAt?: Date | string
  20253. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20254. owner: UserCreateNestedOneWithoutWorkspaceInput
  20255. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  20256. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  20257. }
  20258. export type WorkspaceUncheckedCreateWithoutContributorsInput = {
  20259. id?: string
  20260. name: string
  20261. slug: string
  20262. sector?: string | null
  20263. companySize?: number | null
  20264. contactEmail?: string | null
  20265. tier?: $Enums.WorkspaceTier
  20266. llmCallsThisMonth?: number
  20267. llmCallsResetAt?: Date | string
  20268. autoRelanceEnabled?: boolean
  20269. exportsThisMonth?: number
  20270. exportsResetAt?: Date | string
  20271. lastVisitedAt?: Date | string | null
  20272. createdAt?: Date | string
  20273. updatedAt?: Date | string
  20274. ownerId: string
  20275. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20276. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  20277. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  20278. }
  20279. export type WorkspaceCreateOrConnectWithoutContributorsInput = {
  20280. where: WorkspaceWhereUniqueInput
  20281. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20282. }
  20283. export type IdeaCreateWithoutContributorInput = {
  20284. id?: string
  20285. contributorEmail: string
  20286. department: string
  20287. problemDescription: string
  20288. estimatedImpact: $Enums.ImpactLevel
  20289. frequency: $Enums.Frequency
  20290. status?: $Enums.IdeaStatus
  20291. llmTitle?: string | null
  20292. llmDomain?: string | null
  20293. llmAiType?: string | null
  20294. llmExplanation?: string | null
  20295. llmScoreImpact?: number | null
  20296. llmScoreFeasibility?: number | null
  20297. llmScoreUrgency?: number | null
  20298. llmEnrichedAt?: Date | string | null
  20299. llmEnrichFailed?: boolean
  20300. manualScoreImpact?: number | null
  20301. manualScoreFeasibility?: number | null
  20302. manualScoreUrgency?: number | null
  20303. priorityOrder?: number | null
  20304. emailMessageId?: string | null
  20305. createdAt?: Date | string
  20306. updatedAt?: Date | string
  20307. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  20308. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  20309. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  20310. }
  20311. export type IdeaUncheckedCreateWithoutContributorInput = {
  20312. id?: string
  20313. workspaceId: string
  20314. contributorEmail: string
  20315. department: string
  20316. problemDescription: string
  20317. estimatedImpact: $Enums.ImpactLevel
  20318. frequency: $Enums.Frequency
  20319. status?: $Enums.IdeaStatus
  20320. llmTitle?: string | null
  20321. llmDomain?: string | null
  20322. llmAiType?: string | null
  20323. llmExplanation?: string | null
  20324. llmScoreImpact?: number | null
  20325. llmScoreFeasibility?: number | null
  20326. llmScoreUrgency?: number | null
  20327. llmEnrichedAt?: Date | string | null
  20328. llmEnrichFailed?: boolean
  20329. manualScoreImpact?: number | null
  20330. manualScoreFeasibility?: number | null
  20331. manualScoreUrgency?: number | null
  20332. priorityOrder?: number | null
  20333. emailMessageId?: string | null
  20334. createdAt?: Date | string
  20335. updatedAt?: Date | string
  20336. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  20337. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  20338. }
  20339. export type IdeaCreateOrConnectWithoutContributorInput = {
  20340. where: IdeaWhereUniqueInput
  20341. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  20342. }
  20343. export type IdeaCreateManyContributorInputEnvelope = {
  20344. data: IdeaCreateManyContributorInput | IdeaCreateManyContributorInput[]
  20345. skipDuplicates?: boolean
  20346. }
  20347. export type WorkspaceUpsertWithoutContributorsInput = {
  20348. update: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  20349. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20350. where?: WorkspaceWhereInput
  20351. }
  20352. export type WorkspaceUpdateToOneWithWhereWithoutContributorsInput = {
  20353. where?: WorkspaceWhereInput
  20354. data: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  20355. }
  20356. export type WorkspaceUpdateWithoutContributorsInput = {
  20357. id?: StringFieldUpdateOperationsInput | string
  20358. name?: StringFieldUpdateOperationsInput | string
  20359. slug?: StringFieldUpdateOperationsInput | string
  20360. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20361. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20362. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20363. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20364. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20365. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20366. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20367. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20368. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20369. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20370. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20371. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20372. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20373. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20374. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  20375. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  20376. }
  20377. export type WorkspaceUncheckedUpdateWithoutContributorsInput = {
  20378. id?: StringFieldUpdateOperationsInput | string
  20379. name?: StringFieldUpdateOperationsInput | string
  20380. slug?: StringFieldUpdateOperationsInput | string
  20381. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20382. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20383. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20384. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20385. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20386. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20387. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20388. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20389. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20390. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20391. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20392. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20393. ownerId?: StringFieldUpdateOperationsInput | string
  20394. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20395. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  20396. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  20397. }
  20398. export type IdeaUpsertWithWhereUniqueWithoutContributorInput = {
  20399. where: IdeaWhereUniqueInput
  20400. update: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  20401. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  20402. }
  20403. export type IdeaUpdateWithWhereUniqueWithoutContributorInput = {
  20404. where: IdeaWhereUniqueInput
  20405. data: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  20406. }
  20407. export type IdeaUpdateManyWithWhereWithoutContributorInput = {
  20408. where: IdeaScalarWhereInput
  20409. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutContributorInput>
  20410. }
  20411. export type WorkspaceCreateWithoutIdeasInput = {
  20412. id?: string
  20413. name: string
  20414. slug: string
  20415. sector?: string | null
  20416. companySize?: number | null
  20417. contactEmail?: string | null
  20418. tier?: $Enums.WorkspaceTier
  20419. llmCallsThisMonth?: number
  20420. llmCallsResetAt?: Date | string
  20421. autoRelanceEnabled?: boolean
  20422. exportsThisMonth?: number
  20423. exportsResetAt?: Date | string
  20424. lastVisitedAt?: Date | string | null
  20425. createdAt?: Date | string
  20426. updatedAt?: Date | string
  20427. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20428. owner: UserCreateNestedOneWithoutWorkspaceInput
  20429. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  20430. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  20431. }
  20432. export type WorkspaceUncheckedCreateWithoutIdeasInput = {
  20433. id?: string
  20434. name: string
  20435. slug: string
  20436. sector?: string | null
  20437. companySize?: number | null
  20438. contactEmail?: string | null
  20439. tier?: $Enums.WorkspaceTier
  20440. llmCallsThisMonth?: number
  20441. llmCallsResetAt?: Date | string
  20442. autoRelanceEnabled?: boolean
  20443. exportsThisMonth?: number
  20444. exportsResetAt?: Date | string
  20445. lastVisitedAt?: Date | string | null
  20446. createdAt?: Date | string
  20447. updatedAt?: Date | string
  20448. ownerId: string
  20449. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20450. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  20451. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  20452. }
  20453. export type WorkspaceCreateOrConnectWithoutIdeasInput = {
  20454. where: WorkspaceWhereUniqueInput
  20455. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20456. }
  20457. export type ContributorCreateWithoutIdeasInput = {
  20458. id?: string
  20459. email: string
  20460. status?: $Enums.ContributorStatus
  20461. invitedAt?: Date | string
  20462. lastRemindedAt?: Date | string | null
  20463. createdAt?: Date | string
  20464. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  20465. }
  20466. export type ContributorUncheckedCreateWithoutIdeasInput = {
  20467. id?: string
  20468. workspaceId: string
  20469. email: string
  20470. status?: $Enums.ContributorStatus
  20471. invitedAt?: Date | string
  20472. lastRemindedAt?: Date | string | null
  20473. createdAt?: Date | string
  20474. }
  20475. export type ContributorCreateOrConnectWithoutIdeasInput = {
  20476. where: ContributorWhereUniqueInput
  20477. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20478. }
  20479. export type IdeaAttachmentCreateWithoutIdeaInput = {
  20480. id?: string
  20481. workspaceId: string
  20482. filename: string
  20483. contentType: string
  20484. size: number
  20485. url: string
  20486. blobPath: string
  20487. createdAt?: Date | string
  20488. }
  20489. export type IdeaAttachmentUncheckedCreateWithoutIdeaInput = {
  20490. id?: string
  20491. workspaceId: string
  20492. filename: string
  20493. contentType: string
  20494. size: number
  20495. url: string
  20496. blobPath: string
  20497. createdAt?: Date | string
  20498. }
  20499. export type IdeaAttachmentCreateOrConnectWithoutIdeaInput = {
  20500. where: IdeaAttachmentWhereUniqueInput
  20501. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  20502. }
  20503. export type IdeaAttachmentCreateManyIdeaInputEnvelope = {
  20504. data: IdeaAttachmentCreateManyIdeaInput | IdeaAttachmentCreateManyIdeaInput[]
  20505. skipDuplicates?: boolean
  20506. }
  20507. export type QualificationQuestionCreateWithoutIdeaInput = {
  20508. id?: string
  20509. workspaceId: string
  20510. questionText: string
  20511. responseToken?: string
  20512. askedAt?: Date | string
  20513. responseText?: string | null
  20514. answeredAt?: Date | string | null
  20515. }
  20516. export type QualificationQuestionUncheckedCreateWithoutIdeaInput = {
  20517. id?: string
  20518. workspaceId: string
  20519. questionText: string
  20520. responseToken?: string
  20521. askedAt?: Date | string
  20522. responseText?: string | null
  20523. answeredAt?: Date | string | null
  20524. }
  20525. export type QualificationQuestionCreateOrConnectWithoutIdeaInput = {
  20526. where: QualificationQuestionWhereUniqueInput
  20527. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  20528. }
  20529. export type QualificationQuestionCreateManyIdeaInputEnvelope = {
  20530. data: QualificationQuestionCreateManyIdeaInput | QualificationQuestionCreateManyIdeaInput[]
  20531. skipDuplicates?: boolean
  20532. }
  20533. export type WorkspaceUpsertWithoutIdeasInput = {
  20534. update: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  20535. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20536. where?: WorkspaceWhereInput
  20537. }
  20538. export type WorkspaceUpdateToOneWithWhereWithoutIdeasInput = {
  20539. where?: WorkspaceWhereInput
  20540. data: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  20541. }
  20542. export type WorkspaceUpdateWithoutIdeasInput = {
  20543. id?: StringFieldUpdateOperationsInput | string
  20544. name?: StringFieldUpdateOperationsInput | string
  20545. slug?: StringFieldUpdateOperationsInput | string
  20546. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20547. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20548. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20549. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20550. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20551. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20552. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20553. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20554. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20555. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20556. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20557. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20558. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20559. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20560. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  20561. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  20562. }
  20563. export type WorkspaceUncheckedUpdateWithoutIdeasInput = {
  20564. id?: StringFieldUpdateOperationsInput | string
  20565. name?: StringFieldUpdateOperationsInput | string
  20566. slug?: StringFieldUpdateOperationsInput | string
  20567. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20568. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20569. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20570. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20571. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20572. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20573. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20574. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20575. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20576. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20577. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20578. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20579. ownerId?: StringFieldUpdateOperationsInput | string
  20580. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20581. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  20582. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  20583. }
  20584. export type ContributorUpsertWithoutIdeasInput = {
  20585. update: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  20586. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20587. where?: ContributorWhereInput
  20588. }
  20589. export type ContributorUpdateToOneWithWhereWithoutIdeasInput = {
  20590. where?: ContributorWhereInput
  20591. data: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  20592. }
  20593. export type ContributorUpdateWithoutIdeasInput = {
  20594. id?: StringFieldUpdateOperationsInput | string
  20595. email?: StringFieldUpdateOperationsInput | string
  20596. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  20597. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20598. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20599. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20600. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  20601. }
  20602. export type ContributorUncheckedUpdateWithoutIdeasInput = {
  20603. id?: StringFieldUpdateOperationsInput | string
  20604. workspaceId?: StringFieldUpdateOperationsInput | string
  20605. email?: StringFieldUpdateOperationsInput | string
  20606. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  20607. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20608. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20609. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20610. }
  20611. export type IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput = {
  20612. where: IdeaAttachmentWhereUniqueInput
  20613. update: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  20614. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  20615. }
  20616. export type IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput = {
  20617. where: IdeaAttachmentWhereUniqueInput
  20618. data: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  20619. }
  20620. export type IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput = {
  20621. where: IdeaAttachmentScalarWhereInput
  20622. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput>
  20623. }
  20624. export type IdeaAttachmentScalarWhereInput = {
  20625. AND?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20626. OR?: IdeaAttachmentScalarWhereInput[]
  20627. NOT?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20628. id?: StringFilter<"IdeaAttachment"> | string
  20629. ideaId?: StringFilter<"IdeaAttachment"> | string
  20630. workspaceId?: StringFilter<"IdeaAttachment"> | string
  20631. filename?: StringFilter<"IdeaAttachment"> | string
  20632. contentType?: StringFilter<"IdeaAttachment"> | string
  20633. size?: IntFilter<"IdeaAttachment"> | number
  20634. url?: StringFilter<"IdeaAttachment"> | string
  20635. blobPath?: StringFilter<"IdeaAttachment"> | string
  20636. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  20637. }
  20638. export type QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput = {
  20639. where: QualificationQuestionWhereUniqueInput
  20640. update: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  20641. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  20642. }
  20643. export type QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput = {
  20644. where: QualificationQuestionWhereUniqueInput
  20645. data: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  20646. }
  20647. export type QualificationQuestionUpdateManyWithWhereWithoutIdeaInput = {
  20648. where: QualificationQuestionScalarWhereInput
  20649. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyWithoutIdeaInput>
  20650. }
  20651. export type QualificationQuestionScalarWhereInput = {
  20652. AND?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20653. OR?: QualificationQuestionScalarWhereInput[]
  20654. NOT?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20655. id?: StringFilter<"QualificationQuestion"> | string
  20656. ideaId?: StringFilter<"QualificationQuestion"> | string
  20657. workspaceId?: StringFilter<"QualificationQuestion"> | string
  20658. questionText?: StringFilter<"QualificationQuestion"> | string
  20659. responseToken?: StringFilter<"QualificationQuestion"> | string
  20660. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  20661. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  20662. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  20663. }
  20664. export type UserCreateWithoutPostsInput = {
  20665. id?: string
  20666. name?: string | null
  20667. email?: string | null
  20668. emailVerified?: Date | string | null
  20669. password?: string | null
  20670. image?: string | null
  20671. accounts?: AccountCreateNestedManyWithoutUserInput
  20672. sessions?: SessionCreateNestedManyWithoutUserInput
  20673. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20674. }
  20675. export type UserUncheckedCreateWithoutPostsInput = {
  20676. id?: string
  20677. name?: string | null
  20678. email?: string | null
  20679. emailVerified?: Date | string | null
  20680. password?: string | null
  20681. image?: string | null
  20682. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  20683. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20684. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20685. }
  20686. export type UserCreateOrConnectWithoutPostsInput = {
  20687. where: UserWhereUniqueInput
  20688. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20689. }
  20690. export type UserUpsertWithoutPostsInput = {
  20691. update: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  20692. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20693. where?: UserWhereInput
  20694. }
  20695. export type UserUpdateToOneWithWhereWithoutPostsInput = {
  20696. where?: UserWhereInput
  20697. data: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  20698. }
  20699. export type UserUpdateWithoutPostsInput = {
  20700. id?: StringFieldUpdateOperationsInput | string
  20701. name?: NullableStringFieldUpdateOperationsInput | string | null
  20702. email?: NullableStringFieldUpdateOperationsInput | string | null
  20703. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20704. password?: NullableStringFieldUpdateOperationsInput | string | null
  20705. image?: NullableStringFieldUpdateOperationsInput | string | null
  20706. accounts?: AccountUpdateManyWithoutUserNestedInput
  20707. sessions?: SessionUpdateManyWithoutUserNestedInput
  20708. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  20709. }
  20710. export type UserUncheckedUpdateWithoutPostsInput = {
  20711. id?: StringFieldUpdateOperationsInput | string
  20712. name?: NullableStringFieldUpdateOperationsInput | string | null
  20713. email?: NullableStringFieldUpdateOperationsInput | string | null
  20714. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20715. password?: NullableStringFieldUpdateOperationsInput | string | null
  20716. image?: NullableStringFieldUpdateOperationsInput | string | null
  20717. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  20718. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20719. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  20720. }
  20721. export type UserCreateWithoutAccountsInput = {
  20722. id?: string
  20723. name?: string | null
  20724. email?: string | null
  20725. emailVerified?: Date | string | null
  20726. password?: string | null
  20727. image?: string | null
  20728. sessions?: SessionCreateNestedManyWithoutUserInput
  20729. posts?: PostCreateNestedManyWithoutCreatedByInput
  20730. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20731. }
  20732. export type UserUncheckedCreateWithoutAccountsInput = {
  20733. id?: string
  20734. name?: string | null
  20735. email?: string | null
  20736. emailVerified?: Date | string | null
  20737. password?: string | null
  20738. image?: string | null
  20739. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20740. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  20741. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20742. }
  20743. export type UserCreateOrConnectWithoutAccountsInput = {
  20744. where: UserWhereUniqueInput
  20745. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  20746. }
  20747. export type UserUpsertWithoutAccountsInput = {
  20748. update: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  20749. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  20750. where?: UserWhereInput
  20751. }
  20752. export type UserUpdateToOneWithWhereWithoutAccountsInput = {
  20753. where?: UserWhereInput
  20754. data: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  20755. }
  20756. export type UserUpdateWithoutAccountsInput = {
  20757. id?: StringFieldUpdateOperationsInput | string
  20758. name?: NullableStringFieldUpdateOperationsInput | string | null
  20759. email?: NullableStringFieldUpdateOperationsInput | string | null
  20760. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20761. password?: NullableStringFieldUpdateOperationsInput | string | null
  20762. image?: NullableStringFieldUpdateOperationsInput | string | null
  20763. sessions?: SessionUpdateManyWithoutUserNestedInput
  20764. posts?: PostUpdateManyWithoutCreatedByNestedInput
  20765. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  20766. }
  20767. export type UserUncheckedUpdateWithoutAccountsInput = {
  20768. id?: StringFieldUpdateOperationsInput | string
  20769. name?: NullableStringFieldUpdateOperationsInput | string | null
  20770. email?: NullableStringFieldUpdateOperationsInput | string | null
  20771. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20772. password?: NullableStringFieldUpdateOperationsInput | string | null
  20773. image?: NullableStringFieldUpdateOperationsInput | string | null
  20774. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20775. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  20776. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  20777. }
  20778. export type UserCreateWithoutSessionsInput = {
  20779. id?: string
  20780. name?: string | null
  20781. email?: string | null
  20782. emailVerified?: Date | string | null
  20783. password?: string | null
  20784. image?: string | null
  20785. accounts?: AccountCreateNestedManyWithoutUserInput
  20786. posts?: PostCreateNestedManyWithoutCreatedByInput
  20787. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20788. }
  20789. export type UserUncheckedCreateWithoutSessionsInput = {
  20790. id?: string
  20791. name?: string | null
  20792. email?: string | null
  20793. emailVerified?: Date | string | null
  20794. password?: string | null
  20795. image?: string | null
  20796. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  20797. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  20798. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20799. }
  20800. export type UserCreateOrConnectWithoutSessionsInput = {
  20801. where: UserWhereUniqueInput
  20802. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  20803. }
  20804. export type UserUpsertWithoutSessionsInput = {
  20805. update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  20806. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  20807. where?: UserWhereInput
  20808. }
  20809. export type UserUpdateToOneWithWhereWithoutSessionsInput = {
  20810. where?: UserWhereInput
  20811. data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  20812. }
  20813. export type UserUpdateWithoutSessionsInput = {
  20814. id?: StringFieldUpdateOperationsInput | string
  20815. name?: NullableStringFieldUpdateOperationsInput | string | null
  20816. email?: NullableStringFieldUpdateOperationsInput | string | null
  20817. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20818. password?: NullableStringFieldUpdateOperationsInput | string | null
  20819. image?: NullableStringFieldUpdateOperationsInput | string | null
  20820. accounts?: AccountUpdateManyWithoutUserNestedInput
  20821. posts?: PostUpdateManyWithoutCreatedByNestedInput
  20822. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  20823. }
  20824. export type UserUncheckedUpdateWithoutSessionsInput = {
  20825. id?: StringFieldUpdateOperationsInput | string
  20826. name?: NullableStringFieldUpdateOperationsInput | string | null
  20827. email?: NullableStringFieldUpdateOperationsInput | string | null
  20828. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20829. password?: NullableStringFieldUpdateOperationsInput | string | null
  20830. image?: NullableStringFieldUpdateOperationsInput | string | null
  20831. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  20832. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  20833. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  20834. }
  20835. export type AccountCreateWithoutUserInput = {
  20836. id?: string
  20837. type: string
  20838. provider: string
  20839. providerAccountId: string
  20840. refresh_token?: string | null
  20841. access_token?: string | null
  20842. expires_at?: number | null
  20843. token_type?: string | null
  20844. scope?: string | null
  20845. id_token?: string | null
  20846. session_state?: string | null
  20847. refresh_token_expires_in?: number | null
  20848. }
  20849. export type AccountUncheckedCreateWithoutUserInput = {
  20850. id?: string
  20851. type: string
  20852. provider: string
  20853. providerAccountId: string
  20854. refresh_token?: string | null
  20855. access_token?: string | null
  20856. expires_at?: number | null
  20857. token_type?: string | null
  20858. scope?: string | null
  20859. id_token?: string | null
  20860. session_state?: string | null
  20861. refresh_token_expires_in?: number | null
  20862. }
  20863. export type AccountCreateOrConnectWithoutUserInput = {
  20864. where: AccountWhereUniqueInput
  20865. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  20866. }
  20867. export type AccountCreateManyUserInputEnvelope = {
  20868. data: AccountCreateManyUserInput | AccountCreateManyUserInput[]
  20869. skipDuplicates?: boolean
  20870. }
  20871. export type SessionCreateWithoutUserInput = {
  20872. id?: string
  20873. sessionToken: string
  20874. expires: Date | string
  20875. }
  20876. export type SessionUncheckedCreateWithoutUserInput = {
  20877. id?: string
  20878. sessionToken: string
  20879. expires: Date | string
  20880. }
  20881. export type SessionCreateOrConnectWithoutUserInput = {
  20882. where: SessionWhereUniqueInput
  20883. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  20884. }
  20885. export type SessionCreateManyUserInputEnvelope = {
  20886. data: SessionCreateManyUserInput | SessionCreateManyUserInput[]
  20887. skipDuplicates?: boolean
  20888. }
  20889. export type PostCreateWithoutCreatedByInput = {
  20890. name: string
  20891. createdAt?: Date | string
  20892. updatedAt?: Date | string
  20893. }
  20894. export type PostUncheckedCreateWithoutCreatedByInput = {
  20895. id?: number
  20896. name: string
  20897. createdAt?: Date | string
  20898. updatedAt?: Date | string
  20899. }
  20900. export type PostCreateOrConnectWithoutCreatedByInput = {
  20901. where: PostWhereUniqueInput
  20902. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  20903. }
  20904. export type PostCreateManyCreatedByInputEnvelope = {
  20905. data: PostCreateManyCreatedByInput | PostCreateManyCreatedByInput[]
  20906. skipDuplicates?: boolean
  20907. }
  20908. export type WorkspaceCreateWithoutOwnerInput = {
  20909. id?: string
  20910. name: string
  20911. slug: string
  20912. sector?: string | null
  20913. companySize?: number | null
  20914. contactEmail?: string | null
  20915. tier?: $Enums.WorkspaceTier
  20916. llmCallsThisMonth?: number
  20917. llmCallsResetAt?: Date | string
  20918. autoRelanceEnabled?: boolean
  20919. exportsThisMonth?: number
  20920. exportsResetAt?: Date | string
  20921. lastVisitedAt?: Date | string | null
  20922. createdAt?: Date | string
  20923. updatedAt?: Date | string
  20924. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20925. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  20926. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  20927. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  20928. }
  20929. export type WorkspaceUncheckedCreateWithoutOwnerInput = {
  20930. id?: string
  20931. name: string
  20932. slug: string
  20933. sector?: string | null
  20934. companySize?: number | null
  20935. contactEmail?: string | null
  20936. tier?: $Enums.WorkspaceTier
  20937. llmCallsThisMonth?: number
  20938. llmCallsResetAt?: Date | string
  20939. autoRelanceEnabled?: boolean
  20940. exportsThisMonth?: number
  20941. exportsResetAt?: Date | string
  20942. lastVisitedAt?: Date | string | null
  20943. createdAt?: Date | string
  20944. updatedAt?: Date | string
  20945. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20946. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  20947. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  20948. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  20949. }
  20950. export type WorkspaceCreateOrConnectWithoutOwnerInput = {
  20951. where: WorkspaceWhereUniqueInput
  20952. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  20953. }
  20954. export type AccountUpsertWithWhereUniqueWithoutUserInput = {
  20955. where: AccountWhereUniqueInput
  20956. update: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  20957. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  20958. }
  20959. export type AccountUpdateWithWhereUniqueWithoutUserInput = {
  20960. where: AccountWhereUniqueInput
  20961. data: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  20962. }
  20963. export type AccountUpdateManyWithWhereWithoutUserInput = {
  20964. where: AccountScalarWhereInput
  20965. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyWithoutUserInput>
  20966. }
  20967. export type AccountScalarWhereInput = {
  20968. AND?: AccountScalarWhereInput | AccountScalarWhereInput[]
  20969. OR?: AccountScalarWhereInput[]
  20970. NOT?: AccountScalarWhereInput | AccountScalarWhereInput[]
  20971. id?: StringFilter<"Account"> | string
  20972. userId?: StringFilter<"Account"> | string
  20973. type?: StringFilter<"Account"> | string
  20974. provider?: StringFilter<"Account"> | string
  20975. providerAccountId?: StringFilter<"Account"> | string
  20976. refresh_token?: StringNullableFilter<"Account"> | string | null
  20977. access_token?: StringNullableFilter<"Account"> | string | null
  20978. expires_at?: IntNullableFilter<"Account"> | number | null
  20979. token_type?: StringNullableFilter<"Account"> | string | null
  20980. scope?: StringNullableFilter<"Account"> | string | null
  20981. id_token?: StringNullableFilter<"Account"> | string | null
  20982. session_state?: StringNullableFilter<"Account"> | string | null
  20983. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  20984. }
  20985. export type SessionUpsertWithWhereUniqueWithoutUserInput = {
  20986. where: SessionWhereUniqueInput
  20987. update: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  20988. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  20989. }
  20990. export type SessionUpdateWithWhereUniqueWithoutUserInput = {
  20991. where: SessionWhereUniqueInput
  20992. data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  20993. }
  20994. export type SessionUpdateManyWithWhereWithoutUserInput = {
  20995. where: SessionScalarWhereInput
  20996. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
  20997. }
  20998. export type SessionScalarWhereInput = {
  20999. AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21000. OR?: SessionScalarWhereInput[]
  21001. NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21002. id?: StringFilter<"Session"> | string
  21003. sessionToken?: StringFilter<"Session"> | string
  21004. userId?: StringFilter<"Session"> | string
  21005. expires?: DateTimeFilter<"Session"> | Date | string
  21006. }
  21007. export type PostUpsertWithWhereUniqueWithoutCreatedByInput = {
  21008. where: PostWhereUniqueInput
  21009. update: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  21010. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  21011. }
  21012. export type PostUpdateWithWhereUniqueWithoutCreatedByInput = {
  21013. where: PostWhereUniqueInput
  21014. data: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  21015. }
  21016. export type PostUpdateManyWithWhereWithoutCreatedByInput = {
  21017. where: PostScalarWhereInput
  21018. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyWithoutCreatedByInput>
  21019. }
  21020. export type PostScalarWhereInput = {
  21021. AND?: PostScalarWhereInput | PostScalarWhereInput[]
  21022. OR?: PostScalarWhereInput[]
  21023. NOT?: PostScalarWhereInput | PostScalarWhereInput[]
  21024. id?: IntFilter<"Post"> | number
  21025. name?: StringFilter<"Post"> | string
  21026. createdAt?: DateTimeFilter<"Post"> | Date | string
  21027. updatedAt?: DateTimeFilter<"Post"> | Date | string
  21028. createdById?: StringFilter<"Post"> | string
  21029. }
  21030. export type WorkspaceUpsertWithoutOwnerInput = {
  21031. update: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21032. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21033. where?: WorkspaceWhereInput
  21034. }
  21035. export type WorkspaceUpdateToOneWithWhereWithoutOwnerInput = {
  21036. where?: WorkspaceWhereInput
  21037. data: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21038. }
  21039. export type WorkspaceUpdateWithoutOwnerInput = {
  21040. id?: StringFieldUpdateOperationsInput | string
  21041. name?: StringFieldUpdateOperationsInput | string
  21042. slug?: StringFieldUpdateOperationsInput | string
  21043. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21044. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21045. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21046. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21047. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21048. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21049. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21050. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21051. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21052. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21053. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21054. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21055. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  21056. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  21057. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  21058. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  21059. }
  21060. export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
  21061. id?: StringFieldUpdateOperationsInput | string
  21062. name?: StringFieldUpdateOperationsInput | string
  21063. slug?: StringFieldUpdateOperationsInput | string
  21064. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21065. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21066. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21067. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21068. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21069. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21070. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21071. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21072. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21073. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21074. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21075. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21076. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  21077. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  21078. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  21079. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  21080. }
  21081. export type IdeaCreateWithoutAttachmentsInput = {
  21082. id?: string
  21083. contributorEmail: string
  21084. department: string
  21085. problemDescription: string
  21086. estimatedImpact: $Enums.ImpactLevel
  21087. frequency: $Enums.Frequency
  21088. status?: $Enums.IdeaStatus
  21089. llmTitle?: string | null
  21090. llmDomain?: string | null
  21091. llmAiType?: string | null
  21092. llmExplanation?: string | null
  21093. llmScoreImpact?: number | null
  21094. llmScoreFeasibility?: number | null
  21095. llmScoreUrgency?: number | null
  21096. llmEnrichedAt?: Date | string | null
  21097. llmEnrichFailed?: boolean
  21098. manualScoreImpact?: number | null
  21099. manualScoreFeasibility?: number | null
  21100. manualScoreUrgency?: number | null
  21101. priorityOrder?: number | null
  21102. emailMessageId?: string | null
  21103. createdAt?: Date | string
  21104. updatedAt?: Date | string
  21105. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  21106. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  21107. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  21108. }
  21109. export type IdeaUncheckedCreateWithoutAttachmentsInput = {
  21110. id?: string
  21111. workspaceId: string
  21112. contributorEmail: string
  21113. contributorId?: string | null
  21114. department: string
  21115. problemDescription: string
  21116. estimatedImpact: $Enums.ImpactLevel
  21117. frequency: $Enums.Frequency
  21118. status?: $Enums.IdeaStatus
  21119. llmTitle?: string | null
  21120. llmDomain?: string | null
  21121. llmAiType?: string | null
  21122. llmExplanation?: string | null
  21123. llmScoreImpact?: number | null
  21124. llmScoreFeasibility?: number | null
  21125. llmScoreUrgency?: number | null
  21126. llmEnrichedAt?: Date | string | null
  21127. llmEnrichFailed?: boolean
  21128. manualScoreImpact?: number | null
  21129. manualScoreFeasibility?: number | null
  21130. manualScoreUrgency?: number | null
  21131. priorityOrder?: number | null
  21132. emailMessageId?: string | null
  21133. createdAt?: Date | string
  21134. updatedAt?: Date | string
  21135. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  21136. }
  21137. export type IdeaCreateOrConnectWithoutAttachmentsInput = {
  21138. where: IdeaWhereUniqueInput
  21139. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21140. }
  21141. export type IdeaUpsertWithoutAttachmentsInput = {
  21142. update: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  21143. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21144. where?: IdeaWhereInput
  21145. }
  21146. export type IdeaUpdateToOneWithWhereWithoutAttachmentsInput = {
  21147. where?: IdeaWhereInput
  21148. data: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  21149. }
  21150. export type IdeaUpdateWithoutAttachmentsInput = {
  21151. id?: StringFieldUpdateOperationsInput | string
  21152. contributorEmail?: StringFieldUpdateOperationsInput | string
  21153. department?: StringFieldUpdateOperationsInput | string
  21154. problemDescription?: StringFieldUpdateOperationsInput | string
  21155. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21156. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21157. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21158. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21159. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21160. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21161. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21162. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21163. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21164. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21165. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21166. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21167. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21168. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21169. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21170. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21171. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21172. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21173. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21174. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21175. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21176. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21177. }
  21178. export type IdeaUncheckedUpdateWithoutAttachmentsInput = {
  21179. id?: StringFieldUpdateOperationsInput | string
  21180. workspaceId?: StringFieldUpdateOperationsInput | string
  21181. contributorEmail?: StringFieldUpdateOperationsInput | string
  21182. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21183. department?: StringFieldUpdateOperationsInput | string
  21184. problemDescription?: StringFieldUpdateOperationsInput | string
  21185. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21186. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21187. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21188. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21189. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21190. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21191. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21192. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21193. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21194. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21195. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21196. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21197. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21198. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21199. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21200. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21201. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21202. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21203. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21204. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21205. }
  21206. export type IdeaCreateWithoutQualificationQuestionsInput = {
  21207. id?: string
  21208. contributorEmail: string
  21209. department: string
  21210. problemDescription: string
  21211. estimatedImpact: $Enums.ImpactLevel
  21212. frequency: $Enums.Frequency
  21213. status?: $Enums.IdeaStatus
  21214. llmTitle?: string | null
  21215. llmDomain?: string | null
  21216. llmAiType?: string | null
  21217. llmExplanation?: string | null
  21218. llmScoreImpact?: number | null
  21219. llmScoreFeasibility?: number | null
  21220. llmScoreUrgency?: number | null
  21221. llmEnrichedAt?: Date | string | null
  21222. llmEnrichFailed?: boolean
  21223. manualScoreImpact?: number | null
  21224. manualScoreFeasibility?: number | null
  21225. manualScoreUrgency?: number | null
  21226. priorityOrder?: number | null
  21227. emailMessageId?: string | null
  21228. createdAt?: Date | string
  21229. updatedAt?: Date | string
  21230. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  21231. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  21232. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  21233. }
  21234. export type IdeaUncheckedCreateWithoutQualificationQuestionsInput = {
  21235. id?: string
  21236. workspaceId: string
  21237. contributorEmail: string
  21238. contributorId?: string | null
  21239. department: string
  21240. problemDescription: string
  21241. estimatedImpact: $Enums.ImpactLevel
  21242. frequency: $Enums.Frequency
  21243. status?: $Enums.IdeaStatus
  21244. llmTitle?: string | null
  21245. llmDomain?: string | null
  21246. llmAiType?: string | null
  21247. llmExplanation?: string | null
  21248. llmScoreImpact?: number | null
  21249. llmScoreFeasibility?: number | null
  21250. llmScoreUrgency?: number | null
  21251. llmEnrichedAt?: Date | string | null
  21252. llmEnrichFailed?: boolean
  21253. manualScoreImpact?: number | null
  21254. manualScoreFeasibility?: number | null
  21255. manualScoreUrgency?: number | null
  21256. priorityOrder?: number | null
  21257. emailMessageId?: string | null
  21258. createdAt?: Date | string
  21259. updatedAt?: Date | string
  21260. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  21261. }
  21262. export type IdeaCreateOrConnectWithoutQualificationQuestionsInput = {
  21263. where: IdeaWhereUniqueInput
  21264. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21265. }
  21266. export type IdeaUpsertWithoutQualificationQuestionsInput = {
  21267. update: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  21268. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21269. where?: IdeaWhereInput
  21270. }
  21271. export type IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput = {
  21272. where?: IdeaWhereInput
  21273. data: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  21274. }
  21275. export type IdeaUpdateWithoutQualificationQuestionsInput = {
  21276. id?: StringFieldUpdateOperationsInput | string
  21277. contributorEmail?: StringFieldUpdateOperationsInput | string
  21278. department?: StringFieldUpdateOperationsInput | string
  21279. problemDescription?: StringFieldUpdateOperationsInput | string
  21280. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21281. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21282. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21283. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21284. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21285. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21286. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21287. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21288. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21289. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21290. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21291. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21292. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21293. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21294. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21295. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21296. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21297. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21298. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21299. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21300. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21301. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21302. }
  21303. export type IdeaUncheckedUpdateWithoutQualificationQuestionsInput = {
  21304. id?: StringFieldUpdateOperationsInput | string
  21305. workspaceId?: StringFieldUpdateOperationsInput | string
  21306. contributorEmail?: StringFieldUpdateOperationsInput | string
  21307. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21308. department?: StringFieldUpdateOperationsInput | string
  21309. problemDescription?: StringFieldUpdateOperationsInput | string
  21310. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21311. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21312. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21313. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21314. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21315. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21316. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21317. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21318. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21319. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21320. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21321. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21322. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21323. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21324. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21325. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21326. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21327. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21328. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21329. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21330. }
  21331. export type WorkspaceCreateWithoutShareLinkInput = {
  21332. id?: string
  21333. name: string
  21334. slug: string
  21335. sector?: string | null
  21336. companySize?: number | null
  21337. contactEmail?: string | null
  21338. tier?: $Enums.WorkspaceTier
  21339. llmCallsThisMonth?: number
  21340. llmCallsResetAt?: Date | string
  21341. autoRelanceEnabled?: boolean
  21342. exportsThisMonth?: number
  21343. exportsResetAt?: Date | string
  21344. lastVisitedAt?: Date | string | null
  21345. createdAt?: Date | string
  21346. updatedAt?: Date | string
  21347. owner: UserCreateNestedOneWithoutWorkspaceInput
  21348. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  21349. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  21350. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  21351. }
  21352. export type WorkspaceUncheckedCreateWithoutShareLinkInput = {
  21353. id?: string
  21354. name: string
  21355. slug: string
  21356. sector?: string | null
  21357. companySize?: number | null
  21358. contactEmail?: string | null
  21359. tier?: $Enums.WorkspaceTier
  21360. llmCallsThisMonth?: number
  21361. llmCallsResetAt?: Date | string
  21362. autoRelanceEnabled?: boolean
  21363. exportsThisMonth?: number
  21364. exportsResetAt?: Date | string
  21365. lastVisitedAt?: Date | string | null
  21366. createdAt?: Date | string
  21367. updatedAt?: Date | string
  21368. ownerId: string
  21369. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  21370. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  21371. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  21372. }
  21373. export type WorkspaceCreateOrConnectWithoutShareLinkInput = {
  21374. where: WorkspaceWhereUniqueInput
  21375. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21376. }
  21377. export type WorkspaceUpsertWithoutShareLinkInput = {
  21378. update: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  21379. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21380. where?: WorkspaceWhereInput
  21381. }
  21382. export type WorkspaceUpdateToOneWithWhereWithoutShareLinkInput = {
  21383. where?: WorkspaceWhereInput
  21384. data: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  21385. }
  21386. export type WorkspaceUpdateWithoutShareLinkInput = {
  21387. id?: StringFieldUpdateOperationsInput | string
  21388. name?: StringFieldUpdateOperationsInput | string
  21389. slug?: StringFieldUpdateOperationsInput | string
  21390. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21391. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21392. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21393. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21394. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21395. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21396. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21397. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21398. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21399. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21400. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21401. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21402. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  21403. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  21404. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  21405. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  21406. }
  21407. export type WorkspaceUncheckedUpdateWithoutShareLinkInput = {
  21408. id?: StringFieldUpdateOperationsInput | string
  21409. name?: StringFieldUpdateOperationsInput | string
  21410. slug?: StringFieldUpdateOperationsInput | string
  21411. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21412. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21413. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21414. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21415. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21416. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21417. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21418. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21419. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21420. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21421. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21422. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21423. ownerId?: StringFieldUpdateOperationsInput | string
  21424. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  21425. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  21426. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  21427. }
  21428. export type ContributorCreateManyWorkspaceInput = {
  21429. id?: string
  21430. email: string
  21431. status?: $Enums.ContributorStatus
  21432. invitedAt?: Date | string
  21433. lastRemindedAt?: Date | string | null
  21434. createdAt?: Date | string
  21435. }
  21436. export type IdeaCreateManyWorkspaceInput = {
  21437. id?: string
  21438. contributorEmail: string
  21439. contributorId?: string | null
  21440. department: string
  21441. problemDescription: string
  21442. estimatedImpact: $Enums.ImpactLevel
  21443. frequency: $Enums.Frequency
  21444. status?: $Enums.IdeaStatus
  21445. llmTitle?: string | null
  21446. llmDomain?: string | null
  21447. llmAiType?: string | null
  21448. llmExplanation?: string | null
  21449. llmScoreImpact?: number | null
  21450. llmScoreFeasibility?: number | null
  21451. llmScoreUrgency?: number | null
  21452. llmEnrichedAt?: Date | string | null
  21453. llmEnrichFailed?: boolean
  21454. manualScoreImpact?: number | null
  21455. manualScoreFeasibility?: number | null
  21456. manualScoreUrgency?: number | null
  21457. priorityOrder?: number | null
  21458. emailMessageId?: string | null
  21459. createdAt?: Date | string
  21460. updatedAt?: Date | string
  21461. }
  21462. export type ManualRelanceLogCreateManyWorkspaceInput = {
  21463. id?: string
  21464. subject: string
  21465. recipientCount: number
  21466. sentCount: number
  21467. failedCount?: number
  21468. sentAt?: Date | string
  21469. }
  21470. export type ContributorUpdateWithoutWorkspaceInput = {
  21471. id?: StringFieldUpdateOperationsInput | string
  21472. email?: StringFieldUpdateOperationsInput | string
  21473. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21474. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21475. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21476. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21477. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  21478. }
  21479. export type ContributorUncheckedUpdateWithoutWorkspaceInput = {
  21480. id?: StringFieldUpdateOperationsInput | string
  21481. email?: StringFieldUpdateOperationsInput | string
  21482. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21483. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21484. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21485. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21486. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  21487. }
  21488. export type ContributorUncheckedUpdateManyWithoutWorkspaceInput = {
  21489. id?: StringFieldUpdateOperationsInput | string
  21490. email?: StringFieldUpdateOperationsInput | string
  21491. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21492. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21493. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21494. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21495. }
  21496. export type IdeaUpdateWithoutWorkspaceInput = {
  21497. id?: StringFieldUpdateOperationsInput | string
  21498. contributorEmail?: StringFieldUpdateOperationsInput | string
  21499. department?: StringFieldUpdateOperationsInput | string
  21500. problemDescription?: StringFieldUpdateOperationsInput | string
  21501. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21502. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21503. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21504. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21505. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21506. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21507. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21508. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21509. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21510. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21511. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21512. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21513. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21514. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21515. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21516. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21517. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21518. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21519. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21520. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21521. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21522. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21523. }
  21524. export type IdeaUncheckedUpdateWithoutWorkspaceInput = {
  21525. id?: StringFieldUpdateOperationsInput | string
  21526. contributorEmail?: StringFieldUpdateOperationsInput | string
  21527. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21528. department?: StringFieldUpdateOperationsInput | string
  21529. problemDescription?: StringFieldUpdateOperationsInput | string
  21530. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21531. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21532. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21533. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21534. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21535. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21536. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21537. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21538. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21539. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21540. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21541. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21542. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21543. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21544. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21545. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21546. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21547. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21548. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21549. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21550. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21551. }
  21552. export type IdeaUncheckedUpdateManyWithoutWorkspaceInput = {
  21553. id?: StringFieldUpdateOperationsInput | string
  21554. contributorEmail?: StringFieldUpdateOperationsInput | string
  21555. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21556. department?: StringFieldUpdateOperationsInput | string
  21557. problemDescription?: StringFieldUpdateOperationsInput | string
  21558. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21559. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21560. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21561. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21562. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21563. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21564. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21565. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21566. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21567. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21568. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21569. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21570. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21571. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21572. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21573. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21574. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21575. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21576. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21577. }
  21578. export type ManualRelanceLogUpdateWithoutWorkspaceInput = {
  21579. id?: StringFieldUpdateOperationsInput | string
  21580. subject?: StringFieldUpdateOperationsInput | string
  21581. recipientCount?: IntFieldUpdateOperationsInput | number
  21582. sentCount?: IntFieldUpdateOperationsInput | number
  21583. failedCount?: IntFieldUpdateOperationsInput | number
  21584. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21585. }
  21586. export type ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput = {
  21587. id?: StringFieldUpdateOperationsInput | string
  21588. subject?: StringFieldUpdateOperationsInput | string
  21589. recipientCount?: IntFieldUpdateOperationsInput | number
  21590. sentCount?: IntFieldUpdateOperationsInput | number
  21591. failedCount?: IntFieldUpdateOperationsInput | number
  21592. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21593. }
  21594. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput = {
  21595. id?: StringFieldUpdateOperationsInput | string
  21596. subject?: StringFieldUpdateOperationsInput | string
  21597. recipientCount?: IntFieldUpdateOperationsInput | number
  21598. sentCount?: IntFieldUpdateOperationsInput | number
  21599. failedCount?: IntFieldUpdateOperationsInput | number
  21600. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21601. }
  21602. export type IdeaCreateManyContributorInput = {
  21603. id?: string
  21604. workspaceId: string
  21605. contributorEmail: string
  21606. department: string
  21607. problemDescription: string
  21608. estimatedImpact: $Enums.ImpactLevel
  21609. frequency: $Enums.Frequency
  21610. status?: $Enums.IdeaStatus
  21611. llmTitle?: string | null
  21612. llmDomain?: string | null
  21613. llmAiType?: string | null
  21614. llmExplanation?: string | null
  21615. llmScoreImpact?: number | null
  21616. llmScoreFeasibility?: number | null
  21617. llmScoreUrgency?: number | null
  21618. llmEnrichedAt?: Date | string | null
  21619. llmEnrichFailed?: boolean
  21620. manualScoreImpact?: number | null
  21621. manualScoreFeasibility?: number | null
  21622. manualScoreUrgency?: number | null
  21623. priorityOrder?: number | null
  21624. emailMessageId?: string | null
  21625. createdAt?: Date | string
  21626. updatedAt?: Date | string
  21627. }
  21628. export type IdeaUpdateWithoutContributorInput = {
  21629. id?: StringFieldUpdateOperationsInput | string
  21630. contributorEmail?: StringFieldUpdateOperationsInput | string
  21631. department?: StringFieldUpdateOperationsInput | string
  21632. problemDescription?: StringFieldUpdateOperationsInput | string
  21633. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21634. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21635. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21636. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21637. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21638. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21639. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21640. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21641. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21642. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21643. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21644. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21645. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21646. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21647. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21648. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21649. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21650. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21651. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21652. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21653. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21654. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21655. }
  21656. export type IdeaUncheckedUpdateWithoutContributorInput = {
  21657. id?: StringFieldUpdateOperationsInput | string
  21658. workspaceId?: StringFieldUpdateOperationsInput | string
  21659. contributorEmail?: StringFieldUpdateOperationsInput | string
  21660. department?: StringFieldUpdateOperationsInput | string
  21661. problemDescription?: StringFieldUpdateOperationsInput | string
  21662. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21663. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21664. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21665. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21666. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21667. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21668. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21669. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21670. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21671. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21672. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21673. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21674. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21675. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21676. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21677. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21678. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21679. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21680. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21681. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21682. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21683. }
  21684. export type IdeaUncheckedUpdateManyWithoutContributorInput = {
  21685. id?: StringFieldUpdateOperationsInput | string
  21686. workspaceId?: StringFieldUpdateOperationsInput | string
  21687. contributorEmail?: StringFieldUpdateOperationsInput | string
  21688. department?: StringFieldUpdateOperationsInput | string
  21689. problemDescription?: StringFieldUpdateOperationsInput | string
  21690. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21691. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21692. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21693. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21694. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21695. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21696. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21697. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21698. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21699. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21700. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21701. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21702. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21703. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21704. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21705. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21706. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21707. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21708. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21709. }
  21710. export type IdeaAttachmentCreateManyIdeaInput = {
  21711. id?: string
  21712. workspaceId: string
  21713. filename: string
  21714. contentType: string
  21715. size: number
  21716. url: string
  21717. blobPath: string
  21718. createdAt?: Date | string
  21719. }
  21720. export type QualificationQuestionCreateManyIdeaInput = {
  21721. id?: string
  21722. workspaceId: string
  21723. questionText: string
  21724. responseToken?: string
  21725. askedAt?: Date | string
  21726. responseText?: string | null
  21727. answeredAt?: Date | string | null
  21728. }
  21729. export type IdeaAttachmentUpdateWithoutIdeaInput = {
  21730. id?: StringFieldUpdateOperationsInput | string
  21731. workspaceId?: StringFieldUpdateOperationsInput | string
  21732. filename?: StringFieldUpdateOperationsInput | string
  21733. contentType?: StringFieldUpdateOperationsInput | string
  21734. size?: IntFieldUpdateOperationsInput | number
  21735. url?: StringFieldUpdateOperationsInput | string
  21736. blobPath?: StringFieldUpdateOperationsInput | string
  21737. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21738. }
  21739. export type IdeaAttachmentUncheckedUpdateWithoutIdeaInput = {
  21740. id?: StringFieldUpdateOperationsInput | string
  21741. workspaceId?: StringFieldUpdateOperationsInput | string
  21742. filename?: StringFieldUpdateOperationsInput | string
  21743. contentType?: StringFieldUpdateOperationsInput | string
  21744. size?: IntFieldUpdateOperationsInput | number
  21745. url?: StringFieldUpdateOperationsInput | string
  21746. blobPath?: StringFieldUpdateOperationsInput | string
  21747. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21748. }
  21749. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput = {
  21750. id?: StringFieldUpdateOperationsInput | string
  21751. workspaceId?: StringFieldUpdateOperationsInput | string
  21752. filename?: StringFieldUpdateOperationsInput | string
  21753. contentType?: StringFieldUpdateOperationsInput | string
  21754. size?: IntFieldUpdateOperationsInput | number
  21755. url?: StringFieldUpdateOperationsInput | string
  21756. blobPath?: StringFieldUpdateOperationsInput | string
  21757. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21758. }
  21759. export type QualificationQuestionUpdateWithoutIdeaInput = {
  21760. id?: StringFieldUpdateOperationsInput | string
  21761. workspaceId?: StringFieldUpdateOperationsInput | string
  21762. questionText?: StringFieldUpdateOperationsInput | string
  21763. responseToken?: StringFieldUpdateOperationsInput | string
  21764. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21765. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  21766. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21767. }
  21768. export type QualificationQuestionUncheckedUpdateWithoutIdeaInput = {
  21769. id?: StringFieldUpdateOperationsInput | string
  21770. workspaceId?: StringFieldUpdateOperationsInput | string
  21771. questionText?: StringFieldUpdateOperationsInput | string
  21772. responseToken?: StringFieldUpdateOperationsInput | string
  21773. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21774. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  21775. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21776. }
  21777. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaInput = {
  21778. id?: StringFieldUpdateOperationsInput | string
  21779. workspaceId?: StringFieldUpdateOperationsInput | string
  21780. questionText?: StringFieldUpdateOperationsInput | string
  21781. responseToken?: StringFieldUpdateOperationsInput | string
  21782. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21783. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  21784. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21785. }
  21786. export type AccountCreateManyUserInput = {
  21787. id?: string
  21788. type: string
  21789. provider: string
  21790. providerAccountId: string
  21791. refresh_token?: string | null
  21792. access_token?: string | null
  21793. expires_at?: number | null
  21794. token_type?: string | null
  21795. scope?: string | null
  21796. id_token?: string | null
  21797. session_state?: string | null
  21798. refresh_token_expires_in?: number | null
  21799. }
  21800. export type SessionCreateManyUserInput = {
  21801. id?: string
  21802. sessionToken: string
  21803. expires: Date | string
  21804. }
  21805. export type PostCreateManyCreatedByInput = {
  21806. id?: number
  21807. name: string
  21808. createdAt?: Date | string
  21809. updatedAt?: Date | string
  21810. }
  21811. export type AccountUpdateWithoutUserInput = {
  21812. id?: StringFieldUpdateOperationsInput | string
  21813. type?: StringFieldUpdateOperationsInput | string
  21814. provider?: StringFieldUpdateOperationsInput | string
  21815. providerAccountId?: StringFieldUpdateOperationsInput | string
  21816. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  21817. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  21818. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  21819. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  21820. scope?: NullableStringFieldUpdateOperationsInput | string | null
  21821. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  21822. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  21823. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  21824. }
  21825. export type AccountUncheckedUpdateWithoutUserInput = {
  21826. id?: StringFieldUpdateOperationsInput | string
  21827. type?: StringFieldUpdateOperationsInput | string
  21828. provider?: StringFieldUpdateOperationsInput | string
  21829. providerAccountId?: StringFieldUpdateOperationsInput | string
  21830. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  21831. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  21832. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  21833. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  21834. scope?: NullableStringFieldUpdateOperationsInput | string | null
  21835. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  21836. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  21837. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  21838. }
  21839. export type AccountUncheckedUpdateManyWithoutUserInput = {
  21840. id?: StringFieldUpdateOperationsInput | string
  21841. type?: StringFieldUpdateOperationsInput | string
  21842. provider?: StringFieldUpdateOperationsInput | string
  21843. providerAccountId?: StringFieldUpdateOperationsInput | string
  21844. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  21845. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  21846. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  21847. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  21848. scope?: NullableStringFieldUpdateOperationsInput | string | null
  21849. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  21850. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  21851. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  21852. }
  21853. export type SessionUpdateWithoutUserInput = {
  21854. id?: StringFieldUpdateOperationsInput | string
  21855. sessionToken?: StringFieldUpdateOperationsInput | string
  21856. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  21857. }
  21858. export type SessionUncheckedUpdateWithoutUserInput = {
  21859. id?: StringFieldUpdateOperationsInput | string
  21860. sessionToken?: StringFieldUpdateOperationsInput | string
  21861. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  21862. }
  21863. export type SessionUncheckedUpdateManyWithoutUserInput = {
  21864. id?: StringFieldUpdateOperationsInput | string
  21865. sessionToken?: StringFieldUpdateOperationsInput | string
  21866. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  21867. }
  21868. export type PostUpdateWithoutCreatedByInput = {
  21869. name?: StringFieldUpdateOperationsInput | string
  21870. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21871. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21872. }
  21873. export type PostUncheckedUpdateWithoutCreatedByInput = {
  21874. id?: IntFieldUpdateOperationsInput | number
  21875. name?: StringFieldUpdateOperationsInput | string
  21876. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21877. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21878. }
  21879. export type PostUncheckedUpdateManyWithoutCreatedByInput = {
  21880. id?: IntFieldUpdateOperationsInput | number
  21881. name?: StringFieldUpdateOperationsInput | string
  21882. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21883. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21884. }
  21885. /**
  21886. * Batch Payload for updateMany & deleteMany & createMany
  21887. */
  21888. export type BatchPayload = {
  21889. count: number
  21890. }
  21891. /**
  21892. * DMMF
  21893. */
  21894. export const dmmf: runtime.BaseDMMF
  21895. }