index.d.ts 880 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899
  1. /**
  2. * Client
  3. **/
  4. import * as runtime from './runtime/library.js';
  5. import $Types = runtime.Types // general types
  6. import $Public = runtime.Types.Public
  7. import $Utils = runtime.Types.Utils
  8. import $Extensions = runtime.Types.Extensions
  9. import $Result = runtime.Types.Result
  10. export type PrismaPromise<T> = $Public.PrismaPromise<T>
  11. /**
  12. * Model Workspace
  13. *
  14. */
  15. export type Workspace = $Result.DefaultSelection<Prisma.$WorkspacePayload>
  16. /**
  17. * Model ManualRelanceLog
  18. *
  19. */
  20. export type ManualRelanceLog = $Result.DefaultSelection<Prisma.$ManualRelanceLogPayload>
  21. /**
  22. * Model Contributor
  23. *
  24. */
  25. export type Contributor = $Result.DefaultSelection<Prisma.$ContributorPayload>
  26. /**
  27. * Model Idea
  28. *
  29. */
  30. export type Idea = $Result.DefaultSelection<Prisma.$IdeaPayload>
  31. /**
  32. * Model Post
  33. *
  34. */
  35. export type Post = $Result.DefaultSelection<Prisma.$PostPayload>
  36. /**
  37. * Model Account
  38. *
  39. */
  40. export type Account = $Result.DefaultSelection<Prisma.$AccountPayload>
  41. /**
  42. * Model Session
  43. *
  44. */
  45. export type Session = $Result.DefaultSelection<Prisma.$SessionPayload>
  46. /**
  47. * Model User
  48. *
  49. */
  50. export type User = $Result.DefaultSelection<Prisma.$UserPayload>
  51. /**
  52. * Model VerificationToken
  53. *
  54. */
  55. export type VerificationToken = $Result.DefaultSelection<Prisma.$VerificationTokenPayload>
  56. /**
  57. * Model IdeaAttachment
  58. *
  59. */
  60. export type IdeaAttachment = $Result.DefaultSelection<Prisma.$IdeaAttachmentPayload>
  61. /**
  62. * Model QualificationQuestion
  63. *
  64. */
  65. export type QualificationQuestion = $Result.DefaultSelection<Prisma.$QualificationQuestionPayload>
  66. /**
  67. * Model LibraryCase
  68. *
  69. */
  70. export type LibraryCase = $Result.DefaultSelection<Prisma.$LibraryCasePayload>
  71. /**
  72. * Model ShareLink
  73. *
  74. */
  75. export type ShareLink = $Result.DefaultSelection<Prisma.$ShareLinkPayload>
  76. /**
  77. * Enums
  78. */
  79. export namespace $Enums {
  80. export const WorkspaceTier: {
  81. FREE: 'FREE',
  82. PRO: 'PRO'
  83. };
  84. export type WorkspaceTier = (typeof WorkspaceTier)[keyof typeof WorkspaceTier]
  85. export const ContributorStatus: {
  86. INVITED: 'INVITED',
  87. SUBMITTED: 'SUBMITTED',
  88. NOT_SUBMITTED: 'NOT_SUBMITTED'
  89. };
  90. export type ContributorStatus = (typeof ContributorStatus)[keyof typeof ContributorStatus]
  91. export const IdeaStatus: {
  92. SUBMITTED: 'SUBMITTED',
  93. IN_REVIEW: 'IN_REVIEW',
  94. ON_AGENDA: 'ON_AGENDA',
  95. IN_PROGRESS: 'IN_PROGRESS',
  96. NOT_PRIORITY: 'NOT_PRIORITY'
  97. };
  98. export type IdeaStatus = (typeof IdeaStatus)[keyof typeof IdeaStatus]
  99. export const ImpactLevel: {
  100. FAIBLE: 'FAIBLE',
  101. MODERE: 'MODERE',
  102. ELEVE: 'ELEVE',
  103. CRITIQUE: 'CRITIQUE'
  104. };
  105. export type ImpactLevel = (typeof ImpactLevel)[keyof typeof ImpactLevel]
  106. export const Frequency: {
  107. QUOTIDIENNE: 'QUOTIDIENNE',
  108. HEBDOMADAIRE: 'HEBDOMADAIRE',
  109. MENSUELLE: 'MENSUELLE',
  110. TRIMESTRIELLE: 'TRIMESTRIELLE',
  111. PONCTUELLE: 'PONCTUELLE'
  112. };
  113. export type Frequency = (typeof Frequency)[keyof typeof Frequency]
  114. }
  115. export type WorkspaceTier = $Enums.WorkspaceTier
  116. export const WorkspaceTier: typeof $Enums.WorkspaceTier
  117. export type ContributorStatus = $Enums.ContributorStatus
  118. export const ContributorStatus: typeof $Enums.ContributorStatus
  119. export type IdeaStatus = $Enums.IdeaStatus
  120. export const IdeaStatus: typeof $Enums.IdeaStatus
  121. export type ImpactLevel = $Enums.ImpactLevel
  122. export const ImpactLevel: typeof $Enums.ImpactLevel
  123. export type Frequency = $Enums.Frequency
  124. export const Frequency: typeof $Enums.Frequency
  125. /**
  126. * ## Prisma Client ʲˢ
  127. *
  128. * Type-safe database client for TypeScript & Node.js
  129. * @example
  130. * ```
  131. * const prisma = new PrismaClient()
  132. * // Fetch zero or more Workspaces
  133. * const workspaces = await prisma.workspace.findMany()
  134. * ```
  135. *
  136. *
  137. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
  138. */
  139. export class PrismaClient<
  140. ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
  141. const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
  142. ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
  143. > {
  144. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
  145. /**
  146. * ## Prisma Client ʲˢ
  147. *
  148. * Type-safe database client for TypeScript & Node.js
  149. * @example
  150. * ```
  151. * const prisma = new PrismaClient()
  152. * // Fetch zero or more Workspaces
  153. * const workspaces = await prisma.workspace.findMany()
  154. * ```
  155. *
  156. *
  157. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
  158. */
  159. constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
  160. $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
  161. /**
  162. * Connect with the database
  163. */
  164. $connect(): $Utils.JsPromise<void>;
  165. /**
  166. * Disconnect from the database
  167. */
  168. $disconnect(): $Utils.JsPromise<void>;
  169. /**
  170. * Executes a prepared raw query and returns the number of affected rows.
  171. * @example
  172. * ```
  173. * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
  174. * ```
  175. *
  176. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  177. */
  178. $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
  179. /**
  180. * Executes a raw query and returns the number of affected rows.
  181. * Susceptible to SQL injections, see documentation.
  182. * @example
  183. * ```
  184. * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
  185. * ```
  186. *
  187. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  188. */
  189. $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
  190. /**
  191. * Performs a prepared raw query and returns the `SELECT` data.
  192. * @example
  193. * ```
  194. * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
  195. * ```
  196. *
  197. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  198. */
  199. $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
  200. /**
  201. * Performs a raw query and returns the `SELECT` data.
  202. * Susceptible to SQL injections, see documentation.
  203. * @example
  204. * ```
  205. * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
  206. * ```
  207. *
  208. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  209. */
  210. $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
  211. /**
  212. * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
  213. * @example
  214. * ```
  215. * const [george, bob, alice] = await prisma.$transaction([
  216. * prisma.user.create({ data: { name: 'George' } }),
  217. * prisma.user.create({ data: { name: 'Bob' } }),
  218. * prisma.user.create({ data: { name: 'Alice' } }),
  219. * ])
  220. * ```
  221. *
  222. * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
  223. */
  224. $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
  225. $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
  226. $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
  227. extArgs: ExtArgs
  228. }>>
  229. /**
  230. * `prisma.workspace`: Exposes CRUD operations for the **Workspace** model.
  231. * Example usage:
  232. * ```ts
  233. * // Fetch zero or more Workspaces
  234. * const workspaces = await prisma.workspace.findMany()
  235. * ```
  236. */
  237. get workspace(): Prisma.WorkspaceDelegate<ExtArgs, ClientOptions>;
  238. /**
  239. * `prisma.manualRelanceLog`: Exposes CRUD operations for the **ManualRelanceLog** model.
  240. * Example usage:
  241. * ```ts
  242. * // Fetch zero or more ManualRelanceLogs
  243. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany()
  244. * ```
  245. */
  246. get manualRelanceLog(): Prisma.ManualRelanceLogDelegate<ExtArgs, ClientOptions>;
  247. /**
  248. * `prisma.contributor`: Exposes CRUD operations for the **Contributor** model.
  249. * Example usage:
  250. * ```ts
  251. * // Fetch zero or more Contributors
  252. * const contributors = await prisma.contributor.findMany()
  253. * ```
  254. */
  255. get contributor(): Prisma.ContributorDelegate<ExtArgs, ClientOptions>;
  256. /**
  257. * `prisma.idea`: Exposes CRUD operations for the **Idea** model.
  258. * Example usage:
  259. * ```ts
  260. * // Fetch zero or more Ideas
  261. * const ideas = await prisma.idea.findMany()
  262. * ```
  263. */
  264. get idea(): Prisma.IdeaDelegate<ExtArgs, ClientOptions>;
  265. /**
  266. * `prisma.post`: Exposes CRUD operations for the **Post** model.
  267. * Example usage:
  268. * ```ts
  269. * // Fetch zero or more Posts
  270. * const posts = await prisma.post.findMany()
  271. * ```
  272. */
  273. get post(): Prisma.PostDelegate<ExtArgs, ClientOptions>;
  274. /**
  275. * `prisma.account`: Exposes CRUD operations for the **Account** model.
  276. * Example usage:
  277. * ```ts
  278. * // Fetch zero or more Accounts
  279. * const accounts = await prisma.account.findMany()
  280. * ```
  281. */
  282. get account(): Prisma.AccountDelegate<ExtArgs, ClientOptions>;
  283. /**
  284. * `prisma.session`: Exposes CRUD operations for the **Session** model.
  285. * Example usage:
  286. * ```ts
  287. * // Fetch zero or more Sessions
  288. * const sessions = await prisma.session.findMany()
  289. * ```
  290. */
  291. get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
  292. /**
  293. * `prisma.user`: Exposes CRUD operations for the **User** model.
  294. * Example usage:
  295. * ```ts
  296. * // Fetch zero or more Users
  297. * const users = await prisma.user.findMany()
  298. * ```
  299. */
  300. get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
  301. /**
  302. * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model.
  303. * Example usage:
  304. * ```ts
  305. * // Fetch zero or more VerificationTokens
  306. * const verificationTokens = await prisma.verificationToken.findMany()
  307. * ```
  308. */
  309. get verificationToken(): Prisma.VerificationTokenDelegate<ExtArgs, ClientOptions>;
  310. /**
  311. * `prisma.ideaAttachment`: Exposes CRUD operations for the **IdeaAttachment** model.
  312. * Example usage:
  313. * ```ts
  314. * // Fetch zero or more IdeaAttachments
  315. * const ideaAttachments = await prisma.ideaAttachment.findMany()
  316. * ```
  317. */
  318. get ideaAttachment(): Prisma.IdeaAttachmentDelegate<ExtArgs, ClientOptions>;
  319. /**
  320. * `prisma.qualificationQuestion`: Exposes CRUD operations for the **QualificationQuestion** model.
  321. * Example usage:
  322. * ```ts
  323. * // Fetch zero or more QualificationQuestions
  324. * const qualificationQuestions = await prisma.qualificationQuestion.findMany()
  325. * ```
  326. */
  327. get qualificationQuestion(): Prisma.QualificationQuestionDelegate<ExtArgs, ClientOptions>;
  328. /**
  329. * `prisma.libraryCase`: Exposes CRUD operations for the **LibraryCase** model.
  330. * Example usage:
  331. * ```ts
  332. * // Fetch zero or more LibraryCases
  333. * const libraryCases = await prisma.libraryCase.findMany()
  334. * ```
  335. */
  336. get libraryCase(): Prisma.LibraryCaseDelegate<ExtArgs, ClientOptions>;
  337. /**
  338. * `prisma.shareLink`: Exposes CRUD operations for the **ShareLink** model.
  339. * Example usage:
  340. * ```ts
  341. * // Fetch zero or more ShareLinks
  342. * const shareLinks = await prisma.shareLink.findMany()
  343. * ```
  344. */
  345. get shareLink(): Prisma.ShareLinkDelegate<ExtArgs, ClientOptions>;
  346. }
  347. export namespace Prisma {
  348. export import DMMF = runtime.DMMF
  349. export type PrismaPromise<T> = $Public.PrismaPromise<T>
  350. /**
  351. * Validator
  352. */
  353. export import validator = runtime.Public.validator
  354. /**
  355. * Prisma Errors
  356. */
  357. export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
  358. export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
  359. export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
  360. export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
  361. export import PrismaClientValidationError = runtime.PrismaClientValidationError
  362. /**
  363. * Re-export of sql-template-tag
  364. */
  365. export import sql = runtime.sqltag
  366. export import empty = runtime.empty
  367. export import join = runtime.join
  368. export import raw = runtime.raw
  369. export import Sql = runtime.Sql
  370. /**
  371. * Decimal.js
  372. */
  373. export import Decimal = runtime.Decimal
  374. export type DecimalJsLike = runtime.DecimalJsLike
  375. /**
  376. * Metrics
  377. */
  378. export type Metrics = runtime.Metrics
  379. export type Metric<T> = runtime.Metric<T>
  380. export type MetricHistogram = runtime.MetricHistogram
  381. export type MetricHistogramBucket = runtime.MetricHistogramBucket
  382. /**
  383. * Extensions
  384. */
  385. export import Extension = $Extensions.UserArgs
  386. export import getExtensionContext = runtime.Extensions.getExtensionContext
  387. export import Args = $Public.Args
  388. export import Payload = $Public.Payload
  389. export import Result = $Public.Result
  390. export import Exact = $Public.Exact
  391. /**
  392. * Prisma Client JS version: 6.19.2
  393. * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
  394. */
  395. export type PrismaVersion = {
  396. client: string
  397. }
  398. export const prismaVersion: PrismaVersion
  399. /**
  400. * Utility Types
  401. */
  402. export import Bytes = runtime.Bytes
  403. export import JsonObject = runtime.JsonObject
  404. export import JsonArray = runtime.JsonArray
  405. export import JsonValue = runtime.JsonValue
  406. export import InputJsonObject = runtime.InputJsonObject
  407. export import InputJsonArray = runtime.InputJsonArray
  408. export import InputJsonValue = runtime.InputJsonValue
  409. /**
  410. * Types of the values used to represent different kinds of `null` values when working with JSON fields.
  411. *
  412. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  413. */
  414. namespace NullTypes {
  415. /**
  416. * Type of `Prisma.DbNull`.
  417. *
  418. * You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
  419. *
  420. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  421. */
  422. class DbNull {
  423. private DbNull: never
  424. private constructor()
  425. }
  426. /**
  427. * Type of `Prisma.JsonNull`.
  428. *
  429. * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
  430. *
  431. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  432. */
  433. class JsonNull {
  434. private JsonNull: never
  435. private constructor()
  436. }
  437. /**
  438. * Type of `Prisma.AnyNull`.
  439. *
  440. * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
  441. *
  442. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  443. */
  444. class AnyNull {
  445. private AnyNull: never
  446. private constructor()
  447. }
  448. }
  449. /**
  450. * Helper for filtering JSON entries that have `null` on the database (empty on the db)
  451. *
  452. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  453. */
  454. export const DbNull: NullTypes.DbNull
  455. /**
  456. * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
  457. *
  458. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  459. */
  460. export const JsonNull: NullTypes.JsonNull
  461. /**
  462. * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
  463. *
  464. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  465. */
  466. export const AnyNull: NullTypes.AnyNull
  467. type SelectAndInclude = {
  468. select: any
  469. include: any
  470. }
  471. type SelectAndOmit = {
  472. select: any
  473. omit: any
  474. }
  475. /**
  476. * Get the type of the value, that the Promise holds.
  477. */
  478. export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
  479. /**
  480. * Get the return type of a function which returns a Promise.
  481. */
  482. export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
  483. /**
  484. * From T, pick a set of properties whose keys are in the union K
  485. */
  486. type Prisma__Pick<T, K extends keyof T> = {
  487. [P in K]: T[P];
  488. };
  489. export type Enumerable<T> = T | Array<T>;
  490. export type RequiredKeys<T> = {
  491. [K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
  492. }[keyof T]
  493. export type TruthyKeys<T> = keyof {
  494. [K in keyof T as T[K] extends false | undefined | null ? never : K]: K
  495. }
  496. export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
  497. /**
  498. * Subset
  499. * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
  500. */
  501. export type Subset<T, U> = {
  502. [key in keyof T]: key extends keyof U ? T[key] : never;
  503. };
  504. /**
  505. * SelectSubset
  506. * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
  507. * Additionally, it validates, if both select and include are present. If the case, it errors.
  508. */
  509. export type SelectSubset<T, U> = {
  510. [key in keyof T]: key extends keyof U ? T[key] : never
  511. } &
  512. (T extends SelectAndInclude
  513. ? 'Please either choose `select` or `include`.'
  514. : T extends SelectAndOmit
  515. ? 'Please either choose `select` or `omit`.'
  516. : {})
  517. /**
  518. * Subset + Intersection
  519. * @desc From `T` pick properties that exist in `U` and intersect `K`
  520. */
  521. export type SubsetIntersection<T, U, K> = {
  522. [key in keyof T]: key extends keyof U ? T[key] : never
  523. } &
  524. K
  525. type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
  526. /**
  527. * XOR is needed to have a real mutually exclusive union type
  528. * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
  529. */
  530. type XOR<T, U> =
  531. T extends object ?
  532. U extends object ?
  533. (Without<T, U> & U) | (Without<U, T> & T)
  534. : U : T
  535. /**
  536. * Is T a Record?
  537. */
  538. type IsObject<T extends any> = T extends Array<any>
  539. ? False
  540. : T extends Date
  541. ? False
  542. : T extends Uint8Array
  543. ? False
  544. : T extends BigInt
  545. ? False
  546. : T extends object
  547. ? True
  548. : False
  549. /**
  550. * If it's T[], return T
  551. */
  552. export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
  553. /**
  554. * From ts-toolbelt
  555. */
  556. type __Either<O extends object, K extends Key> = Omit<O, K> &
  557. {
  558. // Merge all but K
  559. [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
  560. }[K]
  561. type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
  562. type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
  563. type _Either<
  564. O extends object,
  565. K extends Key,
  566. strict extends Boolean
  567. > = {
  568. 1: EitherStrict<O, K>
  569. 0: EitherLoose<O, K>
  570. }[strict]
  571. type Either<
  572. O extends object,
  573. K extends Key,
  574. strict extends Boolean = 1
  575. > = O extends unknown ? _Either<O, K, strict> : never
  576. export type Union = any
  577. type PatchUndefined<O extends object, O1 extends object> = {
  578. [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
  579. } & {}
  580. /** Helper Types for "Merge" **/
  581. export type IntersectOf<U extends Union> = (
  582. U extends unknown ? (k: U) => void : never
  583. ) extends (k: infer I) => void
  584. ? I
  585. : never
  586. export type Overwrite<O extends object, O1 extends object> = {
  587. [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
  588. } & {};
  589. type _Merge<U extends object> = IntersectOf<Overwrite<U, {
  590. [K in keyof U]-?: At<U, K>;
  591. }>>;
  592. type Key = string | number | symbol;
  593. type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
  594. type AtStrict<O extends object, K extends Key> = O[K & keyof O];
  595. type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
  596. export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
  597. 1: AtStrict<O, K>;
  598. 0: AtLoose<O, K>;
  599. }[strict];
  600. export type ComputeRaw<A extends any> = A extends Function ? A : {
  601. [K in keyof A]: A[K];
  602. } & {};
  603. export type OptionalFlat<O> = {
  604. [K in keyof O]?: O[K];
  605. } & {};
  606. type _Record<K extends keyof any, T> = {
  607. [P in K]: T;
  608. };
  609. // cause typescript not to expand types and preserve names
  610. type NoExpand<T> = T extends unknown ? T : never;
  611. // this type assumes the passed object is entirely optional
  612. type AtLeast<O extends object, K extends string> = NoExpand<
  613. O extends unknown
  614. ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
  615. | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
  616. : never>;
  617. type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
  618. export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
  619. /** End Helper Types for "Merge" **/
  620. export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
  621. /**
  622. A [[Boolean]]
  623. */
  624. export type Boolean = True | False
  625. // /**
  626. // 1
  627. // */
  628. export type True = 1
  629. /**
  630. 0
  631. */
  632. export type False = 0
  633. export type Not<B extends Boolean> = {
  634. 0: 1
  635. 1: 0
  636. }[B]
  637. export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
  638. ? 0 // anything `never` is false
  639. : A1 extends A2
  640. ? 1
  641. : 0
  642. export type Has<U extends Union, U1 extends Union> = Not<
  643. Extends<Exclude<U1, U>, U1>
  644. >
  645. export type Or<B1 extends Boolean, B2 extends Boolean> = {
  646. 0: {
  647. 0: 0
  648. 1: 1
  649. }
  650. 1: {
  651. 0: 1
  652. 1: 1
  653. }
  654. }[B1][B2]
  655. export type Keys<U extends Union> = U extends unknown ? keyof U : never
  656. type Cast<A, B> = A extends B ? A : B;
  657. export const type: unique symbol;
  658. /**
  659. * Used by group by
  660. */
  661. export type GetScalarType<T, O> = O extends object ? {
  662. [P in keyof T]: P extends keyof O
  663. ? O[P]
  664. : never
  665. } : never
  666. type FieldPaths<
  667. T,
  668. U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
  669. > = IsObject<T> extends True ? U : T
  670. type GetHavingFields<T> = {
  671. [K in keyof T]: Or<
  672. Or<Extends<'OR', K>, Extends<'AND', K>>,
  673. Extends<'NOT', K>
  674. > extends True
  675. ? // infer is only needed to not hit TS limit
  676. // based on the brilliant idea of Pierre-Antoine Mills
  677. // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
  678. T[K] extends infer TK
  679. ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
  680. : never
  681. : {} extends FieldPaths<T[K]>
  682. ? never
  683. : K
  684. }[keyof T]
  685. /**
  686. * Convert tuple to union
  687. */
  688. type _TupleToUnion<T> = T extends (infer E)[] ? E : never
  689. type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
  690. type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
  691. /**
  692. * Like `Pick`, but additionally can also accept an array of keys
  693. */
  694. type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
  695. /**
  696. * Exclude all keys with underscores
  697. */
  698. type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
  699. export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
  700. type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
  701. export const ModelName: {
  702. Workspace: 'Workspace',
  703. ManualRelanceLog: 'ManualRelanceLog',
  704. Contributor: 'Contributor',
  705. Idea: 'Idea',
  706. Post: 'Post',
  707. Account: 'Account',
  708. Session: 'Session',
  709. User: 'User',
  710. VerificationToken: 'VerificationToken',
  711. IdeaAttachment: 'IdeaAttachment',
  712. QualificationQuestion: 'QualificationQuestion',
  713. LibraryCase: 'LibraryCase',
  714. ShareLink: 'ShareLink'
  715. };
  716. export type ModelName = (typeof ModelName)[keyof typeof ModelName]
  717. export type Datasources = {
  718. db?: Datasource
  719. }
  720. interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
  721. returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
  722. }
  723. export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
  724. globalOmitOptions: {
  725. omit: GlobalOmitOptions
  726. }
  727. meta: {
  728. modelProps: "workspace" | "manualRelanceLog" | "contributor" | "idea" | "post" | "account" | "session" | "user" | "verificationToken" | "ideaAttachment" | "qualificationQuestion" | "libraryCase" | "shareLink"
  729. txIsolationLevel: Prisma.TransactionIsolationLevel
  730. }
  731. model: {
  732. Workspace: {
  733. payload: Prisma.$WorkspacePayload<ExtArgs>
  734. fields: Prisma.WorkspaceFieldRefs
  735. operations: {
  736. findUnique: {
  737. args: Prisma.WorkspaceFindUniqueArgs<ExtArgs>
  738. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload> | null
  739. }
  740. findUniqueOrThrow: {
  741. args: Prisma.WorkspaceFindUniqueOrThrowArgs<ExtArgs>
  742. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  743. }
  744. findFirst: {
  745. args: Prisma.WorkspaceFindFirstArgs<ExtArgs>
  746. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload> | null
  747. }
  748. findFirstOrThrow: {
  749. args: Prisma.WorkspaceFindFirstOrThrowArgs<ExtArgs>
  750. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  751. }
  752. findMany: {
  753. args: Prisma.WorkspaceFindManyArgs<ExtArgs>
  754. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  755. }
  756. create: {
  757. args: Prisma.WorkspaceCreateArgs<ExtArgs>
  758. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  759. }
  760. createMany: {
  761. args: Prisma.WorkspaceCreateManyArgs<ExtArgs>
  762. result: BatchPayload
  763. }
  764. createManyAndReturn: {
  765. args: Prisma.WorkspaceCreateManyAndReturnArgs<ExtArgs>
  766. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  767. }
  768. delete: {
  769. args: Prisma.WorkspaceDeleteArgs<ExtArgs>
  770. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  771. }
  772. update: {
  773. args: Prisma.WorkspaceUpdateArgs<ExtArgs>
  774. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  775. }
  776. deleteMany: {
  777. args: Prisma.WorkspaceDeleteManyArgs<ExtArgs>
  778. result: BatchPayload
  779. }
  780. updateMany: {
  781. args: Prisma.WorkspaceUpdateManyArgs<ExtArgs>
  782. result: BatchPayload
  783. }
  784. updateManyAndReturn: {
  785. args: Prisma.WorkspaceUpdateManyAndReturnArgs<ExtArgs>
  786. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  787. }
  788. upsert: {
  789. args: Prisma.WorkspaceUpsertArgs<ExtArgs>
  790. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  791. }
  792. aggregate: {
  793. args: Prisma.WorkspaceAggregateArgs<ExtArgs>
  794. result: $Utils.Optional<AggregateWorkspace>
  795. }
  796. groupBy: {
  797. args: Prisma.WorkspaceGroupByArgs<ExtArgs>
  798. result: $Utils.Optional<WorkspaceGroupByOutputType>[]
  799. }
  800. count: {
  801. args: Prisma.WorkspaceCountArgs<ExtArgs>
  802. result: $Utils.Optional<WorkspaceCountAggregateOutputType> | number
  803. }
  804. }
  805. }
  806. ManualRelanceLog: {
  807. payload: Prisma.$ManualRelanceLogPayload<ExtArgs>
  808. fields: Prisma.ManualRelanceLogFieldRefs
  809. operations: {
  810. findUnique: {
  811. args: Prisma.ManualRelanceLogFindUniqueArgs<ExtArgs>
  812. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload> | null
  813. }
  814. findUniqueOrThrow: {
  815. args: Prisma.ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs>
  816. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  817. }
  818. findFirst: {
  819. args: Prisma.ManualRelanceLogFindFirstArgs<ExtArgs>
  820. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload> | null
  821. }
  822. findFirstOrThrow: {
  823. args: Prisma.ManualRelanceLogFindFirstOrThrowArgs<ExtArgs>
  824. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  825. }
  826. findMany: {
  827. args: Prisma.ManualRelanceLogFindManyArgs<ExtArgs>
  828. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  829. }
  830. create: {
  831. args: Prisma.ManualRelanceLogCreateArgs<ExtArgs>
  832. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  833. }
  834. createMany: {
  835. args: Prisma.ManualRelanceLogCreateManyArgs<ExtArgs>
  836. result: BatchPayload
  837. }
  838. createManyAndReturn: {
  839. args: Prisma.ManualRelanceLogCreateManyAndReturnArgs<ExtArgs>
  840. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  841. }
  842. delete: {
  843. args: Prisma.ManualRelanceLogDeleteArgs<ExtArgs>
  844. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  845. }
  846. update: {
  847. args: Prisma.ManualRelanceLogUpdateArgs<ExtArgs>
  848. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  849. }
  850. deleteMany: {
  851. args: Prisma.ManualRelanceLogDeleteManyArgs<ExtArgs>
  852. result: BatchPayload
  853. }
  854. updateMany: {
  855. args: Prisma.ManualRelanceLogUpdateManyArgs<ExtArgs>
  856. result: BatchPayload
  857. }
  858. updateManyAndReturn: {
  859. args: Prisma.ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs>
  860. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  861. }
  862. upsert: {
  863. args: Prisma.ManualRelanceLogUpsertArgs<ExtArgs>
  864. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  865. }
  866. aggregate: {
  867. args: Prisma.ManualRelanceLogAggregateArgs<ExtArgs>
  868. result: $Utils.Optional<AggregateManualRelanceLog>
  869. }
  870. groupBy: {
  871. args: Prisma.ManualRelanceLogGroupByArgs<ExtArgs>
  872. result: $Utils.Optional<ManualRelanceLogGroupByOutputType>[]
  873. }
  874. count: {
  875. args: Prisma.ManualRelanceLogCountArgs<ExtArgs>
  876. result: $Utils.Optional<ManualRelanceLogCountAggregateOutputType> | number
  877. }
  878. }
  879. }
  880. Contributor: {
  881. payload: Prisma.$ContributorPayload<ExtArgs>
  882. fields: Prisma.ContributorFieldRefs
  883. operations: {
  884. findUnique: {
  885. args: Prisma.ContributorFindUniqueArgs<ExtArgs>
  886. result: $Utils.PayloadToResult<Prisma.$ContributorPayload> | null
  887. }
  888. findUniqueOrThrow: {
  889. args: Prisma.ContributorFindUniqueOrThrowArgs<ExtArgs>
  890. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  891. }
  892. findFirst: {
  893. args: Prisma.ContributorFindFirstArgs<ExtArgs>
  894. result: $Utils.PayloadToResult<Prisma.$ContributorPayload> | null
  895. }
  896. findFirstOrThrow: {
  897. args: Prisma.ContributorFindFirstOrThrowArgs<ExtArgs>
  898. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  899. }
  900. findMany: {
  901. args: Prisma.ContributorFindManyArgs<ExtArgs>
  902. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  903. }
  904. create: {
  905. args: Prisma.ContributorCreateArgs<ExtArgs>
  906. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  907. }
  908. createMany: {
  909. args: Prisma.ContributorCreateManyArgs<ExtArgs>
  910. result: BatchPayload
  911. }
  912. createManyAndReturn: {
  913. args: Prisma.ContributorCreateManyAndReturnArgs<ExtArgs>
  914. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  915. }
  916. delete: {
  917. args: Prisma.ContributorDeleteArgs<ExtArgs>
  918. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  919. }
  920. update: {
  921. args: Prisma.ContributorUpdateArgs<ExtArgs>
  922. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  923. }
  924. deleteMany: {
  925. args: Prisma.ContributorDeleteManyArgs<ExtArgs>
  926. result: BatchPayload
  927. }
  928. updateMany: {
  929. args: Prisma.ContributorUpdateManyArgs<ExtArgs>
  930. result: BatchPayload
  931. }
  932. updateManyAndReturn: {
  933. args: Prisma.ContributorUpdateManyAndReturnArgs<ExtArgs>
  934. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  935. }
  936. upsert: {
  937. args: Prisma.ContributorUpsertArgs<ExtArgs>
  938. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  939. }
  940. aggregate: {
  941. args: Prisma.ContributorAggregateArgs<ExtArgs>
  942. result: $Utils.Optional<AggregateContributor>
  943. }
  944. groupBy: {
  945. args: Prisma.ContributorGroupByArgs<ExtArgs>
  946. result: $Utils.Optional<ContributorGroupByOutputType>[]
  947. }
  948. count: {
  949. args: Prisma.ContributorCountArgs<ExtArgs>
  950. result: $Utils.Optional<ContributorCountAggregateOutputType> | number
  951. }
  952. }
  953. }
  954. Idea: {
  955. payload: Prisma.$IdeaPayload<ExtArgs>
  956. fields: Prisma.IdeaFieldRefs
  957. operations: {
  958. findUnique: {
  959. args: Prisma.IdeaFindUniqueArgs<ExtArgs>
  960. result: $Utils.PayloadToResult<Prisma.$IdeaPayload> | null
  961. }
  962. findUniqueOrThrow: {
  963. args: Prisma.IdeaFindUniqueOrThrowArgs<ExtArgs>
  964. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  965. }
  966. findFirst: {
  967. args: Prisma.IdeaFindFirstArgs<ExtArgs>
  968. result: $Utils.PayloadToResult<Prisma.$IdeaPayload> | null
  969. }
  970. findFirstOrThrow: {
  971. args: Prisma.IdeaFindFirstOrThrowArgs<ExtArgs>
  972. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  973. }
  974. findMany: {
  975. args: Prisma.IdeaFindManyArgs<ExtArgs>
  976. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  977. }
  978. create: {
  979. args: Prisma.IdeaCreateArgs<ExtArgs>
  980. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  981. }
  982. createMany: {
  983. args: Prisma.IdeaCreateManyArgs<ExtArgs>
  984. result: BatchPayload
  985. }
  986. createManyAndReturn: {
  987. args: Prisma.IdeaCreateManyAndReturnArgs<ExtArgs>
  988. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  989. }
  990. delete: {
  991. args: Prisma.IdeaDeleteArgs<ExtArgs>
  992. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  993. }
  994. update: {
  995. args: Prisma.IdeaUpdateArgs<ExtArgs>
  996. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  997. }
  998. deleteMany: {
  999. args: Prisma.IdeaDeleteManyArgs<ExtArgs>
  1000. result: BatchPayload
  1001. }
  1002. updateMany: {
  1003. args: Prisma.IdeaUpdateManyArgs<ExtArgs>
  1004. result: BatchPayload
  1005. }
  1006. updateManyAndReturn: {
  1007. args: Prisma.IdeaUpdateManyAndReturnArgs<ExtArgs>
  1008. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  1009. }
  1010. upsert: {
  1011. args: Prisma.IdeaUpsertArgs<ExtArgs>
  1012. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  1013. }
  1014. aggregate: {
  1015. args: Prisma.IdeaAggregateArgs<ExtArgs>
  1016. result: $Utils.Optional<AggregateIdea>
  1017. }
  1018. groupBy: {
  1019. args: Prisma.IdeaGroupByArgs<ExtArgs>
  1020. result: $Utils.Optional<IdeaGroupByOutputType>[]
  1021. }
  1022. count: {
  1023. args: Prisma.IdeaCountArgs<ExtArgs>
  1024. result: $Utils.Optional<IdeaCountAggregateOutputType> | number
  1025. }
  1026. }
  1027. }
  1028. Post: {
  1029. payload: Prisma.$PostPayload<ExtArgs>
  1030. fields: Prisma.PostFieldRefs
  1031. operations: {
  1032. findUnique: {
  1033. args: Prisma.PostFindUniqueArgs<ExtArgs>
  1034. result: $Utils.PayloadToResult<Prisma.$PostPayload> | null
  1035. }
  1036. findUniqueOrThrow: {
  1037. args: Prisma.PostFindUniqueOrThrowArgs<ExtArgs>
  1038. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1039. }
  1040. findFirst: {
  1041. args: Prisma.PostFindFirstArgs<ExtArgs>
  1042. result: $Utils.PayloadToResult<Prisma.$PostPayload> | null
  1043. }
  1044. findFirstOrThrow: {
  1045. args: Prisma.PostFindFirstOrThrowArgs<ExtArgs>
  1046. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1047. }
  1048. findMany: {
  1049. args: Prisma.PostFindManyArgs<ExtArgs>
  1050. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1051. }
  1052. create: {
  1053. args: Prisma.PostCreateArgs<ExtArgs>
  1054. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1055. }
  1056. createMany: {
  1057. args: Prisma.PostCreateManyArgs<ExtArgs>
  1058. result: BatchPayload
  1059. }
  1060. createManyAndReturn: {
  1061. args: Prisma.PostCreateManyAndReturnArgs<ExtArgs>
  1062. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1063. }
  1064. delete: {
  1065. args: Prisma.PostDeleteArgs<ExtArgs>
  1066. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1067. }
  1068. update: {
  1069. args: Prisma.PostUpdateArgs<ExtArgs>
  1070. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1071. }
  1072. deleteMany: {
  1073. args: Prisma.PostDeleteManyArgs<ExtArgs>
  1074. result: BatchPayload
  1075. }
  1076. updateMany: {
  1077. args: Prisma.PostUpdateManyArgs<ExtArgs>
  1078. result: BatchPayload
  1079. }
  1080. updateManyAndReturn: {
  1081. args: Prisma.PostUpdateManyAndReturnArgs<ExtArgs>
  1082. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1083. }
  1084. upsert: {
  1085. args: Prisma.PostUpsertArgs<ExtArgs>
  1086. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1087. }
  1088. aggregate: {
  1089. args: Prisma.PostAggregateArgs<ExtArgs>
  1090. result: $Utils.Optional<AggregatePost>
  1091. }
  1092. groupBy: {
  1093. args: Prisma.PostGroupByArgs<ExtArgs>
  1094. result: $Utils.Optional<PostGroupByOutputType>[]
  1095. }
  1096. count: {
  1097. args: Prisma.PostCountArgs<ExtArgs>
  1098. result: $Utils.Optional<PostCountAggregateOutputType> | number
  1099. }
  1100. }
  1101. }
  1102. Account: {
  1103. payload: Prisma.$AccountPayload<ExtArgs>
  1104. fields: Prisma.AccountFieldRefs
  1105. operations: {
  1106. findUnique: {
  1107. args: Prisma.AccountFindUniqueArgs<ExtArgs>
  1108. result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
  1109. }
  1110. findUniqueOrThrow: {
  1111. args: Prisma.AccountFindUniqueOrThrowArgs<ExtArgs>
  1112. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1113. }
  1114. findFirst: {
  1115. args: Prisma.AccountFindFirstArgs<ExtArgs>
  1116. result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
  1117. }
  1118. findFirstOrThrow: {
  1119. args: Prisma.AccountFindFirstOrThrowArgs<ExtArgs>
  1120. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1121. }
  1122. findMany: {
  1123. args: Prisma.AccountFindManyArgs<ExtArgs>
  1124. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1125. }
  1126. create: {
  1127. args: Prisma.AccountCreateArgs<ExtArgs>
  1128. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1129. }
  1130. createMany: {
  1131. args: Prisma.AccountCreateManyArgs<ExtArgs>
  1132. result: BatchPayload
  1133. }
  1134. createManyAndReturn: {
  1135. args: Prisma.AccountCreateManyAndReturnArgs<ExtArgs>
  1136. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1137. }
  1138. delete: {
  1139. args: Prisma.AccountDeleteArgs<ExtArgs>
  1140. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1141. }
  1142. update: {
  1143. args: Prisma.AccountUpdateArgs<ExtArgs>
  1144. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1145. }
  1146. deleteMany: {
  1147. args: Prisma.AccountDeleteManyArgs<ExtArgs>
  1148. result: BatchPayload
  1149. }
  1150. updateMany: {
  1151. args: Prisma.AccountUpdateManyArgs<ExtArgs>
  1152. result: BatchPayload
  1153. }
  1154. updateManyAndReturn: {
  1155. args: Prisma.AccountUpdateManyAndReturnArgs<ExtArgs>
  1156. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1157. }
  1158. upsert: {
  1159. args: Prisma.AccountUpsertArgs<ExtArgs>
  1160. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1161. }
  1162. aggregate: {
  1163. args: Prisma.AccountAggregateArgs<ExtArgs>
  1164. result: $Utils.Optional<AggregateAccount>
  1165. }
  1166. groupBy: {
  1167. args: Prisma.AccountGroupByArgs<ExtArgs>
  1168. result: $Utils.Optional<AccountGroupByOutputType>[]
  1169. }
  1170. count: {
  1171. args: Prisma.AccountCountArgs<ExtArgs>
  1172. result: $Utils.Optional<AccountCountAggregateOutputType> | number
  1173. }
  1174. }
  1175. }
  1176. Session: {
  1177. payload: Prisma.$SessionPayload<ExtArgs>
  1178. fields: Prisma.SessionFieldRefs
  1179. operations: {
  1180. findUnique: {
  1181. args: Prisma.SessionFindUniqueArgs<ExtArgs>
  1182. result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
  1183. }
  1184. findUniqueOrThrow: {
  1185. args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
  1186. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1187. }
  1188. findFirst: {
  1189. args: Prisma.SessionFindFirstArgs<ExtArgs>
  1190. result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
  1191. }
  1192. findFirstOrThrow: {
  1193. args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
  1194. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1195. }
  1196. findMany: {
  1197. args: Prisma.SessionFindManyArgs<ExtArgs>
  1198. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1199. }
  1200. create: {
  1201. args: Prisma.SessionCreateArgs<ExtArgs>
  1202. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1203. }
  1204. createMany: {
  1205. args: Prisma.SessionCreateManyArgs<ExtArgs>
  1206. result: BatchPayload
  1207. }
  1208. createManyAndReturn: {
  1209. args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>
  1210. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1211. }
  1212. delete: {
  1213. args: Prisma.SessionDeleteArgs<ExtArgs>
  1214. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1215. }
  1216. update: {
  1217. args: Prisma.SessionUpdateArgs<ExtArgs>
  1218. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1219. }
  1220. deleteMany: {
  1221. args: Prisma.SessionDeleteManyArgs<ExtArgs>
  1222. result: BatchPayload
  1223. }
  1224. updateMany: {
  1225. args: Prisma.SessionUpdateManyArgs<ExtArgs>
  1226. result: BatchPayload
  1227. }
  1228. updateManyAndReturn: {
  1229. args: Prisma.SessionUpdateManyAndReturnArgs<ExtArgs>
  1230. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1231. }
  1232. upsert: {
  1233. args: Prisma.SessionUpsertArgs<ExtArgs>
  1234. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1235. }
  1236. aggregate: {
  1237. args: Prisma.SessionAggregateArgs<ExtArgs>
  1238. result: $Utils.Optional<AggregateSession>
  1239. }
  1240. groupBy: {
  1241. args: Prisma.SessionGroupByArgs<ExtArgs>
  1242. result: $Utils.Optional<SessionGroupByOutputType>[]
  1243. }
  1244. count: {
  1245. args: Prisma.SessionCountArgs<ExtArgs>
  1246. result: $Utils.Optional<SessionCountAggregateOutputType> | number
  1247. }
  1248. }
  1249. }
  1250. User: {
  1251. payload: Prisma.$UserPayload<ExtArgs>
  1252. fields: Prisma.UserFieldRefs
  1253. operations: {
  1254. findUnique: {
  1255. args: Prisma.UserFindUniqueArgs<ExtArgs>
  1256. result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
  1257. }
  1258. findUniqueOrThrow: {
  1259. args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
  1260. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1261. }
  1262. findFirst: {
  1263. args: Prisma.UserFindFirstArgs<ExtArgs>
  1264. result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
  1265. }
  1266. findFirstOrThrow: {
  1267. args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
  1268. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1269. }
  1270. findMany: {
  1271. args: Prisma.UserFindManyArgs<ExtArgs>
  1272. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1273. }
  1274. create: {
  1275. args: Prisma.UserCreateArgs<ExtArgs>
  1276. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1277. }
  1278. createMany: {
  1279. args: Prisma.UserCreateManyArgs<ExtArgs>
  1280. result: BatchPayload
  1281. }
  1282. createManyAndReturn: {
  1283. args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
  1284. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1285. }
  1286. delete: {
  1287. args: Prisma.UserDeleteArgs<ExtArgs>
  1288. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1289. }
  1290. update: {
  1291. args: Prisma.UserUpdateArgs<ExtArgs>
  1292. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1293. }
  1294. deleteMany: {
  1295. args: Prisma.UserDeleteManyArgs<ExtArgs>
  1296. result: BatchPayload
  1297. }
  1298. updateMany: {
  1299. args: Prisma.UserUpdateManyArgs<ExtArgs>
  1300. result: BatchPayload
  1301. }
  1302. updateManyAndReturn: {
  1303. args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
  1304. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1305. }
  1306. upsert: {
  1307. args: Prisma.UserUpsertArgs<ExtArgs>
  1308. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1309. }
  1310. aggregate: {
  1311. args: Prisma.UserAggregateArgs<ExtArgs>
  1312. result: $Utils.Optional<AggregateUser>
  1313. }
  1314. groupBy: {
  1315. args: Prisma.UserGroupByArgs<ExtArgs>
  1316. result: $Utils.Optional<UserGroupByOutputType>[]
  1317. }
  1318. count: {
  1319. args: Prisma.UserCountArgs<ExtArgs>
  1320. result: $Utils.Optional<UserCountAggregateOutputType> | number
  1321. }
  1322. }
  1323. }
  1324. VerificationToken: {
  1325. payload: Prisma.$VerificationTokenPayload<ExtArgs>
  1326. fields: Prisma.VerificationTokenFieldRefs
  1327. operations: {
  1328. findUnique: {
  1329. args: Prisma.VerificationTokenFindUniqueArgs<ExtArgs>
  1330. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
  1331. }
  1332. findUniqueOrThrow: {
  1333. args: Prisma.VerificationTokenFindUniqueOrThrowArgs<ExtArgs>
  1334. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1335. }
  1336. findFirst: {
  1337. args: Prisma.VerificationTokenFindFirstArgs<ExtArgs>
  1338. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
  1339. }
  1340. findFirstOrThrow: {
  1341. args: Prisma.VerificationTokenFindFirstOrThrowArgs<ExtArgs>
  1342. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1343. }
  1344. findMany: {
  1345. args: Prisma.VerificationTokenFindManyArgs<ExtArgs>
  1346. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1347. }
  1348. create: {
  1349. args: Prisma.VerificationTokenCreateArgs<ExtArgs>
  1350. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1351. }
  1352. createMany: {
  1353. args: Prisma.VerificationTokenCreateManyArgs<ExtArgs>
  1354. result: BatchPayload
  1355. }
  1356. createManyAndReturn: {
  1357. args: Prisma.VerificationTokenCreateManyAndReturnArgs<ExtArgs>
  1358. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1359. }
  1360. delete: {
  1361. args: Prisma.VerificationTokenDeleteArgs<ExtArgs>
  1362. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1363. }
  1364. update: {
  1365. args: Prisma.VerificationTokenUpdateArgs<ExtArgs>
  1366. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1367. }
  1368. deleteMany: {
  1369. args: Prisma.VerificationTokenDeleteManyArgs<ExtArgs>
  1370. result: BatchPayload
  1371. }
  1372. updateMany: {
  1373. args: Prisma.VerificationTokenUpdateManyArgs<ExtArgs>
  1374. result: BatchPayload
  1375. }
  1376. updateManyAndReturn: {
  1377. args: Prisma.VerificationTokenUpdateManyAndReturnArgs<ExtArgs>
  1378. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1379. }
  1380. upsert: {
  1381. args: Prisma.VerificationTokenUpsertArgs<ExtArgs>
  1382. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1383. }
  1384. aggregate: {
  1385. args: Prisma.VerificationTokenAggregateArgs<ExtArgs>
  1386. result: $Utils.Optional<AggregateVerificationToken>
  1387. }
  1388. groupBy: {
  1389. args: Prisma.VerificationTokenGroupByArgs<ExtArgs>
  1390. result: $Utils.Optional<VerificationTokenGroupByOutputType>[]
  1391. }
  1392. count: {
  1393. args: Prisma.VerificationTokenCountArgs<ExtArgs>
  1394. result: $Utils.Optional<VerificationTokenCountAggregateOutputType> | number
  1395. }
  1396. }
  1397. }
  1398. IdeaAttachment: {
  1399. payload: Prisma.$IdeaAttachmentPayload<ExtArgs>
  1400. fields: Prisma.IdeaAttachmentFieldRefs
  1401. operations: {
  1402. findUnique: {
  1403. args: Prisma.IdeaAttachmentFindUniqueArgs<ExtArgs>
  1404. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload> | null
  1405. }
  1406. findUniqueOrThrow: {
  1407. args: Prisma.IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs>
  1408. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1409. }
  1410. findFirst: {
  1411. args: Prisma.IdeaAttachmentFindFirstArgs<ExtArgs>
  1412. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload> | null
  1413. }
  1414. findFirstOrThrow: {
  1415. args: Prisma.IdeaAttachmentFindFirstOrThrowArgs<ExtArgs>
  1416. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1417. }
  1418. findMany: {
  1419. args: Prisma.IdeaAttachmentFindManyArgs<ExtArgs>
  1420. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1421. }
  1422. create: {
  1423. args: Prisma.IdeaAttachmentCreateArgs<ExtArgs>
  1424. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1425. }
  1426. createMany: {
  1427. args: Prisma.IdeaAttachmentCreateManyArgs<ExtArgs>
  1428. result: BatchPayload
  1429. }
  1430. createManyAndReturn: {
  1431. args: Prisma.IdeaAttachmentCreateManyAndReturnArgs<ExtArgs>
  1432. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1433. }
  1434. delete: {
  1435. args: Prisma.IdeaAttachmentDeleteArgs<ExtArgs>
  1436. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1437. }
  1438. update: {
  1439. args: Prisma.IdeaAttachmentUpdateArgs<ExtArgs>
  1440. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1441. }
  1442. deleteMany: {
  1443. args: Prisma.IdeaAttachmentDeleteManyArgs<ExtArgs>
  1444. result: BatchPayload
  1445. }
  1446. updateMany: {
  1447. args: Prisma.IdeaAttachmentUpdateManyArgs<ExtArgs>
  1448. result: BatchPayload
  1449. }
  1450. updateManyAndReturn: {
  1451. args: Prisma.IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs>
  1452. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1453. }
  1454. upsert: {
  1455. args: Prisma.IdeaAttachmentUpsertArgs<ExtArgs>
  1456. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1457. }
  1458. aggregate: {
  1459. args: Prisma.IdeaAttachmentAggregateArgs<ExtArgs>
  1460. result: $Utils.Optional<AggregateIdeaAttachment>
  1461. }
  1462. groupBy: {
  1463. args: Prisma.IdeaAttachmentGroupByArgs<ExtArgs>
  1464. result: $Utils.Optional<IdeaAttachmentGroupByOutputType>[]
  1465. }
  1466. count: {
  1467. args: Prisma.IdeaAttachmentCountArgs<ExtArgs>
  1468. result: $Utils.Optional<IdeaAttachmentCountAggregateOutputType> | number
  1469. }
  1470. }
  1471. }
  1472. QualificationQuestion: {
  1473. payload: Prisma.$QualificationQuestionPayload<ExtArgs>
  1474. fields: Prisma.QualificationQuestionFieldRefs
  1475. operations: {
  1476. findUnique: {
  1477. args: Prisma.QualificationQuestionFindUniqueArgs<ExtArgs>
  1478. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload> | null
  1479. }
  1480. findUniqueOrThrow: {
  1481. args: Prisma.QualificationQuestionFindUniqueOrThrowArgs<ExtArgs>
  1482. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1483. }
  1484. findFirst: {
  1485. args: Prisma.QualificationQuestionFindFirstArgs<ExtArgs>
  1486. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload> | null
  1487. }
  1488. findFirstOrThrow: {
  1489. args: Prisma.QualificationQuestionFindFirstOrThrowArgs<ExtArgs>
  1490. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1491. }
  1492. findMany: {
  1493. args: Prisma.QualificationQuestionFindManyArgs<ExtArgs>
  1494. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1495. }
  1496. create: {
  1497. args: Prisma.QualificationQuestionCreateArgs<ExtArgs>
  1498. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1499. }
  1500. createMany: {
  1501. args: Prisma.QualificationQuestionCreateManyArgs<ExtArgs>
  1502. result: BatchPayload
  1503. }
  1504. createManyAndReturn: {
  1505. args: Prisma.QualificationQuestionCreateManyAndReturnArgs<ExtArgs>
  1506. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1507. }
  1508. delete: {
  1509. args: Prisma.QualificationQuestionDeleteArgs<ExtArgs>
  1510. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1511. }
  1512. update: {
  1513. args: Prisma.QualificationQuestionUpdateArgs<ExtArgs>
  1514. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1515. }
  1516. deleteMany: {
  1517. args: Prisma.QualificationQuestionDeleteManyArgs<ExtArgs>
  1518. result: BatchPayload
  1519. }
  1520. updateMany: {
  1521. args: Prisma.QualificationQuestionUpdateManyArgs<ExtArgs>
  1522. result: BatchPayload
  1523. }
  1524. updateManyAndReturn: {
  1525. args: Prisma.QualificationQuestionUpdateManyAndReturnArgs<ExtArgs>
  1526. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1527. }
  1528. upsert: {
  1529. args: Prisma.QualificationQuestionUpsertArgs<ExtArgs>
  1530. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1531. }
  1532. aggregate: {
  1533. args: Prisma.QualificationQuestionAggregateArgs<ExtArgs>
  1534. result: $Utils.Optional<AggregateQualificationQuestion>
  1535. }
  1536. groupBy: {
  1537. args: Prisma.QualificationQuestionGroupByArgs<ExtArgs>
  1538. result: $Utils.Optional<QualificationQuestionGroupByOutputType>[]
  1539. }
  1540. count: {
  1541. args: Prisma.QualificationQuestionCountArgs<ExtArgs>
  1542. result: $Utils.Optional<QualificationQuestionCountAggregateOutputType> | number
  1543. }
  1544. }
  1545. }
  1546. LibraryCase: {
  1547. payload: Prisma.$LibraryCasePayload<ExtArgs>
  1548. fields: Prisma.LibraryCaseFieldRefs
  1549. operations: {
  1550. findUnique: {
  1551. args: Prisma.LibraryCaseFindUniqueArgs<ExtArgs>
  1552. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload> | null
  1553. }
  1554. findUniqueOrThrow: {
  1555. args: Prisma.LibraryCaseFindUniqueOrThrowArgs<ExtArgs>
  1556. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1557. }
  1558. findFirst: {
  1559. args: Prisma.LibraryCaseFindFirstArgs<ExtArgs>
  1560. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload> | null
  1561. }
  1562. findFirstOrThrow: {
  1563. args: Prisma.LibraryCaseFindFirstOrThrowArgs<ExtArgs>
  1564. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1565. }
  1566. findMany: {
  1567. args: Prisma.LibraryCaseFindManyArgs<ExtArgs>
  1568. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1569. }
  1570. create: {
  1571. args: Prisma.LibraryCaseCreateArgs<ExtArgs>
  1572. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1573. }
  1574. createMany: {
  1575. args: Prisma.LibraryCaseCreateManyArgs<ExtArgs>
  1576. result: BatchPayload
  1577. }
  1578. createManyAndReturn: {
  1579. args: Prisma.LibraryCaseCreateManyAndReturnArgs<ExtArgs>
  1580. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1581. }
  1582. delete: {
  1583. args: Prisma.LibraryCaseDeleteArgs<ExtArgs>
  1584. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1585. }
  1586. update: {
  1587. args: Prisma.LibraryCaseUpdateArgs<ExtArgs>
  1588. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1589. }
  1590. deleteMany: {
  1591. args: Prisma.LibraryCaseDeleteManyArgs<ExtArgs>
  1592. result: BatchPayload
  1593. }
  1594. updateMany: {
  1595. args: Prisma.LibraryCaseUpdateManyArgs<ExtArgs>
  1596. result: BatchPayload
  1597. }
  1598. updateManyAndReturn: {
  1599. args: Prisma.LibraryCaseUpdateManyAndReturnArgs<ExtArgs>
  1600. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1601. }
  1602. upsert: {
  1603. args: Prisma.LibraryCaseUpsertArgs<ExtArgs>
  1604. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1605. }
  1606. aggregate: {
  1607. args: Prisma.LibraryCaseAggregateArgs<ExtArgs>
  1608. result: $Utils.Optional<AggregateLibraryCase>
  1609. }
  1610. groupBy: {
  1611. args: Prisma.LibraryCaseGroupByArgs<ExtArgs>
  1612. result: $Utils.Optional<LibraryCaseGroupByOutputType>[]
  1613. }
  1614. count: {
  1615. args: Prisma.LibraryCaseCountArgs<ExtArgs>
  1616. result: $Utils.Optional<LibraryCaseCountAggregateOutputType> | number
  1617. }
  1618. }
  1619. }
  1620. ShareLink: {
  1621. payload: Prisma.$ShareLinkPayload<ExtArgs>
  1622. fields: Prisma.ShareLinkFieldRefs
  1623. operations: {
  1624. findUnique: {
  1625. args: Prisma.ShareLinkFindUniqueArgs<ExtArgs>
  1626. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload> | null
  1627. }
  1628. findUniqueOrThrow: {
  1629. args: Prisma.ShareLinkFindUniqueOrThrowArgs<ExtArgs>
  1630. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1631. }
  1632. findFirst: {
  1633. args: Prisma.ShareLinkFindFirstArgs<ExtArgs>
  1634. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload> | null
  1635. }
  1636. findFirstOrThrow: {
  1637. args: Prisma.ShareLinkFindFirstOrThrowArgs<ExtArgs>
  1638. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1639. }
  1640. findMany: {
  1641. args: Prisma.ShareLinkFindManyArgs<ExtArgs>
  1642. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1643. }
  1644. create: {
  1645. args: Prisma.ShareLinkCreateArgs<ExtArgs>
  1646. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1647. }
  1648. createMany: {
  1649. args: Prisma.ShareLinkCreateManyArgs<ExtArgs>
  1650. result: BatchPayload
  1651. }
  1652. createManyAndReturn: {
  1653. args: Prisma.ShareLinkCreateManyAndReturnArgs<ExtArgs>
  1654. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1655. }
  1656. delete: {
  1657. args: Prisma.ShareLinkDeleteArgs<ExtArgs>
  1658. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1659. }
  1660. update: {
  1661. args: Prisma.ShareLinkUpdateArgs<ExtArgs>
  1662. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1663. }
  1664. deleteMany: {
  1665. args: Prisma.ShareLinkDeleteManyArgs<ExtArgs>
  1666. result: BatchPayload
  1667. }
  1668. updateMany: {
  1669. args: Prisma.ShareLinkUpdateManyArgs<ExtArgs>
  1670. result: BatchPayload
  1671. }
  1672. updateManyAndReturn: {
  1673. args: Prisma.ShareLinkUpdateManyAndReturnArgs<ExtArgs>
  1674. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1675. }
  1676. upsert: {
  1677. args: Prisma.ShareLinkUpsertArgs<ExtArgs>
  1678. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1679. }
  1680. aggregate: {
  1681. args: Prisma.ShareLinkAggregateArgs<ExtArgs>
  1682. result: $Utils.Optional<AggregateShareLink>
  1683. }
  1684. groupBy: {
  1685. args: Prisma.ShareLinkGroupByArgs<ExtArgs>
  1686. result: $Utils.Optional<ShareLinkGroupByOutputType>[]
  1687. }
  1688. count: {
  1689. args: Prisma.ShareLinkCountArgs<ExtArgs>
  1690. result: $Utils.Optional<ShareLinkCountAggregateOutputType> | number
  1691. }
  1692. }
  1693. }
  1694. }
  1695. } & {
  1696. other: {
  1697. payload: any
  1698. operations: {
  1699. $executeRaw: {
  1700. args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
  1701. result: any
  1702. }
  1703. $executeRawUnsafe: {
  1704. args: [query: string, ...values: any[]],
  1705. result: any
  1706. }
  1707. $queryRaw: {
  1708. args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
  1709. result: any
  1710. }
  1711. $queryRawUnsafe: {
  1712. args: [query: string, ...values: any[]],
  1713. result: any
  1714. }
  1715. }
  1716. }
  1717. }
  1718. export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
  1719. export type DefaultPrismaClient = PrismaClient
  1720. export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
  1721. export interface PrismaClientOptions {
  1722. /**
  1723. * Overwrites the datasource url from your schema.prisma file
  1724. */
  1725. datasources?: Datasources
  1726. /**
  1727. * Overwrites the datasource url from your schema.prisma file
  1728. */
  1729. datasourceUrl?: string
  1730. /**
  1731. * @default "colorless"
  1732. */
  1733. errorFormat?: ErrorFormat
  1734. /**
  1735. * @example
  1736. * ```
  1737. * // Shorthand for `emit: 'stdout'`
  1738. * log: ['query', 'info', 'warn', 'error']
  1739. *
  1740. * // Emit as events only
  1741. * log: [
  1742. * { emit: 'event', level: 'query' },
  1743. * { emit: 'event', level: 'info' },
  1744. * { emit: 'event', level: 'warn' }
  1745. * { emit: 'event', level: 'error' }
  1746. * ]
  1747. *
  1748. * / Emit as events and log to stdout
  1749. * og: [
  1750. * { emit: 'stdout', level: 'query' },
  1751. * { emit: 'stdout', level: 'info' },
  1752. * { emit: 'stdout', level: 'warn' }
  1753. * { emit: 'stdout', level: 'error' }
  1754. *
  1755. * ```
  1756. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
  1757. */
  1758. log?: (LogLevel | LogDefinition)[]
  1759. /**
  1760. * The default values for transactionOptions
  1761. * maxWait ?= 2000
  1762. * timeout ?= 5000
  1763. */
  1764. transactionOptions?: {
  1765. maxWait?: number
  1766. timeout?: number
  1767. isolationLevel?: Prisma.TransactionIsolationLevel
  1768. }
  1769. /**
  1770. * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
  1771. */
  1772. adapter?: runtime.SqlDriverAdapterFactory | null
  1773. /**
  1774. * Global configuration for omitting model fields by default.
  1775. *
  1776. * @example
  1777. * ```
  1778. * const prisma = new PrismaClient({
  1779. * omit: {
  1780. * user: {
  1781. * password: true
  1782. * }
  1783. * }
  1784. * })
  1785. * ```
  1786. */
  1787. omit?: Prisma.GlobalOmitConfig
  1788. }
  1789. export type GlobalOmitConfig = {
  1790. workspace?: WorkspaceOmit
  1791. manualRelanceLog?: ManualRelanceLogOmit
  1792. contributor?: ContributorOmit
  1793. idea?: IdeaOmit
  1794. post?: PostOmit
  1795. account?: AccountOmit
  1796. session?: SessionOmit
  1797. user?: UserOmit
  1798. verificationToken?: VerificationTokenOmit
  1799. ideaAttachment?: IdeaAttachmentOmit
  1800. qualificationQuestion?: QualificationQuestionOmit
  1801. libraryCase?: LibraryCaseOmit
  1802. shareLink?: ShareLinkOmit
  1803. }
  1804. /* Types for Logging */
  1805. export type LogLevel = 'info' | 'query' | 'warn' | 'error'
  1806. export type LogDefinition = {
  1807. level: LogLevel
  1808. emit: 'stdout' | 'event'
  1809. }
  1810. export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
  1811. export type GetLogType<T> = CheckIsLogLevel<
  1812. T extends LogDefinition ? T['level'] : T
  1813. >;
  1814. export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
  1815. ? GetLogType<T[number]>
  1816. : never;
  1817. export type QueryEvent = {
  1818. timestamp: Date
  1819. query: string
  1820. params: string
  1821. duration: number
  1822. target: string
  1823. }
  1824. export type LogEvent = {
  1825. timestamp: Date
  1826. message: string
  1827. target: string
  1828. }
  1829. /* End Types for Logging */
  1830. export type PrismaAction =
  1831. | 'findUnique'
  1832. | 'findUniqueOrThrow'
  1833. | 'findMany'
  1834. | 'findFirst'
  1835. | 'findFirstOrThrow'
  1836. | 'create'
  1837. | 'createMany'
  1838. | 'createManyAndReturn'
  1839. | 'update'
  1840. | 'updateMany'
  1841. | 'updateManyAndReturn'
  1842. | 'upsert'
  1843. | 'delete'
  1844. | 'deleteMany'
  1845. | 'executeRaw'
  1846. | 'queryRaw'
  1847. | 'aggregate'
  1848. | 'count'
  1849. | 'runCommandRaw'
  1850. | 'findRaw'
  1851. | 'groupBy'
  1852. // tested in getLogLevel.test.ts
  1853. export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
  1854. /**
  1855. * `PrismaClient` proxy available in interactive transactions.
  1856. */
  1857. export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
  1858. export type Datasource = {
  1859. url?: string
  1860. }
  1861. /**
  1862. * Count Types
  1863. */
  1864. /**
  1865. * Count Type WorkspaceCountOutputType
  1866. */
  1867. export type WorkspaceCountOutputType = {
  1868. contributors: number
  1869. ideas: number
  1870. manualRelanceLogs: number
  1871. }
  1872. export type WorkspaceCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1873. contributors?: boolean | WorkspaceCountOutputTypeCountContributorsArgs
  1874. ideas?: boolean | WorkspaceCountOutputTypeCountIdeasArgs
  1875. manualRelanceLogs?: boolean | WorkspaceCountOutputTypeCountManualRelanceLogsArgs
  1876. }
  1877. // Custom InputTypes
  1878. /**
  1879. * WorkspaceCountOutputType without action
  1880. */
  1881. export type WorkspaceCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1882. /**
  1883. * Select specific fields to fetch from the WorkspaceCountOutputType
  1884. */
  1885. select?: WorkspaceCountOutputTypeSelect<ExtArgs> | null
  1886. }
  1887. /**
  1888. * WorkspaceCountOutputType without action
  1889. */
  1890. export type WorkspaceCountOutputTypeCountContributorsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1891. where?: ContributorWhereInput
  1892. }
  1893. /**
  1894. * WorkspaceCountOutputType without action
  1895. */
  1896. export type WorkspaceCountOutputTypeCountIdeasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1897. where?: IdeaWhereInput
  1898. }
  1899. /**
  1900. * WorkspaceCountOutputType without action
  1901. */
  1902. export type WorkspaceCountOutputTypeCountManualRelanceLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1903. where?: ManualRelanceLogWhereInput
  1904. }
  1905. /**
  1906. * Count Type ContributorCountOutputType
  1907. */
  1908. export type ContributorCountOutputType = {
  1909. ideas: number
  1910. }
  1911. export type ContributorCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1912. ideas?: boolean | ContributorCountOutputTypeCountIdeasArgs
  1913. }
  1914. // Custom InputTypes
  1915. /**
  1916. * ContributorCountOutputType without action
  1917. */
  1918. export type ContributorCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1919. /**
  1920. * Select specific fields to fetch from the ContributorCountOutputType
  1921. */
  1922. select?: ContributorCountOutputTypeSelect<ExtArgs> | null
  1923. }
  1924. /**
  1925. * ContributorCountOutputType without action
  1926. */
  1927. export type ContributorCountOutputTypeCountIdeasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1928. where?: IdeaWhereInput
  1929. }
  1930. /**
  1931. * Count Type IdeaCountOutputType
  1932. */
  1933. export type IdeaCountOutputType = {
  1934. attachments: number
  1935. qualificationQuestions: number
  1936. }
  1937. export type IdeaCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1938. attachments?: boolean | IdeaCountOutputTypeCountAttachmentsArgs
  1939. qualificationQuestions?: boolean | IdeaCountOutputTypeCountQualificationQuestionsArgs
  1940. }
  1941. // Custom InputTypes
  1942. /**
  1943. * IdeaCountOutputType without action
  1944. */
  1945. export type IdeaCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1946. /**
  1947. * Select specific fields to fetch from the IdeaCountOutputType
  1948. */
  1949. select?: IdeaCountOutputTypeSelect<ExtArgs> | null
  1950. }
  1951. /**
  1952. * IdeaCountOutputType without action
  1953. */
  1954. export type IdeaCountOutputTypeCountAttachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1955. where?: IdeaAttachmentWhereInput
  1956. }
  1957. /**
  1958. * IdeaCountOutputType without action
  1959. */
  1960. export type IdeaCountOutputTypeCountQualificationQuestionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1961. where?: QualificationQuestionWhereInput
  1962. }
  1963. /**
  1964. * Count Type UserCountOutputType
  1965. */
  1966. export type UserCountOutputType = {
  1967. accounts: number
  1968. sessions: number
  1969. posts: number
  1970. }
  1971. export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1972. accounts?: boolean | UserCountOutputTypeCountAccountsArgs
  1973. sessions?: boolean | UserCountOutputTypeCountSessionsArgs
  1974. posts?: boolean | UserCountOutputTypeCountPostsArgs
  1975. }
  1976. // Custom InputTypes
  1977. /**
  1978. * UserCountOutputType without action
  1979. */
  1980. export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1981. /**
  1982. * Select specific fields to fetch from the UserCountOutputType
  1983. */
  1984. select?: UserCountOutputTypeSelect<ExtArgs> | null
  1985. }
  1986. /**
  1987. * UserCountOutputType without action
  1988. */
  1989. export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1990. where?: AccountWhereInput
  1991. }
  1992. /**
  1993. * UserCountOutputType without action
  1994. */
  1995. export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1996. where?: SessionWhereInput
  1997. }
  1998. /**
  1999. * UserCountOutputType without action
  2000. */
  2001. export type UserCountOutputTypeCountPostsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2002. where?: PostWhereInput
  2003. }
  2004. /**
  2005. * Models
  2006. */
  2007. /**
  2008. * Model Workspace
  2009. */
  2010. export type AggregateWorkspace = {
  2011. _count: WorkspaceCountAggregateOutputType | null
  2012. _avg: WorkspaceAvgAggregateOutputType | null
  2013. _sum: WorkspaceSumAggregateOutputType | null
  2014. _min: WorkspaceMinAggregateOutputType | null
  2015. _max: WorkspaceMaxAggregateOutputType | null
  2016. }
  2017. export type WorkspaceAvgAggregateOutputType = {
  2018. companySize: number | null
  2019. llmCallsThisMonth: number | null
  2020. exportsThisMonth: number | null
  2021. }
  2022. export type WorkspaceSumAggregateOutputType = {
  2023. companySize: number | null
  2024. llmCallsThisMonth: number | null
  2025. exportsThisMonth: number | null
  2026. }
  2027. export type WorkspaceMinAggregateOutputType = {
  2028. id: string | null
  2029. name: string | null
  2030. slug: string | null
  2031. sector: string | null
  2032. companySize: number | null
  2033. contactEmail: string | null
  2034. tier: $Enums.WorkspaceTier | null
  2035. llmCallsThisMonth: number | null
  2036. llmCallsResetAt: Date | null
  2037. autoRelanceEnabled: boolean | null
  2038. exportsThisMonth: number | null
  2039. exportsResetAt: Date | null
  2040. lastVisitedAt: Date | null
  2041. onboardingDismissed: boolean | null
  2042. createdAt: Date | null
  2043. updatedAt: Date | null
  2044. ownerId: string | null
  2045. }
  2046. export type WorkspaceMaxAggregateOutputType = {
  2047. id: string | null
  2048. name: string | null
  2049. slug: string | null
  2050. sector: string | null
  2051. companySize: number | null
  2052. contactEmail: string | null
  2053. tier: $Enums.WorkspaceTier | null
  2054. llmCallsThisMonth: number | null
  2055. llmCallsResetAt: Date | null
  2056. autoRelanceEnabled: boolean | null
  2057. exportsThisMonth: number | null
  2058. exportsResetAt: Date | null
  2059. lastVisitedAt: Date | null
  2060. onboardingDismissed: boolean | null
  2061. createdAt: Date | null
  2062. updatedAt: Date | null
  2063. ownerId: string | null
  2064. }
  2065. export type WorkspaceCountAggregateOutputType = {
  2066. id: number
  2067. name: number
  2068. slug: number
  2069. sector: number
  2070. companySize: number
  2071. contactEmail: number
  2072. tier: number
  2073. llmCallsThisMonth: number
  2074. llmCallsResetAt: number
  2075. autoRelanceEnabled: number
  2076. exportsThisMonth: number
  2077. exportsResetAt: number
  2078. lastVisitedAt: number
  2079. onboardingDismissed: number
  2080. createdAt: number
  2081. updatedAt: number
  2082. ownerId: number
  2083. _all: number
  2084. }
  2085. export type WorkspaceAvgAggregateInputType = {
  2086. companySize?: true
  2087. llmCallsThisMonth?: true
  2088. exportsThisMonth?: true
  2089. }
  2090. export type WorkspaceSumAggregateInputType = {
  2091. companySize?: true
  2092. llmCallsThisMonth?: true
  2093. exportsThisMonth?: true
  2094. }
  2095. export type WorkspaceMinAggregateInputType = {
  2096. id?: true
  2097. name?: true
  2098. slug?: true
  2099. sector?: true
  2100. companySize?: true
  2101. contactEmail?: true
  2102. tier?: true
  2103. llmCallsThisMonth?: true
  2104. llmCallsResetAt?: true
  2105. autoRelanceEnabled?: true
  2106. exportsThisMonth?: true
  2107. exportsResetAt?: true
  2108. lastVisitedAt?: true
  2109. onboardingDismissed?: true
  2110. createdAt?: true
  2111. updatedAt?: true
  2112. ownerId?: true
  2113. }
  2114. export type WorkspaceMaxAggregateInputType = {
  2115. id?: true
  2116. name?: true
  2117. slug?: true
  2118. sector?: true
  2119. companySize?: true
  2120. contactEmail?: true
  2121. tier?: true
  2122. llmCallsThisMonth?: true
  2123. llmCallsResetAt?: true
  2124. autoRelanceEnabled?: true
  2125. exportsThisMonth?: true
  2126. exportsResetAt?: true
  2127. lastVisitedAt?: true
  2128. onboardingDismissed?: true
  2129. createdAt?: true
  2130. updatedAt?: true
  2131. ownerId?: true
  2132. }
  2133. export type WorkspaceCountAggregateInputType = {
  2134. id?: true
  2135. name?: true
  2136. slug?: true
  2137. sector?: true
  2138. companySize?: true
  2139. contactEmail?: true
  2140. tier?: true
  2141. llmCallsThisMonth?: true
  2142. llmCallsResetAt?: true
  2143. autoRelanceEnabled?: true
  2144. exportsThisMonth?: true
  2145. exportsResetAt?: true
  2146. lastVisitedAt?: true
  2147. onboardingDismissed?: true
  2148. createdAt?: true
  2149. updatedAt?: true
  2150. ownerId?: true
  2151. _all?: true
  2152. }
  2153. export type WorkspaceAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2154. /**
  2155. * Filter which Workspace to aggregate.
  2156. */
  2157. where?: WorkspaceWhereInput
  2158. /**
  2159. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2160. *
  2161. * Determine the order of Workspaces to fetch.
  2162. */
  2163. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2164. /**
  2165. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2166. *
  2167. * Sets the start position
  2168. */
  2169. cursor?: WorkspaceWhereUniqueInput
  2170. /**
  2171. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2172. *
  2173. * Take `±n` Workspaces from the position of the cursor.
  2174. */
  2175. take?: number
  2176. /**
  2177. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2178. *
  2179. * Skip the first `n` Workspaces.
  2180. */
  2181. skip?: number
  2182. /**
  2183. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2184. *
  2185. * Count returned Workspaces
  2186. **/
  2187. _count?: true | WorkspaceCountAggregateInputType
  2188. /**
  2189. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2190. *
  2191. * Select which fields to average
  2192. **/
  2193. _avg?: WorkspaceAvgAggregateInputType
  2194. /**
  2195. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2196. *
  2197. * Select which fields to sum
  2198. **/
  2199. _sum?: WorkspaceSumAggregateInputType
  2200. /**
  2201. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2202. *
  2203. * Select which fields to find the minimum value
  2204. **/
  2205. _min?: WorkspaceMinAggregateInputType
  2206. /**
  2207. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2208. *
  2209. * Select which fields to find the maximum value
  2210. **/
  2211. _max?: WorkspaceMaxAggregateInputType
  2212. }
  2213. export type GetWorkspaceAggregateType<T extends WorkspaceAggregateArgs> = {
  2214. [P in keyof T & keyof AggregateWorkspace]: P extends '_count' | 'count'
  2215. ? T[P] extends true
  2216. ? number
  2217. : GetScalarType<T[P], AggregateWorkspace[P]>
  2218. : GetScalarType<T[P], AggregateWorkspace[P]>
  2219. }
  2220. export type WorkspaceGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2221. where?: WorkspaceWhereInput
  2222. orderBy?: WorkspaceOrderByWithAggregationInput | WorkspaceOrderByWithAggregationInput[]
  2223. by: WorkspaceScalarFieldEnum[] | WorkspaceScalarFieldEnum
  2224. having?: WorkspaceScalarWhereWithAggregatesInput
  2225. take?: number
  2226. skip?: number
  2227. _count?: WorkspaceCountAggregateInputType | true
  2228. _avg?: WorkspaceAvgAggregateInputType
  2229. _sum?: WorkspaceSumAggregateInputType
  2230. _min?: WorkspaceMinAggregateInputType
  2231. _max?: WorkspaceMaxAggregateInputType
  2232. }
  2233. export type WorkspaceGroupByOutputType = {
  2234. id: string
  2235. name: string
  2236. slug: string
  2237. sector: string | null
  2238. companySize: number | null
  2239. contactEmail: string | null
  2240. tier: $Enums.WorkspaceTier
  2241. llmCallsThisMonth: number
  2242. llmCallsResetAt: Date
  2243. autoRelanceEnabled: boolean
  2244. exportsThisMonth: number
  2245. exportsResetAt: Date
  2246. lastVisitedAt: Date | null
  2247. onboardingDismissed: boolean
  2248. createdAt: Date
  2249. updatedAt: Date
  2250. ownerId: string
  2251. _count: WorkspaceCountAggregateOutputType | null
  2252. _avg: WorkspaceAvgAggregateOutputType | null
  2253. _sum: WorkspaceSumAggregateOutputType | null
  2254. _min: WorkspaceMinAggregateOutputType | null
  2255. _max: WorkspaceMaxAggregateOutputType | null
  2256. }
  2257. type GetWorkspaceGroupByPayload<T extends WorkspaceGroupByArgs> = Prisma.PrismaPromise<
  2258. Array<
  2259. PickEnumerable<WorkspaceGroupByOutputType, T['by']> &
  2260. {
  2261. [P in ((keyof T) & (keyof WorkspaceGroupByOutputType))]: P extends '_count'
  2262. ? T[P] extends boolean
  2263. ? number
  2264. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2265. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2266. }
  2267. >
  2268. >
  2269. export type WorkspaceSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2270. id?: boolean
  2271. name?: boolean
  2272. slug?: boolean
  2273. sector?: boolean
  2274. companySize?: boolean
  2275. contactEmail?: boolean
  2276. tier?: boolean
  2277. llmCallsThisMonth?: boolean
  2278. llmCallsResetAt?: boolean
  2279. autoRelanceEnabled?: boolean
  2280. exportsThisMonth?: boolean
  2281. exportsResetAt?: boolean
  2282. lastVisitedAt?: boolean
  2283. onboardingDismissed?: boolean
  2284. createdAt?: boolean
  2285. updatedAt?: boolean
  2286. ownerId?: boolean
  2287. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2288. owner?: boolean | UserDefaultArgs<ExtArgs>
  2289. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2290. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2291. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2292. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2293. }, ExtArgs["result"]["workspace"]>
  2294. export type WorkspaceSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2295. id?: boolean
  2296. name?: boolean
  2297. slug?: boolean
  2298. sector?: boolean
  2299. companySize?: boolean
  2300. contactEmail?: boolean
  2301. tier?: boolean
  2302. llmCallsThisMonth?: boolean
  2303. llmCallsResetAt?: boolean
  2304. autoRelanceEnabled?: boolean
  2305. exportsThisMonth?: boolean
  2306. exportsResetAt?: boolean
  2307. lastVisitedAt?: boolean
  2308. onboardingDismissed?: boolean
  2309. createdAt?: boolean
  2310. updatedAt?: boolean
  2311. ownerId?: boolean
  2312. owner?: boolean | UserDefaultArgs<ExtArgs>
  2313. }, ExtArgs["result"]["workspace"]>
  2314. export type WorkspaceSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2315. id?: boolean
  2316. name?: boolean
  2317. slug?: boolean
  2318. sector?: boolean
  2319. companySize?: boolean
  2320. contactEmail?: boolean
  2321. tier?: boolean
  2322. llmCallsThisMonth?: boolean
  2323. llmCallsResetAt?: boolean
  2324. autoRelanceEnabled?: boolean
  2325. exportsThisMonth?: boolean
  2326. exportsResetAt?: boolean
  2327. lastVisitedAt?: boolean
  2328. onboardingDismissed?: boolean
  2329. createdAt?: boolean
  2330. updatedAt?: boolean
  2331. ownerId?: boolean
  2332. owner?: boolean | UserDefaultArgs<ExtArgs>
  2333. }, ExtArgs["result"]["workspace"]>
  2334. export type WorkspaceSelectScalar = {
  2335. id?: boolean
  2336. name?: boolean
  2337. slug?: boolean
  2338. sector?: boolean
  2339. companySize?: boolean
  2340. contactEmail?: boolean
  2341. tier?: boolean
  2342. llmCallsThisMonth?: boolean
  2343. llmCallsResetAt?: boolean
  2344. autoRelanceEnabled?: boolean
  2345. exportsThisMonth?: boolean
  2346. exportsResetAt?: boolean
  2347. lastVisitedAt?: boolean
  2348. onboardingDismissed?: boolean
  2349. createdAt?: boolean
  2350. updatedAt?: boolean
  2351. ownerId?: boolean
  2352. }
  2353. export type WorkspaceOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "slug" | "sector" | "companySize" | "contactEmail" | "tier" | "llmCallsThisMonth" | "llmCallsResetAt" | "autoRelanceEnabled" | "exportsThisMonth" | "exportsResetAt" | "lastVisitedAt" | "onboardingDismissed" | "createdAt" | "updatedAt" | "ownerId", ExtArgs["result"]["workspace"]>
  2354. export type WorkspaceInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2355. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2356. owner?: boolean | UserDefaultArgs<ExtArgs>
  2357. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2358. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2359. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2360. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2361. }
  2362. export type WorkspaceIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2363. owner?: boolean | UserDefaultArgs<ExtArgs>
  2364. }
  2365. export type WorkspaceIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2366. owner?: boolean | UserDefaultArgs<ExtArgs>
  2367. }
  2368. export type $WorkspacePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2369. name: "Workspace"
  2370. objects: {
  2371. shareLink: Prisma.$ShareLinkPayload<ExtArgs> | null
  2372. owner: Prisma.$UserPayload<ExtArgs>
  2373. contributors: Prisma.$ContributorPayload<ExtArgs>[]
  2374. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  2375. manualRelanceLogs: Prisma.$ManualRelanceLogPayload<ExtArgs>[]
  2376. }
  2377. scalars: $Extensions.GetPayloadResult<{
  2378. id: string
  2379. name: string
  2380. slug: string
  2381. sector: string | null
  2382. companySize: number | null
  2383. contactEmail: string | null
  2384. tier: $Enums.WorkspaceTier
  2385. llmCallsThisMonth: number
  2386. llmCallsResetAt: Date
  2387. autoRelanceEnabled: boolean
  2388. exportsThisMonth: number
  2389. exportsResetAt: Date
  2390. lastVisitedAt: Date | null
  2391. onboardingDismissed: boolean
  2392. createdAt: Date
  2393. updatedAt: Date
  2394. ownerId: string
  2395. }, ExtArgs["result"]["workspace"]>
  2396. composites: {}
  2397. }
  2398. type WorkspaceGetPayload<S extends boolean | null | undefined | WorkspaceDefaultArgs> = $Result.GetResult<Prisma.$WorkspacePayload, S>
  2399. type WorkspaceCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  2400. Omit<WorkspaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  2401. select?: WorkspaceCountAggregateInputType | true
  2402. }
  2403. export interface WorkspaceDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  2404. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Workspace'], meta: { name: 'Workspace' } }
  2405. /**
  2406. * Find zero or one Workspace that matches the filter.
  2407. * @param {WorkspaceFindUniqueArgs} args - Arguments to find a Workspace
  2408. * @example
  2409. * // Get one Workspace
  2410. * const workspace = await prisma.workspace.findUnique({
  2411. * where: {
  2412. * // ... provide filter here
  2413. * }
  2414. * })
  2415. */
  2416. findUnique<T extends WorkspaceFindUniqueArgs>(args: SelectSubset<T, WorkspaceFindUniqueArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2417. /**
  2418. * Find one Workspace that matches the filter or throw an error with `error.code='P2025'`
  2419. * if no matches were found.
  2420. * @param {WorkspaceFindUniqueOrThrowArgs} args - Arguments to find a Workspace
  2421. * @example
  2422. * // Get one Workspace
  2423. * const workspace = await prisma.workspace.findUniqueOrThrow({
  2424. * where: {
  2425. * // ... provide filter here
  2426. * }
  2427. * })
  2428. */
  2429. findUniqueOrThrow<T extends WorkspaceFindUniqueOrThrowArgs>(args: SelectSubset<T, WorkspaceFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2430. /**
  2431. * Find the first Workspace that matches the filter.
  2432. * Note, that providing `undefined` is treated as the value not being there.
  2433. * Read more here: https://pris.ly/d/null-undefined
  2434. * @param {WorkspaceFindFirstArgs} args - Arguments to find a Workspace
  2435. * @example
  2436. * // Get one Workspace
  2437. * const workspace = await prisma.workspace.findFirst({
  2438. * where: {
  2439. * // ... provide filter here
  2440. * }
  2441. * })
  2442. */
  2443. findFirst<T extends WorkspaceFindFirstArgs>(args?: SelectSubset<T, WorkspaceFindFirstArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2444. /**
  2445. * Find the first Workspace that matches the filter or
  2446. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  2447. * Note, that providing `undefined` is treated as the value not being there.
  2448. * Read more here: https://pris.ly/d/null-undefined
  2449. * @param {WorkspaceFindFirstOrThrowArgs} args - Arguments to find a Workspace
  2450. * @example
  2451. * // Get one Workspace
  2452. * const workspace = await prisma.workspace.findFirstOrThrow({
  2453. * where: {
  2454. * // ... provide filter here
  2455. * }
  2456. * })
  2457. */
  2458. findFirstOrThrow<T extends WorkspaceFindFirstOrThrowArgs>(args?: SelectSubset<T, WorkspaceFindFirstOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2459. /**
  2460. * Find zero or more Workspaces that matches the filter.
  2461. * Note, that providing `undefined` is treated as the value not being there.
  2462. * Read more here: https://pris.ly/d/null-undefined
  2463. * @param {WorkspaceFindManyArgs} args - Arguments to filter and select certain fields only.
  2464. * @example
  2465. * // Get all Workspaces
  2466. * const workspaces = await prisma.workspace.findMany()
  2467. *
  2468. * // Get first 10 Workspaces
  2469. * const workspaces = await prisma.workspace.findMany({ take: 10 })
  2470. *
  2471. * // Only select the `id`
  2472. * const workspaceWithIdOnly = await prisma.workspace.findMany({ select: { id: true } })
  2473. *
  2474. */
  2475. findMany<T extends WorkspaceFindManyArgs>(args?: SelectSubset<T, WorkspaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  2476. /**
  2477. * Create a Workspace.
  2478. * @param {WorkspaceCreateArgs} args - Arguments to create a Workspace.
  2479. * @example
  2480. * // Create one Workspace
  2481. * const Workspace = await prisma.workspace.create({
  2482. * data: {
  2483. * // ... data to create a Workspace
  2484. * }
  2485. * })
  2486. *
  2487. */
  2488. create<T extends WorkspaceCreateArgs>(args: SelectSubset<T, WorkspaceCreateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2489. /**
  2490. * Create many Workspaces.
  2491. * @param {WorkspaceCreateManyArgs} args - Arguments to create many Workspaces.
  2492. * @example
  2493. * // Create many Workspaces
  2494. * const workspace = await prisma.workspace.createMany({
  2495. * data: [
  2496. * // ... provide data here
  2497. * ]
  2498. * })
  2499. *
  2500. */
  2501. createMany<T extends WorkspaceCreateManyArgs>(args?: SelectSubset<T, WorkspaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2502. /**
  2503. * Create many Workspaces and returns the data saved in the database.
  2504. * @param {WorkspaceCreateManyAndReturnArgs} args - Arguments to create many Workspaces.
  2505. * @example
  2506. * // Create many Workspaces
  2507. * const workspace = await prisma.workspace.createManyAndReturn({
  2508. * data: [
  2509. * // ... provide data here
  2510. * ]
  2511. * })
  2512. *
  2513. * // Create many Workspaces and only return the `id`
  2514. * const workspaceWithIdOnly = await prisma.workspace.createManyAndReturn({
  2515. * select: { id: true },
  2516. * data: [
  2517. * // ... provide data here
  2518. * ]
  2519. * })
  2520. * Note, that providing `undefined` is treated as the value not being there.
  2521. * Read more here: https://pris.ly/d/null-undefined
  2522. *
  2523. */
  2524. createManyAndReturn<T extends WorkspaceCreateManyAndReturnArgs>(args?: SelectSubset<T, WorkspaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  2525. /**
  2526. * Delete a Workspace.
  2527. * @param {WorkspaceDeleteArgs} args - Arguments to delete one Workspace.
  2528. * @example
  2529. * // Delete one Workspace
  2530. * const Workspace = await prisma.workspace.delete({
  2531. * where: {
  2532. * // ... filter to delete one Workspace
  2533. * }
  2534. * })
  2535. *
  2536. */
  2537. delete<T extends WorkspaceDeleteArgs>(args: SelectSubset<T, WorkspaceDeleteArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2538. /**
  2539. * Update one Workspace.
  2540. * @param {WorkspaceUpdateArgs} args - Arguments to update one Workspace.
  2541. * @example
  2542. * // Update one Workspace
  2543. * const workspace = await prisma.workspace.update({
  2544. * where: {
  2545. * // ... provide filter here
  2546. * },
  2547. * data: {
  2548. * // ... provide data here
  2549. * }
  2550. * })
  2551. *
  2552. */
  2553. update<T extends WorkspaceUpdateArgs>(args: SelectSubset<T, WorkspaceUpdateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2554. /**
  2555. * Delete zero or more Workspaces.
  2556. * @param {WorkspaceDeleteManyArgs} args - Arguments to filter Workspaces to delete.
  2557. * @example
  2558. * // Delete a few Workspaces
  2559. * const { count } = await prisma.workspace.deleteMany({
  2560. * where: {
  2561. * // ... provide filter here
  2562. * }
  2563. * })
  2564. *
  2565. */
  2566. deleteMany<T extends WorkspaceDeleteManyArgs>(args?: SelectSubset<T, WorkspaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2567. /**
  2568. * Update zero or more Workspaces.
  2569. * Note, that providing `undefined` is treated as the value not being there.
  2570. * Read more here: https://pris.ly/d/null-undefined
  2571. * @param {WorkspaceUpdateManyArgs} args - Arguments to update one or more rows.
  2572. * @example
  2573. * // Update many Workspaces
  2574. * const workspace = await prisma.workspace.updateMany({
  2575. * where: {
  2576. * // ... provide filter here
  2577. * },
  2578. * data: {
  2579. * // ... provide data here
  2580. * }
  2581. * })
  2582. *
  2583. */
  2584. updateMany<T extends WorkspaceUpdateManyArgs>(args: SelectSubset<T, WorkspaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2585. /**
  2586. * Update zero or more Workspaces and returns the data updated in the database.
  2587. * @param {WorkspaceUpdateManyAndReturnArgs} args - Arguments to update many Workspaces.
  2588. * @example
  2589. * // Update many Workspaces
  2590. * const workspace = await prisma.workspace.updateManyAndReturn({
  2591. * where: {
  2592. * // ... provide filter here
  2593. * },
  2594. * data: [
  2595. * // ... provide data here
  2596. * ]
  2597. * })
  2598. *
  2599. * // Update zero or more Workspaces and only return the `id`
  2600. * const workspaceWithIdOnly = await prisma.workspace.updateManyAndReturn({
  2601. * select: { id: true },
  2602. * where: {
  2603. * // ... provide filter here
  2604. * },
  2605. * data: [
  2606. * // ... provide data here
  2607. * ]
  2608. * })
  2609. * Note, that providing `undefined` is treated as the value not being there.
  2610. * Read more here: https://pris.ly/d/null-undefined
  2611. *
  2612. */
  2613. updateManyAndReturn<T extends WorkspaceUpdateManyAndReturnArgs>(args: SelectSubset<T, WorkspaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  2614. /**
  2615. * Create or update one Workspace.
  2616. * @param {WorkspaceUpsertArgs} args - Arguments to update or create a Workspace.
  2617. * @example
  2618. * // Update or create a Workspace
  2619. * const workspace = await prisma.workspace.upsert({
  2620. * create: {
  2621. * // ... data to create a Workspace
  2622. * },
  2623. * update: {
  2624. * // ... in case it already exists, update
  2625. * },
  2626. * where: {
  2627. * // ... the filter for the Workspace we want to update
  2628. * }
  2629. * })
  2630. */
  2631. upsert<T extends WorkspaceUpsertArgs>(args: SelectSubset<T, WorkspaceUpsertArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2632. /**
  2633. * Count the number of Workspaces.
  2634. * Note, that providing `undefined` is treated as the value not being there.
  2635. * Read more here: https://pris.ly/d/null-undefined
  2636. * @param {WorkspaceCountArgs} args - Arguments to filter Workspaces to count.
  2637. * @example
  2638. * // Count the number of Workspaces
  2639. * const count = await prisma.workspace.count({
  2640. * where: {
  2641. * // ... the filter for the Workspaces we want to count
  2642. * }
  2643. * })
  2644. **/
  2645. count<T extends WorkspaceCountArgs>(
  2646. args?: Subset<T, WorkspaceCountArgs>,
  2647. ): Prisma.PrismaPromise<
  2648. T extends $Utils.Record<'select', any>
  2649. ? T['select'] extends true
  2650. ? number
  2651. : GetScalarType<T['select'], WorkspaceCountAggregateOutputType>
  2652. : number
  2653. >
  2654. /**
  2655. * Allows you to perform aggregations operations on a Workspace.
  2656. * Note, that providing `undefined` is treated as the value not being there.
  2657. * Read more here: https://pris.ly/d/null-undefined
  2658. * @param {WorkspaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  2659. * @example
  2660. * // Ordered by age ascending
  2661. * // Where email contains prisma.io
  2662. * // Limited to the 10 users
  2663. * const aggregations = await prisma.user.aggregate({
  2664. * _avg: {
  2665. * age: true,
  2666. * },
  2667. * where: {
  2668. * email: {
  2669. * contains: "prisma.io",
  2670. * },
  2671. * },
  2672. * orderBy: {
  2673. * age: "asc",
  2674. * },
  2675. * take: 10,
  2676. * })
  2677. **/
  2678. aggregate<T extends WorkspaceAggregateArgs>(args: Subset<T, WorkspaceAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceAggregateType<T>>
  2679. /**
  2680. * Group by Workspace.
  2681. * Note, that providing `undefined` is treated as the value not being there.
  2682. * Read more here: https://pris.ly/d/null-undefined
  2683. * @param {WorkspaceGroupByArgs} args - Group by arguments.
  2684. * @example
  2685. * // Group by city, order by createdAt, get count
  2686. * const result = await prisma.user.groupBy({
  2687. * by: ['city', 'createdAt'],
  2688. * orderBy: {
  2689. * createdAt: true
  2690. * },
  2691. * _count: {
  2692. * _all: true
  2693. * },
  2694. * })
  2695. *
  2696. **/
  2697. groupBy<
  2698. T extends WorkspaceGroupByArgs,
  2699. HasSelectOrTake extends Or<
  2700. Extends<'skip', Keys<T>>,
  2701. Extends<'take', Keys<T>>
  2702. >,
  2703. OrderByArg extends True extends HasSelectOrTake
  2704. ? { orderBy: WorkspaceGroupByArgs['orderBy'] }
  2705. : { orderBy?: WorkspaceGroupByArgs['orderBy'] },
  2706. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  2707. ByFields extends MaybeTupleToUnion<T['by']>,
  2708. ByValid extends Has<ByFields, OrderFields>,
  2709. HavingFields extends GetHavingFields<T['having']>,
  2710. HavingValid extends Has<ByFields, HavingFields>,
  2711. ByEmpty extends T['by'] extends never[] ? True : False,
  2712. InputErrors extends ByEmpty extends True
  2713. ? `Error: "by" must not be empty.`
  2714. : HavingValid extends False
  2715. ? {
  2716. [P in HavingFields]: P extends ByFields
  2717. ? never
  2718. : P extends string
  2719. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  2720. : [
  2721. Error,
  2722. 'Field ',
  2723. P,
  2724. ` in "having" needs to be provided in "by"`,
  2725. ]
  2726. }[HavingFields]
  2727. : 'take' extends Keys<T>
  2728. ? 'orderBy' extends Keys<T>
  2729. ? ByValid extends True
  2730. ? {}
  2731. : {
  2732. [P in OrderFields]: P extends ByFields
  2733. ? never
  2734. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2735. }[OrderFields]
  2736. : 'Error: If you provide "take", you also need to provide "orderBy"'
  2737. : 'skip' extends Keys<T>
  2738. ? 'orderBy' extends Keys<T>
  2739. ? ByValid extends True
  2740. ? {}
  2741. : {
  2742. [P in OrderFields]: P extends ByFields
  2743. ? never
  2744. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2745. }[OrderFields]
  2746. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  2747. : ByValid extends True
  2748. ? {}
  2749. : {
  2750. [P in OrderFields]: P extends ByFields
  2751. ? never
  2752. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2753. }[OrderFields]
  2754. >(args: SubsetIntersection<T, WorkspaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  2755. /**
  2756. * Fields of the Workspace model
  2757. */
  2758. readonly fields: WorkspaceFieldRefs;
  2759. }
  2760. /**
  2761. * The delegate class that acts as a "Promise-like" for Workspace.
  2762. * Why is this prefixed with `Prisma__`?
  2763. * Because we want to prevent naming conflicts as mentioned in
  2764. * https://github.com/prisma/prisma-client-js/issues/707
  2765. */
  2766. export interface Prisma__WorkspaceClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  2767. readonly [Symbol.toStringTag]: "PrismaPromise"
  2768. shareLink<T extends Workspace$shareLinkArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$shareLinkArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2769. owner<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  2770. contributors<T extends Workspace$contributorsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$contributorsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2771. ideas<T extends Workspace$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2772. manualRelanceLogs<T extends Workspace$manualRelanceLogsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$manualRelanceLogsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2773. /**
  2774. * Attaches callbacks for the resolution and/or rejection of the Promise.
  2775. * @param onfulfilled The callback to execute when the Promise is resolved.
  2776. * @param onrejected The callback to execute when the Promise is rejected.
  2777. * @returns A Promise for the completion of which ever callback is executed.
  2778. */
  2779. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  2780. /**
  2781. * Attaches a callback for only the rejection of the Promise.
  2782. * @param onrejected The callback to execute when the Promise is rejected.
  2783. * @returns A Promise for the completion of the callback.
  2784. */
  2785. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  2786. /**
  2787. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  2788. * resolved value cannot be modified from the callback.
  2789. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  2790. * @returns A Promise for the completion of the callback.
  2791. */
  2792. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  2793. }
  2794. /**
  2795. * Fields of the Workspace model
  2796. */
  2797. interface WorkspaceFieldRefs {
  2798. readonly id: FieldRef<"Workspace", 'String'>
  2799. readonly name: FieldRef<"Workspace", 'String'>
  2800. readonly slug: FieldRef<"Workspace", 'String'>
  2801. readonly sector: FieldRef<"Workspace", 'String'>
  2802. readonly companySize: FieldRef<"Workspace", 'Int'>
  2803. readonly contactEmail: FieldRef<"Workspace", 'String'>
  2804. readonly tier: FieldRef<"Workspace", 'WorkspaceTier'>
  2805. readonly llmCallsThisMonth: FieldRef<"Workspace", 'Int'>
  2806. readonly llmCallsResetAt: FieldRef<"Workspace", 'DateTime'>
  2807. readonly autoRelanceEnabled: FieldRef<"Workspace", 'Boolean'>
  2808. readonly exportsThisMonth: FieldRef<"Workspace", 'Int'>
  2809. readonly exportsResetAt: FieldRef<"Workspace", 'DateTime'>
  2810. readonly lastVisitedAt: FieldRef<"Workspace", 'DateTime'>
  2811. readonly onboardingDismissed: FieldRef<"Workspace", 'Boolean'>
  2812. readonly createdAt: FieldRef<"Workspace", 'DateTime'>
  2813. readonly updatedAt: FieldRef<"Workspace", 'DateTime'>
  2814. readonly ownerId: FieldRef<"Workspace", 'String'>
  2815. }
  2816. // Custom InputTypes
  2817. /**
  2818. * Workspace findUnique
  2819. */
  2820. export type WorkspaceFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2821. /**
  2822. * Select specific fields to fetch from the Workspace
  2823. */
  2824. select?: WorkspaceSelect<ExtArgs> | null
  2825. /**
  2826. * Omit specific fields from the Workspace
  2827. */
  2828. omit?: WorkspaceOmit<ExtArgs> | null
  2829. /**
  2830. * Choose, which related nodes to fetch as well
  2831. */
  2832. include?: WorkspaceInclude<ExtArgs> | null
  2833. /**
  2834. * Filter, which Workspace to fetch.
  2835. */
  2836. where: WorkspaceWhereUniqueInput
  2837. }
  2838. /**
  2839. * Workspace findUniqueOrThrow
  2840. */
  2841. export type WorkspaceFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2842. /**
  2843. * Select specific fields to fetch from the Workspace
  2844. */
  2845. select?: WorkspaceSelect<ExtArgs> | null
  2846. /**
  2847. * Omit specific fields from the Workspace
  2848. */
  2849. omit?: WorkspaceOmit<ExtArgs> | null
  2850. /**
  2851. * Choose, which related nodes to fetch as well
  2852. */
  2853. include?: WorkspaceInclude<ExtArgs> | null
  2854. /**
  2855. * Filter, which Workspace to fetch.
  2856. */
  2857. where: WorkspaceWhereUniqueInput
  2858. }
  2859. /**
  2860. * Workspace findFirst
  2861. */
  2862. export type WorkspaceFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2863. /**
  2864. * Select specific fields to fetch from the Workspace
  2865. */
  2866. select?: WorkspaceSelect<ExtArgs> | null
  2867. /**
  2868. * Omit specific fields from the Workspace
  2869. */
  2870. omit?: WorkspaceOmit<ExtArgs> | null
  2871. /**
  2872. * Choose, which related nodes to fetch as well
  2873. */
  2874. include?: WorkspaceInclude<ExtArgs> | null
  2875. /**
  2876. * Filter, which Workspace to fetch.
  2877. */
  2878. where?: WorkspaceWhereInput
  2879. /**
  2880. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2881. *
  2882. * Determine the order of Workspaces to fetch.
  2883. */
  2884. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2885. /**
  2886. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2887. *
  2888. * Sets the position for searching for Workspaces.
  2889. */
  2890. cursor?: WorkspaceWhereUniqueInput
  2891. /**
  2892. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2893. *
  2894. * Take `±n` Workspaces from the position of the cursor.
  2895. */
  2896. take?: number
  2897. /**
  2898. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2899. *
  2900. * Skip the first `n` Workspaces.
  2901. */
  2902. skip?: number
  2903. /**
  2904. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  2905. *
  2906. * Filter by unique combinations of Workspaces.
  2907. */
  2908. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  2909. }
  2910. /**
  2911. * Workspace findFirstOrThrow
  2912. */
  2913. export type WorkspaceFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2914. /**
  2915. * Select specific fields to fetch from the Workspace
  2916. */
  2917. select?: WorkspaceSelect<ExtArgs> | null
  2918. /**
  2919. * Omit specific fields from the Workspace
  2920. */
  2921. omit?: WorkspaceOmit<ExtArgs> | null
  2922. /**
  2923. * Choose, which related nodes to fetch as well
  2924. */
  2925. include?: WorkspaceInclude<ExtArgs> | null
  2926. /**
  2927. * Filter, which Workspace to fetch.
  2928. */
  2929. where?: WorkspaceWhereInput
  2930. /**
  2931. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2932. *
  2933. * Determine the order of Workspaces to fetch.
  2934. */
  2935. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2936. /**
  2937. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2938. *
  2939. * Sets the position for searching for Workspaces.
  2940. */
  2941. cursor?: WorkspaceWhereUniqueInput
  2942. /**
  2943. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2944. *
  2945. * Take `±n` Workspaces from the position of the cursor.
  2946. */
  2947. take?: number
  2948. /**
  2949. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2950. *
  2951. * Skip the first `n` Workspaces.
  2952. */
  2953. skip?: number
  2954. /**
  2955. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  2956. *
  2957. * Filter by unique combinations of Workspaces.
  2958. */
  2959. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  2960. }
  2961. /**
  2962. * Workspace findMany
  2963. */
  2964. export type WorkspaceFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2965. /**
  2966. * Select specific fields to fetch from the Workspace
  2967. */
  2968. select?: WorkspaceSelect<ExtArgs> | null
  2969. /**
  2970. * Omit specific fields from the Workspace
  2971. */
  2972. omit?: WorkspaceOmit<ExtArgs> | null
  2973. /**
  2974. * Choose, which related nodes to fetch as well
  2975. */
  2976. include?: WorkspaceInclude<ExtArgs> | null
  2977. /**
  2978. * Filter, which Workspaces to fetch.
  2979. */
  2980. where?: WorkspaceWhereInput
  2981. /**
  2982. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2983. *
  2984. * Determine the order of Workspaces to fetch.
  2985. */
  2986. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2987. /**
  2988. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2989. *
  2990. * Sets the position for listing Workspaces.
  2991. */
  2992. cursor?: WorkspaceWhereUniqueInput
  2993. /**
  2994. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2995. *
  2996. * Take `±n` Workspaces from the position of the cursor.
  2997. */
  2998. take?: number
  2999. /**
  3000. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3001. *
  3002. * Skip the first `n` Workspaces.
  3003. */
  3004. skip?: number
  3005. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  3006. }
  3007. /**
  3008. * Workspace create
  3009. */
  3010. export type WorkspaceCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3011. /**
  3012. * Select specific fields to fetch from the Workspace
  3013. */
  3014. select?: WorkspaceSelect<ExtArgs> | null
  3015. /**
  3016. * Omit specific fields from the Workspace
  3017. */
  3018. omit?: WorkspaceOmit<ExtArgs> | null
  3019. /**
  3020. * Choose, which related nodes to fetch as well
  3021. */
  3022. include?: WorkspaceInclude<ExtArgs> | null
  3023. /**
  3024. * The data needed to create a Workspace.
  3025. */
  3026. data: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3027. }
  3028. /**
  3029. * Workspace createMany
  3030. */
  3031. export type WorkspaceCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3032. /**
  3033. * The data used to create many Workspaces.
  3034. */
  3035. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3036. skipDuplicates?: boolean
  3037. }
  3038. /**
  3039. * Workspace createManyAndReturn
  3040. */
  3041. export type WorkspaceCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3042. /**
  3043. * Select specific fields to fetch from the Workspace
  3044. */
  3045. select?: WorkspaceSelectCreateManyAndReturn<ExtArgs> | null
  3046. /**
  3047. * Omit specific fields from the Workspace
  3048. */
  3049. omit?: WorkspaceOmit<ExtArgs> | null
  3050. /**
  3051. * The data used to create many Workspaces.
  3052. */
  3053. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3054. skipDuplicates?: boolean
  3055. /**
  3056. * Choose, which related nodes to fetch as well
  3057. */
  3058. include?: WorkspaceIncludeCreateManyAndReturn<ExtArgs> | null
  3059. }
  3060. /**
  3061. * Workspace update
  3062. */
  3063. export type WorkspaceUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3064. /**
  3065. * Select specific fields to fetch from the Workspace
  3066. */
  3067. select?: WorkspaceSelect<ExtArgs> | null
  3068. /**
  3069. * Omit specific fields from the Workspace
  3070. */
  3071. omit?: WorkspaceOmit<ExtArgs> | null
  3072. /**
  3073. * Choose, which related nodes to fetch as well
  3074. */
  3075. include?: WorkspaceInclude<ExtArgs> | null
  3076. /**
  3077. * The data needed to update a Workspace.
  3078. */
  3079. data: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3080. /**
  3081. * Choose, which Workspace to update.
  3082. */
  3083. where: WorkspaceWhereUniqueInput
  3084. }
  3085. /**
  3086. * Workspace updateMany
  3087. */
  3088. export type WorkspaceUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3089. /**
  3090. * The data used to update Workspaces.
  3091. */
  3092. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3093. /**
  3094. * Filter which Workspaces to update
  3095. */
  3096. where?: WorkspaceWhereInput
  3097. /**
  3098. * Limit how many Workspaces to update.
  3099. */
  3100. limit?: number
  3101. }
  3102. /**
  3103. * Workspace updateManyAndReturn
  3104. */
  3105. export type WorkspaceUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3106. /**
  3107. * Select specific fields to fetch from the Workspace
  3108. */
  3109. select?: WorkspaceSelectUpdateManyAndReturn<ExtArgs> | null
  3110. /**
  3111. * Omit specific fields from the Workspace
  3112. */
  3113. omit?: WorkspaceOmit<ExtArgs> | null
  3114. /**
  3115. * The data used to update Workspaces.
  3116. */
  3117. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3118. /**
  3119. * Filter which Workspaces to update
  3120. */
  3121. where?: WorkspaceWhereInput
  3122. /**
  3123. * Limit how many Workspaces to update.
  3124. */
  3125. limit?: number
  3126. /**
  3127. * Choose, which related nodes to fetch as well
  3128. */
  3129. include?: WorkspaceIncludeUpdateManyAndReturn<ExtArgs> | null
  3130. }
  3131. /**
  3132. * Workspace upsert
  3133. */
  3134. export type WorkspaceUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3135. /**
  3136. * Select specific fields to fetch from the Workspace
  3137. */
  3138. select?: WorkspaceSelect<ExtArgs> | null
  3139. /**
  3140. * Omit specific fields from the Workspace
  3141. */
  3142. omit?: WorkspaceOmit<ExtArgs> | null
  3143. /**
  3144. * Choose, which related nodes to fetch as well
  3145. */
  3146. include?: WorkspaceInclude<ExtArgs> | null
  3147. /**
  3148. * The filter to search for the Workspace to update in case it exists.
  3149. */
  3150. where: WorkspaceWhereUniqueInput
  3151. /**
  3152. * In case the Workspace found by the `where` argument doesn't exist, create a new Workspace with this data.
  3153. */
  3154. create: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3155. /**
  3156. * In case the Workspace was found with the provided `where` argument, update it with this data.
  3157. */
  3158. update: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3159. }
  3160. /**
  3161. * Workspace delete
  3162. */
  3163. export type WorkspaceDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3164. /**
  3165. * Select specific fields to fetch from the Workspace
  3166. */
  3167. select?: WorkspaceSelect<ExtArgs> | null
  3168. /**
  3169. * Omit specific fields from the Workspace
  3170. */
  3171. omit?: WorkspaceOmit<ExtArgs> | null
  3172. /**
  3173. * Choose, which related nodes to fetch as well
  3174. */
  3175. include?: WorkspaceInclude<ExtArgs> | null
  3176. /**
  3177. * Filter which Workspace to delete.
  3178. */
  3179. where: WorkspaceWhereUniqueInput
  3180. }
  3181. /**
  3182. * Workspace deleteMany
  3183. */
  3184. export type WorkspaceDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3185. /**
  3186. * Filter which Workspaces to delete
  3187. */
  3188. where?: WorkspaceWhereInput
  3189. /**
  3190. * Limit how many Workspaces to delete.
  3191. */
  3192. limit?: number
  3193. }
  3194. /**
  3195. * Workspace.shareLink
  3196. */
  3197. export type Workspace$shareLinkArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3198. /**
  3199. * Select specific fields to fetch from the ShareLink
  3200. */
  3201. select?: ShareLinkSelect<ExtArgs> | null
  3202. /**
  3203. * Omit specific fields from the ShareLink
  3204. */
  3205. omit?: ShareLinkOmit<ExtArgs> | null
  3206. /**
  3207. * Choose, which related nodes to fetch as well
  3208. */
  3209. include?: ShareLinkInclude<ExtArgs> | null
  3210. where?: ShareLinkWhereInput
  3211. }
  3212. /**
  3213. * Workspace.contributors
  3214. */
  3215. export type Workspace$contributorsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3216. /**
  3217. * Select specific fields to fetch from the Contributor
  3218. */
  3219. select?: ContributorSelect<ExtArgs> | null
  3220. /**
  3221. * Omit specific fields from the Contributor
  3222. */
  3223. omit?: ContributorOmit<ExtArgs> | null
  3224. /**
  3225. * Choose, which related nodes to fetch as well
  3226. */
  3227. include?: ContributorInclude<ExtArgs> | null
  3228. where?: ContributorWhereInput
  3229. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  3230. cursor?: ContributorWhereUniqueInput
  3231. take?: number
  3232. skip?: number
  3233. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  3234. }
  3235. /**
  3236. * Workspace.ideas
  3237. */
  3238. export type Workspace$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3239. /**
  3240. * Select specific fields to fetch from the Idea
  3241. */
  3242. select?: IdeaSelect<ExtArgs> | null
  3243. /**
  3244. * Omit specific fields from the Idea
  3245. */
  3246. omit?: IdeaOmit<ExtArgs> | null
  3247. /**
  3248. * Choose, which related nodes to fetch as well
  3249. */
  3250. include?: IdeaInclude<ExtArgs> | null
  3251. where?: IdeaWhereInput
  3252. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  3253. cursor?: IdeaWhereUniqueInput
  3254. take?: number
  3255. skip?: number
  3256. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  3257. }
  3258. /**
  3259. * Workspace.manualRelanceLogs
  3260. */
  3261. export type Workspace$manualRelanceLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3262. /**
  3263. * Select specific fields to fetch from the ManualRelanceLog
  3264. */
  3265. select?: ManualRelanceLogSelect<ExtArgs> | null
  3266. /**
  3267. * Omit specific fields from the ManualRelanceLog
  3268. */
  3269. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3270. /**
  3271. * Choose, which related nodes to fetch as well
  3272. */
  3273. include?: ManualRelanceLogInclude<ExtArgs> | null
  3274. where?: ManualRelanceLogWhereInput
  3275. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3276. cursor?: ManualRelanceLogWhereUniqueInput
  3277. take?: number
  3278. skip?: number
  3279. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  3280. }
  3281. /**
  3282. * Workspace without action
  3283. */
  3284. export type WorkspaceDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3285. /**
  3286. * Select specific fields to fetch from the Workspace
  3287. */
  3288. select?: WorkspaceSelect<ExtArgs> | null
  3289. /**
  3290. * Omit specific fields from the Workspace
  3291. */
  3292. omit?: WorkspaceOmit<ExtArgs> | null
  3293. /**
  3294. * Choose, which related nodes to fetch as well
  3295. */
  3296. include?: WorkspaceInclude<ExtArgs> | null
  3297. }
  3298. /**
  3299. * Model ManualRelanceLog
  3300. */
  3301. export type AggregateManualRelanceLog = {
  3302. _count: ManualRelanceLogCountAggregateOutputType | null
  3303. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3304. _sum: ManualRelanceLogSumAggregateOutputType | null
  3305. _min: ManualRelanceLogMinAggregateOutputType | null
  3306. _max: ManualRelanceLogMaxAggregateOutputType | null
  3307. }
  3308. export type ManualRelanceLogAvgAggregateOutputType = {
  3309. recipientCount: number | null
  3310. sentCount: number | null
  3311. failedCount: number | null
  3312. }
  3313. export type ManualRelanceLogSumAggregateOutputType = {
  3314. recipientCount: number | null
  3315. sentCount: number | null
  3316. failedCount: number | null
  3317. }
  3318. export type ManualRelanceLogMinAggregateOutputType = {
  3319. id: string | null
  3320. workspaceId: string | null
  3321. subject: string | null
  3322. recipientCount: number | null
  3323. sentCount: number | null
  3324. failedCount: number | null
  3325. sentAt: Date | null
  3326. }
  3327. export type ManualRelanceLogMaxAggregateOutputType = {
  3328. id: string | null
  3329. workspaceId: string | null
  3330. subject: string | null
  3331. recipientCount: number | null
  3332. sentCount: number | null
  3333. failedCount: number | null
  3334. sentAt: Date | null
  3335. }
  3336. export type ManualRelanceLogCountAggregateOutputType = {
  3337. id: number
  3338. workspaceId: number
  3339. subject: number
  3340. recipientCount: number
  3341. sentCount: number
  3342. failedCount: number
  3343. sentAt: number
  3344. _all: number
  3345. }
  3346. export type ManualRelanceLogAvgAggregateInputType = {
  3347. recipientCount?: true
  3348. sentCount?: true
  3349. failedCount?: true
  3350. }
  3351. export type ManualRelanceLogSumAggregateInputType = {
  3352. recipientCount?: true
  3353. sentCount?: true
  3354. failedCount?: true
  3355. }
  3356. export type ManualRelanceLogMinAggregateInputType = {
  3357. id?: true
  3358. workspaceId?: true
  3359. subject?: true
  3360. recipientCount?: true
  3361. sentCount?: true
  3362. failedCount?: true
  3363. sentAt?: true
  3364. }
  3365. export type ManualRelanceLogMaxAggregateInputType = {
  3366. id?: true
  3367. workspaceId?: true
  3368. subject?: true
  3369. recipientCount?: true
  3370. sentCount?: true
  3371. failedCount?: true
  3372. sentAt?: true
  3373. }
  3374. export type ManualRelanceLogCountAggregateInputType = {
  3375. id?: true
  3376. workspaceId?: true
  3377. subject?: true
  3378. recipientCount?: true
  3379. sentCount?: true
  3380. failedCount?: true
  3381. sentAt?: true
  3382. _all?: true
  3383. }
  3384. export type ManualRelanceLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3385. /**
  3386. * Filter which ManualRelanceLog to aggregate.
  3387. */
  3388. where?: ManualRelanceLogWhereInput
  3389. /**
  3390. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  3391. *
  3392. * Determine the order of ManualRelanceLogs to fetch.
  3393. */
  3394. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3395. /**
  3396. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  3397. *
  3398. * Sets the start position
  3399. */
  3400. cursor?: ManualRelanceLogWhereUniqueInput
  3401. /**
  3402. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3403. *
  3404. * Take `±n` ManualRelanceLogs from the position of the cursor.
  3405. */
  3406. take?: number
  3407. /**
  3408. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3409. *
  3410. * Skip the first `n` ManualRelanceLogs.
  3411. */
  3412. skip?: number
  3413. /**
  3414. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3415. *
  3416. * Count returned ManualRelanceLogs
  3417. **/
  3418. _count?: true | ManualRelanceLogCountAggregateInputType
  3419. /**
  3420. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3421. *
  3422. * Select which fields to average
  3423. **/
  3424. _avg?: ManualRelanceLogAvgAggregateInputType
  3425. /**
  3426. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3427. *
  3428. * Select which fields to sum
  3429. **/
  3430. _sum?: ManualRelanceLogSumAggregateInputType
  3431. /**
  3432. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3433. *
  3434. * Select which fields to find the minimum value
  3435. **/
  3436. _min?: ManualRelanceLogMinAggregateInputType
  3437. /**
  3438. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3439. *
  3440. * Select which fields to find the maximum value
  3441. **/
  3442. _max?: ManualRelanceLogMaxAggregateInputType
  3443. }
  3444. export type GetManualRelanceLogAggregateType<T extends ManualRelanceLogAggregateArgs> = {
  3445. [P in keyof T & keyof AggregateManualRelanceLog]: P extends '_count' | 'count'
  3446. ? T[P] extends true
  3447. ? number
  3448. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3449. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3450. }
  3451. export type ManualRelanceLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3452. where?: ManualRelanceLogWhereInput
  3453. orderBy?: ManualRelanceLogOrderByWithAggregationInput | ManualRelanceLogOrderByWithAggregationInput[]
  3454. by: ManualRelanceLogScalarFieldEnum[] | ManualRelanceLogScalarFieldEnum
  3455. having?: ManualRelanceLogScalarWhereWithAggregatesInput
  3456. take?: number
  3457. skip?: number
  3458. _count?: ManualRelanceLogCountAggregateInputType | true
  3459. _avg?: ManualRelanceLogAvgAggregateInputType
  3460. _sum?: ManualRelanceLogSumAggregateInputType
  3461. _min?: ManualRelanceLogMinAggregateInputType
  3462. _max?: ManualRelanceLogMaxAggregateInputType
  3463. }
  3464. export type ManualRelanceLogGroupByOutputType = {
  3465. id: string
  3466. workspaceId: string
  3467. subject: string
  3468. recipientCount: number
  3469. sentCount: number
  3470. failedCount: number
  3471. sentAt: Date
  3472. _count: ManualRelanceLogCountAggregateOutputType | null
  3473. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3474. _sum: ManualRelanceLogSumAggregateOutputType | null
  3475. _min: ManualRelanceLogMinAggregateOutputType | null
  3476. _max: ManualRelanceLogMaxAggregateOutputType | null
  3477. }
  3478. type GetManualRelanceLogGroupByPayload<T extends ManualRelanceLogGroupByArgs> = Prisma.PrismaPromise<
  3479. Array<
  3480. PickEnumerable<ManualRelanceLogGroupByOutputType, T['by']> &
  3481. {
  3482. [P in ((keyof T) & (keyof ManualRelanceLogGroupByOutputType))]: P extends '_count'
  3483. ? T[P] extends boolean
  3484. ? number
  3485. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3486. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3487. }
  3488. >
  3489. >
  3490. export type ManualRelanceLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3491. id?: boolean
  3492. workspaceId?: boolean
  3493. subject?: boolean
  3494. recipientCount?: boolean
  3495. sentCount?: boolean
  3496. failedCount?: boolean
  3497. sentAt?: boolean
  3498. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3499. }, ExtArgs["result"]["manualRelanceLog"]>
  3500. export type ManualRelanceLogSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3501. id?: boolean
  3502. workspaceId?: boolean
  3503. subject?: boolean
  3504. recipientCount?: boolean
  3505. sentCount?: boolean
  3506. failedCount?: boolean
  3507. sentAt?: boolean
  3508. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3509. }, ExtArgs["result"]["manualRelanceLog"]>
  3510. export type ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3511. id?: boolean
  3512. workspaceId?: boolean
  3513. subject?: boolean
  3514. recipientCount?: boolean
  3515. sentCount?: boolean
  3516. failedCount?: boolean
  3517. sentAt?: boolean
  3518. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3519. }, ExtArgs["result"]["manualRelanceLog"]>
  3520. export type ManualRelanceLogSelectScalar = {
  3521. id?: boolean
  3522. workspaceId?: boolean
  3523. subject?: boolean
  3524. recipientCount?: boolean
  3525. sentCount?: boolean
  3526. failedCount?: boolean
  3527. sentAt?: boolean
  3528. }
  3529. export type ManualRelanceLogOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "subject" | "recipientCount" | "sentCount" | "failedCount" | "sentAt", ExtArgs["result"]["manualRelanceLog"]>
  3530. export type ManualRelanceLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3531. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3532. }
  3533. export type ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3534. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3535. }
  3536. export type ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3537. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3538. }
  3539. export type $ManualRelanceLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3540. name: "ManualRelanceLog"
  3541. objects: {
  3542. workspace: Prisma.$WorkspacePayload<ExtArgs>
  3543. }
  3544. scalars: $Extensions.GetPayloadResult<{
  3545. id: string
  3546. workspaceId: string
  3547. subject: string
  3548. recipientCount: number
  3549. sentCount: number
  3550. failedCount: number
  3551. sentAt: Date
  3552. }, ExtArgs["result"]["manualRelanceLog"]>
  3553. composites: {}
  3554. }
  3555. type ManualRelanceLogGetPayload<S extends boolean | null | undefined | ManualRelanceLogDefaultArgs> = $Result.GetResult<Prisma.$ManualRelanceLogPayload, S>
  3556. type ManualRelanceLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  3557. Omit<ManualRelanceLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  3558. select?: ManualRelanceLogCountAggregateInputType | true
  3559. }
  3560. export interface ManualRelanceLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  3561. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ManualRelanceLog'], meta: { name: 'ManualRelanceLog' } }
  3562. /**
  3563. * Find zero or one ManualRelanceLog that matches the filter.
  3564. * @param {ManualRelanceLogFindUniqueArgs} args - Arguments to find a ManualRelanceLog
  3565. * @example
  3566. * // Get one ManualRelanceLog
  3567. * const manualRelanceLog = await prisma.manualRelanceLog.findUnique({
  3568. * where: {
  3569. * // ... provide filter here
  3570. * }
  3571. * })
  3572. */
  3573. findUnique<T extends ManualRelanceLogFindUniqueArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3574. /**
  3575. * Find one ManualRelanceLog that matches the filter or throw an error with `error.code='P2025'`
  3576. * if no matches were found.
  3577. * @param {ManualRelanceLogFindUniqueOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3578. * @example
  3579. * // Get one ManualRelanceLog
  3580. * const manualRelanceLog = await prisma.manualRelanceLog.findUniqueOrThrow({
  3581. * where: {
  3582. * // ... provide filter here
  3583. * }
  3584. * })
  3585. */
  3586. findUniqueOrThrow<T extends ManualRelanceLogFindUniqueOrThrowArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3587. /**
  3588. * Find the first ManualRelanceLog that matches the filter.
  3589. * Note, that providing `undefined` is treated as the value not being there.
  3590. * Read more here: https://pris.ly/d/null-undefined
  3591. * @param {ManualRelanceLogFindFirstArgs} args - Arguments to find a ManualRelanceLog
  3592. * @example
  3593. * // Get one ManualRelanceLog
  3594. * const manualRelanceLog = await prisma.manualRelanceLog.findFirst({
  3595. * where: {
  3596. * // ... provide filter here
  3597. * }
  3598. * })
  3599. */
  3600. findFirst<T extends ManualRelanceLogFindFirstArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3601. /**
  3602. * Find the first ManualRelanceLog that matches the filter or
  3603. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  3604. * Note, that providing `undefined` is treated as the value not being there.
  3605. * Read more here: https://pris.ly/d/null-undefined
  3606. * @param {ManualRelanceLogFindFirstOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3607. * @example
  3608. * // Get one ManualRelanceLog
  3609. * const manualRelanceLog = await prisma.manualRelanceLog.findFirstOrThrow({
  3610. * where: {
  3611. * // ... provide filter here
  3612. * }
  3613. * })
  3614. */
  3615. findFirstOrThrow<T extends ManualRelanceLogFindFirstOrThrowArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3616. /**
  3617. * Find zero or more ManualRelanceLogs that matches the filter.
  3618. * Note, that providing `undefined` is treated as the value not being there.
  3619. * Read more here: https://pris.ly/d/null-undefined
  3620. * @param {ManualRelanceLogFindManyArgs} args - Arguments to filter and select certain fields only.
  3621. * @example
  3622. * // Get all ManualRelanceLogs
  3623. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany()
  3624. *
  3625. * // Get first 10 ManualRelanceLogs
  3626. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany({ take: 10 })
  3627. *
  3628. * // Only select the `id`
  3629. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.findMany({ select: { id: true } })
  3630. *
  3631. */
  3632. findMany<T extends ManualRelanceLogFindManyArgs>(args?: SelectSubset<T, ManualRelanceLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  3633. /**
  3634. * Create a ManualRelanceLog.
  3635. * @param {ManualRelanceLogCreateArgs} args - Arguments to create a ManualRelanceLog.
  3636. * @example
  3637. * // Create one ManualRelanceLog
  3638. * const ManualRelanceLog = await prisma.manualRelanceLog.create({
  3639. * data: {
  3640. * // ... data to create a ManualRelanceLog
  3641. * }
  3642. * })
  3643. *
  3644. */
  3645. create<T extends ManualRelanceLogCreateArgs>(args: SelectSubset<T, ManualRelanceLogCreateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3646. /**
  3647. * Create many ManualRelanceLogs.
  3648. * @param {ManualRelanceLogCreateManyArgs} args - Arguments to create many ManualRelanceLogs.
  3649. * @example
  3650. * // Create many ManualRelanceLogs
  3651. * const manualRelanceLog = await prisma.manualRelanceLog.createMany({
  3652. * data: [
  3653. * // ... provide data here
  3654. * ]
  3655. * })
  3656. *
  3657. */
  3658. createMany<T extends ManualRelanceLogCreateManyArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3659. /**
  3660. * Create many ManualRelanceLogs and returns the data saved in the database.
  3661. * @param {ManualRelanceLogCreateManyAndReturnArgs} args - Arguments to create many ManualRelanceLogs.
  3662. * @example
  3663. * // Create many ManualRelanceLogs
  3664. * const manualRelanceLog = await prisma.manualRelanceLog.createManyAndReturn({
  3665. * data: [
  3666. * // ... provide data here
  3667. * ]
  3668. * })
  3669. *
  3670. * // Create many ManualRelanceLogs and only return the `id`
  3671. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.createManyAndReturn({
  3672. * select: { id: true },
  3673. * data: [
  3674. * // ... provide data here
  3675. * ]
  3676. * })
  3677. * Note, that providing `undefined` is treated as the value not being there.
  3678. * Read more here: https://pris.ly/d/null-undefined
  3679. *
  3680. */
  3681. createManyAndReturn<T extends ManualRelanceLogCreateManyAndReturnArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  3682. /**
  3683. * Delete a ManualRelanceLog.
  3684. * @param {ManualRelanceLogDeleteArgs} args - Arguments to delete one ManualRelanceLog.
  3685. * @example
  3686. * // Delete one ManualRelanceLog
  3687. * const ManualRelanceLog = await prisma.manualRelanceLog.delete({
  3688. * where: {
  3689. * // ... filter to delete one ManualRelanceLog
  3690. * }
  3691. * })
  3692. *
  3693. */
  3694. delete<T extends ManualRelanceLogDeleteArgs>(args: SelectSubset<T, ManualRelanceLogDeleteArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3695. /**
  3696. * Update one ManualRelanceLog.
  3697. * @param {ManualRelanceLogUpdateArgs} args - Arguments to update one ManualRelanceLog.
  3698. * @example
  3699. * // Update one ManualRelanceLog
  3700. * const manualRelanceLog = await prisma.manualRelanceLog.update({
  3701. * where: {
  3702. * // ... provide filter here
  3703. * },
  3704. * data: {
  3705. * // ... provide data here
  3706. * }
  3707. * })
  3708. *
  3709. */
  3710. update<T extends ManualRelanceLogUpdateArgs>(args: SelectSubset<T, ManualRelanceLogUpdateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3711. /**
  3712. * Delete zero or more ManualRelanceLogs.
  3713. * @param {ManualRelanceLogDeleteManyArgs} args - Arguments to filter ManualRelanceLogs to delete.
  3714. * @example
  3715. * // Delete a few ManualRelanceLogs
  3716. * const { count } = await prisma.manualRelanceLog.deleteMany({
  3717. * where: {
  3718. * // ... provide filter here
  3719. * }
  3720. * })
  3721. *
  3722. */
  3723. deleteMany<T extends ManualRelanceLogDeleteManyArgs>(args?: SelectSubset<T, ManualRelanceLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3724. /**
  3725. * Update zero or more ManualRelanceLogs.
  3726. * Note, that providing `undefined` is treated as the value not being there.
  3727. * Read more here: https://pris.ly/d/null-undefined
  3728. * @param {ManualRelanceLogUpdateManyArgs} args - Arguments to update one or more rows.
  3729. * @example
  3730. * // Update many ManualRelanceLogs
  3731. * const manualRelanceLog = await prisma.manualRelanceLog.updateMany({
  3732. * where: {
  3733. * // ... provide filter here
  3734. * },
  3735. * data: {
  3736. * // ... provide data here
  3737. * }
  3738. * })
  3739. *
  3740. */
  3741. updateMany<T extends ManualRelanceLogUpdateManyArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3742. /**
  3743. * Update zero or more ManualRelanceLogs and returns the data updated in the database.
  3744. * @param {ManualRelanceLogUpdateManyAndReturnArgs} args - Arguments to update many ManualRelanceLogs.
  3745. * @example
  3746. * // Update many ManualRelanceLogs
  3747. * const manualRelanceLog = await prisma.manualRelanceLog.updateManyAndReturn({
  3748. * where: {
  3749. * // ... provide filter here
  3750. * },
  3751. * data: [
  3752. * // ... provide data here
  3753. * ]
  3754. * })
  3755. *
  3756. * // Update zero or more ManualRelanceLogs and only return the `id`
  3757. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.updateManyAndReturn({
  3758. * select: { id: true },
  3759. * where: {
  3760. * // ... provide filter here
  3761. * },
  3762. * data: [
  3763. * // ... provide data here
  3764. * ]
  3765. * })
  3766. * Note, that providing `undefined` is treated as the value not being there.
  3767. * Read more here: https://pris.ly/d/null-undefined
  3768. *
  3769. */
  3770. updateManyAndReturn<T extends ManualRelanceLogUpdateManyAndReturnArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  3771. /**
  3772. * Create or update one ManualRelanceLog.
  3773. * @param {ManualRelanceLogUpsertArgs} args - Arguments to update or create a ManualRelanceLog.
  3774. * @example
  3775. * // Update or create a ManualRelanceLog
  3776. * const manualRelanceLog = await prisma.manualRelanceLog.upsert({
  3777. * create: {
  3778. * // ... data to create a ManualRelanceLog
  3779. * },
  3780. * update: {
  3781. * // ... in case it already exists, update
  3782. * },
  3783. * where: {
  3784. * // ... the filter for the ManualRelanceLog we want to update
  3785. * }
  3786. * })
  3787. */
  3788. upsert<T extends ManualRelanceLogUpsertArgs>(args: SelectSubset<T, ManualRelanceLogUpsertArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3789. /**
  3790. * Count the number of ManualRelanceLogs.
  3791. * Note, that providing `undefined` is treated as the value not being there.
  3792. * Read more here: https://pris.ly/d/null-undefined
  3793. * @param {ManualRelanceLogCountArgs} args - Arguments to filter ManualRelanceLogs to count.
  3794. * @example
  3795. * // Count the number of ManualRelanceLogs
  3796. * const count = await prisma.manualRelanceLog.count({
  3797. * where: {
  3798. * // ... the filter for the ManualRelanceLogs we want to count
  3799. * }
  3800. * })
  3801. **/
  3802. count<T extends ManualRelanceLogCountArgs>(
  3803. args?: Subset<T, ManualRelanceLogCountArgs>,
  3804. ): Prisma.PrismaPromise<
  3805. T extends $Utils.Record<'select', any>
  3806. ? T['select'] extends true
  3807. ? number
  3808. : GetScalarType<T['select'], ManualRelanceLogCountAggregateOutputType>
  3809. : number
  3810. >
  3811. /**
  3812. * Allows you to perform aggregations operations on a ManualRelanceLog.
  3813. * Note, that providing `undefined` is treated as the value not being there.
  3814. * Read more here: https://pris.ly/d/null-undefined
  3815. * @param {ManualRelanceLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  3816. * @example
  3817. * // Ordered by age ascending
  3818. * // Where email contains prisma.io
  3819. * // Limited to the 10 users
  3820. * const aggregations = await prisma.user.aggregate({
  3821. * _avg: {
  3822. * age: true,
  3823. * },
  3824. * where: {
  3825. * email: {
  3826. * contains: "prisma.io",
  3827. * },
  3828. * },
  3829. * orderBy: {
  3830. * age: "asc",
  3831. * },
  3832. * take: 10,
  3833. * })
  3834. **/
  3835. aggregate<T extends ManualRelanceLogAggregateArgs>(args: Subset<T, ManualRelanceLogAggregateArgs>): Prisma.PrismaPromise<GetManualRelanceLogAggregateType<T>>
  3836. /**
  3837. * Group by ManualRelanceLog.
  3838. * Note, that providing `undefined` is treated as the value not being there.
  3839. * Read more here: https://pris.ly/d/null-undefined
  3840. * @param {ManualRelanceLogGroupByArgs} args - Group by arguments.
  3841. * @example
  3842. * // Group by city, order by createdAt, get count
  3843. * const result = await prisma.user.groupBy({
  3844. * by: ['city', 'createdAt'],
  3845. * orderBy: {
  3846. * createdAt: true
  3847. * },
  3848. * _count: {
  3849. * _all: true
  3850. * },
  3851. * })
  3852. *
  3853. **/
  3854. groupBy<
  3855. T extends ManualRelanceLogGroupByArgs,
  3856. HasSelectOrTake extends Or<
  3857. Extends<'skip', Keys<T>>,
  3858. Extends<'take', Keys<T>>
  3859. >,
  3860. OrderByArg extends True extends HasSelectOrTake
  3861. ? { orderBy: ManualRelanceLogGroupByArgs['orderBy'] }
  3862. : { orderBy?: ManualRelanceLogGroupByArgs['orderBy'] },
  3863. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  3864. ByFields extends MaybeTupleToUnion<T['by']>,
  3865. ByValid extends Has<ByFields, OrderFields>,
  3866. HavingFields extends GetHavingFields<T['having']>,
  3867. HavingValid extends Has<ByFields, HavingFields>,
  3868. ByEmpty extends T['by'] extends never[] ? True : False,
  3869. InputErrors extends ByEmpty extends True
  3870. ? `Error: "by" must not be empty.`
  3871. : HavingValid extends False
  3872. ? {
  3873. [P in HavingFields]: P extends ByFields
  3874. ? never
  3875. : P extends string
  3876. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  3877. : [
  3878. Error,
  3879. 'Field ',
  3880. P,
  3881. ` in "having" needs to be provided in "by"`,
  3882. ]
  3883. }[HavingFields]
  3884. : 'take' extends Keys<T>
  3885. ? 'orderBy' extends Keys<T>
  3886. ? ByValid extends True
  3887. ? {}
  3888. : {
  3889. [P in OrderFields]: P extends ByFields
  3890. ? never
  3891. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3892. }[OrderFields]
  3893. : 'Error: If you provide "take", you also need to provide "orderBy"'
  3894. : 'skip' extends Keys<T>
  3895. ? 'orderBy' extends Keys<T>
  3896. ? ByValid extends True
  3897. ? {}
  3898. : {
  3899. [P in OrderFields]: P extends ByFields
  3900. ? never
  3901. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3902. }[OrderFields]
  3903. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  3904. : ByValid extends True
  3905. ? {}
  3906. : {
  3907. [P in OrderFields]: P extends ByFields
  3908. ? never
  3909. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  3910. }[OrderFields]
  3911. >(args: SubsetIntersection<T, ManualRelanceLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetManualRelanceLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  3912. /**
  3913. * Fields of the ManualRelanceLog model
  3914. */
  3915. readonly fields: ManualRelanceLogFieldRefs;
  3916. }
  3917. /**
  3918. * The delegate class that acts as a "Promise-like" for ManualRelanceLog.
  3919. * Why is this prefixed with `Prisma__`?
  3920. * Because we want to prevent naming conflicts as mentioned in
  3921. * https://github.com/prisma/prisma-client-js/issues/707
  3922. */
  3923. export interface Prisma__ManualRelanceLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  3924. readonly [Symbol.toStringTag]: "PrismaPromise"
  3925. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  3926. /**
  3927. * Attaches callbacks for the resolution and/or rejection of the Promise.
  3928. * @param onfulfilled The callback to execute when the Promise is resolved.
  3929. * @param onrejected The callback to execute when the Promise is rejected.
  3930. * @returns A Promise for the completion of which ever callback is executed.
  3931. */
  3932. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  3933. /**
  3934. * Attaches a callback for only the rejection of the Promise.
  3935. * @param onrejected The callback to execute when the Promise is rejected.
  3936. * @returns A Promise for the completion of the callback.
  3937. */
  3938. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  3939. /**
  3940. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  3941. * resolved value cannot be modified from the callback.
  3942. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  3943. * @returns A Promise for the completion of the callback.
  3944. */
  3945. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  3946. }
  3947. /**
  3948. * Fields of the ManualRelanceLog model
  3949. */
  3950. interface ManualRelanceLogFieldRefs {
  3951. readonly id: FieldRef<"ManualRelanceLog", 'String'>
  3952. readonly workspaceId: FieldRef<"ManualRelanceLog", 'String'>
  3953. readonly subject: FieldRef<"ManualRelanceLog", 'String'>
  3954. readonly recipientCount: FieldRef<"ManualRelanceLog", 'Int'>
  3955. readonly sentCount: FieldRef<"ManualRelanceLog", 'Int'>
  3956. readonly failedCount: FieldRef<"ManualRelanceLog", 'Int'>
  3957. readonly sentAt: FieldRef<"ManualRelanceLog", 'DateTime'>
  3958. }
  3959. // Custom InputTypes
  3960. /**
  3961. * ManualRelanceLog findUnique
  3962. */
  3963. export type ManualRelanceLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3964. /**
  3965. * Select specific fields to fetch from the ManualRelanceLog
  3966. */
  3967. select?: ManualRelanceLogSelect<ExtArgs> | null
  3968. /**
  3969. * Omit specific fields from the ManualRelanceLog
  3970. */
  3971. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3972. /**
  3973. * Choose, which related nodes to fetch as well
  3974. */
  3975. include?: ManualRelanceLogInclude<ExtArgs> | null
  3976. /**
  3977. * Filter, which ManualRelanceLog to fetch.
  3978. */
  3979. where: ManualRelanceLogWhereUniqueInput
  3980. }
  3981. /**
  3982. * ManualRelanceLog findUniqueOrThrow
  3983. */
  3984. export type ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3985. /**
  3986. * Select specific fields to fetch from the ManualRelanceLog
  3987. */
  3988. select?: ManualRelanceLogSelect<ExtArgs> | null
  3989. /**
  3990. * Omit specific fields from the ManualRelanceLog
  3991. */
  3992. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3993. /**
  3994. * Choose, which related nodes to fetch as well
  3995. */
  3996. include?: ManualRelanceLogInclude<ExtArgs> | null
  3997. /**
  3998. * Filter, which ManualRelanceLog to fetch.
  3999. */
  4000. where: ManualRelanceLogWhereUniqueInput
  4001. }
  4002. /**
  4003. * ManualRelanceLog findFirst
  4004. */
  4005. export type ManualRelanceLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4006. /**
  4007. * Select specific fields to fetch from the ManualRelanceLog
  4008. */
  4009. select?: ManualRelanceLogSelect<ExtArgs> | null
  4010. /**
  4011. * Omit specific fields from the ManualRelanceLog
  4012. */
  4013. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4014. /**
  4015. * Choose, which related nodes to fetch as well
  4016. */
  4017. include?: ManualRelanceLogInclude<ExtArgs> | null
  4018. /**
  4019. * Filter, which ManualRelanceLog to fetch.
  4020. */
  4021. where?: ManualRelanceLogWhereInput
  4022. /**
  4023. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4024. *
  4025. * Determine the order of ManualRelanceLogs to fetch.
  4026. */
  4027. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4028. /**
  4029. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4030. *
  4031. * Sets the position for searching for ManualRelanceLogs.
  4032. */
  4033. cursor?: ManualRelanceLogWhereUniqueInput
  4034. /**
  4035. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4036. *
  4037. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4038. */
  4039. take?: number
  4040. /**
  4041. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4042. *
  4043. * Skip the first `n` ManualRelanceLogs.
  4044. */
  4045. skip?: number
  4046. /**
  4047. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4048. *
  4049. * Filter by unique combinations of ManualRelanceLogs.
  4050. */
  4051. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4052. }
  4053. /**
  4054. * ManualRelanceLog findFirstOrThrow
  4055. */
  4056. export type ManualRelanceLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4057. /**
  4058. * Select specific fields to fetch from the ManualRelanceLog
  4059. */
  4060. select?: ManualRelanceLogSelect<ExtArgs> | null
  4061. /**
  4062. * Omit specific fields from the ManualRelanceLog
  4063. */
  4064. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4065. /**
  4066. * Choose, which related nodes to fetch as well
  4067. */
  4068. include?: ManualRelanceLogInclude<ExtArgs> | null
  4069. /**
  4070. * Filter, which ManualRelanceLog to fetch.
  4071. */
  4072. where?: ManualRelanceLogWhereInput
  4073. /**
  4074. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4075. *
  4076. * Determine the order of ManualRelanceLogs to fetch.
  4077. */
  4078. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4079. /**
  4080. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4081. *
  4082. * Sets the position for searching for ManualRelanceLogs.
  4083. */
  4084. cursor?: ManualRelanceLogWhereUniqueInput
  4085. /**
  4086. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4087. *
  4088. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4089. */
  4090. take?: number
  4091. /**
  4092. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4093. *
  4094. * Skip the first `n` ManualRelanceLogs.
  4095. */
  4096. skip?: number
  4097. /**
  4098. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4099. *
  4100. * Filter by unique combinations of ManualRelanceLogs.
  4101. */
  4102. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4103. }
  4104. /**
  4105. * ManualRelanceLog findMany
  4106. */
  4107. export type ManualRelanceLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4108. /**
  4109. * Select specific fields to fetch from the ManualRelanceLog
  4110. */
  4111. select?: ManualRelanceLogSelect<ExtArgs> | null
  4112. /**
  4113. * Omit specific fields from the ManualRelanceLog
  4114. */
  4115. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4116. /**
  4117. * Choose, which related nodes to fetch as well
  4118. */
  4119. include?: ManualRelanceLogInclude<ExtArgs> | null
  4120. /**
  4121. * Filter, which ManualRelanceLogs to fetch.
  4122. */
  4123. where?: ManualRelanceLogWhereInput
  4124. /**
  4125. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4126. *
  4127. * Determine the order of ManualRelanceLogs to fetch.
  4128. */
  4129. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4130. /**
  4131. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4132. *
  4133. * Sets the position for listing ManualRelanceLogs.
  4134. */
  4135. cursor?: ManualRelanceLogWhereUniqueInput
  4136. /**
  4137. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4138. *
  4139. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4140. */
  4141. take?: number
  4142. /**
  4143. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4144. *
  4145. * Skip the first `n` ManualRelanceLogs.
  4146. */
  4147. skip?: number
  4148. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4149. }
  4150. /**
  4151. * ManualRelanceLog create
  4152. */
  4153. export type ManualRelanceLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4154. /**
  4155. * Select specific fields to fetch from the ManualRelanceLog
  4156. */
  4157. select?: ManualRelanceLogSelect<ExtArgs> | null
  4158. /**
  4159. * Omit specific fields from the ManualRelanceLog
  4160. */
  4161. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4162. /**
  4163. * Choose, which related nodes to fetch as well
  4164. */
  4165. include?: ManualRelanceLogInclude<ExtArgs> | null
  4166. /**
  4167. * The data needed to create a ManualRelanceLog.
  4168. */
  4169. data: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4170. }
  4171. /**
  4172. * ManualRelanceLog createMany
  4173. */
  4174. export type ManualRelanceLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4175. /**
  4176. * The data used to create many ManualRelanceLogs.
  4177. */
  4178. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4179. skipDuplicates?: boolean
  4180. }
  4181. /**
  4182. * ManualRelanceLog createManyAndReturn
  4183. */
  4184. export type ManualRelanceLogCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4185. /**
  4186. * Select specific fields to fetch from the ManualRelanceLog
  4187. */
  4188. select?: ManualRelanceLogSelectCreateManyAndReturn<ExtArgs> | null
  4189. /**
  4190. * Omit specific fields from the ManualRelanceLog
  4191. */
  4192. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4193. /**
  4194. * The data used to create many ManualRelanceLogs.
  4195. */
  4196. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4197. skipDuplicates?: boolean
  4198. /**
  4199. * Choose, which related nodes to fetch as well
  4200. */
  4201. include?: ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs> | null
  4202. }
  4203. /**
  4204. * ManualRelanceLog update
  4205. */
  4206. export type ManualRelanceLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4207. /**
  4208. * Select specific fields to fetch from the ManualRelanceLog
  4209. */
  4210. select?: ManualRelanceLogSelect<ExtArgs> | null
  4211. /**
  4212. * Omit specific fields from the ManualRelanceLog
  4213. */
  4214. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4215. /**
  4216. * Choose, which related nodes to fetch as well
  4217. */
  4218. include?: ManualRelanceLogInclude<ExtArgs> | null
  4219. /**
  4220. * The data needed to update a ManualRelanceLog.
  4221. */
  4222. data: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4223. /**
  4224. * Choose, which ManualRelanceLog to update.
  4225. */
  4226. where: ManualRelanceLogWhereUniqueInput
  4227. }
  4228. /**
  4229. * ManualRelanceLog updateMany
  4230. */
  4231. export type ManualRelanceLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4232. /**
  4233. * The data used to update ManualRelanceLogs.
  4234. */
  4235. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4236. /**
  4237. * Filter which ManualRelanceLogs to update
  4238. */
  4239. where?: ManualRelanceLogWhereInput
  4240. /**
  4241. * Limit how many ManualRelanceLogs to update.
  4242. */
  4243. limit?: number
  4244. }
  4245. /**
  4246. * ManualRelanceLog updateManyAndReturn
  4247. */
  4248. export type ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4249. /**
  4250. * Select specific fields to fetch from the ManualRelanceLog
  4251. */
  4252. select?: ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs> | null
  4253. /**
  4254. * Omit specific fields from the ManualRelanceLog
  4255. */
  4256. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4257. /**
  4258. * The data used to update ManualRelanceLogs.
  4259. */
  4260. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4261. /**
  4262. * Filter which ManualRelanceLogs to update
  4263. */
  4264. where?: ManualRelanceLogWhereInput
  4265. /**
  4266. * Limit how many ManualRelanceLogs to update.
  4267. */
  4268. limit?: number
  4269. /**
  4270. * Choose, which related nodes to fetch as well
  4271. */
  4272. include?: ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs> | null
  4273. }
  4274. /**
  4275. * ManualRelanceLog upsert
  4276. */
  4277. export type ManualRelanceLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4278. /**
  4279. * Select specific fields to fetch from the ManualRelanceLog
  4280. */
  4281. select?: ManualRelanceLogSelect<ExtArgs> | null
  4282. /**
  4283. * Omit specific fields from the ManualRelanceLog
  4284. */
  4285. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4286. /**
  4287. * Choose, which related nodes to fetch as well
  4288. */
  4289. include?: ManualRelanceLogInclude<ExtArgs> | null
  4290. /**
  4291. * The filter to search for the ManualRelanceLog to update in case it exists.
  4292. */
  4293. where: ManualRelanceLogWhereUniqueInput
  4294. /**
  4295. * In case the ManualRelanceLog found by the `where` argument doesn't exist, create a new ManualRelanceLog with this data.
  4296. */
  4297. create: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4298. /**
  4299. * In case the ManualRelanceLog was found with the provided `where` argument, update it with this data.
  4300. */
  4301. update: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4302. }
  4303. /**
  4304. * ManualRelanceLog delete
  4305. */
  4306. export type ManualRelanceLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4307. /**
  4308. * Select specific fields to fetch from the ManualRelanceLog
  4309. */
  4310. select?: ManualRelanceLogSelect<ExtArgs> | null
  4311. /**
  4312. * Omit specific fields from the ManualRelanceLog
  4313. */
  4314. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4315. /**
  4316. * Choose, which related nodes to fetch as well
  4317. */
  4318. include?: ManualRelanceLogInclude<ExtArgs> | null
  4319. /**
  4320. * Filter which ManualRelanceLog to delete.
  4321. */
  4322. where: ManualRelanceLogWhereUniqueInput
  4323. }
  4324. /**
  4325. * ManualRelanceLog deleteMany
  4326. */
  4327. export type ManualRelanceLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4328. /**
  4329. * Filter which ManualRelanceLogs to delete
  4330. */
  4331. where?: ManualRelanceLogWhereInput
  4332. /**
  4333. * Limit how many ManualRelanceLogs to delete.
  4334. */
  4335. limit?: number
  4336. }
  4337. /**
  4338. * ManualRelanceLog without action
  4339. */
  4340. export type ManualRelanceLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4341. /**
  4342. * Select specific fields to fetch from the ManualRelanceLog
  4343. */
  4344. select?: ManualRelanceLogSelect<ExtArgs> | null
  4345. /**
  4346. * Omit specific fields from the ManualRelanceLog
  4347. */
  4348. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4349. /**
  4350. * Choose, which related nodes to fetch as well
  4351. */
  4352. include?: ManualRelanceLogInclude<ExtArgs> | null
  4353. }
  4354. /**
  4355. * Model Contributor
  4356. */
  4357. export type AggregateContributor = {
  4358. _count: ContributorCountAggregateOutputType | null
  4359. _min: ContributorMinAggregateOutputType | null
  4360. _max: ContributorMaxAggregateOutputType | null
  4361. }
  4362. export type ContributorMinAggregateOutputType = {
  4363. id: string | null
  4364. workspaceId: string | null
  4365. email: string | null
  4366. service: string | null
  4367. status: $Enums.ContributorStatus | null
  4368. invitedAt: Date | null
  4369. lastRemindedAt: Date | null
  4370. createdAt: Date | null
  4371. }
  4372. export type ContributorMaxAggregateOutputType = {
  4373. id: string | null
  4374. workspaceId: string | null
  4375. email: string | null
  4376. service: string | null
  4377. status: $Enums.ContributorStatus | null
  4378. invitedAt: Date | null
  4379. lastRemindedAt: Date | null
  4380. createdAt: Date | null
  4381. }
  4382. export type ContributorCountAggregateOutputType = {
  4383. id: number
  4384. workspaceId: number
  4385. email: number
  4386. service: number
  4387. status: number
  4388. invitedAt: number
  4389. lastRemindedAt: number
  4390. createdAt: number
  4391. _all: number
  4392. }
  4393. export type ContributorMinAggregateInputType = {
  4394. id?: true
  4395. workspaceId?: true
  4396. email?: true
  4397. service?: true
  4398. status?: true
  4399. invitedAt?: true
  4400. lastRemindedAt?: true
  4401. createdAt?: true
  4402. }
  4403. export type ContributorMaxAggregateInputType = {
  4404. id?: true
  4405. workspaceId?: true
  4406. email?: true
  4407. service?: true
  4408. status?: true
  4409. invitedAt?: true
  4410. lastRemindedAt?: true
  4411. createdAt?: true
  4412. }
  4413. export type ContributorCountAggregateInputType = {
  4414. id?: true
  4415. workspaceId?: true
  4416. email?: true
  4417. service?: true
  4418. status?: true
  4419. invitedAt?: true
  4420. lastRemindedAt?: true
  4421. createdAt?: true
  4422. _all?: true
  4423. }
  4424. export type ContributorAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4425. /**
  4426. * Filter which Contributor to aggregate.
  4427. */
  4428. where?: ContributorWhereInput
  4429. /**
  4430. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4431. *
  4432. * Determine the order of Contributors to fetch.
  4433. */
  4434. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  4435. /**
  4436. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4437. *
  4438. * Sets the start position
  4439. */
  4440. cursor?: ContributorWhereUniqueInput
  4441. /**
  4442. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4443. *
  4444. * Take `±n` Contributors from the position of the cursor.
  4445. */
  4446. take?: number
  4447. /**
  4448. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4449. *
  4450. * Skip the first `n` Contributors.
  4451. */
  4452. skip?: number
  4453. /**
  4454. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4455. *
  4456. * Count returned Contributors
  4457. **/
  4458. _count?: true | ContributorCountAggregateInputType
  4459. /**
  4460. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4461. *
  4462. * Select which fields to find the minimum value
  4463. **/
  4464. _min?: ContributorMinAggregateInputType
  4465. /**
  4466. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4467. *
  4468. * Select which fields to find the maximum value
  4469. **/
  4470. _max?: ContributorMaxAggregateInputType
  4471. }
  4472. export type GetContributorAggregateType<T extends ContributorAggregateArgs> = {
  4473. [P in keyof T & keyof AggregateContributor]: P extends '_count' | 'count'
  4474. ? T[P] extends true
  4475. ? number
  4476. : GetScalarType<T[P], AggregateContributor[P]>
  4477. : GetScalarType<T[P], AggregateContributor[P]>
  4478. }
  4479. export type ContributorGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4480. where?: ContributorWhereInput
  4481. orderBy?: ContributorOrderByWithAggregationInput | ContributorOrderByWithAggregationInput[]
  4482. by: ContributorScalarFieldEnum[] | ContributorScalarFieldEnum
  4483. having?: ContributorScalarWhereWithAggregatesInput
  4484. take?: number
  4485. skip?: number
  4486. _count?: ContributorCountAggregateInputType | true
  4487. _min?: ContributorMinAggregateInputType
  4488. _max?: ContributorMaxAggregateInputType
  4489. }
  4490. export type ContributorGroupByOutputType = {
  4491. id: string
  4492. workspaceId: string
  4493. email: string
  4494. service: string | null
  4495. status: $Enums.ContributorStatus
  4496. invitedAt: Date
  4497. lastRemindedAt: Date | null
  4498. createdAt: Date
  4499. _count: ContributorCountAggregateOutputType | null
  4500. _min: ContributorMinAggregateOutputType | null
  4501. _max: ContributorMaxAggregateOutputType | null
  4502. }
  4503. type GetContributorGroupByPayload<T extends ContributorGroupByArgs> = Prisma.PrismaPromise<
  4504. Array<
  4505. PickEnumerable<ContributorGroupByOutputType, T['by']> &
  4506. {
  4507. [P in ((keyof T) & (keyof ContributorGroupByOutputType))]: P extends '_count'
  4508. ? T[P] extends boolean
  4509. ? number
  4510. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4511. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4512. }
  4513. >
  4514. >
  4515. export type ContributorSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4516. id?: boolean
  4517. workspaceId?: boolean
  4518. email?: boolean
  4519. service?: boolean
  4520. status?: boolean
  4521. invitedAt?: boolean
  4522. lastRemindedAt?: boolean
  4523. createdAt?: boolean
  4524. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4525. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4526. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4527. }, ExtArgs["result"]["contributor"]>
  4528. export type ContributorSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4529. id?: boolean
  4530. workspaceId?: boolean
  4531. email?: boolean
  4532. service?: boolean
  4533. status?: boolean
  4534. invitedAt?: boolean
  4535. lastRemindedAt?: boolean
  4536. createdAt?: boolean
  4537. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4538. }, ExtArgs["result"]["contributor"]>
  4539. export type ContributorSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4540. id?: boolean
  4541. workspaceId?: boolean
  4542. email?: boolean
  4543. service?: boolean
  4544. status?: boolean
  4545. invitedAt?: boolean
  4546. lastRemindedAt?: boolean
  4547. createdAt?: boolean
  4548. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4549. }, ExtArgs["result"]["contributor"]>
  4550. export type ContributorSelectScalar = {
  4551. id?: boolean
  4552. workspaceId?: boolean
  4553. email?: boolean
  4554. service?: boolean
  4555. status?: boolean
  4556. invitedAt?: boolean
  4557. lastRemindedAt?: boolean
  4558. createdAt?: boolean
  4559. }
  4560. export type ContributorOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "email" | "service" | "status" | "invitedAt" | "lastRemindedAt" | "createdAt", ExtArgs["result"]["contributor"]>
  4561. export type ContributorInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4562. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4563. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4564. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4565. }
  4566. export type ContributorIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4567. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4568. }
  4569. export type ContributorIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4570. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4571. }
  4572. export type $ContributorPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4573. name: "Contributor"
  4574. objects: {
  4575. workspace: Prisma.$WorkspacePayload<ExtArgs>
  4576. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  4577. }
  4578. scalars: $Extensions.GetPayloadResult<{
  4579. id: string
  4580. workspaceId: string
  4581. email: string
  4582. /**
  4583. * Service / direction (optionnel), saisi à l'invitation ou éditable — ciblage des relances manuelles.
  4584. */
  4585. service: string | null
  4586. status: $Enums.ContributorStatus
  4587. invitedAt: Date
  4588. lastRemindedAt: Date | null
  4589. createdAt: Date
  4590. }, ExtArgs["result"]["contributor"]>
  4591. composites: {}
  4592. }
  4593. type ContributorGetPayload<S extends boolean | null | undefined | ContributorDefaultArgs> = $Result.GetResult<Prisma.$ContributorPayload, S>
  4594. type ContributorCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  4595. Omit<ContributorFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  4596. select?: ContributorCountAggregateInputType | true
  4597. }
  4598. export interface ContributorDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  4599. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Contributor'], meta: { name: 'Contributor' } }
  4600. /**
  4601. * Find zero or one Contributor that matches the filter.
  4602. * @param {ContributorFindUniqueArgs} args - Arguments to find a Contributor
  4603. * @example
  4604. * // Get one Contributor
  4605. * const contributor = await prisma.contributor.findUnique({
  4606. * where: {
  4607. * // ... provide filter here
  4608. * }
  4609. * })
  4610. */
  4611. findUnique<T extends ContributorFindUniqueArgs>(args: SelectSubset<T, ContributorFindUniqueArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4612. /**
  4613. * Find one Contributor that matches the filter or throw an error with `error.code='P2025'`
  4614. * if no matches were found.
  4615. * @param {ContributorFindUniqueOrThrowArgs} args - Arguments to find a Contributor
  4616. * @example
  4617. * // Get one Contributor
  4618. * const contributor = await prisma.contributor.findUniqueOrThrow({
  4619. * where: {
  4620. * // ... provide filter here
  4621. * }
  4622. * })
  4623. */
  4624. findUniqueOrThrow<T extends ContributorFindUniqueOrThrowArgs>(args: SelectSubset<T, ContributorFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4625. /**
  4626. * Find the first Contributor that matches the filter.
  4627. * Note, that providing `undefined` is treated as the value not being there.
  4628. * Read more here: https://pris.ly/d/null-undefined
  4629. * @param {ContributorFindFirstArgs} args - Arguments to find a Contributor
  4630. * @example
  4631. * // Get one Contributor
  4632. * const contributor = await prisma.contributor.findFirst({
  4633. * where: {
  4634. * // ... provide filter here
  4635. * }
  4636. * })
  4637. */
  4638. findFirst<T extends ContributorFindFirstArgs>(args?: SelectSubset<T, ContributorFindFirstArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4639. /**
  4640. * Find the first Contributor that matches the filter or
  4641. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  4642. * Note, that providing `undefined` is treated as the value not being there.
  4643. * Read more here: https://pris.ly/d/null-undefined
  4644. * @param {ContributorFindFirstOrThrowArgs} args - Arguments to find a Contributor
  4645. * @example
  4646. * // Get one Contributor
  4647. * const contributor = await prisma.contributor.findFirstOrThrow({
  4648. * where: {
  4649. * // ... provide filter here
  4650. * }
  4651. * })
  4652. */
  4653. findFirstOrThrow<T extends ContributorFindFirstOrThrowArgs>(args?: SelectSubset<T, ContributorFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4654. /**
  4655. * Find zero or more Contributors that matches the filter.
  4656. * Note, that providing `undefined` is treated as the value not being there.
  4657. * Read more here: https://pris.ly/d/null-undefined
  4658. * @param {ContributorFindManyArgs} args - Arguments to filter and select certain fields only.
  4659. * @example
  4660. * // Get all Contributors
  4661. * const contributors = await prisma.contributor.findMany()
  4662. *
  4663. * // Get first 10 Contributors
  4664. * const contributors = await prisma.contributor.findMany({ take: 10 })
  4665. *
  4666. * // Only select the `id`
  4667. * const contributorWithIdOnly = await prisma.contributor.findMany({ select: { id: true } })
  4668. *
  4669. */
  4670. findMany<T extends ContributorFindManyArgs>(args?: SelectSubset<T, ContributorFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  4671. /**
  4672. * Create a Contributor.
  4673. * @param {ContributorCreateArgs} args - Arguments to create a Contributor.
  4674. * @example
  4675. * // Create one Contributor
  4676. * const Contributor = await prisma.contributor.create({
  4677. * data: {
  4678. * // ... data to create a Contributor
  4679. * }
  4680. * })
  4681. *
  4682. */
  4683. create<T extends ContributorCreateArgs>(args: SelectSubset<T, ContributorCreateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4684. /**
  4685. * Create many Contributors.
  4686. * @param {ContributorCreateManyArgs} args - Arguments to create many Contributors.
  4687. * @example
  4688. * // Create many Contributors
  4689. * const contributor = await prisma.contributor.createMany({
  4690. * data: [
  4691. * // ... provide data here
  4692. * ]
  4693. * })
  4694. *
  4695. */
  4696. createMany<T extends ContributorCreateManyArgs>(args?: SelectSubset<T, ContributorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4697. /**
  4698. * Create many Contributors and returns the data saved in the database.
  4699. * @param {ContributorCreateManyAndReturnArgs} args - Arguments to create many Contributors.
  4700. * @example
  4701. * // Create many Contributors
  4702. * const contributor = await prisma.contributor.createManyAndReturn({
  4703. * data: [
  4704. * // ... provide data here
  4705. * ]
  4706. * })
  4707. *
  4708. * // Create many Contributors and only return the `id`
  4709. * const contributorWithIdOnly = await prisma.contributor.createManyAndReturn({
  4710. * select: { id: true },
  4711. * data: [
  4712. * // ... provide data here
  4713. * ]
  4714. * })
  4715. * Note, that providing `undefined` is treated as the value not being there.
  4716. * Read more here: https://pris.ly/d/null-undefined
  4717. *
  4718. */
  4719. createManyAndReturn<T extends ContributorCreateManyAndReturnArgs>(args?: SelectSubset<T, ContributorCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  4720. /**
  4721. * Delete a Contributor.
  4722. * @param {ContributorDeleteArgs} args - Arguments to delete one Contributor.
  4723. * @example
  4724. * // Delete one Contributor
  4725. * const Contributor = await prisma.contributor.delete({
  4726. * where: {
  4727. * // ... filter to delete one Contributor
  4728. * }
  4729. * })
  4730. *
  4731. */
  4732. delete<T extends ContributorDeleteArgs>(args: SelectSubset<T, ContributorDeleteArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4733. /**
  4734. * Update one Contributor.
  4735. * @param {ContributorUpdateArgs} args - Arguments to update one Contributor.
  4736. * @example
  4737. * // Update one Contributor
  4738. * const contributor = await prisma.contributor.update({
  4739. * where: {
  4740. * // ... provide filter here
  4741. * },
  4742. * data: {
  4743. * // ... provide data here
  4744. * }
  4745. * })
  4746. *
  4747. */
  4748. update<T extends ContributorUpdateArgs>(args: SelectSubset<T, ContributorUpdateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4749. /**
  4750. * Delete zero or more Contributors.
  4751. * @param {ContributorDeleteManyArgs} args - Arguments to filter Contributors to delete.
  4752. * @example
  4753. * // Delete a few Contributors
  4754. * const { count } = await prisma.contributor.deleteMany({
  4755. * where: {
  4756. * // ... provide filter here
  4757. * }
  4758. * })
  4759. *
  4760. */
  4761. deleteMany<T extends ContributorDeleteManyArgs>(args?: SelectSubset<T, ContributorDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4762. /**
  4763. * Update zero or more Contributors.
  4764. * Note, that providing `undefined` is treated as the value not being there.
  4765. * Read more here: https://pris.ly/d/null-undefined
  4766. * @param {ContributorUpdateManyArgs} args - Arguments to update one or more rows.
  4767. * @example
  4768. * // Update many Contributors
  4769. * const contributor = await prisma.contributor.updateMany({
  4770. * where: {
  4771. * // ... provide filter here
  4772. * },
  4773. * data: {
  4774. * // ... provide data here
  4775. * }
  4776. * })
  4777. *
  4778. */
  4779. updateMany<T extends ContributorUpdateManyArgs>(args: SelectSubset<T, ContributorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4780. /**
  4781. * Update zero or more Contributors and returns the data updated in the database.
  4782. * @param {ContributorUpdateManyAndReturnArgs} args - Arguments to update many Contributors.
  4783. * @example
  4784. * // Update many Contributors
  4785. * const contributor = await prisma.contributor.updateManyAndReturn({
  4786. * where: {
  4787. * // ... provide filter here
  4788. * },
  4789. * data: [
  4790. * // ... provide data here
  4791. * ]
  4792. * })
  4793. *
  4794. * // Update zero or more Contributors and only return the `id`
  4795. * const contributorWithIdOnly = await prisma.contributor.updateManyAndReturn({
  4796. * select: { id: true },
  4797. * where: {
  4798. * // ... provide filter here
  4799. * },
  4800. * data: [
  4801. * // ... provide data here
  4802. * ]
  4803. * })
  4804. * Note, that providing `undefined` is treated as the value not being there.
  4805. * Read more here: https://pris.ly/d/null-undefined
  4806. *
  4807. */
  4808. updateManyAndReturn<T extends ContributorUpdateManyAndReturnArgs>(args: SelectSubset<T, ContributorUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  4809. /**
  4810. * Create or update one Contributor.
  4811. * @param {ContributorUpsertArgs} args - Arguments to update or create a Contributor.
  4812. * @example
  4813. * // Update or create a Contributor
  4814. * const contributor = await prisma.contributor.upsert({
  4815. * create: {
  4816. * // ... data to create a Contributor
  4817. * },
  4818. * update: {
  4819. * // ... in case it already exists, update
  4820. * },
  4821. * where: {
  4822. * // ... the filter for the Contributor we want to update
  4823. * }
  4824. * })
  4825. */
  4826. upsert<T extends ContributorUpsertArgs>(args: SelectSubset<T, ContributorUpsertArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4827. /**
  4828. * Count the number of Contributors.
  4829. * Note, that providing `undefined` is treated as the value not being there.
  4830. * Read more here: https://pris.ly/d/null-undefined
  4831. * @param {ContributorCountArgs} args - Arguments to filter Contributors to count.
  4832. * @example
  4833. * // Count the number of Contributors
  4834. * const count = await prisma.contributor.count({
  4835. * where: {
  4836. * // ... the filter for the Contributors we want to count
  4837. * }
  4838. * })
  4839. **/
  4840. count<T extends ContributorCountArgs>(
  4841. args?: Subset<T, ContributorCountArgs>,
  4842. ): Prisma.PrismaPromise<
  4843. T extends $Utils.Record<'select', any>
  4844. ? T['select'] extends true
  4845. ? number
  4846. : GetScalarType<T['select'], ContributorCountAggregateOutputType>
  4847. : number
  4848. >
  4849. /**
  4850. * Allows you to perform aggregations operations on a Contributor.
  4851. * Note, that providing `undefined` is treated as the value not being there.
  4852. * Read more here: https://pris.ly/d/null-undefined
  4853. * @param {ContributorAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  4854. * @example
  4855. * // Ordered by age ascending
  4856. * // Where email contains prisma.io
  4857. * // Limited to the 10 users
  4858. * const aggregations = await prisma.user.aggregate({
  4859. * _avg: {
  4860. * age: true,
  4861. * },
  4862. * where: {
  4863. * email: {
  4864. * contains: "prisma.io",
  4865. * },
  4866. * },
  4867. * orderBy: {
  4868. * age: "asc",
  4869. * },
  4870. * take: 10,
  4871. * })
  4872. **/
  4873. aggregate<T extends ContributorAggregateArgs>(args: Subset<T, ContributorAggregateArgs>): Prisma.PrismaPromise<GetContributorAggregateType<T>>
  4874. /**
  4875. * Group by Contributor.
  4876. * Note, that providing `undefined` is treated as the value not being there.
  4877. * Read more here: https://pris.ly/d/null-undefined
  4878. * @param {ContributorGroupByArgs} args - Group by arguments.
  4879. * @example
  4880. * // Group by city, order by createdAt, get count
  4881. * const result = await prisma.user.groupBy({
  4882. * by: ['city', 'createdAt'],
  4883. * orderBy: {
  4884. * createdAt: true
  4885. * },
  4886. * _count: {
  4887. * _all: true
  4888. * },
  4889. * })
  4890. *
  4891. **/
  4892. groupBy<
  4893. T extends ContributorGroupByArgs,
  4894. HasSelectOrTake extends Or<
  4895. Extends<'skip', Keys<T>>,
  4896. Extends<'take', Keys<T>>
  4897. >,
  4898. OrderByArg extends True extends HasSelectOrTake
  4899. ? { orderBy: ContributorGroupByArgs['orderBy'] }
  4900. : { orderBy?: ContributorGroupByArgs['orderBy'] },
  4901. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  4902. ByFields extends MaybeTupleToUnion<T['by']>,
  4903. ByValid extends Has<ByFields, OrderFields>,
  4904. HavingFields extends GetHavingFields<T['having']>,
  4905. HavingValid extends Has<ByFields, HavingFields>,
  4906. ByEmpty extends T['by'] extends never[] ? True : False,
  4907. InputErrors extends ByEmpty extends True
  4908. ? `Error: "by" must not be empty.`
  4909. : HavingValid extends False
  4910. ? {
  4911. [P in HavingFields]: P extends ByFields
  4912. ? never
  4913. : P extends string
  4914. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  4915. : [
  4916. Error,
  4917. 'Field ',
  4918. P,
  4919. ` in "having" needs to be provided in "by"`,
  4920. ]
  4921. }[HavingFields]
  4922. : 'take' extends Keys<T>
  4923. ? 'orderBy' extends Keys<T>
  4924. ? ByValid extends True
  4925. ? {}
  4926. : {
  4927. [P in OrderFields]: P extends ByFields
  4928. ? never
  4929. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4930. }[OrderFields]
  4931. : 'Error: If you provide "take", you also need to provide "orderBy"'
  4932. : 'skip' extends Keys<T>
  4933. ? 'orderBy' extends Keys<T>
  4934. ? ByValid extends True
  4935. ? {}
  4936. : {
  4937. [P in OrderFields]: P extends ByFields
  4938. ? never
  4939. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4940. }[OrderFields]
  4941. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  4942. : ByValid extends True
  4943. ? {}
  4944. : {
  4945. [P in OrderFields]: P extends ByFields
  4946. ? never
  4947. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4948. }[OrderFields]
  4949. >(args: SubsetIntersection<T, ContributorGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContributorGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  4950. /**
  4951. * Fields of the Contributor model
  4952. */
  4953. readonly fields: ContributorFieldRefs;
  4954. }
  4955. /**
  4956. * The delegate class that acts as a "Promise-like" for Contributor.
  4957. * Why is this prefixed with `Prisma__`?
  4958. * Because we want to prevent naming conflicts as mentioned in
  4959. * https://github.com/prisma/prisma-client-js/issues/707
  4960. */
  4961. export interface Prisma__ContributorClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  4962. readonly [Symbol.toStringTag]: "PrismaPromise"
  4963. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  4964. ideas<T extends Contributor$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Contributor$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  4965. /**
  4966. * Attaches callbacks for the resolution and/or rejection of the Promise.
  4967. * @param onfulfilled The callback to execute when the Promise is resolved.
  4968. * @param onrejected The callback to execute when the Promise is rejected.
  4969. * @returns A Promise for the completion of which ever callback is executed.
  4970. */
  4971. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  4972. /**
  4973. * Attaches a callback for only the rejection of the Promise.
  4974. * @param onrejected The callback to execute when the Promise is rejected.
  4975. * @returns A Promise for the completion of the callback.
  4976. */
  4977. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  4978. /**
  4979. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  4980. * resolved value cannot be modified from the callback.
  4981. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  4982. * @returns A Promise for the completion of the callback.
  4983. */
  4984. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  4985. }
  4986. /**
  4987. * Fields of the Contributor model
  4988. */
  4989. interface ContributorFieldRefs {
  4990. readonly id: FieldRef<"Contributor", 'String'>
  4991. readonly workspaceId: FieldRef<"Contributor", 'String'>
  4992. readonly email: FieldRef<"Contributor", 'String'>
  4993. readonly service: FieldRef<"Contributor", 'String'>
  4994. readonly status: FieldRef<"Contributor", 'ContributorStatus'>
  4995. readonly invitedAt: FieldRef<"Contributor", 'DateTime'>
  4996. readonly lastRemindedAt: FieldRef<"Contributor", 'DateTime'>
  4997. readonly createdAt: FieldRef<"Contributor", 'DateTime'>
  4998. }
  4999. // Custom InputTypes
  5000. /**
  5001. * Contributor findUnique
  5002. */
  5003. export type ContributorFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5004. /**
  5005. * Select specific fields to fetch from the Contributor
  5006. */
  5007. select?: ContributorSelect<ExtArgs> | null
  5008. /**
  5009. * Omit specific fields from the Contributor
  5010. */
  5011. omit?: ContributorOmit<ExtArgs> | null
  5012. /**
  5013. * Choose, which related nodes to fetch as well
  5014. */
  5015. include?: ContributorInclude<ExtArgs> | null
  5016. /**
  5017. * Filter, which Contributor to fetch.
  5018. */
  5019. where: ContributorWhereUniqueInput
  5020. }
  5021. /**
  5022. * Contributor findUniqueOrThrow
  5023. */
  5024. export type ContributorFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5025. /**
  5026. * Select specific fields to fetch from the Contributor
  5027. */
  5028. select?: ContributorSelect<ExtArgs> | null
  5029. /**
  5030. * Omit specific fields from the Contributor
  5031. */
  5032. omit?: ContributorOmit<ExtArgs> | null
  5033. /**
  5034. * Choose, which related nodes to fetch as well
  5035. */
  5036. include?: ContributorInclude<ExtArgs> | null
  5037. /**
  5038. * Filter, which Contributor to fetch.
  5039. */
  5040. where: ContributorWhereUniqueInput
  5041. }
  5042. /**
  5043. * Contributor findFirst
  5044. */
  5045. export type ContributorFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5046. /**
  5047. * Select specific fields to fetch from the Contributor
  5048. */
  5049. select?: ContributorSelect<ExtArgs> | null
  5050. /**
  5051. * Omit specific fields from the Contributor
  5052. */
  5053. omit?: ContributorOmit<ExtArgs> | null
  5054. /**
  5055. * Choose, which related nodes to fetch as well
  5056. */
  5057. include?: ContributorInclude<ExtArgs> | null
  5058. /**
  5059. * Filter, which Contributor to fetch.
  5060. */
  5061. where?: ContributorWhereInput
  5062. /**
  5063. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5064. *
  5065. * Determine the order of Contributors to fetch.
  5066. */
  5067. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5068. /**
  5069. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5070. *
  5071. * Sets the position for searching for Contributors.
  5072. */
  5073. cursor?: ContributorWhereUniqueInput
  5074. /**
  5075. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5076. *
  5077. * Take `±n` Contributors from the position of the cursor.
  5078. */
  5079. take?: number
  5080. /**
  5081. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5082. *
  5083. * Skip the first `n` Contributors.
  5084. */
  5085. skip?: number
  5086. /**
  5087. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5088. *
  5089. * Filter by unique combinations of Contributors.
  5090. */
  5091. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5092. }
  5093. /**
  5094. * Contributor findFirstOrThrow
  5095. */
  5096. export type ContributorFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5097. /**
  5098. * Select specific fields to fetch from the Contributor
  5099. */
  5100. select?: ContributorSelect<ExtArgs> | null
  5101. /**
  5102. * Omit specific fields from the Contributor
  5103. */
  5104. omit?: ContributorOmit<ExtArgs> | null
  5105. /**
  5106. * Choose, which related nodes to fetch as well
  5107. */
  5108. include?: ContributorInclude<ExtArgs> | null
  5109. /**
  5110. * Filter, which Contributor to fetch.
  5111. */
  5112. where?: ContributorWhereInput
  5113. /**
  5114. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5115. *
  5116. * Determine the order of Contributors to fetch.
  5117. */
  5118. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5119. /**
  5120. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5121. *
  5122. * Sets the position for searching for Contributors.
  5123. */
  5124. cursor?: ContributorWhereUniqueInput
  5125. /**
  5126. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5127. *
  5128. * Take `±n` Contributors from the position of the cursor.
  5129. */
  5130. take?: number
  5131. /**
  5132. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5133. *
  5134. * Skip the first `n` Contributors.
  5135. */
  5136. skip?: number
  5137. /**
  5138. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5139. *
  5140. * Filter by unique combinations of Contributors.
  5141. */
  5142. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5143. }
  5144. /**
  5145. * Contributor findMany
  5146. */
  5147. export type ContributorFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5148. /**
  5149. * Select specific fields to fetch from the Contributor
  5150. */
  5151. select?: ContributorSelect<ExtArgs> | null
  5152. /**
  5153. * Omit specific fields from the Contributor
  5154. */
  5155. omit?: ContributorOmit<ExtArgs> | null
  5156. /**
  5157. * Choose, which related nodes to fetch as well
  5158. */
  5159. include?: ContributorInclude<ExtArgs> | null
  5160. /**
  5161. * Filter, which Contributors to fetch.
  5162. */
  5163. where?: ContributorWhereInput
  5164. /**
  5165. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5166. *
  5167. * Determine the order of Contributors to fetch.
  5168. */
  5169. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5170. /**
  5171. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5172. *
  5173. * Sets the position for listing Contributors.
  5174. */
  5175. cursor?: ContributorWhereUniqueInput
  5176. /**
  5177. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5178. *
  5179. * Take `±n` Contributors from the position of the cursor.
  5180. */
  5181. take?: number
  5182. /**
  5183. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5184. *
  5185. * Skip the first `n` Contributors.
  5186. */
  5187. skip?: number
  5188. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5189. }
  5190. /**
  5191. * Contributor create
  5192. */
  5193. export type ContributorCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5194. /**
  5195. * Select specific fields to fetch from the Contributor
  5196. */
  5197. select?: ContributorSelect<ExtArgs> | null
  5198. /**
  5199. * Omit specific fields from the Contributor
  5200. */
  5201. omit?: ContributorOmit<ExtArgs> | null
  5202. /**
  5203. * Choose, which related nodes to fetch as well
  5204. */
  5205. include?: ContributorInclude<ExtArgs> | null
  5206. /**
  5207. * The data needed to create a Contributor.
  5208. */
  5209. data: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5210. }
  5211. /**
  5212. * Contributor createMany
  5213. */
  5214. export type ContributorCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5215. /**
  5216. * The data used to create many Contributors.
  5217. */
  5218. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5219. skipDuplicates?: boolean
  5220. }
  5221. /**
  5222. * Contributor createManyAndReturn
  5223. */
  5224. export type ContributorCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5225. /**
  5226. * Select specific fields to fetch from the Contributor
  5227. */
  5228. select?: ContributorSelectCreateManyAndReturn<ExtArgs> | null
  5229. /**
  5230. * Omit specific fields from the Contributor
  5231. */
  5232. omit?: ContributorOmit<ExtArgs> | null
  5233. /**
  5234. * The data used to create many Contributors.
  5235. */
  5236. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5237. skipDuplicates?: boolean
  5238. /**
  5239. * Choose, which related nodes to fetch as well
  5240. */
  5241. include?: ContributorIncludeCreateManyAndReturn<ExtArgs> | null
  5242. }
  5243. /**
  5244. * Contributor update
  5245. */
  5246. export type ContributorUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5247. /**
  5248. * Select specific fields to fetch from the Contributor
  5249. */
  5250. select?: ContributorSelect<ExtArgs> | null
  5251. /**
  5252. * Omit specific fields from the Contributor
  5253. */
  5254. omit?: ContributorOmit<ExtArgs> | null
  5255. /**
  5256. * Choose, which related nodes to fetch as well
  5257. */
  5258. include?: ContributorInclude<ExtArgs> | null
  5259. /**
  5260. * The data needed to update a Contributor.
  5261. */
  5262. data: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5263. /**
  5264. * Choose, which Contributor to update.
  5265. */
  5266. where: ContributorWhereUniqueInput
  5267. }
  5268. /**
  5269. * Contributor updateMany
  5270. */
  5271. export type ContributorUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5272. /**
  5273. * The data used to update Contributors.
  5274. */
  5275. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5276. /**
  5277. * Filter which Contributors to update
  5278. */
  5279. where?: ContributorWhereInput
  5280. /**
  5281. * Limit how many Contributors to update.
  5282. */
  5283. limit?: number
  5284. }
  5285. /**
  5286. * Contributor updateManyAndReturn
  5287. */
  5288. export type ContributorUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5289. /**
  5290. * Select specific fields to fetch from the Contributor
  5291. */
  5292. select?: ContributorSelectUpdateManyAndReturn<ExtArgs> | null
  5293. /**
  5294. * Omit specific fields from the Contributor
  5295. */
  5296. omit?: ContributorOmit<ExtArgs> | null
  5297. /**
  5298. * The data used to update Contributors.
  5299. */
  5300. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5301. /**
  5302. * Filter which Contributors to update
  5303. */
  5304. where?: ContributorWhereInput
  5305. /**
  5306. * Limit how many Contributors to update.
  5307. */
  5308. limit?: number
  5309. /**
  5310. * Choose, which related nodes to fetch as well
  5311. */
  5312. include?: ContributorIncludeUpdateManyAndReturn<ExtArgs> | null
  5313. }
  5314. /**
  5315. * Contributor upsert
  5316. */
  5317. export type ContributorUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5318. /**
  5319. * Select specific fields to fetch from the Contributor
  5320. */
  5321. select?: ContributorSelect<ExtArgs> | null
  5322. /**
  5323. * Omit specific fields from the Contributor
  5324. */
  5325. omit?: ContributorOmit<ExtArgs> | null
  5326. /**
  5327. * Choose, which related nodes to fetch as well
  5328. */
  5329. include?: ContributorInclude<ExtArgs> | null
  5330. /**
  5331. * The filter to search for the Contributor to update in case it exists.
  5332. */
  5333. where: ContributorWhereUniqueInput
  5334. /**
  5335. * In case the Contributor found by the `where` argument doesn't exist, create a new Contributor with this data.
  5336. */
  5337. create: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5338. /**
  5339. * In case the Contributor was found with the provided `where` argument, update it with this data.
  5340. */
  5341. update: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5342. }
  5343. /**
  5344. * Contributor delete
  5345. */
  5346. export type ContributorDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5347. /**
  5348. * Select specific fields to fetch from the Contributor
  5349. */
  5350. select?: ContributorSelect<ExtArgs> | null
  5351. /**
  5352. * Omit specific fields from the Contributor
  5353. */
  5354. omit?: ContributorOmit<ExtArgs> | null
  5355. /**
  5356. * Choose, which related nodes to fetch as well
  5357. */
  5358. include?: ContributorInclude<ExtArgs> | null
  5359. /**
  5360. * Filter which Contributor to delete.
  5361. */
  5362. where: ContributorWhereUniqueInput
  5363. }
  5364. /**
  5365. * Contributor deleteMany
  5366. */
  5367. export type ContributorDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5368. /**
  5369. * Filter which Contributors to delete
  5370. */
  5371. where?: ContributorWhereInput
  5372. /**
  5373. * Limit how many Contributors to delete.
  5374. */
  5375. limit?: number
  5376. }
  5377. /**
  5378. * Contributor.ideas
  5379. */
  5380. export type Contributor$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5381. /**
  5382. * Select specific fields to fetch from the Idea
  5383. */
  5384. select?: IdeaSelect<ExtArgs> | null
  5385. /**
  5386. * Omit specific fields from the Idea
  5387. */
  5388. omit?: IdeaOmit<ExtArgs> | null
  5389. /**
  5390. * Choose, which related nodes to fetch as well
  5391. */
  5392. include?: IdeaInclude<ExtArgs> | null
  5393. where?: IdeaWhereInput
  5394. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5395. cursor?: IdeaWhereUniqueInput
  5396. take?: number
  5397. skip?: number
  5398. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  5399. }
  5400. /**
  5401. * Contributor without action
  5402. */
  5403. export type ContributorDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5404. /**
  5405. * Select specific fields to fetch from the Contributor
  5406. */
  5407. select?: ContributorSelect<ExtArgs> | null
  5408. /**
  5409. * Omit specific fields from the Contributor
  5410. */
  5411. omit?: ContributorOmit<ExtArgs> | null
  5412. /**
  5413. * Choose, which related nodes to fetch as well
  5414. */
  5415. include?: ContributorInclude<ExtArgs> | null
  5416. }
  5417. /**
  5418. * Model Idea
  5419. */
  5420. export type AggregateIdea = {
  5421. _count: IdeaCountAggregateOutputType | null
  5422. _avg: IdeaAvgAggregateOutputType | null
  5423. _sum: IdeaSumAggregateOutputType | null
  5424. _min: IdeaMinAggregateOutputType | null
  5425. _max: IdeaMaxAggregateOutputType | null
  5426. }
  5427. export type IdeaAvgAggregateOutputType = {
  5428. llmScoreImpact: number | null
  5429. llmScoreFeasibility: number | null
  5430. llmScoreUrgency: number | null
  5431. manualScoreImpact: number | null
  5432. manualScoreFeasibility: number | null
  5433. manualScoreUrgency: number | null
  5434. priorityOrder: number | null
  5435. }
  5436. export type IdeaSumAggregateOutputType = {
  5437. llmScoreImpact: number | null
  5438. llmScoreFeasibility: number | null
  5439. llmScoreUrgency: number | null
  5440. manualScoreImpact: number | null
  5441. manualScoreFeasibility: number | null
  5442. manualScoreUrgency: number | null
  5443. priorityOrder: number | null
  5444. }
  5445. export type IdeaMinAggregateOutputType = {
  5446. id: string | null
  5447. workspaceId: string | null
  5448. contributorEmail: string | null
  5449. contributorId: string | null
  5450. department: string | null
  5451. problemDescription: string | null
  5452. estimatedImpact: $Enums.ImpactLevel | null
  5453. frequency: $Enums.Frequency | null
  5454. optionalWhoAffected: string | null
  5455. optionalAlreadyTried: string | null
  5456. optionalSuccessLooksLike: string | null
  5457. status: $Enums.IdeaStatus | null
  5458. llmTitle: string | null
  5459. llmDomain: string | null
  5460. llmAiType: string | null
  5461. llmExplanation: string | null
  5462. llmScoreImpact: number | null
  5463. llmScoreFeasibility: number | null
  5464. llmScoreUrgency: number | null
  5465. llmEnrichedAt: Date | null
  5466. llmEnrichFailed: boolean | null
  5467. manualScoreImpact: number | null
  5468. manualScoreFeasibility: number | null
  5469. manualScoreUrgency: number | null
  5470. priorityOrder: number | null
  5471. emailMessageId: string | null
  5472. createdAt: Date | null
  5473. updatedAt: Date | null
  5474. }
  5475. export type IdeaMaxAggregateOutputType = {
  5476. id: string | null
  5477. workspaceId: string | null
  5478. contributorEmail: string | null
  5479. contributorId: string | null
  5480. department: string | null
  5481. problemDescription: string | null
  5482. estimatedImpact: $Enums.ImpactLevel | null
  5483. frequency: $Enums.Frequency | null
  5484. optionalWhoAffected: string | null
  5485. optionalAlreadyTried: string | null
  5486. optionalSuccessLooksLike: string | null
  5487. status: $Enums.IdeaStatus | null
  5488. llmTitle: string | null
  5489. llmDomain: string | null
  5490. llmAiType: string | null
  5491. llmExplanation: string | null
  5492. llmScoreImpact: number | null
  5493. llmScoreFeasibility: number | null
  5494. llmScoreUrgency: number | null
  5495. llmEnrichedAt: Date | null
  5496. llmEnrichFailed: boolean | null
  5497. manualScoreImpact: number | null
  5498. manualScoreFeasibility: number | null
  5499. manualScoreUrgency: number | null
  5500. priorityOrder: number | null
  5501. emailMessageId: string | null
  5502. createdAt: Date | null
  5503. updatedAt: Date | null
  5504. }
  5505. export type IdeaCountAggregateOutputType = {
  5506. id: number
  5507. workspaceId: number
  5508. contributorEmail: number
  5509. contributorId: number
  5510. department: number
  5511. problemDescription: number
  5512. estimatedImpact: number
  5513. frequency: number
  5514. optionalWhoAffected: number
  5515. optionalAlreadyTried: number
  5516. optionalSuccessLooksLike: number
  5517. status: number
  5518. llmTitle: number
  5519. llmDomain: number
  5520. llmAiType: number
  5521. llmExplanation: number
  5522. llmScoreImpact: number
  5523. llmScoreFeasibility: number
  5524. llmScoreUrgency: number
  5525. llmEnrichedAt: number
  5526. llmEnrichFailed: number
  5527. manualScoreImpact: number
  5528. manualScoreFeasibility: number
  5529. manualScoreUrgency: number
  5530. priorityOrder: number
  5531. emailMessageId: number
  5532. createdAt: number
  5533. updatedAt: number
  5534. _all: number
  5535. }
  5536. export type IdeaAvgAggregateInputType = {
  5537. llmScoreImpact?: true
  5538. llmScoreFeasibility?: true
  5539. llmScoreUrgency?: true
  5540. manualScoreImpact?: true
  5541. manualScoreFeasibility?: true
  5542. manualScoreUrgency?: true
  5543. priorityOrder?: true
  5544. }
  5545. export type IdeaSumAggregateInputType = {
  5546. llmScoreImpact?: true
  5547. llmScoreFeasibility?: true
  5548. llmScoreUrgency?: true
  5549. manualScoreImpact?: true
  5550. manualScoreFeasibility?: true
  5551. manualScoreUrgency?: true
  5552. priorityOrder?: true
  5553. }
  5554. export type IdeaMinAggregateInputType = {
  5555. id?: true
  5556. workspaceId?: true
  5557. contributorEmail?: true
  5558. contributorId?: true
  5559. department?: true
  5560. problemDescription?: true
  5561. estimatedImpact?: true
  5562. frequency?: true
  5563. optionalWhoAffected?: true
  5564. optionalAlreadyTried?: true
  5565. optionalSuccessLooksLike?: true
  5566. status?: true
  5567. llmTitle?: true
  5568. llmDomain?: true
  5569. llmAiType?: true
  5570. llmExplanation?: true
  5571. llmScoreImpact?: true
  5572. llmScoreFeasibility?: true
  5573. llmScoreUrgency?: true
  5574. llmEnrichedAt?: true
  5575. llmEnrichFailed?: true
  5576. manualScoreImpact?: true
  5577. manualScoreFeasibility?: true
  5578. manualScoreUrgency?: true
  5579. priorityOrder?: true
  5580. emailMessageId?: true
  5581. createdAt?: true
  5582. updatedAt?: true
  5583. }
  5584. export type IdeaMaxAggregateInputType = {
  5585. id?: true
  5586. workspaceId?: true
  5587. contributorEmail?: true
  5588. contributorId?: true
  5589. department?: true
  5590. problemDescription?: true
  5591. estimatedImpact?: true
  5592. frequency?: true
  5593. optionalWhoAffected?: true
  5594. optionalAlreadyTried?: true
  5595. optionalSuccessLooksLike?: true
  5596. status?: true
  5597. llmTitle?: true
  5598. llmDomain?: true
  5599. llmAiType?: true
  5600. llmExplanation?: true
  5601. llmScoreImpact?: true
  5602. llmScoreFeasibility?: true
  5603. llmScoreUrgency?: true
  5604. llmEnrichedAt?: true
  5605. llmEnrichFailed?: true
  5606. manualScoreImpact?: true
  5607. manualScoreFeasibility?: true
  5608. manualScoreUrgency?: true
  5609. priorityOrder?: true
  5610. emailMessageId?: true
  5611. createdAt?: true
  5612. updatedAt?: true
  5613. }
  5614. export type IdeaCountAggregateInputType = {
  5615. id?: true
  5616. workspaceId?: true
  5617. contributorEmail?: true
  5618. contributorId?: true
  5619. department?: true
  5620. problemDescription?: true
  5621. estimatedImpact?: true
  5622. frequency?: true
  5623. optionalWhoAffected?: true
  5624. optionalAlreadyTried?: true
  5625. optionalSuccessLooksLike?: true
  5626. status?: true
  5627. llmTitle?: true
  5628. llmDomain?: true
  5629. llmAiType?: true
  5630. llmExplanation?: true
  5631. llmScoreImpact?: true
  5632. llmScoreFeasibility?: true
  5633. llmScoreUrgency?: true
  5634. llmEnrichedAt?: true
  5635. llmEnrichFailed?: true
  5636. manualScoreImpact?: true
  5637. manualScoreFeasibility?: true
  5638. manualScoreUrgency?: true
  5639. priorityOrder?: true
  5640. emailMessageId?: true
  5641. createdAt?: true
  5642. updatedAt?: true
  5643. _all?: true
  5644. }
  5645. export type IdeaAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5646. /**
  5647. * Filter which Idea to aggregate.
  5648. */
  5649. where?: IdeaWhereInput
  5650. /**
  5651. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5652. *
  5653. * Determine the order of Ideas to fetch.
  5654. */
  5655. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5656. /**
  5657. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5658. *
  5659. * Sets the start position
  5660. */
  5661. cursor?: IdeaWhereUniqueInput
  5662. /**
  5663. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5664. *
  5665. * Take `±n` Ideas from the position of the cursor.
  5666. */
  5667. take?: number
  5668. /**
  5669. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5670. *
  5671. * Skip the first `n` Ideas.
  5672. */
  5673. skip?: number
  5674. /**
  5675. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5676. *
  5677. * Count returned Ideas
  5678. **/
  5679. _count?: true | IdeaCountAggregateInputType
  5680. /**
  5681. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5682. *
  5683. * Select which fields to average
  5684. **/
  5685. _avg?: IdeaAvgAggregateInputType
  5686. /**
  5687. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5688. *
  5689. * Select which fields to sum
  5690. **/
  5691. _sum?: IdeaSumAggregateInputType
  5692. /**
  5693. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5694. *
  5695. * Select which fields to find the minimum value
  5696. **/
  5697. _min?: IdeaMinAggregateInputType
  5698. /**
  5699. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5700. *
  5701. * Select which fields to find the maximum value
  5702. **/
  5703. _max?: IdeaMaxAggregateInputType
  5704. }
  5705. export type GetIdeaAggregateType<T extends IdeaAggregateArgs> = {
  5706. [P in keyof T & keyof AggregateIdea]: P extends '_count' | 'count'
  5707. ? T[P] extends true
  5708. ? number
  5709. : GetScalarType<T[P], AggregateIdea[P]>
  5710. : GetScalarType<T[P], AggregateIdea[P]>
  5711. }
  5712. export type IdeaGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5713. where?: IdeaWhereInput
  5714. orderBy?: IdeaOrderByWithAggregationInput | IdeaOrderByWithAggregationInput[]
  5715. by: IdeaScalarFieldEnum[] | IdeaScalarFieldEnum
  5716. having?: IdeaScalarWhereWithAggregatesInput
  5717. take?: number
  5718. skip?: number
  5719. _count?: IdeaCountAggregateInputType | true
  5720. _avg?: IdeaAvgAggregateInputType
  5721. _sum?: IdeaSumAggregateInputType
  5722. _min?: IdeaMinAggregateInputType
  5723. _max?: IdeaMaxAggregateInputType
  5724. }
  5725. export type IdeaGroupByOutputType = {
  5726. id: string
  5727. workspaceId: string
  5728. contributorEmail: string
  5729. contributorId: string | null
  5730. department: string
  5731. problemDescription: string
  5732. estimatedImpact: $Enums.ImpactLevel
  5733. frequency: $Enums.Frequency
  5734. optionalWhoAffected: string | null
  5735. optionalAlreadyTried: string | null
  5736. optionalSuccessLooksLike: string | null
  5737. status: $Enums.IdeaStatus
  5738. llmTitle: string | null
  5739. llmDomain: string | null
  5740. llmAiType: string | null
  5741. llmExplanation: string | null
  5742. llmScoreImpact: number | null
  5743. llmScoreFeasibility: number | null
  5744. llmScoreUrgency: number | null
  5745. llmEnrichedAt: Date | null
  5746. llmEnrichFailed: boolean
  5747. manualScoreImpact: number | null
  5748. manualScoreFeasibility: number | null
  5749. manualScoreUrgency: number | null
  5750. priorityOrder: number | null
  5751. emailMessageId: string | null
  5752. createdAt: Date
  5753. updatedAt: Date
  5754. _count: IdeaCountAggregateOutputType | null
  5755. _avg: IdeaAvgAggregateOutputType | null
  5756. _sum: IdeaSumAggregateOutputType | null
  5757. _min: IdeaMinAggregateOutputType | null
  5758. _max: IdeaMaxAggregateOutputType | null
  5759. }
  5760. type GetIdeaGroupByPayload<T extends IdeaGroupByArgs> = Prisma.PrismaPromise<
  5761. Array<
  5762. PickEnumerable<IdeaGroupByOutputType, T['by']> &
  5763. {
  5764. [P in ((keyof T) & (keyof IdeaGroupByOutputType))]: P extends '_count'
  5765. ? T[P] extends boolean
  5766. ? number
  5767. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5768. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5769. }
  5770. >
  5771. >
  5772. export type IdeaSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5773. id?: boolean
  5774. workspaceId?: boolean
  5775. contributorEmail?: boolean
  5776. contributorId?: boolean
  5777. department?: boolean
  5778. problemDescription?: boolean
  5779. estimatedImpact?: boolean
  5780. frequency?: boolean
  5781. optionalWhoAffected?: boolean
  5782. optionalAlreadyTried?: boolean
  5783. optionalSuccessLooksLike?: boolean
  5784. status?: boolean
  5785. llmTitle?: boolean
  5786. llmDomain?: boolean
  5787. llmAiType?: boolean
  5788. llmExplanation?: boolean
  5789. llmScoreImpact?: boolean
  5790. llmScoreFeasibility?: boolean
  5791. llmScoreUrgency?: boolean
  5792. llmEnrichedAt?: boolean
  5793. llmEnrichFailed?: boolean
  5794. manualScoreImpact?: boolean
  5795. manualScoreFeasibility?: boolean
  5796. manualScoreUrgency?: boolean
  5797. priorityOrder?: boolean
  5798. emailMessageId?: boolean
  5799. createdAt?: boolean
  5800. updatedAt?: boolean
  5801. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5802. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5803. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  5804. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  5805. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  5806. }, ExtArgs["result"]["idea"]>
  5807. export type IdeaSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5808. id?: boolean
  5809. workspaceId?: boolean
  5810. contributorEmail?: boolean
  5811. contributorId?: boolean
  5812. department?: boolean
  5813. problemDescription?: boolean
  5814. estimatedImpact?: boolean
  5815. frequency?: boolean
  5816. optionalWhoAffected?: boolean
  5817. optionalAlreadyTried?: boolean
  5818. optionalSuccessLooksLike?: boolean
  5819. status?: boolean
  5820. llmTitle?: boolean
  5821. llmDomain?: boolean
  5822. llmAiType?: boolean
  5823. llmExplanation?: boolean
  5824. llmScoreImpact?: boolean
  5825. llmScoreFeasibility?: boolean
  5826. llmScoreUrgency?: boolean
  5827. llmEnrichedAt?: boolean
  5828. llmEnrichFailed?: boolean
  5829. manualScoreImpact?: boolean
  5830. manualScoreFeasibility?: boolean
  5831. manualScoreUrgency?: boolean
  5832. priorityOrder?: boolean
  5833. emailMessageId?: boolean
  5834. createdAt?: boolean
  5835. updatedAt?: boolean
  5836. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5837. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5838. }, ExtArgs["result"]["idea"]>
  5839. export type IdeaSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5840. id?: boolean
  5841. workspaceId?: boolean
  5842. contributorEmail?: boolean
  5843. contributorId?: boolean
  5844. department?: boolean
  5845. problemDescription?: boolean
  5846. estimatedImpact?: boolean
  5847. frequency?: boolean
  5848. optionalWhoAffected?: boolean
  5849. optionalAlreadyTried?: boolean
  5850. optionalSuccessLooksLike?: boolean
  5851. status?: boolean
  5852. llmTitle?: boolean
  5853. llmDomain?: boolean
  5854. llmAiType?: boolean
  5855. llmExplanation?: boolean
  5856. llmScoreImpact?: boolean
  5857. llmScoreFeasibility?: boolean
  5858. llmScoreUrgency?: boolean
  5859. llmEnrichedAt?: boolean
  5860. llmEnrichFailed?: boolean
  5861. manualScoreImpact?: boolean
  5862. manualScoreFeasibility?: boolean
  5863. manualScoreUrgency?: boolean
  5864. priorityOrder?: boolean
  5865. emailMessageId?: boolean
  5866. createdAt?: boolean
  5867. updatedAt?: boolean
  5868. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5869. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5870. }, ExtArgs["result"]["idea"]>
  5871. export type IdeaSelectScalar = {
  5872. id?: boolean
  5873. workspaceId?: boolean
  5874. contributorEmail?: boolean
  5875. contributorId?: boolean
  5876. department?: boolean
  5877. problemDescription?: boolean
  5878. estimatedImpact?: boolean
  5879. frequency?: boolean
  5880. optionalWhoAffected?: boolean
  5881. optionalAlreadyTried?: boolean
  5882. optionalSuccessLooksLike?: boolean
  5883. status?: boolean
  5884. llmTitle?: boolean
  5885. llmDomain?: boolean
  5886. llmAiType?: boolean
  5887. llmExplanation?: boolean
  5888. llmScoreImpact?: boolean
  5889. llmScoreFeasibility?: boolean
  5890. llmScoreUrgency?: boolean
  5891. llmEnrichedAt?: boolean
  5892. llmEnrichFailed?: boolean
  5893. manualScoreImpact?: boolean
  5894. manualScoreFeasibility?: boolean
  5895. manualScoreUrgency?: boolean
  5896. priorityOrder?: boolean
  5897. emailMessageId?: boolean
  5898. createdAt?: boolean
  5899. updatedAt?: boolean
  5900. }
  5901. export type IdeaOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "contributorEmail" | "contributorId" | "department" | "problemDescription" | "estimatedImpact" | "frequency" | "optionalWhoAffected" | "optionalAlreadyTried" | "optionalSuccessLooksLike" | "status" | "llmTitle" | "llmDomain" | "llmAiType" | "llmExplanation" | "llmScoreImpact" | "llmScoreFeasibility" | "llmScoreUrgency" | "llmEnrichedAt" | "llmEnrichFailed" | "manualScoreImpact" | "manualScoreFeasibility" | "manualScoreUrgency" | "priorityOrder" | "emailMessageId" | "createdAt" | "updatedAt", ExtArgs["result"]["idea"]>
  5902. export type IdeaInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5903. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5904. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5905. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  5906. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  5907. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  5908. }
  5909. export type IdeaIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5910. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5911. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5912. }
  5913. export type IdeaIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5914. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5915. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5916. }
  5917. export type $IdeaPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5918. name: "Idea"
  5919. objects: {
  5920. workspace: Prisma.$WorkspacePayload<ExtArgs>
  5921. contributor: Prisma.$ContributorPayload<ExtArgs> | null
  5922. attachments: Prisma.$IdeaAttachmentPayload<ExtArgs>[]
  5923. qualificationQuestions: Prisma.$QualificationQuestionPayload<ExtArgs>[]
  5924. }
  5925. scalars: $Extensions.GetPayloadResult<{
  5926. id: string
  5927. workspaceId: string
  5928. contributorEmail: string
  5929. contributorId: string | null
  5930. department: string
  5931. problemDescription: string
  5932. estimatedImpact: $Enums.ImpactLevel
  5933. frequency: $Enums.Frequency
  5934. /**
  5935. * Réponses optionnelles à la soumission (langage métier) — aident le transformateur à trancher
  5936. */
  5937. optionalWhoAffected: string | null
  5938. optionalAlreadyTried: string | null
  5939. optionalSuccessLooksLike: string | null
  5940. status: $Enums.IdeaStatus
  5941. llmTitle: string | null
  5942. llmDomain: string | null
  5943. llmAiType: string | null
  5944. llmExplanation: string | null
  5945. llmScoreImpact: number | null
  5946. llmScoreFeasibility: number | null
  5947. llmScoreUrgency: number | null
  5948. llmEnrichedAt: Date | null
  5949. llmEnrichFailed: boolean
  5950. manualScoreImpact: number | null
  5951. manualScoreFeasibility: number | null
  5952. manualScoreUrgency: number | null
  5953. priorityOrder: number | null
  5954. emailMessageId: string | null
  5955. createdAt: Date
  5956. updatedAt: Date
  5957. }, ExtArgs["result"]["idea"]>
  5958. composites: {}
  5959. }
  5960. type IdeaGetPayload<S extends boolean | null | undefined | IdeaDefaultArgs> = $Result.GetResult<Prisma.$IdeaPayload, S>
  5961. type IdeaCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  5962. Omit<IdeaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  5963. select?: IdeaCountAggregateInputType | true
  5964. }
  5965. export interface IdeaDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  5966. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Idea'], meta: { name: 'Idea' } }
  5967. /**
  5968. * Find zero or one Idea that matches the filter.
  5969. * @param {IdeaFindUniqueArgs} args - Arguments to find a Idea
  5970. * @example
  5971. * // Get one Idea
  5972. * const idea = await prisma.idea.findUnique({
  5973. * where: {
  5974. * // ... provide filter here
  5975. * }
  5976. * })
  5977. */
  5978. findUnique<T extends IdeaFindUniqueArgs>(args: SelectSubset<T, IdeaFindUniqueArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  5979. /**
  5980. * Find one Idea that matches the filter or throw an error with `error.code='P2025'`
  5981. * if no matches were found.
  5982. * @param {IdeaFindUniqueOrThrowArgs} args - Arguments to find a Idea
  5983. * @example
  5984. * // Get one Idea
  5985. * const idea = await prisma.idea.findUniqueOrThrow({
  5986. * where: {
  5987. * // ... provide filter here
  5988. * }
  5989. * })
  5990. */
  5991. findUniqueOrThrow<T extends IdeaFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  5992. /**
  5993. * Find the first Idea that matches the filter.
  5994. * Note, that providing `undefined` is treated as the value not being there.
  5995. * Read more here: https://pris.ly/d/null-undefined
  5996. * @param {IdeaFindFirstArgs} args - Arguments to find a Idea
  5997. * @example
  5998. * // Get one Idea
  5999. * const idea = await prisma.idea.findFirst({
  6000. * where: {
  6001. * // ... provide filter here
  6002. * }
  6003. * })
  6004. */
  6005. findFirst<T extends IdeaFindFirstArgs>(args?: SelectSubset<T, IdeaFindFirstArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  6006. /**
  6007. * Find the first Idea that matches the filter or
  6008. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  6009. * Note, that providing `undefined` is treated as the value not being there.
  6010. * Read more here: https://pris.ly/d/null-undefined
  6011. * @param {IdeaFindFirstOrThrowArgs} args - Arguments to find a Idea
  6012. * @example
  6013. * // Get one Idea
  6014. * const idea = await prisma.idea.findFirstOrThrow({
  6015. * where: {
  6016. * // ... provide filter here
  6017. * }
  6018. * })
  6019. */
  6020. findFirstOrThrow<T extends IdeaFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6021. /**
  6022. * Find zero or more Ideas that matches the filter.
  6023. * Note, that providing `undefined` is treated as the value not being there.
  6024. * Read more here: https://pris.ly/d/null-undefined
  6025. * @param {IdeaFindManyArgs} args - Arguments to filter and select certain fields only.
  6026. * @example
  6027. * // Get all Ideas
  6028. * const ideas = await prisma.idea.findMany()
  6029. *
  6030. * // Get first 10 Ideas
  6031. * const ideas = await prisma.idea.findMany({ take: 10 })
  6032. *
  6033. * // Only select the `id`
  6034. * const ideaWithIdOnly = await prisma.idea.findMany({ select: { id: true } })
  6035. *
  6036. */
  6037. findMany<T extends IdeaFindManyArgs>(args?: SelectSubset<T, IdeaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  6038. /**
  6039. * Create a Idea.
  6040. * @param {IdeaCreateArgs} args - Arguments to create a Idea.
  6041. * @example
  6042. * // Create one Idea
  6043. * const Idea = await prisma.idea.create({
  6044. * data: {
  6045. * // ... data to create a Idea
  6046. * }
  6047. * })
  6048. *
  6049. */
  6050. create<T extends IdeaCreateArgs>(args: SelectSubset<T, IdeaCreateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6051. /**
  6052. * Create many Ideas.
  6053. * @param {IdeaCreateManyArgs} args - Arguments to create many Ideas.
  6054. * @example
  6055. * // Create many Ideas
  6056. * const idea = await prisma.idea.createMany({
  6057. * data: [
  6058. * // ... provide data here
  6059. * ]
  6060. * })
  6061. *
  6062. */
  6063. createMany<T extends IdeaCreateManyArgs>(args?: SelectSubset<T, IdeaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6064. /**
  6065. * Create many Ideas and returns the data saved in the database.
  6066. * @param {IdeaCreateManyAndReturnArgs} args - Arguments to create many Ideas.
  6067. * @example
  6068. * // Create many Ideas
  6069. * const idea = await prisma.idea.createManyAndReturn({
  6070. * data: [
  6071. * // ... provide data here
  6072. * ]
  6073. * })
  6074. *
  6075. * // Create many Ideas and only return the `id`
  6076. * const ideaWithIdOnly = await prisma.idea.createManyAndReturn({
  6077. * select: { id: true },
  6078. * data: [
  6079. * // ... provide data here
  6080. * ]
  6081. * })
  6082. * Note, that providing `undefined` is treated as the value not being there.
  6083. * Read more here: https://pris.ly/d/null-undefined
  6084. *
  6085. */
  6086. createManyAndReturn<T extends IdeaCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  6087. /**
  6088. * Delete a Idea.
  6089. * @param {IdeaDeleteArgs} args - Arguments to delete one Idea.
  6090. * @example
  6091. * // Delete one Idea
  6092. * const Idea = await prisma.idea.delete({
  6093. * where: {
  6094. * // ... filter to delete one Idea
  6095. * }
  6096. * })
  6097. *
  6098. */
  6099. delete<T extends IdeaDeleteArgs>(args: SelectSubset<T, IdeaDeleteArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6100. /**
  6101. * Update one Idea.
  6102. * @param {IdeaUpdateArgs} args - Arguments to update one Idea.
  6103. * @example
  6104. * // Update one Idea
  6105. * const idea = await prisma.idea.update({
  6106. * where: {
  6107. * // ... provide filter here
  6108. * },
  6109. * data: {
  6110. * // ... provide data here
  6111. * }
  6112. * })
  6113. *
  6114. */
  6115. update<T extends IdeaUpdateArgs>(args: SelectSubset<T, IdeaUpdateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6116. /**
  6117. * Delete zero or more Ideas.
  6118. * @param {IdeaDeleteManyArgs} args - Arguments to filter Ideas to delete.
  6119. * @example
  6120. * // Delete a few Ideas
  6121. * const { count } = await prisma.idea.deleteMany({
  6122. * where: {
  6123. * // ... provide filter here
  6124. * }
  6125. * })
  6126. *
  6127. */
  6128. deleteMany<T extends IdeaDeleteManyArgs>(args?: SelectSubset<T, IdeaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6129. /**
  6130. * Update zero or more Ideas.
  6131. * Note, that providing `undefined` is treated as the value not being there.
  6132. * Read more here: https://pris.ly/d/null-undefined
  6133. * @param {IdeaUpdateManyArgs} args - Arguments to update one or more rows.
  6134. * @example
  6135. * // Update many Ideas
  6136. * const idea = await prisma.idea.updateMany({
  6137. * where: {
  6138. * // ... provide filter here
  6139. * },
  6140. * data: {
  6141. * // ... provide data here
  6142. * }
  6143. * })
  6144. *
  6145. */
  6146. updateMany<T extends IdeaUpdateManyArgs>(args: SelectSubset<T, IdeaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6147. /**
  6148. * Update zero or more Ideas and returns the data updated in the database.
  6149. * @param {IdeaUpdateManyAndReturnArgs} args - Arguments to update many Ideas.
  6150. * @example
  6151. * // Update many Ideas
  6152. * const idea = await prisma.idea.updateManyAndReturn({
  6153. * where: {
  6154. * // ... provide filter here
  6155. * },
  6156. * data: [
  6157. * // ... provide data here
  6158. * ]
  6159. * })
  6160. *
  6161. * // Update zero or more Ideas and only return the `id`
  6162. * const ideaWithIdOnly = await prisma.idea.updateManyAndReturn({
  6163. * select: { id: true },
  6164. * where: {
  6165. * // ... provide filter here
  6166. * },
  6167. * data: [
  6168. * // ... provide data here
  6169. * ]
  6170. * })
  6171. * Note, that providing `undefined` is treated as the value not being there.
  6172. * Read more here: https://pris.ly/d/null-undefined
  6173. *
  6174. */
  6175. updateManyAndReturn<T extends IdeaUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  6176. /**
  6177. * Create or update one Idea.
  6178. * @param {IdeaUpsertArgs} args - Arguments to update or create a Idea.
  6179. * @example
  6180. * // Update or create a Idea
  6181. * const idea = await prisma.idea.upsert({
  6182. * create: {
  6183. * // ... data to create a Idea
  6184. * },
  6185. * update: {
  6186. * // ... in case it already exists, update
  6187. * },
  6188. * where: {
  6189. * // ... the filter for the Idea we want to update
  6190. * }
  6191. * })
  6192. */
  6193. upsert<T extends IdeaUpsertArgs>(args: SelectSubset<T, IdeaUpsertArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6194. /**
  6195. * Count the number of Ideas.
  6196. * Note, that providing `undefined` is treated as the value not being there.
  6197. * Read more here: https://pris.ly/d/null-undefined
  6198. * @param {IdeaCountArgs} args - Arguments to filter Ideas to count.
  6199. * @example
  6200. * // Count the number of Ideas
  6201. * const count = await prisma.idea.count({
  6202. * where: {
  6203. * // ... the filter for the Ideas we want to count
  6204. * }
  6205. * })
  6206. **/
  6207. count<T extends IdeaCountArgs>(
  6208. args?: Subset<T, IdeaCountArgs>,
  6209. ): Prisma.PrismaPromise<
  6210. T extends $Utils.Record<'select', any>
  6211. ? T['select'] extends true
  6212. ? number
  6213. : GetScalarType<T['select'], IdeaCountAggregateOutputType>
  6214. : number
  6215. >
  6216. /**
  6217. * Allows you to perform aggregations operations on a Idea.
  6218. * Note, that providing `undefined` is treated as the value not being there.
  6219. * Read more here: https://pris.ly/d/null-undefined
  6220. * @param {IdeaAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  6221. * @example
  6222. * // Ordered by age ascending
  6223. * // Where email contains prisma.io
  6224. * // Limited to the 10 users
  6225. * const aggregations = await prisma.user.aggregate({
  6226. * _avg: {
  6227. * age: true,
  6228. * },
  6229. * where: {
  6230. * email: {
  6231. * contains: "prisma.io",
  6232. * },
  6233. * },
  6234. * orderBy: {
  6235. * age: "asc",
  6236. * },
  6237. * take: 10,
  6238. * })
  6239. **/
  6240. aggregate<T extends IdeaAggregateArgs>(args: Subset<T, IdeaAggregateArgs>): Prisma.PrismaPromise<GetIdeaAggregateType<T>>
  6241. /**
  6242. * Group by Idea.
  6243. * Note, that providing `undefined` is treated as the value not being there.
  6244. * Read more here: https://pris.ly/d/null-undefined
  6245. * @param {IdeaGroupByArgs} args - Group by arguments.
  6246. * @example
  6247. * // Group by city, order by createdAt, get count
  6248. * const result = await prisma.user.groupBy({
  6249. * by: ['city', 'createdAt'],
  6250. * orderBy: {
  6251. * createdAt: true
  6252. * },
  6253. * _count: {
  6254. * _all: true
  6255. * },
  6256. * })
  6257. *
  6258. **/
  6259. groupBy<
  6260. T extends IdeaGroupByArgs,
  6261. HasSelectOrTake extends Or<
  6262. Extends<'skip', Keys<T>>,
  6263. Extends<'take', Keys<T>>
  6264. >,
  6265. OrderByArg extends True extends HasSelectOrTake
  6266. ? { orderBy: IdeaGroupByArgs['orderBy'] }
  6267. : { orderBy?: IdeaGroupByArgs['orderBy'] },
  6268. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  6269. ByFields extends MaybeTupleToUnion<T['by']>,
  6270. ByValid extends Has<ByFields, OrderFields>,
  6271. HavingFields extends GetHavingFields<T['having']>,
  6272. HavingValid extends Has<ByFields, HavingFields>,
  6273. ByEmpty extends T['by'] extends never[] ? True : False,
  6274. InputErrors extends ByEmpty extends True
  6275. ? `Error: "by" must not be empty.`
  6276. : HavingValid extends False
  6277. ? {
  6278. [P in HavingFields]: P extends ByFields
  6279. ? never
  6280. : P extends string
  6281. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  6282. : [
  6283. Error,
  6284. 'Field ',
  6285. P,
  6286. ` in "having" needs to be provided in "by"`,
  6287. ]
  6288. }[HavingFields]
  6289. : 'take' extends Keys<T>
  6290. ? 'orderBy' extends Keys<T>
  6291. ? ByValid extends True
  6292. ? {}
  6293. : {
  6294. [P in OrderFields]: P extends ByFields
  6295. ? never
  6296. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6297. }[OrderFields]
  6298. : 'Error: If you provide "take", you also need to provide "orderBy"'
  6299. : 'skip' extends Keys<T>
  6300. ? 'orderBy' extends Keys<T>
  6301. ? ByValid extends True
  6302. ? {}
  6303. : {
  6304. [P in OrderFields]: P extends ByFields
  6305. ? never
  6306. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6307. }[OrderFields]
  6308. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  6309. : ByValid extends True
  6310. ? {}
  6311. : {
  6312. [P in OrderFields]: P extends ByFields
  6313. ? never
  6314. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6315. }[OrderFields]
  6316. >(args: SubsetIntersection<T, IdeaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  6317. /**
  6318. * Fields of the Idea model
  6319. */
  6320. readonly fields: IdeaFieldRefs;
  6321. }
  6322. /**
  6323. * The delegate class that acts as a "Promise-like" for Idea.
  6324. * Why is this prefixed with `Prisma__`?
  6325. * Because we want to prevent naming conflicts as mentioned in
  6326. * https://github.com/prisma/prisma-client-js/issues/707
  6327. */
  6328. export interface Prisma__IdeaClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  6329. readonly [Symbol.toStringTag]: "PrismaPromise"
  6330. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  6331. contributor<T extends Idea$contributorArgs<ExtArgs> = {}>(args?: Subset<T, Idea$contributorArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  6332. attachments<T extends Idea$attachmentsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6333. qualificationQuestions<T extends Idea$qualificationQuestionsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$qualificationQuestionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6334. /**
  6335. * Attaches callbacks for the resolution and/or rejection of the Promise.
  6336. * @param onfulfilled The callback to execute when the Promise is resolved.
  6337. * @param onrejected The callback to execute when the Promise is rejected.
  6338. * @returns A Promise for the completion of which ever callback is executed.
  6339. */
  6340. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  6341. /**
  6342. * Attaches a callback for only the rejection of the Promise.
  6343. * @param onrejected The callback to execute when the Promise is rejected.
  6344. * @returns A Promise for the completion of the callback.
  6345. */
  6346. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  6347. /**
  6348. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  6349. * resolved value cannot be modified from the callback.
  6350. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  6351. * @returns A Promise for the completion of the callback.
  6352. */
  6353. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  6354. }
  6355. /**
  6356. * Fields of the Idea model
  6357. */
  6358. interface IdeaFieldRefs {
  6359. readonly id: FieldRef<"Idea", 'String'>
  6360. readonly workspaceId: FieldRef<"Idea", 'String'>
  6361. readonly contributorEmail: FieldRef<"Idea", 'String'>
  6362. readonly contributorId: FieldRef<"Idea", 'String'>
  6363. readonly department: FieldRef<"Idea", 'String'>
  6364. readonly problemDescription: FieldRef<"Idea", 'String'>
  6365. readonly estimatedImpact: FieldRef<"Idea", 'ImpactLevel'>
  6366. readonly frequency: FieldRef<"Idea", 'Frequency'>
  6367. readonly optionalWhoAffected: FieldRef<"Idea", 'String'>
  6368. readonly optionalAlreadyTried: FieldRef<"Idea", 'String'>
  6369. readonly optionalSuccessLooksLike: FieldRef<"Idea", 'String'>
  6370. readonly status: FieldRef<"Idea", 'IdeaStatus'>
  6371. readonly llmTitle: FieldRef<"Idea", 'String'>
  6372. readonly llmDomain: FieldRef<"Idea", 'String'>
  6373. readonly llmAiType: FieldRef<"Idea", 'String'>
  6374. readonly llmExplanation: FieldRef<"Idea", 'String'>
  6375. readonly llmScoreImpact: FieldRef<"Idea", 'Int'>
  6376. readonly llmScoreFeasibility: FieldRef<"Idea", 'Int'>
  6377. readonly llmScoreUrgency: FieldRef<"Idea", 'Int'>
  6378. readonly llmEnrichedAt: FieldRef<"Idea", 'DateTime'>
  6379. readonly llmEnrichFailed: FieldRef<"Idea", 'Boolean'>
  6380. readonly manualScoreImpact: FieldRef<"Idea", 'Int'>
  6381. readonly manualScoreFeasibility: FieldRef<"Idea", 'Int'>
  6382. readonly manualScoreUrgency: FieldRef<"Idea", 'Int'>
  6383. readonly priorityOrder: FieldRef<"Idea", 'Int'>
  6384. readonly emailMessageId: FieldRef<"Idea", 'String'>
  6385. readonly createdAt: FieldRef<"Idea", 'DateTime'>
  6386. readonly updatedAt: FieldRef<"Idea", 'DateTime'>
  6387. }
  6388. // Custom InputTypes
  6389. /**
  6390. * Idea findUnique
  6391. */
  6392. export type IdeaFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6393. /**
  6394. * Select specific fields to fetch from the Idea
  6395. */
  6396. select?: IdeaSelect<ExtArgs> | null
  6397. /**
  6398. * Omit specific fields from the Idea
  6399. */
  6400. omit?: IdeaOmit<ExtArgs> | null
  6401. /**
  6402. * Choose, which related nodes to fetch as well
  6403. */
  6404. include?: IdeaInclude<ExtArgs> | null
  6405. /**
  6406. * Filter, which Idea to fetch.
  6407. */
  6408. where: IdeaWhereUniqueInput
  6409. }
  6410. /**
  6411. * Idea findUniqueOrThrow
  6412. */
  6413. export type IdeaFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6414. /**
  6415. * Select specific fields to fetch from the Idea
  6416. */
  6417. select?: IdeaSelect<ExtArgs> | null
  6418. /**
  6419. * Omit specific fields from the Idea
  6420. */
  6421. omit?: IdeaOmit<ExtArgs> | null
  6422. /**
  6423. * Choose, which related nodes to fetch as well
  6424. */
  6425. include?: IdeaInclude<ExtArgs> | null
  6426. /**
  6427. * Filter, which Idea to fetch.
  6428. */
  6429. where: IdeaWhereUniqueInput
  6430. }
  6431. /**
  6432. * Idea findFirst
  6433. */
  6434. export type IdeaFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6435. /**
  6436. * Select specific fields to fetch from the Idea
  6437. */
  6438. select?: IdeaSelect<ExtArgs> | null
  6439. /**
  6440. * Omit specific fields from the Idea
  6441. */
  6442. omit?: IdeaOmit<ExtArgs> | null
  6443. /**
  6444. * Choose, which related nodes to fetch as well
  6445. */
  6446. include?: IdeaInclude<ExtArgs> | null
  6447. /**
  6448. * Filter, which Idea to fetch.
  6449. */
  6450. where?: IdeaWhereInput
  6451. /**
  6452. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6453. *
  6454. * Determine the order of Ideas to fetch.
  6455. */
  6456. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6457. /**
  6458. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6459. *
  6460. * Sets the position for searching for Ideas.
  6461. */
  6462. cursor?: IdeaWhereUniqueInput
  6463. /**
  6464. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6465. *
  6466. * Take `±n` Ideas from the position of the cursor.
  6467. */
  6468. take?: number
  6469. /**
  6470. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6471. *
  6472. * Skip the first `n` Ideas.
  6473. */
  6474. skip?: number
  6475. /**
  6476. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6477. *
  6478. * Filter by unique combinations of Ideas.
  6479. */
  6480. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6481. }
  6482. /**
  6483. * Idea findFirstOrThrow
  6484. */
  6485. export type IdeaFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6486. /**
  6487. * Select specific fields to fetch from the Idea
  6488. */
  6489. select?: IdeaSelect<ExtArgs> | null
  6490. /**
  6491. * Omit specific fields from the Idea
  6492. */
  6493. omit?: IdeaOmit<ExtArgs> | null
  6494. /**
  6495. * Choose, which related nodes to fetch as well
  6496. */
  6497. include?: IdeaInclude<ExtArgs> | null
  6498. /**
  6499. * Filter, which Idea to fetch.
  6500. */
  6501. where?: IdeaWhereInput
  6502. /**
  6503. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6504. *
  6505. * Determine the order of Ideas to fetch.
  6506. */
  6507. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6508. /**
  6509. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6510. *
  6511. * Sets the position for searching for Ideas.
  6512. */
  6513. cursor?: IdeaWhereUniqueInput
  6514. /**
  6515. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6516. *
  6517. * Take `±n` Ideas from the position of the cursor.
  6518. */
  6519. take?: number
  6520. /**
  6521. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6522. *
  6523. * Skip the first `n` Ideas.
  6524. */
  6525. skip?: number
  6526. /**
  6527. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6528. *
  6529. * Filter by unique combinations of Ideas.
  6530. */
  6531. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6532. }
  6533. /**
  6534. * Idea findMany
  6535. */
  6536. export type IdeaFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6537. /**
  6538. * Select specific fields to fetch from the Idea
  6539. */
  6540. select?: IdeaSelect<ExtArgs> | null
  6541. /**
  6542. * Omit specific fields from the Idea
  6543. */
  6544. omit?: IdeaOmit<ExtArgs> | null
  6545. /**
  6546. * Choose, which related nodes to fetch as well
  6547. */
  6548. include?: IdeaInclude<ExtArgs> | null
  6549. /**
  6550. * Filter, which Ideas to fetch.
  6551. */
  6552. where?: IdeaWhereInput
  6553. /**
  6554. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6555. *
  6556. * Determine the order of Ideas to fetch.
  6557. */
  6558. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6559. /**
  6560. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6561. *
  6562. * Sets the position for listing Ideas.
  6563. */
  6564. cursor?: IdeaWhereUniqueInput
  6565. /**
  6566. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6567. *
  6568. * Take `±n` Ideas from the position of the cursor.
  6569. */
  6570. take?: number
  6571. /**
  6572. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6573. *
  6574. * Skip the first `n` Ideas.
  6575. */
  6576. skip?: number
  6577. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6578. }
  6579. /**
  6580. * Idea create
  6581. */
  6582. export type IdeaCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6583. /**
  6584. * Select specific fields to fetch from the Idea
  6585. */
  6586. select?: IdeaSelect<ExtArgs> | null
  6587. /**
  6588. * Omit specific fields from the Idea
  6589. */
  6590. omit?: IdeaOmit<ExtArgs> | null
  6591. /**
  6592. * Choose, which related nodes to fetch as well
  6593. */
  6594. include?: IdeaInclude<ExtArgs> | null
  6595. /**
  6596. * The data needed to create a Idea.
  6597. */
  6598. data: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6599. }
  6600. /**
  6601. * Idea createMany
  6602. */
  6603. export type IdeaCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6604. /**
  6605. * The data used to create many Ideas.
  6606. */
  6607. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6608. skipDuplicates?: boolean
  6609. }
  6610. /**
  6611. * Idea createManyAndReturn
  6612. */
  6613. export type IdeaCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6614. /**
  6615. * Select specific fields to fetch from the Idea
  6616. */
  6617. select?: IdeaSelectCreateManyAndReturn<ExtArgs> | null
  6618. /**
  6619. * Omit specific fields from the Idea
  6620. */
  6621. omit?: IdeaOmit<ExtArgs> | null
  6622. /**
  6623. * The data used to create many Ideas.
  6624. */
  6625. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6626. skipDuplicates?: boolean
  6627. /**
  6628. * Choose, which related nodes to fetch as well
  6629. */
  6630. include?: IdeaIncludeCreateManyAndReturn<ExtArgs> | null
  6631. }
  6632. /**
  6633. * Idea update
  6634. */
  6635. export type IdeaUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6636. /**
  6637. * Select specific fields to fetch from the Idea
  6638. */
  6639. select?: IdeaSelect<ExtArgs> | null
  6640. /**
  6641. * Omit specific fields from the Idea
  6642. */
  6643. omit?: IdeaOmit<ExtArgs> | null
  6644. /**
  6645. * Choose, which related nodes to fetch as well
  6646. */
  6647. include?: IdeaInclude<ExtArgs> | null
  6648. /**
  6649. * The data needed to update a Idea.
  6650. */
  6651. data: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6652. /**
  6653. * Choose, which Idea to update.
  6654. */
  6655. where: IdeaWhereUniqueInput
  6656. }
  6657. /**
  6658. * Idea updateMany
  6659. */
  6660. export type IdeaUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6661. /**
  6662. * The data used to update Ideas.
  6663. */
  6664. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6665. /**
  6666. * Filter which Ideas to update
  6667. */
  6668. where?: IdeaWhereInput
  6669. /**
  6670. * Limit how many Ideas to update.
  6671. */
  6672. limit?: number
  6673. }
  6674. /**
  6675. * Idea updateManyAndReturn
  6676. */
  6677. export type IdeaUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6678. /**
  6679. * Select specific fields to fetch from the Idea
  6680. */
  6681. select?: IdeaSelectUpdateManyAndReturn<ExtArgs> | null
  6682. /**
  6683. * Omit specific fields from the Idea
  6684. */
  6685. omit?: IdeaOmit<ExtArgs> | null
  6686. /**
  6687. * The data used to update Ideas.
  6688. */
  6689. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6690. /**
  6691. * Filter which Ideas to update
  6692. */
  6693. where?: IdeaWhereInput
  6694. /**
  6695. * Limit how many Ideas to update.
  6696. */
  6697. limit?: number
  6698. /**
  6699. * Choose, which related nodes to fetch as well
  6700. */
  6701. include?: IdeaIncludeUpdateManyAndReturn<ExtArgs> | null
  6702. }
  6703. /**
  6704. * Idea upsert
  6705. */
  6706. export type IdeaUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6707. /**
  6708. * Select specific fields to fetch from the Idea
  6709. */
  6710. select?: IdeaSelect<ExtArgs> | null
  6711. /**
  6712. * Omit specific fields from the Idea
  6713. */
  6714. omit?: IdeaOmit<ExtArgs> | null
  6715. /**
  6716. * Choose, which related nodes to fetch as well
  6717. */
  6718. include?: IdeaInclude<ExtArgs> | null
  6719. /**
  6720. * The filter to search for the Idea to update in case it exists.
  6721. */
  6722. where: IdeaWhereUniqueInput
  6723. /**
  6724. * In case the Idea found by the `where` argument doesn't exist, create a new Idea with this data.
  6725. */
  6726. create: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6727. /**
  6728. * In case the Idea was found with the provided `where` argument, update it with this data.
  6729. */
  6730. update: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6731. }
  6732. /**
  6733. * Idea delete
  6734. */
  6735. export type IdeaDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6736. /**
  6737. * Select specific fields to fetch from the Idea
  6738. */
  6739. select?: IdeaSelect<ExtArgs> | null
  6740. /**
  6741. * Omit specific fields from the Idea
  6742. */
  6743. omit?: IdeaOmit<ExtArgs> | null
  6744. /**
  6745. * Choose, which related nodes to fetch as well
  6746. */
  6747. include?: IdeaInclude<ExtArgs> | null
  6748. /**
  6749. * Filter which Idea to delete.
  6750. */
  6751. where: IdeaWhereUniqueInput
  6752. }
  6753. /**
  6754. * Idea deleteMany
  6755. */
  6756. export type IdeaDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6757. /**
  6758. * Filter which Ideas to delete
  6759. */
  6760. where?: IdeaWhereInput
  6761. /**
  6762. * Limit how many Ideas to delete.
  6763. */
  6764. limit?: number
  6765. }
  6766. /**
  6767. * Idea.contributor
  6768. */
  6769. export type Idea$contributorArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6770. /**
  6771. * Select specific fields to fetch from the Contributor
  6772. */
  6773. select?: ContributorSelect<ExtArgs> | null
  6774. /**
  6775. * Omit specific fields from the Contributor
  6776. */
  6777. omit?: ContributorOmit<ExtArgs> | null
  6778. /**
  6779. * Choose, which related nodes to fetch as well
  6780. */
  6781. include?: ContributorInclude<ExtArgs> | null
  6782. where?: ContributorWhereInput
  6783. }
  6784. /**
  6785. * Idea.attachments
  6786. */
  6787. export type Idea$attachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6788. /**
  6789. * Select specific fields to fetch from the IdeaAttachment
  6790. */
  6791. select?: IdeaAttachmentSelect<ExtArgs> | null
  6792. /**
  6793. * Omit specific fields from the IdeaAttachment
  6794. */
  6795. omit?: IdeaAttachmentOmit<ExtArgs> | null
  6796. /**
  6797. * Choose, which related nodes to fetch as well
  6798. */
  6799. include?: IdeaAttachmentInclude<ExtArgs> | null
  6800. where?: IdeaAttachmentWhereInput
  6801. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  6802. cursor?: IdeaAttachmentWhereUniqueInput
  6803. take?: number
  6804. skip?: number
  6805. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  6806. }
  6807. /**
  6808. * Idea.qualificationQuestions
  6809. */
  6810. export type Idea$qualificationQuestionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6811. /**
  6812. * Select specific fields to fetch from the QualificationQuestion
  6813. */
  6814. select?: QualificationQuestionSelect<ExtArgs> | null
  6815. /**
  6816. * Omit specific fields from the QualificationQuestion
  6817. */
  6818. omit?: QualificationQuestionOmit<ExtArgs> | null
  6819. /**
  6820. * Choose, which related nodes to fetch as well
  6821. */
  6822. include?: QualificationQuestionInclude<ExtArgs> | null
  6823. where?: QualificationQuestionWhereInput
  6824. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  6825. cursor?: QualificationQuestionWhereUniqueInput
  6826. take?: number
  6827. skip?: number
  6828. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  6829. }
  6830. /**
  6831. * Idea without action
  6832. */
  6833. export type IdeaDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6834. /**
  6835. * Select specific fields to fetch from the Idea
  6836. */
  6837. select?: IdeaSelect<ExtArgs> | null
  6838. /**
  6839. * Omit specific fields from the Idea
  6840. */
  6841. omit?: IdeaOmit<ExtArgs> | null
  6842. /**
  6843. * Choose, which related nodes to fetch as well
  6844. */
  6845. include?: IdeaInclude<ExtArgs> | null
  6846. }
  6847. /**
  6848. * Model Post
  6849. */
  6850. export type AggregatePost = {
  6851. _count: PostCountAggregateOutputType | null
  6852. _avg: PostAvgAggregateOutputType | null
  6853. _sum: PostSumAggregateOutputType | null
  6854. _min: PostMinAggregateOutputType | null
  6855. _max: PostMaxAggregateOutputType | null
  6856. }
  6857. export type PostAvgAggregateOutputType = {
  6858. id: number | null
  6859. }
  6860. export type PostSumAggregateOutputType = {
  6861. id: number | null
  6862. }
  6863. export type PostMinAggregateOutputType = {
  6864. id: number | null
  6865. name: string | null
  6866. createdAt: Date | null
  6867. updatedAt: Date | null
  6868. createdById: string | null
  6869. }
  6870. export type PostMaxAggregateOutputType = {
  6871. id: number | null
  6872. name: string | null
  6873. createdAt: Date | null
  6874. updatedAt: Date | null
  6875. createdById: string | null
  6876. }
  6877. export type PostCountAggregateOutputType = {
  6878. id: number
  6879. name: number
  6880. createdAt: number
  6881. updatedAt: number
  6882. createdById: number
  6883. _all: number
  6884. }
  6885. export type PostAvgAggregateInputType = {
  6886. id?: true
  6887. }
  6888. export type PostSumAggregateInputType = {
  6889. id?: true
  6890. }
  6891. export type PostMinAggregateInputType = {
  6892. id?: true
  6893. name?: true
  6894. createdAt?: true
  6895. updatedAt?: true
  6896. createdById?: true
  6897. }
  6898. export type PostMaxAggregateInputType = {
  6899. id?: true
  6900. name?: true
  6901. createdAt?: true
  6902. updatedAt?: true
  6903. createdById?: true
  6904. }
  6905. export type PostCountAggregateInputType = {
  6906. id?: true
  6907. name?: true
  6908. createdAt?: true
  6909. updatedAt?: true
  6910. createdById?: true
  6911. _all?: true
  6912. }
  6913. export type PostAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6914. /**
  6915. * Filter which Post to aggregate.
  6916. */
  6917. where?: PostWhereInput
  6918. /**
  6919. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6920. *
  6921. * Determine the order of Posts to fetch.
  6922. */
  6923. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  6924. /**
  6925. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6926. *
  6927. * Sets the start position
  6928. */
  6929. cursor?: PostWhereUniqueInput
  6930. /**
  6931. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6932. *
  6933. * Take `±n` Posts from the position of the cursor.
  6934. */
  6935. take?: number
  6936. /**
  6937. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6938. *
  6939. * Skip the first `n` Posts.
  6940. */
  6941. skip?: number
  6942. /**
  6943. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6944. *
  6945. * Count returned Posts
  6946. **/
  6947. _count?: true | PostCountAggregateInputType
  6948. /**
  6949. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6950. *
  6951. * Select which fields to average
  6952. **/
  6953. _avg?: PostAvgAggregateInputType
  6954. /**
  6955. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6956. *
  6957. * Select which fields to sum
  6958. **/
  6959. _sum?: PostSumAggregateInputType
  6960. /**
  6961. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6962. *
  6963. * Select which fields to find the minimum value
  6964. **/
  6965. _min?: PostMinAggregateInputType
  6966. /**
  6967. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  6968. *
  6969. * Select which fields to find the maximum value
  6970. **/
  6971. _max?: PostMaxAggregateInputType
  6972. }
  6973. export type GetPostAggregateType<T extends PostAggregateArgs> = {
  6974. [P in keyof T & keyof AggregatePost]: P extends '_count' | 'count'
  6975. ? T[P] extends true
  6976. ? number
  6977. : GetScalarType<T[P], AggregatePost[P]>
  6978. : GetScalarType<T[P], AggregatePost[P]>
  6979. }
  6980. export type PostGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6981. where?: PostWhereInput
  6982. orderBy?: PostOrderByWithAggregationInput | PostOrderByWithAggregationInput[]
  6983. by: PostScalarFieldEnum[] | PostScalarFieldEnum
  6984. having?: PostScalarWhereWithAggregatesInput
  6985. take?: number
  6986. skip?: number
  6987. _count?: PostCountAggregateInputType | true
  6988. _avg?: PostAvgAggregateInputType
  6989. _sum?: PostSumAggregateInputType
  6990. _min?: PostMinAggregateInputType
  6991. _max?: PostMaxAggregateInputType
  6992. }
  6993. export type PostGroupByOutputType = {
  6994. id: number
  6995. name: string
  6996. createdAt: Date
  6997. updatedAt: Date
  6998. createdById: string
  6999. _count: PostCountAggregateOutputType | null
  7000. _avg: PostAvgAggregateOutputType | null
  7001. _sum: PostSumAggregateOutputType | null
  7002. _min: PostMinAggregateOutputType | null
  7003. _max: PostMaxAggregateOutputType | null
  7004. }
  7005. type GetPostGroupByPayload<T extends PostGroupByArgs> = Prisma.PrismaPromise<
  7006. Array<
  7007. PickEnumerable<PostGroupByOutputType, T['by']> &
  7008. {
  7009. [P in ((keyof T) & (keyof PostGroupByOutputType))]: P extends '_count'
  7010. ? T[P] extends boolean
  7011. ? number
  7012. : GetScalarType<T[P], PostGroupByOutputType[P]>
  7013. : GetScalarType<T[P], PostGroupByOutputType[P]>
  7014. }
  7015. >
  7016. >
  7017. export type PostSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7018. id?: boolean
  7019. name?: boolean
  7020. createdAt?: boolean
  7021. updatedAt?: boolean
  7022. createdById?: boolean
  7023. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7024. }, ExtArgs["result"]["post"]>
  7025. export type PostSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7026. id?: boolean
  7027. name?: boolean
  7028. createdAt?: boolean
  7029. updatedAt?: boolean
  7030. createdById?: boolean
  7031. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7032. }, ExtArgs["result"]["post"]>
  7033. export type PostSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7034. id?: boolean
  7035. name?: boolean
  7036. createdAt?: boolean
  7037. updatedAt?: boolean
  7038. createdById?: boolean
  7039. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7040. }, ExtArgs["result"]["post"]>
  7041. export type PostSelectScalar = {
  7042. id?: boolean
  7043. name?: boolean
  7044. createdAt?: boolean
  7045. updatedAt?: boolean
  7046. createdById?: boolean
  7047. }
  7048. export type PostOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt" | "createdById", ExtArgs["result"]["post"]>
  7049. export type PostInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7050. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7051. }
  7052. export type PostIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7053. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7054. }
  7055. export type PostIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7056. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7057. }
  7058. export type $PostPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7059. name: "Post"
  7060. objects: {
  7061. createdBy: Prisma.$UserPayload<ExtArgs>
  7062. }
  7063. scalars: $Extensions.GetPayloadResult<{
  7064. id: number
  7065. name: string
  7066. createdAt: Date
  7067. updatedAt: Date
  7068. createdById: string
  7069. }, ExtArgs["result"]["post"]>
  7070. composites: {}
  7071. }
  7072. type PostGetPayload<S extends boolean | null | undefined | PostDefaultArgs> = $Result.GetResult<Prisma.$PostPayload, S>
  7073. type PostCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  7074. Omit<PostFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  7075. select?: PostCountAggregateInputType | true
  7076. }
  7077. export interface PostDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  7078. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Post'], meta: { name: 'Post' } }
  7079. /**
  7080. * Find zero or one Post that matches the filter.
  7081. * @param {PostFindUniqueArgs} args - Arguments to find a Post
  7082. * @example
  7083. * // Get one Post
  7084. * const post = await prisma.post.findUnique({
  7085. * where: {
  7086. * // ... provide filter here
  7087. * }
  7088. * })
  7089. */
  7090. findUnique<T extends PostFindUniqueArgs>(args: SelectSubset<T, PostFindUniqueArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7091. /**
  7092. * Find one Post that matches the filter or throw an error with `error.code='P2025'`
  7093. * if no matches were found.
  7094. * @param {PostFindUniqueOrThrowArgs} args - Arguments to find a Post
  7095. * @example
  7096. * // Get one Post
  7097. * const post = await prisma.post.findUniqueOrThrow({
  7098. * where: {
  7099. * // ... provide filter here
  7100. * }
  7101. * })
  7102. */
  7103. findUniqueOrThrow<T extends PostFindUniqueOrThrowArgs>(args: SelectSubset<T, PostFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7104. /**
  7105. * Find the first Post that matches the filter.
  7106. * Note, that providing `undefined` is treated as the value not being there.
  7107. * Read more here: https://pris.ly/d/null-undefined
  7108. * @param {PostFindFirstArgs} args - Arguments to find a Post
  7109. * @example
  7110. * // Get one Post
  7111. * const post = await prisma.post.findFirst({
  7112. * where: {
  7113. * // ... provide filter here
  7114. * }
  7115. * })
  7116. */
  7117. findFirst<T extends PostFindFirstArgs>(args?: SelectSubset<T, PostFindFirstArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7118. /**
  7119. * Find the first Post that matches the filter or
  7120. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  7121. * Note, that providing `undefined` is treated as the value not being there.
  7122. * Read more here: https://pris.ly/d/null-undefined
  7123. * @param {PostFindFirstOrThrowArgs} args - Arguments to find a Post
  7124. * @example
  7125. * // Get one Post
  7126. * const post = await prisma.post.findFirstOrThrow({
  7127. * where: {
  7128. * // ... provide filter here
  7129. * }
  7130. * })
  7131. */
  7132. findFirstOrThrow<T extends PostFindFirstOrThrowArgs>(args?: SelectSubset<T, PostFindFirstOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7133. /**
  7134. * Find zero or more Posts that matches the filter.
  7135. * Note, that providing `undefined` is treated as the value not being there.
  7136. * Read more here: https://pris.ly/d/null-undefined
  7137. * @param {PostFindManyArgs} args - Arguments to filter and select certain fields only.
  7138. * @example
  7139. * // Get all Posts
  7140. * const posts = await prisma.post.findMany()
  7141. *
  7142. * // Get first 10 Posts
  7143. * const posts = await prisma.post.findMany({ take: 10 })
  7144. *
  7145. * // Only select the `id`
  7146. * const postWithIdOnly = await prisma.post.findMany({ select: { id: true } })
  7147. *
  7148. */
  7149. findMany<T extends PostFindManyArgs>(args?: SelectSubset<T, PostFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  7150. /**
  7151. * Create a Post.
  7152. * @param {PostCreateArgs} args - Arguments to create a Post.
  7153. * @example
  7154. * // Create one Post
  7155. * const Post = await prisma.post.create({
  7156. * data: {
  7157. * // ... data to create a Post
  7158. * }
  7159. * })
  7160. *
  7161. */
  7162. create<T extends PostCreateArgs>(args: SelectSubset<T, PostCreateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7163. /**
  7164. * Create many Posts.
  7165. * @param {PostCreateManyArgs} args - Arguments to create many Posts.
  7166. * @example
  7167. * // Create many Posts
  7168. * const post = await prisma.post.createMany({
  7169. * data: [
  7170. * // ... provide data here
  7171. * ]
  7172. * })
  7173. *
  7174. */
  7175. createMany<T extends PostCreateManyArgs>(args?: SelectSubset<T, PostCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7176. /**
  7177. * Create many Posts and returns the data saved in the database.
  7178. * @param {PostCreateManyAndReturnArgs} args - Arguments to create many Posts.
  7179. * @example
  7180. * // Create many Posts
  7181. * const post = await prisma.post.createManyAndReturn({
  7182. * data: [
  7183. * // ... provide data here
  7184. * ]
  7185. * })
  7186. *
  7187. * // Create many Posts and only return the `id`
  7188. * const postWithIdOnly = await prisma.post.createManyAndReturn({
  7189. * select: { id: true },
  7190. * data: [
  7191. * // ... provide data here
  7192. * ]
  7193. * })
  7194. * Note, that providing `undefined` is treated as the value not being there.
  7195. * Read more here: https://pris.ly/d/null-undefined
  7196. *
  7197. */
  7198. createManyAndReturn<T extends PostCreateManyAndReturnArgs>(args?: SelectSubset<T, PostCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  7199. /**
  7200. * Delete a Post.
  7201. * @param {PostDeleteArgs} args - Arguments to delete one Post.
  7202. * @example
  7203. * // Delete one Post
  7204. * const Post = await prisma.post.delete({
  7205. * where: {
  7206. * // ... filter to delete one Post
  7207. * }
  7208. * })
  7209. *
  7210. */
  7211. delete<T extends PostDeleteArgs>(args: SelectSubset<T, PostDeleteArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7212. /**
  7213. * Update one Post.
  7214. * @param {PostUpdateArgs} args - Arguments to update one Post.
  7215. * @example
  7216. * // Update one Post
  7217. * const post = await prisma.post.update({
  7218. * where: {
  7219. * // ... provide filter here
  7220. * },
  7221. * data: {
  7222. * // ... provide data here
  7223. * }
  7224. * })
  7225. *
  7226. */
  7227. update<T extends PostUpdateArgs>(args: SelectSubset<T, PostUpdateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7228. /**
  7229. * Delete zero or more Posts.
  7230. * @param {PostDeleteManyArgs} args - Arguments to filter Posts to delete.
  7231. * @example
  7232. * // Delete a few Posts
  7233. * const { count } = await prisma.post.deleteMany({
  7234. * where: {
  7235. * // ... provide filter here
  7236. * }
  7237. * })
  7238. *
  7239. */
  7240. deleteMany<T extends PostDeleteManyArgs>(args?: SelectSubset<T, PostDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7241. /**
  7242. * Update zero or more Posts.
  7243. * Note, that providing `undefined` is treated as the value not being there.
  7244. * Read more here: https://pris.ly/d/null-undefined
  7245. * @param {PostUpdateManyArgs} args - Arguments to update one or more rows.
  7246. * @example
  7247. * // Update many Posts
  7248. * const post = await prisma.post.updateMany({
  7249. * where: {
  7250. * // ... provide filter here
  7251. * },
  7252. * data: {
  7253. * // ... provide data here
  7254. * }
  7255. * })
  7256. *
  7257. */
  7258. updateMany<T extends PostUpdateManyArgs>(args: SelectSubset<T, PostUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7259. /**
  7260. * Update zero or more Posts and returns the data updated in the database.
  7261. * @param {PostUpdateManyAndReturnArgs} args - Arguments to update many Posts.
  7262. * @example
  7263. * // Update many Posts
  7264. * const post = await prisma.post.updateManyAndReturn({
  7265. * where: {
  7266. * // ... provide filter here
  7267. * },
  7268. * data: [
  7269. * // ... provide data here
  7270. * ]
  7271. * })
  7272. *
  7273. * // Update zero or more Posts and only return the `id`
  7274. * const postWithIdOnly = await prisma.post.updateManyAndReturn({
  7275. * select: { id: true },
  7276. * where: {
  7277. * // ... provide filter here
  7278. * },
  7279. * data: [
  7280. * // ... provide data here
  7281. * ]
  7282. * })
  7283. * Note, that providing `undefined` is treated as the value not being there.
  7284. * Read more here: https://pris.ly/d/null-undefined
  7285. *
  7286. */
  7287. updateManyAndReturn<T extends PostUpdateManyAndReturnArgs>(args: SelectSubset<T, PostUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  7288. /**
  7289. * Create or update one Post.
  7290. * @param {PostUpsertArgs} args - Arguments to update or create a Post.
  7291. * @example
  7292. * // Update or create a Post
  7293. * const post = await prisma.post.upsert({
  7294. * create: {
  7295. * // ... data to create a Post
  7296. * },
  7297. * update: {
  7298. * // ... in case it already exists, update
  7299. * },
  7300. * where: {
  7301. * // ... the filter for the Post we want to update
  7302. * }
  7303. * })
  7304. */
  7305. upsert<T extends PostUpsertArgs>(args: SelectSubset<T, PostUpsertArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7306. /**
  7307. * Count the number of Posts.
  7308. * Note, that providing `undefined` is treated as the value not being there.
  7309. * Read more here: https://pris.ly/d/null-undefined
  7310. * @param {PostCountArgs} args - Arguments to filter Posts to count.
  7311. * @example
  7312. * // Count the number of Posts
  7313. * const count = await prisma.post.count({
  7314. * where: {
  7315. * // ... the filter for the Posts we want to count
  7316. * }
  7317. * })
  7318. **/
  7319. count<T extends PostCountArgs>(
  7320. args?: Subset<T, PostCountArgs>,
  7321. ): Prisma.PrismaPromise<
  7322. T extends $Utils.Record<'select', any>
  7323. ? T['select'] extends true
  7324. ? number
  7325. : GetScalarType<T['select'], PostCountAggregateOutputType>
  7326. : number
  7327. >
  7328. /**
  7329. * Allows you to perform aggregations operations on a Post.
  7330. * Note, that providing `undefined` is treated as the value not being there.
  7331. * Read more here: https://pris.ly/d/null-undefined
  7332. * @param {PostAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  7333. * @example
  7334. * // Ordered by age ascending
  7335. * // Where email contains prisma.io
  7336. * // Limited to the 10 users
  7337. * const aggregations = await prisma.user.aggregate({
  7338. * _avg: {
  7339. * age: true,
  7340. * },
  7341. * where: {
  7342. * email: {
  7343. * contains: "prisma.io",
  7344. * },
  7345. * },
  7346. * orderBy: {
  7347. * age: "asc",
  7348. * },
  7349. * take: 10,
  7350. * })
  7351. **/
  7352. aggregate<T extends PostAggregateArgs>(args: Subset<T, PostAggregateArgs>): Prisma.PrismaPromise<GetPostAggregateType<T>>
  7353. /**
  7354. * Group by Post.
  7355. * Note, that providing `undefined` is treated as the value not being there.
  7356. * Read more here: https://pris.ly/d/null-undefined
  7357. * @param {PostGroupByArgs} args - Group by arguments.
  7358. * @example
  7359. * // Group by city, order by createdAt, get count
  7360. * const result = await prisma.user.groupBy({
  7361. * by: ['city', 'createdAt'],
  7362. * orderBy: {
  7363. * createdAt: true
  7364. * },
  7365. * _count: {
  7366. * _all: true
  7367. * },
  7368. * })
  7369. *
  7370. **/
  7371. groupBy<
  7372. T extends PostGroupByArgs,
  7373. HasSelectOrTake extends Or<
  7374. Extends<'skip', Keys<T>>,
  7375. Extends<'take', Keys<T>>
  7376. >,
  7377. OrderByArg extends True extends HasSelectOrTake
  7378. ? { orderBy: PostGroupByArgs['orderBy'] }
  7379. : { orderBy?: PostGroupByArgs['orderBy'] },
  7380. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  7381. ByFields extends MaybeTupleToUnion<T['by']>,
  7382. ByValid extends Has<ByFields, OrderFields>,
  7383. HavingFields extends GetHavingFields<T['having']>,
  7384. HavingValid extends Has<ByFields, HavingFields>,
  7385. ByEmpty extends T['by'] extends never[] ? True : False,
  7386. InputErrors extends ByEmpty extends True
  7387. ? `Error: "by" must not be empty.`
  7388. : HavingValid extends False
  7389. ? {
  7390. [P in HavingFields]: P extends ByFields
  7391. ? never
  7392. : P extends string
  7393. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  7394. : [
  7395. Error,
  7396. 'Field ',
  7397. P,
  7398. ` in "having" needs to be provided in "by"`,
  7399. ]
  7400. }[HavingFields]
  7401. : 'take' extends Keys<T>
  7402. ? 'orderBy' extends Keys<T>
  7403. ? ByValid extends True
  7404. ? {}
  7405. : {
  7406. [P in OrderFields]: P extends ByFields
  7407. ? never
  7408. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7409. }[OrderFields]
  7410. : 'Error: If you provide "take", you also need to provide "orderBy"'
  7411. : 'skip' extends Keys<T>
  7412. ? 'orderBy' extends Keys<T>
  7413. ? ByValid extends True
  7414. ? {}
  7415. : {
  7416. [P in OrderFields]: P extends ByFields
  7417. ? never
  7418. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7419. }[OrderFields]
  7420. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  7421. : ByValid extends True
  7422. ? {}
  7423. : {
  7424. [P in OrderFields]: P extends ByFields
  7425. ? never
  7426. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7427. }[OrderFields]
  7428. >(args: SubsetIntersection<T, PostGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPostGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  7429. /**
  7430. * Fields of the Post model
  7431. */
  7432. readonly fields: PostFieldRefs;
  7433. }
  7434. /**
  7435. * The delegate class that acts as a "Promise-like" for Post.
  7436. * Why is this prefixed with `Prisma__`?
  7437. * Because we want to prevent naming conflicts as mentioned in
  7438. * https://github.com/prisma/prisma-client-js/issues/707
  7439. */
  7440. export interface Prisma__PostClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  7441. readonly [Symbol.toStringTag]: "PrismaPromise"
  7442. createdBy<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  7443. /**
  7444. * Attaches callbacks for the resolution and/or rejection of the Promise.
  7445. * @param onfulfilled The callback to execute when the Promise is resolved.
  7446. * @param onrejected The callback to execute when the Promise is rejected.
  7447. * @returns A Promise for the completion of which ever callback is executed.
  7448. */
  7449. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  7450. /**
  7451. * Attaches a callback for only the rejection of the Promise.
  7452. * @param onrejected The callback to execute when the Promise is rejected.
  7453. * @returns A Promise for the completion of the callback.
  7454. */
  7455. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  7456. /**
  7457. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  7458. * resolved value cannot be modified from the callback.
  7459. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  7460. * @returns A Promise for the completion of the callback.
  7461. */
  7462. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  7463. }
  7464. /**
  7465. * Fields of the Post model
  7466. */
  7467. interface PostFieldRefs {
  7468. readonly id: FieldRef<"Post", 'Int'>
  7469. readonly name: FieldRef<"Post", 'String'>
  7470. readonly createdAt: FieldRef<"Post", 'DateTime'>
  7471. readonly updatedAt: FieldRef<"Post", 'DateTime'>
  7472. readonly createdById: FieldRef<"Post", 'String'>
  7473. }
  7474. // Custom InputTypes
  7475. /**
  7476. * Post findUnique
  7477. */
  7478. export type PostFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7479. /**
  7480. * Select specific fields to fetch from the Post
  7481. */
  7482. select?: PostSelect<ExtArgs> | null
  7483. /**
  7484. * Omit specific fields from the Post
  7485. */
  7486. omit?: PostOmit<ExtArgs> | null
  7487. /**
  7488. * Choose, which related nodes to fetch as well
  7489. */
  7490. include?: PostInclude<ExtArgs> | null
  7491. /**
  7492. * Filter, which Post to fetch.
  7493. */
  7494. where: PostWhereUniqueInput
  7495. }
  7496. /**
  7497. * Post findUniqueOrThrow
  7498. */
  7499. export type PostFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7500. /**
  7501. * Select specific fields to fetch from the Post
  7502. */
  7503. select?: PostSelect<ExtArgs> | null
  7504. /**
  7505. * Omit specific fields from the Post
  7506. */
  7507. omit?: PostOmit<ExtArgs> | null
  7508. /**
  7509. * Choose, which related nodes to fetch as well
  7510. */
  7511. include?: PostInclude<ExtArgs> | null
  7512. /**
  7513. * Filter, which Post to fetch.
  7514. */
  7515. where: PostWhereUniqueInput
  7516. }
  7517. /**
  7518. * Post findFirst
  7519. */
  7520. export type PostFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7521. /**
  7522. * Select specific fields to fetch from the Post
  7523. */
  7524. select?: PostSelect<ExtArgs> | null
  7525. /**
  7526. * Omit specific fields from the Post
  7527. */
  7528. omit?: PostOmit<ExtArgs> | null
  7529. /**
  7530. * Choose, which related nodes to fetch as well
  7531. */
  7532. include?: PostInclude<ExtArgs> | null
  7533. /**
  7534. * Filter, which Post to fetch.
  7535. */
  7536. where?: PostWhereInput
  7537. /**
  7538. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7539. *
  7540. * Determine the order of Posts to fetch.
  7541. */
  7542. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7543. /**
  7544. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7545. *
  7546. * Sets the position for searching for Posts.
  7547. */
  7548. cursor?: PostWhereUniqueInput
  7549. /**
  7550. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7551. *
  7552. * Take `±n` Posts from the position of the cursor.
  7553. */
  7554. take?: number
  7555. /**
  7556. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7557. *
  7558. * Skip the first `n` Posts.
  7559. */
  7560. skip?: number
  7561. /**
  7562. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7563. *
  7564. * Filter by unique combinations of Posts.
  7565. */
  7566. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7567. }
  7568. /**
  7569. * Post findFirstOrThrow
  7570. */
  7571. export type PostFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7572. /**
  7573. * Select specific fields to fetch from the Post
  7574. */
  7575. select?: PostSelect<ExtArgs> | null
  7576. /**
  7577. * Omit specific fields from the Post
  7578. */
  7579. omit?: PostOmit<ExtArgs> | null
  7580. /**
  7581. * Choose, which related nodes to fetch as well
  7582. */
  7583. include?: PostInclude<ExtArgs> | null
  7584. /**
  7585. * Filter, which Post to fetch.
  7586. */
  7587. where?: PostWhereInput
  7588. /**
  7589. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7590. *
  7591. * Determine the order of Posts to fetch.
  7592. */
  7593. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7594. /**
  7595. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7596. *
  7597. * Sets the position for searching for Posts.
  7598. */
  7599. cursor?: PostWhereUniqueInput
  7600. /**
  7601. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7602. *
  7603. * Take `±n` Posts from the position of the cursor.
  7604. */
  7605. take?: number
  7606. /**
  7607. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7608. *
  7609. * Skip the first `n` Posts.
  7610. */
  7611. skip?: number
  7612. /**
  7613. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7614. *
  7615. * Filter by unique combinations of Posts.
  7616. */
  7617. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7618. }
  7619. /**
  7620. * Post findMany
  7621. */
  7622. export type PostFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7623. /**
  7624. * Select specific fields to fetch from the Post
  7625. */
  7626. select?: PostSelect<ExtArgs> | null
  7627. /**
  7628. * Omit specific fields from the Post
  7629. */
  7630. omit?: PostOmit<ExtArgs> | null
  7631. /**
  7632. * Choose, which related nodes to fetch as well
  7633. */
  7634. include?: PostInclude<ExtArgs> | null
  7635. /**
  7636. * Filter, which Posts to fetch.
  7637. */
  7638. where?: PostWhereInput
  7639. /**
  7640. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7641. *
  7642. * Determine the order of Posts to fetch.
  7643. */
  7644. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7645. /**
  7646. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7647. *
  7648. * Sets the position for listing Posts.
  7649. */
  7650. cursor?: PostWhereUniqueInput
  7651. /**
  7652. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7653. *
  7654. * Take `±n` Posts from the position of the cursor.
  7655. */
  7656. take?: number
  7657. /**
  7658. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7659. *
  7660. * Skip the first `n` Posts.
  7661. */
  7662. skip?: number
  7663. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7664. }
  7665. /**
  7666. * Post create
  7667. */
  7668. export type PostCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7669. /**
  7670. * Select specific fields to fetch from the Post
  7671. */
  7672. select?: PostSelect<ExtArgs> | null
  7673. /**
  7674. * Omit specific fields from the Post
  7675. */
  7676. omit?: PostOmit<ExtArgs> | null
  7677. /**
  7678. * Choose, which related nodes to fetch as well
  7679. */
  7680. include?: PostInclude<ExtArgs> | null
  7681. /**
  7682. * The data needed to create a Post.
  7683. */
  7684. data: XOR<PostCreateInput, PostUncheckedCreateInput>
  7685. }
  7686. /**
  7687. * Post createMany
  7688. */
  7689. export type PostCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7690. /**
  7691. * The data used to create many Posts.
  7692. */
  7693. data: PostCreateManyInput | PostCreateManyInput[]
  7694. skipDuplicates?: boolean
  7695. }
  7696. /**
  7697. * Post createManyAndReturn
  7698. */
  7699. export type PostCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7700. /**
  7701. * Select specific fields to fetch from the Post
  7702. */
  7703. select?: PostSelectCreateManyAndReturn<ExtArgs> | null
  7704. /**
  7705. * Omit specific fields from the Post
  7706. */
  7707. omit?: PostOmit<ExtArgs> | null
  7708. /**
  7709. * The data used to create many Posts.
  7710. */
  7711. data: PostCreateManyInput | PostCreateManyInput[]
  7712. skipDuplicates?: boolean
  7713. /**
  7714. * Choose, which related nodes to fetch as well
  7715. */
  7716. include?: PostIncludeCreateManyAndReturn<ExtArgs> | null
  7717. }
  7718. /**
  7719. * Post update
  7720. */
  7721. export type PostUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7722. /**
  7723. * Select specific fields to fetch from the Post
  7724. */
  7725. select?: PostSelect<ExtArgs> | null
  7726. /**
  7727. * Omit specific fields from the Post
  7728. */
  7729. omit?: PostOmit<ExtArgs> | null
  7730. /**
  7731. * Choose, which related nodes to fetch as well
  7732. */
  7733. include?: PostInclude<ExtArgs> | null
  7734. /**
  7735. * The data needed to update a Post.
  7736. */
  7737. data: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7738. /**
  7739. * Choose, which Post to update.
  7740. */
  7741. where: PostWhereUniqueInput
  7742. }
  7743. /**
  7744. * Post updateMany
  7745. */
  7746. export type PostUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7747. /**
  7748. * The data used to update Posts.
  7749. */
  7750. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7751. /**
  7752. * Filter which Posts to update
  7753. */
  7754. where?: PostWhereInput
  7755. /**
  7756. * Limit how many Posts to update.
  7757. */
  7758. limit?: number
  7759. }
  7760. /**
  7761. * Post updateManyAndReturn
  7762. */
  7763. export type PostUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7764. /**
  7765. * Select specific fields to fetch from the Post
  7766. */
  7767. select?: PostSelectUpdateManyAndReturn<ExtArgs> | null
  7768. /**
  7769. * Omit specific fields from the Post
  7770. */
  7771. omit?: PostOmit<ExtArgs> | null
  7772. /**
  7773. * The data used to update Posts.
  7774. */
  7775. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7776. /**
  7777. * Filter which Posts to update
  7778. */
  7779. where?: PostWhereInput
  7780. /**
  7781. * Limit how many Posts to update.
  7782. */
  7783. limit?: number
  7784. /**
  7785. * Choose, which related nodes to fetch as well
  7786. */
  7787. include?: PostIncludeUpdateManyAndReturn<ExtArgs> | null
  7788. }
  7789. /**
  7790. * Post upsert
  7791. */
  7792. export type PostUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7793. /**
  7794. * Select specific fields to fetch from the Post
  7795. */
  7796. select?: PostSelect<ExtArgs> | null
  7797. /**
  7798. * Omit specific fields from the Post
  7799. */
  7800. omit?: PostOmit<ExtArgs> | null
  7801. /**
  7802. * Choose, which related nodes to fetch as well
  7803. */
  7804. include?: PostInclude<ExtArgs> | null
  7805. /**
  7806. * The filter to search for the Post to update in case it exists.
  7807. */
  7808. where: PostWhereUniqueInput
  7809. /**
  7810. * In case the Post found by the `where` argument doesn't exist, create a new Post with this data.
  7811. */
  7812. create: XOR<PostCreateInput, PostUncheckedCreateInput>
  7813. /**
  7814. * In case the Post was found with the provided `where` argument, update it with this data.
  7815. */
  7816. update: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7817. }
  7818. /**
  7819. * Post delete
  7820. */
  7821. export type PostDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7822. /**
  7823. * Select specific fields to fetch from the Post
  7824. */
  7825. select?: PostSelect<ExtArgs> | null
  7826. /**
  7827. * Omit specific fields from the Post
  7828. */
  7829. omit?: PostOmit<ExtArgs> | null
  7830. /**
  7831. * Choose, which related nodes to fetch as well
  7832. */
  7833. include?: PostInclude<ExtArgs> | null
  7834. /**
  7835. * Filter which Post to delete.
  7836. */
  7837. where: PostWhereUniqueInput
  7838. }
  7839. /**
  7840. * Post deleteMany
  7841. */
  7842. export type PostDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7843. /**
  7844. * Filter which Posts to delete
  7845. */
  7846. where?: PostWhereInput
  7847. /**
  7848. * Limit how many Posts to delete.
  7849. */
  7850. limit?: number
  7851. }
  7852. /**
  7853. * Post without action
  7854. */
  7855. export type PostDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7856. /**
  7857. * Select specific fields to fetch from the Post
  7858. */
  7859. select?: PostSelect<ExtArgs> | null
  7860. /**
  7861. * Omit specific fields from the Post
  7862. */
  7863. omit?: PostOmit<ExtArgs> | null
  7864. /**
  7865. * Choose, which related nodes to fetch as well
  7866. */
  7867. include?: PostInclude<ExtArgs> | null
  7868. }
  7869. /**
  7870. * Model Account
  7871. */
  7872. export type AggregateAccount = {
  7873. _count: AccountCountAggregateOutputType | null
  7874. _avg: AccountAvgAggregateOutputType | null
  7875. _sum: AccountSumAggregateOutputType | null
  7876. _min: AccountMinAggregateOutputType | null
  7877. _max: AccountMaxAggregateOutputType | null
  7878. }
  7879. export type AccountAvgAggregateOutputType = {
  7880. expires_at: number | null
  7881. refresh_token_expires_in: number | null
  7882. }
  7883. export type AccountSumAggregateOutputType = {
  7884. expires_at: number | null
  7885. refresh_token_expires_in: number | null
  7886. }
  7887. export type AccountMinAggregateOutputType = {
  7888. id: string | null
  7889. userId: string | null
  7890. type: string | null
  7891. provider: string | null
  7892. providerAccountId: string | null
  7893. refresh_token: string | null
  7894. access_token: string | null
  7895. expires_at: number | null
  7896. token_type: string | null
  7897. scope: string | null
  7898. id_token: string | null
  7899. session_state: string | null
  7900. refresh_token_expires_in: number | null
  7901. }
  7902. export type AccountMaxAggregateOutputType = {
  7903. id: string | null
  7904. userId: string | null
  7905. type: string | null
  7906. provider: string | null
  7907. providerAccountId: string | null
  7908. refresh_token: string | null
  7909. access_token: string | null
  7910. expires_at: number | null
  7911. token_type: string | null
  7912. scope: string | null
  7913. id_token: string | null
  7914. session_state: string | null
  7915. refresh_token_expires_in: number | null
  7916. }
  7917. export type AccountCountAggregateOutputType = {
  7918. id: number
  7919. userId: number
  7920. type: number
  7921. provider: number
  7922. providerAccountId: number
  7923. refresh_token: number
  7924. access_token: number
  7925. expires_at: number
  7926. token_type: number
  7927. scope: number
  7928. id_token: number
  7929. session_state: number
  7930. refresh_token_expires_in: number
  7931. _all: number
  7932. }
  7933. export type AccountAvgAggregateInputType = {
  7934. expires_at?: true
  7935. refresh_token_expires_in?: true
  7936. }
  7937. export type AccountSumAggregateInputType = {
  7938. expires_at?: true
  7939. refresh_token_expires_in?: true
  7940. }
  7941. export type AccountMinAggregateInputType = {
  7942. id?: true
  7943. userId?: true
  7944. type?: true
  7945. provider?: true
  7946. providerAccountId?: true
  7947. refresh_token?: true
  7948. access_token?: true
  7949. expires_at?: true
  7950. token_type?: true
  7951. scope?: true
  7952. id_token?: true
  7953. session_state?: true
  7954. refresh_token_expires_in?: true
  7955. }
  7956. export type AccountMaxAggregateInputType = {
  7957. id?: true
  7958. userId?: true
  7959. type?: true
  7960. provider?: true
  7961. providerAccountId?: true
  7962. refresh_token?: true
  7963. access_token?: true
  7964. expires_at?: true
  7965. token_type?: true
  7966. scope?: true
  7967. id_token?: true
  7968. session_state?: true
  7969. refresh_token_expires_in?: true
  7970. }
  7971. export type AccountCountAggregateInputType = {
  7972. id?: true
  7973. userId?: true
  7974. type?: true
  7975. provider?: true
  7976. providerAccountId?: true
  7977. refresh_token?: true
  7978. access_token?: true
  7979. expires_at?: true
  7980. token_type?: true
  7981. scope?: true
  7982. id_token?: true
  7983. session_state?: true
  7984. refresh_token_expires_in?: true
  7985. _all?: true
  7986. }
  7987. export type AccountAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7988. /**
  7989. * Filter which Account to aggregate.
  7990. */
  7991. where?: AccountWhereInput
  7992. /**
  7993. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7994. *
  7995. * Determine the order of Accounts to fetch.
  7996. */
  7997. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  7998. /**
  7999. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8000. *
  8001. * Sets the start position
  8002. */
  8003. cursor?: AccountWhereUniqueInput
  8004. /**
  8005. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8006. *
  8007. * Take `±n` Accounts from the position of the cursor.
  8008. */
  8009. take?: number
  8010. /**
  8011. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8012. *
  8013. * Skip the first `n` Accounts.
  8014. */
  8015. skip?: number
  8016. /**
  8017. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8018. *
  8019. * Count returned Accounts
  8020. **/
  8021. _count?: true | AccountCountAggregateInputType
  8022. /**
  8023. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8024. *
  8025. * Select which fields to average
  8026. **/
  8027. _avg?: AccountAvgAggregateInputType
  8028. /**
  8029. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8030. *
  8031. * Select which fields to sum
  8032. **/
  8033. _sum?: AccountSumAggregateInputType
  8034. /**
  8035. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8036. *
  8037. * Select which fields to find the minimum value
  8038. **/
  8039. _min?: AccountMinAggregateInputType
  8040. /**
  8041. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8042. *
  8043. * Select which fields to find the maximum value
  8044. **/
  8045. _max?: AccountMaxAggregateInputType
  8046. }
  8047. export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
  8048. [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
  8049. ? T[P] extends true
  8050. ? number
  8051. : GetScalarType<T[P], AggregateAccount[P]>
  8052. : GetScalarType<T[P], AggregateAccount[P]>
  8053. }
  8054. export type AccountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8055. where?: AccountWhereInput
  8056. orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[]
  8057. by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
  8058. having?: AccountScalarWhereWithAggregatesInput
  8059. take?: number
  8060. skip?: number
  8061. _count?: AccountCountAggregateInputType | true
  8062. _avg?: AccountAvgAggregateInputType
  8063. _sum?: AccountSumAggregateInputType
  8064. _min?: AccountMinAggregateInputType
  8065. _max?: AccountMaxAggregateInputType
  8066. }
  8067. export type AccountGroupByOutputType = {
  8068. id: string
  8069. userId: string
  8070. type: string
  8071. provider: string
  8072. providerAccountId: string
  8073. refresh_token: string | null
  8074. access_token: string | null
  8075. expires_at: number | null
  8076. token_type: string | null
  8077. scope: string | null
  8078. id_token: string | null
  8079. session_state: string | null
  8080. refresh_token_expires_in: number | null
  8081. _count: AccountCountAggregateOutputType | null
  8082. _avg: AccountAvgAggregateOutputType | null
  8083. _sum: AccountSumAggregateOutputType | null
  8084. _min: AccountMinAggregateOutputType | null
  8085. _max: AccountMaxAggregateOutputType | null
  8086. }
  8087. type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
  8088. Array<
  8089. PickEnumerable<AccountGroupByOutputType, T['by']> &
  8090. {
  8091. [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
  8092. ? T[P] extends boolean
  8093. ? number
  8094. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8095. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8096. }
  8097. >
  8098. >
  8099. export type AccountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8100. id?: boolean
  8101. userId?: boolean
  8102. type?: boolean
  8103. provider?: boolean
  8104. providerAccountId?: boolean
  8105. refresh_token?: boolean
  8106. access_token?: boolean
  8107. expires_at?: boolean
  8108. token_type?: boolean
  8109. scope?: boolean
  8110. id_token?: boolean
  8111. session_state?: boolean
  8112. refresh_token_expires_in?: boolean
  8113. user?: boolean | UserDefaultArgs<ExtArgs>
  8114. }, ExtArgs["result"]["account"]>
  8115. export type AccountSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8116. id?: boolean
  8117. userId?: boolean
  8118. type?: boolean
  8119. provider?: boolean
  8120. providerAccountId?: boolean
  8121. refresh_token?: boolean
  8122. access_token?: boolean
  8123. expires_at?: boolean
  8124. token_type?: boolean
  8125. scope?: boolean
  8126. id_token?: boolean
  8127. session_state?: boolean
  8128. refresh_token_expires_in?: boolean
  8129. user?: boolean | UserDefaultArgs<ExtArgs>
  8130. }, ExtArgs["result"]["account"]>
  8131. export type AccountSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8132. id?: boolean
  8133. userId?: boolean
  8134. type?: boolean
  8135. provider?: boolean
  8136. providerAccountId?: boolean
  8137. refresh_token?: boolean
  8138. access_token?: boolean
  8139. expires_at?: boolean
  8140. token_type?: boolean
  8141. scope?: boolean
  8142. id_token?: boolean
  8143. session_state?: boolean
  8144. refresh_token_expires_in?: boolean
  8145. user?: boolean | UserDefaultArgs<ExtArgs>
  8146. }, ExtArgs["result"]["account"]>
  8147. export type AccountSelectScalar = {
  8148. id?: boolean
  8149. userId?: boolean
  8150. type?: boolean
  8151. provider?: boolean
  8152. providerAccountId?: boolean
  8153. refresh_token?: boolean
  8154. access_token?: boolean
  8155. expires_at?: boolean
  8156. token_type?: boolean
  8157. scope?: boolean
  8158. id_token?: boolean
  8159. session_state?: boolean
  8160. refresh_token_expires_in?: boolean
  8161. }
  8162. export type AccountOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "type" | "provider" | "providerAccountId" | "refresh_token" | "access_token" | "expires_at" | "token_type" | "scope" | "id_token" | "session_state" | "refresh_token_expires_in", ExtArgs["result"]["account"]>
  8163. export type AccountInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8164. user?: boolean | UserDefaultArgs<ExtArgs>
  8165. }
  8166. export type AccountIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8167. user?: boolean | UserDefaultArgs<ExtArgs>
  8168. }
  8169. export type AccountIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8170. user?: boolean | UserDefaultArgs<ExtArgs>
  8171. }
  8172. export type $AccountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8173. name: "Account"
  8174. objects: {
  8175. user: Prisma.$UserPayload<ExtArgs>
  8176. }
  8177. scalars: $Extensions.GetPayloadResult<{
  8178. id: string
  8179. userId: string
  8180. type: string
  8181. provider: string
  8182. providerAccountId: string
  8183. refresh_token: string | null
  8184. access_token: string | null
  8185. expires_at: number | null
  8186. token_type: string | null
  8187. scope: string | null
  8188. id_token: string | null
  8189. session_state: string | null
  8190. refresh_token_expires_in: number | null
  8191. }, ExtArgs["result"]["account"]>
  8192. composites: {}
  8193. }
  8194. type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = $Result.GetResult<Prisma.$AccountPayload, S>
  8195. type AccountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  8196. Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  8197. select?: AccountCountAggregateInputType | true
  8198. }
  8199. export interface AccountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  8200. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
  8201. /**
  8202. * Find zero or one Account that matches the filter.
  8203. * @param {AccountFindUniqueArgs} args - Arguments to find a Account
  8204. * @example
  8205. * // Get one Account
  8206. * const account = await prisma.account.findUnique({
  8207. * where: {
  8208. * // ... provide filter here
  8209. * }
  8210. * })
  8211. */
  8212. findUnique<T extends AccountFindUniqueArgs>(args: SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8213. /**
  8214. * Find one Account that matches the filter or throw an error with `error.code='P2025'`
  8215. * if no matches were found.
  8216. * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
  8217. * @example
  8218. * // Get one Account
  8219. * const account = await prisma.account.findUniqueOrThrow({
  8220. * where: {
  8221. * // ... provide filter here
  8222. * }
  8223. * })
  8224. */
  8225. findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8226. /**
  8227. * Find the first Account that matches the filter.
  8228. * Note, that providing `undefined` is treated as the value not being there.
  8229. * Read more here: https://pris.ly/d/null-undefined
  8230. * @param {AccountFindFirstArgs} args - Arguments to find a Account
  8231. * @example
  8232. * // Get one Account
  8233. * const account = await prisma.account.findFirst({
  8234. * where: {
  8235. * // ... provide filter here
  8236. * }
  8237. * })
  8238. */
  8239. findFirst<T extends AccountFindFirstArgs>(args?: SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8240. /**
  8241. * Find the first Account that matches the filter or
  8242. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  8243. * Note, that providing `undefined` is treated as the value not being there.
  8244. * Read more here: https://pris.ly/d/null-undefined
  8245. * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
  8246. * @example
  8247. * // Get one Account
  8248. * const account = await prisma.account.findFirstOrThrow({
  8249. * where: {
  8250. * // ... provide filter here
  8251. * }
  8252. * })
  8253. */
  8254. findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8255. /**
  8256. * Find zero or more Accounts that matches the filter.
  8257. * Note, that providing `undefined` is treated as the value not being there.
  8258. * Read more here: https://pris.ly/d/null-undefined
  8259. * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
  8260. * @example
  8261. * // Get all Accounts
  8262. * const accounts = await prisma.account.findMany()
  8263. *
  8264. * // Get first 10 Accounts
  8265. * const accounts = await prisma.account.findMany({ take: 10 })
  8266. *
  8267. * // Only select the `id`
  8268. * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
  8269. *
  8270. */
  8271. findMany<T extends AccountFindManyArgs>(args?: SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  8272. /**
  8273. * Create a Account.
  8274. * @param {AccountCreateArgs} args - Arguments to create a Account.
  8275. * @example
  8276. * // Create one Account
  8277. * const Account = await prisma.account.create({
  8278. * data: {
  8279. * // ... data to create a Account
  8280. * }
  8281. * })
  8282. *
  8283. */
  8284. create<T extends AccountCreateArgs>(args: SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8285. /**
  8286. * Create many Accounts.
  8287. * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
  8288. * @example
  8289. * // Create many Accounts
  8290. * const account = await prisma.account.createMany({
  8291. * data: [
  8292. * // ... provide data here
  8293. * ]
  8294. * })
  8295. *
  8296. */
  8297. createMany<T extends AccountCreateManyArgs>(args?: SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8298. /**
  8299. * Create many Accounts and returns the data saved in the database.
  8300. * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
  8301. * @example
  8302. * // Create many Accounts
  8303. * const account = await prisma.account.createManyAndReturn({
  8304. * data: [
  8305. * // ... provide data here
  8306. * ]
  8307. * })
  8308. *
  8309. * // Create many Accounts and only return the `id`
  8310. * const accountWithIdOnly = await prisma.account.createManyAndReturn({
  8311. * select: { id: true },
  8312. * data: [
  8313. * // ... provide data here
  8314. * ]
  8315. * })
  8316. * Note, that providing `undefined` is treated as the value not being there.
  8317. * Read more here: https://pris.ly/d/null-undefined
  8318. *
  8319. */
  8320. createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  8321. /**
  8322. * Delete a Account.
  8323. * @param {AccountDeleteArgs} args - Arguments to delete one Account.
  8324. * @example
  8325. * // Delete one Account
  8326. * const Account = await prisma.account.delete({
  8327. * where: {
  8328. * // ... filter to delete one Account
  8329. * }
  8330. * })
  8331. *
  8332. */
  8333. delete<T extends AccountDeleteArgs>(args: SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8334. /**
  8335. * Update one Account.
  8336. * @param {AccountUpdateArgs} args - Arguments to update one Account.
  8337. * @example
  8338. * // Update one Account
  8339. * const account = await prisma.account.update({
  8340. * where: {
  8341. * // ... provide filter here
  8342. * },
  8343. * data: {
  8344. * // ... provide data here
  8345. * }
  8346. * })
  8347. *
  8348. */
  8349. update<T extends AccountUpdateArgs>(args: SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8350. /**
  8351. * Delete zero or more Accounts.
  8352. * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
  8353. * @example
  8354. * // Delete a few Accounts
  8355. * const { count } = await prisma.account.deleteMany({
  8356. * where: {
  8357. * // ... provide filter here
  8358. * }
  8359. * })
  8360. *
  8361. */
  8362. deleteMany<T extends AccountDeleteManyArgs>(args?: SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8363. /**
  8364. * Update zero or more Accounts.
  8365. * Note, that providing `undefined` is treated as the value not being there.
  8366. * Read more here: https://pris.ly/d/null-undefined
  8367. * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
  8368. * @example
  8369. * // Update many Accounts
  8370. * const account = await prisma.account.updateMany({
  8371. * where: {
  8372. * // ... provide filter here
  8373. * },
  8374. * data: {
  8375. * // ... provide data here
  8376. * }
  8377. * })
  8378. *
  8379. */
  8380. updateMany<T extends AccountUpdateManyArgs>(args: SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8381. /**
  8382. * Update zero or more Accounts and returns the data updated in the database.
  8383. * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
  8384. * @example
  8385. * // Update many Accounts
  8386. * const account = await prisma.account.updateManyAndReturn({
  8387. * where: {
  8388. * // ... provide filter here
  8389. * },
  8390. * data: [
  8391. * // ... provide data here
  8392. * ]
  8393. * })
  8394. *
  8395. * // Update zero or more Accounts and only return the `id`
  8396. * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
  8397. * select: { id: true },
  8398. * where: {
  8399. * // ... provide filter here
  8400. * },
  8401. * data: [
  8402. * // ... provide data here
  8403. * ]
  8404. * })
  8405. * Note, that providing `undefined` is treated as the value not being there.
  8406. * Read more here: https://pris.ly/d/null-undefined
  8407. *
  8408. */
  8409. updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  8410. /**
  8411. * Create or update one Account.
  8412. * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
  8413. * @example
  8414. * // Update or create a Account
  8415. * const account = await prisma.account.upsert({
  8416. * create: {
  8417. * // ... data to create a Account
  8418. * },
  8419. * update: {
  8420. * // ... in case it already exists, update
  8421. * },
  8422. * where: {
  8423. * // ... the filter for the Account we want to update
  8424. * }
  8425. * })
  8426. */
  8427. upsert<T extends AccountUpsertArgs>(args: SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8428. /**
  8429. * Count the number of Accounts.
  8430. * Note, that providing `undefined` is treated as the value not being there.
  8431. * Read more here: https://pris.ly/d/null-undefined
  8432. * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
  8433. * @example
  8434. * // Count the number of Accounts
  8435. * const count = await prisma.account.count({
  8436. * where: {
  8437. * // ... the filter for the Accounts we want to count
  8438. * }
  8439. * })
  8440. **/
  8441. count<T extends AccountCountArgs>(
  8442. args?: Subset<T, AccountCountArgs>,
  8443. ): Prisma.PrismaPromise<
  8444. T extends $Utils.Record<'select', any>
  8445. ? T['select'] extends true
  8446. ? number
  8447. : GetScalarType<T['select'], AccountCountAggregateOutputType>
  8448. : number
  8449. >
  8450. /**
  8451. * Allows you to perform aggregations operations on a Account.
  8452. * Note, that providing `undefined` is treated as the value not being there.
  8453. * Read more here: https://pris.ly/d/null-undefined
  8454. * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  8455. * @example
  8456. * // Ordered by age ascending
  8457. * // Where email contains prisma.io
  8458. * // Limited to the 10 users
  8459. * const aggregations = await prisma.user.aggregate({
  8460. * _avg: {
  8461. * age: true,
  8462. * },
  8463. * where: {
  8464. * email: {
  8465. * contains: "prisma.io",
  8466. * },
  8467. * },
  8468. * orderBy: {
  8469. * age: "asc",
  8470. * },
  8471. * take: 10,
  8472. * })
  8473. **/
  8474. aggregate<T extends AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
  8475. /**
  8476. * Group by Account.
  8477. * Note, that providing `undefined` is treated as the value not being there.
  8478. * Read more here: https://pris.ly/d/null-undefined
  8479. * @param {AccountGroupByArgs} args - Group by arguments.
  8480. * @example
  8481. * // Group by city, order by createdAt, get count
  8482. * const result = await prisma.user.groupBy({
  8483. * by: ['city', 'createdAt'],
  8484. * orderBy: {
  8485. * createdAt: true
  8486. * },
  8487. * _count: {
  8488. * _all: true
  8489. * },
  8490. * })
  8491. *
  8492. **/
  8493. groupBy<
  8494. T extends AccountGroupByArgs,
  8495. HasSelectOrTake extends Or<
  8496. Extends<'skip', Keys<T>>,
  8497. Extends<'take', Keys<T>>
  8498. >,
  8499. OrderByArg extends True extends HasSelectOrTake
  8500. ? { orderBy: AccountGroupByArgs['orderBy'] }
  8501. : { orderBy?: AccountGroupByArgs['orderBy'] },
  8502. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  8503. ByFields extends MaybeTupleToUnion<T['by']>,
  8504. ByValid extends Has<ByFields, OrderFields>,
  8505. HavingFields extends GetHavingFields<T['having']>,
  8506. HavingValid extends Has<ByFields, HavingFields>,
  8507. ByEmpty extends T['by'] extends never[] ? True : False,
  8508. InputErrors extends ByEmpty extends True
  8509. ? `Error: "by" must not be empty.`
  8510. : HavingValid extends False
  8511. ? {
  8512. [P in HavingFields]: P extends ByFields
  8513. ? never
  8514. : P extends string
  8515. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  8516. : [
  8517. Error,
  8518. 'Field ',
  8519. P,
  8520. ` in "having" needs to be provided in "by"`,
  8521. ]
  8522. }[HavingFields]
  8523. : 'take' extends Keys<T>
  8524. ? 'orderBy' extends Keys<T>
  8525. ? ByValid extends True
  8526. ? {}
  8527. : {
  8528. [P in OrderFields]: P extends ByFields
  8529. ? never
  8530. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8531. }[OrderFields]
  8532. : 'Error: If you provide "take", you also need to provide "orderBy"'
  8533. : 'skip' extends Keys<T>
  8534. ? 'orderBy' extends Keys<T>
  8535. ? ByValid extends True
  8536. ? {}
  8537. : {
  8538. [P in OrderFields]: P extends ByFields
  8539. ? never
  8540. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8541. }[OrderFields]
  8542. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  8543. : ByValid extends True
  8544. ? {}
  8545. : {
  8546. [P in OrderFields]: P extends ByFields
  8547. ? never
  8548. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8549. }[OrderFields]
  8550. >(args: SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  8551. /**
  8552. * Fields of the Account model
  8553. */
  8554. readonly fields: AccountFieldRefs;
  8555. }
  8556. /**
  8557. * The delegate class that acts as a "Promise-like" for Account.
  8558. * Why is this prefixed with `Prisma__`?
  8559. * Because we want to prevent naming conflicts as mentioned in
  8560. * https://github.com/prisma/prisma-client-js/issues/707
  8561. */
  8562. export interface Prisma__AccountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  8563. readonly [Symbol.toStringTag]: "PrismaPromise"
  8564. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  8565. /**
  8566. * Attaches callbacks for the resolution and/or rejection of the Promise.
  8567. * @param onfulfilled The callback to execute when the Promise is resolved.
  8568. * @param onrejected The callback to execute when the Promise is rejected.
  8569. * @returns A Promise for the completion of which ever callback is executed.
  8570. */
  8571. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  8572. /**
  8573. * Attaches a callback for only the rejection of the Promise.
  8574. * @param onrejected The callback to execute when the Promise is rejected.
  8575. * @returns A Promise for the completion of the callback.
  8576. */
  8577. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  8578. /**
  8579. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  8580. * resolved value cannot be modified from the callback.
  8581. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  8582. * @returns A Promise for the completion of the callback.
  8583. */
  8584. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  8585. }
  8586. /**
  8587. * Fields of the Account model
  8588. */
  8589. interface AccountFieldRefs {
  8590. readonly id: FieldRef<"Account", 'String'>
  8591. readonly userId: FieldRef<"Account", 'String'>
  8592. readonly type: FieldRef<"Account", 'String'>
  8593. readonly provider: FieldRef<"Account", 'String'>
  8594. readonly providerAccountId: FieldRef<"Account", 'String'>
  8595. readonly refresh_token: FieldRef<"Account", 'String'>
  8596. readonly access_token: FieldRef<"Account", 'String'>
  8597. readonly expires_at: FieldRef<"Account", 'Int'>
  8598. readonly token_type: FieldRef<"Account", 'String'>
  8599. readonly scope: FieldRef<"Account", 'String'>
  8600. readonly id_token: FieldRef<"Account", 'String'>
  8601. readonly session_state: FieldRef<"Account", 'String'>
  8602. readonly refresh_token_expires_in: FieldRef<"Account", 'Int'>
  8603. }
  8604. // Custom InputTypes
  8605. /**
  8606. * Account findUnique
  8607. */
  8608. export type AccountFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8609. /**
  8610. * Select specific fields to fetch from the Account
  8611. */
  8612. select?: AccountSelect<ExtArgs> | null
  8613. /**
  8614. * Omit specific fields from the Account
  8615. */
  8616. omit?: AccountOmit<ExtArgs> | null
  8617. /**
  8618. * Choose, which related nodes to fetch as well
  8619. */
  8620. include?: AccountInclude<ExtArgs> | null
  8621. /**
  8622. * Filter, which Account to fetch.
  8623. */
  8624. where: AccountWhereUniqueInput
  8625. }
  8626. /**
  8627. * Account findUniqueOrThrow
  8628. */
  8629. export type AccountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8630. /**
  8631. * Select specific fields to fetch from the Account
  8632. */
  8633. select?: AccountSelect<ExtArgs> | null
  8634. /**
  8635. * Omit specific fields from the Account
  8636. */
  8637. omit?: AccountOmit<ExtArgs> | null
  8638. /**
  8639. * Choose, which related nodes to fetch as well
  8640. */
  8641. include?: AccountInclude<ExtArgs> | null
  8642. /**
  8643. * Filter, which Account to fetch.
  8644. */
  8645. where: AccountWhereUniqueInput
  8646. }
  8647. /**
  8648. * Account findFirst
  8649. */
  8650. export type AccountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8651. /**
  8652. * Select specific fields to fetch from the Account
  8653. */
  8654. select?: AccountSelect<ExtArgs> | null
  8655. /**
  8656. * Omit specific fields from the Account
  8657. */
  8658. omit?: AccountOmit<ExtArgs> | null
  8659. /**
  8660. * Choose, which related nodes to fetch as well
  8661. */
  8662. include?: AccountInclude<ExtArgs> | null
  8663. /**
  8664. * Filter, which Account to fetch.
  8665. */
  8666. where?: AccountWhereInput
  8667. /**
  8668. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8669. *
  8670. * Determine the order of Accounts to fetch.
  8671. */
  8672. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8673. /**
  8674. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8675. *
  8676. * Sets the position for searching for Accounts.
  8677. */
  8678. cursor?: AccountWhereUniqueInput
  8679. /**
  8680. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8681. *
  8682. * Take `±n` Accounts from the position of the cursor.
  8683. */
  8684. take?: number
  8685. /**
  8686. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8687. *
  8688. * Skip the first `n` Accounts.
  8689. */
  8690. skip?: number
  8691. /**
  8692. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8693. *
  8694. * Filter by unique combinations of Accounts.
  8695. */
  8696. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8697. }
  8698. /**
  8699. * Account findFirstOrThrow
  8700. */
  8701. export type AccountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8702. /**
  8703. * Select specific fields to fetch from the Account
  8704. */
  8705. select?: AccountSelect<ExtArgs> | null
  8706. /**
  8707. * Omit specific fields from the Account
  8708. */
  8709. omit?: AccountOmit<ExtArgs> | null
  8710. /**
  8711. * Choose, which related nodes to fetch as well
  8712. */
  8713. include?: AccountInclude<ExtArgs> | null
  8714. /**
  8715. * Filter, which Account to fetch.
  8716. */
  8717. where?: AccountWhereInput
  8718. /**
  8719. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8720. *
  8721. * Determine the order of Accounts to fetch.
  8722. */
  8723. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8724. /**
  8725. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8726. *
  8727. * Sets the position for searching for Accounts.
  8728. */
  8729. cursor?: AccountWhereUniqueInput
  8730. /**
  8731. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8732. *
  8733. * Take `±n` Accounts from the position of the cursor.
  8734. */
  8735. take?: number
  8736. /**
  8737. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8738. *
  8739. * Skip the first `n` Accounts.
  8740. */
  8741. skip?: number
  8742. /**
  8743. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8744. *
  8745. * Filter by unique combinations of Accounts.
  8746. */
  8747. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8748. }
  8749. /**
  8750. * Account findMany
  8751. */
  8752. export type AccountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8753. /**
  8754. * Select specific fields to fetch from the Account
  8755. */
  8756. select?: AccountSelect<ExtArgs> | null
  8757. /**
  8758. * Omit specific fields from the Account
  8759. */
  8760. omit?: AccountOmit<ExtArgs> | null
  8761. /**
  8762. * Choose, which related nodes to fetch as well
  8763. */
  8764. include?: AccountInclude<ExtArgs> | null
  8765. /**
  8766. * Filter, which Accounts to fetch.
  8767. */
  8768. where?: AccountWhereInput
  8769. /**
  8770. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8771. *
  8772. * Determine the order of Accounts to fetch.
  8773. */
  8774. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8775. /**
  8776. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8777. *
  8778. * Sets the position for listing Accounts.
  8779. */
  8780. cursor?: AccountWhereUniqueInput
  8781. /**
  8782. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8783. *
  8784. * Take `±n` Accounts from the position of the cursor.
  8785. */
  8786. take?: number
  8787. /**
  8788. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8789. *
  8790. * Skip the first `n` Accounts.
  8791. */
  8792. skip?: number
  8793. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8794. }
  8795. /**
  8796. * Account create
  8797. */
  8798. export type AccountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8799. /**
  8800. * Select specific fields to fetch from the Account
  8801. */
  8802. select?: AccountSelect<ExtArgs> | null
  8803. /**
  8804. * Omit specific fields from the Account
  8805. */
  8806. omit?: AccountOmit<ExtArgs> | null
  8807. /**
  8808. * Choose, which related nodes to fetch as well
  8809. */
  8810. include?: AccountInclude<ExtArgs> | null
  8811. /**
  8812. * The data needed to create a Account.
  8813. */
  8814. data: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  8815. }
  8816. /**
  8817. * Account createMany
  8818. */
  8819. export type AccountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8820. /**
  8821. * The data used to create many Accounts.
  8822. */
  8823. data: AccountCreateManyInput | AccountCreateManyInput[]
  8824. skipDuplicates?: boolean
  8825. }
  8826. /**
  8827. * Account createManyAndReturn
  8828. */
  8829. export type AccountCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8830. /**
  8831. * Select specific fields to fetch from the Account
  8832. */
  8833. select?: AccountSelectCreateManyAndReturn<ExtArgs> | null
  8834. /**
  8835. * Omit specific fields from the Account
  8836. */
  8837. omit?: AccountOmit<ExtArgs> | null
  8838. /**
  8839. * The data used to create many Accounts.
  8840. */
  8841. data: AccountCreateManyInput | AccountCreateManyInput[]
  8842. skipDuplicates?: boolean
  8843. /**
  8844. * Choose, which related nodes to fetch as well
  8845. */
  8846. include?: AccountIncludeCreateManyAndReturn<ExtArgs> | null
  8847. }
  8848. /**
  8849. * Account update
  8850. */
  8851. export type AccountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8852. /**
  8853. * Select specific fields to fetch from the Account
  8854. */
  8855. select?: AccountSelect<ExtArgs> | null
  8856. /**
  8857. * Omit specific fields from the Account
  8858. */
  8859. omit?: AccountOmit<ExtArgs> | null
  8860. /**
  8861. * Choose, which related nodes to fetch as well
  8862. */
  8863. include?: AccountInclude<ExtArgs> | null
  8864. /**
  8865. * The data needed to update a Account.
  8866. */
  8867. data: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  8868. /**
  8869. * Choose, which Account to update.
  8870. */
  8871. where: AccountWhereUniqueInput
  8872. }
  8873. /**
  8874. * Account updateMany
  8875. */
  8876. export type AccountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8877. /**
  8878. * The data used to update Accounts.
  8879. */
  8880. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  8881. /**
  8882. * Filter which Accounts to update
  8883. */
  8884. where?: AccountWhereInput
  8885. /**
  8886. * Limit how many Accounts to update.
  8887. */
  8888. limit?: number
  8889. }
  8890. /**
  8891. * Account updateManyAndReturn
  8892. */
  8893. export type AccountUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8894. /**
  8895. * Select specific fields to fetch from the Account
  8896. */
  8897. select?: AccountSelectUpdateManyAndReturn<ExtArgs> | null
  8898. /**
  8899. * Omit specific fields from the Account
  8900. */
  8901. omit?: AccountOmit<ExtArgs> | null
  8902. /**
  8903. * The data used to update Accounts.
  8904. */
  8905. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  8906. /**
  8907. * Filter which Accounts to update
  8908. */
  8909. where?: AccountWhereInput
  8910. /**
  8911. * Limit how many Accounts to update.
  8912. */
  8913. limit?: number
  8914. /**
  8915. * Choose, which related nodes to fetch as well
  8916. */
  8917. include?: AccountIncludeUpdateManyAndReturn<ExtArgs> | null
  8918. }
  8919. /**
  8920. * Account upsert
  8921. */
  8922. export type AccountUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8923. /**
  8924. * Select specific fields to fetch from the Account
  8925. */
  8926. select?: AccountSelect<ExtArgs> | null
  8927. /**
  8928. * Omit specific fields from the Account
  8929. */
  8930. omit?: AccountOmit<ExtArgs> | null
  8931. /**
  8932. * Choose, which related nodes to fetch as well
  8933. */
  8934. include?: AccountInclude<ExtArgs> | null
  8935. /**
  8936. * The filter to search for the Account to update in case it exists.
  8937. */
  8938. where: AccountWhereUniqueInput
  8939. /**
  8940. * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
  8941. */
  8942. create: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  8943. /**
  8944. * In case the Account was found with the provided `where` argument, update it with this data.
  8945. */
  8946. update: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  8947. }
  8948. /**
  8949. * Account delete
  8950. */
  8951. export type AccountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8952. /**
  8953. * Select specific fields to fetch from the Account
  8954. */
  8955. select?: AccountSelect<ExtArgs> | null
  8956. /**
  8957. * Omit specific fields from the Account
  8958. */
  8959. omit?: AccountOmit<ExtArgs> | null
  8960. /**
  8961. * Choose, which related nodes to fetch as well
  8962. */
  8963. include?: AccountInclude<ExtArgs> | null
  8964. /**
  8965. * Filter which Account to delete.
  8966. */
  8967. where: AccountWhereUniqueInput
  8968. }
  8969. /**
  8970. * Account deleteMany
  8971. */
  8972. export type AccountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8973. /**
  8974. * Filter which Accounts to delete
  8975. */
  8976. where?: AccountWhereInput
  8977. /**
  8978. * Limit how many Accounts to delete.
  8979. */
  8980. limit?: number
  8981. }
  8982. /**
  8983. * Account without action
  8984. */
  8985. export type AccountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8986. /**
  8987. * Select specific fields to fetch from the Account
  8988. */
  8989. select?: AccountSelect<ExtArgs> | null
  8990. /**
  8991. * Omit specific fields from the Account
  8992. */
  8993. omit?: AccountOmit<ExtArgs> | null
  8994. /**
  8995. * Choose, which related nodes to fetch as well
  8996. */
  8997. include?: AccountInclude<ExtArgs> | null
  8998. }
  8999. /**
  9000. * Model Session
  9001. */
  9002. export type AggregateSession = {
  9003. _count: SessionCountAggregateOutputType | null
  9004. _min: SessionMinAggregateOutputType | null
  9005. _max: SessionMaxAggregateOutputType | null
  9006. }
  9007. export type SessionMinAggregateOutputType = {
  9008. id: string | null
  9009. sessionToken: string | null
  9010. userId: string | null
  9011. expires: Date | null
  9012. }
  9013. export type SessionMaxAggregateOutputType = {
  9014. id: string | null
  9015. sessionToken: string | null
  9016. userId: string | null
  9017. expires: Date | null
  9018. }
  9019. export type SessionCountAggregateOutputType = {
  9020. id: number
  9021. sessionToken: number
  9022. userId: number
  9023. expires: number
  9024. _all: number
  9025. }
  9026. export type SessionMinAggregateInputType = {
  9027. id?: true
  9028. sessionToken?: true
  9029. userId?: true
  9030. expires?: true
  9031. }
  9032. export type SessionMaxAggregateInputType = {
  9033. id?: true
  9034. sessionToken?: true
  9035. userId?: true
  9036. expires?: true
  9037. }
  9038. export type SessionCountAggregateInputType = {
  9039. id?: true
  9040. sessionToken?: true
  9041. userId?: true
  9042. expires?: true
  9043. _all?: true
  9044. }
  9045. export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9046. /**
  9047. * Filter which Session to aggregate.
  9048. */
  9049. where?: SessionWhereInput
  9050. /**
  9051. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9052. *
  9053. * Determine the order of Sessions to fetch.
  9054. */
  9055. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9056. /**
  9057. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9058. *
  9059. * Sets the start position
  9060. */
  9061. cursor?: SessionWhereUniqueInput
  9062. /**
  9063. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9064. *
  9065. * Take `±n` Sessions from the position of the cursor.
  9066. */
  9067. take?: number
  9068. /**
  9069. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9070. *
  9071. * Skip the first `n` Sessions.
  9072. */
  9073. skip?: number
  9074. /**
  9075. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9076. *
  9077. * Count returned Sessions
  9078. **/
  9079. _count?: true | SessionCountAggregateInputType
  9080. /**
  9081. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9082. *
  9083. * Select which fields to find the minimum value
  9084. **/
  9085. _min?: SessionMinAggregateInputType
  9086. /**
  9087. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9088. *
  9089. * Select which fields to find the maximum value
  9090. **/
  9091. _max?: SessionMaxAggregateInputType
  9092. }
  9093. export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
  9094. [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
  9095. ? T[P] extends true
  9096. ? number
  9097. : GetScalarType<T[P], AggregateSession[P]>
  9098. : GetScalarType<T[P], AggregateSession[P]>
  9099. }
  9100. export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9101. where?: SessionWhereInput
  9102. orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
  9103. by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
  9104. having?: SessionScalarWhereWithAggregatesInput
  9105. take?: number
  9106. skip?: number
  9107. _count?: SessionCountAggregateInputType | true
  9108. _min?: SessionMinAggregateInputType
  9109. _max?: SessionMaxAggregateInputType
  9110. }
  9111. export type SessionGroupByOutputType = {
  9112. id: string
  9113. sessionToken: string
  9114. userId: string
  9115. expires: Date
  9116. _count: SessionCountAggregateOutputType | null
  9117. _min: SessionMinAggregateOutputType | null
  9118. _max: SessionMaxAggregateOutputType | null
  9119. }
  9120. type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
  9121. Array<
  9122. PickEnumerable<SessionGroupByOutputType, T['by']> &
  9123. {
  9124. [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
  9125. ? T[P] extends boolean
  9126. ? number
  9127. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9128. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9129. }
  9130. >
  9131. >
  9132. export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9133. id?: boolean
  9134. sessionToken?: boolean
  9135. userId?: boolean
  9136. expires?: boolean
  9137. user?: boolean | UserDefaultArgs<ExtArgs>
  9138. }, ExtArgs["result"]["session"]>
  9139. export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9140. id?: boolean
  9141. sessionToken?: boolean
  9142. userId?: boolean
  9143. expires?: boolean
  9144. user?: boolean | UserDefaultArgs<ExtArgs>
  9145. }, ExtArgs["result"]["session"]>
  9146. export type SessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9147. id?: boolean
  9148. sessionToken?: boolean
  9149. userId?: boolean
  9150. expires?: boolean
  9151. user?: boolean | UserDefaultArgs<ExtArgs>
  9152. }, ExtArgs["result"]["session"]>
  9153. export type SessionSelectScalar = {
  9154. id?: boolean
  9155. sessionToken?: boolean
  9156. userId?: boolean
  9157. expires?: boolean
  9158. }
  9159. export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]>
  9160. export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9161. user?: boolean | UserDefaultArgs<ExtArgs>
  9162. }
  9163. export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9164. user?: boolean | UserDefaultArgs<ExtArgs>
  9165. }
  9166. export type SessionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9167. user?: boolean | UserDefaultArgs<ExtArgs>
  9168. }
  9169. export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9170. name: "Session"
  9171. objects: {
  9172. user: Prisma.$UserPayload<ExtArgs>
  9173. }
  9174. scalars: $Extensions.GetPayloadResult<{
  9175. id: string
  9176. sessionToken: string
  9177. userId: string
  9178. expires: Date
  9179. }, ExtArgs["result"]["session"]>
  9180. composites: {}
  9181. }
  9182. type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
  9183. type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  9184. Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  9185. select?: SessionCountAggregateInputType | true
  9186. }
  9187. export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  9188. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
  9189. /**
  9190. * Find zero or one Session that matches the filter.
  9191. * @param {SessionFindUniqueArgs} args - Arguments to find a Session
  9192. * @example
  9193. * // Get one Session
  9194. * const session = await prisma.session.findUnique({
  9195. * where: {
  9196. * // ... provide filter here
  9197. * }
  9198. * })
  9199. */
  9200. findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9201. /**
  9202. * Find one Session that matches the filter or throw an error with `error.code='P2025'`
  9203. * if no matches were found.
  9204. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
  9205. * @example
  9206. * // Get one Session
  9207. * const session = await prisma.session.findUniqueOrThrow({
  9208. * where: {
  9209. * // ... provide filter here
  9210. * }
  9211. * })
  9212. */
  9213. findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9214. /**
  9215. * Find the first Session that matches the filter.
  9216. * Note, that providing `undefined` is treated as the value not being there.
  9217. * Read more here: https://pris.ly/d/null-undefined
  9218. * @param {SessionFindFirstArgs} args - Arguments to find a Session
  9219. * @example
  9220. * // Get one Session
  9221. * const session = await prisma.session.findFirst({
  9222. * where: {
  9223. * // ... provide filter here
  9224. * }
  9225. * })
  9226. */
  9227. findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9228. /**
  9229. * Find the first Session that matches the filter or
  9230. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  9231. * Note, that providing `undefined` is treated as the value not being there.
  9232. * Read more here: https://pris.ly/d/null-undefined
  9233. * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
  9234. * @example
  9235. * // Get one Session
  9236. * const session = await prisma.session.findFirstOrThrow({
  9237. * where: {
  9238. * // ... provide filter here
  9239. * }
  9240. * })
  9241. */
  9242. findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9243. /**
  9244. * Find zero or more Sessions that matches the filter.
  9245. * Note, that providing `undefined` is treated as the value not being there.
  9246. * Read more here: https://pris.ly/d/null-undefined
  9247. * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
  9248. * @example
  9249. * // Get all Sessions
  9250. * const sessions = await prisma.session.findMany()
  9251. *
  9252. * // Get first 10 Sessions
  9253. * const sessions = await prisma.session.findMany({ take: 10 })
  9254. *
  9255. * // Only select the `id`
  9256. * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
  9257. *
  9258. */
  9259. findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  9260. /**
  9261. * Create a Session.
  9262. * @param {SessionCreateArgs} args - Arguments to create a Session.
  9263. * @example
  9264. * // Create one Session
  9265. * const Session = await prisma.session.create({
  9266. * data: {
  9267. * // ... data to create a Session
  9268. * }
  9269. * })
  9270. *
  9271. */
  9272. create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9273. /**
  9274. * Create many Sessions.
  9275. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
  9276. * @example
  9277. * // Create many Sessions
  9278. * const session = await prisma.session.createMany({
  9279. * data: [
  9280. * // ... provide data here
  9281. * ]
  9282. * })
  9283. *
  9284. */
  9285. createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9286. /**
  9287. * Create many Sessions and returns the data saved in the database.
  9288. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
  9289. * @example
  9290. * // Create many Sessions
  9291. * const session = await prisma.session.createManyAndReturn({
  9292. * data: [
  9293. * // ... provide data here
  9294. * ]
  9295. * })
  9296. *
  9297. * // Create many Sessions and only return the `id`
  9298. * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
  9299. * select: { id: true },
  9300. * data: [
  9301. * // ... provide data here
  9302. * ]
  9303. * })
  9304. * Note, that providing `undefined` is treated as the value not being there.
  9305. * Read more here: https://pris.ly/d/null-undefined
  9306. *
  9307. */
  9308. createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  9309. /**
  9310. * Delete a Session.
  9311. * @param {SessionDeleteArgs} args - Arguments to delete one Session.
  9312. * @example
  9313. * // Delete one Session
  9314. * const Session = await prisma.session.delete({
  9315. * where: {
  9316. * // ... filter to delete one Session
  9317. * }
  9318. * })
  9319. *
  9320. */
  9321. delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9322. /**
  9323. * Update one Session.
  9324. * @param {SessionUpdateArgs} args - Arguments to update one Session.
  9325. * @example
  9326. * // Update one Session
  9327. * const session = await prisma.session.update({
  9328. * where: {
  9329. * // ... provide filter here
  9330. * },
  9331. * data: {
  9332. * // ... provide data here
  9333. * }
  9334. * })
  9335. *
  9336. */
  9337. update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9338. /**
  9339. * Delete zero or more Sessions.
  9340. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
  9341. * @example
  9342. * // Delete a few Sessions
  9343. * const { count } = await prisma.session.deleteMany({
  9344. * where: {
  9345. * // ... provide filter here
  9346. * }
  9347. * })
  9348. *
  9349. */
  9350. deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9351. /**
  9352. * Update zero or more Sessions.
  9353. * Note, that providing `undefined` is treated as the value not being there.
  9354. * Read more here: https://pris.ly/d/null-undefined
  9355. * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
  9356. * @example
  9357. * // Update many Sessions
  9358. * const session = await prisma.session.updateMany({
  9359. * where: {
  9360. * // ... provide filter here
  9361. * },
  9362. * data: {
  9363. * // ... provide data here
  9364. * }
  9365. * })
  9366. *
  9367. */
  9368. updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9369. /**
  9370. * Update zero or more Sessions and returns the data updated in the database.
  9371. * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
  9372. * @example
  9373. * // Update many Sessions
  9374. * const session = await prisma.session.updateManyAndReturn({
  9375. * where: {
  9376. * // ... provide filter here
  9377. * },
  9378. * data: [
  9379. * // ... provide data here
  9380. * ]
  9381. * })
  9382. *
  9383. * // Update zero or more Sessions and only return the `id`
  9384. * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
  9385. * select: { id: true },
  9386. * where: {
  9387. * // ... provide filter here
  9388. * },
  9389. * data: [
  9390. * // ... provide data here
  9391. * ]
  9392. * })
  9393. * Note, that providing `undefined` is treated as the value not being there.
  9394. * Read more here: https://pris.ly/d/null-undefined
  9395. *
  9396. */
  9397. updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  9398. /**
  9399. * Create or update one Session.
  9400. * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
  9401. * @example
  9402. * // Update or create a Session
  9403. * const session = await prisma.session.upsert({
  9404. * create: {
  9405. * // ... data to create a Session
  9406. * },
  9407. * update: {
  9408. * // ... in case it already exists, update
  9409. * },
  9410. * where: {
  9411. * // ... the filter for the Session we want to update
  9412. * }
  9413. * })
  9414. */
  9415. upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9416. /**
  9417. * Count the number of Sessions.
  9418. * Note, that providing `undefined` is treated as the value not being there.
  9419. * Read more here: https://pris.ly/d/null-undefined
  9420. * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
  9421. * @example
  9422. * // Count the number of Sessions
  9423. * const count = await prisma.session.count({
  9424. * where: {
  9425. * // ... the filter for the Sessions we want to count
  9426. * }
  9427. * })
  9428. **/
  9429. count<T extends SessionCountArgs>(
  9430. args?: Subset<T, SessionCountArgs>,
  9431. ): Prisma.PrismaPromise<
  9432. T extends $Utils.Record<'select', any>
  9433. ? T['select'] extends true
  9434. ? number
  9435. : GetScalarType<T['select'], SessionCountAggregateOutputType>
  9436. : number
  9437. >
  9438. /**
  9439. * Allows you to perform aggregations operations on a Session.
  9440. * Note, that providing `undefined` is treated as the value not being there.
  9441. * Read more here: https://pris.ly/d/null-undefined
  9442. * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  9443. * @example
  9444. * // Ordered by age ascending
  9445. * // Where email contains prisma.io
  9446. * // Limited to the 10 users
  9447. * const aggregations = await prisma.user.aggregate({
  9448. * _avg: {
  9449. * age: true,
  9450. * },
  9451. * where: {
  9452. * email: {
  9453. * contains: "prisma.io",
  9454. * },
  9455. * },
  9456. * orderBy: {
  9457. * age: "asc",
  9458. * },
  9459. * take: 10,
  9460. * })
  9461. **/
  9462. aggregate<T extends SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
  9463. /**
  9464. * Group by Session.
  9465. * Note, that providing `undefined` is treated as the value not being there.
  9466. * Read more here: https://pris.ly/d/null-undefined
  9467. * @param {SessionGroupByArgs} args - Group by arguments.
  9468. * @example
  9469. * // Group by city, order by createdAt, get count
  9470. * const result = await prisma.user.groupBy({
  9471. * by: ['city', 'createdAt'],
  9472. * orderBy: {
  9473. * createdAt: true
  9474. * },
  9475. * _count: {
  9476. * _all: true
  9477. * },
  9478. * })
  9479. *
  9480. **/
  9481. groupBy<
  9482. T extends SessionGroupByArgs,
  9483. HasSelectOrTake extends Or<
  9484. Extends<'skip', Keys<T>>,
  9485. Extends<'take', Keys<T>>
  9486. >,
  9487. OrderByArg extends True extends HasSelectOrTake
  9488. ? { orderBy: SessionGroupByArgs['orderBy'] }
  9489. : { orderBy?: SessionGroupByArgs['orderBy'] },
  9490. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  9491. ByFields extends MaybeTupleToUnion<T['by']>,
  9492. ByValid extends Has<ByFields, OrderFields>,
  9493. HavingFields extends GetHavingFields<T['having']>,
  9494. HavingValid extends Has<ByFields, HavingFields>,
  9495. ByEmpty extends T['by'] extends never[] ? True : False,
  9496. InputErrors extends ByEmpty extends True
  9497. ? `Error: "by" must not be empty.`
  9498. : HavingValid extends False
  9499. ? {
  9500. [P in HavingFields]: P extends ByFields
  9501. ? never
  9502. : P extends string
  9503. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  9504. : [
  9505. Error,
  9506. 'Field ',
  9507. P,
  9508. ` in "having" needs to be provided in "by"`,
  9509. ]
  9510. }[HavingFields]
  9511. : 'take' extends Keys<T>
  9512. ? 'orderBy' extends Keys<T>
  9513. ? ByValid extends True
  9514. ? {}
  9515. : {
  9516. [P in OrderFields]: P extends ByFields
  9517. ? never
  9518. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9519. }[OrderFields]
  9520. : 'Error: If you provide "take", you also need to provide "orderBy"'
  9521. : 'skip' extends Keys<T>
  9522. ? 'orderBy' extends Keys<T>
  9523. ? ByValid extends True
  9524. ? {}
  9525. : {
  9526. [P in OrderFields]: P extends ByFields
  9527. ? never
  9528. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9529. }[OrderFields]
  9530. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  9531. : ByValid extends True
  9532. ? {}
  9533. : {
  9534. [P in OrderFields]: P extends ByFields
  9535. ? never
  9536. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9537. }[OrderFields]
  9538. >(args: SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  9539. /**
  9540. * Fields of the Session model
  9541. */
  9542. readonly fields: SessionFieldRefs;
  9543. }
  9544. /**
  9545. * The delegate class that acts as a "Promise-like" for Session.
  9546. * Why is this prefixed with `Prisma__`?
  9547. * Because we want to prevent naming conflicts as mentioned in
  9548. * https://github.com/prisma/prisma-client-js/issues/707
  9549. */
  9550. export interface Prisma__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  9551. readonly [Symbol.toStringTag]: "PrismaPromise"
  9552. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  9553. /**
  9554. * Attaches callbacks for the resolution and/or rejection of the Promise.
  9555. * @param onfulfilled The callback to execute when the Promise is resolved.
  9556. * @param onrejected The callback to execute when the Promise is rejected.
  9557. * @returns A Promise for the completion of which ever callback is executed.
  9558. */
  9559. then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): $Utils.JsPromise<TResult1 | TResult2>
  9560. /**
  9561. * Attaches a callback for only the rejection of the Promise.
  9562. * @param onrejected The callback to execute when the Promise is rejected.
  9563. * @returns A Promise for the completion of the callback.
  9564. */
  9565. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  9566. /**
  9567. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  9568. * resolved value cannot be modified from the callback.
  9569. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  9570. * @returns A Promise for the completion of the callback.
  9571. */
  9572. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  9573. }
  9574. /**
  9575. * Fields of the Session model
  9576. */
  9577. interface SessionFieldRefs {
  9578. readonly id: FieldRef<"Session", 'String'>
  9579. readonly sessionToken: FieldRef<"Session", 'String'>
  9580. readonly userId: FieldRef<"Session", 'String'>
  9581. readonly expires: FieldRef<"Session", 'DateTime'>
  9582. }
  9583. // Custom InputTypes
  9584. /**
  9585. * Session findUnique
  9586. */
  9587. export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9588. /**
  9589. * Select specific fields to fetch from the Session
  9590. */
  9591. select?: SessionSelect<ExtArgs> | null
  9592. /**
  9593. * Omit specific fields from the Session
  9594. */
  9595. omit?: SessionOmit<ExtArgs> | null
  9596. /**
  9597. * Choose, which related nodes to fetch as well
  9598. */
  9599. include?: SessionInclude<ExtArgs> | null
  9600. /**
  9601. * Filter, which Session to fetch.
  9602. */
  9603. where: SessionWhereUniqueInput
  9604. }
  9605. /**
  9606. * Session findUniqueOrThrow
  9607. */
  9608. export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9609. /**
  9610. * Select specific fields to fetch from the Session
  9611. */
  9612. select?: SessionSelect<ExtArgs> | null
  9613. /**
  9614. * Omit specific fields from the Session
  9615. */
  9616. omit?: SessionOmit<ExtArgs> | null
  9617. /**
  9618. * Choose, which related nodes to fetch as well
  9619. */
  9620. include?: SessionInclude<ExtArgs> | null
  9621. /**
  9622. * Filter, which Session to fetch.
  9623. */
  9624. where: SessionWhereUniqueInput
  9625. }
  9626. /**
  9627. * Session findFirst
  9628. */
  9629. export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9630. /**
  9631. * Select specific fields to fetch from the Session
  9632. */
  9633. select?: SessionSelect<ExtArgs> | null
  9634. /**
  9635. * Omit specific fields from the Session
  9636. */
  9637. omit?: SessionOmit<ExtArgs> | null
  9638. /**
  9639. * Choose, which related nodes to fetch as well
  9640. */
  9641. include?: SessionInclude<ExtArgs> | null
  9642. /**
  9643. * Filter, which Session to fetch.
  9644. */
  9645. where?: SessionWhereInput
  9646. /**
  9647. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9648. *
  9649. * Determine the order of Sessions to fetch.
  9650. */
  9651. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9652. /**
  9653. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9654. *
  9655. * Sets the position for searching for Sessions.
  9656. */
  9657. cursor?: SessionWhereUniqueInput
  9658. /**
  9659. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9660. *
  9661. * Take `±n` Sessions from the position of the cursor.
  9662. */
  9663. take?: number
  9664. /**
  9665. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9666. *
  9667. * Skip the first `n` Sessions.
  9668. */
  9669. skip?: number
  9670. /**
  9671. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9672. *
  9673. * Filter by unique combinations of Sessions.
  9674. */
  9675. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9676. }
  9677. /**
  9678. * Session findFirstOrThrow
  9679. */
  9680. export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9681. /**
  9682. * Select specific fields to fetch from the Session
  9683. */
  9684. select?: SessionSelect<ExtArgs> | null
  9685. /**
  9686. * Omit specific fields from the Session
  9687. */
  9688. omit?: SessionOmit<ExtArgs> | null
  9689. /**
  9690. * Choose, which related nodes to fetch as well
  9691. */
  9692. include?: SessionInclude<ExtArgs> | null
  9693. /**
  9694. * Filter, which Session to fetch.
  9695. */
  9696. where?: SessionWhereInput
  9697. /**
  9698. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9699. *
  9700. * Determine the order of Sessions to fetch.
  9701. */
  9702. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9703. /**
  9704. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9705. *
  9706. * Sets the position for searching for Sessions.
  9707. */
  9708. cursor?: SessionWhereUniqueInput
  9709. /**
  9710. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9711. *
  9712. * Take `±n` Sessions from the position of the cursor.
  9713. */
  9714. take?: number
  9715. /**
  9716. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9717. *
  9718. * Skip the first `n` Sessions.
  9719. */
  9720. skip?: number
  9721. /**
  9722. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9723. *
  9724. * Filter by unique combinations of Sessions.
  9725. */
  9726. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9727. }
  9728. /**
  9729. * Session findMany
  9730. */
  9731. export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9732. /**
  9733. * Select specific fields to fetch from the Session
  9734. */
  9735. select?: SessionSelect<ExtArgs> | null
  9736. /**
  9737. * Omit specific fields from the Session
  9738. */
  9739. omit?: SessionOmit<ExtArgs> | null
  9740. /**
  9741. * Choose, which related nodes to fetch as well
  9742. */
  9743. include?: SessionInclude<ExtArgs> | null
  9744. /**
  9745. * Filter, which Sessions to fetch.
  9746. */
  9747. where?: SessionWhereInput
  9748. /**
  9749. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9750. *
  9751. * Determine the order of Sessions to fetch.
  9752. */
  9753. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9754. /**
  9755. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9756. *
  9757. * Sets the position for listing Sessions.
  9758. */
  9759. cursor?: SessionWhereUniqueInput
  9760. /**
  9761. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9762. *
  9763. * Take `±n` Sessions from the position of the cursor.
  9764. */
  9765. take?: number
  9766. /**
  9767. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9768. *
  9769. * Skip the first `n` Sessions.
  9770. */
  9771. skip?: number
  9772. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9773. }
  9774. /**
  9775. * Session create
  9776. */
  9777. export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9778. /**
  9779. * Select specific fields to fetch from the Session
  9780. */
  9781. select?: SessionSelect<ExtArgs> | null
  9782. /**
  9783. * Omit specific fields from the Session
  9784. */
  9785. omit?: SessionOmit<ExtArgs> | null
  9786. /**
  9787. * Choose, which related nodes to fetch as well
  9788. */
  9789. include?: SessionInclude<ExtArgs> | null
  9790. /**
  9791. * The data needed to create a Session.
  9792. */
  9793. data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  9794. }
  9795. /**
  9796. * Session createMany
  9797. */
  9798. export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9799. /**
  9800. * The data used to create many Sessions.
  9801. */
  9802. data: SessionCreateManyInput | SessionCreateManyInput[]
  9803. skipDuplicates?: boolean
  9804. }
  9805. /**
  9806. * Session createManyAndReturn
  9807. */
  9808. export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9809. /**
  9810. * Select specific fields to fetch from the Session
  9811. */
  9812. select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
  9813. /**
  9814. * Omit specific fields from the Session
  9815. */
  9816. omit?: SessionOmit<ExtArgs> | null
  9817. /**
  9818. * The data used to create many Sessions.
  9819. */
  9820. data: SessionCreateManyInput | SessionCreateManyInput[]
  9821. skipDuplicates?: boolean
  9822. /**
  9823. * Choose, which related nodes to fetch as well
  9824. */
  9825. include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
  9826. }
  9827. /**
  9828. * Session update
  9829. */
  9830. export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9831. /**
  9832. * Select specific fields to fetch from the Session
  9833. */
  9834. select?: SessionSelect<ExtArgs> | null
  9835. /**
  9836. * Omit specific fields from the Session
  9837. */
  9838. omit?: SessionOmit<ExtArgs> | null
  9839. /**
  9840. * Choose, which related nodes to fetch as well
  9841. */
  9842. include?: SessionInclude<ExtArgs> | null
  9843. /**
  9844. * The data needed to update a Session.
  9845. */
  9846. data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  9847. /**
  9848. * Choose, which Session to update.
  9849. */
  9850. where: SessionWhereUniqueInput
  9851. }
  9852. /**
  9853. * Session updateMany
  9854. */
  9855. export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9856. /**
  9857. * The data used to update Sessions.
  9858. */
  9859. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  9860. /**
  9861. * Filter which Sessions to update
  9862. */
  9863. where?: SessionWhereInput
  9864. /**
  9865. * Limit how many Sessions to update.
  9866. */
  9867. limit?: number
  9868. }
  9869. /**
  9870. * Session updateManyAndReturn
  9871. */
  9872. export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9873. /**
  9874. * Select specific fields to fetch from the Session
  9875. */
  9876. select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
  9877. /**
  9878. * Omit specific fields from the Session
  9879. */
  9880. omit?: SessionOmit<ExtArgs> | null
  9881. /**
  9882. * The data used to update Sessions.
  9883. */
  9884. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  9885. /**
  9886. * Filter which Sessions to update
  9887. */
  9888. where?: SessionWhereInput
  9889. /**
  9890. * Limit how many Sessions to update.
  9891. */
  9892. limit?: number
  9893. /**
  9894. * Choose, which related nodes to fetch as well
  9895. */
  9896. include?: SessionIncludeUpdateManyAndReturn<ExtArgs> | null
  9897. }
  9898. /**
  9899. * Session upsert
  9900. */
  9901. export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9902. /**
  9903. * Select specific fields to fetch from the Session
  9904. */
  9905. select?: SessionSelect<ExtArgs> | null
  9906. /**
  9907. * Omit specific fields from the Session
  9908. */
  9909. omit?: SessionOmit<ExtArgs> | null
  9910. /**
  9911. * Choose, which related nodes to fetch as well
  9912. */
  9913. include?: SessionInclude<ExtArgs> | null
  9914. /**
  9915. * The filter to search for the Session to update in case it exists.
  9916. */
  9917. where: SessionWhereUniqueInput
  9918. /**
  9919. * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
  9920. */
  9921. create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  9922. /**
  9923. * In case the Session was found with the provided `where` argument, update it with this data.
  9924. */
  9925. update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  9926. }
  9927. /**
  9928. * Session delete
  9929. */
  9930. export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9931. /**
  9932. * Select specific fields to fetch from the Session
  9933. */
  9934. select?: SessionSelect<ExtArgs> | null
  9935. /**
  9936. * Omit specific fields from the Session
  9937. */
  9938. omit?: SessionOmit<ExtArgs> | null
  9939. /**
  9940. * Choose, which related nodes to fetch as well
  9941. */
  9942. include?: SessionInclude<ExtArgs> | null
  9943. /**
  9944. * Filter which Session to delete.
  9945. */
  9946. where: SessionWhereUniqueInput
  9947. }
  9948. /**
  9949. * Session deleteMany
  9950. */
  9951. export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9952. /**
  9953. * Filter which Sessions to delete
  9954. */
  9955. where?: SessionWhereInput
  9956. /**
  9957. * Limit how many Sessions to delete.
  9958. */
  9959. limit?: number
  9960. }
  9961. /**
  9962. * Session without action
  9963. */
  9964. export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9965. /**
  9966. * Select specific fields to fetch from the Session
  9967. */
  9968. select?: SessionSelect<ExtArgs> | null
  9969. /**
  9970. * Omit specific fields from the Session
  9971. */
  9972. omit?: SessionOmit<ExtArgs> | null
  9973. /**
  9974. * Choose, which related nodes to fetch as well
  9975. */
  9976. include?: SessionInclude<ExtArgs> | null
  9977. }
  9978. /**
  9979. * Model User
  9980. */
  9981. export type AggregateUser = {
  9982. _count: UserCountAggregateOutputType | null
  9983. _min: UserMinAggregateOutputType | null
  9984. _max: UserMaxAggregateOutputType | null
  9985. }
  9986. export type UserMinAggregateOutputType = {
  9987. id: string | null
  9988. name: string | null
  9989. email: string | null
  9990. emailVerified: Date | null
  9991. password: string | null
  9992. image: string | null
  9993. }
  9994. export type UserMaxAggregateOutputType = {
  9995. id: string | null
  9996. name: string | null
  9997. email: string | null
  9998. emailVerified: Date | null
  9999. password: string | null
  10000. image: string | null
  10001. }
  10002. export type UserCountAggregateOutputType = {
  10003. id: number
  10004. name: number
  10005. email: number
  10006. emailVerified: number
  10007. password: number
  10008. image: number
  10009. _all: number
  10010. }
  10011. export type UserMinAggregateInputType = {
  10012. id?: true
  10013. name?: true
  10014. email?: true
  10015. emailVerified?: true
  10016. password?: true
  10017. image?: true
  10018. }
  10019. export type UserMaxAggregateInputType = {
  10020. id?: true
  10021. name?: true
  10022. email?: true
  10023. emailVerified?: true
  10024. password?: true
  10025. image?: true
  10026. }
  10027. export type UserCountAggregateInputType = {
  10028. id?: true
  10029. name?: true
  10030. email?: true
  10031. emailVerified?: true
  10032. password?: true
  10033. image?: true
  10034. _all?: true
  10035. }
  10036. export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10037. /**
  10038. * Filter which User to aggregate.
  10039. */
  10040. where?: UserWhereInput
  10041. /**
  10042. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10043. *
  10044. * Determine the order of Users to fetch.
  10045. */
  10046. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10047. /**
  10048. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10049. *
  10050. * Sets the start position
  10051. */
  10052. cursor?: UserWhereUniqueInput
  10053. /**
  10054. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10055. *
  10056. * Take `±n` Users from the position of the cursor.
  10057. */
  10058. take?: number
  10059. /**
  10060. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10061. *
  10062. * Skip the first `n` Users.
  10063. */
  10064. skip?: number
  10065. /**
  10066. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10067. *
  10068. * Count returned Users
  10069. **/
  10070. _count?: true | UserCountAggregateInputType
  10071. /**
  10072. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10073. *
  10074. * Select which fields to find the minimum value
  10075. **/
  10076. _min?: UserMinAggregateInputType
  10077. /**
  10078. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10079. *
  10080. * Select which fields to find the maximum value
  10081. **/
  10082. _max?: UserMaxAggregateInputType
  10083. }
  10084. export type GetUserAggregateType<T extends UserAggregateArgs> = {
  10085. [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
  10086. ? T[P] extends true
  10087. ? number
  10088. : GetScalarType<T[P], AggregateUser[P]>
  10089. : GetScalarType<T[P], AggregateUser[P]>
  10090. }
  10091. export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10092. where?: UserWhereInput
  10093. orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
  10094. by: UserScalarFieldEnum[] | UserScalarFieldEnum
  10095. having?: UserScalarWhereWithAggregatesInput
  10096. take?: number
  10097. skip?: number
  10098. _count?: UserCountAggregateInputType | true
  10099. _min?: UserMinAggregateInputType
  10100. _max?: UserMaxAggregateInputType
  10101. }
  10102. export type UserGroupByOutputType = {
  10103. id: string
  10104. name: string | null
  10105. email: string | null
  10106. emailVerified: Date | null
  10107. password: string | null
  10108. image: string | null
  10109. _count: UserCountAggregateOutputType | null
  10110. _min: UserMinAggregateOutputType | null
  10111. _max: UserMaxAggregateOutputType | null
  10112. }
  10113. type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
  10114. Array<
  10115. PickEnumerable<UserGroupByOutputType, T['by']> &
  10116. {
  10117. [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
  10118. ? T[P] extends boolean
  10119. ? number
  10120. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10121. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10122. }
  10123. >
  10124. >
  10125. export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10126. id?: boolean
  10127. name?: boolean
  10128. email?: boolean
  10129. emailVerified?: boolean
  10130. password?: boolean
  10131. image?: boolean
  10132. accounts?: boolean | User$accountsArgs<ExtArgs>
  10133. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10134. posts?: boolean | User$postsArgs<ExtArgs>
  10135. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10136. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10137. }, ExtArgs["result"]["user"]>
  10138. export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10139. id?: boolean
  10140. name?: boolean
  10141. email?: boolean
  10142. emailVerified?: boolean
  10143. password?: boolean
  10144. image?: boolean
  10145. }, ExtArgs["result"]["user"]>
  10146. export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10147. id?: boolean
  10148. name?: boolean
  10149. email?: boolean
  10150. emailVerified?: boolean
  10151. password?: boolean
  10152. image?: boolean
  10153. }, ExtArgs["result"]["user"]>
  10154. export type UserSelectScalar = {
  10155. id?: boolean
  10156. name?: boolean
  10157. email?: boolean
  10158. emailVerified?: boolean
  10159. password?: boolean
  10160. image?: boolean
  10161. }
  10162. export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "password" | "image", ExtArgs["result"]["user"]>
  10163. export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10164. accounts?: boolean | User$accountsArgs<ExtArgs>
  10165. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10166. posts?: boolean | User$postsArgs<ExtArgs>
  10167. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10168. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10169. }
  10170. export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10171. export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10172. export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10173. name: "User"
  10174. objects: {
  10175. accounts: Prisma.$AccountPayload<ExtArgs>[]
  10176. sessions: Prisma.$SessionPayload<ExtArgs>[]
  10177. posts: Prisma.$PostPayload<ExtArgs>[]
  10178. workspace: Prisma.$WorkspacePayload<ExtArgs> | null
  10179. }
  10180. scalars: $Extensions.GetPayloadResult<{
  10181. id: string
  10182. name: string | null
  10183. email: string | null
  10184. emailVerified: Date | null
  10185. password: string | null
  10186. image: string | null
  10187. }, ExtArgs["result"]["user"]>
  10188. composites: {}
  10189. }
  10190. type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
  10191. type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  10192. Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  10193. select?: UserCountAggregateInputType | true
  10194. }
  10195. export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  10196. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
  10197. /**
  10198. * Find zero or one User that matches the filter.
  10199. * @param {UserFindUniqueArgs} args - Arguments to find a User
  10200. * @example
  10201. * // Get one User
  10202. * const user = await prisma.user.findUnique({
  10203. * where: {
  10204. * // ... provide filter here
  10205. * }
  10206. * })
  10207. */
  10208. findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10209. /**
  10210. * Find one User that matches the filter or throw an error with `error.code='P2025'`
  10211. * if no matches were found.
  10212. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
  10213. * @example
  10214. * // Get one User
  10215. * const user = await prisma.user.findUniqueOrThrow({
  10216. * where: {
  10217. * // ... provide filter here
  10218. * }
  10219. * })
  10220. */
  10221. findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10222. /**
  10223. * Find the first User that matches the filter.
  10224. * Note, that providing `undefined` is treated as the value not being there.
  10225. * Read more here: https://pris.ly/d/null-undefined
  10226. * @param {UserFindFirstArgs} args - Arguments to find a User
  10227. * @example
  10228. * // Get one User
  10229. * const user = await prisma.user.findFirst({
  10230. * where: {
  10231. * // ... provide filter here
  10232. * }
  10233. * })
  10234. */
  10235. findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10236. /**
  10237. * Find the first User that matches the filter or
  10238. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  10239. * Note, that providing `undefined` is treated as the value not being there.
  10240. * Read more here: https://pris.ly/d/null-undefined
  10241. * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
  10242. * @example
  10243. * // Get one User
  10244. * const user = await prisma.user.findFirstOrThrow({
  10245. * where: {
  10246. * // ... provide filter here
  10247. * }
  10248. * })
  10249. */
  10250. findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10251. /**
  10252. * Find zero or more Users that matches the filter.
  10253. * Note, that providing `undefined` is treated as the value not being there.
  10254. * Read more here: https://pris.ly/d/null-undefined
  10255. * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
  10256. * @example
  10257. * // Get all Users
  10258. * const users = await prisma.user.findMany()
  10259. *
  10260. * // Get first 10 Users
  10261. * const users = await prisma.user.findMany({ take: 10 })
  10262. *
  10263. * // Only select the `id`
  10264. * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
  10265. *
  10266. */
  10267. findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  10268. /**
  10269. * Create a User.
  10270. * @param {UserCreateArgs} args - Arguments to create a User.
  10271. * @example
  10272. * // Create one User
  10273. * const User = await prisma.user.create({
  10274. * data: {
  10275. * // ... data to create a User
  10276. * }
  10277. * })
  10278. *
  10279. */
  10280. create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10281. /**
  10282. * Create many Users.
  10283. * @param {UserCreateManyArgs} args - Arguments to create many Users.
  10284. * @example
  10285. * // Create many Users
  10286. * const user = await prisma.user.createMany({
  10287. * data: [
  10288. * // ... provide data here
  10289. * ]
  10290. * })
  10291. *
  10292. */
  10293. createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10294. /**
  10295. * Create many Users and returns the data saved in the database.
  10296. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
  10297. * @example
  10298. * // Create many Users
  10299. * const user = await prisma.user.createManyAndReturn({
  10300. * data: [
  10301. * // ... provide data here
  10302. * ]
  10303. * })
  10304. *
  10305. * // Create many Users and only return the `id`
  10306. * const userWithIdOnly = await prisma.user.createManyAndReturn({
  10307. * select: { id: true },
  10308. * data: [
  10309. * // ... provide data here
  10310. * ]
  10311. * })
  10312. * Note, that providing `undefined` is treated as the value not being there.
  10313. * Read more here: https://pris.ly/d/null-undefined
  10314. *
  10315. */
  10316. createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  10317. /**
  10318. * Delete a User.
  10319. * @param {UserDeleteArgs} args - Arguments to delete one User.
  10320. * @example
  10321. * // Delete one User
  10322. * const User = await prisma.user.delete({
  10323. * where: {
  10324. * // ... filter to delete one User
  10325. * }
  10326. * })
  10327. *
  10328. */
  10329. delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10330. /**
  10331. * Update one User.
  10332. * @param {UserUpdateArgs} args - Arguments to update one User.
  10333. * @example
  10334. * // Update one User
  10335. * const user = await prisma.user.update({
  10336. * where: {
  10337. * // ... provide filter here
  10338. * },
  10339. * data: {
  10340. * // ... provide data here
  10341. * }
  10342. * })
  10343. *
  10344. */
  10345. update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10346. /**
  10347. * Delete zero or more Users.
  10348. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
  10349. * @example
  10350. * // Delete a few Users
  10351. * const { count } = await prisma.user.deleteMany({
  10352. * where: {
  10353. * // ... provide filter here
  10354. * }
  10355. * })
  10356. *
  10357. */
  10358. deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10359. /**
  10360. * Update zero or more Users.
  10361. * Note, that providing `undefined` is treated as the value not being there.
  10362. * Read more here: https://pris.ly/d/null-undefined
  10363. * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
  10364. * @example
  10365. * // Update many Users
  10366. * const user = await prisma.user.updateMany({
  10367. * where: {
  10368. * // ... provide filter here
  10369. * },
  10370. * data: {
  10371. * // ... provide data here
  10372. * }
  10373. * })
  10374. *
  10375. */
  10376. updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10377. /**
  10378. * Update zero or more Users and returns the data updated in the database.
  10379. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
  10380. * @example
  10381. * // Update many Users
  10382. * const user = await prisma.user.updateManyAndReturn({
  10383. * where: {
  10384. * // ... provide filter here
  10385. * },
  10386. * data: [
  10387. * // ... provide data here
  10388. * ]
  10389. * })
  10390. *
  10391. * // Update zero or more Users and only return the `id`
  10392. * const userWithIdOnly = await prisma.user.updateManyAndReturn({
  10393. * select: { id: true },
  10394. * where: {
  10395. * // ... provide filter here
  10396. * },
  10397. * data: [
  10398. * // ... provide data here
  10399. * ]
  10400. * })
  10401. * Note, that providing `undefined` is treated as the value not being there.
  10402. * Read more here: https://pris.ly/d/null-undefined
  10403. *
  10404. */
  10405. updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  10406. /**
  10407. * Create or update one User.
  10408. * @param {UserUpsertArgs} args - Arguments to update or create a User.
  10409. * @example
  10410. * // Update or create a User
  10411. * const user = await prisma.user.upsert({
  10412. * create: {
  10413. * // ... data to create a User
  10414. * },
  10415. * update: {
  10416. * // ... in case it already exists, update
  10417. * },
  10418. * where: {
  10419. * // ... the filter for the User we want to update
  10420. * }
  10421. * })
  10422. */
  10423. upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10424. /**
  10425. * Count the number of Users.
  10426. * Note, that providing `undefined` is treated as the value not being there.
  10427. * Read more here: https://pris.ly/d/null-undefined
  10428. * @param {UserCountArgs} args - Arguments to filter Users to count.
  10429. * @example
  10430. * // Count the number of Users
  10431. * const count = await prisma.user.count({
  10432. * where: {
  10433. * // ... the filter for the Users we want to count
  10434. * }
  10435. * })
  10436. **/
  10437. count<T extends UserCountArgs>(
  10438. args?: Subset<T, UserCountArgs>,
  10439. ): Prisma.PrismaPromise<
  10440. T extends $Utils.Record<'select', any>
  10441. ? T['select'] extends true
  10442. ? number
  10443. : GetScalarType<T['select'], UserCountAggregateOutputType>
  10444. : number
  10445. >
  10446. /**
  10447. * Allows you to perform aggregations operations on a User.
  10448. * Note, that providing `undefined` is treated as the value not being there.
  10449. * Read more here: https://pris.ly/d/null-undefined
  10450. * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  10451. * @example
  10452. * // Ordered by age ascending
  10453. * // Where email contains prisma.io
  10454. * // Limited to the 10 users
  10455. * const aggregations = await prisma.user.aggregate({
  10456. * _avg: {
  10457. * age: true,
  10458. * },
  10459. * where: {
  10460. * email: {
  10461. * contains: "prisma.io",
  10462. * },
  10463. * },
  10464. * orderBy: {
  10465. * age: "asc",
  10466. * },
  10467. * take: 10,
  10468. * })
  10469. **/
  10470. aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
  10471. /**
  10472. * Group by User.
  10473. * Note, that providing `undefined` is treated as the value not being there.
  10474. * Read more here: https://pris.ly/d/null-undefined
  10475. * @param {UserGroupByArgs} args - Group by arguments.
  10476. * @example
  10477. * // Group by city, order by createdAt, get count
  10478. * const result = await prisma.user.groupBy({
  10479. * by: ['city', 'createdAt'],
  10480. * orderBy: {
  10481. * createdAt: true
  10482. * },
  10483. * _count: {
  10484. * _all: true
  10485. * },
  10486. * })
  10487. *
  10488. **/
  10489. groupBy<
  10490. T extends UserGroupByArgs,
  10491. HasSelectOrTake extends Or<
  10492. Extends<'skip', Keys<T>>,
  10493. Extends<'take', Keys<T>>
  10494. >,
  10495. OrderByArg extends True extends HasSelectOrTake
  10496. ? { orderBy: UserGroupByArgs['orderBy'] }
  10497. : { orderBy?: UserGroupByArgs['orderBy'] },
  10498. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  10499. ByFields extends MaybeTupleToUnion<T['by']>,
  10500. ByValid extends Has<ByFields, OrderFields>,
  10501. HavingFields extends GetHavingFields<T['having']>,
  10502. HavingValid extends Has<ByFields, HavingFields>,
  10503. ByEmpty extends T['by'] extends never[] ? True : False,
  10504. InputErrors extends ByEmpty extends True
  10505. ? `Error: "by" must not be empty.`
  10506. : HavingValid extends False
  10507. ? {
  10508. [P in HavingFields]: P extends ByFields
  10509. ? never
  10510. : P extends string
  10511. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  10512. : [
  10513. Error,
  10514. 'Field ',
  10515. P,
  10516. ` in "having" needs to be provided in "by"`,
  10517. ]
  10518. }[HavingFields]
  10519. : 'take' extends Keys<T>
  10520. ? 'orderBy' extends Keys<T>
  10521. ? ByValid extends True
  10522. ? {}
  10523. : {
  10524. [P in OrderFields]: P extends ByFields
  10525. ? never
  10526. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10527. }[OrderFields]
  10528. : 'Error: If you provide "take", you also need to provide "orderBy"'
  10529. : 'skip' extends Keys<T>
  10530. ? 'orderBy' extends Keys<T>
  10531. ? ByValid extends True
  10532. ? {}
  10533. : {
  10534. [P in OrderFields]: P extends ByFields
  10535. ? never
  10536. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10537. }[OrderFields]
  10538. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  10539. : ByValid extends True
  10540. ? {}
  10541. : {
  10542. [P in OrderFields]: P extends ByFields
  10543. ? never
  10544. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10545. }[OrderFields]
  10546. >(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  10547. /**
  10548. * Fields of the User model
  10549. */
  10550. readonly fields: UserFieldRefs;
  10551. }
  10552. /**
  10553. * The delegate class that acts as a "Promise-like" for User.
  10554. * Why is this prefixed with `Prisma__`?
  10555. * Because we want to prevent naming conflicts as mentioned in
  10556. * https://github.com/prisma/prisma-client-js/issues/707
  10557. */
  10558. export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  10559. readonly [Symbol.toStringTag]: "PrismaPromise"
  10560. accounts<T extends User$accountsArgs<ExtArgs> = {}>(args?: Subset<T, User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10561. sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10562. posts<T extends User$postsArgs<ExtArgs> = {}>(args?: Subset<T, User$postsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10563. 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>
  10564. /**
  10565. * Attaches callbacks for the resolution and/or rejection of the Promise.
  10566. * @param onfulfilled The callback to execute when the Promise is resolved.
  10567. * @param onrejected The callback to execute when the Promise is rejected.
  10568. * @returns A Promise for the completion of which ever callback is executed.
  10569. */
  10570. 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>
  10571. /**
  10572. * Attaches a callback for only the rejection of the Promise.
  10573. * @param onrejected The callback to execute when the Promise is rejected.
  10574. * @returns A Promise for the completion of the callback.
  10575. */
  10576. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  10577. /**
  10578. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  10579. * resolved value cannot be modified from the callback.
  10580. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  10581. * @returns A Promise for the completion of the callback.
  10582. */
  10583. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  10584. }
  10585. /**
  10586. * Fields of the User model
  10587. */
  10588. interface UserFieldRefs {
  10589. readonly id: FieldRef<"User", 'String'>
  10590. readonly name: FieldRef<"User", 'String'>
  10591. readonly email: FieldRef<"User", 'String'>
  10592. readonly emailVerified: FieldRef<"User", 'DateTime'>
  10593. readonly password: FieldRef<"User", 'String'>
  10594. readonly image: FieldRef<"User", 'String'>
  10595. }
  10596. // Custom InputTypes
  10597. /**
  10598. * User findUnique
  10599. */
  10600. export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10601. /**
  10602. * Select specific fields to fetch from the User
  10603. */
  10604. select?: UserSelect<ExtArgs> | null
  10605. /**
  10606. * Omit specific fields from the User
  10607. */
  10608. omit?: UserOmit<ExtArgs> | null
  10609. /**
  10610. * Choose, which related nodes to fetch as well
  10611. */
  10612. include?: UserInclude<ExtArgs> | null
  10613. /**
  10614. * Filter, which User to fetch.
  10615. */
  10616. where: UserWhereUniqueInput
  10617. }
  10618. /**
  10619. * User findUniqueOrThrow
  10620. */
  10621. export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10622. /**
  10623. * Select specific fields to fetch from the User
  10624. */
  10625. select?: UserSelect<ExtArgs> | null
  10626. /**
  10627. * Omit specific fields from the User
  10628. */
  10629. omit?: UserOmit<ExtArgs> | null
  10630. /**
  10631. * Choose, which related nodes to fetch as well
  10632. */
  10633. include?: UserInclude<ExtArgs> | null
  10634. /**
  10635. * Filter, which User to fetch.
  10636. */
  10637. where: UserWhereUniqueInput
  10638. }
  10639. /**
  10640. * User findFirst
  10641. */
  10642. export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10643. /**
  10644. * Select specific fields to fetch from the User
  10645. */
  10646. select?: UserSelect<ExtArgs> | null
  10647. /**
  10648. * Omit specific fields from the User
  10649. */
  10650. omit?: UserOmit<ExtArgs> | null
  10651. /**
  10652. * Choose, which related nodes to fetch as well
  10653. */
  10654. include?: UserInclude<ExtArgs> | null
  10655. /**
  10656. * Filter, which User to fetch.
  10657. */
  10658. where?: UserWhereInput
  10659. /**
  10660. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10661. *
  10662. * Determine the order of Users to fetch.
  10663. */
  10664. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10665. /**
  10666. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10667. *
  10668. * Sets the position for searching for Users.
  10669. */
  10670. cursor?: UserWhereUniqueInput
  10671. /**
  10672. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10673. *
  10674. * Take `±n` Users from the position of the cursor.
  10675. */
  10676. take?: number
  10677. /**
  10678. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10679. *
  10680. * Skip the first `n` Users.
  10681. */
  10682. skip?: number
  10683. /**
  10684. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10685. *
  10686. * Filter by unique combinations of Users.
  10687. */
  10688. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10689. }
  10690. /**
  10691. * User findFirstOrThrow
  10692. */
  10693. export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10694. /**
  10695. * Select specific fields to fetch from the User
  10696. */
  10697. select?: UserSelect<ExtArgs> | null
  10698. /**
  10699. * Omit specific fields from the User
  10700. */
  10701. omit?: UserOmit<ExtArgs> | null
  10702. /**
  10703. * Choose, which related nodes to fetch as well
  10704. */
  10705. include?: UserInclude<ExtArgs> | null
  10706. /**
  10707. * Filter, which User to fetch.
  10708. */
  10709. where?: UserWhereInput
  10710. /**
  10711. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10712. *
  10713. * Determine the order of Users to fetch.
  10714. */
  10715. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10716. /**
  10717. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10718. *
  10719. * Sets the position for searching for Users.
  10720. */
  10721. cursor?: UserWhereUniqueInput
  10722. /**
  10723. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10724. *
  10725. * Take `±n` Users from the position of the cursor.
  10726. */
  10727. take?: number
  10728. /**
  10729. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10730. *
  10731. * Skip the first `n` Users.
  10732. */
  10733. skip?: number
  10734. /**
  10735. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10736. *
  10737. * Filter by unique combinations of Users.
  10738. */
  10739. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10740. }
  10741. /**
  10742. * User findMany
  10743. */
  10744. export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10745. /**
  10746. * Select specific fields to fetch from the User
  10747. */
  10748. select?: UserSelect<ExtArgs> | null
  10749. /**
  10750. * Omit specific fields from the User
  10751. */
  10752. omit?: UserOmit<ExtArgs> | null
  10753. /**
  10754. * Choose, which related nodes to fetch as well
  10755. */
  10756. include?: UserInclude<ExtArgs> | null
  10757. /**
  10758. * Filter, which Users to fetch.
  10759. */
  10760. where?: UserWhereInput
  10761. /**
  10762. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10763. *
  10764. * Determine the order of Users to fetch.
  10765. */
  10766. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10767. /**
  10768. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10769. *
  10770. * Sets the position for listing Users.
  10771. */
  10772. cursor?: UserWhereUniqueInput
  10773. /**
  10774. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10775. *
  10776. * Take `±n` Users from the position of the cursor.
  10777. */
  10778. take?: number
  10779. /**
  10780. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10781. *
  10782. * Skip the first `n` Users.
  10783. */
  10784. skip?: number
  10785. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10786. }
  10787. /**
  10788. * User create
  10789. */
  10790. export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10791. /**
  10792. * Select specific fields to fetch from the User
  10793. */
  10794. select?: UserSelect<ExtArgs> | null
  10795. /**
  10796. * Omit specific fields from the User
  10797. */
  10798. omit?: UserOmit<ExtArgs> | null
  10799. /**
  10800. * Choose, which related nodes to fetch as well
  10801. */
  10802. include?: UserInclude<ExtArgs> | null
  10803. /**
  10804. * The data needed to create a User.
  10805. */
  10806. data?: XOR<UserCreateInput, UserUncheckedCreateInput>
  10807. }
  10808. /**
  10809. * User createMany
  10810. */
  10811. export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10812. /**
  10813. * The data used to create many Users.
  10814. */
  10815. data: UserCreateManyInput | UserCreateManyInput[]
  10816. skipDuplicates?: boolean
  10817. }
  10818. /**
  10819. * User createManyAndReturn
  10820. */
  10821. export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10822. /**
  10823. * Select specific fields to fetch from the User
  10824. */
  10825. select?: UserSelectCreateManyAndReturn<ExtArgs> | null
  10826. /**
  10827. * Omit specific fields from the User
  10828. */
  10829. omit?: UserOmit<ExtArgs> | null
  10830. /**
  10831. * The data used to create many Users.
  10832. */
  10833. data: UserCreateManyInput | UserCreateManyInput[]
  10834. skipDuplicates?: boolean
  10835. }
  10836. /**
  10837. * User update
  10838. */
  10839. export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10840. /**
  10841. * Select specific fields to fetch from the User
  10842. */
  10843. select?: UserSelect<ExtArgs> | null
  10844. /**
  10845. * Omit specific fields from the User
  10846. */
  10847. omit?: UserOmit<ExtArgs> | null
  10848. /**
  10849. * Choose, which related nodes to fetch as well
  10850. */
  10851. include?: UserInclude<ExtArgs> | null
  10852. /**
  10853. * The data needed to update a User.
  10854. */
  10855. data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  10856. /**
  10857. * Choose, which User to update.
  10858. */
  10859. where: UserWhereUniqueInput
  10860. }
  10861. /**
  10862. * User updateMany
  10863. */
  10864. export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10865. /**
  10866. * The data used to update Users.
  10867. */
  10868. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  10869. /**
  10870. * Filter which Users to update
  10871. */
  10872. where?: UserWhereInput
  10873. /**
  10874. * Limit how many Users to update.
  10875. */
  10876. limit?: number
  10877. }
  10878. /**
  10879. * User updateManyAndReturn
  10880. */
  10881. export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10882. /**
  10883. * Select specific fields to fetch from the User
  10884. */
  10885. select?: UserSelectUpdateManyAndReturn<ExtArgs> | null
  10886. /**
  10887. * Omit specific fields from the User
  10888. */
  10889. omit?: UserOmit<ExtArgs> | null
  10890. /**
  10891. * The data used to update Users.
  10892. */
  10893. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  10894. /**
  10895. * Filter which Users to update
  10896. */
  10897. where?: UserWhereInput
  10898. /**
  10899. * Limit how many Users to update.
  10900. */
  10901. limit?: number
  10902. }
  10903. /**
  10904. * User upsert
  10905. */
  10906. export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10907. /**
  10908. * Select specific fields to fetch from the User
  10909. */
  10910. select?: UserSelect<ExtArgs> | null
  10911. /**
  10912. * Omit specific fields from the User
  10913. */
  10914. omit?: UserOmit<ExtArgs> | null
  10915. /**
  10916. * Choose, which related nodes to fetch as well
  10917. */
  10918. include?: UserInclude<ExtArgs> | null
  10919. /**
  10920. * The filter to search for the User to update in case it exists.
  10921. */
  10922. where: UserWhereUniqueInput
  10923. /**
  10924. * In case the User found by the `where` argument doesn't exist, create a new User with this data.
  10925. */
  10926. create: XOR<UserCreateInput, UserUncheckedCreateInput>
  10927. /**
  10928. * In case the User was found with the provided `where` argument, update it with this data.
  10929. */
  10930. update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  10931. }
  10932. /**
  10933. * User delete
  10934. */
  10935. export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10936. /**
  10937. * Select specific fields to fetch from the User
  10938. */
  10939. select?: UserSelect<ExtArgs> | null
  10940. /**
  10941. * Omit specific fields from the User
  10942. */
  10943. omit?: UserOmit<ExtArgs> | null
  10944. /**
  10945. * Choose, which related nodes to fetch as well
  10946. */
  10947. include?: UserInclude<ExtArgs> | null
  10948. /**
  10949. * Filter which User to delete.
  10950. */
  10951. where: UserWhereUniqueInput
  10952. }
  10953. /**
  10954. * User deleteMany
  10955. */
  10956. export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10957. /**
  10958. * Filter which Users to delete
  10959. */
  10960. where?: UserWhereInput
  10961. /**
  10962. * Limit how many Users to delete.
  10963. */
  10964. limit?: number
  10965. }
  10966. /**
  10967. * User.accounts
  10968. */
  10969. export type User$accountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10970. /**
  10971. * Select specific fields to fetch from the Account
  10972. */
  10973. select?: AccountSelect<ExtArgs> | null
  10974. /**
  10975. * Omit specific fields from the Account
  10976. */
  10977. omit?: AccountOmit<ExtArgs> | null
  10978. /**
  10979. * Choose, which related nodes to fetch as well
  10980. */
  10981. include?: AccountInclude<ExtArgs> | null
  10982. where?: AccountWhereInput
  10983. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  10984. cursor?: AccountWhereUniqueInput
  10985. take?: number
  10986. skip?: number
  10987. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  10988. }
  10989. /**
  10990. * User.sessions
  10991. */
  10992. export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10993. /**
  10994. * Select specific fields to fetch from the Session
  10995. */
  10996. select?: SessionSelect<ExtArgs> | null
  10997. /**
  10998. * Omit specific fields from the Session
  10999. */
  11000. omit?: SessionOmit<ExtArgs> | null
  11001. /**
  11002. * Choose, which related nodes to fetch as well
  11003. */
  11004. include?: SessionInclude<ExtArgs> | null
  11005. where?: SessionWhereInput
  11006. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  11007. cursor?: SessionWhereUniqueInput
  11008. take?: number
  11009. skip?: number
  11010. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  11011. }
  11012. /**
  11013. * User.posts
  11014. */
  11015. export type User$postsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11016. /**
  11017. * Select specific fields to fetch from the Post
  11018. */
  11019. select?: PostSelect<ExtArgs> | null
  11020. /**
  11021. * Omit specific fields from the Post
  11022. */
  11023. omit?: PostOmit<ExtArgs> | null
  11024. /**
  11025. * Choose, which related nodes to fetch as well
  11026. */
  11027. include?: PostInclude<ExtArgs> | null
  11028. where?: PostWhereInput
  11029. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  11030. cursor?: PostWhereUniqueInput
  11031. take?: number
  11032. skip?: number
  11033. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  11034. }
  11035. /**
  11036. * User.workspace
  11037. */
  11038. export type User$workspaceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11039. /**
  11040. * Select specific fields to fetch from the Workspace
  11041. */
  11042. select?: WorkspaceSelect<ExtArgs> | null
  11043. /**
  11044. * Omit specific fields from the Workspace
  11045. */
  11046. omit?: WorkspaceOmit<ExtArgs> | null
  11047. /**
  11048. * Choose, which related nodes to fetch as well
  11049. */
  11050. include?: WorkspaceInclude<ExtArgs> | null
  11051. where?: WorkspaceWhereInput
  11052. }
  11053. /**
  11054. * User without action
  11055. */
  11056. export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11057. /**
  11058. * Select specific fields to fetch from the User
  11059. */
  11060. select?: UserSelect<ExtArgs> | null
  11061. /**
  11062. * Omit specific fields from the User
  11063. */
  11064. omit?: UserOmit<ExtArgs> | null
  11065. /**
  11066. * Choose, which related nodes to fetch as well
  11067. */
  11068. include?: UserInclude<ExtArgs> | null
  11069. }
  11070. /**
  11071. * Model VerificationToken
  11072. */
  11073. export type AggregateVerificationToken = {
  11074. _count: VerificationTokenCountAggregateOutputType | null
  11075. _min: VerificationTokenMinAggregateOutputType | null
  11076. _max: VerificationTokenMaxAggregateOutputType | null
  11077. }
  11078. export type VerificationTokenMinAggregateOutputType = {
  11079. identifier: string | null
  11080. token: string | null
  11081. expires: Date | null
  11082. }
  11083. export type VerificationTokenMaxAggregateOutputType = {
  11084. identifier: string | null
  11085. token: string | null
  11086. expires: Date | null
  11087. }
  11088. export type VerificationTokenCountAggregateOutputType = {
  11089. identifier: number
  11090. token: number
  11091. expires: number
  11092. _all: number
  11093. }
  11094. export type VerificationTokenMinAggregateInputType = {
  11095. identifier?: true
  11096. token?: true
  11097. expires?: true
  11098. }
  11099. export type VerificationTokenMaxAggregateInputType = {
  11100. identifier?: true
  11101. token?: true
  11102. expires?: true
  11103. }
  11104. export type VerificationTokenCountAggregateInputType = {
  11105. identifier?: true
  11106. token?: true
  11107. expires?: true
  11108. _all?: true
  11109. }
  11110. export type VerificationTokenAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11111. /**
  11112. * Filter which VerificationToken to aggregate.
  11113. */
  11114. where?: VerificationTokenWhereInput
  11115. /**
  11116. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11117. *
  11118. * Determine the order of VerificationTokens to fetch.
  11119. */
  11120. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11121. /**
  11122. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11123. *
  11124. * Sets the start position
  11125. */
  11126. cursor?: VerificationTokenWhereUniqueInput
  11127. /**
  11128. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11129. *
  11130. * Take `±n` VerificationTokens from the position of the cursor.
  11131. */
  11132. take?: number
  11133. /**
  11134. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11135. *
  11136. * Skip the first `n` VerificationTokens.
  11137. */
  11138. skip?: number
  11139. /**
  11140. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11141. *
  11142. * Count returned VerificationTokens
  11143. **/
  11144. _count?: true | VerificationTokenCountAggregateInputType
  11145. /**
  11146. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11147. *
  11148. * Select which fields to find the minimum value
  11149. **/
  11150. _min?: VerificationTokenMinAggregateInputType
  11151. /**
  11152. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11153. *
  11154. * Select which fields to find the maximum value
  11155. **/
  11156. _max?: VerificationTokenMaxAggregateInputType
  11157. }
  11158. export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
  11159. [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
  11160. ? T[P] extends true
  11161. ? number
  11162. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11163. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11164. }
  11165. export type VerificationTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11166. where?: VerificationTokenWhereInput
  11167. orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[]
  11168. by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum
  11169. having?: VerificationTokenScalarWhereWithAggregatesInput
  11170. take?: number
  11171. skip?: number
  11172. _count?: VerificationTokenCountAggregateInputType | true
  11173. _min?: VerificationTokenMinAggregateInputType
  11174. _max?: VerificationTokenMaxAggregateInputType
  11175. }
  11176. export type VerificationTokenGroupByOutputType = {
  11177. identifier: string
  11178. token: string
  11179. expires: Date
  11180. _count: VerificationTokenCountAggregateOutputType | null
  11181. _min: VerificationTokenMinAggregateOutputType | null
  11182. _max: VerificationTokenMaxAggregateOutputType | null
  11183. }
  11184. type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
  11185. Array<
  11186. PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
  11187. {
  11188. [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
  11189. ? T[P] extends boolean
  11190. ? number
  11191. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11192. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11193. }
  11194. >
  11195. >
  11196. export type VerificationTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11197. identifier?: boolean
  11198. token?: boolean
  11199. expires?: boolean
  11200. }, ExtArgs["result"]["verificationToken"]>
  11201. export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11202. identifier?: boolean
  11203. token?: boolean
  11204. expires?: boolean
  11205. }, ExtArgs["result"]["verificationToken"]>
  11206. export type VerificationTokenSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11207. identifier?: boolean
  11208. token?: boolean
  11209. expires?: boolean
  11210. }, ExtArgs["result"]["verificationToken"]>
  11211. export type VerificationTokenSelectScalar = {
  11212. identifier?: boolean
  11213. token?: boolean
  11214. expires?: boolean
  11215. }
  11216. export type VerificationTokenOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]>
  11217. export type $VerificationTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11218. name: "VerificationToken"
  11219. objects: {}
  11220. scalars: $Extensions.GetPayloadResult<{
  11221. identifier: string
  11222. token: string
  11223. expires: Date
  11224. }, ExtArgs["result"]["verificationToken"]>
  11225. composites: {}
  11226. }
  11227. type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = $Result.GetResult<Prisma.$VerificationTokenPayload, S>
  11228. type VerificationTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  11229. Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  11230. select?: VerificationTokenCountAggregateInputType | true
  11231. }
  11232. export interface VerificationTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  11233. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'], meta: { name: 'VerificationToken' } }
  11234. /**
  11235. * Find zero or one VerificationToken that matches the filter.
  11236. * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
  11237. * @example
  11238. * // Get one VerificationToken
  11239. * const verificationToken = await prisma.verificationToken.findUnique({
  11240. * where: {
  11241. * // ... provide filter here
  11242. * }
  11243. * })
  11244. */
  11245. findUnique<T extends VerificationTokenFindUniqueArgs>(args: SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11246. /**
  11247. * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
  11248. * if no matches were found.
  11249. * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
  11250. * @example
  11251. * // Get one VerificationToken
  11252. * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
  11253. * where: {
  11254. * // ... provide filter here
  11255. * }
  11256. * })
  11257. */
  11258. findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11259. /**
  11260. * Find the first VerificationToken that matches the filter.
  11261. * Note, that providing `undefined` is treated as the value not being there.
  11262. * Read more here: https://pris.ly/d/null-undefined
  11263. * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
  11264. * @example
  11265. * // Get one VerificationToken
  11266. * const verificationToken = await prisma.verificationToken.findFirst({
  11267. * where: {
  11268. * // ... provide filter here
  11269. * }
  11270. * })
  11271. */
  11272. findFirst<T extends VerificationTokenFindFirstArgs>(args?: SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11273. /**
  11274. * Find the first VerificationToken that matches the filter or
  11275. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  11276. * Note, that providing `undefined` is treated as the value not being there.
  11277. * Read more here: https://pris.ly/d/null-undefined
  11278. * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
  11279. * @example
  11280. * // Get one VerificationToken
  11281. * const verificationToken = await prisma.verificationToken.findFirstOrThrow({
  11282. * where: {
  11283. * // ... provide filter here
  11284. * }
  11285. * })
  11286. */
  11287. findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11288. /**
  11289. * Find zero or more VerificationTokens that matches the filter.
  11290. * Note, that providing `undefined` is treated as the value not being there.
  11291. * Read more here: https://pris.ly/d/null-undefined
  11292. * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
  11293. * @example
  11294. * // Get all VerificationTokens
  11295. * const verificationTokens = await prisma.verificationToken.findMany()
  11296. *
  11297. * // Get first 10 VerificationTokens
  11298. * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
  11299. *
  11300. * // Only select the `identifier`
  11301. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
  11302. *
  11303. */
  11304. findMany<T extends VerificationTokenFindManyArgs>(args?: SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  11305. /**
  11306. * Create a VerificationToken.
  11307. * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
  11308. * @example
  11309. * // Create one VerificationToken
  11310. * const VerificationToken = await prisma.verificationToken.create({
  11311. * data: {
  11312. * // ... data to create a VerificationToken
  11313. * }
  11314. * })
  11315. *
  11316. */
  11317. create<T extends VerificationTokenCreateArgs>(args: SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11318. /**
  11319. * Create many VerificationTokens.
  11320. * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
  11321. * @example
  11322. * // Create many VerificationTokens
  11323. * const verificationToken = await prisma.verificationToken.createMany({
  11324. * data: [
  11325. * // ... provide data here
  11326. * ]
  11327. * })
  11328. *
  11329. */
  11330. createMany<T extends VerificationTokenCreateManyArgs>(args?: SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11331. /**
  11332. * Create many VerificationTokens and returns the data saved in the database.
  11333. * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
  11334. * @example
  11335. * // Create many VerificationTokens
  11336. * const verificationToken = await prisma.verificationToken.createManyAndReturn({
  11337. * data: [
  11338. * // ... provide data here
  11339. * ]
  11340. * })
  11341. *
  11342. * // Create many VerificationTokens and only return the `identifier`
  11343. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
  11344. * select: { identifier: true },
  11345. * data: [
  11346. * // ... provide data here
  11347. * ]
  11348. * })
  11349. * Note, that providing `undefined` is treated as the value not being there.
  11350. * Read more here: https://pris.ly/d/null-undefined
  11351. *
  11352. */
  11353. createManyAndReturn<T extends VerificationTokenCreateManyAndReturnArgs>(args?: SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  11354. /**
  11355. * Delete a VerificationToken.
  11356. * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
  11357. * @example
  11358. * // Delete one VerificationToken
  11359. * const VerificationToken = await prisma.verificationToken.delete({
  11360. * where: {
  11361. * // ... filter to delete one VerificationToken
  11362. * }
  11363. * })
  11364. *
  11365. */
  11366. delete<T extends VerificationTokenDeleteArgs>(args: SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11367. /**
  11368. * Update one VerificationToken.
  11369. * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
  11370. * @example
  11371. * // Update one VerificationToken
  11372. * const verificationToken = await prisma.verificationToken.update({
  11373. * where: {
  11374. * // ... provide filter here
  11375. * },
  11376. * data: {
  11377. * // ... provide data here
  11378. * }
  11379. * })
  11380. *
  11381. */
  11382. update<T extends VerificationTokenUpdateArgs>(args: SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11383. /**
  11384. * Delete zero or more VerificationTokens.
  11385. * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
  11386. * @example
  11387. * // Delete a few VerificationTokens
  11388. * const { count } = await prisma.verificationToken.deleteMany({
  11389. * where: {
  11390. * // ... provide filter here
  11391. * }
  11392. * })
  11393. *
  11394. */
  11395. deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11396. /**
  11397. * Update zero or more VerificationTokens.
  11398. * Note, that providing `undefined` is treated as the value not being there.
  11399. * Read more here: https://pris.ly/d/null-undefined
  11400. * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
  11401. * @example
  11402. * // Update many VerificationTokens
  11403. * const verificationToken = await prisma.verificationToken.updateMany({
  11404. * where: {
  11405. * // ... provide filter here
  11406. * },
  11407. * data: {
  11408. * // ... provide data here
  11409. * }
  11410. * })
  11411. *
  11412. */
  11413. updateMany<T extends VerificationTokenUpdateManyArgs>(args: SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11414. /**
  11415. * Update zero or more VerificationTokens and returns the data updated in the database.
  11416. * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens.
  11417. * @example
  11418. * // Update many VerificationTokens
  11419. * const verificationToken = await prisma.verificationToken.updateManyAndReturn({
  11420. * where: {
  11421. * // ... provide filter here
  11422. * },
  11423. * data: [
  11424. * // ... provide data here
  11425. * ]
  11426. * })
  11427. *
  11428. * // Update zero or more VerificationTokens and only return the `identifier`
  11429. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({
  11430. * select: { identifier: true },
  11431. * where: {
  11432. * // ... provide filter here
  11433. * },
  11434. * data: [
  11435. * // ... provide data here
  11436. * ]
  11437. * })
  11438. * Note, that providing `undefined` is treated as the value not being there.
  11439. * Read more here: https://pris.ly/d/null-undefined
  11440. *
  11441. */
  11442. updateManyAndReturn<T extends VerificationTokenUpdateManyAndReturnArgs>(args: SelectSubset<T, VerificationTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  11443. /**
  11444. * Create or update one VerificationToken.
  11445. * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
  11446. * @example
  11447. * // Update or create a VerificationToken
  11448. * const verificationToken = await prisma.verificationToken.upsert({
  11449. * create: {
  11450. * // ... data to create a VerificationToken
  11451. * },
  11452. * update: {
  11453. * // ... in case it already exists, update
  11454. * },
  11455. * where: {
  11456. * // ... the filter for the VerificationToken we want to update
  11457. * }
  11458. * })
  11459. */
  11460. upsert<T extends VerificationTokenUpsertArgs>(args: SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11461. /**
  11462. * Count the number of VerificationTokens.
  11463. * Note, that providing `undefined` is treated as the value not being there.
  11464. * Read more here: https://pris.ly/d/null-undefined
  11465. * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
  11466. * @example
  11467. * // Count the number of VerificationTokens
  11468. * const count = await prisma.verificationToken.count({
  11469. * where: {
  11470. * // ... the filter for the VerificationTokens we want to count
  11471. * }
  11472. * })
  11473. **/
  11474. count<T extends VerificationTokenCountArgs>(
  11475. args?: Subset<T, VerificationTokenCountArgs>,
  11476. ): Prisma.PrismaPromise<
  11477. T extends $Utils.Record<'select', any>
  11478. ? T['select'] extends true
  11479. ? number
  11480. : GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
  11481. : number
  11482. >
  11483. /**
  11484. * Allows you to perform aggregations operations on a VerificationToken.
  11485. * Note, that providing `undefined` is treated as the value not being there.
  11486. * Read more here: https://pris.ly/d/null-undefined
  11487. * @param {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  11488. * @example
  11489. * // Ordered by age ascending
  11490. * // Where email contains prisma.io
  11491. * // Limited to the 10 users
  11492. * const aggregations = await prisma.user.aggregate({
  11493. * _avg: {
  11494. * age: true,
  11495. * },
  11496. * where: {
  11497. * email: {
  11498. * contains: "prisma.io",
  11499. * },
  11500. * },
  11501. * orderBy: {
  11502. * age: "asc",
  11503. * },
  11504. * take: 10,
  11505. * })
  11506. **/
  11507. aggregate<T extends VerificationTokenAggregateArgs>(args: Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
  11508. /**
  11509. * Group by VerificationToken.
  11510. * Note, that providing `undefined` is treated as the value not being there.
  11511. * Read more here: https://pris.ly/d/null-undefined
  11512. * @param {VerificationTokenGroupByArgs} args - Group by arguments.
  11513. * @example
  11514. * // Group by city, order by createdAt, get count
  11515. * const result = await prisma.user.groupBy({
  11516. * by: ['city', 'createdAt'],
  11517. * orderBy: {
  11518. * createdAt: true
  11519. * },
  11520. * _count: {
  11521. * _all: true
  11522. * },
  11523. * })
  11524. *
  11525. **/
  11526. groupBy<
  11527. T extends VerificationTokenGroupByArgs,
  11528. HasSelectOrTake extends Or<
  11529. Extends<'skip', Keys<T>>,
  11530. Extends<'take', Keys<T>>
  11531. >,
  11532. OrderByArg extends True extends HasSelectOrTake
  11533. ? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
  11534. : { orderBy?: VerificationTokenGroupByArgs['orderBy'] },
  11535. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  11536. ByFields extends MaybeTupleToUnion<T['by']>,
  11537. ByValid extends Has<ByFields, OrderFields>,
  11538. HavingFields extends GetHavingFields<T['having']>,
  11539. HavingValid extends Has<ByFields, HavingFields>,
  11540. ByEmpty extends T['by'] extends never[] ? True : False,
  11541. InputErrors extends ByEmpty extends True
  11542. ? `Error: "by" must not be empty.`
  11543. : HavingValid extends False
  11544. ? {
  11545. [P in HavingFields]: P extends ByFields
  11546. ? never
  11547. : P extends string
  11548. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  11549. : [
  11550. Error,
  11551. 'Field ',
  11552. P,
  11553. ` in "having" needs to be provided in "by"`,
  11554. ]
  11555. }[HavingFields]
  11556. : 'take' extends Keys<T>
  11557. ? 'orderBy' extends Keys<T>
  11558. ? ByValid extends True
  11559. ? {}
  11560. : {
  11561. [P in OrderFields]: P extends ByFields
  11562. ? never
  11563. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11564. }[OrderFields]
  11565. : 'Error: If you provide "take", you also need to provide "orderBy"'
  11566. : 'skip' extends Keys<T>
  11567. ? 'orderBy' extends Keys<T>
  11568. ? ByValid extends True
  11569. ? {}
  11570. : {
  11571. [P in OrderFields]: P extends ByFields
  11572. ? never
  11573. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11574. }[OrderFields]
  11575. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  11576. : ByValid extends True
  11577. ? {}
  11578. : {
  11579. [P in OrderFields]: P extends ByFields
  11580. ? never
  11581. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11582. }[OrderFields]
  11583. >(args: SubsetIntersection<T, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  11584. /**
  11585. * Fields of the VerificationToken model
  11586. */
  11587. readonly fields: VerificationTokenFieldRefs;
  11588. }
  11589. /**
  11590. * The delegate class that acts as a "Promise-like" for VerificationToken.
  11591. * Why is this prefixed with `Prisma__`?
  11592. * Because we want to prevent naming conflicts as mentioned in
  11593. * https://github.com/prisma/prisma-client-js/issues/707
  11594. */
  11595. export interface Prisma__VerificationTokenClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  11596. readonly [Symbol.toStringTag]: "PrismaPromise"
  11597. /**
  11598. * Attaches callbacks for the resolution and/or rejection of the Promise.
  11599. * @param onfulfilled The callback to execute when the Promise is resolved.
  11600. * @param onrejected The callback to execute when the Promise is rejected.
  11601. * @returns A Promise for the completion of which ever callback is executed.
  11602. */
  11603. 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>
  11604. /**
  11605. * Attaches a callback for only the rejection of the Promise.
  11606. * @param onrejected The callback to execute when the Promise is rejected.
  11607. * @returns A Promise for the completion of the callback.
  11608. */
  11609. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  11610. /**
  11611. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  11612. * resolved value cannot be modified from the callback.
  11613. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  11614. * @returns A Promise for the completion of the callback.
  11615. */
  11616. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  11617. }
  11618. /**
  11619. * Fields of the VerificationToken model
  11620. */
  11621. interface VerificationTokenFieldRefs {
  11622. readonly identifier: FieldRef<"VerificationToken", 'String'>
  11623. readonly token: FieldRef<"VerificationToken", 'String'>
  11624. readonly expires: FieldRef<"VerificationToken", 'DateTime'>
  11625. }
  11626. // Custom InputTypes
  11627. /**
  11628. * VerificationToken findUnique
  11629. */
  11630. export type VerificationTokenFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11631. /**
  11632. * Select specific fields to fetch from the VerificationToken
  11633. */
  11634. select?: VerificationTokenSelect<ExtArgs> | null
  11635. /**
  11636. * Omit specific fields from the VerificationToken
  11637. */
  11638. omit?: VerificationTokenOmit<ExtArgs> | null
  11639. /**
  11640. * Filter, which VerificationToken to fetch.
  11641. */
  11642. where: VerificationTokenWhereUniqueInput
  11643. }
  11644. /**
  11645. * VerificationToken findUniqueOrThrow
  11646. */
  11647. export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11648. /**
  11649. * Select specific fields to fetch from the VerificationToken
  11650. */
  11651. select?: VerificationTokenSelect<ExtArgs> | null
  11652. /**
  11653. * Omit specific fields from the VerificationToken
  11654. */
  11655. omit?: VerificationTokenOmit<ExtArgs> | null
  11656. /**
  11657. * Filter, which VerificationToken to fetch.
  11658. */
  11659. where: VerificationTokenWhereUniqueInput
  11660. }
  11661. /**
  11662. * VerificationToken findFirst
  11663. */
  11664. export type VerificationTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11665. /**
  11666. * Select specific fields to fetch from the VerificationToken
  11667. */
  11668. select?: VerificationTokenSelect<ExtArgs> | null
  11669. /**
  11670. * Omit specific fields from the VerificationToken
  11671. */
  11672. omit?: VerificationTokenOmit<ExtArgs> | null
  11673. /**
  11674. * Filter, which VerificationToken to fetch.
  11675. */
  11676. where?: VerificationTokenWhereInput
  11677. /**
  11678. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11679. *
  11680. * Determine the order of VerificationTokens to fetch.
  11681. */
  11682. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11683. /**
  11684. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11685. *
  11686. * Sets the position for searching for VerificationTokens.
  11687. */
  11688. cursor?: VerificationTokenWhereUniqueInput
  11689. /**
  11690. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11691. *
  11692. * Take `±n` VerificationTokens from the position of the cursor.
  11693. */
  11694. take?: number
  11695. /**
  11696. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11697. *
  11698. * Skip the first `n` VerificationTokens.
  11699. */
  11700. skip?: number
  11701. /**
  11702. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11703. *
  11704. * Filter by unique combinations of VerificationTokens.
  11705. */
  11706. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11707. }
  11708. /**
  11709. * VerificationToken findFirstOrThrow
  11710. */
  11711. export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11712. /**
  11713. * Select specific fields to fetch from the VerificationToken
  11714. */
  11715. select?: VerificationTokenSelect<ExtArgs> | null
  11716. /**
  11717. * Omit specific fields from the VerificationToken
  11718. */
  11719. omit?: VerificationTokenOmit<ExtArgs> | null
  11720. /**
  11721. * Filter, which VerificationToken to fetch.
  11722. */
  11723. where?: VerificationTokenWhereInput
  11724. /**
  11725. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11726. *
  11727. * Determine the order of VerificationTokens to fetch.
  11728. */
  11729. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11730. /**
  11731. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11732. *
  11733. * Sets the position for searching for VerificationTokens.
  11734. */
  11735. cursor?: VerificationTokenWhereUniqueInput
  11736. /**
  11737. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11738. *
  11739. * Take `±n` VerificationTokens from the position of the cursor.
  11740. */
  11741. take?: number
  11742. /**
  11743. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11744. *
  11745. * Skip the first `n` VerificationTokens.
  11746. */
  11747. skip?: number
  11748. /**
  11749. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11750. *
  11751. * Filter by unique combinations of VerificationTokens.
  11752. */
  11753. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11754. }
  11755. /**
  11756. * VerificationToken findMany
  11757. */
  11758. export type VerificationTokenFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11759. /**
  11760. * Select specific fields to fetch from the VerificationToken
  11761. */
  11762. select?: VerificationTokenSelect<ExtArgs> | null
  11763. /**
  11764. * Omit specific fields from the VerificationToken
  11765. */
  11766. omit?: VerificationTokenOmit<ExtArgs> | null
  11767. /**
  11768. * Filter, which VerificationTokens to fetch.
  11769. */
  11770. where?: VerificationTokenWhereInput
  11771. /**
  11772. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11773. *
  11774. * Determine the order of VerificationTokens to fetch.
  11775. */
  11776. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11777. /**
  11778. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11779. *
  11780. * Sets the position for listing VerificationTokens.
  11781. */
  11782. cursor?: VerificationTokenWhereUniqueInput
  11783. /**
  11784. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11785. *
  11786. * Take `±n` VerificationTokens from the position of the cursor.
  11787. */
  11788. take?: number
  11789. /**
  11790. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11791. *
  11792. * Skip the first `n` VerificationTokens.
  11793. */
  11794. skip?: number
  11795. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11796. }
  11797. /**
  11798. * VerificationToken create
  11799. */
  11800. export type VerificationTokenCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11801. /**
  11802. * Select specific fields to fetch from the VerificationToken
  11803. */
  11804. select?: VerificationTokenSelect<ExtArgs> | null
  11805. /**
  11806. * Omit specific fields from the VerificationToken
  11807. */
  11808. omit?: VerificationTokenOmit<ExtArgs> | null
  11809. /**
  11810. * The data needed to create a VerificationToken.
  11811. */
  11812. data: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  11813. }
  11814. /**
  11815. * VerificationToken createMany
  11816. */
  11817. export type VerificationTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11818. /**
  11819. * The data used to create many VerificationTokens.
  11820. */
  11821. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  11822. skipDuplicates?: boolean
  11823. }
  11824. /**
  11825. * VerificationToken createManyAndReturn
  11826. */
  11827. export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11828. /**
  11829. * Select specific fields to fetch from the VerificationToken
  11830. */
  11831. select?: VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null
  11832. /**
  11833. * Omit specific fields from the VerificationToken
  11834. */
  11835. omit?: VerificationTokenOmit<ExtArgs> | null
  11836. /**
  11837. * The data used to create many VerificationTokens.
  11838. */
  11839. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  11840. skipDuplicates?: boolean
  11841. }
  11842. /**
  11843. * VerificationToken update
  11844. */
  11845. export type VerificationTokenUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11846. /**
  11847. * Select specific fields to fetch from the VerificationToken
  11848. */
  11849. select?: VerificationTokenSelect<ExtArgs> | null
  11850. /**
  11851. * Omit specific fields from the VerificationToken
  11852. */
  11853. omit?: VerificationTokenOmit<ExtArgs> | null
  11854. /**
  11855. * The data needed to update a VerificationToken.
  11856. */
  11857. data: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  11858. /**
  11859. * Choose, which VerificationToken to update.
  11860. */
  11861. where: VerificationTokenWhereUniqueInput
  11862. }
  11863. /**
  11864. * VerificationToken updateMany
  11865. */
  11866. export type VerificationTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11867. /**
  11868. * The data used to update VerificationTokens.
  11869. */
  11870. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  11871. /**
  11872. * Filter which VerificationTokens to update
  11873. */
  11874. where?: VerificationTokenWhereInput
  11875. /**
  11876. * Limit how many VerificationTokens to update.
  11877. */
  11878. limit?: number
  11879. }
  11880. /**
  11881. * VerificationToken updateManyAndReturn
  11882. */
  11883. export type VerificationTokenUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11884. /**
  11885. * Select specific fields to fetch from the VerificationToken
  11886. */
  11887. select?: VerificationTokenSelectUpdateManyAndReturn<ExtArgs> | null
  11888. /**
  11889. * Omit specific fields from the VerificationToken
  11890. */
  11891. omit?: VerificationTokenOmit<ExtArgs> | null
  11892. /**
  11893. * The data used to update VerificationTokens.
  11894. */
  11895. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  11896. /**
  11897. * Filter which VerificationTokens to update
  11898. */
  11899. where?: VerificationTokenWhereInput
  11900. /**
  11901. * Limit how many VerificationTokens to update.
  11902. */
  11903. limit?: number
  11904. }
  11905. /**
  11906. * VerificationToken upsert
  11907. */
  11908. export type VerificationTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11909. /**
  11910. * Select specific fields to fetch from the VerificationToken
  11911. */
  11912. select?: VerificationTokenSelect<ExtArgs> | null
  11913. /**
  11914. * Omit specific fields from the VerificationToken
  11915. */
  11916. omit?: VerificationTokenOmit<ExtArgs> | null
  11917. /**
  11918. * The filter to search for the VerificationToken to update in case it exists.
  11919. */
  11920. where: VerificationTokenWhereUniqueInput
  11921. /**
  11922. * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
  11923. */
  11924. create: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  11925. /**
  11926. * In case the VerificationToken was found with the provided `where` argument, update it with this data.
  11927. */
  11928. update: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  11929. }
  11930. /**
  11931. * VerificationToken delete
  11932. */
  11933. export type VerificationTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11934. /**
  11935. * Select specific fields to fetch from the VerificationToken
  11936. */
  11937. select?: VerificationTokenSelect<ExtArgs> | null
  11938. /**
  11939. * Omit specific fields from the VerificationToken
  11940. */
  11941. omit?: VerificationTokenOmit<ExtArgs> | null
  11942. /**
  11943. * Filter which VerificationToken to delete.
  11944. */
  11945. where: VerificationTokenWhereUniqueInput
  11946. }
  11947. /**
  11948. * VerificationToken deleteMany
  11949. */
  11950. export type VerificationTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11951. /**
  11952. * Filter which VerificationTokens to delete
  11953. */
  11954. where?: VerificationTokenWhereInput
  11955. /**
  11956. * Limit how many VerificationTokens to delete.
  11957. */
  11958. limit?: number
  11959. }
  11960. /**
  11961. * VerificationToken without action
  11962. */
  11963. export type VerificationTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11964. /**
  11965. * Select specific fields to fetch from the VerificationToken
  11966. */
  11967. select?: VerificationTokenSelect<ExtArgs> | null
  11968. /**
  11969. * Omit specific fields from the VerificationToken
  11970. */
  11971. omit?: VerificationTokenOmit<ExtArgs> | null
  11972. }
  11973. /**
  11974. * Model IdeaAttachment
  11975. */
  11976. export type AggregateIdeaAttachment = {
  11977. _count: IdeaAttachmentCountAggregateOutputType | null
  11978. _avg: IdeaAttachmentAvgAggregateOutputType | null
  11979. _sum: IdeaAttachmentSumAggregateOutputType | null
  11980. _min: IdeaAttachmentMinAggregateOutputType | null
  11981. _max: IdeaAttachmentMaxAggregateOutputType | null
  11982. }
  11983. export type IdeaAttachmentAvgAggregateOutputType = {
  11984. size: number | null
  11985. }
  11986. export type IdeaAttachmentSumAggregateOutputType = {
  11987. size: number | null
  11988. }
  11989. export type IdeaAttachmentMinAggregateOutputType = {
  11990. id: string | null
  11991. ideaId: string | null
  11992. workspaceId: string | null
  11993. filename: string | null
  11994. contentType: string | null
  11995. size: number | null
  11996. url: string | null
  11997. blobPath: string | null
  11998. createdAt: Date | null
  11999. }
  12000. export type IdeaAttachmentMaxAggregateOutputType = {
  12001. id: string | null
  12002. ideaId: string | null
  12003. workspaceId: string | null
  12004. filename: string | null
  12005. contentType: string | null
  12006. size: number | null
  12007. url: string | null
  12008. blobPath: string | null
  12009. createdAt: Date | null
  12010. }
  12011. export type IdeaAttachmentCountAggregateOutputType = {
  12012. id: number
  12013. ideaId: number
  12014. workspaceId: number
  12015. filename: number
  12016. contentType: number
  12017. size: number
  12018. url: number
  12019. blobPath: number
  12020. createdAt: number
  12021. _all: number
  12022. }
  12023. export type IdeaAttachmentAvgAggregateInputType = {
  12024. size?: true
  12025. }
  12026. export type IdeaAttachmentSumAggregateInputType = {
  12027. size?: true
  12028. }
  12029. export type IdeaAttachmentMinAggregateInputType = {
  12030. id?: true
  12031. ideaId?: true
  12032. workspaceId?: true
  12033. filename?: true
  12034. contentType?: true
  12035. size?: true
  12036. url?: true
  12037. blobPath?: true
  12038. createdAt?: true
  12039. }
  12040. export type IdeaAttachmentMaxAggregateInputType = {
  12041. id?: true
  12042. ideaId?: true
  12043. workspaceId?: true
  12044. filename?: true
  12045. contentType?: true
  12046. size?: true
  12047. url?: true
  12048. blobPath?: true
  12049. createdAt?: true
  12050. }
  12051. export type IdeaAttachmentCountAggregateInputType = {
  12052. id?: true
  12053. ideaId?: true
  12054. workspaceId?: true
  12055. filename?: true
  12056. contentType?: true
  12057. size?: true
  12058. url?: true
  12059. blobPath?: true
  12060. createdAt?: true
  12061. _all?: true
  12062. }
  12063. export type IdeaAttachmentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12064. /**
  12065. * Filter which IdeaAttachment to aggregate.
  12066. */
  12067. where?: IdeaAttachmentWhereInput
  12068. /**
  12069. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12070. *
  12071. * Determine the order of IdeaAttachments to fetch.
  12072. */
  12073. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12074. /**
  12075. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12076. *
  12077. * Sets the start position
  12078. */
  12079. cursor?: IdeaAttachmentWhereUniqueInput
  12080. /**
  12081. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12082. *
  12083. * Take `±n` IdeaAttachments from the position of the cursor.
  12084. */
  12085. take?: number
  12086. /**
  12087. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12088. *
  12089. * Skip the first `n` IdeaAttachments.
  12090. */
  12091. skip?: number
  12092. /**
  12093. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12094. *
  12095. * Count returned IdeaAttachments
  12096. **/
  12097. _count?: true | IdeaAttachmentCountAggregateInputType
  12098. /**
  12099. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12100. *
  12101. * Select which fields to average
  12102. **/
  12103. _avg?: IdeaAttachmentAvgAggregateInputType
  12104. /**
  12105. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12106. *
  12107. * Select which fields to sum
  12108. **/
  12109. _sum?: IdeaAttachmentSumAggregateInputType
  12110. /**
  12111. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12112. *
  12113. * Select which fields to find the minimum value
  12114. **/
  12115. _min?: IdeaAttachmentMinAggregateInputType
  12116. /**
  12117. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12118. *
  12119. * Select which fields to find the maximum value
  12120. **/
  12121. _max?: IdeaAttachmentMaxAggregateInputType
  12122. }
  12123. export type GetIdeaAttachmentAggregateType<T extends IdeaAttachmentAggregateArgs> = {
  12124. [P in keyof T & keyof AggregateIdeaAttachment]: P extends '_count' | 'count'
  12125. ? T[P] extends true
  12126. ? number
  12127. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12128. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12129. }
  12130. export type IdeaAttachmentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12131. where?: IdeaAttachmentWhereInput
  12132. orderBy?: IdeaAttachmentOrderByWithAggregationInput | IdeaAttachmentOrderByWithAggregationInput[]
  12133. by: IdeaAttachmentScalarFieldEnum[] | IdeaAttachmentScalarFieldEnum
  12134. having?: IdeaAttachmentScalarWhereWithAggregatesInput
  12135. take?: number
  12136. skip?: number
  12137. _count?: IdeaAttachmentCountAggregateInputType | true
  12138. _avg?: IdeaAttachmentAvgAggregateInputType
  12139. _sum?: IdeaAttachmentSumAggregateInputType
  12140. _min?: IdeaAttachmentMinAggregateInputType
  12141. _max?: IdeaAttachmentMaxAggregateInputType
  12142. }
  12143. export type IdeaAttachmentGroupByOutputType = {
  12144. id: string
  12145. ideaId: string
  12146. workspaceId: string
  12147. filename: string
  12148. contentType: string
  12149. size: number
  12150. url: string
  12151. blobPath: string
  12152. createdAt: Date
  12153. _count: IdeaAttachmentCountAggregateOutputType | null
  12154. _avg: IdeaAttachmentAvgAggregateOutputType | null
  12155. _sum: IdeaAttachmentSumAggregateOutputType | null
  12156. _min: IdeaAttachmentMinAggregateOutputType | null
  12157. _max: IdeaAttachmentMaxAggregateOutputType | null
  12158. }
  12159. type GetIdeaAttachmentGroupByPayload<T extends IdeaAttachmentGroupByArgs> = Prisma.PrismaPromise<
  12160. Array<
  12161. PickEnumerable<IdeaAttachmentGroupByOutputType, T['by']> &
  12162. {
  12163. [P in ((keyof T) & (keyof IdeaAttachmentGroupByOutputType))]: P extends '_count'
  12164. ? T[P] extends boolean
  12165. ? number
  12166. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12167. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12168. }
  12169. >
  12170. >
  12171. export type IdeaAttachmentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12172. id?: boolean
  12173. ideaId?: boolean
  12174. workspaceId?: boolean
  12175. filename?: boolean
  12176. contentType?: boolean
  12177. size?: boolean
  12178. url?: boolean
  12179. blobPath?: boolean
  12180. createdAt?: boolean
  12181. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12182. }, ExtArgs["result"]["ideaAttachment"]>
  12183. export type IdeaAttachmentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12184. id?: boolean
  12185. ideaId?: boolean
  12186. workspaceId?: boolean
  12187. filename?: boolean
  12188. contentType?: boolean
  12189. size?: boolean
  12190. url?: boolean
  12191. blobPath?: boolean
  12192. createdAt?: boolean
  12193. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12194. }, ExtArgs["result"]["ideaAttachment"]>
  12195. export type IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12196. id?: boolean
  12197. ideaId?: boolean
  12198. workspaceId?: boolean
  12199. filename?: boolean
  12200. contentType?: boolean
  12201. size?: boolean
  12202. url?: boolean
  12203. blobPath?: boolean
  12204. createdAt?: boolean
  12205. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12206. }, ExtArgs["result"]["ideaAttachment"]>
  12207. export type IdeaAttachmentSelectScalar = {
  12208. id?: boolean
  12209. ideaId?: boolean
  12210. workspaceId?: boolean
  12211. filename?: boolean
  12212. contentType?: boolean
  12213. size?: boolean
  12214. url?: boolean
  12215. blobPath?: boolean
  12216. createdAt?: boolean
  12217. }
  12218. export type IdeaAttachmentOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "filename" | "contentType" | "size" | "url" | "blobPath" | "createdAt", ExtArgs["result"]["ideaAttachment"]>
  12219. export type IdeaAttachmentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12220. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12221. }
  12222. export type IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12223. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12224. }
  12225. export type IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12226. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12227. }
  12228. export type $IdeaAttachmentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12229. name: "IdeaAttachment"
  12230. objects: {
  12231. idea: Prisma.$IdeaPayload<ExtArgs>
  12232. }
  12233. scalars: $Extensions.GetPayloadResult<{
  12234. id: string
  12235. ideaId: string
  12236. workspaceId: string
  12237. filename: string
  12238. contentType: string
  12239. size: number
  12240. url: string
  12241. blobPath: string
  12242. createdAt: Date
  12243. }, ExtArgs["result"]["ideaAttachment"]>
  12244. composites: {}
  12245. }
  12246. type IdeaAttachmentGetPayload<S extends boolean | null | undefined | IdeaAttachmentDefaultArgs> = $Result.GetResult<Prisma.$IdeaAttachmentPayload, S>
  12247. type IdeaAttachmentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  12248. Omit<IdeaAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  12249. select?: IdeaAttachmentCountAggregateInputType | true
  12250. }
  12251. export interface IdeaAttachmentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  12252. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['IdeaAttachment'], meta: { name: 'IdeaAttachment' } }
  12253. /**
  12254. * Find zero or one IdeaAttachment that matches the filter.
  12255. * @param {IdeaAttachmentFindUniqueArgs} args - Arguments to find a IdeaAttachment
  12256. * @example
  12257. * // Get one IdeaAttachment
  12258. * const ideaAttachment = await prisma.ideaAttachment.findUnique({
  12259. * where: {
  12260. * // ... provide filter here
  12261. * }
  12262. * })
  12263. */
  12264. findUnique<T extends IdeaAttachmentFindUniqueArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12265. /**
  12266. * Find one IdeaAttachment that matches the filter or throw an error with `error.code='P2025'`
  12267. * if no matches were found.
  12268. * @param {IdeaAttachmentFindUniqueOrThrowArgs} args - Arguments to find a IdeaAttachment
  12269. * @example
  12270. * // Get one IdeaAttachment
  12271. * const ideaAttachment = await prisma.ideaAttachment.findUniqueOrThrow({
  12272. * where: {
  12273. * // ... provide filter here
  12274. * }
  12275. * })
  12276. */
  12277. findUniqueOrThrow<T extends IdeaAttachmentFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12278. /**
  12279. * Find the first IdeaAttachment that matches the filter.
  12280. * Note, that providing `undefined` is treated as the value not being there.
  12281. * Read more here: https://pris.ly/d/null-undefined
  12282. * @param {IdeaAttachmentFindFirstArgs} args - Arguments to find a IdeaAttachment
  12283. * @example
  12284. * // Get one IdeaAttachment
  12285. * const ideaAttachment = await prisma.ideaAttachment.findFirst({
  12286. * where: {
  12287. * // ... provide filter here
  12288. * }
  12289. * })
  12290. */
  12291. findFirst<T extends IdeaAttachmentFindFirstArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12292. /**
  12293. * Find the first IdeaAttachment that matches the filter or
  12294. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  12295. * Note, that providing `undefined` is treated as the value not being there.
  12296. * Read more here: https://pris.ly/d/null-undefined
  12297. * @param {IdeaAttachmentFindFirstOrThrowArgs} args - Arguments to find a IdeaAttachment
  12298. * @example
  12299. * // Get one IdeaAttachment
  12300. * const ideaAttachment = await prisma.ideaAttachment.findFirstOrThrow({
  12301. * where: {
  12302. * // ... provide filter here
  12303. * }
  12304. * })
  12305. */
  12306. findFirstOrThrow<T extends IdeaAttachmentFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12307. /**
  12308. * Find zero or more IdeaAttachments that matches the filter.
  12309. * Note, that providing `undefined` is treated as the value not being there.
  12310. * Read more here: https://pris.ly/d/null-undefined
  12311. * @param {IdeaAttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
  12312. * @example
  12313. * // Get all IdeaAttachments
  12314. * const ideaAttachments = await prisma.ideaAttachment.findMany()
  12315. *
  12316. * // Get first 10 IdeaAttachments
  12317. * const ideaAttachments = await prisma.ideaAttachment.findMany({ take: 10 })
  12318. *
  12319. * // Only select the `id`
  12320. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.findMany({ select: { id: true } })
  12321. *
  12322. */
  12323. findMany<T extends IdeaAttachmentFindManyArgs>(args?: SelectSubset<T, IdeaAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  12324. /**
  12325. * Create a IdeaAttachment.
  12326. * @param {IdeaAttachmentCreateArgs} args - Arguments to create a IdeaAttachment.
  12327. * @example
  12328. * // Create one IdeaAttachment
  12329. * const IdeaAttachment = await prisma.ideaAttachment.create({
  12330. * data: {
  12331. * // ... data to create a IdeaAttachment
  12332. * }
  12333. * })
  12334. *
  12335. */
  12336. create<T extends IdeaAttachmentCreateArgs>(args: SelectSubset<T, IdeaAttachmentCreateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12337. /**
  12338. * Create many IdeaAttachments.
  12339. * @param {IdeaAttachmentCreateManyArgs} args - Arguments to create many IdeaAttachments.
  12340. * @example
  12341. * // Create many IdeaAttachments
  12342. * const ideaAttachment = await prisma.ideaAttachment.createMany({
  12343. * data: [
  12344. * // ... provide data here
  12345. * ]
  12346. * })
  12347. *
  12348. */
  12349. createMany<T extends IdeaAttachmentCreateManyArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12350. /**
  12351. * Create many IdeaAttachments and returns the data saved in the database.
  12352. * @param {IdeaAttachmentCreateManyAndReturnArgs} args - Arguments to create many IdeaAttachments.
  12353. * @example
  12354. * // Create many IdeaAttachments
  12355. * const ideaAttachment = await prisma.ideaAttachment.createManyAndReturn({
  12356. * data: [
  12357. * // ... provide data here
  12358. * ]
  12359. * })
  12360. *
  12361. * // Create many IdeaAttachments and only return the `id`
  12362. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.createManyAndReturn({
  12363. * select: { id: true },
  12364. * data: [
  12365. * // ... provide data here
  12366. * ]
  12367. * })
  12368. * Note, that providing `undefined` is treated as the value not being there.
  12369. * Read more here: https://pris.ly/d/null-undefined
  12370. *
  12371. */
  12372. createManyAndReturn<T extends IdeaAttachmentCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  12373. /**
  12374. * Delete a IdeaAttachment.
  12375. * @param {IdeaAttachmentDeleteArgs} args - Arguments to delete one IdeaAttachment.
  12376. * @example
  12377. * // Delete one IdeaAttachment
  12378. * const IdeaAttachment = await prisma.ideaAttachment.delete({
  12379. * where: {
  12380. * // ... filter to delete one IdeaAttachment
  12381. * }
  12382. * })
  12383. *
  12384. */
  12385. delete<T extends IdeaAttachmentDeleteArgs>(args: SelectSubset<T, IdeaAttachmentDeleteArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12386. /**
  12387. * Update one IdeaAttachment.
  12388. * @param {IdeaAttachmentUpdateArgs} args - Arguments to update one IdeaAttachment.
  12389. * @example
  12390. * // Update one IdeaAttachment
  12391. * const ideaAttachment = await prisma.ideaAttachment.update({
  12392. * where: {
  12393. * // ... provide filter here
  12394. * },
  12395. * data: {
  12396. * // ... provide data here
  12397. * }
  12398. * })
  12399. *
  12400. */
  12401. update<T extends IdeaAttachmentUpdateArgs>(args: SelectSubset<T, IdeaAttachmentUpdateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12402. /**
  12403. * Delete zero or more IdeaAttachments.
  12404. * @param {IdeaAttachmentDeleteManyArgs} args - Arguments to filter IdeaAttachments to delete.
  12405. * @example
  12406. * // Delete a few IdeaAttachments
  12407. * const { count } = await prisma.ideaAttachment.deleteMany({
  12408. * where: {
  12409. * // ... provide filter here
  12410. * }
  12411. * })
  12412. *
  12413. */
  12414. deleteMany<T extends IdeaAttachmentDeleteManyArgs>(args?: SelectSubset<T, IdeaAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12415. /**
  12416. * Update zero or more IdeaAttachments.
  12417. * Note, that providing `undefined` is treated as the value not being there.
  12418. * Read more here: https://pris.ly/d/null-undefined
  12419. * @param {IdeaAttachmentUpdateManyArgs} args - Arguments to update one or more rows.
  12420. * @example
  12421. * // Update many IdeaAttachments
  12422. * const ideaAttachment = await prisma.ideaAttachment.updateMany({
  12423. * where: {
  12424. * // ... provide filter here
  12425. * },
  12426. * data: {
  12427. * // ... provide data here
  12428. * }
  12429. * })
  12430. *
  12431. */
  12432. updateMany<T extends IdeaAttachmentUpdateManyArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12433. /**
  12434. * Update zero or more IdeaAttachments and returns the data updated in the database.
  12435. * @param {IdeaAttachmentUpdateManyAndReturnArgs} args - Arguments to update many IdeaAttachments.
  12436. * @example
  12437. * // Update many IdeaAttachments
  12438. * const ideaAttachment = await prisma.ideaAttachment.updateManyAndReturn({
  12439. * where: {
  12440. * // ... provide filter here
  12441. * },
  12442. * data: [
  12443. * // ... provide data here
  12444. * ]
  12445. * })
  12446. *
  12447. * // Update zero or more IdeaAttachments and only return the `id`
  12448. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.updateManyAndReturn({
  12449. * select: { id: true },
  12450. * where: {
  12451. * // ... provide filter here
  12452. * },
  12453. * data: [
  12454. * // ... provide data here
  12455. * ]
  12456. * })
  12457. * Note, that providing `undefined` is treated as the value not being there.
  12458. * Read more here: https://pris.ly/d/null-undefined
  12459. *
  12460. */
  12461. updateManyAndReturn<T extends IdeaAttachmentUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  12462. /**
  12463. * Create or update one IdeaAttachment.
  12464. * @param {IdeaAttachmentUpsertArgs} args - Arguments to update or create a IdeaAttachment.
  12465. * @example
  12466. * // Update or create a IdeaAttachment
  12467. * const ideaAttachment = await prisma.ideaAttachment.upsert({
  12468. * create: {
  12469. * // ... data to create a IdeaAttachment
  12470. * },
  12471. * update: {
  12472. * // ... in case it already exists, update
  12473. * },
  12474. * where: {
  12475. * // ... the filter for the IdeaAttachment we want to update
  12476. * }
  12477. * })
  12478. */
  12479. upsert<T extends IdeaAttachmentUpsertArgs>(args: SelectSubset<T, IdeaAttachmentUpsertArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12480. /**
  12481. * Count the number of IdeaAttachments.
  12482. * Note, that providing `undefined` is treated as the value not being there.
  12483. * Read more here: https://pris.ly/d/null-undefined
  12484. * @param {IdeaAttachmentCountArgs} args - Arguments to filter IdeaAttachments to count.
  12485. * @example
  12486. * // Count the number of IdeaAttachments
  12487. * const count = await prisma.ideaAttachment.count({
  12488. * where: {
  12489. * // ... the filter for the IdeaAttachments we want to count
  12490. * }
  12491. * })
  12492. **/
  12493. count<T extends IdeaAttachmentCountArgs>(
  12494. args?: Subset<T, IdeaAttachmentCountArgs>,
  12495. ): Prisma.PrismaPromise<
  12496. T extends $Utils.Record<'select', any>
  12497. ? T['select'] extends true
  12498. ? number
  12499. : GetScalarType<T['select'], IdeaAttachmentCountAggregateOutputType>
  12500. : number
  12501. >
  12502. /**
  12503. * Allows you to perform aggregations operations on a IdeaAttachment.
  12504. * Note, that providing `undefined` is treated as the value not being there.
  12505. * Read more here: https://pris.ly/d/null-undefined
  12506. * @param {IdeaAttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  12507. * @example
  12508. * // Ordered by age ascending
  12509. * // Where email contains prisma.io
  12510. * // Limited to the 10 users
  12511. * const aggregations = await prisma.user.aggregate({
  12512. * _avg: {
  12513. * age: true,
  12514. * },
  12515. * where: {
  12516. * email: {
  12517. * contains: "prisma.io",
  12518. * },
  12519. * },
  12520. * orderBy: {
  12521. * age: "asc",
  12522. * },
  12523. * take: 10,
  12524. * })
  12525. **/
  12526. aggregate<T extends IdeaAttachmentAggregateArgs>(args: Subset<T, IdeaAttachmentAggregateArgs>): Prisma.PrismaPromise<GetIdeaAttachmentAggregateType<T>>
  12527. /**
  12528. * Group by IdeaAttachment.
  12529. * Note, that providing `undefined` is treated as the value not being there.
  12530. * Read more here: https://pris.ly/d/null-undefined
  12531. * @param {IdeaAttachmentGroupByArgs} args - Group by arguments.
  12532. * @example
  12533. * // Group by city, order by createdAt, get count
  12534. * const result = await prisma.user.groupBy({
  12535. * by: ['city', 'createdAt'],
  12536. * orderBy: {
  12537. * createdAt: true
  12538. * },
  12539. * _count: {
  12540. * _all: true
  12541. * },
  12542. * })
  12543. *
  12544. **/
  12545. groupBy<
  12546. T extends IdeaAttachmentGroupByArgs,
  12547. HasSelectOrTake extends Or<
  12548. Extends<'skip', Keys<T>>,
  12549. Extends<'take', Keys<T>>
  12550. >,
  12551. OrderByArg extends True extends HasSelectOrTake
  12552. ? { orderBy: IdeaAttachmentGroupByArgs['orderBy'] }
  12553. : { orderBy?: IdeaAttachmentGroupByArgs['orderBy'] },
  12554. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  12555. ByFields extends MaybeTupleToUnion<T['by']>,
  12556. ByValid extends Has<ByFields, OrderFields>,
  12557. HavingFields extends GetHavingFields<T['having']>,
  12558. HavingValid extends Has<ByFields, HavingFields>,
  12559. ByEmpty extends T['by'] extends never[] ? True : False,
  12560. InputErrors extends ByEmpty extends True
  12561. ? `Error: "by" must not be empty.`
  12562. : HavingValid extends False
  12563. ? {
  12564. [P in HavingFields]: P extends ByFields
  12565. ? never
  12566. : P extends string
  12567. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  12568. : [
  12569. Error,
  12570. 'Field ',
  12571. P,
  12572. ` in "having" needs to be provided in "by"`,
  12573. ]
  12574. }[HavingFields]
  12575. : 'take' extends Keys<T>
  12576. ? 'orderBy' extends Keys<T>
  12577. ? ByValid extends True
  12578. ? {}
  12579. : {
  12580. [P in OrderFields]: P extends ByFields
  12581. ? never
  12582. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12583. }[OrderFields]
  12584. : 'Error: If you provide "take", you also need to provide "orderBy"'
  12585. : 'skip' extends Keys<T>
  12586. ? 'orderBy' extends Keys<T>
  12587. ? ByValid extends True
  12588. ? {}
  12589. : {
  12590. [P in OrderFields]: P extends ByFields
  12591. ? never
  12592. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12593. }[OrderFields]
  12594. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  12595. : ByValid extends True
  12596. ? {}
  12597. : {
  12598. [P in OrderFields]: P extends ByFields
  12599. ? never
  12600. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12601. }[OrderFields]
  12602. >(args: SubsetIntersection<T, IdeaAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  12603. /**
  12604. * Fields of the IdeaAttachment model
  12605. */
  12606. readonly fields: IdeaAttachmentFieldRefs;
  12607. }
  12608. /**
  12609. * The delegate class that acts as a "Promise-like" for IdeaAttachment.
  12610. * Why is this prefixed with `Prisma__`?
  12611. * Because we want to prevent naming conflicts as mentioned in
  12612. * https://github.com/prisma/prisma-client-js/issues/707
  12613. */
  12614. export interface Prisma__IdeaAttachmentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  12615. readonly [Symbol.toStringTag]: "PrismaPromise"
  12616. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  12617. /**
  12618. * Attaches callbacks for the resolution and/or rejection of the Promise.
  12619. * @param onfulfilled The callback to execute when the Promise is resolved.
  12620. * @param onrejected The callback to execute when the Promise is rejected.
  12621. * @returns A Promise for the completion of which ever callback is executed.
  12622. */
  12623. 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>
  12624. /**
  12625. * Attaches a callback for only the rejection of the Promise.
  12626. * @param onrejected The callback to execute when the Promise is rejected.
  12627. * @returns A Promise for the completion of the callback.
  12628. */
  12629. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  12630. /**
  12631. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  12632. * resolved value cannot be modified from the callback.
  12633. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  12634. * @returns A Promise for the completion of the callback.
  12635. */
  12636. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  12637. }
  12638. /**
  12639. * Fields of the IdeaAttachment model
  12640. */
  12641. interface IdeaAttachmentFieldRefs {
  12642. readonly id: FieldRef<"IdeaAttachment", 'String'>
  12643. readonly ideaId: FieldRef<"IdeaAttachment", 'String'>
  12644. readonly workspaceId: FieldRef<"IdeaAttachment", 'String'>
  12645. readonly filename: FieldRef<"IdeaAttachment", 'String'>
  12646. readonly contentType: FieldRef<"IdeaAttachment", 'String'>
  12647. readonly size: FieldRef<"IdeaAttachment", 'Int'>
  12648. readonly url: FieldRef<"IdeaAttachment", 'String'>
  12649. readonly blobPath: FieldRef<"IdeaAttachment", 'String'>
  12650. readonly createdAt: FieldRef<"IdeaAttachment", 'DateTime'>
  12651. }
  12652. // Custom InputTypes
  12653. /**
  12654. * IdeaAttachment findUnique
  12655. */
  12656. export type IdeaAttachmentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12657. /**
  12658. * Select specific fields to fetch from the IdeaAttachment
  12659. */
  12660. select?: IdeaAttachmentSelect<ExtArgs> | null
  12661. /**
  12662. * Omit specific fields from the IdeaAttachment
  12663. */
  12664. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12665. /**
  12666. * Choose, which related nodes to fetch as well
  12667. */
  12668. include?: IdeaAttachmentInclude<ExtArgs> | null
  12669. /**
  12670. * Filter, which IdeaAttachment to fetch.
  12671. */
  12672. where: IdeaAttachmentWhereUniqueInput
  12673. }
  12674. /**
  12675. * IdeaAttachment findUniqueOrThrow
  12676. */
  12677. export type IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12678. /**
  12679. * Select specific fields to fetch from the IdeaAttachment
  12680. */
  12681. select?: IdeaAttachmentSelect<ExtArgs> | null
  12682. /**
  12683. * Omit specific fields from the IdeaAttachment
  12684. */
  12685. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12686. /**
  12687. * Choose, which related nodes to fetch as well
  12688. */
  12689. include?: IdeaAttachmentInclude<ExtArgs> | null
  12690. /**
  12691. * Filter, which IdeaAttachment to fetch.
  12692. */
  12693. where: IdeaAttachmentWhereUniqueInput
  12694. }
  12695. /**
  12696. * IdeaAttachment findFirst
  12697. */
  12698. export type IdeaAttachmentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12699. /**
  12700. * Select specific fields to fetch from the IdeaAttachment
  12701. */
  12702. select?: IdeaAttachmentSelect<ExtArgs> | null
  12703. /**
  12704. * Omit specific fields from the IdeaAttachment
  12705. */
  12706. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12707. /**
  12708. * Choose, which related nodes to fetch as well
  12709. */
  12710. include?: IdeaAttachmentInclude<ExtArgs> | null
  12711. /**
  12712. * Filter, which IdeaAttachment to fetch.
  12713. */
  12714. where?: IdeaAttachmentWhereInput
  12715. /**
  12716. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12717. *
  12718. * Determine the order of IdeaAttachments to fetch.
  12719. */
  12720. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12721. /**
  12722. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12723. *
  12724. * Sets the position for searching for IdeaAttachments.
  12725. */
  12726. cursor?: IdeaAttachmentWhereUniqueInput
  12727. /**
  12728. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12729. *
  12730. * Take `±n` IdeaAttachments from the position of the cursor.
  12731. */
  12732. take?: number
  12733. /**
  12734. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12735. *
  12736. * Skip the first `n` IdeaAttachments.
  12737. */
  12738. skip?: number
  12739. /**
  12740. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12741. *
  12742. * Filter by unique combinations of IdeaAttachments.
  12743. */
  12744. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12745. }
  12746. /**
  12747. * IdeaAttachment findFirstOrThrow
  12748. */
  12749. export type IdeaAttachmentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12750. /**
  12751. * Select specific fields to fetch from the IdeaAttachment
  12752. */
  12753. select?: IdeaAttachmentSelect<ExtArgs> | null
  12754. /**
  12755. * Omit specific fields from the IdeaAttachment
  12756. */
  12757. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12758. /**
  12759. * Choose, which related nodes to fetch as well
  12760. */
  12761. include?: IdeaAttachmentInclude<ExtArgs> | null
  12762. /**
  12763. * Filter, which IdeaAttachment to fetch.
  12764. */
  12765. where?: IdeaAttachmentWhereInput
  12766. /**
  12767. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12768. *
  12769. * Determine the order of IdeaAttachments to fetch.
  12770. */
  12771. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12772. /**
  12773. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12774. *
  12775. * Sets the position for searching for IdeaAttachments.
  12776. */
  12777. cursor?: IdeaAttachmentWhereUniqueInput
  12778. /**
  12779. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12780. *
  12781. * Take `±n` IdeaAttachments from the position of the cursor.
  12782. */
  12783. take?: number
  12784. /**
  12785. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12786. *
  12787. * Skip the first `n` IdeaAttachments.
  12788. */
  12789. skip?: number
  12790. /**
  12791. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12792. *
  12793. * Filter by unique combinations of IdeaAttachments.
  12794. */
  12795. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12796. }
  12797. /**
  12798. * IdeaAttachment findMany
  12799. */
  12800. export type IdeaAttachmentFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12801. /**
  12802. * Select specific fields to fetch from the IdeaAttachment
  12803. */
  12804. select?: IdeaAttachmentSelect<ExtArgs> | null
  12805. /**
  12806. * Omit specific fields from the IdeaAttachment
  12807. */
  12808. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12809. /**
  12810. * Choose, which related nodes to fetch as well
  12811. */
  12812. include?: IdeaAttachmentInclude<ExtArgs> | null
  12813. /**
  12814. * Filter, which IdeaAttachments to fetch.
  12815. */
  12816. where?: IdeaAttachmentWhereInput
  12817. /**
  12818. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12819. *
  12820. * Determine the order of IdeaAttachments to fetch.
  12821. */
  12822. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12823. /**
  12824. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12825. *
  12826. * Sets the position for listing IdeaAttachments.
  12827. */
  12828. cursor?: IdeaAttachmentWhereUniqueInput
  12829. /**
  12830. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12831. *
  12832. * Take `±n` IdeaAttachments from the position of the cursor.
  12833. */
  12834. take?: number
  12835. /**
  12836. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12837. *
  12838. * Skip the first `n` IdeaAttachments.
  12839. */
  12840. skip?: number
  12841. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12842. }
  12843. /**
  12844. * IdeaAttachment create
  12845. */
  12846. export type IdeaAttachmentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12847. /**
  12848. * Select specific fields to fetch from the IdeaAttachment
  12849. */
  12850. select?: IdeaAttachmentSelect<ExtArgs> | null
  12851. /**
  12852. * Omit specific fields from the IdeaAttachment
  12853. */
  12854. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12855. /**
  12856. * Choose, which related nodes to fetch as well
  12857. */
  12858. include?: IdeaAttachmentInclude<ExtArgs> | null
  12859. /**
  12860. * The data needed to create a IdeaAttachment.
  12861. */
  12862. data: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  12863. }
  12864. /**
  12865. * IdeaAttachment createMany
  12866. */
  12867. export type IdeaAttachmentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12868. /**
  12869. * The data used to create many IdeaAttachments.
  12870. */
  12871. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  12872. skipDuplicates?: boolean
  12873. }
  12874. /**
  12875. * IdeaAttachment createManyAndReturn
  12876. */
  12877. export type IdeaAttachmentCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12878. /**
  12879. * Select specific fields to fetch from the IdeaAttachment
  12880. */
  12881. select?: IdeaAttachmentSelectCreateManyAndReturn<ExtArgs> | null
  12882. /**
  12883. * Omit specific fields from the IdeaAttachment
  12884. */
  12885. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12886. /**
  12887. * The data used to create many IdeaAttachments.
  12888. */
  12889. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  12890. skipDuplicates?: boolean
  12891. /**
  12892. * Choose, which related nodes to fetch as well
  12893. */
  12894. include?: IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs> | null
  12895. }
  12896. /**
  12897. * IdeaAttachment update
  12898. */
  12899. export type IdeaAttachmentUpdateArgs<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 data needed to update a IdeaAttachment.
  12914. */
  12915. data: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  12916. /**
  12917. * Choose, which IdeaAttachment to update.
  12918. */
  12919. where: IdeaAttachmentWhereUniqueInput
  12920. }
  12921. /**
  12922. * IdeaAttachment updateMany
  12923. */
  12924. export type IdeaAttachmentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12925. /**
  12926. * The data used to update IdeaAttachments.
  12927. */
  12928. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  12929. /**
  12930. * Filter which IdeaAttachments to update
  12931. */
  12932. where?: IdeaAttachmentWhereInput
  12933. /**
  12934. * Limit how many IdeaAttachments to update.
  12935. */
  12936. limit?: number
  12937. }
  12938. /**
  12939. * IdeaAttachment updateManyAndReturn
  12940. */
  12941. export type IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12942. /**
  12943. * Select specific fields to fetch from the IdeaAttachment
  12944. */
  12945. select?: IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
  12946. /**
  12947. * Omit specific fields from the IdeaAttachment
  12948. */
  12949. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12950. /**
  12951. * The data used to update IdeaAttachments.
  12952. */
  12953. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  12954. /**
  12955. * Filter which IdeaAttachments to update
  12956. */
  12957. where?: IdeaAttachmentWhereInput
  12958. /**
  12959. * Limit how many IdeaAttachments to update.
  12960. */
  12961. limit?: number
  12962. /**
  12963. * Choose, which related nodes to fetch as well
  12964. */
  12965. include?: IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
  12966. }
  12967. /**
  12968. * IdeaAttachment upsert
  12969. */
  12970. export type IdeaAttachmentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12971. /**
  12972. * Select specific fields to fetch from the IdeaAttachment
  12973. */
  12974. select?: IdeaAttachmentSelect<ExtArgs> | null
  12975. /**
  12976. * Omit specific fields from the IdeaAttachment
  12977. */
  12978. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12979. /**
  12980. * Choose, which related nodes to fetch as well
  12981. */
  12982. include?: IdeaAttachmentInclude<ExtArgs> | null
  12983. /**
  12984. * The filter to search for the IdeaAttachment to update in case it exists.
  12985. */
  12986. where: IdeaAttachmentWhereUniqueInput
  12987. /**
  12988. * In case the IdeaAttachment found by the `where` argument doesn't exist, create a new IdeaAttachment with this data.
  12989. */
  12990. create: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  12991. /**
  12992. * In case the IdeaAttachment was found with the provided `where` argument, update it with this data.
  12993. */
  12994. update: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  12995. }
  12996. /**
  12997. * IdeaAttachment delete
  12998. */
  12999. export type IdeaAttachmentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13000. /**
  13001. * Select specific fields to fetch from the IdeaAttachment
  13002. */
  13003. select?: IdeaAttachmentSelect<ExtArgs> | null
  13004. /**
  13005. * Omit specific fields from the IdeaAttachment
  13006. */
  13007. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13008. /**
  13009. * Choose, which related nodes to fetch as well
  13010. */
  13011. include?: IdeaAttachmentInclude<ExtArgs> | null
  13012. /**
  13013. * Filter which IdeaAttachment to delete.
  13014. */
  13015. where: IdeaAttachmentWhereUniqueInput
  13016. }
  13017. /**
  13018. * IdeaAttachment deleteMany
  13019. */
  13020. export type IdeaAttachmentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13021. /**
  13022. * Filter which IdeaAttachments to delete
  13023. */
  13024. where?: IdeaAttachmentWhereInput
  13025. /**
  13026. * Limit how many IdeaAttachments to delete.
  13027. */
  13028. limit?: number
  13029. }
  13030. /**
  13031. * IdeaAttachment without action
  13032. */
  13033. export type IdeaAttachmentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13034. /**
  13035. * Select specific fields to fetch from the IdeaAttachment
  13036. */
  13037. select?: IdeaAttachmentSelect<ExtArgs> | null
  13038. /**
  13039. * Omit specific fields from the IdeaAttachment
  13040. */
  13041. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13042. /**
  13043. * Choose, which related nodes to fetch as well
  13044. */
  13045. include?: IdeaAttachmentInclude<ExtArgs> | null
  13046. }
  13047. /**
  13048. * Model QualificationQuestion
  13049. */
  13050. export type AggregateQualificationQuestion = {
  13051. _count: QualificationQuestionCountAggregateOutputType | null
  13052. _min: QualificationQuestionMinAggregateOutputType | null
  13053. _max: QualificationQuestionMaxAggregateOutputType | null
  13054. }
  13055. export type QualificationQuestionMinAggregateOutputType = {
  13056. id: string | null
  13057. ideaId: string | null
  13058. workspaceId: string | null
  13059. questionText: string | null
  13060. responseToken: string | null
  13061. askedAt: Date | null
  13062. responseText: string | null
  13063. answeredAt: Date | null
  13064. }
  13065. export type QualificationQuestionMaxAggregateOutputType = {
  13066. id: string | null
  13067. ideaId: string | null
  13068. workspaceId: string | null
  13069. questionText: string | null
  13070. responseToken: string | null
  13071. askedAt: Date | null
  13072. responseText: string | null
  13073. answeredAt: Date | null
  13074. }
  13075. export type QualificationQuestionCountAggregateOutputType = {
  13076. id: number
  13077. ideaId: number
  13078. workspaceId: number
  13079. questionText: number
  13080. responseToken: number
  13081. askedAt: number
  13082. responseText: number
  13083. answeredAt: number
  13084. _all: number
  13085. }
  13086. export type QualificationQuestionMinAggregateInputType = {
  13087. id?: true
  13088. ideaId?: true
  13089. workspaceId?: true
  13090. questionText?: true
  13091. responseToken?: true
  13092. askedAt?: true
  13093. responseText?: true
  13094. answeredAt?: true
  13095. }
  13096. export type QualificationQuestionMaxAggregateInputType = {
  13097. id?: true
  13098. ideaId?: true
  13099. workspaceId?: true
  13100. questionText?: true
  13101. responseToken?: true
  13102. askedAt?: true
  13103. responseText?: true
  13104. answeredAt?: true
  13105. }
  13106. export type QualificationQuestionCountAggregateInputType = {
  13107. id?: true
  13108. ideaId?: true
  13109. workspaceId?: true
  13110. questionText?: true
  13111. responseToken?: true
  13112. askedAt?: true
  13113. responseText?: true
  13114. answeredAt?: true
  13115. _all?: true
  13116. }
  13117. export type QualificationQuestionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13118. /**
  13119. * Filter which QualificationQuestion to aggregate.
  13120. */
  13121. where?: QualificationQuestionWhereInput
  13122. /**
  13123. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13124. *
  13125. * Determine the order of QualificationQuestions to fetch.
  13126. */
  13127. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13128. /**
  13129. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13130. *
  13131. * Sets the start position
  13132. */
  13133. cursor?: QualificationQuestionWhereUniqueInput
  13134. /**
  13135. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13136. *
  13137. * Take `±n` QualificationQuestions from the position of the cursor.
  13138. */
  13139. take?: number
  13140. /**
  13141. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13142. *
  13143. * Skip the first `n` QualificationQuestions.
  13144. */
  13145. skip?: number
  13146. /**
  13147. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13148. *
  13149. * Count returned QualificationQuestions
  13150. **/
  13151. _count?: true | QualificationQuestionCountAggregateInputType
  13152. /**
  13153. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13154. *
  13155. * Select which fields to find the minimum value
  13156. **/
  13157. _min?: QualificationQuestionMinAggregateInputType
  13158. /**
  13159. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13160. *
  13161. * Select which fields to find the maximum value
  13162. **/
  13163. _max?: QualificationQuestionMaxAggregateInputType
  13164. }
  13165. export type GetQualificationQuestionAggregateType<T extends QualificationQuestionAggregateArgs> = {
  13166. [P in keyof T & keyof AggregateQualificationQuestion]: P extends '_count' | 'count'
  13167. ? T[P] extends true
  13168. ? number
  13169. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13170. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13171. }
  13172. export type QualificationQuestionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13173. where?: QualificationQuestionWhereInput
  13174. orderBy?: QualificationQuestionOrderByWithAggregationInput | QualificationQuestionOrderByWithAggregationInput[]
  13175. by: QualificationQuestionScalarFieldEnum[] | QualificationQuestionScalarFieldEnum
  13176. having?: QualificationQuestionScalarWhereWithAggregatesInput
  13177. take?: number
  13178. skip?: number
  13179. _count?: QualificationQuestionCountAggregateInputType | true
  13180. _min?: QualificationQuestionMinAggregateInputType
  13181. _max?: QualificationQuestionMaxAggregateInputType
  13182. }
  13183. export type QualificationQuestionGroupByOutputType = {
  13184. id: string
  13185. ideaId: string
  13186. workspaceId: string
  13187. questionText: string
  13188. responseToken: string
  13189. askedAt: Date
  13190. responseText: string | null
  13191. answeredAt: Date | null
  13192. _count: QualificationQuestionCountAggregateOutputType | null
  13193. _min: QualificationQuestionMinAggregateOutputType | null
  13194. _max: QualificationQuestionMaxAggregateOutputType | null
  13195. }
  13196. type GetQualificationQuestionGroupByPayload<T extends QualificationQuestionGroupByArgs> = Prisma.PrismaPromise<
  13197. Array<
  13198. PickEnumerable<QualificationQuestionGroupByOutputType, T['by']> &
  13199. {
  13200. [P in ((keyof T) & (keyof QualificationQuestionGroupByOutputType))]: P extends '_count'
  13201. ? T[P] extends boolean
  13202. ? number
  13203. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13204. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13205. }
  13206. >
  13207. >
  13208. export type QualificationQuestionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13209. id?: boolean
  13210. ideaId?: boolean
  13211. workspaceId?: boolean
  13212. questionText?: boolean
  13213. responseToken?: boolean
  13214. askedAt?: boolean
  13215. responseText?: boolean
  13216. answeredAt?: boolean
  13217. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13218. }, ExtArgs["result"]["qualificationQuestion"]>
  13219. export type QualificationQuestionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13220. id?: boolean
  13221. ideaId?: boolean
  13222. workspaceId?: boolean
  13223. questionText?: boolean
  13224. responseToken?: boolean
  13225. askedAt?: boolean
  13226. responseText?: boolean
  13227. answeredAt?: boolean
  13228. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13229. }, ExtArgs["result"]["qualificationQuestion"]>
  13230. export type QualificationQuestionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13231. id?: boolean
  13232. ideaId?: boolean
  13233. workspaceId?: boolean
  13234. questionText?: boolean
  13235. responseToken?: boolean
  13236. askedAt?: boolean
  13237. responseText?: boolean
  13238. answeredAt?: boolean
  13239. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13240. }, ExtArgs["result"]["qualificationQuestion"]>
  13241. export type QualificationQuestionSelectScalar = {
  13242. id?: boolean
  13243. ideaId?: boolean
  13244. workspaceId?: boolean
  13245. questionText?: boolean
  13246. responseToken?: boolean
  13247. askedAt?: boolean
  13248. responseText?: boolean
  13249. answeredAt?: boolean
  13250. }
  13251. export type QualificationQuestionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "questionText" | "responseToken" | "askedAt" | "responseText" | "answeredAt", ExtArgs["result"]["qualificationQuestion"]>
  13252. export type QualificationQuestionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13253. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13254. }
  13255. export type QualificationQuestionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13256. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13257. }
  13258. export type QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13259. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13260. }
  13261. export type $QualificationQuestionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13262. name: "QualificationQuestion"
  13263. objects: {
  13264. idea: Prisma.$IdeaPayload<ExtArgs>
  13265. }
  13266. scalars: $Extensions.GetPayloadResult<{
  13267. id: string
  13268. ideaId: string
  13269. workspaceId: string
  13270. questionText: string
  13271. responseToken: string
  13272. askedAt: Date
  13273. responseText: string | null
  13274. answeredAt: Date | null
  13275. }, ExtArgs["result"]["qualificationQuestion"]>
  13276. composites: {}
  13277. }
  13278. type QualificationQuestionGetPayload<S extends boolean | null | undefined | QualificationQuestionDefaultArgs> = $Result.GetResult<Prisma.$QualificationQuestionPayload, S>
  13279. type QualificationQuestionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  13280. Omit<QualificationQuestionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  13281. select?: QualificationQuestionCountAggregateInputType | true
  13282. }
  13283. export interface QualificationQuestionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  13284. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['QualificationQuestion'], meta: { name: 'QualificationQuestion' } }
  13285. /**
  13286. * Find zero or one QualificationQuestion that matches the filter.
  13287. * @param {QualificationQuestionFindUniqueArgs} args - Arguments to find a QualificationQuestion
  13288. * @example
  13289. * // Get one QualificationQuestion
  13290. * const qualificationQuestion = await prisma.qualificationQuestion.findUnique({
  13291. * where: {
  13292. * // ... provide filter here
  13293. * }
  13294. * })
  13295. */
  13296. findUnique<T extends QualificationQuestionFindUniqueArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13297. /**
  13298. * Find one QualificationQuestion that matches the filter or throw an error with `error.code='P2025'`
  13299. * if no matches were found.
  13300. * @param {QualificationQuestionFindUniqueOrThrowArgs} args - Arguments to find a QualificationQuestion
  13301. * @example
  13302. * // Get one QualificationQuestion
  13303. * const qualificationQuestion = await prisma.qualificationQuestion.findUniqueOrThrow({
  13304. * where: {
  13305. * // ... provide filter here
  13306. * }
  13307. * })
  13308. */
  13309. findUniqueOrThrow<T extends QualificationQuestionFindUniqueOrThrowArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13310. /**
  13311. * Find the first QualificationQuestion that matches the filter.
  13312. * Note, that providing `undefined` is treated as the value not being there.
  13313. * Read more here: https://pris.ly/d/null-undefined
  13314. * @param {QualificationQuestionFindFirstArgs} args - Arguments to find a QualificationQuestion
  13315. * @example
  13316. * // Get one QualificationQuestion
  13317. * const qualificationQuestion = await prisma.qualificationQuestion.findFirst({
  13318. * where: {
  13319. * // ... provide filter here
  13320. * }
  13321. * })
  13322. */
  13323. findFirst<T extends QualificationQuestionFindFirstArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13324. /**
  13325. * Find the first QualificationQuestion that matches the filter or
  13326. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  13327. * Note, that providing `undefined` is treated as the value not being there.
  13328. * Read more here: https://pris.ly/d/null-undefined
  13329. * @param {QualificationQuestionFindFirstOrThrowArgs} args - Arguments to find a QualificationQuestion
  13330. * @example
  13331. * // Get one QualificationQuestion
  13332. * const qualificationQuestion = await prisma.qualificationQuestion.findFirstOrThrow({
  13333. * where: {
  13334. * // ... provide filter here
  13335. * }
  13336. * })
  13337. */
  13338. findFirstOrThrow<T extends QualificationQuestionFindFirstOrThrowArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13339. /**
  13340. * Find zero or more QualificationQuestions that matches the filter.
  13341. * Note, that providing `undefined` is treated as the value not being there.
  13342. * Read more here: https://pris.ly/d/null-undefined
  13343. * @param {QualificationQuestionFindManyArgs} args - Arguments to filter and select certain fields only.
  13344. * @example
  13345. * // Get all QualificationQuestions
  13346. * const qualificationQuestions = await prisma.qualificationQuestion.findMany()
  13347. *
  13348. * // Get first 10 QualificationQuestions
  13349. * const qualificationQuestions = await prisma.qualificationQuestion.findMany({ take: 10 })
  13350. *
  13351. * // Only select the `id`
  13352. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.findMany({ select: { id: true } })
  13353. *
  13354. */
  13355. findMany<T extends QualificationQuestionFindManyArgs>(args?: SelectSubset<T, QualificationQuestionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  13356. /**
  13357. * Create a QualificationQuestion.
  13358. * @param {QualificationQuestionCreateArgs} args - Arguments to create a QualificationQuestion.
  13359. * @example
  13360. * // Create one QualificationQuestion
  13361. * const QualificationQuestion = await prisma.qualificationQuestion.create({
  13362. * data: {
  13363. * // ... data to create a QualificationQuestion
  13364. * }
  13365. * })
  13366. *
  13367. */
  13368. create<T extends QualificationQuestionCreateArgs>(args: SelectSubset<T, QualificationQuestionCreateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13369. /**
  13370. * Create many QualificationQuestions.
  13371. * @param {QualificationQuestionCreateManyArgs} args - Arguments to create many QualificationQuestions.
  13372. * @example
  13373. * // Create many QualificationQuestions
  13374. * const qualificationQuestion = await prisma.qualificationQuestion.createMany({
  13375. * data: [
  13376. * // ... provide data here
  13377. * ]
  13378. * })
  13379. *
  13380. */
  13381. createMany<T extends QualificationQuestionCreateManyArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13382. /**
  13383. * Create many QualificationQuestions and returns the data saved in the database.
  13384. * @param {QualificationQuestionCreateManyAndReturnArgs} args - Arguments to create many QualificationQuestions.
  13385. * @example
  13386. * // Create many QualificationQuestions
  13387. * const qualificationQuestion = await prisma.qualificationQuestion.createManyAndReturn({
  13388. * data: [
  13389. * // ... provide data here
  13390. * ]
  13391. * })
  13392. *
  13393. * // Create many QualificationQuestions and only return the `id`
  13394. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.createManyAndReturn({
  13395. * select: { id: true },
  13396. * data: [
  13397. * // ... provide data here
  13398. * ]
  13399. * })
  13400. * Note, that providing `undefined` is treated as the value not being there.
  13401. * Read more here: https://pris.ly/d/null-undefined
  13402. *
  13403. */
  13404. createManyAndReturn<T extends QualificationQuestionCreateManyAndReturnArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  13405. /**
  13406. * Delete a QualificationQuestion.
  13407. * @param {QualificationQuestionDeleteArgs} args - Arguments to delete one QualificationQuestion.
  13408. * @example
  13409. * // Delete one QualificationQuestion
  13410. * const QualificationQuestion = await prisma.qualificationQuestion.delete({
  13411. * where: {
  13412. * // ... filter to delete one QualificationQuestion
  13413. * }
  13414. * })
  13415. *
  13416. */
  13417. delete<T extends QualificationQuestionDeleteArgs>(args: SelectSubset<T, QualificationQuestionDeleteArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13418. /**
  13419. * Update one QualificationQuestion.
  13420. * @param {QualificationQuestionUpdateArgs} args - Arguments to update one QualificationQuestion.
  13421. * @example
  13422. * // Update one QualificationQuestion
  13423. * const qualificationQuestion = await prisma.qualificationQuestion.update({
  13424. * where: {
  13425. * // ... provide filter here
  13426. * },
  13427. * data: {
  13428. * // ... provide data here
  13429. * }
  13430. * })
  13431. *
  13432. */
  13433. update<T extends QualificationQuestionUpdateArgs>(args: SelectSubset<T, QualificationQuestionUpdateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13434. /**
  13435. * Delete zero or more QualificationQuestions.
  13436. * @param {QualificationQuestionDeleteManyArgs} args - Arguments to filter QualificationQuestions to delete.
  13437. * @example
  13438. * // Delete a few QualificationQuestions
  13439. * const { count } = await prisma.qualificationQuestion.deleteMany({
  13440. * where: {
  13441. * // ... provide filter here
  13442. * }
  13443. * })
  13444. *
  13445. */
  13446. deleteMany<T extends QualificationQuestionDeleteManyArgs>(args?: SelectSubset<T, QualificationQuestionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13447. /**
  13448. * Update zero or more QualificationQuestions.
  13449. * Note, that providing `undefined` is treated as the value not being there.
  13450. * Read more here: https://pris.ly/d/null-undefined
  13451. * @param {QualificationQuestionUpdateManyArgs} args - Arguments to update one or more rows.
  13452. * @example
  13453. * // Update many QualificationQuestions
  13454. * const qualificationQuestion = await prisma.qualificationQuestion.updateMany({
  13455. * where: {
  13456. * // ... provide filter here
  13457. * },
  13458. * data: {
  13459. * // ... provide data here
  13460. * }
  13461. * })
  13462. *
  13463. */
  13464. updateMany<T extends QualificationQuestionUpdateManyArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13465. /**
  13466. * Update zero or more QualificationQuestions and returns the data updated in the database.
  13467. * @param {QualificationQuestionUpdateManyAndReturnArgs} args - Arguments to update many QualificationQuestions.
  13468. * @example
  13469. * // Update many QualificationQuestions
  13470. * const qualificationQuestion = await prisma.qualificationQuestion.updateManyAndReturn({
  13471. * where: {
  13472. * // ... provide filter here
  13473. * },
  13474. * data: [
  13475. * // ... provide data here
  13476. * ]
  13477. * })
  13478. *
  13479. * // Update zero or more QualificationQuestions and only return the `id`
  13480. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.updateManyAndReturn({
  13481. * select: { id: true },
  13482. * where: {
  13483. * // ... provide filter here
  13484. * },
  13485. * data: [
  13486. * // ... provide data here
  13487. * ]
  13488. * })
  13489. * Note, that providing `undefined` is treated as the value not being there.
  13490. * Read more here: https://pris.ly/d/null-undefined
  13491. *
  13492. */
  13493. updateManyAndReturn<T extends QualificationQuestionUpdateManyAndReturnArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  13494. /**
  13495. * Create or update one QualificationQuestion.
  13496. * @param {QualificationQuestionUpsertArgs} args - Arguments to update or create a QualificationQuestion.
  13497. * @example
  13498. * // Update or create a QualificationQuestion
  13499. * const qualificationQuestion = await prisma.qualificationQuestion.upsert({
  13500. * create: {
  13501. * // ... data to create a QualificationQuestion
  13502. * },
  13503. * update: {
  13504. * // ... in case it already exists, update
  13505. * },
  13506. * where: {
  13507. * // ... the filter for the QualificationQuestion we want to update
  13508. * }
  13509. * })
  13510. */
  13511. upsert<T extends QualificationQuestionUpsertArgs>(args: SelectSubset<T, QualificationQuestionUpsertArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13512. /**
  13513. * Count the number of QualificationQuestions.
  13514. * Note, that providing `undefined` is treated as the value not being there.
  13515. * Read more here: https://pris.ly/d/null-undefined
  13516. * @param {QualificationQuestionCountArgs} args - Arguments to filter QualificationQuestions to count.
  13517. * @example
  13518. * // Count the number of QualificationQuestions
  13519. * const count = await prisma.qualificationQuestion.count({
  13520. * where: {
  13521. * // ... the filter for the QualificationQuestions we want to count
  13522. * }
  13523. * })
  13524. **/
  13525. count<T extends QualificationQuestionCountArgs>(
  13526. args?: Subset<T, QualificationQuestionCountArgs>,
  13527. ): Prisma.PrismaPromise<
  13528. T extends $Utils.Record<'select', any>
  13529. ? T['select'] extends true
  13530. ? number
  13531. : GetScalarType<T['select'], QualificationQuestionCountAggregateOutputType>
  13532. : number
  13533. >
  13534. /**
  13535. * Allows you to perform aggregations operations on a QualificationQuestion.
  13536. * Note, that providing `undefined` is treated as the value not being there.
  13537. * Read more here: https://pris.ly/d/null-undefined
  13538. * @param {QualificationQuestionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  13539. * @example
  13540. * // Ordered by age ascending
  13541. * // Where email contains prisma.io
  13542. * // Limited to the 10 users
  13543. * const aggregations = await prisma.user.aggregate({
  13544. * _avg: {
  13545. * age: true,
  13546. * },
  13547. * where: {
  13548. * email: {
  13549. * contains: "prisma.io",
  13550. * },
  13551. * },
  13552. * orderBy: {
  13553. * age: "asc",
  13554. * },
  13555. * take: 10,
  13556. * })
  13557. **/
  13558. aggregate<T extends QualificationQuestionAggregateArgs>(args: Subset<T, QualificationQuestionAggregateArgs>): Prisma.PrismaPromise<GetQualificationQuestionAggregateType<T>>
  13559. /**
  13560. * Group by QualificationQuestion.
  13561. * Note, that providing `undefined` is treated as the value not being there.
  13562. * Read more here: https://pris.ly/d/null-undefined
  13563. * @param {QualificationQuestionGroupByArgs} args - Group by arguments.
  13564. * @example
  13565. * // Group by city, order by createdAt, get count
  13566. * const result = await prisma.user.groupBy({
  13567. * by: ['city', 'createdAt'],
  13568. * orderBy: {
  13569. * createdAt: true
  13570. * },
  13571. * _count: {
  13572. * _all: true
  13573. * },
  13574. * })
  13575. *
  13576. **/
  13577. groupBy<
  13578. T extends QualificationQuestionGroupByArgs,
  13579. HasSelectOrTake extends Or<
  13580. Extends<'skip', Keys<T>>,
  13581. Extends<'take', Keys<T>>
  13582. >,
  13583. OrderByArg extends True extends HasSelectOrTake
  13584. ? { orderBy: QualificationQuestionGroupByArgs['orderBy'] }
  13585. : { orderBy?: QualificationQuestionGroupByArgs['orderBy'] },
  13586. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  13587. ByFields extends MaybeTupleToUnion<T['by']>,
  13588. ByValid extends Has<ByFields, OrderFields>,
  13589. HavingFields extends GetHavingFields<T['having']>,
  13590. HavingValid extends Has<ByFields, HavingFields>,
  13591. ByEmpty extends T['by'] extends never[] ? True : False,
  13592. InputErrors extends ByEmpty extends True
  13593. ? `Error: "by" must not be empty.`
  13594. : HavingValid extends False
  13595. ? {
  13596. [P in HavingFields]: P extends ByFields
  13597. ? never
  13598. : P extends string
  13599. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  13600. : [
  13601. Error,
  13602. 'Field ',
  13603. P,
  13604. ` in "having" needs to be provided in "by"`,
  13605. ]
  13606. }[HavingFields]
  13607. : 'take' extends Keys<T>
  13608. ? 'orderBy' extends Keys<T>
  13609. ? ByValid extends True
  13610. ? {}
  13611. : {
  13612. [P in OrderFields]: P extends ByFields
  13613. ? never
  13614. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13615. }[OrderFields]
  13616. : 'Error: If you provide "take", you also need to provide "orderBy"'
  13617. : 'skip' extends Keys<T>
  13618. ? 'orderBy' extends Keys<T>
  13619. ? ByValid extends True
  13620. ? {}
  13621. : {
  13622. [P in OrderFields]: P extends ByFields
  13623. ? never
  13624. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13625. }[OrderFields]
  13626. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  13627. : ByValid extends True
  13628. ? {}
  13629. : {
  13630. [P in OrderFields]: P extends ByFields
  13631. ? never
  13632. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13633. }[OrderFields]
  13634. >(args: SubsetIntersection<T, QualificationQuestionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQualificationQuestionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  13635. /**
  13636. * Fields of the QualificationQuestion model
  13637. */
  13638. readonly fields: QualificationQuestionFieldRefs;
  13639. }
  13640. /**
  13641. * The delegate class that acts as a "Promise-like" for QualificationQuestion.
  13642. * Why is this prefixed with `Prisma__`?
  13643. * Because we want to prevent naming conflicts as mentioned in
  13644. * https://github.com/prisma/prisma-client-js/issues/707
  13645. */
  13646. export interface Prisma__QualificationQuestionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  13647. readonly [Symbol.toStringTag]: "PrismaPromise"
  13648. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  13649. /**
  13650. * Attaches callbacks for the resolution and/or rejection of the Promise.
  13651. * @param onfulfilled The callback to execute when the Promise is resolved.
  13652. * @param onrejected The callback to execute when the Promise is rejected.
  13653. * @returns A Promise for the completion of which ever callback is executed.
  13654. */
  13655. 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>
  13656. /**
  13657. * Attaches a callback for only the rejection of the Promise.
  13658. * @param onrejected The callback to execute when the Promise is rejected.
  13659. * @returns A Promise for the completion of the callback.
  13660. */
  13661. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  13662. /**
  13663. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  13664. * resolved value cannot be modified from the callback.
  13665. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  13666. * @returns A Promise for the completion of the callback.
  13667. */
  13668. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  13669. }
  13670. /**
  13671. * Fields of the QualificationQuestion model
  13672. */
  13673. interface QualificationQuestionFieldRefs {
  13674. readonly id: FieldRef<"QualificationQuestion", 'String'>
  13675. readonly ideaId: FieldRef<"QualificationQuestion", 'String'>
  13676. readonly workspaceId: FieldRef<"QualificationQuestion", 'String'>
  13677. readonly questionText: FieldRef<"QualificationQuestion", 'String'>
  13678. readonly responseToken: FieldRef<"QualificationQuestion", 'String'>
  13679. readonly askedAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13680. readonly responseText: FieldRef<"QualificationQuestion", 'String'>
  13681. readonly answeredAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13682. }
  13683. // Custom InputTypes
  13684. /**
  13685. * QualificationQuestion findUnique
  13686. */
  13687. export type QualificationQuestionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13688. /**
  13689. * Select specific fields to fetch from the QualificationQuestion
  13690. */
  13691. select?: QualificationQuestionSelect<ExtArgs> | null
  13692. /**
  13693. * Omit specific fields from the QualificationQuestion
  13694. */
  13695. omit?: QualificationQuestionOmit<ExtArgs> | null
  13696. /**
  13697. * Choose, which related nodes to fetch as well
  13698. */
  13699. include?: QualificationQuestionInclude<ExtArgs> | null
  13700. /**
  13701. * Filter, which QualificationQuestion to fetch.
  13702. */
  13703. where: QualificationQuestionWhereUniqueInput
  13704. }
  13705. /**
  13706. * QualificationQuestion findUniqueOrThrow
  13707. */
  13708. export type QualificationQuestionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13709. /**
  13710. * Select specific fields to fetch from the QualificationQuestion
  13711. */
  13712. select?: QualificationQuestionSelect<ExtArgs> | null
  13713. /**
  13714. * Omit specific fields from the QualificationQuestion
  13715. */
  13716. omit?: QualificationQuestionOmit<ExtArgs> | null
  13717. /**
  13718. * Choose, which related nodes to fetch as well
  13719. */
  13720. include?: QualificationQuestionInclude<ExtArgs> | null
  13721. /**
  13722. * Filter, which QualificationQuestion to fetch.
  13723. */
  13724. where: QualificationQuestionWhereUniqueInput
  13725. }
  13726. /**
  13727. * QualificationQuestion findFirst
  13728. */
  13729. export type QualificationQuestionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13730. /**
  13731. * Select specific fields to fetch from the QualificationQuestion
  13732. */
  13733. select?: QualificationQuestionSelect<ExtArgs> | null
  13734. /**
  13735. * Omit specific fields from the QualificationQuestion
  13736. */
  13737. omit?: QualificationQuestionOmit<ExtArgs> | null
  13738. /**
  13739. * Choose, which related nodes to fetch as well
  13740. */
  13741. include?: QualificationQuestionInclude<ExtArgs> | null
  13742. /**
  13743. * Filter, which QualificationQuestion to fetch.
  13744. */
  13745. where?: QualificationQuestionWhereInput
  13746. /**
  13747. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13748. *
  13749. * Determine the order of QualificationQuestions to fetch.
  13750. */
  13751. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13752. /**
  13753. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13754. *
  13755. * Sets the position for searching for QualificationQuestions.
  13756. */
  13757. cursor?: QualificationQuestionWhereUniqueInput
  13758. /**
  13759. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13760. *
  13761. * Take `±n` QualificationQuestions from the position of the cursor.
  13762. */
  13763. take?: number
  13764. /**
  13765. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13766. *
  13767. * Skip the first `n` QualificationQuestions.
  13768. */
  13769. skip?: number
  13770. /**
  13771. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  13772. *
  13773. * Filter by unique combinations of QualificationQuestions.
  13774. */
  13775. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13776. }
  13777. /**
  13778. * QualificationQuestion findFirstOrThrow
  13779. */
  13780. export type QualificationQuestionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13781. /**
  13782. * Select specific fields to fetch from the QualificationQuestion
  13783. */
  13784. select?: QualificationQuestionSelect<ExtArgs> | null
  13785. /**
  13786. * Omit specific fields from the QualificationQuestion
  13787. */
  13788. omit?: QualificationQuestionOmit<ExtArgs> | null
  13789. /**
  13790. * Choose, which related nodes to fetch as well
  13791. */
  13792. include?: QualificationQuestionInclude<ExtArgs> | null
  13793. /**
  13794. * Filter, which QualificationQuestion to fetch.
  13795. */
  13796. where?: QualificationQuestionWhereInput
  13797. /**
  13798. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13799. *
  13800. * Determine the order of QualificationQuestions to fetch.
  13801. */
  13802. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13803. /**
  13804. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13805. *
  13806. * Sets the position for searching for QualificationQuestions.
  13807. */
  13808. cursor?: QualificationQuestionWhereUniqueInput
  13809. /**
  13810. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13811. *
  13812. * Take `±n` QualificationQuestions from the position of the cursor.
  13813. */
  13814. take?: number
  13815. /**
  13816. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13817. *
  13818. * Skip the first `n` QualificationQuestions.
  13819. */
  13820. skip?: number
  13821. /**
  13822. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  13823. *
  13824. * Filter by unique combinations of QualificationQuestions.
  13825. */
  13826. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13827. }
  13828. /**
  13829. * QualificationQuestion findMany
  13830. */
  13831. export type QualificationQuestionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13832. /**
  13833. * Select specific fields to fetch from the QualificationQuestion
  13834. */
  13835. select?: QualificationQuestionSelect<ExtArgs> | null
  13836. /**
  13837. * Omit specific fields from the QualificationQuestion
  13838. */
  13839. omit?: QualificationQuestionOmit<ExtArgs> | null
  13840. /**
  13841. * Choose, which related nodes to fetch as well
  13842. */
  13843. include?: QualificationQuestionInclude<ExtArgs> | null
  13844. /**
  13845. * Filter, which QualificationQuestions to fetch.
  13846. */
  13847. where?: QualificationQuestionWhereInput
  13848. /**
  13849. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13850. *
  13851. * Determine the order of QualificationQuestions to fetch.
  13852. */
  13853. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13854. /**
  13855. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13856. *
  13857. * Sets the position for listing QualificationQuestions.
  13858. */
  13859. cursor?: QualificationQuestionWhereUniqueInput
  13860. /**
  13861. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13862. *
  13863. * Take `±n` QualificationQuestions from the position of the cursor.
  13864. */
  13865. take?: number
  13866. /**
  13867. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13868. *
  13869. * Skip the first `n` QualificationQuestions.
  13870. */
  13871. skip?: number
  13872. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13873. }
  13874. /**
  13875. * QualificationQuestion create
  13876. */
  13877. export type QualificationQuestionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13878. /**
  13879. * Select specific fields to fetch from the QualificationQuestion
  13880. */
  13881. select?: QualificationQuestionSelect<ExtArgs> | null
  13882. /**
  13883. * Omit specific fields from the QualificationQuestion
  13884. */
  13885. omit?: QualificationQuestionOmit<ExtArgs> | null
  13886. /**
  13887. * Choose, which related nodes to fetch as well
  13888. */
  13889. include?: QualificationQuestionInclude<ExtArgs> | null
  13890. /**
  13891. * The data needed to create a QualificationQuestion.
  13892. */
  13893. data: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  13894. }
  13895. /**
  13896. * QualificationQuestion createMany
  13897. */
  13898. export type QualificationQuestionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13899. /**
  13900. * The data used to create many QualificationQuestions.
  13901. */
  13902. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  13903. skipDuplicates?: boolean
  13904. }
  13905. /**
  13906. * QualificationQuestion createManyAndReturn
  13907. */
  13908. export type QualificationQuestionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13909. /**
  13910. * Select specific fields to fetch from the QualificationQuestion
  13911. */
  13912. select?: QualificationQuestionSelectCreateManyAndReturn<ExtArgs> | null
  13913. /**
  13914. * Omit specific fields from the QualificationQuestion
  13915. */
  13916. omit?: QualificationQuestionOmit<ExtArgs> | null
  13917. /**
  13918. * The data used to create many QualificationQuestions.
  13919. */
  13920. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  13921. skipDuplicates?: boolean
  13922. /**
  13923. * Choose, which related nodes to fetch as well
  13924. */
  13925. include?: QualificationQuestionIncludeCreateManyAndReturn<ExtArgs> | null
  13926. }
  13927. /**
  13928. * QualificationQuestion update
  13929. */
  13930. export type QualificationQuestionUpdateArgs<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 data needed to update a QualificationQuestion.
  13945. */
  13946. data: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  13947. /**
  13948. * Choose, which QualificationQuestion to update.
  13949. */
  13950. where: QualificationQuestionWhereUniqueInput
  13951. }
  13952. /**
  13953. * QualificationQuestion updateMany
  13954. */
  13955. export type QualificationQuestionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13956. /**
  13957. * The data used to update QualificationQuestions.
  13958. */
  13959. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  13960. /**
  13961. * Filter which QualificationQuestions to update
  13962. */
  13963. where?: QualificationQuestionWhereInput
  13964. /**
  13965. * Limit how many QualificationQuestions to update.
  13966. */
  13967. limit?: number
  13968. }
  13969. /**
  13970. * QualificationQuestion updateManyAndReturn
  13971. */
  13972. export type QualificationQuestionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13973. /**
  13974. * Select specific fields to fetch from the QualificationQuestion
  13975. */
  13976. select?: QualificationQuestionSelectUpdateManyAndReturn<ExtArgs> | null
  13977. /**
  13978. * Omit specific fields from the QualificationQuestion
  13979. */
  13980. omit?: QualificationQuestionOmit<ExtArgs> | null
  13981. /**
  13982. * The data used to update QualificationQuestions.
  13983. */
  13984. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  13985. /**
  13986. * Filter which QualificationQuestions to update
  13987. */
  13988. where?: QualificationQuestionWhereInput
  13989. /**
  13990. * Limit how many QualificationQuestions to update.
  13991. */
  13992. limit?: number
  13993. /**
  13994. * Choose, which related nodes to fetch as well
  13995. */
  13996. include?: QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs> | null
  13997. }
  13998. /**
  13999. * QualificationQuestion upsert
  14000. */
  14001. export type QualificationQuestionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14002. /**
  14003. * Select specific fields to fetch from the QualificationQuestion
  14004. */
  14005. select?: QualificationQuestionSelect<ExtArgs> | null
  14006. /**
  14007. * Omit specific fields from the QualificationQuestion
  14008. */
  14009. omit?: QualificationQuestionOmit<ExtArgs> | null
  14010. /**
  14011. * Choose, which related nodes to fetch as well
  14012. */
  14013. include?: QualificationQuestionInclude<ExtArgs> | null
  14014. /**
  14015. * The filter to search for the QualificationQuestion to update in case it exists.
  14016. */
  14017. where: QualificationQuestionWhereUniqueInput
  14018. /**
  14019. * In case the QualificationQuestion found by the `where` argument doesn't exist, create a new QualificationQuestion with this data.
  14020. */
  14021. create: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  14022. /**
  14023. * In case the QualificationQuestion was found with the provided `where` argument, update it with this data.
  14024. */
  14025. update: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  14026. }
  14027. /**
  14028. * QualificationQuestion delete
  14029. */
  14030. export type QualificationQuestionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14031. /**
  14032. * Select specific fields to fetch from the QualificationQuestion
  14033. */
  14034. select?: QualificationQuestionSelect<ExtArgs> | null
  14035. /**
  14036. * Omit specific fields from the QualificationQuestion
  14037. */
  14038. omit?: QualificationQuestionOmit<ExtArgs> | null
  14039. /**
  14040. * Choose, which related nodes to fetch as well
  14041. */
  14042. include?: QualificationQuestionInclude<ExtArgs> | null
  14043. /**
  14044. * Filter which QualificationQuestion to delete.
  14045. */
  14046. where: QualificationQuestionWhereUniqueInput
  14047. }
  14048. /**
  14049. * QualificationQuestion deleteMany
  14050. */
  14051. export type QualificationQuestionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14052. /**
  14053. * Filter which QualificationQuestions to delete
  14054. */
  14055. where?: QualificationQuestionWhereInput
  14056. /**
  14057. * Limit how many QualificationQuestions to delete.
  14058. */
  14059. limit?: number
  14060. }
  14061. /**
  14062. * QualificationQuestion without action
  14063. */
  14064. export type QualificationQuestionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14065. /**
  14066. * Select specific fields to fetch from the QualificationQuestion
  14067. */
  14068. select?: QualificationQuestionSelect<ExtArgs> | null
  14069. /**
  14070. * Omit specific fields from the QualificationQuestion
  14071. */
  14072. omit?: QualificationQuestionOmit<ExtArgs> | null
  14073. /**
  14074. * Choose, which related nodes to fetch as well
  14075. */
  14076. include?: QualificationQuestionInclude<ExtArgs> | null
  14077. }
  14078. /**
  14079. * Model LibraryCase
  14080. */
  14081. export type AggregateLibraryCase = {
  14082. _count: LibraryCaseCountAggregateOutputType | null
  14083. _min: LibraryCaseMinAggregateOutputType | null
  14084. _max: LibraryCaseMaxAggregateOutputType | null
  14085. }
  14086. export type LibraryCaseMinAggregateOutputType = {
  14087. id: string | null
  14088. sector: string | null
  14089. department: string | null
  14090. title: string | null
  14091. description: string | null
  14092. createdAt: Date | null
  14093. updatedAt: Date | null
  14094. }
  14095. export type LibraryCaseMaxAggregateOutputType = {
  14096. id: string | null
  14097. sector: string | null
  14098. department: string | null
  14099. title: string | null
  14100. description: string | null
  14101. createdAt: Date | null
  14102. updatedAt: Date | null
  14103. }
  14104. export type LibraryCaseCountAggregateOutputType = {
  14105. id: number
  14106. sector: number
  14107. department: number
  14108. title: number
  14109. description: number
  14110. createdAt: number
  14111. updatedAt: number
  14112. _all: number
  14113. }
  14114. export type LibraryCaseMinAggregateInputType = {
  14115. id?: true
  14116. sector?: true
  14117. department?: true
  14118. title?: true
  14119. description?: true
  14120. createdAt?: true
  14121. updatedAt?: true
  14122. }
  14123. export type LibraryCaseMaxAggregateInputType = {
  14124. id?: true
  14125. sector?: true
  14126. department?: true
  14127. title?: true
  14128. description?: true
  14129. createdAt?: true
  14130. updatedAt?: true
  14131. }
  14132. export type LibraryCaseCountAggregateInputType = {
  14133. id?: true
  14134. sector?: true
  14135. department?: true
  14136. title?: true
  14137. description?: true
  14138. createdAt?: true
  14139. updatedAt?: true
  14140. _all?: true
  14141. }
  14142. export type LibraryCaseAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14143. /**
  14144. * Filter which LibraryCase to aggregate.
  14145. */
  14146. where?: LibraryCaseWhereInput
  14147. /**
  14148. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14149. *
  14150. * Determine the order of LibraryCases to fetch.
  14151. */
  14152. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14153. /**
  14154. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14155. *
  14156. * Sets the start position
  14157. */
  14158. cursor?: LibraryCaseWhereUniqueInput
  14159. /**
  14160. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14161. *
  14162. * Take `±n` LibraryCases from the position of the cursor.
  14163. */
  14164. take?: number
  14165. /**
  14166. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14167. *
  14168. * Skip the first `n` LibraryCases.
  14169. */
  14170. skip?: number
  14171. /**
  14172. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14173. *
  14174. * Count returned LibraryCases
  14175. **/
  14176. _count?: true | LibraryCaseCountAggregateInputType
  14177. /**
  14178. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14179. *
  14180. * Select which fields to find the minimum value
  14181. **/
  14182. _min?: LibraryCaseMinAggregateInputType
  14183. /**
  14184. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14185. *
  14186. * Select which fields to find the maximum value
  14187. **/
  14188. _max?: LibraryCaseMaxAggregateInputType
  14189. }
  14190. export type GetLibraryCaseAggregateType<T extends LibraryCaseAggregateArgs> = {
  14191. [P in keyof T & keyof AggregateLibraryCase]: P extends '_count' | 'count'
  14192. ? T[P] extends true
  14193. ? number
  14194. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14195. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14196. }
  14197. export type LibraryCaseGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14198. where?: LibraryCaseWhereInput
  14199. orderBy?: LibraryCaseOrderByWithAggregationInput | LibraryCaseOrderByWithAggregationInput[]
  14200. by: LibraryCaseScalarFieldEnum[] | LibraryCaseScalarFieldEnum
  14201. having?: LibraryCaseScalarWhereWithAggregatesInput
  14202. take?: number
  14203. skip?: number
  14204. _count?: LibraryCaseCountAggregateInputType | true
  14205. _min?: LibraryCaseMinAggregateInputType
  14206. _max?: LibraryCaseMaxAggregateInputType
  14207. }
  14208. export type LibraryCaseGroupByOutputType = {
  14209. id: string
  14210. sector: string
  14211. department: string
  14212. title: string
  14213. description: string
  14214. createdAt: Date
  14215. updatedAt: Date
  14216. _count: LibraryCaseCountAggregateOutputType | null
  14217. _min: LibraryCaseMinAggregateOutputType | null
  14218. _max: LibraryCaseMaxAggregateOutputType | null
  14219. }
  14220. type GetLibraryCaseGroupByPayload<T extends LibraryCaseGroupByArgs> = Prisma.PrismaPromise<
  14221. Array<
  14222. PickEnumerable<LibraryCaseGroupByOutputType, T['by']> &
  14223. {
  14224. [P in ((keyof T) & (keyof LibraryCaseGroupByOutputType))]: P extends '_count'
  14225. ? T[P] extends boolean
  14226. ? number
  14227. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14228. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14229. }
  14230. >
  14231. >
  14232. export type LibraryCaseSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14233. id?: boolean
  14234. sector?: boolean
  14235. department?: boolean
  14236. title?: boolean
  14237. description?: boolean
  14238. createdAt?: boolean
  14239. updatedAt?: boolean
  14240. }, ExtArgs["result"]["libraryCase"]>
  14241. export type LibraryCaseSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14242. id?: boolean
  14243. sector?: boolean
  14244. department?: boolean
  14245. title?: boolean
  14246. description?: boolean
  14247. createdAt?: boolean
  14248. updatedAt?: boolean
  14249. }, ExtArgs["result"]["libraryCase"]>
  14250. export type LibraryCaseSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14251. id?: boolean
  14252. sector?: boolean
  14253. department?: boolean
  14254. title?: boolean
  14255. description?: boolean
  14256. createdAt?: boolean
  14257. updatedAt?: boolean
  14258. }, ExtArgs["result"]["libraryCase"]>
  14259. export type LibraryCaseSelectScalar = {
  14260. id?: boolean
  14261. sector?: boolean
  14262. department?: boolean
  14263. title?: boolean
  14264. description?: boolean
  14265. createdAt?: boolean
  14266. updatedAt?: boolean
  14267. }
  14268. export type LibraryCaseOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sector" | "department" | "title" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["libraryCase"]>
  14269. export type $LibraryCasePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14270. name: "LibraryCase"
  14271. objects: {}
  14272. scalars: $Extensions.GetPayloadResult<{
  14273. id: string
  14274. sector: string
  14275. department: string
  14276. title: string
  14277. description: string
  14278. createdAt: Date
  14279. updatedAt: Date
  14280. }, ExtArgs["result"]["libraryCase"]>
  14281. composites: {}
  14282. }
  14283. type LibraryCaseGetPayload<S extends boolean | null | undefined | LibraryCaseDefaultArgs> = $Result.GetResult<Prisma.$LibraryCasePayload, S>
  14284. type LibraryCaseCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  14285. Omit<LibraryCaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  14286. select?: LibraryCaseCountAggregateInputType | true
  14287. }
  14288. export interface LibraryCaseDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  14289. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LibraryCase'], meta: { name: 'LibraryCase' } }
  14290. /**
  14291. * Find zero or one LibraryCase that matches the filter.
  14292. * @param {LibraryCaseFindUniqueArgs} args - Arguments to find a LibraryCase
  14293. * @example
  14294. * // Get one LibraryCase
  14295. * const libraryCase = await prisma.libraryCase.findUnique({
  14296. * where: {
  14297. * // ... provide filter here
  14298. * }
  14299. * })
  14300. */
  14301. findUnique<T extends LibraryCaseFindUniqueArgs>(args: SelectSubset<T, LibraryCaseFindUniqueArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14302. /**
  14303. * Find one LibraryCase that matches the filter or throw an error with `error.code='P2025'`
  14304. * if no matches were found.
  14305. * @param {LibraryCaseFindUniqueOrThrowArgs} args - Arguments to find a LibraryCase
  14306. * @example
  14307. * // Get one LibraryCase
  14308. * const libraryCase = await prisma.libraryCase.findUniqueOrThrow({
  14309. * where: {
  14310. * // ... provide filter here
  14311. * }
  14312. * })
  14313. */
  14314. findUniqueOrThrow<T extends LibraryCaseFindUniqueOrThrowArgs>(args: SelectSubset<T, LibraryCaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14315. /**
  14316. * Find the first LibraryCase that matches the filter.
  14317. * Note, that providing `undefined` is treated as the value not being there.
  14318. * Read more here: https://pris.ly/d/null-undefined
  14319. * @param {LibraryCaseFindFirstArgs} args - Arguments to find a LibraryCase
  14320. * @example
  14321. * // Get one LibraryCase
  14322. * const libraryCase = await prisma.libraryCase.findFirst({
  14323. * where: {
  14324. * // ... provide filter here
  14325. * }
  14326. * })
  14327. */
  14328. findFirst<T extends LibraryCaseFindFirstArgs>(args?: SelectSubset<T, LibraryCaseFindFirstArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14329. /**
  14330. * Find the first LibraryCase that matches the filter or
  14331. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  14332. * Note, that providing `undefined` is treated as the value not being there.
  14333. * Read more here: https://pris.ly/d/null-undefined
  14334. * @param {LibraryCaseFindFirstOrThrowArgs} args - Arguments to find a LibraryCase
  14335. * @example
  14336. * // Get one LibraryCase
  14337. * const libraryCase = await prisma.libraryCase.findFirstOrThrow({
  14338. * where: {
  14339. * // ... provide filter here
  14340. * }
  14341. * })
  14342. */
  14343. findFirstOrThrow<T extends LibraryCaseFindFirstOrThrowArgs>(args?: SelectSubset<T, LibraryCaseFindFirstOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14344. /**
  14345. * Find zero or more LibraryCases that matches the filter.
  14346. * Note, that providing `undefined` is treated as the value not being there.
  14347. * Read more here: https://pris.ly/d/null-undefined
  14348. * @param {LibraryCaseFindManyArgs} args - Arguments to filter and select certain fields only.
  14349. * @example
  14350. * // Get all LibraryCases
  14351. * const libraryCases = await prisma.libraryCase.findMany()
  14352. *
  14353. * // Get first 10 LibraryCases
  14354. * const libraryCases = await prisma.libraryCase.findMany({ take: 10 })
  14355. *
  14356. * // Only select the `id`
  14357. * const libraryCaseWithIdOnly = await prisma.libraryCase.findMany({ select: { id: true } })
  14358. *
  14359. */
  14360. findMany<T extends LibraryCaseFindManyArgs>(args?: SelectSubset<T, LibraryCaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  14361. /**
  14362. * Create a LibraryCase.
  14363. * @param {LibraryCaseCreateArgs} args - Arguments to create a LibraryCase.
  14364. * @example
  14365. * // Create one LibraryCase
  14366. * const LibraryCase = await prisma.libraryCase.create({
  14367. * data: {
  14368. * // ... data to create a LibraryCase
  14369. * }
  14370. * })
  14371. *
  14372. */
  14373. create<T extends LibraryCaseCreateArgs>(args: SelectSubset<T, LibraryCaseCreateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14374. /**
  14375. * Create many LibraryCases.
  14376. * @param {LibraryCaseCreateManyArgs} args - Arguments to create many LibraryCases.
  14377. * @example
  14378. * // Create many LibraryCases
  14379. * const libraryCase = await prisma.libraryCase.createMany({
  14380. * data: [
  14381. * // ... provide data here
  14382. * ]
  14383. * })
  14384. *
  14385. */
  14386. createMany<T extends LibraryCaseCreateManyArgs>(args?: SelectSubset<T, LibraryCaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14387. /**
  14388. * Create many LibraryCases and returns the data saved in the database.
  14389. * @param {LibraryCaseCreateManyAndReturnArgs} args - Arguments to create many LibraryCases.
  14390. * @example
  14391. * // Create many LibraryCases
  14392. * const libraryCase = await prisma.libraryCase.createManyAndReturn({
  14393. * data: [
  14394. * // ... provide data here
  14395. * ]
  14396. * })
  14397. *
  14398. * // Create many LibraryCases and only return the `id`
  14399. * const libraryCaseWithIdOnly = await prisma.libraryCase.createManyAndReturn({
  14400. * select: { id: true },
  14401. * data: [
  14402. * // ... provide data here
  14403. * ]
  14404. * })
  14405. * Note, that providing `undefined` is treated as the value not being there.
  14406. * Read more here: https://pris.ly/d/null-undefined
  14407. *
  14408. */
  14409. createManyAndReturn<T extends LibraryCaseCreateManyAndReturnArgs>(args?: SelectSubset<T, LibraryCaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  14410. /**
  14411. * Delete a LibraryCase.
  14412. * @param {LibraryCaseDeleteArgs} args - Arguments to delete one LibraryCase.
  14413. * @example
  14414. * // Delete one LibraryCase
  14415. * const LibraryCase = await prisma.libraryCase.delete({
  14416. * where: {
  14417. * // ... filter to delete one LibraryCase
  14418. * }
  14419. * })
  14420. *
  14421. */
  14422. delete<T extends LibraryCaseDeleteArgs>(args: SelectSubset<T, LibraryCaseDeleteArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14423. /**
  14424. * Update one LibraryCase.
  14425. * @param {LibraryCaseUpdateArgs} args - Arguments to update one LibraryCase.
  14426. * @example
  14427. * // Update one LibraryCase
  14428. * const libraryCase = await prisma.libraryCase.update({
  14429. * where: {
  14430. * // ... provide filter here
  14431. * },
  14432. * data: {
  14433. * // ... provide data here
  14434. * }
  14435. * })
  14436. *
  14437. */
  14438. update<T extends LibraryCaseUpdateArgs>(args: SelectSubset<T, LibraryCaseUpdateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14439. /**
  14440. * Delete zero or more LibraryCases.
  14441. * @param {LibraryCaseDeleteManyArgs} args - Arguments to filter LibraryCases to delete.
  14442. * @example
  14443. * // Delete a few LibraryCases
  14444. * const { count } = await prisma.libraryCase.deleteMany({
  14445. * where: {
  14446. * // ... provide filter here
  14447. * }
  14448. * })
  14449. *
  14450. */
  14451. deleteMany<T extends LibraryCaseDeleteManyArgs>(args?: SelectSubset<T, LibraryCaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14452. /**
  14453. * Update zero or more LibraryCases.
  14454. * Note, that providing `undefined` is treated as the value not being there.
  14455. * Read more here: https://pris.ly/d/null-undefined
  14456. * @param {LibraryCaseUpdateManyArgs} args - Arguments to update one or more rows.
  14457. * @example
  14458. * // Update many LibraryCases
  14459. * const libraryCase = await prisma.libraryCase.updateMany({
  14460. * where: {
  14461. * // ... provide filter here
  14462. * },
  14463. * data: {
  14464. * // ... provide data here
  14465. * }
  14466. * })
  14467. *
  14468. */
  14469. updateMany<T extends LibraryCaseUpdateManyArgs>(args: SelectSubset<T, LibraryCaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14470. /**
  14471. * Update zero or more LibraryCases and returns the data updated in the database.
  14472. * @param {LibraryCaseUpdateManyAndReturnArgs} args - Arguments to update many LibraryCases.
  14473. * @example
  14474. * // Update many LibraryCases
  14475. * const libraryCase = await prisma.libraryCase.updateManyAndReturn({
  14476. * where: {
  14477. * // ... provide filter here
  14478. * },
  14479. * data: [
  14480. * // ... provide data here
  14481. * ]
  14482. * })
  14483. *
  14484. * // Update zero or more LibraryCases and only return the `id`
  14485. * const libraryCaseWithIdOnly = await prisma.libraryCase.updateManyAndReturn({
  14486. * select: { id: true },
  14487. * where: {
  14488. * // ... provide filter here
  14489. * },
  14490. * data: [
  14491. * // ... provide data here
  14492. * ]
  14493. * })
  14494. * Note, that providing `undefined` is treated as the value not being there.
  14495. * Read more here: https://pris.ly/d/null-undefined
  14496. *
  14497. */
  14498. updateManyAndReturn<T extends LibraryCaseUpdateManyAndReturnArgs>(args: SelectSubset<T, LibraryCaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  14499. /**
  14500. * Create or update one LibraryCase.
  14501. * @param {LibraryCaseUpsertArgs} args - Arguments to update or create a LibraryCase.
  14502. * @example
  14503. * // Update or create a LibraryCase
  14504. * const libraryCase = await prisma.libraryCase.upsert({
  14505. * create: {
  14506. * // ... data to create a LibraryCase
  14507. * },
  14508. * update: {
  14509. * // ... in case it already exists, update
  14510. * },
  14511. * where: {
  14512. * // ... the filter for the LibraryCase we want to update
  14513. * }
  14514. * })
  14515. */
  14516. upsert<T extends LibraryCaseUpsertArgs>(args: SelectSubset<T, LibraryCaseUpsertArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14517. /**
  14518. * Count the number of LibraryCases.
  14519. * Note, that providing `undefined` is treated as the value not being there.
  14520. * Read more here: https://pris.ly/d/null-undefined
  14521. * @param {LibraryCaseCountArgs} args - Arguments to filter LibraryCases to count.
  14522. * @example
  14523. * // Count the number of LibraryCases
  14524. * const count = await prisma.libraryCase.count({
  14525. * where: {
  14526. * // ... the filter for the LibraryCases we want to count
  14527. * }
  14528. * })
  14529. **/
  14530. count<T extends LibraryCaseCountArgs>(
  14531. args?: Subset<T, LibraryCaseCountArgs>,
  14532. ): Prisma.PrismaPromise<
  14533. T extends $Utils.Record<'select', any>
  14534. ? T['select'] extends true
  14535. ? number
  14536. : GetScalarType<T['select'], LibraryCaseCountAggregateOutputType>
  14537. : number
  14538. >
  14539. /**
  14540. * Allows you to perform aggregations operations on a LibraryCase.
  14541. * Note, that providing `undefined` is treated as the value not being there.
  14542. * Read more here: https://pris.ly/d/null-undefined
  14543. * @param {LibraryCaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  14544. * @example
  14545. * // Ordered by age ascending
  14546. * // Where email contains prisma.io
  14547. * // Limited to the 10 users
  14548. * const aggregations = await prisma.user.aggregate({
  14549. * _avg: {
  14550. * age: true,
  14551. * },
  14552. * where: {
  14553. * email: {
  14554. * contains: "prisma.io",
  14555. * },
  14556. * },
  14557. * orderBy: {
  14558. * age: "asc",
  14559. * },
  14560. * take: 10,
  14561. * })
  14562. **/
  14563. aggregate<T extends LibraryCaseAggregateArgs>(args: Subset<T, LibraryCaseAggregateArgs>): Prisma.PrismaPromise<GetLibraryCaseAggregateType<T>>
  14564. /**
  14565. * Group by LibraryCase.
  14566. * Note, that providing `undefined` is treated as the value not being there.
  14567. * Read more here: https://pris.ly/d/null-undefined
  14568. * @param {LibraryCaseGroupByArgs} args - Group by arguments.
  14569. * @example
  14570. * // Group by city, order by createdAt, get count
  14571. * const result = await prisma.user.groupBy({
  14572. * by: ['city', 'createdAt'],
  14573. * orderBy: {
  14574. * createdAt: true
  14575. * },
  14576. * _count: {
  14577. * _all: true
  14578. * },
  14579. * })
  14580. *
  14581. **/
  14582. groupBy<
  14583. T extends LibraryCaseGroupByArgs,
  14584. HasSelectOrTake extends Or<
  14585. Extends<'skip', Keys<T>>,
  14586. Extends<'take', Keys<T>>
  14587. >,
  14588. OrderByArg extends True extends HasSelectOrTake
  14589. ? { orderBy: LibraryCaseGroupByArgs['orderBy'] }
  14590. : { orderBy?: LibraryCaseGroupByArgs['orderBy'] },
  14591. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  14592. ByFields extends MaybeTupleToUnion<T['by']>,
  14593. ByValid extends Has<ByFields, OrderFields>,
  14594. HavingFields extends GetHavingFields<T['having']>,
  14595. HavingValid extends Has<ByFields, HavingFields>,
  14596. ByEmpty extends T['by'] extends never[] ? True : False,
  14597. InputErrors extends ByEmpty extends True
  14598. ? `Error: "by" must not be empty.`
  14599. : HavingValid extends False
  14600. ? {
  14601. [P in HavingFields]: P extends ByFields
  14602. ? never
  14603. : P extends string
  14604. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  14605. : [
  14606. Error,
  14607. 'Field ',
  14608. P,
  14609. ` in "having" needs to be provided in "by"`,
  14610. ]
  14611. }[HavingFields]
  14612. : 'take' extends Keys<T>
  14613. ? 'orderBy' extends Keys<T>
  14614. ? ByValid extends True
  14615. ? {}
  14616. : {
  14617. [P in OrderFields]: P extends ByFields
  14618. ? never
  14619. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14620. }[OrderFields]
  14621. : 'Error: If you provide "take", you also need to provide "orderBy"'
  14622. : 'skip' extends Keys<T>
  14623. ? 'orderBy' extends Keys<T>
  14624. ? ByValid extends True
  14625. ? {}
  14626. : {
  14627. [P in OrderFields]: P extends ByFields
  14628. ? never
  14629. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14630. }[OrderFields]
  14631. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  14632. : ByValid extends True
  14633. ? {}
  14634. : {
  14635. [P in OrderFields]: P extends ByFields
  14636. ? never
  14637. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14638. }[OrderFields]
  14639. >(args: SubsetIntersection<T, LibraryCaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLibraryCaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  14640. /**
  14641. * Fields of the LibraryCase model
  14642. */
  14643. readonly fields: LibraryCaseFieldRefs;
  14644. }
  14645. /**
  14646. * The delegate class that acts as a "Promise-like" for LibraryCase.
  14647. * Why is this prefixed with `Prisma__`?
  14648. * Because we want to prevent naming conflicts as mentioned in
  14649. * https://github.com/prisma/prisma-client-js/issues/707
  14650. */
  14651. export interface Prisma__LibraryCaseClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  14652. readonly [Symbol.toStringTag]: "PrismaPromise"
  14653. /**
  14654. * Attaches callbacks for the resolution and/or rejection of the Promise.
  14655. * @param onfulfilled The callback to execute when the Promise is resolved.
  14656. * @param onrejected The callback to execute when the Promise is rejected.
  14657. * @returns A Promise for the completion of which ever callback is executed.
  14658. */
  14659. 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>
  14660. /**
  14661. * Attaches a callback for only the rejection of the Promise.
  14662. * @param onrejected The callback to execute when the Promise is rejected.
  14663. * @returns A Promise for the completion of the callback.
  14664. */
  14665. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  14666. /**
  14667. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  14668. * resolved value cannot be modified from the callback.
  14669. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  14670. * @returns A Promise for the completion of the callback.
  14671. */
  14672. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  14673. }
  14674. /**
  14675. * Fields of the LibraryCase model
  14676. */
  14677. interface LibraryCaseFieldRefs {
  14678. readonly id: FieldRef<"LibraryCase", 'String'>
  14679. readonly sector: FieldRef<"LibraryCase", 'String'>
  14680. readonly department: FieldRef<"LibraryCase", 'String'>
  14681. readonly title: FieldRef<"LibraryCase", 'String'>
  14682. readonly description: FieldRef<"LibraryCase", 'String'>
  14683. readonly createdAt: FieldRef<"LibraryCase", 'DateTime'>
  14684. readonly updatedAt: FieldRef<"LibraryCase", 'DateTime'>
  14685. }
  14686. // Custom InputTypes
  14687. /**
  14688. * LibraryCase findUnique
  14689. */
  14690. export type LibraryCaseFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14691. /**
  14692. * Select specific fields to fetch from the LibraryCase
  14693. */
  14694. select?: LibraryCaseSelect<ExtArgs> | null
  14695. /**
  14696. * Omit specific fields from the LibraryCase
  14697. */
  14698. omit?: LibraryCaseOmit<ExtArgs> | null
  14699. /**
  14700. * Filter, which LibraryCase to fetch.
  14701. */
  14702. where: LibraryCaseWhereUniqueInput
  14703. }
  14704. /**
  14705. * LibraryCase findUniqueOrThrow
  14706. */
  14707. export type LibraryCaseFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14708. /**
  14709. * Select specific fields to fetch from the LibraryCase
  14710. */
  14711. select?: LibraryCaseSelect<ExtArgs> | null
  14712. /**
  14713. * Omit specific fields from the LibraryCase
  14714. */
  14715. omit?: LibraryCaseOmit<ExtArgs> | null
  14716. /**
  14717. * Filter, which LibraryCase to fetch.
  14718. */
  14719. where: LibraryCaseWhereUniqueInput
  14720. }
  14721. /**
  14722. * LibraryCase findFirst
  14723. */
  14724. export type LibraryCaseFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14725. /**
  14726. * Select specific fields to fetch from the LibraryCase
  14727. */
  14728. select?: LibraryCaseSelect<ExtArgs> | null
  14729. /**
  14730. * Omit specific fields from the LibraryCase
  14731. */
  14732. omit?: LibraryCaseOmit<ExtArgs> | null
  14733. /**
  14734. * Filter, which LibraryCase to fetch.
  14735. */
  14736. where?: LibraryCaseWhereInput
  14737. /**
  14738. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14739. *
  14740. * Determine the order of LibraryCases to fetch.
  14741. */
  14742. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14743. /**
  14744. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14745. *
  14746. * Sets the position for searching for LibraryCases.
  14747. */
  14748. cursor?: LibraryCaseWhereUniqueInput
  14749. /**
  14750. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14751. *
  14752. * Take `±n` LibraryCases from the position of the cursor.
  14753. */
  14754. take?: number
  14755. /**
  14756. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14757. *
  14758. * Skip the first `n` LibraryCases.
  14759. */
  14760. skip?: number
  14761. /**
  14762. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14763. *
  14764. * Filter by unique combinations of LibraryCases.
  14765. */
  14766. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14767. }
  14768. /**
  14769. * LibraryCase findFirstOrThrow
  14770. */
  14771. export type LibraryCaseFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14772. /**
  14773. * Select specific fields to fetch from the LibraryCase
  14774. */
  14775. select?: LibraryCaseSelect<ExtArgs> | null
  14776. /**
  14777. * Omit specific fields from the LibraryCase
  14778. */
  14779. omit?: LibraryCaseOmit<ExtArgs> | null
  14780. /**
  14781. * Filter, which LibraryCase to fetch.
  14782. */
  14783. where?: LibraryCaseWhereInput
  14784. /**
  14785. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14786. *
  14787. * Determine the order of LibraryCases to fetch.
  14788. */
  14789. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14790. /**
  14791. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14792. *
  14793. * Sets the position for searching for LibraryCases.
  14794. */
  14795. cursor?: LibraryCaseWhereUniqueInput
  14796. /**
  14797. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14798. *
  14799. * Take `±n` LibraryCases from the position of the cursor.
  14800. */
  14801. take?: number
  14802. /**
  14803. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14804. *
  14805. * Skip the first `n` LibraryCases.
  14806. */
  14807. skip?: number
  14808. /**
  14809. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14810. *
  14811. * Filter by unique combinations of LibraryCases.
  14812. */
  14813. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14814. }
  14815. /**
  14816. * LibraryCase findMany
  14817. */
  14818. export type LibraryCaseFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14819. /**
  14820. * Select specific fields to fetch from the LibraryCase
  14821. */
  14822. select?: LibraryCaseSelect<ExtArgs> | null
  14823. /**
  14824. * Omit specific fields from the LibraryCase
  14825. */
  14826. omit?: LibraryCaseOmit<ExtArgs> | null
  14827. /**
  14828. * Filter, which LibraryCases to fetch.
  14829. */
  14830. where?: LibraryCaseWhereInput
  14831. /**
  14832. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14833. *
  14834. * Determine the order of LibraryCases to fetch.
  14835. */
  14836. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14837. /**
  14838. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14839. *
  14840. * Sets the position for listing LibraryCases.
  14841. */
  14842. cursor?: LibraryCaseWhereUniqueInput
  14843. /**
  14844. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14845. *
  14846. * Take `±n` LibraryCases from the position of the cursor.
  14847. */
  14848. take?: number
  14849. /**
  14850. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14851. *
  14852. * Skip the first `n` LibraryCases.
  14853. */
  14854. skip?: number
  14855. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14856. }
  14857. /**
  14858. * LibraryCase create
  14859. */
  14860. export type LibraryCaseCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14861. /**
  14862. * Select specific fields to fetch from the LibraryCase
  14863. */
  14864. select?: LibraryCaseSelect<ExtArgs> | null
  14865. /**
  14866. * Omit specific fields from the LibraryCase
  14867. */
  14868. omit?: LibraryCaseOmit<ExtArgs> | null
  14869. /**
  14870. * The data needed to create a LibraryCase.
  14871. */
  14872. data: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  14873. }
  14874. /**
  14875. * LibraryCase createMany
  14876. */
  14877. export type LibraryCaseCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14878. /**
  14879. * The data used to create many LibraryCases.
  14880. */
  14881. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  14882. skipDuplicates?: boolean
  14883. }
  14884. /**
  14885. * LibraryCase createManyAndReturn
  14886. */
  14887. export type LibraryCaseCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14888. /**
  14889. * Select specific fields to fetch from the LibraryCase
  14890. */
  14891. select?: LibraryCaseSelectCreateManyAndReturn<ExtArgs> | null
  14892. /**
  14893. * Omit specific fields from the LibraryCase
  14894. */
  14895. omit?: LibraryCaseOmit<ExtArgs> | null
  14896. /**
  14897. * The data used to create many LibraryCases.
  14898. */
  14899. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  14900. skipDuplicates?: boolean
  14901. }
  14902. /**
  14903. * LibraryCase update
  14904. */
  14905. export type LibraryCaseUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14906. /**
  14907. * Select specific fields to fetch from the LibraryCase
  14908. */
  14909. select?: LibraryCaseSelect<ExtArgs> | null
  14910. /**
  14911. * Omit specific fields from the LibraryCase
  14912. */
  14913. omit?: LibraryCaseOmit<ExtArgs> | null
  14914. /**
  14915. * The data needed to update a LibraryCase.
  14916. */
  14917. data: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  14918. /**
  14919. * Choose, which LibraryCase to update.
  14920. */
  14921. where: LibraryCaseWhereUniqueInput
  14922. }
  14923. /**
  14924. * LibraryCase updateMany
  14925. */
  14926. export type LibraryCaseUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14927. /**
  14928. * The data used to update LibraryCases.
  14929. */
  14930. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  14931. /**
  14932. * Filter which LibraryCases to update
  14933. */
  14934. where?: LibraryCaseWhereInput
  14935. /**
  14936. * Limit how many LibraryCases to update.
  14937. */
  14938. limit?: number
  14939. }
  14940. /**
  14941. * LibraryCase updateManyAndReturn
  14942. */
  14943. export type LibraryCaseUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14944. /**
  14945. * Select specific fields to fetch from the LibraryCase
  14946. */
  14947. select?: LibraryCaseSelectUpdateManyAndReturn<ExtArgs> | null
  14948. /**
  14949. * Omit specific fields from the LibraryCase
  14950. */
  14951. omit?: LibraryCaseOmit<ExtArgs> | null
  14952. /**
  14953. * The data used to update LibraryCases.
  14954. */
  14955. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  14956. /**
  14957. * Filter which LibraryCases to update
  14958. */
  14959. where?: LibraryCaseWhereInput
  14960. /**
  14961. * Limit how many LibraryCases to update.
  14962. */
  14963. limit?: number
  14964. }
  14965. /**
  14966. * LibraryCase upsert
  14967. */
  14968. export type LibraryCaseUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14969. /**
  14970. * Select specific fields to fetch from the LibraryCase
  14971. */
  14972. select?: LibraryCaseSelect<ExtArgs> | null
  14973. /**
  14974. * Omit specific fields from the LibraryCase
  14975. */
  14976. omit?: LibraryCaseOmit<ExtArgs> | null
  14977. /**
  14978. * The filter to search for the LibraryCase to update in case it exists.
  14979. */
  14980. where: LibraryCaseWhereUniqueInput
  14981. /**
  14982. * In case the LibraryCase found by the `where` argument doesn't exist, create a new LibraryCase with this data.
  14983. */
  14984. create: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  14985. /**
  14986. * In case the LibraryCase was found with the provided `where` argument, update it with this data.
  14987. */
  14988. update: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  14989. }
  14990. /**
  14991. * LibraryCase delete
  14992. */
  14993. export type LibraryCaseDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14994. /**
  14995. * Select specific fields to fetch from the LibraryCase
  14996. */
  14997. select?: LibraryCaseSelect<ExtArgs> | null
  14998. /**
  14999. * Omit specific fields from the LibraryCase
  15000. */
  15001. omit?: LibraryCaseOmit<ExtArgs> | null
  15002. /**
  15003. * Filter which LibraryCase to delete.
  15004. */
  15005. where: LibraryCaseWhereUniqueInput
  15006. }
  15007. /**
  15008. * LibraryCase deleteMany
  15009. */
  15010. export type LibraryCaseDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15011. /**
  15012. * Filter which LibraryCases to delete
  15013. */
  15014. where?: LibraryCaseWhereInput
  15015. /**
  15016. * Limit how many LibraryCases to delete.
  15017. */
  15018. limit?: number
  15019. }
  15020. /**
  15021. * LibraryCase without action
  15022. */
  15023. export type LibraryCaseDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15024. /**
  15025. * Select specific fields to fetch from the LibraryCase
  15026. */
  15027. select?: LibraryCaseSelect<ExtArgs> | null
  15028. /**
  15029. * Omit specific fields from the LibraryCase
  15030. */
  15031. omit?: LibraryCaseOmit<ExtArgs> | null
  15032. }
  15033. /**
  15034. * Model ShareLink
  15035. */
  15036. export type AggregateShareLink = {
  15037. _count: ShareLinkCountAggregateOutputType | null
  15038. _min: ShareLinkMinAggregateOutputType | null
  15039. _max: ShareLinkMaxAggregateOutputType | null
  15040. }
  15041. export type ShareLinkMinAggregateOutputType = {
  15042. id: string | null
  15043. workspaceId: string | null
  15044. token: string | null
  15045. expiresAt: Date | null
  15046. createdAt: Date | null
  15047. }
  15048. export type ShareLinkMaxAggregateOutputType = {
  15049. id: string | null
  15050. workspaceId: string | null
  15051. token: string | null
  15052. expiresAt: Date | null
  15053. createdAt: Date | null
  15054. }
  15055. export type ShareLinkCountAggregateOutputType = {
  15056. id: number
  15057. workspaceId: number
  15058. token: number
  15059. expiresAt: number
  15060. createdAt: number
  15061. _all: number
  15062. }
  15063. export type ShareLinkMinAggregateInputType = {
  15064. id?: true
  15065. workspaceId?: true
  15066. token?: true
  15067. expiresAt?: true
  15068. createdAt?: true
  15069. }
  15070. export type ShareLinkMaxAggregateInputType = {
  15071. id?: true
  15072. workspaceId?: true
  15073. token?: true
  15074. expiresAt?: true
  15075. createdAt?: true
  15076. }
  15077. export type ShareLinkCountAggregateInputType = {
  15078. id?: true
  15079. workspaceId?: true
  15080. token?: true
  15081. expiresAt?: true
  15082. createdAt?: true
  15083. _all?: true
  15084. }
  15085. export type ShareLinkAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15086. /**
  15087. * Filter which ShareLink to aggregate.
  15088. */
  15089. where?: ShareLinkWhereInput
  15090. /**
  15091. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15092. *
  15093. * Determine the order of ShareLinks to fetch.
  15094. */
  15095. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15096. /**
  15097. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15098. *
  15099. * Sets the start position
  15100. */
  15101. cursor?: ShareLinkWhereUniqueInput
  15102. /**
  15103. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15104. *
  15105. * Take `±n` ShareLinks from the position of the cursor.
  15106. */
  15107. take?: number
  15108. /**
  15109. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15110. *
  15111. * Skip the first `n` ShareLinks.
  15112. */
  15113. skip?: number
  15114. /**
  15115. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15116. *
  15117. * Count returned ShareLinks
  15118. **/
  15119. _count?: true | ShareLinkCountAggregateInputType
  15120. /**
  15121. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15122. *
  15123. * Select which fields to find the minimum value
  15124. **/
  15125. _min?: ShareLinkMinAggregateInputType
  15126. /**
  15127. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15128. *
  15129. * Select which fields to find the maximum value
  15130. **/
  15131. _max?: ShareLinkMaxAggregateInputType
  15132. }
  15133. export type GetShareLinkAggregateType<T extends ShareLinkAggregateArgs> = {
  15134. [P in keyof T & keyof AggregateShareLink]: P extends '_count' | 'count'
  15135. ? T[P] extends true
  15136. ? number
  15137. : GetScalarType<T[P], AggregateShareLink[P]>
  15138. : GetScalarType<T[P], AggregateShareLink[P]>
  15139. }
  15140. export type ShareLinkGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15141. where?: ShareLinkWhereInput
  15142. orderBy?: ShareLinkOrderByWithAggregationInput | ShareLinkOrderByWithAggregationInput[]
  15143. by: ShareLinkScalarFieldEnum[] | ShareLinkScalarFieldEnum
  15144. having?: ShareLinkScalarWhereWithAggregatesInput
  15145. take?: number
  15146. skip?: number
  15147. _count?: ShareLinkCountAggregateInputType | true
  15148. _min?: ShareLinkMinAggregateInputType
  15149. _max?: ShareLinkMaxAggregateInputType
  15150. }
  15151. export type ShareLinkGroupByOutputType = {
  15152. id: string
  15153. workspaceId: string
  15154. token: string
  15155. expiresAt: Date | null
  15156. createdAt: Date
  15157. _count: ShareLinkCountAggregateOutputType | null
  15158. _min: ShareLinkMinAggregateOutputType | null
  15159. _max: ShareLinkMaxAggregateOutputType | null
  15160. }
  15161. type GetShareLinkGroupByPayload<T extends ShareLinkGroupByArgs> = Prisma.PrismaPromise<
  15162. Array<
  15163. PickEnumerable<ShareLinkGroupByOutputType, T['by']> &
  15164. {
  15165. [P in ((keyof T) & (keyof ShareLinkGroupByOutputType))]: P extends '_count'
  15166. ? T[P] extends boolean
  15167. ? number
  15168. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  15169. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  15170. }
  15171. >
  15172. >
  15173. export type ShareLinkSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15174. id?: boolean
  15175. workspaceId?: boolean
  15176. token?: boolean
  15177. expiresAt?: boolean
  15178. createdAt?: boolean
  15179. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15180. }, ExtArgs["result"]["shareLink"]>
  15181. export type ShareLinkSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15182. id?: boolean
  15183. workspaceId?: boolean
  15184. token?: boolean
  15185. expiresAt?: boolean
  15186. createdAt?: boolean
  15187. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15188. }, ExtArgs["result"]["shareLink"]>
  15189. export type ShareLinkSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15190. id?: boolean
  15191. workspaceId?: boolean
  15192. token?: boolean
  15193. expiresAt?: boolean
  15194. createdAt?: boolean
  15195. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15196. }, ExtArgs["result"]["shareLink"]>
  15197. export type ShareLinkSelectScalar = {
  15198. id?: boolean
  15199. workspaceId?: boolean
  15200. token?: boolean
  15201. expiresAt?: boolean
  15202. createdAt?: boolean
  15203. }
  15204. export type ShareLinkOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "token" | "expiresAt" | "createdAt", ExtArgs["result"]["shareLink"]>
  15205. export type ShareLinkInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15206. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15207. }
  15208. export type ShareLinkIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15209. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15210. }
  15211. export type ShareLinkIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15212. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15213. }
  15214. export type $ShareLinkPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15215. name: "ShareLink"
  15216. objects: {
  15217. workspace: Prisma.$WorkspacePayload<ExtArgs>
  15218. }
  15219. scalars: $Extensions.GetPayloadResult<{
  15220. id: string
  15221. workspaceId: string
  15222. token: string
  15223. expiresAt: Date | null
  15224. createdAt: Date
  15225. }, ExtArgs["result"]["shareLink"]>
  15226. composites: {}
  15227. }
  15228. type ShareLinkGetPayload<S extends boolean | null | undefined | ShareLinkDefaultArgs> = $Result.GetResult<Prisma.$ShareLinkPayload, S>
  15229. type ShareLinkCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  15230. Omit<ShareLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  15231. select?: ShareLinkCountAggregateInputType | true
  15232. }
  15233. export interface ShareLinkDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  15234. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShareLink'], meta: { name: 'ShareLink' } }
  15235. /**
  15236. * Find zero or one ShareLink that matches the filter.
  15237. * @param {ShareLinkFindUniqueArgs} args - Arguments to find a ShareLink
  15238. * @example
  15239. * // Get one ShareLink
  15240. * const shareLink = await prisma.shareLink.findUnique({
  15241. * where: {
  15242. * // ... provide filter here
  15243. * }
  15244. * })
  15245. */
  15246. findUnique<T extends ShareLinkFindUniqueArgs>(args: SelectSubset<T, ShareLinkFindUniqueArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15247. /**
  15248. * Find one ShareLink that matches the filter or throw an error with `error.code='P2025'`
  15249. * if no matches were found.
  15250. * @param {ShareLinkFindUniqueOrThrowArgs} args - Arguments to find a ShareLink
  15251. * @example
  15252. * // Get one ShareLink
  15253. * const shareLink = await prisma.shareLink.findUniqueOrThrow({
  15254. * where: {
  15255. * // ... provide filter here
  15256. * }
  15257. * })
  15258. */
  15259. findUniqueOrThrow<T extends ShareLinkFindUniqueOrThrowArgs>(args: SelectSubset<T, ShareLinkFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15260. /**
  15261. * Find the first ShareLink that matches the filter.
  15262. * Note, that providing `undefined` is treated as the value not being there.
  15263. * Read more here: https://pris.ly/d/null-undefined
  15264. * @param {ShareLinkFindFirstArgs} args - Arguments to find a ShareLink
  15265. * @example
  15266. * // Get one ShareLink
  15267. * const shareLink = await prisma.shareLink.findFirst({
  15268. * where: {
  15269. * // ... provide filter here
  15270. * }
  15271. * })
  15272. */
  15273. findFirst<T extends ShareLinkFindFirstArgs>(args?: SelectSubset<T, ShareLinkFindFirstArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15274. /**
  15275. * Find the first ShareLink that matches the filter or
  15276. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  15277. * Note, that providing `undefined` is treated as the value not being there.
  15278. * Read more here: https://pris.ly/d/null-undefined
  15279. * @param {ShareLinkFindFirstOrThrowArgs} args - Arguments to find a ShareLink
  15280. * @example
  15281. * // Get one ShareLink
  15282. * const shareLink = await prisma.shareLink.findFirstOrThrow({
  15283. * where: {
  15284. * // ... provide filter here
  15285. * }
  15286. * })
  15287. */
  15288. findFirstOrThrow<T extends ShareLinkFindFirstOrThrowArgs>(args?: SelectSubset<T, ShareLinkFindFirstOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15289. /**
  15290. * Find zero or more ShareLinks that matches the filter.
  15291. * Note, that providing `undefined` is treated as the value not being there.
  15292. * Read more here: https://pris.ly/d/null-undefined
  15293. * @param {ShareLinkFindManyArgs} args - Arguments to filter and select certain fields only.
  15294. * @example
  15295. * // Get all ShareLinks
  15296. * const shareLinks = await prisma.shareLink.findMany()
  15297. *
  15298. * // Get first 10 ShareLinks
  15299. * const shareLinks = await prisma.shareLink.findMany({ take: 10 })
  15300. *
  15301. * // Only select the `id`
  15302. * const shareLinkWithIdOnly = await prisma.shareLink.findMany({ select: { id: true } })
  15303. *
  15304. */
  15305. findMany<T extends ShareLinkFindManyArgs>(args?: SelectSubset<T, ShareLinkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  15306. /**
  15307. * Create a ShareLink.
  15308. * @param {ShareLinkCreateArgs} args - Arguments to create a ShareLink.
  15309. * @example
  15310. * // Create one ShareLink
  15311. * const ShareLink = await prisma.shareLink.create({
  15312. * data: {
  15313. * // ... data to create a ShareLink
  15314. * }
  15315. * })
  15316. *
  15317. */
  15318. create<T extends ShareLinkCreateArgs>(args: SelectSubset<T, ShareLinkCreateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15319. /**
  15320. * Create many ShareLinks.
  15321. * @param {ShareLinkCreateManyArgs} args - Arguments to create many ShareLinks.
  15322. * @example
  15323. * // Create many ShareLinks
  15324. * const shareLink = await prisma.shareLink.createMany({
  15325. * data: [
  15326. * // ... provide data here
  15327. * ]
  15328. * })
  15329. *
  15330. */
  15331. createMany<T extends ShareLinkCreateManyArgs>(args?: SelectSubset<T, ShareLinkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15332. /**
  15333. * Create many ShareLinks and returns the data saved in the database.
  15334. * @param {ShareLinkCreateManyAndReturnArgs} args - Arguments to create many ShareLinks.
  15335. * @example
  15336. * // Create many ShareLinks
  15337. * const shareLink = await prisma.shareLink.createManyAndReturn({
  15338. * data: [
  15339. * // ... provide data here
  15340. * ]
  15341. * })
  15342. *
  15343. * // Create many ShareLinks and only return the `id`
  15344. * const shareLinkWithIdOnly = await prisma.shareLink.createManyAndReturn({
  15345. * select: { id: true },
  15346. * data: [
  15347. * // ... provide data here
  15348. * ]
  15349. * })
  15350. * Note, that providing `undefined` is treated as the value not being there.
  15351. * Read more here: https://pris.ly/d/null-undefined
  15352. *
  15353. */
  15354. createManyAndReturn<T extends ShareLinkCreateManyAndReturnArgs>(args?: SelectSubset<T, ShareLinkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  15355. /**
  15356. * Delete a ShareLink.
  15357. * @param {ShareLinkDeleteArgs} args - Arguments to delete one ShareLink.
  15358. * @example
  15359. * // Delete one ShareLink
  15360. * const ShareLink = await prisma.shareLink.delete({
  15361. * where: {
  15362. * // ... filter to delete one ShareLink
  15363. * }
  15364. * })
  15365. *
  15366. */
  15367. delete<T extends ShareLinkDeleteArgs>(args: SelectSubset<T, ShareLinkDeleteArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15368. /**
  15369. * Update one ShareLink.
  15370. * @param {ShareLinkUpdateArgs} args - Arguments to update one ShareLink.
  15371. * @example
  15372. * // Update one ShareLink
  15373. * const shareLink = await prisma.shareLink.update({
  15374. * where: {
  15375. * // ... provide filter here
  15376. * },
  15377. * data: {
  15378. * // ... provide data here
  15379. * }
  15380. * })
  15381. *
  15382. */
  15383. update<T extends ShareLinkUpdateArgs>(args: SelectSubset<T, ShareLinkUpdateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15384. /**
  15385. * Delete zero or more ShareLinks.
  15386. * @param {ShareLinkDeleteManyArgs} args - Arguments to filter ShareLinks to delete.
  15387. * @example
  15388. * // Delete a few ShareLinks
  15389. * const { count } = await prisma.shareLink.deleteMany({
  15390. * where: {
  15391. * // ... provide filter here
  15392. * }
  15393. * })
  15394. *
  15395. */
  15396. deleteMany<T extends ShareLinkDeleteManyArgs>(args?: SelectSubset<T, ShareLinkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15397. /**
  15398. * Update zero or more ShareLinks.
  15399. * Note, that providing `undefined` is treated as the value not being there.
  15400. * Read more here: https://pris.ly/d/null-undefined
  15401. * @param {ShareLinkUpdateManyArgs} args - Arguments to update one or more rows.
  15402. * @example
  15403. * // Update many ShareLinks
  15404. * const shareLink = await prisma.shareLink.updateMany({
  15405. * where: {
  15406. * // ... provide filter here
  15407. * },
  15408. * data: {
  15409. * // ... provide data here
  15410. * }
  15411. * })
  15412. *
  15413. */
  15414. updateMany<T extends ShareLinkUpdateManyArgs>(args: SelectSubset<T, ShareLinkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15415. /**
  15416. * Update zero or more ShareLinks and returns the data updated in the database.
  15417. * @param {ShareLinkUpdateManyAndReturnArgs} args - Arguments to update many ShareLinks.
  15418. * @example
  15419. * // Update many ShareLinks
  15420. * const shareLink = await prisma.shareLink.updateManyAndReturn({
  15421. * where: {
  15422. * // ... provide filter here
  15423. * },
  15424. * data: [
  15425. * // ... provide data here
  15426. * ]
  15427. * })
  15428. *
  15429. * // Update zero or more ShareLinks and only return the `id`
  15430. * const shareLinkWithIdOnly = await prisma.shareLink.updateManyAndReturn({
  15431. * select: { id: true },
  15432. * where: {
  15433. * // ... provide filter here
  15434. * },
  15435. * data: [
  15436. * // ... provide data here
  15437. * ]
  15438. * })
  15439. * Note, that providing `undefined` is treated as the value not being there.
  15440. * Read more here: https://pris.ly/d/null-undefined
  15441. *
  15442. */
  15443. updateManyAndReturn<T extends ShareLinkUpdateManyAndReturnArgs>(args: SelectSubset<T, ShareLinkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  15444. /**
  15445. * Create or update one ShareLink.
  15446. * @param {ShareLinkUpsertArgs} args - Arguments to update or create a ShareLink.
  15447. * @example
  15448. * // Update or create a ShareLink
  15449. * const shareLink = await prisma.shareLink.upsert({
  15450. * create: {
  15451. * // ... data to create a ShareLink
  15452. * },
  15453. * update: {
  15454. * // ... in case it already exists, update
  15455. * },
  15456. * where: {
  15457. * // ... the filter for the ShareLink we want to update
  15458. * }
  15459. * })
  15460. */
  15461. upsert<T extends ShareLinkUpsertArgs>(args: SelectSubset<T, ShareLinkUpsertArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15462. /**
  15463. * Count the number of ShareLinks.
  15464. * Note, that providing `undefined` is treated as the value not being there.
  15465. * Read more here: https://pris.ly/d/null-undefined
  15466. * @param {ShareLinkCountArgs} args - Arguments to filter ShareLinks to count.
  15467. * @example
  15468. * // Count the number of ShareLinks
  15469. * const count = await prisma.shareLink.count({
  15470. * where: {
  15471. * // ... the filter for the ShareLinks we want to count
  15472. * }
  15473. * })
  15474. **/
  15475. count<T extends ShareLinkCountArgs>(
  15476. args?: Subset<T, ShareLinkCountArgs>,
  15477. ): Prisma.PrismaPromise<
  15478. T extends $Utils.Record<'select', any>
  15479. ? T['select'] extends true
  15480. ? number
  15481. : GetScalarType<T['select'], ShareLinkCountAggregateOutputType>
  15482. : number
  15483. >
  15484. /**
  15485. * Allows you to perform aggregations operations on a ShareLink.
  15486. * Note, that providing `undefined` is treated as the value not being there.
  15487. * Read more here: https://pris.ly/d/null-undefined
  15488. * @param {ShareLinkAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  15489. * @example
  15490. * // Ordered by age ascending
  15491. * // Where email contains prisma.io
  15492. * // Limited to the 10 users
  15493. * const aggregations = await prisma.user.aggregate({
  15494. * _avg: {
  15495. * age: true,
  15496. * },
  15497. * where: {
  15498. * email: {
  15499. * contains: "prisma.io",
  15500. * },
  15501. * },
  15502. * orderBy: {
  15503. * age: "asc",
  15504. * },
  15505. * take: 10,
  15506. * })
  15507. **/
  15508. aggregate<T extends ShareLinkAggregateArgs>(args: Subset<T, ShareLinkAggregateArgs>): Prisma.PrismaPromise<GetShareLinkAggregateType<T>>
  15509. /**
  15510. * Group by ShareLink.
  15511. * Note, that providing `undefined` is treated as the value not being there.
  15512. * Read more here: https://pris.ly/d/null-undefined
  15513. * @param {ShareLinkGroupByArgs} args - Group by arguments.
  15514. * @example
  15515. * // Group by city, order by createdAt, get count
  15516. * const result = await prisma.user.groupBy({
  15517. * by: ['city', 'createdAt'],
  15518. * orderBy: {
  15519. * createdAt: true
  15520. * },
  15521. * _count: {
  15522. * _all: true
  15523. * },
  15524. * })
  15525. *
  15526. **/
  15527. groupBy<
  15528. T extends ShareLinkGroupByArgs,
  15529. HasSelectOrTake extends Or<
  15530. Extends<'skip', Keys<T>>,
  15531. Extends<'take', Keys<T>>
  15532. >,
  15533. OrderByArg extends True extends HasSelectOrTake
  15534. ? { orderBy: ShareLinkGroupByArgs['orderBy'] }
  15535. : { orderBy?: ShareLinkGroupByArgs['orderBy'] },
  15536. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  15537. ByFields extends MaybeTupleToUnion<T['by']>,
  15538. ByValid extends Has<ByFields, OrderFields>,
  15539. HavingFields extends GetHavingFields<T['having']>,
  15540. HavingValid extends Has<ByFields, HavingFields>,
  15541. ByEmpty extends T['by'] extends never[] ? True : False,
  15542. InputErrors extends ByEmpty extends True
  15543. ? `Error: "by" must not be empty.`
  15544. : HavingValid extends False
  15545. ? {
  15546. [P in HavingFields]: P extends ByFields
  15547. ? never
  15548. : P extends string
  15549. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  15550. : [
  15551. Error,
  15552. 'Field ',
  15553. P,
  15554. ` in "having" needs to be provided in "by"`,
  15555. ]
  15556. }[HavingFields]
  15557. : 'take' extends Keys<T>
  15558. ? 'orderBy' extends Keys<T>
  15559. ? ByValid extends True
  15560. ? {}
  15561. : {
  15562. [P in OrderFields]: P extends ByFields
  15563. ? never
  15564. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15565. }[OrderFields]
  15566. : 'Error: If you provide "take", you also need to provide "orderBy"'
  15567. : 'skip' extends Keys<T>
  15568. ? 'orderBy' extends Keys<T>
  15569. ? ByValid extends True
  15570. ? {}
  15571. : {
  15572. [P in OrderFields]: P extends ByFields
  15573. ? never
  15574. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15575. }[OrderFields]
  15576. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  15577. : ByValid extends True
  15578. ? {}
  15579. : {
  15580. [P in OrderFields]: P extends ByFields
  15581. ? never
  15582. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15583. }[OrderFields]
  15584. >(args: SubsetIntersection<T, ShareLinkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShareLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  15585. /**
  15586. * Fields of the ShareLink model
  15587. */
  15588. readonly fields: ShareLinkFieldRefs;
  15589. }
  15590. /**
  15591. * The delegate class that acts as a "Promise-like" for ShareLink.
  15592. * Why is this prefixed with `Prisma__`?
  15593. * Because we want to prevent naming conflicts as mentioned in
  15594. * https://github.com/prisma/prisma-client-js/issues/707
  15595. */
  15596. export interface Prisma__ShareLinkClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  15597. readonly [Symbol.toStringTag]: "PrismaPromise"
  15598. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  15599. /**
  15600. * Attaches callbacks for the resolution and/or rejection of the Promise.
  15601. * @param onfulfilled The callback to execute when the Promise is resolved.
  15602. * @param onrejected The callback to execute when the Promise is rejected.
  15603. * @returns A Promise for the completion of which ever callback is executed.
  15604. */
  15605. 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>
  15606. /**
  15607. * Attaches a callback for only the rejection of the Promise.
  15608. * @param onrejected The callback to execute when the Promise is rejected.
  15609. * @returns A Promise for the completion of the callback.
  15610. */
  15611. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  15612. /**
  15613. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  15614. * resolved value cannot be modified from the callback.
  15615. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  15616. * @returns A Promise for the completion of the callback.
  15617. */
  15618. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  15619. }
  15620. /**
  15621. * Fields of the ShareLink model
  15622. */
  15623. interface ShareLinkFieldRefs {
  15624. readonly id: FieldRef<"ShareLink", 'String'>
  15625. readonly workspaceId: FieldRef<"ShareLink", 'String'>
  15626. readonly token: FieldRef<"ShareLink", 'String'>
  15627. readonly expiresAt: FieldRef<"ShareLink", 'DateTime'>
  15628. readonly createdAt: FieldRef<"ShareLink", 'DateTime'>
  15629. }
  15630. // Custom InputTypes
  15631. /**
  15632. * ShareLink findUnique
  15633. */
  15634. export type ShareLinkFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15635. /**
  15636. * Select specific fields to fetch from the ShareLink
  15637. */
  15638. select?: ShareLinkSelect<ExtArgs> | null
  15639. /**
  15640. * Omit specific fields from the ShareLink
  15641. */
  15642. omit?: ShareLinkOmit<ExtArgs> | null
  15643. /**
  15644. * Choose, which related nodes to fetch as well
  15645. */
  15646. include?: ShareLinkInclude<ExtArgs> | null
  15647. /**
  15648. * Filter, which ShareLink to fetch.
  15649. */
  15650. where: ShareLinkWhereUniqueInput
  15651. }
  15652. /**
  15653. * ShareLink findUniqueOrThrow
  15654. */
  15655. export type ShareLinkFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15656. /**
  15657. * Select specific fields to fetch from the ShareLink
  15658. */
  15659. select?: ShareLinkSelect<ExtArgs> | null
  15660. /**
  15661. * Omit specific fields from the ShareLink
  15662. */
  15663. omit?: ShareLinkOmit<ExtArgs> | null
  15664. /**
  15665. * Choose, which related nodes to fetch as well
  15666. */
  15667. include?: ShareLinkInclude<ExtArgs> | null
  15668. /**
  15669. * Filter, which ShareLink to fetch.
  15670. */
  15671. where: ShareLinkWhereUniqueInput
  15672. }
  15673. /**
  15674. * ShareLink findFirst
  15675. */
  15676. export type ShareLinkFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15677. /**
  15678. * Select specific fields to fetch from the ShareLink
  15679. */
  15680. select?: ShareLinkSelect<ExtArgs> | null
  15681. /**
  15682. * Omit specific fields from the ShareLink
  15683. */
  15684. omit?: ShareLinkOmit<ExtArgs> | null
  15685. /**
  15686. * Choose, which related nodes to fetch as well
  15687. */
  15688. include?: ShareLinkInclude<ExtArgs> | null
  15689. /**
  15690. * Filter, which ShareLink to fetch.
  15691. */
  15692. where?: ShareLinkWhereInput
  15693. /**
  15694. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15695. *
  15696. * Determine the order of ShareLinks to fetch.
  15697. */
  15698. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15699. /**
  15700. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15701. *
  15702. * Sets the position for searching for ShareLinks.
  15703. */
  15704. cursor?: ShareLinkWhereUniqueInput
  15705. /**
  15706. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15707. *
  15708. * Take `±n` ShareLinks from the position of the cursor.
  15709. */
  15710. take?: number
  15711. /**
  15712. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15713. *
  15714. * Skip the first `n` ShareLinks.
  15715. */
  15716. skip?: number
  15717. /**
  15718. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15719. *
  15720. * Filter by unique combinations of ShareLinks.
  15721. */
  15722. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15723. }
  15724. /**
  15725. * ShareLink findFirstOrThrow
  15726. */
  15727. export type ShareLinkFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15728. /**
  15729. * Select specific fields to fetch from the ShareLink
  15730. */
  15731. select?: ShareLinkSelect<ExtArgs> | null
  15732. /**
  15733. * Omit specific fields from the ShareLink
  15734. */
  15735. omit?: ShareLinkOmit<ExtArgs> | null
  15736. /**
  15737. * Choose, which related nodes to fetch as well
  15738. */
  15739. include?: ShareLinkInclude<ExtArgs> | null
  15740. /**
  15741. * Filter, which ShareLink to fetch.
  15742. */
  15743. where?: ShareLinkWhereInput
  15744. /**
  15745. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15746. *
  15747. * Determine the order of ShareLinks to fetch.
  15748. */
  15749. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15750. /**
  15751. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15752. *
  15753. * Sets the position for searching for ShareLinks.
  15754. */
  15755. cursor?: ShareLinkWhereUniqueInput
  15756. /**
  15757. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15758. *
  15759. * Take `±n` ShareLinks from the position of the cursor.
  15760. */
  15761. take?: number
  15762. /**
  15763. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15764. *
  15765. * Skip the first `n` ShareLinks.
  15766. */
  15767. skip?: number
  15768. /**
  15769. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15770. *
  15771. * Filter by unique combinations of ShareLinks.
  15772. */
  15773. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15774. }
  15775. /**
  15776. * ShareLink findMany
  15777. */
  15778. export type ShareLinkFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15779. /**
  15780. * Select specific fields to fetch from the ShareLink
  15781. */
  15782. select?: ShareLinkSelect<ExtArgs> | null
  15783. /**
  15784. * Omit specific fields from the ShareLink
  15785. */
  15786. omit?: ShareLinkOmit<ExtArgs> | null
  15787. /**
  15788. * Choose, which related nodes to fetch as well
  15789. */
  15790. include?: ShareLinkInclude<ExtArgs> | null
  15791. /**
  15792. * Filter, which ShareLinks to fetch.
  15793. */
  15794. where?: ShareLinkWhereInput
  15795. /**
  15796. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15797. *
  15798. * Determine the order of ShareLinks to fetch.
  15799. */
  15800. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  15801. /**
  15802. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15803. *
  15804. * Sets the position for listing ShareLinks.
  15805. */
  15806. cursor?: ShareLinkWhereUniqueInput
  15807. /**
  15808. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15809. *
  15810. * Take `±n` ShareLinks from the position of the cursor.
  15811. */
  15812. take?: number
  15813. /**
  15814. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15815. *
  15816. * Skip the first `n` ShareLinks.
  15817. */
  15818. skip?: number
  15819. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  15820. }
  15821. /**
  15822. * ShareLink create
  15823. */
  15824. export type ShareLinkCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15825. /**
  15826. * Select specific fields to fetch from the ShareLink
  15827. */
  15828. select?: ShareLinkSelect<ExtArgs> | null
  15829. /**
  15830. * Omit specific fields from the ShareLink
  15831. */
  15832. omit?: ShareLinkOmit<ExtArgs> | null
  15833. /**
  15834. * Choose, which related nodes to fetch as well
  15835. */
  15836. include?: ShareLinkInclude<ExtArgs> | null
  15837. /**
  15838. * The data needed to create a ShareLink.
  15839. */
  15840. data: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  15841. }
  15842. /**
  15843. * ShareLink createMany
  15844. */
  15845. export type ShareLinkCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15846. /**
  15847. * The data used to create many ShareLinks.
  15848. */
  15849. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  15850. skipDuplicates?: boolean
  15851. }
  15852. /**
  15853. * ShareLink createManyAndReturn
  15854. */
  15855. export type ShareLinkCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15856. /**
  15857. * Select specific fields to fetch from the ShareLink
  15858. */
  15859. select?: ShareLinkSelectCreateManyAndReturn<ExtArgs> | null
  15860. /**
  15861. * Omit specific fields from the ShareLink
  15862. */
  15863. omit?: ShareLinkOmit<ExtArgs> | null
  15864. /**
  15865. * The data used to create many ShareLinks.
  15866. */
  15867. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  15868. skipDuplicates?: boolean
  15869. /**
  15870. * Choose, which related nodes to fetch as well
  15871. */
  15872. include?: ShareLinkIncludeCreateManyAndReturn<ExtArgs> | null
  15873. }
  15874. /**
  15875. * ShareLink update
  15876. */
  15877. export type ShareLinkUpdateArgs<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 data needed to update a ShareLink.
  15892. */
  15893. data: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  15894. /**
  15895. * Choose, which ShareLink to update.
  15896. */
  15897. where: ShareLinkWhereUniqueInput
  15898. }
  15899. /**
  15900. * ShareLink updateMany
  15901. */
  15902. export type ShareLinkUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15903. /**
  15904. * The data used to update ShareLinks.
  15905. */
  15906. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  15907. /**
  15908. * Filter which ShareLinks to update
  15909. */
  15910. where?: ShareLinkWhereInput
  15911. /**
  15912. * Limit how many ShareLinks to update.
  15913. */
  15914. limit?: number
  15915. }
  15916. /**
  15917. * ShareLink updateManyAndReturn
  15918. */
  15919. export type ShareLinkUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15920. /**
  15921. * Select specific fields to fetch from the ShareLink
  15922. */
  15923. select?: ShareLinkSelectUpdateManyAndReturn<ExtArgs> | null
  15924. /**
  15925. * Omit specific fields from the ShareLink
  15926. */
  15927. omit?: ShareLinkOmit<ExtArgs> | null
  15928. /**
  15929. * The data used to update ShareLinks.
  15930. */
  15931. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  15932. /**
  15933. * Filter which ShareLinks to update
  15934. */
  15935. where?: ShareLinkWhereInput
  15936. /**
  15937. * Limit how many ShareLinks to update.
  15938. */
  15939. limit?: number
  15940. /**
  15941. * Choose, which related nodes to fetch as well
  15942. */
  15943. include?: ShareLinkIncludeUpdateManyAndReturn<ExtArgs> | null
  15944. }
  15945. /**
  15946. * ShareLink upsert
  15947. */
  15948. export type ShareLinkUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15949. /**
  15950. * Select specific fields to fetch from the ShareLink
  15951. */
  15952. select?: ShareLinkSelect<ExtArgs> | null
  15953. /**
  15954. * Omit specific fields from the ShareLink
  15955. */
  15956. omit?: ShareLinkOmit<ExtArgs> | null
  15957. /**
  15958. * Choose, which related nodes to fetch as well
  15959. */
  15960. include?: ShareLinkInclude<ExtArgs> | null
  15961. /**
  15962. * The filter to search for the ShareLink to update in case it exists.
  15963. */
  15964. where: ShareLinkWhereUniqueInput
  15965. /**
  15966. * In case the ShareLink found by the `where` argument doesn't exist, create a new ShareLink with this data.
  15967. */
  15968. create: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  15969. /**
  15970. * In case the ShareLink was found with the provided `where` argument, update it with this data.
  15971. */
  15972. update: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  15973. }
  15974. /**
  15975. * ShareLink delete
  15976. */
  15977. export type ShareLinkDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15978. /**
  15979. * Select specific fields to fetch from the ShareLink
  15980. */
  15981. select?: ShareLinkSelect<ExtArgs> | null
  15982. /**
  15983. * Omit specific fields from the ShareLink
  15984. */
  15985. omit?: ShareLinkOmit<ExtArgs> | null
  15986. /**
  15987. * Choose, which related nodes to fetch as well
  15988. */
  15989. include?: ShareLinkInclude<ExtArgs> | null
  15990. /**
  15991. * Filter which ShareLink to delete.
  15992. */
  15993. where: ShareLinkWhereUniqueInput
  15994. }
  15995. /**
  15996. * ShareLink deleteMany
  15997. */
  15998. export type ShareLinkDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15999. /**
  16000. * Filter which ShareLinks to delete
  16001. */
  16002. where?: ShareLinkWhereInput
  16003. /**
  16004. * Limit how many ShareLinks to delete.
  16005. */
  16006. limit?: number
  16007. }
  16008. /**
  16009. * ShareLink without action
  16010. */
  16011. export type ShareLinkDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16012. /**
  16013. * Select specific fields to fetch from the ShareLink
  16014. */
  16015. select?: ShareLinkSelect<ExtArgs> | null
  16016. /**
  16017. * Omit specific fields from the ShareLink
  16018. */
  16019. omit?: ShareLinkOmit<ExtArgs> | null
  16020. /**
  16021. * Choose, which related nodes to fetch as well
  16022. */
  16023. include?: ShareLinkInclude<ExtArgs> | null
  16024. }
  16025. /**
  16026. * Enums
  16027. */
  16028. export const TransactionIsolationLevel: {
  16029. ReadUncommitted: 'ReadUncommitted',
  16030. ReadCommitted: 'ReadCommitted',
  16031. RepeatableRead: 'RepeatableRead',
  16032. Serializable: 'Serializable'
  16033. };
  16034. export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
  16035. export const WorkspaceScalarFieldEnum: {
  16036. id: 'id',
  16037. name: 'name',
  16038. slug: 'slug',
  16039. sector: 'sector',
  16040. companySize: 'companySize',
  16041. contactEmail: 'contactEmail',
  16042. tier: 'tier',
  16043. llmCallsThisMonth: 'llmCallsThisMonth',
  16044. llmCallsResetAt: 'llmCallsResetAt',
  16045. autoRelanceEnabled: 'autoRelanceEnabled',
  16046. exportsThisMonth: 'exportsThisMonth',
  16047. exportsResetAt: 'exportsResetAt',
  16048. lastVisitedAt: 'lastVisitedAt',
  16049. onboardingDismissed: 'onboardingDismissed',
  16050. createdAt: 'createdAt',
  16051. updatedAt: 'updatedAt',
  16052. ownerId: 'ownerId'
  16053. };
  16054. export type WorkspaceScalarFieldEnum = (typeof WorkspaceScalarFieldEnum)[keyof typeof WorkspaceScalarFieldEnum]
  16055. export const ManualRelanceLogScalarFieldEnum: {
  16056. id: 'id',
  16057. workspaceId: 'workspaceId',
  16058. subject: 'subject',
  16059. recipientCount: 'recipientCount',
  16060. sentCount: 'sentCount',
  16061. failedCount: 'failedCount',
  16062. sentAt: 'sentAt'
  16063. };
  16064. export type ManualRelanceLogScalarFieldEnum = (typeof ManualRelanceLogScalarFieldEnum)[keyof typeof ManualRelanceLogScalarFieldEnum]
  16065. export const ContributorScalarFieldEnum: {
  16066. id: 'id',
  16067. workspaceId: 'workspaceId',
  16068. email: 'email',
  16069. service: 'service',
  16070. status: 'status',
  16071. invitedAt: 'invitedAt',
  16072. lastRemindedAt: 'lastRemindedAt',
  16073. createdAt: 'createdAt'
  16074. };
  16075. export type ContributorScalarFieldEnum = (typeof ContributorScalarFieldEnum)[keyof typeof ContributorScalarFieldEnum]
  16076. export const IdeaScalarFieldEnum: {
  16077. id: 'id',
  16078. workspaceId: 'workspaceId',
  16079. contributorEmail: 'contributorEmail',
  16080. contributorId: 'contributorId',
  16081. department: 'department',
  16082. problemDescription: 'problemDescription',
  16083. estimatedImpact: 'estimatedImpact',
  16084. frequency: 'frequency',
  16085. optionalWhoAffected: 'optionalWhoAffected',
  16086. optionalAlreadyTried: 'optionalAlreadyTried',
  16087. optionalSuccessLooksLike: 'optionalSuccessLooksLike',
  16088. status: 'status',
  16089. llmTitle: 'llmTitle',
  16090. llmDomain: 'llmDomain',
  16091. llmAiType: 'llmAiType',
  16092. llmExplanation: 'llmExplanation',
  16093. llmScoreImpact: 'llmScoreImpact',
  16094. llmScoreFeasibility: 'llmScoreFeasibility',
  16095. llmScoreUrgency: 'llmScoreUrgency',
  16096. llmEnrichedAt: 'llmEnrichedAt',
  16097. llmEnrichFailed: 'llmEnrichFailed',
  16098. manualScoreImpact: 'manualScoreImpact',
  16099. manualScoreFeasibility: 'manualScoreFeasibility',
  16100. manualScoreUrgency: 'manualScoreUrgency',
  16101. priorityOrder: 'priorityOrder',
  16102. emailMessageId: 'emailMessageId',
  16103. createdAt: 'createdAt',
  16104. updatedAt: 'updatedAt'
  16105. };
  16106. export type IdeaScalarFieldEnum = (typeof IdeaScalarFieldEnum)[keyof typeof IdeaScalarFieldEnum]
  16107. export const PostScalarFieldEnum: {
  16108. id: 'id',
  16109. name: 'name',
  16110. createdAt: 'createdAt',
  16111. updatedAt: 'updatedAt',
  16112. createdById: 'createdById'
  16113. };
  16114. export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum]
  16115. export const AccountScalarFieldEnum: {
  16116. id: 'id',
  16117. userId: 'userId',
  16118. type: 'type',
  16119. provider: 'provider',
  16120. providerAccountId: 'providerAccountId',
  16121. refresh_token: 'refresh_token',
  16122. access_token: 'access_token',
  16123. expires_at: 'expires_at',
  16124. token_type: 'token_type',
  16125. scope: 'scope',
  16126. id_token: 'id_token',
  16127. session_state: 'session_state',
  16128. refresh_token_expires_in: 'refresh_token_expires_in'
  16129. };
  16130. export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
  16131. export const SessionScalarFieldEnum: {
  16132. id: 'id',
  16133. sessionToken: 'sessionToken',
  16134. userId: 'userId',
  16135. expires: 'expires'
  16136. };
  16137. export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
  16138. export const UserScalarFieldEnum: {
  16139. id: 'id',
  16140. name: 'name',
  16141. email: 'email',
  16142. emailVerified: 'emailVerified',
  16143. password: 'password',
  16144. image: 'image'
  16145. };
  16146. export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
  16147. export const VerificationTokenScalarFieldEnum: {
  16148. identifier: 'identifier',
  16149. token: 'token',
  16150. expires: 'expires'
  16151. };
  16152. export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum]
  16153. export const IdeaAttachmentScalarFieldEnum: {
  16154. id: 'id',
  16155. ideaId: 'ideaId',
  16156. workspaceId: 'workspaceId',
  16157. filename: 'filename',
  16158. contentType: 'contentType',
  16159. size: 'size',
  16160. url: 'url',
  16161. blobPath: 'blobPath',
  16162. createdAt: 'createdAt'
  16163. };
  16164. export type IdeaAttachmentScalarFieldEnum = (typeof IdeaAttachmentScalarFieldEnum)[keyof typeof IdeaAttachmentScalarFieldEnum]
  16165. export const QualificationQuestionScalarFieldEnum: {
  16166. id: 'id',
  16167. ideaId: 'ideaId',
  16168. workspaceId: 'workspaceId',
  16169. questionText: 'questionText',
  16170. responseToken: 'responseToken',
  16171. askedAt: 'askedAt',
  16172. responseText: 'responseText',
  16173. answeredAt: 'answeredAt'
  16174. };
  16175. export type QualificationQuestionScalarFieldEnum = (typeof QualificationQuestionScalarFieldEnum)[keyof typeof QualificationQuestionScalarFieldEnum]
  16176. export const LibraryCaseScalarFieldEnum: {
  16177. id: 'id',
  16178. sector: 'sector',
  16179. department: 'department',
  16180. title: 'title',
  16181. description: 'description',
  16182. createdAt: 'createdAt',
  16183. updatedAt: 'updatedAt'
  16184. };
  16185. export type LibraryCaseScalarFieldEnum = (typeof LibraryCaseScalarFieldEnum)[keyof typeof LibraryCaseScalarFieldEnum]
  16186. export const ShareLinkScalarFieldEnum: {
  16187. id: 'id',
  16188. workspaceId: 'workspaceId',
  16189. token: 'token',
  16190. expiresAt: 'expiresAt',
  16191. createdAt: 'createdAt'
  16192. };
  16193. export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
  16194. export const SortOrder: {
  16195. asc: 'asc',
  16196. desc: 'desc'
  16197. };
  16198. export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
  16199. export const QueryMode: {
  16200. default: 'default',
  16201. insensitive: 'insensitive'
  16202. };
  16203. export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
  16204. export const NullsOrder: {
  16205. first: 'first',
  16206. last: 'last'
  16207. };
  16208. export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
  16209. /**
  16210. * Field references
  16211. */
  16212. /**
  16213. * Reference to a field of type 'String'
  16214. */
  16215. export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
  16216. /**
  16217. * Reference to a field of type 'String[]'
  16218. */
  16219. export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
  16220. /**
  16221. * Reference to a field of type 'Int'
  16222. */
  16223. export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
  16224. /**
  16225. * Reference to a field of type 'Int[]'
  16226. */
  16227. export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
  16228. /**
  16229. * Reference to a field of type 'WorkspaceTier'
  16230. */
  16231. export type EnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier'>
  16232. /**
  16233. * Reference to a field of type 'WorkspaceTier[]'
  16234. */
  16235. export type ListEnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier[]'>
  16236. /**
  16237. * Reference to a field of type 'DateTime'
  16238. */
  16239. export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
  16240. /**
  16241. * Reference to a field of type 'DateTime[]'
  16242. */
  16243. export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
  16244. /**
  16245. * Reference to a field of type 'Boolean'
  16246. */
  16247. export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
  16248. /**
  16249. * Reference to a field of type 'ContributorStatus'
  16250. */
  16251. export type EnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus'>
  16252. /**
  16253. * Reference to a field of type 'ContributorStatus[]'
  16254. */
  16255. export type ListEnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus[]'>
  16256. /**
  16257. * Reference to a field of type 'ImpactLevel'
  16258. */
  16259. export type EnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel'>
  16260. /**
  16261. * Reference to a field of type 'ImpactLevel[]'
  16262. */
  16263. export type ListEnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel[]'>
  16264. /**
  16265. * Reference to a field of type 'Frequency'
  16266. */
  16267. export type EnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency'>
  16268. /**
  16269. * Reference to a field of type 'Frequency[]'
  16270. */
  16271. export type ListEnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency[]'>
  16272. /**
  16273. * Reference to a field of type 'IdeaStatus'
  16274. */
  16275. export type EnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus'>
  16276. /**
  16277. * Reference to a field of type 'IdeaStatus[]'
  16278. */
  16279. export type ListEnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus[]'>
  16280. /**
  16281. * Reference to a field of type 'Float'
  16282. */
  16283. export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
  16284. /**
  16285. * Reference to a field of type 'Float[]'
  16286. */
  16287. export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
  16288. /**
  16289. * Deep Input Types
  16290. */
  16291. export type WorkspaceWhereInput = {
  16292. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16293. OR?: WorkspaceWhereInput[]
  16294. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16295. id?: StringFilter<"Workspace"> | string
  16296. name?: StringFilter<"Workspace"> | string
  16297. slug?: StringFilter<"Workspace"> | string
  16298. sector?: StringNullableFilter<"Workspace"> | string | null
  16299. companySize?: IntNullableFilter<"Workspace"> | number | null
  16300. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  16301. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  16302. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  16303. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16304. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  16305. exportsThisMonth?: IntFilter<"Workspace"> | number
  16306. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16307. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  16308. onboardingDismissed?: BoolFilter<"Workspace"> | boolean
  16309. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  16310. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  16311. ownerId?: StringFilter<"Workspace"> | string
  16312. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  16313. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  16314. contributors?: ContributorListRelationFilter
  16315. ideas?: IdeaListRelationFilter
  16316. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  16317. }
  16318. export type WorkspaceOrderByWithRelationInput = {
  16319. id?: SortOrder
  16320. name?: SortOrder
  16321. slug?: SortOrder
  16322. sector?: SortOrderInput | SortOrder
  16323. companySize?: SortOrderInput | SortOrder
  16324. contactEmail?: SortOrderInput | SortOrder
  16325. tier?: SortOrder
  16326. llmCallsThisMonth?: SortOrder
  16327. llmCallsResetAt?: SortOrder
  16328. autoRelanceEnabled?: SortOrder
  16329. exportsThisMonth?: SortOrder
  16330. exportsResetAt?: SortOrder
  16331. lastVisitedAt?: SortOrderInput | SortOrder
  16332. onboardingDismissed?: SortOrder
  16333. createdAt?: SortOrder
  16334. updatedAt?: SortOrder
  16335. ownerId?: SortOrder
  16336. shareLink?: ShareLinkOrderByWithRelationInput
  16337. owner?: UserOrderByWithRelationInput
  16338. contributors?: ContributorOrderByRelationAggregateInput
  16339. ideas?: IdeaOrderByRelationAggregateInput
  16340. manualRelanceLogs?: ManualRelanceLogOrderByRelationAggregateInput
  16341. }
  16342. export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
  16343. id?: string
  16344. slug?: string
  16345. ownerId?: string
  16346. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16347. OR?: WorkspaceWhereInput[]
  16348. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  16349. name?: StringFilter<"Workspace"> | string
  16350. sector?: StringNullableFilter<"Workspace"> | string | null
  16351. companySize?: IntNullableFilter<"Workspace"> | number | null
  16352. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  16353. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  16354. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  16355. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16356. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  16357. exportsThisMonth?: IntFilter<"Workspace"> | number
  16358. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  16359. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  16360. onboardingDismissed?: BoolFilter<"Workspace"> | boolean
  16361. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  16362. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  16363. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  16364. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  16365. contributors?: ContributorListRelationFilter
  16366. ideas?: IdeaListRelationFilter
  16367. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  16368. }, "id" | "slug" | "ownerId">
  16369. export type WorkspaceOrderByWithAggregationInput = {
  16370. id?: SortOrder
  16371. name?: SortOrder
  16372. slug?: SortOrder
  16373. sector?: SortOrderInput | SortOrder
  16374. companySize?: SortOrderInput | SortOrder
  16375. contactEmail?: SortOrderInput | SortOrder
  16376. tier?: SortOrder
  16377. llmCallsThisMonth?: SortOrder
  16378. llmCallsResetAt?: SortOrder
  16379. autoRelanceEnabled?: SortOrder
  16380. exportsThisMonth?: SortOrder
  16381. exportsResetAt?: SortOrder
  16382. lastVisitedAt?: SortOrderInput | SortOrder
  16383. onboardingDismissed?: SortOrder
  16384. createdAt?: SortOrder
  16385. updatedAt?: SortOrder
  16386. ownerId?: SortOrder
  16387. _count?: WorkspaceCountOrderByAggregateInput
  16388. _avg?: WorkspaceAvgOrderByAggregateInput
  16389. _max?: WorkspaceMaxOrderByAggregateInput
  16390. _min?: WorkspaceMinOrderByAggregateInput
  16391. _sum?: WorkspaceSumOrderByAggregateInput
  16392. }
  16393. export type WorkspaceScalarWhereWithAggregatesInput = {
  16394. AND?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  16395. OR?: WorkspaceScalarWhereWithAggregatesInput[]
  16396. NOT?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  16397. id?: StringWithAggregatesFilter<"Workspace"> | string
  16398. name?: StringWithAggregatesFilter<"Workspace"> | string
  16399. slug?: StringWithAggregatesFilter<"Workspace"> | string
  16400. sector?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  16401. companySize?: IntNullableWithAggregatesFilter<"Workspace"> | number | null
  16402. contactEmail?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  16403. tier?: EnumWorkspaceTierWithAggregatesFilter<"Workspace"> | $Enums.WorkspaceTier
  16404. llmCallsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  16405. llmCallsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16406. autoRelanceEnabled?: BoolWithAggregatesFilter<"Workspace"> | boolean
  16407. exportsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  16408. exportsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16409. lastVisitedAt?: DateTimeNullableWithAggregatesFilter<"Workspace"> | Date | string | null
  16410. onboardingDismissed?: BoolWithAggregatesFilter<"Workspace"> | boolean
  16411. createdAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16412. updatedAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  16413. ownerId?: StringWithAggregatesFilter<"Workspace"> | string
  16414. }
  16415. export type ManualRelanceLogWhereInput = {
  16416. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16417. OR?: ManualRelanceLogWhereInput[]
  16418. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16419. id?: StringFilter<"ManualRelanceLog"> | string
  16420. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  16421. subject?: StringFilter<"ManualRelanceLog"> | string
  16422. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  16423. sentCount?: IntFilter<"ManualRelanceLog"> | number
  16424. failedCount?: IntFilter<"ManualRelanceLog"> | number
  16425. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  16426. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16427. }
  16428. export type ManualRelanceLogOrderByWithRelationInput = {
  16429. id?: SortOrder
  16430. workspaceId?: SortOrder
  16431. subject?: SortOrder
  16432. recipientCount?: SortOrder
  16433. sentCount?: SortOrder
  16434. failedCount?: SortOrder
  16435. sentAt?: SortOrder
  16436. workspace?: WorkspaceOrderByWithRelationInput
  16437. }
  16438. export type ManualRelanceLogWhereUniqueInput = Prisma.AtLeast<{
  16439. id?: string
  16440. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16441. OR?: ManualRelanceLogWhereInput[]
  16442. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  16443. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  16444. subject?: StringFilter<"ManualRelanceLog"> | string
  16445. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  16446. sentCount?: IntFilter<"ManualRelanceLog"> | number
  16447. failedCount?: IntFilter<"ManualRelanceLog"> | number
  16448. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  16449. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16450. }, "id">
  16451. export type ManualRelanceLogOrderByWithAggregationInput = {
  16452. id?: SortOrder
  16453. workspaceId?: SortOrder
  16454. subject?: SortOrder
  16455. recipientCount?: SortOrder
  16456. sentCount?: SortOrder
  16457. failedCount?: SortOrder
  16458. sentAt?: SortOrder
  16459. _count?: ManualRelanceLogCountOrderByAggregateInput
  16460. _avg?: ManualRelanceLogAvgOrderByAggregateInput
  16461. _max?: ManualRelanceLogMaxOrderByAggregateInput
  16462. _min?: ManualRelanceLogMinOrderByAggregateInput
  16463. _sum?: ManualRelanceLogSumOrderByAggregateInput
  16464. }
  16465. export type ManualRelanceLogScalarWhereWithAggregatesInput = {
  16466. AND?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  16467. OR?: ManualRelanceLogScalarWhereWithAggregatesInput[]
  16468. NOT?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  16469. id?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16470. workspaceId?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16471. subject?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  16472. recipientCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16473. sentCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16474. failedCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  16475. sentAt?: DateTimeWithAggregatesFilter<"ManualRelanceLog"> | Date | string
  16476. }
  16477. export type ContributorWhereInput = {
  16478. AND?: ContributorWhereInput | ContributorWhereInput[]
  16479. OR?: ContributorWhereInput[]
  16480. NOT?: ContributorWhereInput | ContributorWhereInput[]
  16481. id?: StringFilter<"Contributor"> | string
  16482. workspaceId?: StringFilter<"Contributor"> | string
  16483. email?: StringFilter<"Contributor"> | string
  16484. service?: StringNullableFilter<"Contributor"> | string | null
  16485. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  16486. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  16487. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  16488. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  16489. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16490. ideas?: IdeaListRelationFilter
  16491. }
  16492. export type ContributorOrderByWithRelationInput = {
  16493. id?: SortOrder
  16494. workspaceId?: SortOrder
  16495. email?: SortOrder
  16496. service?: SortOrderInput | SortOrder
  16497. status?: SortOrder
  16498. invitedAt?: SortOrder
  16499. lastRemindedAt?: SortOrderInput | SortOrder
  16500. createdAt?: SortOrder
  16501. workspace?: WorkspaceOrderByWithRelationInput
  16502. ideas?: IdeaOrderByRelationAggregateInput
  16503. }
  16504. export type ContributorWhereUniqueInput = Prisma.AtLeast<{
  16505. id?: string
  16506. workspaceId_email?: ContributorWorkspaceIdEmailCompoundUniqueInput
  16507. AND?: ContributorWhereInput | ContributorWhereInput[]
  16508. OR?: ContributorWhereInput[]
  16509. NOT?: ContributorWhereInput | ContributorWhereInput[]
  16510. workspaceId?: StringFilter<"Contributor"> | string
  16511. email?: StringFilter<"Contributor"> | string
  16512. service?: StringNullableFilter<"Contributor"> | string | null
  16513. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  16514. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  16515. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  16516. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  16517. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16518. ideas?: IdeaListRelationFilter
  16519. }, "id" | "workspaceId_email">
  16520. export type ContributorOrderByWithAggregationInput = {
  16521. id?: SortOrder
  16522. workspaceId?: SortOrder
  16523. email?: SortOrder
  16524. service?: SortOrderInput | SortOrder
  16525. status?: SortOrder
  16526. invitedAt?: SortOrder
  16527. lastRemindedAt?: SortOrderInput | SortOrder
  16528. createdAt?: SortOrder
  16529. _count?: ContributorCountOrderByAggregateInput
  16530. _max?: ContributorMaxOrderByAggregateInput
  16531. _min?: ContributorMinOrderByAggregateInput
  16532. }
  16533. export type ContributorScalarWhereWithAggregatesInput = {
  16534. AND?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  16535. OR?: ContributorScalarWhereWithAggregatesInput[]
  16536. NOT?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  16537. id?: StringWithAggregatesFilter<"Contributor"> | string
  16538. workspaceId?: StringWithAggregatesFilter<"Contributor"> | string
  16539. email?: StringWithAggregatesFilter<"Contributor"> | string
  16540. service?: StringNullableWithAggregatesFilter<"Contributor"> | string | null
  16541. status?: EnumContributorStatusWithAggregatesFilter<"Contributor"> | $Enums.ContributorStatus
  16542. invitedAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  16543. lastRemindedAt?: DateTimeNullableWithAggregatesFilter<"Contributor"> | Date | string | null
  16544. createdAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  16545. }
  16546. export type IdeaWhereInput = {
  16547. AND?: IdeaWhereInput | IdeaWhereInput[]
  16548. OR?: IdeaWhereInput[]
  16549. NOT?: IdeaWhereInput | IdeaWhereInput[]
  16550. id?: StringFilter<"Idea"> | string
  16551. workspaceId?: StringFilter<"Idea"> | string
  16552. contributorEmail?: StringFilter<"Idea"> | string
  16553. contributorId?: StringNullableFilter<"Idea"> | string | null
  16554. department?: StringFilter<"Idea"> | string
  16555. problemDescription?: StringFilter<"Idea"> | string
  16556. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  16557. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  16558. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  16559. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  16560. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  16561. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  16562. llmTitle?: StringNullableFilter<"Idea"> | string | null
  16563. llmDomain?: StringNullableFilter<"Idea"> | string | null
  16564. llmAiType?: StringNullableFilter<"Idea"> | string | null
  16565. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  16566. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16567. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16568. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16569. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  16570. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  16571. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16572. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16573. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16574. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  16575. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  16576. createdAt?: DateTimeFilter<"Idea"> | Date | string
  16577. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  16578. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16579. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  16580. attachments?: IdeaAttachmentListRelationFilter
  16581. qualificationQuestions?: QualificationQuestionListRelationFilter
  16582. }
  16583. export type IdeaOrderByWithRelationInput = {
  16584. id?: SortOrder
  16585. workspaceId?: SortOrder
  16586. contributorEmail?: SortOrder
  16587. contributorId?: SortOrderInput | SortOrder
  16588. department?: SortOrder
  16589. problemDescription?: SortOrder
  16590. estimatedImpact?: SortOrder
  16591. frequency?: SortOrder
  16592. optionalWhoAffected?: SortOrderInput | SortOrder
  16593. optionalAlreadyTried?: SortOrderInput | SortOrder
  16594. optionalSuccessLooksLike?: SortOrderInput | SortOrder
  16595. status?: SortOrder
  16596. llmTitle?: SortOrderInput | SortOrder
  16597. llmDomain?: SortOrderInput | SortOrder
  16598. llmAiType?: SortOrderInput | SortOrder
  16599. llmExplanation?: SortOrderInput | SortOrder
  16600. llmScoreImpact?: SortOrderInput | SortOrder
  16601. llmScoreFeasibility?: SortOrderInput | SortOrder
  16602. llmScoreUrgency?: SortOrderInput | SortOrder
  16603. llmEnrichedAt?: SortOrderInput | SortOrder
  16604. llmEnrichFailed?: SortOrder
  16605. manualScoreImpact?: SortOrderInput | SortOrder
  16606. manualScoreFeasibility?: SortOrderInput | SortOrder
  16607. manualScoreUrgency?: SortOrderInput | SortOrder
  16608. priorityOrder?: SortOrderInput | SortOrder
  16609. emailMessageId?: SortOrderInput | SortOrder
  16610. createdAt?: SortOrder
  16611. updatedAt?: SortOrder
  16612. workspace?: WorkspaceOrderByWithRelationInput
  16613. contributor?: ContributorOrderByWithRelationInput
  16614. attachments?: IdeaAttachmentOrderByRelationAggregateInput
  16615. qualificationQuestions?: QualificationQuestionOrderByRelationAggregateInput
  16616. }
  16617. export type IdeaWhereUniqueInput = Prisma.AtLeast<{
  16618. id?: string
  16619. emailMessageId?: string
  16620. AND?: IdeaWhereInput | IdeaWhereInput[]
  16621. OR?: IdeaWhereInput[]
  16622. NOT?: IdeaWhereInput | IdeaWhereInput[]
  16623. workspaceId?: StringFilter<"Idea"> | string
  16624. contributorEmail?: StringFilter<"Idea"> | string
  16625. contributorId?: StringNullableFilter<"Idea"> | string | null
  16626. department?: StringFilter<"Idea"> | string
  16627. problemDescription?: StringFilter<"Idea"> | string
  16628. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  16629. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  16630. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  16631. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  16632. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  16633. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  16634. llmTitle?: StringNullableFilter<"Idea"> | string | null
  16635. llmDomain?: StringNullableFilter<"Idea"> | string | null
  16636. llmAiType?: StringNullableFilter<"Idea"> | string | null
  16637. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  16638. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16639. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16640. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16641. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  16642. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  16643. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  16644. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  16645. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  16646. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  16647. createdAt?: DateTimeFilter<"Idea"> | Date | string
  16648. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  16649. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  16650. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  16651. attachments?: IdeaAttachmentListRelationFilter
  16652. qualificationQuestions?: QualificationQuestionListRelationFilter
  16653. }, "id" | "emailMessageId">
  16654. export type IdeaOrderByWithAggregationInput = {
  16655. id?: SortOrder
  16656. workspaceId?: SortOrder
  16657. contributorEmail?: SortOrder
  16658. contributorId?: SortOrderInput | SortOrder
  16659. department?: SortOrder
  16660. problemDescription?: SortOrder
  16661. estimatedImpact?: SortOrder
  16662. frequency?: SortOrder
  16663. optionalWhoAffected?: SortOrderInput | SortOrder
  16664. optionalAlreadyTried?: SortOrderInput | SortOrder
  16665. optionalSuccessLooksLike?: SortOrderInput | SortOrder
  16666. status?: SortOrder
  16667. llmTitle?: SortOrderInput | SortOrder
  16668. llmDomain?: SortOrderInput | SortOrder
  16669. llmAiType?: SortOrderInput | SortOrder
  16670. llmExplanation?: SortOrderInput | SortOrder
  16671. llmScoreImpact?: SortOrderInput | SortOrder
  16672. llmScoreFeasibility?: SortOrderInput | SortOrder
  16673. llmScoreUrgency?: SortOrderInput | SortOrder
  16674. llmEnrichedAt?: SortOrderInput | SortOrder
  16675. llmEnrichFailed?: SortOrder
  16676. manualScoreImpact?: SortOrderInput | SortOrder
  16677. manualScoreFeasibility?: SortOrderInput | SortOrder
  16678. manualScoreUrgency?: SortOrderInput | SortOrder
  16679. priorityOrder?: SortOrderInput | SortOrder
  16680. emailMessageId?: SortOrderInput | SortOrder
  16681. createdAt?: SortOrder
  16682. updatedAt?: SortOrder
  16683. _count?: IdeaCountOrderByAggregateInput
  16684. _avg?: IdeaAvgOrderByAggregateInput
  16685. _max?: IdeaMaxOrderByAggregateInput
  16686. _min?: IdeaMinOrderByAggregateInput
  16687. _sum?: IdeaSumOrderByAggregateInput
  16688. }
  16689. export type IdeaScalarWhereWithAggregatesInput = {
  16690. AND?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  16691. OR?: IdeaScalarWhereWithAggregatesInput[]
  16692. NOT?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  16693. id?: StringWithAggregatesFilter<"Idea"> | string
  16694. workspaceId?: StringWithAggregatesFilter<"Idea"> | string
  16695. contributorEmail?: StringWithAggregatesFilter<"Idea"> | string
  16696. contributorId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16697. department?: StringWithAggregatesFilter<"Idea"> | string
  16698. problemDescription?: StringWithAggregatesFilter<"Idea"> | string
  16699. estimatedImpact?: EnumImpactLevelWithAggregatesFilter<"Idea"> | $Enums.ImpactLevel
  16700. frequency?: EnumFrequencyWithAggregatesFilter<"Idea"> | $Enums.Frequency
  16701. optionalWhoAffected?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16702. optionalAlreadyTried?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16703. optionalSuccessLooksLike?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16704. status?: EnumIdeaStatusWithAggregatesFilter<"Idea"> | $Enums.IdeaStatus
  16705. llmTitle?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16706. llmDomain?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16707. llmAiType?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16708. llmExplanation?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16709. llmScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16710. llmScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16711. llmScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16712. llmEnrichedAt?: DateTimeNullableWithAggregatesFilter<"Idea"> | Date | string | null
  16713. llmEnrichFailed?: BoolWithAggregatesFilter<"Idea"> | boolean
  16714. manualScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16715. manualScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16716. manualScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16717. priorityOrder?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  16718. emailMessageId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  16719. createdAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  16720. updatedAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  16721. }
  16722. export type PostWhereInput = {
  16723. AND?: PostWhereInput | PostWhereInput[]
  16724. OR?: PostWhereInput[]
  16725. NOT?: PostWhereInput | PostWhereInput[]
  16726. id?: IntFilter<"Post"> | number
  16727. name?: StringFilter<"Post"> | string
  16728. createdAt?: DateTimeFilter<"Post"> | Date | string
  16729. updatedAt?: DateTimeFilter<"Post"> | Date | string
  16730. createdById?: StringFilter<"Post"> | string
  16731. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  16732. }
  16733. export type PostOrderByWithRelationInput = {
  16734. id?: SortOrder
  16735. name?: SortOrder
  16736. createdAt?: SortOrder
  16737. updatedAt?: SortOrder
  16738. createdById?: SortOrder
  16739. createdBy?: UserOrderByWithRelationInput
  16740. }
  16741. export type PostWhereUniqueInput = Prisma.AtLeast<{
  16742. id?: number
  16743. AND?: PostWhereInput | PostWhereInput[]
  16744. OR?: PostWhereInput[]
  16745. NOT?: PostWhereInput | PostWhereInput[]
  16746. name?: StringFilter<"Post"> | string
  16747. createdAt?: DateTimeFilter<"Post"> | Date | string
  16748. updatedAt?: DateTimeFilter<"Post"> | Date | string
  16749. createdById?: StringFilter<"Post"> | string
  16750. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  16751. }, "id">
  16752. export type PostOrderByWithAggregationInput = {
  16753. id?: SortOrder
  16754. name?: SortOrder
  16755. createdAt?: SortOrder
  16756. updatedAt?: SortOrder
  16757. createdById?: SortOrder
  16758. _count?: PostCountOrderByAggregateInput
  16759. _avg?: PostAvgOrderByAggregateInput
  16760. _max?: PostMaxOrderByAggregateInput
  16761. _min?: PostMinOrderByAggregateInput
  16762. _sum?: PostSumOrderByAggregateInput
  16763. }
  16764. export type PostScalarWhereWithAggregatesInput = {
  16765. AND?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  16766. OR?: PostScalarWhereWithAggregatesInput[]
  16767. NOT?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  16768. id?: IntWithAggregatesFilter<"Post"> | number
  16769. name?: StringWithAggregatesFilter<"Post"> | string
  16770. createdAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  16771. updatedAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  16772. createdById?: StringWithAggregatesFilter<"Post"> | string
  16773. }
  16774. export type AccountWhereInput = {
  16775. AND?: AccountWhereInput | AccountWhereInput[]
  16776. OR?: AccountWhereInput[]
  16777. NOT?: AccountWhereInput | AccountWhereInput[]
  16778. id?: StringFilter<"Account"> | string
  16779. userId?: StringFilter<"Account"> | string
  16780. type?: StringFilter<"Account"> | string
  16781. provider?: StringFilter<"Account"> | string
  16782. providerAccountId?: StringFilter<"Account"> | string
  16783. refresh_token?: StringNullableFilter<"Account"> | string | null
  16784. access_token?: StringNullableFilter<"Account"> | string | null
  16785. expires_at?: IntNullableFilter<"Account"> | number | null
  16786. token_type?: StringNullableFilter<"Account"> | string | null
  16787. scope?: StringNullableFilter<"Account"> | string | null
  16788. id_token?: StringNullableFilter<"Account"> | string | null
  16789. session_state?: StringNullableFilter<"Account"> | string | null
  16790. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  16791. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16792. }
  16793. export type AccountOrderByWithRelationInput = {
  16794. id?: SortOrder
  16795. userId?: SortOrder
  16796. type?: SortOrder
  16797. provider?: SortOrder
  16798. providerAccountId?: SortOrder
  16799. refresh_token?: SortOrderInput | SortOrder
  16800. access_token?: SortOrderInput | SortOrder
  16801. expires_at?: SortOrderInput | SortOrder
  16802. token_type?: SortOrderInput | SortOrder
  16803. scope?: SortOrderInput | SortOrder
  16804. id_token?: SortOrderInput | SortOrder
  16805. session_state?: SortOrderInput | SortOrder
  16806. refresh_token_expires_in?: SortOrderInput | SortOrder
  16807. user?: UserOrderByWithRelationInput
  16808. }
  16809. export type AccountWhereUniqueInput = Prisma.AtLeast<{
  16810. id?: string
  16811. provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput
  16812. AND?: AccountWhereInput | AccountWhereInput[]
  16813. OR?: AccountWhereInput[]
  16814. NOT?: AccountWhereInput | AccountWhereInput[]
  16815. userId?: StringFilter<"Account"> | string
  16816. type?: StringFilter<"Account"> | string
  16817. provider?: StringFilter<"Account"> | string
  16818. providerAccountId?: StringFilter<"Account"> | string
  16819. refresh_token?: StringNullableFilter<"Account"> | string | null
  16820. access_token?: StringNullableFilter<"Account"> | string | null
  16821. expires_at?: IntNullableFilter<"Account"> | number | null
  16822. token_type?: StringNullableFilter<"Account"> | string | null
  16823. scope?: StringNullableFilter<"Account"> | string | null
  16824. id_token?: StringNullableFilter<"Account"> | string | null
  16825. session_state?: StringNullableFilter<"Account"> | string | null
  16826. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  16827. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16828. }, "id" | "provider_providerAccountId">
  16829. export type AccountOrderByWithAggregationInput = {
  16830. id?: SortOrder
  16831. userId?: SortOrder
  16832. type?: SortOrder
  16833. provider?: SortOrder
  16834. providerAccountId?: SortOrder
  16835. refresh_token?: SortOrderInput | SortOrder
  16836. access_token?: SortOrderInput | SortOrder
  16837. expires_at?: SortOrderInput | SortOrder
  16838. token_type?: SortOrderInput | SortOrder
  16839. scope?: SortOrderInput | SortOrder
  16840. id_token?: SortOrderInput | SortOrder
  16841. session_state?: SortOrderInput | SortOrder
  16842. refresh_token_expires_in?: SortOrderInput | SortOrder
  16843. _count?: AccountCountOrderByAggregateInput
  16844. _avg?: AccountAvgOrderByAggregateInput
  16845. _max?: AccountMaxOrderByAggregateInput
  16846. _min?: AccountMinOrderByAggregateInput
  16847. _sum?: AccountSumOrderByAggregateInput
  16848. }
  16849. export type AccountScalarWhereWithAggregatesInput = {
  16850. AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  16851. OR?: AccountScalarWhereWithAggregatesInput[]
  16852. NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  16853. id?: StringWithAggregatesFilter<"Account"> | string
  16854. userId?: StringWithAggregatesFilter<"Account"> | string
  16855. type?: StringWithAggregatesFilter<"Account"> | string
  16856. provider?: StringWithAggregatesFilter<"Account"> | string
  16857. providerAccountId?: StringWithAggregatesFilter<"Account"> | string
  16858. refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16859. access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16860. expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null
  16861. token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16862. scope?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16863. id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16864. session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null
  16865. refresh_token_expires_in?: IntNullableWithAggregatesFilter<"Account"> | number | null
  16866. }
  16867. export type SessionWhereInput = {
  16868. AND?: SessionWhereInput | SessionWhereInput[]
  16869. OR?: SessionWhereInput[]
  16870. NOT?: SessionWhereInput | SessionWhereInput[]
  16871. id?: StringFilter<"Session"> | string
  16872. sessionToken?: StringFilter<"Session"> | string
  16873. userId?: StringFilter<"Session"> | string
  16874. expires?: DateTimeFilter<"Session"> | Date | string
  16875. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16876. }
  16877. export type SessionOrderByWithRelationInput = {
  16878. id?: SortOrder
  16879. sessionToken?: SortOrder
  16880. userId?: SortOrder
  16881. expires?: SortOrder
  16882. user?: UserOrderByWithRelationInput
  16883. }
  16884. export type SessionWhereUniqueInput = Prisma.AtLeast<{
  16885. id?: string
  16886. sessionToken?: string
  16887. AND?: SessionWhereInput | SessionWhereInput[]
  16888. OR?: SessionWhereInput[]
  16889. NOT?: SessionWhereInput | SessionWhereInput[]
  16890. userId?: StringFilter<"Session"> | string
  16891. expires?: DateTimeFilter<"Session"> | Date | string
  16892. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  16893. }, "id" | "sessionToken">
  16894. export type SessionOrderByWithAggregationInput = {
  16895. id?: SortOrder
  16896. sessionToken?: SortOrder
  16897. userId?: SortOrder
  16898. expires?: SortOrder
  16899. _count?: SessionCountOrderByAggregateInput
  16900. _max?: SessionMaxOrderByAggregateInput
  16901. _min?: SessionMinOrderByAggregateInput
  16902. }
  16903. export type SessionScalarWhereWithAggregatesInput = {
  16904. AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  16905. OR?: SessionScalarWhereWithAggregatesInput[]
  16906. NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  16907. id?: StringWithAggregatesFilter<"Session"> | string
  16908. sessionToken?: StringWithAggregatesFilter<"Session"> | string
  16909. userId?: StringWithAggregatesFilter<"Session"> | string
  16910. expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string
  16911. }
  16912. export type UserWhereInput = {
  16913. AND?: UserWhereInput | UserWhereInput[]
  16914. OR?: UserWhereInput[]
  16915. NOT?: UserWhereInput | UserWhereInput[]
  16916. id?: StringFilter<"User"> | string
  16917. name?: StringNullableFilter<"User"> | string | null
  16918. email?: StringNullableFilter<"User"> | string | null
  16919. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  16920. password?: StringNullableFilter<"User"> | string | null
  16921. image?: StringNullableFilter<"User"> | string | null
  16922. accounts?: AccountListRelationFilter
  16923. sessions?: SessionListRelationFilter
  16924. posts?: PostListRelationFilter
  16925. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  16926. }
  16927. export type UserOrderByWithRelationInput = {
  16928. id?: SortOrder
  16929. name?: SortOrderInput | SortOrder
  16930. email?: SortOrderInput | SortOrder
  16931. emailVerified?: SortOrderInput | SortOrder
  16932. password?: SortOrderInput | SortOrder
  16933. image?: SortOrderInput | SortOrder
  16934. accounts?: AccountOrderByRelationAggregateInput
  16935. sessions?: SessionOrderByRelationAggregateInput
  16936. posts?: PostOrderByRelationAggregateInput
  16937. workspace?: WorkspaceOrderByWithRelationInput
  16938. }
  16939. export type UserWhereUniqueInput = Prisma.AtLeast<{
  16940. id?: string
  16941. email?: string
  16942. AND?: UserWhereInput | UserWhereInput[]
  16943. OR?: UserWhereInput[]
  16944. NOT?: UserWhereInput | UserWhereInput[]
  16945. name?: StringNullableFilter<"User"> | string | null
  16946. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  16947. password?: StringNullableFilter<"User"> | string | null
  16948. image?: StringNullableFilter<"User"> | string | null
  16949. accounts?: AccountListRelationFilter
  16950. sessions?: SessionListRelationFilter
  16951. posts?: PostListRelationFilter
  16952. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  16953. }, "id" | "email">
  16954. export type UserOrderByWithAggregationInput = {
  16955. id?: SortOrder
  16956. name?: SortOrderInput | SortOrder
  16957. email?: SortOrderInput | SortOrder
  16958. emailVerified?: SortOrderInput | SortOrder
  16959. password?: SortOrderInput | SortOrder
  16960. image?: SortOrderInput | SortOrder
  16961. _count?: UserCountOrderByAggregateInput
  16962. _max?: UserMaxOrderByAggregateInput
  16963. _min?: UserMinOrderByAggregateInput
  16964. }
  16965. export type UserScalarWhereWithAggregatesInput = {
  16966. AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  16967. OR?: UserScalarWhereWithAggregatesInput[]
  16968. NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  16969. id?: StringWithAggregatesFilter<"User"> | string
  16970. name?: StringNullableWithAggregatesFilter<"User"> | string | null
  16971. email?: StringNullableWithAggregatesFilter<"User"> | string | null
  16972. emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
  16973. password?: StringNullableWithAggregatesFilter<"User"> | string | null
  16974. image?: StringNullableWithAggregatesFilter<"User"> | string | null
  16975. }
  16976. export type VerificationTokenWhereInput = {
  16977. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16978. OR?: VerificationTokenWhereInput[]
  16979. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16980. identifier?: StringFilter<"VerificationToken"> | string
  16981. token?: StringFilter<"VerificationToken"> | string
  16982. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  16983. }
  16984. export type VerificationTokenOrderByWithRelationInput = {
  16985. identifier?: SortOrder
  16986. token?: SortOrder
  16987. expires?: SortOrder
  16988. }
  16989. export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
  16990. token?: string
  16991. identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput
  16992. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16993. OR?: VerificationTokenWhereInput[]
  16994. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  16995. identifier?: StringFilter<"VerificationToken"> | string
  16996. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  16997. }, "token" | "identifier_token">
  16998. export type VerificationTokenOrderByWithAggregationInput = {
  16999. identifier?: SortOrder
  17000. token?: SortOrder
  17001. expires?: SortOrder
  17002. _count?: VerificationTokenCountOrderByAggregateInput
  17003. _max?: VerificationTokenMaxOrderByAggregateInput
  17004. _min?: VerificationTokenMinOrderByAggregateInput
  17005. }
  17006. export type VerificationTokenScalarWhereWithAggregatesInput = {
  17007. AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  17008. OR?: VerificationTokenScalarWhereWithAggregatesInput[]
  17009. NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  17010. identifier?: StringWithAggregatesFilter<"VerificationToken"> | string
  17011. token?: StringWithAggregatesFilter<"VerificationToken"> | string
  17012. expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string
  17013. }
  17014. export type IdeaAttachmentWhereInput = {
  17015. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17016. OR?: IdeaAttachmentWhereInput[]
  17017. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17018. id?: StringFilter<"IdeaAttachment"> | string
  17019. ideaId?: StringFilter<"IdeaAttachment"> | string
  17020. workspaceId?: StringFilter<"IdeaAttachment"> | string
  17021. filename?: StringFilter<"IdeaAttachment"> | string
  17022. contentType?: StringFilter<"IdeaAttachment"> | string
  17023. size?: IntFilter<"IdeaAttachment"> | number
  17024. url?: StringFilter<"IdeaAttachment"> | string
  17025. blobPath?: StringFilter<"IdeaAttachment"> | string
  17026. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  17027. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17028. }
  17029. export type IdeaAttachmentOrderByWithRelationInput = {
  17030. id?: SortOrder
  17031. ideaId?: SortOrder
  17032. workspaceId?: SortOrder
  17033. filename?: SortOrder
  17034. contentType?: SortOrder
  17035. size?: SortOrder
  17036. url?: SortOrder
  17037. blobPath?: SortOrder
  17038. createdAt?: SortOrder
  17039. idea?: IdeaOrderByWithRelationInput
  17040. }
  17041. export type IdeaAttachmentWhereUniqueInput = Prisma.AtLeast<{
  17042. id?: string
  17043. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17044. OR?: IdeaAttachmentWhereInput[]
  17045. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  17046. ideaId?: StringFilter<"IdeaAttachment"> | string
  17047. workspaceId?: StringFilter<"IdeaAttachment"> | string
  17048. filename?: StringFilter<"IdeaAttachment"> | string
  17049. contentType?: StringFilter<"IdeaAttachment"> | string
  17050. size?: IntFilter<"IdeaAttachment"> | number
  17051. url?: StringFilter<"IdeaAttachment"> | string
  17052. blobPath?: StringFilter<"IdeaAttachment"> | string
  17053. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  17054. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17055. }, "id">
  17056. export type IdeaAttachmentOrderByWithAggregationInput = {
  17057. id?: SortOrder
  17058. ideaId?: SortOrder
  17059. workspaceId?: SortOrder
  17060. filename?: SortOrder
  17061. contentType?: SortOrder
  17062. size?: SortOrder
  17063. url?: SortOrder
  17064. blobPath?: SortOrder
  17065. createdAt?: SortOrder
  17066. _count?: IdeaAttachmentCountOrderByAggregateInput
  17067. _avg?: IdeaAttachmentAvgOrderByAggregateInput
  17068. _max?: IdeaAttachmentMaxOrderByAggregateInput
  17069. _min?: IdeaAttachmentMinOrderByAggregateInput
  17070. _sum?: IdeaAttachmentSumOrderByAggregateInput
  17071. }
  17072. export type IdeaAttachmentScalarWhereWithAggregatesInput = {
  17073. AND?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  17074. OR?: IdeaAttachmentScalarWhereWithAggregatesInput[]
  17075. NOT?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  17076. id?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17077. ideaId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17078. workspaceId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17079. filename?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17080. contentType?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17081. size?: IntWithAggregatesFilter<"IdeaAttachment"> | number
  17082. url?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17083. blobPath?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  17084. createdAt?: DateTimeWithAggregatesFilter<"IdeaAttachment"> | Date | string
  17085. }
  17086. export type QualificationQuestionWhereInput = {
  17087. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17088. OR?: QualificationQuestionWhereInput[]
  17089. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17090. id?: StringFilter<"QualificationQuestion"> | string
  17091. ideaId?: StringFilter<"QualificationQuestion"> | string
  17092. workspaceId?: StringFilter<"QualificationQuestion"> | string
  17093. questionText?: StringFilter<"QualificationQuestion"> | string
  17094. responseToken?: StringFilter<"QualificationQuestion"> | string
  17095. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  17096. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  17097. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  17098. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17099. }
  17100. export type QualificationQuestionOrderByWithRelationInput = {
  17101. id?: SortOrder
  17102. ideaId?: SortOrder
  17103. workspaceId?: SortOrder
  17104. questionText?: SortOrder
  17105. responseToken?: SortOrder
  17106. askedAt?: SortOrder
  17107. responseText?: SortOrderInput | SortOrder
  17108. answeredAt?: SortOrderInput | SortOrder
  17109. idea?: IdeaOrderByWithRelationInput
  17110. }
  17111. export type QualificationQuestionWhereUniqueInput = Prisma.AtLeast<{
  17112. id?: string
  17113. responseToken?: string
  17114. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17115. OR?: QualificationQuestionWhereInput[]
  17116. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  17117. ideaId?: StringFilter<"QualificationQuestion"> | string
  17118. workspaceId?: StringFilter<"QualificationQuestion"> | string
  17119. questionText?: StringFilter<"QualificationQuestion"> | string
  17120. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  17121. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  17122. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  17123. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  17124. }, "id" | "responseToken">
  17125. export type QualificationQuestionOrderByWithAggregationInput = {
  17126. id?: SortOrder
  17127. ideaId?: SortOrder
  17128. workspaceId?: SortOrder
  17129. questionText?: SortOrder
  17130. responseToken?: SortOrder
  17131. askedAt?: SortOrder
  17132. responseText?: SortOrderInput | SortOrder
  17133. answeredAt?: SortOrderInput | SortOrder
  17134. _count?: QualificationQuestionCountOrderByAggregateInput
  17135. _max?: QualificationQuestionMaxOrderByAggregateInput
  17136. _min?: QualificationQuestionMinOrderByAggregateInput
  17137. }
  17138. export type QualificationQuestionScalarWhereWithAggregatesInput = {
  17139. AND?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  17140. OR?: QualificationQuestionScalarWhereWithAggregatesInput[]
  17141. NOT?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  17142. id?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17143. ideaId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17144. workspaceId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17145. questionText?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17146. responseToken?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  17147. askedAt?: DateTimeWithAggregatesFilter<"QualificationQuestion"> | Date | string
  17148. responseText?: StringNullableWithAggregatesFilter<"QualificationQuestion"> | string | null
  17149. answeredAt?: DateTimeNullableWithAggregatesFilter<"QualificationQuestion"> | Date | string | null
  17150. }
  17151. export type LibraryCaseWhereInput = {
  17152. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17153. OR?: LibraryCaseWhereInput[]
  17154. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17155. id?: StringFilter<"LibraryCase"> | string
  17156. sector?: StringFilter<"LibraryCase"> | string
  17157. department?: StringFilter<"LibraryCase"> | string
  17158. title?: StringFilter<"LibraryCase"> | string
  17159. description?: StringFilter<"LibraryCase"> | string
  17160. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17161. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17162. }
  17163. export type LibraryCaseOrderByWithRelationInput = {
  17164. id?: SortOrder
  17165. sector?: SortOrder
  17166. department?: SortOrder
  17167. title?: SortOrder
  17168. description?: SortOrder
  17169. createdAt?: SortOrder
  17170. updatedAt?: SortOrder
  17171. }
  17172. export type LibraryCaseWhereUniqueInput = Prisma.AtLeast<{
  17173. id?: string
  17174. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17175. OR?: LibraryCaseWhereInput[]
  17176. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  17177. sector?: StringFilter<"LibraryCase"> | string
  17178. department?: StringFilter<"LibraryCase"> | string
  17179. title?: StringFilter<"LibraryCase"> | string
  17180. description?: StringFilter<"LibraryCase"> | string
  17181. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17182. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  17183. }, "id">
  17184. export type LibraryCaseOrderByWithAggregationInput = {
  17185. id?: SortOrder
  17186. sector?: SortOrder
  17187. department?: SortOrder
  17188. title?: SortOrder
  17189. description?: SortOrder
  17190. createdAt?: SortOrder
  17191. updatedAt?: SortOrder
  17192. _count?: LibraryCaseCountOrderByAggregateInput
  17193. _max?: LibraryCaseMaxOrderByAggregateInput
  17194. _min?: LibraryCaseMinOrderByAggregateInput
  17195. }
  17196. export type LibraryCaseScalarWhereWithAggregatesInput = {
  17197. AND?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  17198. OR?: LibraryCaseScalarWhereWithAggregatesInput[]
  17199. NOT?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  17200. id?: StringWithAggregatesFilter<"LibraryCase"> | string
  17201. sector?: StringWithAggregatesFilter<"LibraryCase"> | string
  17202. department?: StringWithAggregatesFilter<"LibraryCase"> | string
  17203. title?: StringWithAggregatesFilter<"LibraryCase"> | string
  17204. description?: StringWithAggregatesFilter<"LibraryCase"> | string
  17205. createdAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  17206. updatedAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  17207. }
  17208. export type ShareLinkWhereInput = {
  17209. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17210. OR?: ShareLinkWhereInput[]
  17211. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17212. id?: StringFilter<"ShareLink"> | string
  17213. workspaceId?: StringFilter<"ShareLink"> | string
  17214. token?: StringFilter<"ShareLink"> | string
  17215. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  17216. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  17217. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17218. }
  17219. export type ShareLinkOrderByWithRelationInput = {
  17220. id?: SortOrder
  17221. workspaceId?: SortOrder
  17222. token?: SortOrder
  17223. expiresAt?: SortOrderInput | SortOrder
  17224. createdAt?: SortOrder
  17225. workspace?: WorkspaceOrderByWithRelationInput
  17226. }
  17227. export type ShareLinkWhereUniqueInput = Prisma.AtLeast<{
  17228. id?: string
  17229. workspaceId?: string
  17230. token?: string
  17231. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17232. OR?: ShareLinkWhereInput[]
  17233. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  17234. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  17235. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  17236. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17237. }, "id" | "workspaceId" | "token">
  17238. export type ShareLinkOrderByWithAggregationInput = {
  17239. id?: SortOrder
  17240. workspaceId?: SortOrder
  17241. token?: SortOrder
  17242. expiresAt?: SortOrderInput | SortOrder
  17243. createdAt?: SortOrder
  17244. _count?: ShareLinkCountOrderByAggregateInput
  17245. _max?: ShareLinkMaxOrderByAggregateInput
  17246. _min?: ShareLinkMinOrderByAggregateInput
  17247. }
  17248. export type ShareLinkScalarWhereWithAggregatesInput = {
  17249. AND?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  17250. OR?: ShareLinkScalarWhereWithAggregatesInput[]
  17251. NOT?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  17252. id?: StringWithAggregatesFilter<"ShareLink"> | string
  17253. workspaceId?: StringWithAggregatesFilter<"ShareLink"> | string
  17254. token?: StringWithAggregatesFilter<"ShareLink"> | string
  17255. expiresAt?: DateTimeNullableWithAggregatesFilter<"ShareLink"> | Date | string | null
  17256. createdAt?: DateTimeWithAggregatesFilter<"ShareLink"> | Date | string
  17257. }
  17258. export type WorkspaceCreateInput = {
  17259. id?: string
  17260. name: string
  17261. slug: string
  17262. sector?: string | null
  17263. companySize?: number | null
  17264. contactEmail?: string | null
  17265. tier?: $Enums.WorkspaceTier
  17266. llmCallsThisMonth?: number
  17267. llmCallsResetAt?: Date | string
  17268. autoRelanceEnabled?: boolean
  17269. exportsThisMonth?: number
  17270. exportsResetAt?: Date | string
  17271. lastVisitedAt?: Date | string | null
  17272. onboardingDismissed?: boolean
  17273. createdAt?: Date | string
  17274. updatedAt?: Date | string
  17275. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  17276. owner: UserCreateNestedOneWithoutWorkspaceInput
  17277. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  17278. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  17279. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  17280. }
  17281. export type WorkspaceUncheckedCreateInput = {
  17282. id?: string
  17283. name: string
  17284. slug: string
  17285. sector?: string | null
  17286. companySize?: number | null
  17287. contactEmail?: string | null
  17288. tier?: $Enums.WorkspaceTier
  17289. llmCallsThisMonth?: number
  17290. llmCallsResetAt?: Date | string
  17291. autoRelanceEnabled?: boolean
  17292. exportsThisMonth?: number
  17293. exportsResetAt?: Date | string
  17294. lastVisitedAt?: Date | string | null
  17295. onboardingDismissed?: boolean
  17296. createdAt?: Date | string
  17297. updatedAt?: Date | string
  17298. ownerId: string
  17299. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  17300. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  17301. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  17302. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  17303. }
  17304. export type WorkspaceUpdateInput = {
  17305. id?: StringFieldUpdateOperationsInput | string
  17306. name?: StringFieldUpdateOperationsInput | string
  17307. slug?: StringFieldUpdateOperationsInput | string
  17308. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17309. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17310. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17311. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17312. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17313. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17314. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17315. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17316. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17317. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17318. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17319. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17320. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17321. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  17322. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  17323. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  17324. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  17325. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  17326. }
  17327. export type WorkspaceUncheckedUpdateInput = {
  17328. id?: StringFieldUpdateOperationsInput | string
  17329. name?: StringFieldUpdateOperationsInput | string
  17330. slug?: StringFieldUpdateOperationsInput | string
  17331. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17332. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17333. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17334. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17335. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17336. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17337. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17338. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17339. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17340. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17341. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17342. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17343. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17344. ownerId?: StringFieldUpdateOperationsInput | string
  17345. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  17346. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  17347. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  17348. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  17349. }
  17350. export type WorkspaceCreateManyInput = {
  17351. id?: string
  17352. name: string
  17353. slug: string
  17354. sector?: string | null
  17355. companySize?: number | null
  17356. contactEmail?: string | null
  17357. tier?: $Enums.WorkspaceTier
  17358. llmCallsThisMonth?: number
  17359. llmCallsResetAt?: Date | string
  17360. autoRelanceEnabled?: boolean
  17361. exportsThisMonth?: number
  17362. exportsResetAt?: Date | string
  17363. lastVisitedAt?: Date | string | null
  17364. onboardingDismissed?: boolean
  17365. createdAt?: Date | string
  17366. updatedAt?: Date | string
  17367. ownerId: string
  17368. }
  17369. export type WorkspaceUpdateManyMutationInput = {
  17370. id?: StringFieldUpdateOperationsInput | string
  17371. name?: StringFieldUpdateOperationsInput | string
  17372. slug?: StringFieldUpdateOperationsInput | string
  17373. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17374. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17375. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17376. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17377. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17378. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17379. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17380. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17381. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17382. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17383. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17384. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17385. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17386. }
  17387. export type WorkspaceUncheckedUpdateManyInput = {
  17388. id?: StringFieldUpdateOperationsInput | string
  17389. name?: StringFieldUpdateOperationsInput | string
  17390. slug?: StringFieldUpdateOperationsInput | string
  17391. sector?: NullableStringFieldUpdateOperationsInput | string | null
  17392. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  17393. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  17394. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  17395. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  17396. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17397. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  17398. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  17399. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17400. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17401. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  17402. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17403. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17404. ownerId?: StringFieldUpdateOperationsInput | string
  17405. }
  17406. export type ManualRelanceLogCreateInput = {
  17407. id?: string
  17408. subject: string
  17409. recipientCount: number
  17410. sentCount: number
  17411. failedCount?: number
  17412. sentAt?: Date | string
  17413. workspace: WorkspaceCreateNestedOneWithoutManualRelanceLogsInput
  17414. }
  17415. export type ManualRelanceLogUncheckedCreateInput = {
  17416. id?: string
  17417. workspaceId: string
  17418. subject: string
  17419. recipientCount: number
  17420. sentCount: number
  17421. failedCount?: number
  17422. sentAt?: Date | string
  17423. }
  17424. export type ManualRelanceLogUpdateInput = {
  17425. id?: StringFieldUpdateOperationsInput | string
  17426. subject?: StringFieldUpdateOperationsInput | string
  17427. recipientCount?: IntFieldUpdateOperationsInput | number
  17428. sentCount?: IntFieldUpdateOperationsInput | number
  17429. failedCount?: IntFieldUpdateOperationsInput | number
  17430. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17431. workspace?: WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput
  17432. }
  17433. export type ManualRelanceLogUncheckedUpdateInput = {
  17434. id?: StringFieldUpdateOperationsInput | string
  17435. workspaceId?: StringFieldUpdateOperationsInput | string
  17436. subject?: StringFieldUpdateOperationsInput | string
  17437. recipientCount?: IntFieldUpdateOperationsInput | number
  17438. sentCount?: IntFieldUpdateOperationsInput | number
  17439. failedCount?: IntFieldUpdateOperationsInput | number
  17440. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17441. }
  17442. export type ManualRelanceLogCreateManyInput = {
  17443. id?: string
  17444. workspaceId: string
  17445. subject: string
  17446. recipientCount: number
  17447. sentCount: number
  17448. failedCount?: number
  17449. sentAt?: Date | string
  17450. }
  17451. export type ManualRelanceLogUpdateManyMutationInput = {
  17452. id?: StringFieldUpdateOperationsInput | string
  17453. subject?: StringFieldUpdateOperationsInput | string
  17454. recipientCount?: IntFieldUpdateOperationsInput | number
  17455. sentCount?: IntFieldUpdateOperationsInput | number
  17456. failedCount?: IntFieldUpdateOperationsInput | number
  17457. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17458. }
  17459. export type ManualRelanceLogUncheckedUpdateManyInput = {
  17460. id?: StringFieldUpdateOperationsInput | string
  17461. workspaceId?: StringFieldUpdateOperationsInput | string
  17462. subject?: StringFieldUpdateOperationsInput | string
  17463. recipientCount?: IntFieldUpdateOperationsInput | number
  17464. sentCount?: IntFieldUpdateOperationsInput | number
  17465. failedCount?: IntFieldUpdateOperationsInput | number
  17466. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17467. }
  17468. export type ContributorCreateInput = {
  17469. id?: string
  17470. email: string
  17471. service?: string | null
  17472. status?: $Enums.ContributorStatus
  17473. invitedAt?: Date | string
  17474. lastRemindedAt?: Date | string | null
  17475. createdAt?: Date | string
  17476. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  17477. ideas?: IdeaCreateNestedManyWithoutContributorInput
  17478. }
  17479. export type ContributorUncheckedCreateInput = {
  17480. id?: string
  17481. workspaceId: string
  17482. email: string
  17483. service?: string | null
  17484. status?: $Enums.ContributorStatus
  17485. invitedAt?: Date | string
  17486. lastRemindedAt?: Date | string | null
  17487. createdAt?: Date | string
  17488. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  17489. }
  17490. export type ContributorUpdateInput = {
  17491. id?: StringFieldUpdateOperationsInput | string
  17492. email?: StringFieldUpdateOperationsInput | string
  17493. service?: NullableStringFieldUpdateOperationsInput | string | null
  17494. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17495. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17496. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17497. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17498. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  17499. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  17500. }
  17501. export type ContributorUncheckedUpdateInput = {
  17502. id?: StringFieldUpdateOperationsInput | string
  17503. workspaceId?: StringFieldUpdateOperationsInput | string
  17504. email?: StringFieldUpdateOperationsInput | string
  17505. service?: NullableStringFieldUpdateOperationsInput | string | null
  17506. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17507. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17508. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17509. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17510. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  17511. }
  17512. export type ContributorCreateManyInput = {
  17513. id?: string
  17514. workspaceId: string
  17515. email: string
  17516. service?: string | null
  17517. status?: $Enums.ContributorStatus
  17518. invitedAt?: Date | string
  17519. lastRemindedAt?: Date | string | null
  17520. createdAt?: Date | string
  17521. }
  17522. export type ContributorUpdateManyMutationInput = {
  17523. id?: StringFieldUpdateOperationsInput | string
  17524. email?: StringFieldUpdateOperationsInput | string
  17525. service?: NullableStringFieldUpdateOperationsInput | string | null
  17526. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17527. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17528. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17529. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17530. }
  17531. export type ContributorUncheckedUpdateManyInput = {
  17532. id?: StringFieldUpdateOperationsInput | string
  17533. workspaceId?: StringFieldUpdateOperationsInput | string
  17534. email?: StringFieldUpdateOperationsInput | string
  17535. service?: NullableStringFieldUpdateOperationsInput | string | null
  17536. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  17537. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17538. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17539. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17540. }
  17541. export type IdeaCreateInput = {
  17542. id?: string
  17543. contributorEmail: string
  17544. department: string
  17545. problemDescription: string
  17546. estimatedImpact: $Enums.ImpactLevel
  17547. frequency: $Enums.Frequency
  17548. optionalWhoAffected?: string | null
  17549. optionalAlreadyTried?: string | null
  17550. optionalSuccessLooksLike?: string | null
  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. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  17569. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  17570. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  17571. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  17572. }
  17573. export type IdeaUncheckedCreateInput = {
  17574. id?: string
  17575. workspaceId: string
  17576. contributorEmail: string
  17577. contributorId?: string | null
  17578. department: string
  17579. problemDescription: string
  17580. estimatedImpact: $Enums.ImpactLevel
  17581. frequency: $Enums.Frequency
  17582. optionalWhoAffected?: string | null
  17583. optionalAlreadyTried?: string | null
  17584. optionalSuccessLooksLike?: string | null
  17585. status?: $Enums.IdeaStatus
  17586. llmTitle?: string | null
  17587. llmDomain?: string | null
  17588. llmAiType?: string | null
  17589. llmExplanation?: string | null
  17590. llmScoreImpact?: number | null
  17591. llmScoreFeasibility?: number | null
  17592. llmScoreUrgency?: number | null
  17593. llmEnrichedAt?: Date | string | null
  17594. llmEnrichFailed?: boolean
  17595. manualScoreImpact?: number | null
  17596. manualScoreFeasibility?: number | null
  17597. manualScoreUrgency?: number | null
  17598. priorityOrder?: number | null
  17599. emailMessageId?: string | null
  17600. createdAt?: Date | string
  17601. updatedAt?: Date | string
  17602. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  17603. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  17604. }
  17605. export type IdeaUpdateInput = {
  17606. id?: StringFieldUpdateOperationsInput | string
  17607. contributorEmail?: StringFieldUpdateOperationsInput | string
  17608. department?: StringFieldUpdateOperationsInput | string
  17609. problemDescription?: StringFieldUpdateOperationsInput | string
  17610. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17611. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17612. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17613. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17614. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17615. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17616. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17617. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17618. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17619. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17620. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17621. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17622. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17623. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17624. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17625. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17626. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17627. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17628. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17629. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17630. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17631. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17632. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  17633. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  17634. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  17635. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  17636. }
  17637. export type IdeaUncheckedUpdateInput = {
  17638. id?: StringFieldUpdateOperationsInput | string
  17639. workspaceId?: StringFieldUpdateOperationsInput | string
  17640. contributorEmail?: StringFieldUpdateOperationsInput | string
  17641. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  17642. department?: StringFieldUpdateOperationsInput | string
  17643. problemDescription?: StringFieldUpdateOperationsInput | string
  17644. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17645. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17646. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17647. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17648. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17649. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17650. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17651. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17652. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17653. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17654. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17655. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17656. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17657. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17658. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17659. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17660. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17661. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17662. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17663. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17664. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17665. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17666. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  17667. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  17668. }
  17669. export type IdeaCreateManyInput = {
  17670. id?: string
  17671. workspaceId: string
  17672. contributorEmail: string
  17673. contributorId?: string | null
  17674. department: string
  17675. problemDescription: string
  17676. estimatedImpact: $Enums.ImpactLevel
  17677. frequency: $Enums.Frequency
  17678. optionalWhoAffected?: string | null
  17679. optionalAlreadyTried?: string | null
  17680. optionalSuccessLooksLike?: string | null
  17681. status?: $Enums.IdeaStatus
  17682. llmTitle?: string | null
  17683. llmDomain?: string | null
  17684. llmAiType?: string | null
  17685. llmExplanation?: string | null
  17686. llmScoreImpact?: number | null
  17687. llmScoreFeasibility?: number | null
  17688. llmScoreUrgency?: number | null
  17689. llmEnrichedAt?: Date | string | null
  17690. llmEnrichFailed?: boolean
  17691. manualScoreImpact?: number | null
  17692. manualScoreFeasibility?: number | null
  17693. manualScoreUrgency?: number | null
  17694. priorityOrder?: number | null
  17695. emailMessageId?: string | null
  17696. createdAt?: Date | string
  17697. updatedAt?: Date | string
  17698. }
  17699. export type IdeaUpdateManyMutationInput = {
  17700. id?: StringFieldUpdateOperationsInput | string
  17701. contributorEmail?: StringFieldUpdateOperationsInput | string
  17702. department?: StringFieldUpdateOperationsInput | string
  17703. problemDescription?: StringFieldUpdateOperationsInput | string
  17704. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17705. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17706. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17707. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17708. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17709. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17710. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17711. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17712. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17713. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17714. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17715. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17716. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17717. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17718. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17719. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17720. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17721. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17722. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17723. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17724. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17725. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17726. }
  17727. export type IdeaUncheckedUpdateManyInput = {
  17728. id?: StringFieldUpdateOperationsInput | string
  17729. workspaceId?: StringFieldUpdateOperationsInput | string
  17730. contributorEmail?: StringFieldUpdateOperationsInput | string
  17731. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  17732. department?: StringFieldUpdateOperationsInput | string
  17733. problemDescription?: StringFieldUpdateOperationsInput | string
  17734. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  17735. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  17736. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  17737. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  17738. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  17739. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  17740. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  17741. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  17742. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  17743. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  17744. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17745. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17746. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17747. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17748. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  17749. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  17750. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  17751. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  17752. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  17753. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  17754. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17755. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17756. }
  17757. export type PostCreateInput = {
  17758. name: string
  17759. createdAt?: Date | string
  17760. updatedAt?: Date | string
  17761. createdBy: UserCreateNestedOneWithoutPostsInput
  17762. }
  17763. export type PostUncheckedCreateInput = {
  17764. id?: number
  17765. name: string
  17766. createdAt?: Date | string
  17767. updatedAt?: Date | string
  17768. createdById: string
  17769. }
  17770. export type PostUpdateInput = {
  17771. name?: StringFieldUpdateOperationsInput | string
  17772. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17773. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17774. createdBy?: UserUpdateOneRequiredWithoutPostsNestedInput
  17775. }
  17776. export type PostUncheckedUpdateInput = {
  17777. id?: IntFieldUpdateOperationsInput | number
  17778. name?: StringFieldUpdateOperationsInput | string
  17779. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17780. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17781. createdById?: StringFieldUpdateOperationsInput | string
  17782. }
  17783. export type PostCreateManyInput = {
  17784. id?: number
  17785. name: string
  17786. createdAt?: Date | string
  17787. updatedAt?: Date | string
  17788. createdById: string
  17789. }
  17790. export type PostUpdateManyMutationInput = {
  17791. name?: StringFieldUpdateOperationsInput | string
  17792. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17793. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17794. }
  17795. export type PostUncheckedUpdateManyInput = {
  17796. id?: IntFieldUpdateOperationsInput | number
  17797. name?: StringFieldUpdateOperationsInput | string
  17798. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17799. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  17800. createdById?: StringFieldUpdateOperationsInput | string
  17801. }
  17802. export type AccountCreateInput = {
  17803. id?: string
  17804. type: string
  17805. provider: string
  17806. providerAccountId: string
  17807. refresh_token?: string | null
  17808. access_token?: string | null
  17809. expires_at?: number | null
  17810. token_type?: string | null
  17811. scope?: string | null
  17812. id_token?: string | null
  17813. session_state?: string | null
  17814. refresh_token_expires_in?: number | null
  17815. user: UserCreateNestedOneWithoutAccountsInput
  17816. }
  17817. export type AccountUncheckedCreateInput = {
  17818. id?: string
  17819. userId: string
  17820. type: string
  17821. provider: string
  17822. providerAccountId: string
  17823. refresh_token?: string | null
  17824. access_token?: string | null
  17825. expires_at?: number | null
  17826. token_type?: string | null
  17827. scope?: string | null
  17828. id_token?: string | null
  17829. session_state?: string | null
  17830. refresh_token_expires_in?: number | null
  17831. }
  17832. export type AccountUpdateInput = {
  17833. id?: StringFieldUpdateOperationsInput | string
  17834. type?: StringFieldUpdateOperationsInput | string
  17835. provider?: StringFieldUpdateOperationsInput | string
  17836. providerAccountId?: StringFieldUpdateOperationsInput | string
  17837. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17838. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17839. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17840. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17841. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17842. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17843. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17844. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17845. user?: UserUpdateOneRequiredWithoutAccountsNestedInput
  17846. }
  17847. export type AccountUncheckedUpdateInput = {
  17848. id?: StringFieldUpdateOperationsInput | string
  17849. userId?: StringFieldUpdateOperationsInput | string
  17850. type?: StringFieldUpdateOperationsInput | string
  17851. provider?: StringFieldUpdateOperationsInput | string
  17852. providerAccountId?: StringFieldUpdateOperationsInput | string
  17853. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17854. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17855. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17856. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17857. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17858. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17859. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17860. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17861. }
  17862. export type AccountCreateManyInput = {
  17863. id?: string
  17864. userId: string
  17865. type: string
  17866. provider: string
  17867. providerAccountId: string
  17868. refresh_token?: string | null
  17869. access_token?: string | null
  17870. expires_at?: number | null
  17871. token_type?: string | null
  17872. scope?: string | null
  17873. id_token?: string | null
  17874. session_state?: string | null
  17875. refresh_token_expires_in?: number | null
  17876. }
  17877. export type AccountUpdateManyMutationInput = {
  17878. id?: StringFieldUpdateOperationsInput | string
  17879. type?: StringFieldUpdateOperationsInput | string
  17880. provider?: StringFieldUpdateOperationsInput | string
  17881. providerAccountId?: StringFieldUpdateOperationsInput | string
  17882. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17883. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17884. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17885. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17886. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17887. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17888. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17889. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17890. }
  17891. export type AccountUncheckedUpdateManyInput = {
  17892. id?: StringFieldUpdateOperationsInput | string
  17893. userId?: StringFieldUpdateOperationsInput | string
  17894. type?: StringFieldUpdateOperationsInput | string
  17895. provider?: StringFieldUpdateOperationsInput | string
  17896. providerAccountId?: StringFieldUpdateOperationsInput | string
  17897. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  17898. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  17899. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  17900. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  17901. scope?: NullableStringFieldUpdateOperationsInput | string | null
  17902. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  17903. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  17904. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  17905. }
  17906. export type SessionCreateInput = {
  17907. id?: string
  17908. sessionToken: string
  17909. expires: Date | string
  17910. user: UserCreateNestedOneWithoutSessionsInput
  17911. }
  17912. export type SessionUncheckedCreateInput = {
  17913. id?: string
  17914. sessionToken: string
  17915. userId: string
  17916. expires: Date | string
  17917. }
  17918. export type SessionUpdateInput = {
  17919. id?: StringFieldUpdateOperationsInput | string
  17920. sessionToken?: StringFieldUpdateOperationsInput | string
  17921. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17922. user?: UserUpdateOneRequiredWithoutSessionsNestedInput
  17923. }
  17924. export type SessionUncheckedUpdateInput = {
  17925. id?: StringFieldUpdateOperationsInput | string
  17926. sessionToken?: StringFieldUpdateOperationsInput | string
  17927. userId?: StringFieldUpdateOperationsInput | string
  17928. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17929. }
  17930. export type SessionCreateManyInput = {
  17931. id?: string
  17932. sessionToken: string
  17933. userId: string
  17934. expires: Date | string
  17935. }
  17936. export type SessionUpdateManyMutationInput = {
  17937. id?: StringFieldUpdateOperationsInput | string
  17938. sessionToken?: StringFieldUpdateOperationsInput | string
  17939. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17940. }
  17941. export type SessionUncheckedUpdateManyInput = {
  17942. id?: StringFieldUpdateOperationsInput | string
  17943. sessionToken?: StringFieldUpdateOperationsInput | string
  17944. userId?: StringFieldUpdateOperationsInput | string
  17945. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  17946. }
  17947. export type UserCreateInput = {
  17948. id?: string
  17949. name?: string | null
  17950. email?: string | null
  17951. emailVerified?: Date | string | null
  17952. password?: string | null
  17953. image?: string | null
  17954. accounts?: AccountCreateNestedManyWithoutUserInput
  17955. sessions?: SessionCreateNestedManyWithoutUserInput
  17956. posts?: PostCreateNestedManyWithoutCreatedByInput
  17957. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  17958. }
  17959. export type UserUncheckedCreateInput = {
  17960. id?: string
  17961. name?: string | null
  17962. email?: string | null
  17963. emailVerified?: Date | string | null
  17964. password?: string | null
  17965. image?: string | null
  17966. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  17967. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  17968. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  17969. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  17970. }
  17971. export type UserUpdateInput = {
  17972. id?: StringFieldUpdateOperationsInput | string
  17973. name?: NullableStringFieldUpdateOperationsInput | string | null
  17974. email?: NullableStringFieldUpdateOperationsInput | string | null
  17975. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17976. password?: NullableStringFieldUpdateOperationsInput | string | null
  17977. image?: NullableStringFieldUpdateOperationsInput | string | null
  17978. accounts?: AccountUpdateManyWithoutUserNestedInput
  17979. sessions?: SessionUpdateManyWithoutUserNestedInput
  17980. posts?: PostUpdateManyWithoutCreatedByNestedInput
  17981. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  17982. }
  17983. export type UserUncheckedUpdateInput = {
  17984. id?: StringFieldUpdateOperationsInput | string
  17985. name?: NullableStringFieldUpdateOperationsInput | string | null
  17986. email?: NullableStringFieldUpdateOperationsInput | string | null
  17987. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  17988. password?: NullableStringFieldUpdateOperationsInput | string | null
  17989. image?: NullableStringFieldUpdateOperationsInput | string | null
  17990. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  17991. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  17992. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  17993. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  17994. }
  17995. export type UserCreateManyInput = {
  17996. id?: string
  17997. name?: string | null
  17998. email?: string | null
  17999. emailVerified?: Date | string | null
  18000. password?: string | null
  18001. image?: string | null
  18002. }
  18003. export type UserUpdateManyMutationInput = {
  18004. id?: StringFieldUpdateOperationsInput | string
  18005. name?: NullableStringFieldUpdateOperationsInput | string | null
  18006. email?: NullableStringFieldUpdateOperationsInput | string | null
  18007. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18008. password?: NullableStringFieldUpdateOperationsInput | string | null
  18009. image?: NullableStringFieldUpdateOperationsInput | string | null
  18010. }
  18011. export type UserUncheckedUpdateManyInput = {
  18012. id?: StringFieldUpdateOperationsInput | string
  18013. name?: NullableStringFieldUpdateOperationsInput | string | null
  18014. email?: NullableStringFieldUpdateOperationsInput | string | null
  18015. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18016. password?: NullableStringFieldUpdateOperationsInput | string | null
  18017. image?: NullableStringFieldUpdateOperationsInput | string | null
  18018. }
  18019. export type VerificationTokenCreateInput = {
  18020. identifier: string
  18021. token: string
  18022. expires: Date | string
  18023. }
  18024. export type VerificationTokenUncheckedCreateInput = {
  18025. identifier: string
  18026. token: string
  18027. expires: Date | string
  18028. }
  18029. export type VerificationTokenUpdateInput = {
  18030. identifier?: StringFieldUpdateOperationsInput | string
  18031. token?: StringFieldUpdateOperationsInput | string
  18032. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18033. }
  18034. export type VerificationTokenUncheckedUpdateInput = {
  18035. identifier?: StringFieldUpdateOperationsInput | string
  18036. token?: StringFieldUpdateOperationsInput | string
  18037. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18038. }
  18039. export type VerificationTokenCreateManyInput = {
  18040. identifier: string
  18041. token: string
  18042. expires: Date | string
  18043. }
  18044. export type VerificationTokenUpdateManyMutationInput = {
  18045. identifier?: StringFieldUpdateOperationsInput | string
  18046. token?: StringFieldUpdateOperationsInput | string
  18047. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18048. }
  18049. export type VerificationTokenUncheckedUpdateManyInput = {
  18050. identifier?: StringFieldUpdateOperationsInput | string
  18051. token?: StringFieldUpdateOperationsInput | string
  18052. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  18053. }
  18054. export type IdeaAttachmentCreateInput = {
  18055. id?: string
  18056. workspaceId: string
  18057. filename: string
  18058. contentType: string
  18059. size: number
  18060. url: string
  18061. blobPath: string
  18062. createdAt?: Date | string
  18063. idea: IdeaCreateNestedOneWithoutAttachmentsInput
  18064. }
  18065. export type IdeaAttachmentUncheckedCreateInput = {
  18066. id?: string
  18067. ideaId: string
  18068. workspaceId: string
  18069. filename: string
  18070. contentType: string
  18071. size: number
  18072. url: string
  18073. blobPath: string
  18074. createdAt?: Date | string
  18075. }
  18076. export type IdeaAttachmentUpdateInput = {
  18077. id?: StringFieldUpdateOperationsInput | string
  18078. workspaceId?: StringFieldUpdateOperationsInput | string
  18079. filename?: StringFieldUpdateOperationsInput | string
  18080. contentType?: StringFieldUpdateOperationsInput | string
  18081. size?: IntFieldUpdateOperationsInput | number
  18082. url?: StringFieldUpdateOperationsInput | string
  18083. blobPath?: StringFieldUpdateOperationsInput | string
  18084. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18085. idea?: IdeaUpdateOneRequiredWithoutAttachmentsNestedInput
  18086. }
  18087. export type IdeaAttachmentUncheckedUpdateInput = {
  18088. id?: StringFieldUpdateOperationsInput | string
  18089. ideaId?: StringFieldUpdateOperationsInput | string
  18090. workspaceId?: StringFieldUpdateOperationsInput | string
  18091. filename?: StringFieldUpdateOperationsInput | string
  18092. contentType?: StringFieldUpdateOperationsInput | string
  18093. size?: IntFieldUpdateOperationsInput | number
  18094. url?: StringFieldUpdateOperationsInput | string
  18095. blobPath?: StringFieldUpdateOperationsInput | string
  18096. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18097. }
  18098. export type IdeaAttachmentCreateManyInput = {
  18099. id?: string
  18100. ideaId: string
  18101. workspaceId: string
  18102. filename: string
  18103. contentType: string
  18104. size: number
  18105. url: string
  18106. blobPath: string
  18107. createdAt?: Date | string
  18108. }
  18109. export type IdeaAttachmentUpdateManyMutationInput = {
  18110. id?: StringFieldUpdateOperationsInput | string
  18111. workspaceId?: StringFieldUpdateOperationsInput | string
  18112. filename?: StringFieldUpdateOperationsInput | string
  18113. contentType?: StringFieldUpdateOperationsInput | string
  18114. size?: IntFieldUpdateOperationsInput | number
  18115. url?: StringFieldUpdateOperationsInput | string
  18116. blobPath?: StringFieldUpdateOperationsInput | string
  18117. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18118. }
  18119. export type IdeaAttachmentUncheckedUpdateManyInput = {
  18120. id?: StringFieldUpdateOperationsInput | string
  18121. ideaId?: StringFieldUpdateOperationsInput | string
  18122. workspaceId?: StringFieldUpdateOperationsInput | string
  18123. filename?: StringFieldUpdateOperationsInput | string
  18124. contentType?: StringFieldUpdateOperationsInput | string
  18125. size?: IntFieldUpdateOperationsInput | number
  18126. url?: StringFieldUpdateOperationsInput | string
  18127. blobPath?: StringFieldUpdateOperationsInput | string
  18128. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18129. }
  18130. export type QualificationQuestionCreateInput = {
  18131. id?: string
  18132. workspaceId: string
  18133. questionText: string
  18134. responseToken?: string
  18135. askedAt?: Date | string
  18136. responseText?: string | null
  18137. answeredAt?: Date | string | null
  18138. idea: IdeaCreateNestedOneWithoutQualificationQuestionsInput
  18139. }
  18140. export type QualificationQuestionUncheckedCreateInput = {
  18141. id?: string
  18142. ideaId: string
  18143. workspaceId: string
  18144. questionText: string
  18145. responseToken?: string
  18146. askedAt?: Date | string
  18147. responseText?: string | null
  18148. answeredAt?: Date | string | null
  18149. }
  18150. export type QualificationQuestionUpdateInput = {
  18151. id?: StringFieldUpdateOperationsInput | string
  18152. workspaceId?: StringFieldUpdateOperationsInput | string
  18153. questionText?: StringFieldUpdateOperationsInput | string
  18154. responseToken?: StringFieldUpdateOperationsInput | string
  18155. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18156. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18157. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18158. idea?: IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput
  18159. }
  18160. export type QualificationQuestionUncheckedUpdateInput = {
  18161. id?: StringFieldUpdateOperationsInput | string
  18162. ideaId?: StringFieldUpdateOperationsInput | string
  18163. workspaceId?: StringFieldUpdateOperationsInput | string
  18164. questionText?: StringFieldUpdateOperationsInput | string
  18165. responseToken?: StringFieldUpdateOperationsInput | string
  18166. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18167. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18168. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18169. }
  18170. export type QualificationQuestionCreateManyInput = {
  18171. id?: string
  18172. ideaId: string
  18173. workspaceId: string
  18174. questionText: string
  18175. responseToken?: string
  18176. askedAt?: Date | string
  18177. responseText?: string | null
  18178. answeredAt?: Date | string | null
  18179. }
  18180. export type QualificationQuestionUpdateManyMutationInput = {
  18181. id?: StringFieldUpdateOperationsInput | string
  18182. workspaceId?: StringFieldUpdateOperationsInput | string
  18183. questionText?: StringFieldUpdateOperationsInput | string
  18184. responseToken?: StringFieldUpdateOperationsInput | string
  18185. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18186. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18187. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18188. }
  18189. export type QualificationQuestionUncheckedUpdateManyInput = {
  18190. id?: StringFieldUpdateOperationsInput | string
  18191. ideaId?: StringFieldUpdateOperationsInput | string
  18192. workspaceId?: StringFieldUpdateOperationsInput | string
  18193. questionText?: StringFieldUpdateOperationsInput | string
  18194. responseToken?: StringFieldUpdateOperationsInput | string
  18195. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18196. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  18197. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18198. }
  18199. export type LibraryCaseCreateInput = {
  18200. id?: string
  18201. sector: string
  18202. department: string
  18203. title: string
  18204. description: string
  18205. createdAt?: Date | string
  18206. updatedAt?: Date | string
  18207. }
  18208. export type LibraryCaseUncheckedCreateInput = {
  18209. id?: string
  18210. sector: string
  18211. department: string
  18212. title: string
  18213. description: string
  18214. createdAt?: Date | string
  18215. updatedAt?: Date | string
  18216. }
  18217. export type LibraryCaseUpdateInput = {
  18218. id?: StringFieldUpdateOperationsInput | string
  18219. sector?: StringFieldUpdateOperationsInput | string
  18220. department?: StringFieldUpdateOperationsInput | string
  18221. title?: StringFieldUpdateOperationsInput | string
  18222. description?: StringFieldUpdateOperationsInput | string
  18223. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18224. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18225. }
  18226. export type LibraryCaseUncheckedUpdateInput = {
  18227. id?: StringFieldUpdateOperationsInput | string
  18228. sector?: StringFieldUpdateOperationsInput | string
  18229. department?: StringFieldUpdateOperationsInput | string
  18230. title?: StringFieldUpdateOperationsInput | string
  18231. description?: StringFieldUpdateOperationsInput | string
  18232. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18233. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18234. }
  18235. export type LibraryCaseCreateManyInput = {
  18236. id?: string
  18237. sector: string
  18238. department: string
  18239. title: string
  18240. description: string
  18241. createdAt?: Date | string
  18242. updatedAt?: Date | string
  18243. }
  18244. export type LibraryCaseUpdateManyMutationInput = {
  18245. id?: StringFieldUpdateOperationsInput | string
  18246. sector?: StringFieldUpdateOperationsInput | string
  18247. department?: StringFieldUpdateOperationsInput | string
  18248. title?: StringFieldUpdateOperationsInput | string
  18249. description?: StringFieldUpdateOperationsInput | string
  18250. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18251. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18252. }
  18253. export type LibraryCaseUncheckedUpdateManyInput = {
  18254. id?: StringFieldUpdateOperationsInput | string
  18255. sector?: StringFieldUpdateOperationsInput | string
  18256. department?: StringFieldUpdateOperationsInput | string
  18257. title?: StringFieldUpdateOperationsInput | string
  18258. description?: StringFieldUpdateOperationsInput | string
  18259. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18260. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18261. }
  18262. export type ShareLinkCreateInput = {
  18263. id?: string
  18264. token?: string
  18265. expiresAt?: Date | string | null
  18266. createdAt?: Date | string
  18267. workspace: WorkspaceCreateNestedOneWithoutShareLinkInput
  18268. }
  18269. export type ShareLinkUncheckedCreateInput = {
  18270. id?: string
  18271. workspaceId: string
  18272. token?: string
  18273. expiresAt?: Date | string | null
  18274. createdAt?: Date | string
  18275. }
  18276. export type ShareLinkUpdateInput = {
  18277. id?: StringFieldUpdateOperationsInput | string
  18278. token?: StringFieldUpdateOperationsInput | string
  18279. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18280. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18281. workspace?: WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput
  18282. }
  18283. export type ShareLinkUncheckedUpdateInput = {
  18284. id?: StringFieldUpdateOperationsInput | string
  18285. workspaceId?: StringFieldUpdateOperationsInput | string
  18286. token?: StringFieldUpdateOperationsInput | string
  18287. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18288. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18289. }
  18290. export type ShareLinkCreateManyInput = {
  18291. id?: string
  18292. workspaceId: string
  18293. token?: string
  18294. expiresAt?: Date | string | null
  18295. createdAt?: Date | string
  18296. }
  18297. export type ShareLinkUpdateManyMutationInput = {
  18298. id?: StringFieldUpdateOperationsInput | string
  18299. token?: StringFieldUpdateOperationsInput | string
  18300. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18301. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18302. }
  18303. export type ShareLinkUncheckedUpdateManyInput = {
  18304. id?: StringFieldUpdateOperationsInput | string
  18305. workspaceId?: StringFieldUpdateOperationsInput | string
  18306. token?: StringFieldUpdateOperationsInput | string
  18307. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18308. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18309. }
  18310. export type StringFilter<$PrismaModel = never> = {
  18311. equals?: string | StringFieldRefInput<$PrismaModel>
  18312. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  18313. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  18314. lt?: string | StringFieldRefInput<$PrismaModel>
  18315. lte?: string | StringFieldRefInput<$PrismaModel>
  18316. gt?: string | StringFieldRefInput<$PrismaModel>
  18317. gte?: string | StringFieldRefInput<$PrismaModel>
  18318. contains?: string | StringFieldRefInput<$PrismaModel>
  18319. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18320. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18321. mode?: QueryMode
  18322. not?: NestedStringFilter<$PrismaModel> | string
  18323. }
  18324. export type StringNullableFilter<$PrismaModel = never> = {
  18325. equals?: string | StringFieldRefInput<$PrismaModel> | null
  18326. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18327. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18328. lt?: string | StringFieldRefInput<$PrismaModel>
  18329. lte?: string | StringFieldRefInput<$PrismaModel>
  18330. gt?: string | StringFieldRefInput<$PrismaModel>
  18331. gte?: string | StringFieldRefInput<$PrismaModel>
  18332. contains?: string | StringFieldRefInput<$PrismaModel>
  18333. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18334. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18335. mode?: QueryMode
  18336. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  18337. }
  18338. export type IntNullableFilter<$PrismaModel = never> = {
  18339. equals?: number | IntFieldRefInput<$PrismaModel> | null
  18340. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18341. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18342. lt?: number | IntFieldRefInput<$PrismaModel>
  18343. lte?: number | IntFieldRefInput<$PrismaModel>
  18344. gt?: number | IntFieldRefInput<$PrismaModel>
  18345. gte?: number | IntFieldRefInput<$PrismaModel>
  18346. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  18347. }
  18348. export type EnumWorkspaceTierFilter<$PrismaModel = never> = {
  18349. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  18350. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18351. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18352. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  18353. }
  18354. export type IntFilter<$PrismaModel = never> = {
  18355. equals?: number | IntFieldRefInput<$PrismaModel>
  18356. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  18357. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  18358. lt?: number | IntFieldRefInput<$PrismaModel>
  18359. lte?: number | IntFieldRefInput<$PrismaModel>
  18360. gt?: number | IntFieldRefInput<$PrismaModel>
  18361. gte?: number | IntFieldRefInput<$PrismaModel>
  18362. not?: NestedIntFilter<$PrismaModel> | number
  18363. }
  18364. export type DateTimeFilter<$PrismaModel = never> = {
  18365. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18366. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18367. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18368. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18369. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18370. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18371. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18372. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  18373. }
  18374. export type BoolFilter<$PrismaModel = never> = {
  18375. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  18376. not?: NestedBoolFilter<$PrismaModel> | boolean
  18377. }
  18378. export type DateTimeNullableFilter<$PrismaModel = never> = {
  18379. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  18380. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18381. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18382. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18383. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18384. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18385. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18386. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  18387. }
  18388. export type ShareLinkNullableScalarRelationFilter = {
  18389. is?: ShareLinkWhereInput | null
  18390. isNot?: ShareLinkWhereInput | null
  18391. }
  18392. export type UserScalarRelationFilter = {
  18393. is?: UserWhereInput
  18394. isNot?: UserWhereInput
  18395. }
  18396. export type ContributorListRelationFilter = {
  18397. every?: ContributorWhereInput
  18398. some?: ContributorWhereInput
  18399. none?: ContributorWhereInput
  18400. }
  18401. export type IdeaListRelationFilter = {
  18402. every?: IdeaWhereInput
  18403. some?: IdeaWhereInput
  18404. none?: IdeaWhereInput
  18405. }
  18406. export type ManualRelanceLogListRelationFilter = {
  18407. every?: ManualRelanceLogWhereInput
  18408. some?: ManualRelanceLogWhereInput
  18409. none?: ManualRelanceLogWhereInput
  18410. }
  18411. export type SortOrderInput = {
  18412. sort: SortOrder
  18413. nulls?: NullsOrder
  18414. }
  18415. export type ContributorOrderByRelationAggregateInput = {
  18416. _count?: SortOrder
  18417. }
  18418. export type IdeaOrderByRelationAggregateInput = {
  18419. _count?: SortOrder
  18420. }
  18421. export type ManualRelanceLogOrderByRelationAggregateInput = {
  18422. _count?: SortOrder
  18423. }
  18424. export type WorkspaceCountOrderByAggregateInput = {
  18425. id?: SortOrder
  18426. name?: SortOrder
  18427. slug?: SortOrder
  18428. sector?: SortOrder
  18429. companySize?: SortOrder
  18430. contactEmail?: SortOrder
  18431. tier?: SortOrder
  18432. llmCallsThisMonth?: SortOrder
  18433. llmCallsResetAt?: SortOrder
  18434. autoRelanceEnabled?: SortOrder
  18435. exportsThisMonth?: SortOrder
  18436. exportsResetAt?: SortOrder
  18437. lastVisitedAt?: SortOrder
  18438. onboardingDismissed?: SortOrder
  18439. createdAt?: SortOrder
  18440. updatedAt?: SortOrder
  18441. ownerId?: SortOrder
  18442. }
  18443. export type WorkspaceAvgOrderByAggregateInput = {
  18444. companySize?: SortOrder
  18445. llmCallsThisMonth?: SortOrder
  18446. exportsThisMonth?: SortOrder
  18447. }
  18448. export type WorkspaceMaxOrderByAggregateInput = {
  18449. id?: SortOrder
  18450. name?: SortOrder
  18451. slug?: SortOrder
  18452. sector?: SortOrder
  18453. companySize?: SortOrder
  18454. contactEmail?: SortOrder
  18455. tier?: SortOrder
  18456. llmCallsThisMonth?: SortOrder
  18457. llmCallsResetAt?: SortOrder
  18458. autoRelanceEnabled?: SortOrder
  18459. exportsThisMonth?: SortOrder
  18460. exportsResetAt?: SortOrder
  18461. lastVisitedAt?: SortOrder
  18462. onboardingDismissed?: SortOrder
  18463. createdAt?: SortOrder
  18464. updatedAt?: SortOrder
  18465. ownerId?: SortOrder
  18466. }
  18467. export type WorkspaceMinOrderByAggregateInput = {
  18468. id?: SortOrder
  18469. name?: SortOrder
  18470. slug?: SortOrder
  18471. sector?: SortOrder
  18472. companySize?: SortOrder
  18473. contactEmail?: SortOrder
  18474. tier?: SortOrder
  18475. llmCallsThisMonth?: SortOrder
  18476. llmCallsResetAt?: SortOrder
  18477. autoRelanceEnabled?: SortOrder
  18478. exportsThisMonth?: SortOrder
  18479. exportsResetAt?: SortOrder
  18480. lastVisitedAt?: SortOrder
  18481. onboardingDismissed?: SortOrder
  18482. createdAt?: SortOrder
  18483. updatedAt?: SortOrder
  18484. ownerId?: SortOrder
  18485. }
  18486. export type WorkspaceSumOrderByAggregateInput = {
  18487. companySize?: SortOrder
  18488. llmCallsThisMonth?: SortOrder
  18489. exportsThisMonth?: SortOrder
  18490. }
  18491. export type StringWithAggregatesFilter<$PrismaModel = never> = {
  18492. equals?: string | StringFieldRefInput<$PrismaModel>
  18493. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  18494. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  18495. lt?: string | StringFieldRefInput<$PrismaModel>
  18496. lte?: string | StringFieldRefInput<$PrismaModel>
  18497. gt?: string | StringFieldRefInput<$PrismaModel>
  18498. gte?: string | StringFieldRefInput<$PrismaModel>
  18499. contains?: string | StringFieldRefInput<$PrismaModel>
  18500. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18501. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18502. mode?: QueryMode
  18503. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  18504. _count?: NestedIntFilter<$PrismaModel>
  18505. _min?: NestedStringFilter<$PrismaModel>
  18506. _max?: NestedStringFilter<$PrismaModel>
  18507. }
  18508. export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
  18509. equals?: string | StringFieldRefInput<$PrismaModel> | null
  18510. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18511. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  18512. lt?: string | StringFieldRefInput<$PrismaModel>
  18513. lte?: string | StringFieldRefInput<$PrismaModel>
  18514. gt?: string | StringFieldRefInput<$PrismaModel>
  18515. gte?: string | StringFieldRefInput<$PrismaModel>
  18516. contains?: string | StringFieldRefInput<$PrismaModel>
  18517. startsWith?: string | StringFieldRefInput<$PrismaModel>
  18518. endsWith?: string | StringFieldRefInput<$PrismaModel>
  18519. mode?: QueryMode
  18520. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  18521. _count?: NestedIntNullableFilter<$PrismaModel>
  18522. _min?: NestedStringNullableFilter<$PrismaModel>
  18523. _max?: NestedStringNullableFilter<$PrismaModel>
  18524. }
  18525. export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
  18526. equals?: number | IntFieldRefInput<$PrismaModel> | null
  18527. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18528. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  18529. lt?: number | IntFieldRefInput<$PrismaModel>
  18530. lte?: number | IntFieldRefInput<$PrismaModel>
  18531. gt?: number | IntFieldRefInput<$PrismaModel>
  18532. gte?: number | IntFieldRefInput<$PrismaModel>
  18533. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  18534. _count?: NestedIntNullableFilter<$PrismaModel>
  18535. _avg?: NestedFloatNullableFilter<$PrismaModel>
  18536. _sum?: NestedIntNullableFilter<$PrismaModel>
  18537. _min?: NestedIntNullableFilter<$PrismaModel>
  18538. _max?: NestedIntNullableFilter<$PrismaModel>
  18539. }
  18540. export type EnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  18541. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  18542. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18543. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  18544. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  18545. _count?: NestedIntFilter<$PrismaModel>
  18546. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  18547. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  18548. }
  18549. export type IntWithAggregatesFilter<$PrismaModel = never> = {
  18550. equals?: number | IntFieldRefInput<$PrismaModel>
  18551. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  18552. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  18553. lt?: number | IntFieldRefInput<$PrismaModel>
  18554. lte?: number | IntFieldRefInput<$PrismaModel>
  18555. gt?: number | IntFieldRefInput<$PrismaModel>
  18556. gte?: number | IntFieldRefInput<$PrismaModel>
  18557. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  18558. _count?: NestedIntFilter<$PrismaModel>
  18559. _avg?: NestedFloatFilter<$PrismaModel>
  18560. _sum?: NestedIntFilter<$PrismaModel>
  18561. _min?: NestedIntFilter<$PrismaModel>
  18562. _max?: NestedIntFilter<$PrismaModel>
  18563. }
  18564. export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
  18565. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18566. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18567. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  18568. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18569. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18570. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18571. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18572. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  18573. _count?: NestedIntFilter<$PrismaModel>
  18574. _min?: NestedDateTimeFilter<$PrismaModel>
  18575. _max?: NestedDateTimeFilter<$PrismaModel>
  18576. }
  18577. export type BoolWithAggregatesFilter<$PrismaModel = never> = {
  18578. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  18579. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  18580. _count?: NestedIntFilter<$PrismaModel>
  18581. _min?: NestedBoolFilter<$PrismaModel>
  18582. _max?: NestedBoolFilter<$PrismaModel>
  18583. }
  18584. export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  18585. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  18586. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18587. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  18588. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18589. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18590. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18591. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  18592. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  18593. _count?: NestedIntNullableFilter<$PrismaModel>
  18594. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  18595. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  18596. }
  18597. export type WorkspaceScalarRelationFilter = {
  18598. is?: WorkspaceWhereInput
  18599. isNot?: WorkspaceWhereInput
  18600. }
  18601. export type ManualRelanceLogCountOrderByAggregateInput = {
  18602. id?: SortOrder
  18603. workspaceId?: SortOrder
  18604. subject?: SortOrder
  18605. recipientCount?: SortOrder
  18606. sentCount?: SortOrder
  18607. failedCount?: SortOrder
  18608. sentAt?: SortOrder
  18609. }
  18610. export type ManualRelanceLogAvgOrderByAggregateInput = {
  18611. recipientCount?: SortOrder
  18612. sentCount?: SortOrder
  18613. failedCount?: SortOrder
  18614. }
  18615. export type ManualRelanceLogMaxOrderByAggregateInput = {
  18616. id?: SortOrder
  18617. workspaceId?: SortOrder
  18618. subject?: SortOrder
  18619. recipientCount?: SortOrder
  18620. sentCount?: SortOrder
  18621. failedCount?: SortOrder
  18622. sentAt?: SortOrder
  18623. }
  18624. export type ManualRelanceLogMinOrderByAggregateInput = {
  18625. id?: SortOrder
  18626. workspaceId?: SortOrder
  18627. subject?: SortOrder
  18628. recipientCount?: SortOrder
  18629. sentCount?: SortOrder
  18630. failedCount?: SortOrder
  18631. sentAt?: SortOrder
  18632. }
  18633. export type ManualRelanceLogSumOrderByAggregateInput = {
  18634. recipientCount?: SortOrder
  18635. sentCount?: SortOrder
  18636. failedCount?: SortOrder
  18637. }
  18638. export type EnumContributorStatusFilter<$PrismaModel = never> = {
  18639. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  18640. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18641. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18642. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  18643. }
  18644. export type ContributorWorkspaceIdEmailCompoundUniqueInput = {
  18645. workspaceId: string
  18646. email: string
  18647. }
  18648. export type ContributorCountOrderByAggregateInput = {
  18649. id?: SortOrder
  18650. workspaceId?: SortOrder
  18651. email?: SortOrder
  18652. service?: SortOrder
  18653. status?: SortOrder
  18654. invitedAt?: SortOrder
  18655. lastRemindedAt?: SortOrder
  18656. createdAt?: SortOrder
  18657. }
  18658. export type ContributorMaxOrderByAggregateInput = {
  18659. id?: SortOrder
  18660. workspaceId?: SortOrder
  18661. email?: SortOrder
  18662. service?: SortOrder
  18663. status?: SortOrder
  18664. invitedAt?: SortOrder
  18665. lastRemindedAt?: SortOrder
  18666. createdAt?: SortOrder
  18667. }
  18668. export type ContributorMinOrderByAggregateInput = {
  18669. id?: SortOrder
  18670. workspaceId?: SortOrder
  18671. email?: SortOrder
  18672. service?: SortOrder
  18673. status?: SortOrder
  18674. invitedAt?: SortOrder
  18675. lastRemindedAt?: SortOrder
  18676. createdAt?: SortOrder
  18677. }
  18678. export type EnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  18679. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  18680. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18681. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  18682. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  18683. _count?: NestedIntFilter<$PrismaModel>
  18684. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  18685. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  18686. }
  18687. export type EnumImpactLevelFilter<$PrismaModel = never> = {
  18688. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  18689. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18690. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18691. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  18692. }
  18693. export type EnumFrequencyFilter<$PrismaModel = never> = {
  18694. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  18695. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18696. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18697. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  18698. }
  18699. export type EnumIdeaStatusFilter<$PrismaModel = never> = {
  18700. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  18701. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18702. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18703. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  18704. }
  18705. export type ContributorNullableScalarRelationFilter = {
  18706. is?: ContributorWhereInput | null
  18707. isNot?: ContributorWhereInput | null
  18708. }
  18709. export type IdeaAttachmentListRelationFilter = {
  18710. every?: IdeaAttachmentWhereInput
  18711. some?: IdeaAttachmentWhereInput
  18712. none?: IdeaAttachmentWhereInput
  18713. }
  18714. export type QualificationQuestionListRelationFilter = {
  18715. every?: QualificationQuestionWhereInput
  18716. some?: QualificationQuestionWhereInput
  18717. none?: QualificationQuestionWhereInput
  18718. }
  18719. export type IdeaAttachmentOrderByRelationAggregateInput = {
  18720. _count?: SortOrder
  18721. }
  18722. export type QualificationQuestionOrderByRelationAggregateInput = {
  18723. _count?: SortOrder
  18724. }
  18725. export type IdeaCountOrderByAggregateInput = {
  18726. id?: SortOrder
  18727. workspaceId?: SortOrder
  18728. contributorEmail?: SortOrder
  18729. contributorId?: SortOrder
  18730. department?: SortOrder
  18731. problemDescription?: SortOrder
  18732. estimatedImpact?: SortOrder
  18733. frequency?: SortOrder
  18734. optionalWhoAffected?: SortOrder
  18735. optionalAlreadyTried?: SortOrder
  18736. optionalSuccessLooksLike?: SortOrder
  18737. status?: SortOrder
  18738. llmTitle?: SortOrder
  18739. llmDomain?: SortOrder
  18740. llmAiType?: SortOrder
  18741. llmExplanation?: SortOrder
  18742. llmScoreImpact?: SortOrder
  18743. llmScoreFeasibility?: SortOrder
  18744. llmScoreUrgency?: SortOrder
  18745. llmEnrichedAt?: SortOrder
  18746. llmEnrichFailed?: SortOrder
  18747. manualScoreImpact?: SortOrder
  18748. manualScoreFeasibility?: SortOrder
  18749. manualScoreUrgency?: SortOrder
  18750. priorityOrder?: SortOrder
  18751. emailMessageId?: SortOrder
  18752. createdAt?: SortOrder
  18753. updatedAt?: SortOrder
  18754. }
  18755. export type IdeaAvgOrderByAggregateInput = {
  18756. llmScoreImpact?: SortOrder
  18757. llmScoreFeasibility?: SortOrder
  18758. llmScoreUrgency?: SortOrder
  18759. manualScoreImpact?: SortOrder
  18760. manualScoreFeasibility?: SortOrder
  18761. manualScoreUrgency?: SortOrder
  18762. priorityOrder?: SortOrder
  18763. }
  18764. export type IdeaMaxOrderByAggregateInput = {
  18765. id?: SortOrder
  18766. workspaceId?: SortOrder
  18767. contributorEmail?: SortOrder
  18768. contributorId?: SortOrder
  18769. department?: SortOrder
  18770. problemDescription?: SortOrder
  18771. estimatedImpact?: SortOrder
  18772. frequency?: SortOrder
  18773. optionalWhoAffected?: SortOrder
  18774. optionalAlreadyTried?: SortOrder
  18775. optionalSuccessLooksLike?: SortOrder
  18776. status?: SortOrder
  18777. llmTitle?: SortOrder
  18778. llmDomain?: SortOrder
  18779. llmAiType?: SortOrder
  18780. llmExplanation?: SortOrder
  18781. llmScoreImpact?: SortOrder
  18782. llmScoreFeasibility?: SortOrder
  18783. llmScoreUrgency?: SortOrder
  18784. llmEnrichedAt?: SortOrder
  18785. llmEnrichFailed?: SortOrder
  18786. manualScoreImpact?: SortOrder
  18787. manualScoreFeasibility?: SortOrder
  18788. manualScoreUrgency?: SortOrder
  18789. priorityOrder?: SortOrder
  18790. emailMessageId?: SortOrder
  18791. createdAt?: SortOrder
  18792. updatedAt?: SortOrder
  18793. }
  18794. export type IdeaMinOrderByAggregateInput = {
  18795. id?: SortOrder
  18796. workspaceId?: SortOrder
  18797. contributorEmail?: SortOrder
  18798. contributorId?: SortOrder
  18799. department?: SortOrder
  18800. problemDescription?: SortOrder
  18801. estimatedImpact?: SortOrder
  18802. frequency?: SortOrder
  18803. optionalWhoAffected?: SortOrder
  18804. optionalAlreadyTried?: SortOrder
  18805. optionalSuccessLooksLike?: SortOrder
  18806. status?: SortOrder
  18807. llmTitle?: SortOrder
  18808. llmDomain?: SortOrder
  18809. llmAiType?: SortOrder
  18810. llmExplanation?: SortOrder
  18811. llmScoreImpact?: SortOrder
  18812. llmScoreFeasibility?: SortOrder
  18813. llmScoreUrgency?: SortOrder
  18814. llmEnrichedAt?: SortOrder
  18815. llmEnrichFailed?: SortOrder
  18816. manualScoreImpact?: SortOrder
  18817. manualScoreFeasibility?: SortOrder
  18818. manualScoreUrgency?: SortOrder
  18819. priorityOrder?: SortOrder
  18820. emailMessageId?: SortOrder
  18821. createdAt?: SortOrder
  18822. updatedAt?: SortOrder
  18823. }
  18824. export type IdeaSumOrderByAggregateInput = {
  18825. llmScoreImpact?: SortOrder
  18826. llmScoreFeasibility?: SortOrder
  18827. llmScoreUrgency?: SortOrder
  18828. manualScoreImpact?: SortOrder
  18829. manualScoreFeasibility?: SortOrder
  18830. manualScoreUrgency?: SortOrder
  18831. priorityOrder?: SortOrder
  18832. }
  18833. export type EnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  18834. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  18835. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18836. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  18837. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  18838. _count?: NestedIntFilter<$PrismaModel>
  18839. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  18840. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  18841. }
  18842. export type EnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  18843. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  18844. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18845. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  18846. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  18847. _count?: NestedIntFilter<$PrismaModel>
  18848. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  18849. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  18850. }
  18851. export type EnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  18852. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  18853. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18854. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  18855. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  18856. _count?: NestedIntFilter<$PrismaModel>
  18857. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  18858. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  18859. }
  18860. export type PostCountOrderByAggregateInput = {
  18861. id?: SortOrder
  18862. name?: SortOrder
  18863. createdAt?: SortOrder
  18864. updatedAt?: SortOrder
  18865. createdById?: SortOrder
  18866. }
  18867. export type PostAvgOrderByAggregateInput = {
  18868. id?: SortOrder
  18869. }
  18870. export type PostMaxOrderByAggregateInput = {
  18871. id?: SortOrder
  18872. name?: SortOrder
  18873. createdAt?: SortOrder
  18874. updatedAt?: SortOrder
  18875. createdById?: SortOrder
  18876. }
  18877. export type PostMinOrderByAggregateInput = {
  18878. id?: SortOrder
  18879. name?: SortOrder
  18880. createdAt?: SortOrder
  18881. updatedAt?: SortOrder
  18882. createdById?: SortOrder
  18883. }
  18884. export type PostSumOrderByAggregateInput = {
  18885. id?: SortOrder
  18886. }
  18887. export type AccountProviderProviderAccountIdCompoundUniqueInput = {
  18888. provider: string
  18889. providerAccountId: string
  18890. }
  18891. export type AccountCountOrderByAggregateInput = {
  18892. id?: SortOrder
  18893. userId?: SortOrder
  18894. type?: SortOrder
  18895. provider?: SortOrder
  18896. providerAccountId?: SortOrder
  18897. refresh_token?: SortOrder
  18898. access_token?: SortOrder
  18899. expires_at?: SortOrder
  18900. token_type?: SortOrder
  18901. scope?: SortOrder
  18902. id_token?: SortOrder
  18903. session_state?: SortOrder
  18904. refresh_token_expires_in?: SortOrder
  18905. }
  18906. export type AccountAvgOrderByAggregateInput = {
  18907. expires_at?: SortOrder
  18908. refresh_token_expires_in?: SortOrder
  18909. }
  18910. export type AccountMaxOrderByAggregateInput = {
  18911. id?: SortOrder
  18912. userId?: SortOrder
  18913. type?: SortOrder
  18914. provider?: SortOrder
  18915. providerAccountId?: SortOrder
  18916. refresh_token?: SortOrder
  18917. access_token?: SortOrder
  18918. expires_at?: SortOrder
  18919. token_type?: SortOrder
  18920. scope?: SortOrder
  18921. id_token?: SortOrder
  18922. session_state?: SortOrder
  18923. refresh_token_expires_in?: SortOrder
  18924. }
  18925. export type AccountMinOrderByAggregateInput = {
  18926. id?: SortOrder
  18927. userId?: SortOrder
  18928. type?: SortOrder
  18929. provider?: SortOrder
  18930. providerAccountId?: SortOrder
  18931. refresh_token?: SortOrder
  18932. access_token?: SortOrder
  18933. expires_at?: SortOrder
  18934. token_type?: SortOrder
  18935. scope?: SortOrder
  18936. id_token?: SortOrder
  18937. session_state?: SortOrder
  18938. refresh_token_expires_in?: SortOrder
  18939. }
  18940. export type AccountSumOrderByAggregateInput = {
  18941. expires_at?: SortOrder
  18942. refresh_token_expires_in?: SortOrder
  18943. }
  18944. export type SessionCountOrderByAggregateInput = {
  18945. id?: SortOrder
  18946. sessionToken?: SortOrder
  18947. userId?: SortOrder
  18948. expires?: SortOrder
  18949. }
  18950. export type SessionMaxOrderByAggregateInput = {
  18951. id?: SortOrder
  18952. sessionToken?: SortOrder
  18953. userId?: SortOrder
  18954. expires?: SortOrder
  18955. }
  18956. export type SessionMinOrderByAggregateInput = {
  18957. id?: SortOrder
  18958. sessionToken?: SortOrder
  18959. userId?: SortOrder
  18960. expires?: SortOrder
  18961. }
  18962. export type AccountListRelationFilter = {
  18963. every?: AccountWhereInput
  18964. some?: AccountWhereInput
  18965. none?: AccountWhereInput
  18966. }
  18967. export type SessionListRelationFilter = {
  18968. every?: SessionWhereInput
  18969. some?: SessionWhereInput
  18970. none?: SessionWhereInput
  18971. }
  18972. export type PostListRelationFilter = {
  18973. every?: PostWhereInput
  18974. some?: PostWhereInput
  18975. none?: PostWhereInput
  18976. }
  18977. export type WorkspaceNullableScalarRelationFilter = {
  18978. is?: WorkspaceWhereInput | null
  18979. isNot?: WorkspaceWhereInput | null
  18980. }
  18981. export type AccountOrderByRelationAggregateInput = {
  18982. _count?: SortOrder
  18983. }
  18984. export type SessionOrderByRelationAggregateInput = {
  18985. _count?: SortOrder
  18986. }
  18987. export type PostOrderByRelationAggregateInput = {
  18988. _count?: SortOrder
  18989. }
  18990. export type UserCountOrderByAggregateInput = {
  18991. id?: SortOrder
  18992. name?: SortOrder
  18993. email?: SortOrder
  18994. emailVerified?: SortOrder
  18995. password?: SortOrder
  18996. image?: SortOrder
  18997. }
  18998. export type UserMaxOrderByAggregateInput = {
  18999. id?: SortOrder
  19000. name?: SortOrder
  19001. email?: SortOrder
  19002. emailVerified?: SortOrder
  19003. password?: SortOrder
  19004. image?: SortOrder
  19005. }
  19006. export type UserMinOrderByAggregateInput = {
  19007. id?: SortOrder
  19008. name?: SortOrder
  19009. email?: SortOrder
  19010. emailVerified?: SortOrder
  19011. password?: SortOrder
  19012. image?: SortOrder
  19013. }
  19014. export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
  19015. identifier: string
  19016. token: string
  19017. }
  19018. export type VerificationTokenCountOrderByAggregateInput = {
  19019. identifier?: SortOrder
  19020. token?: SortOrder
  19021. expires?: SortOrder
  19022. }
  19023. export type VerificationTokenMaxOrderByAggregateInput = {
  19024. identifier?: SortOrder
  19025. token?: SortOrder
  19026. expires?: SortOrder
  19027. }
  19028. export type VerificationTokenMinOrderByAggregateInput = {
  19029. identifier?: SortOrder
  19030. token?: SortOrder
  19031. expires?: SortOrder
  19032. }
  19033. export type IdeaScalarRelationFilter = {
  19034. is?: IdeaWhereInput
  19035. isNot?: IdeaWhereInput
  19036. }
  19037. export type IdeaAttachmentCountOrderByAggregateInput = {
  19038. id?: SortOrder
  19039. ideaId?: SortOrder
  19040. workspaceId?: SortOrder
  19041. filename?: SortOrder
  19042. contentType?: SortOrder
  19043. size?: SortOrder
  19044. url?: SortOrder
  19045. blobPath?: SortOrder
  19046. createdAt?: SortOrder
  19047. }
  19048. export type IdeaAttachmentAvgOrderByAggregateInput = {
  19049. size?: SortOrder
  19050. }
  19051. export type IdeaAttachmentMaxOrderByAggregateInput = {
  19052. id?: SortOrder
  19053. ideaId?: SortOrder
  19054. workspaceId?: SortOrder
  19055. filename?: SortOrder
  19056. contentType?: SortOrder
  19057. size?: SortOrder
  19058. url?: SortOrder
  19059. blobPath?: SortOrder
  19060. createdAt?: SortOrder
  19061. }
  19062. export type IdeaAttachmentMinOrderByAggregateInput = {
  19063. id?: SortOrder
  19064. ideaId?: SortOrder
  19065. workspaceId?: SortOrder
  19066. filename?: SortOrder
  19067. contentType?: SortOrder
  19068. size?: SortOrder
  19069. url?: SortOrder
  19070. blobPath?: SortOrder
  19071. createdAt?: SortOrder
  19072. }
  19073. export type IdeaAttachmentSumOrderByAggregateInput = {
  19074. size?: SortOrder
  19075. }
  19076. export type QualificationQuestionCountOrderByAggregateInput = {
  19077. id?: SortOrder
  19078. ideaId?: SortOrder
  19079. workspaceId?: SortOrder
  19080. questionText?: SortOrder
  19081. responseToken?: SortOrder
  19082. askedAt?: SortOrder
  19083. responseText?: SortOrder
  19084. answeredAt?: SortOrder
  19085. }
  19086. export type QualificationQuestionMaxOrderByAggregateInput = {
  19087. id?: SortOrder
  19088. ideaId?: SortOrder
  19089. workspaceId?: SortOrder
  19090. questionText?: SortOrder
  19091. responseToken?: SortOrder
  19092. askedAt?: SortOrder
  19093. responseText?: SortOrder
  19094. answeredAt?: SortOrder
  19095. }
  19096. export type QualificationQuestionMinOrderByAggregateInput = {
  19097. id?: SortOrder
  19098. ideaId?: SortOrder
  19099. workspaceId?: SortOrder
  19100. questionText?: SortOrder
  19101. responseToken?: SortOrder
  19102. askedAt?: SortOrder
  19103. responseText?: SortOrder
  19104. answeredAt?: SortOrder
  19105. }
  19106. export type LibraryCaseCountOrderByAggregateInput = {
  19107. id?: SortOrder
  19108. sector?: SortOrder
  19109. department?: SortOrder
  19110. title?: SortOrder
  19111. description?: SortOrder
  19112. createdAt?: SortOrder
  19113. updatedAt?: SortOrder
  19114. }
  19115. export type LibraryCaseMaxOrderByAggregateInput = {
  19116. id?: SortOrder
  19117. sector?: SortOrder
  19118. department?: SortOrder
  19119. title?: SortOrder
  19120. description?: SortOrder
  19121. createdAt?: SortOrder
  19122. updatedAt?: SortOrder
  19123. }
  19124. export type LibraryCaseMinOrderByAggregateInput = {
  19125. id?: SortOrder
  19126. sector?: SortOrder
  19127. department?: SortOrder
  19128. title?: SortOrder
  19129. description?: SortOrder
  19130. createdAt?: SortOrder
  19131. updatedAt?: SortOrder
  19132. }
  19133. export type ShareLinkCountOrderByAggregateInput = {
  19134. id?: SortOrder
  19135. workspaceId?: SortOrder
  19136. token?: SortOrder
  19137. expiresAt?: SortOrder
  19138. createdAt?: SortOrder
  19139. }
  19140. export type ShareLinkMaxOrderByAggregateInput = {
  19141. id?: SortOrder
  19142. workspaceId?: SortOrder
  19143. token?: SortOrder
  19144. expiresAt?: SortOrder
  19145. createdAt?: SortOrder
  19146. }
  19147. export type ShareLinkMinOrderByAggregateInput = {
  19148. id?: SortOrder
  19149. workspaceId?: SortOrder
  19150. token?: SortOrder
  19151. expiresAt?: SortOrder
  19152. createdAt?: SortOrder
  19153. }
  19154. export type ShareLinkCreateNestedOneWithoutWorkspaceInput = {
  19155. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19156. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19157. connect?: ShareLinkWhereUniqueInput
  19158. }
  19159. export type UserCreateNestedOneWithoutWorkspaceInput = {
  19160. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  19161. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  19162. connect?: UserWhereUniqueInput
  19163. }
  19164. export type ContributorCreateNestedManyWithoutWorkspaceInput = {
  19165. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19166. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19167. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19168. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19169. }
  19170. export type IdeaCreateNestedManyWithoutWorkspaceInput = {
  19171. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19172. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19173. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19174. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19175. }
  19176. export type ManualRelanceLogCreateNestedManyWithoutWorkspaceInput = {
  19177. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19178. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19179. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19180. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19181. }
  19182. export type ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput = {
  19183. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19184. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19185. connect?: ShareLinkWhereUniqueInput
  19186. }
  19187. export type ContributorUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19188. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19189. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19190. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19191. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19192. }
  19193. export type IdeaUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19194. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19195. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19196. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19197. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19198. }
  19199. export type ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput = {
  19200. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19201. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19202. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19203. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19204. }
  19205. export type StringFieldUpdateOperationsInput = {
  19206. set?: string
  19207. }
  19208. export type NullableStringFieldUpdateOperationsInput = {
  19209. set?: string | null
  19210. }
  19211. export type NullableIntFieldUpdateOperationsInput = {
  19212. set?: number | null
  19213. increment?: number
  19214. decrement?: number
  19215. multiply?: number
  19216. divide?: number
  19217. }
  19218. export type EnumWorkspaceTierFieldUpdateOperationsInput = {
  19219. set?: $Enums.WorkspaceTier
  19220. }
  19221. export type IntFieldUpdateOperationsInput = {
  19222. set?: number
  19223. increment?: number
  19224. decrement?: number
  19225. multiply?: number
  19226. divide?: number
  19227. }
  19228. export type DateTimeFieldUpdateOperationsInput = {
  19229. set?: Date | string
  19230. }
  19231. export type BoolFieldUpdateOperationsInput = {
  19232. set?: boolean
  19233. }
  19234. export type NullableDateTimeFieldUpdateOperationsInput = {
  19235. set?: Date | string | null
  19236. }
  19237. export type ShareLinkUpdateOneWithoutWorkspaceNestedInput = {
  19238. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19239. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19240. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  19241. disconnect?: ShareLinkWhereInput | boolean
  19242. delete?: ShareLinkWhereInput | boolean
  19243. connect?: ShareLinkWhereUniqueInput
  19244. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  19245. }
  19246. export type UserUpdateOneRequiredWithoutWorkspaceNestedInput = {
  19247. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  19248. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  19249. upsert?: UserUpsertWithoutWorkspaceInput
  19250. connect?: UserWhereUniqueInput
  19251. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutWorkspaceInput, UserUpdateWithoutWorkspaceInput>, UserUncheckedUpdateWithoutWorkspaceInput>
  19252. }
  19253. export type ContributorUpdateManyWithoutWorkspaceNestedInput = {
  19254. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19255. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19256. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19257. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19258. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19259. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19260. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19261. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19262. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19263. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  19264. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  19265. }
  19266. export type IdeaUpdateManyWithoutWorkspaceNestedInput = {
  19267. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19268. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19269. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19270. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19271. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19272. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19273. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19274. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19275. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19276. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  19277. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19278. }
  19279. export type ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput = {
  19280. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19281. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19282. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19283. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19284. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19285. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19286. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19287. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19288. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19289. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  19290. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  19291. }
  19292. export type ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput = {
  19293. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  19294. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  19295. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  19296. disconnect?: ShareLinkWhereInput | boolean
  19297. delete?: ShareLinkWhereInput | boolean
  19298. connect?: ShareLinkWhereUniqueInput
  19299. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  19300. }
  19301. export type ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19302. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  19303. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  19304. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19305. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  19306. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19307. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19308. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19309. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  19310. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19311. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  19312. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  19313. }
  19314. export type IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19315. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  19316. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  19317. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19318. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  19319. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19320. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19321. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19322. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19323. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19324. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  19325. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19326. }
  19327. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  19328. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  19329. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  19330. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  19331. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  19332. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19333. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19334. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19335. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  19336. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  19337. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  19338. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  19339. }
  19340. export type WorkspaceCreateNestedOneWithoutManualRelanceLogsInput = {
  19341. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  19342. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  19343. connect?: WorkspaceWhereUniqueInput
  19344. }
  19345. export type WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput = {
  19346. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  19347. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  19348. upsert?: WorkspaceUpsertWithoutManualRelanceLogsInput
  19349. connect?: WorkspaceWhereUniqueInput
  19350. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput, WorkspaceUpdateWithoutManualRelanceLogsInput>, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  19351. }
  19352. export type WorkspaceCreateNestedOneWithoutContributorsInput = {
  19353. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  19354. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  19355. connect?: WorkspaceWhereUniqueInput
  19356. }
  19357. export type IdeaCreateNestedManyWithoutContributorInput = {
  19358. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19359. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19360. createMany?: IdeaCreateManyContributorInputEnvelope
  19361. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19362. }
  19363. export type IdeaUncheckedCreateNestedManyWithoutContributorInput = {
  19364. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19365. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19366. createMany?: IdeaCreateManyContributorInputEnvelope
  19367. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19368. }
  19369. export type EnumContributorStatusFieldUpdateOperationsInput = {
  19370. set?: $Enums.ContributorStatus
  19371. }
  19372. export type WorkspaceUpdateOneRequiredWithoutContributorsNestedInput = {
  19373. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  19374. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  19375. upsert?: WorkspaceUpsertWithoutContributorsInput
  19376. connect?: WorkspaceWhereUniqueInput
  19377. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutContributorsInput, WorkspaceUpdateWithoutContributorsInput>, WorkspaceUncheckedUpdateWithoutContributorsInput>
  19378. }
  19379. export type IdeaUpdateManyWithoutContributorNestedInput = {
  19380. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19381. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19382. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  19383. createMany?: IdeaCreateManyContributorInputEnvelope
  19384. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19385. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19386. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19387. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19388. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  19389. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  19390. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19391. }
  19392. export type IdeaUncheckedUpdateManyWithoutContributorNestedInput = {
  19393. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  19394. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  19395. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  19396. createMany?: IdeaCreateManyContributorInputEnvelope
  19397. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19398. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19399. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19400. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  19401. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  19402. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  19403. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  19404. }
  19405. export type WorkspaceCreateNestedOneWithoutIdeasInput = {
  19406. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  19407. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  19408. connect?: WorkspaceWhereUniqueInput
  19409. }
  19410. export type ContributorCreateNestedOneWithoutIdeasInput = {
  19411. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  19412. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  19413. connect?: ContributorWhereUniqueInput
  19414. }
  19415. export type IdeaAttachmentCreateNestedManyWithoutIdeaInput = {
  19416. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19417. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19418. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19419. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19420. }
  19421. export type QualificationQuestionCreateNestedManyWithoutIdeaInput = {
  19422. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19423. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19424. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19425. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19426. }
  19427. export type IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput = {
  19428. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19429. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19430. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19431. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19432. }
  19433. export type QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput = {
  19434. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19435. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19436. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19437. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19438. }
  19439. export type EnumImpactLevelFieldUpdateOperationsInput = {
  19440. set?: $Enums.ImpactLevel
  19441. }
  19442. export type EnumFrequencyFieldUpdateOperationsInput = {
  19443. set?: $Enums.Frequency
  19444. }
  19445. export type EnumIdeaStatusFieldUpdateOperationsInput = {
  19446. set?: $Enums.IdeaStatus
  19447. }
  19448. export type WorkspaceUpdateOneRequiredWithoutIdeasNestedInput = {
  19449. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  19450. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  19451. upsert?: WorkspaceUpsertWithoutIdeasInput
  19452. connect?: WorkspaceWhereUniqueInput
  19453. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutIdeasInput, WorkspaceUpdateWithoutIdeasInput>, WorkspaceUncheckedUpdateWithoutIdeasInput>
  19454. }
  19455. export type ContributorUpdateOneWithoutIdeasNestedInput = {
  19456. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  19457. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  19458. upsert?: ContributorUpsertWithoutIdeasInput
  19459. disconnect?: ContributorWhereInput | boolean
  19460. delete?: ContributorWhereInput | boolean
  19461. connect?: ContributorWhereUniqueInput
  19462. update?: XOR<XOR<ContributorUpdateToOneWithWhereWithoutIdeasInput, ContributorUpdateWithoutIdeasInput>, ContributorUncheckedUpdateWithoutIdeasInput>
  19463. }
  19464. export type IdeaAttachmentUpdateManyWithoutIdeaNestedInput = {
  19465. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19466. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19467. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  19468. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19469. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19470. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19471. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19472. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19473. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  19474. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  19475. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  19476. }
  19477. export type QualificationQuestionUpdateManyWithoutIdeaNestedInput = {
  19478. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19479. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19480. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  19481. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19482. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19483. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19484. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19485. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19486. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  19487. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  19488. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  19489. }
  19490. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput = {
  19491. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  19492. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  19493. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  19494. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  19495. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19496. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19497. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19498. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  19499. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  19500. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  19501. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  19502. }
  19503. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput = {
  19504. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  19505. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  19506. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  19507. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  19508. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19509. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19510. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19511. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  19512. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  19513. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  19514. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  19515. }
  19516. export type UserCreateNestedOneWithoutPostsInput = {
  19517. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  19518. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  19519. connect?: UserWhereUniqueInput
  19520. }
  19521. export type UserUpdateOneRequiredWithoutPostsNestedInput = {
  19522. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  19523. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  19524. upsert?: UserUpsertWithoutPostsInput
  19525. connect?: UserWhereUniqueInput
  19526. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutPostsInput, UserUpdateWithoutPostsInput>, UserUncheckedUpdateWithoutPostsInput>
  19527. }
  19528. export type UserCreateNestedOneWithoutAccountsInput = {
  19529. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  19530. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  19531. connect?: UserWhereUniqueInput
  19532. }
  19533. export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
  19534. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  19535. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  19536. upsert?: UserUpsertWithoutAccountsInput
  19537. connect?: UserWhereUniqueInput
  19538. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAccountsInput, UserUpdateWithoutAccountsInput>, UserUncheckedUpdateWithoutAccountsInput>
  19539. }
  19540. export type UserCreateNestedOneWithoutSessionsInput = {
  19541. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  19542. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  19543. connect?: UserWhereUniqueInput
  19544. }
  19545. export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
  19546. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  19547. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  19548. upsert?: UserUpsertWithoutSessionsInput
  19549. connect?: UserWhereUniqueInput
  19550. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
  19551. }
  19552. export type AccountCreateNestedManyWithoutUserInput = {
  19553. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19554. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19555. createMany?: AccountCreateManyUserInputEnvelope
  19556. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19557. }
  19558. export type SessionCreateNestedManyWithoutUserInput = {
  19559. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19560. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19561. createMany?: SessionCreateManyUserInputEnvelope
  19562. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19563. }
  19564. export type PostCreateNestedManyWithoutCreatedByInput = {
  19565. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19566. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19567. createMany?: PostCreateManyCreatedByInputEnvelope
  19568. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19569. }
  19570. export type WorkspaceCreateNestedOneWithoutOwnerInput = {
  19571. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19572. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19573. connect?: WorkspaceWhereUniqueInput
  19574. }
  19575. export type AccountUncheckedCreateNestedManyWithoutUserInput = {
  19576. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19577. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19578. createMany?: AccountCreateManyUserInputEnvelope
  19579. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19580. }
  19581. export type SessionUncheckedCreateNestedManyWithoutUserInput = {
  19582. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19583. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19584. createMany?: SessionCreateManyUserInputEnvelope
  19585. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19586. }
  19587. export type PostUncheckedCreateNestedManyWithoutCreatedByInput = {
  19588. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19589. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19590. createMany?: PostCreateManyCreatedByInputEnvelope
  19591. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19592. }
  19593. export type WorkspaceUncheckedCreateNestedOneWithoutOwnerInput = {
  19594. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19595. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19596. connect?: WorkspaceWhereUniqueInput
  19597. }
  19598. export type AccountUpdateManyWithoutUserNestedInput = {
  19599. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19600. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19601. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  19602. createMany?: AccountCreateManyUserInputEnvelope
  19603. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19604. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19605. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19606. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19607. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  19608. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  19609. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  19610. }
  19611. export type SessionUpdateManyWithoutUserNestedInput = {
  19612. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19613. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19614. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  19615. createMany?: SessionCreateManyUserInputEnvelope
  19616. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19617. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19618. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19619. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19620. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  19621. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  19622. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  19623. }
  19624. export type PostUpdateManyWithoutCreatedByNestedInput = {
  19625. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19626. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19627. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  19628. createMany?: PostCreateManyCreatedByInputEnvelope
  19629. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19630. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19631. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19632. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19633. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  19634. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  19635. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  19636. }
  19637. export type WorkspaceUpdateOneWithoutOwnerNestedInput = {
  19638. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19639. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19640. upsert?: WorkspaceUpsertWithoutOwnerInput
  19641. disconnect?: WorkspaceWhereInput | boolean
  19642. delete?: WorkspaceWhereInput | boolean
  19643. connect?: WorkspaceWhereUniqueInput
  19644. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  19645. }
  19646. export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
  19647. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  19648. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  19649. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  19650. createMany?: AccountCreateManyUserInputEnvelope
  19651. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19652. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19653. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19654. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  19655. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  19656. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  19657. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  19658. }
  19659. export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
  19660. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  19661. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  19662. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  19663. createMany?: SessionCreateManyUserInputEnvelope
  19664. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19665. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19666. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19667. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  19668. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  19669. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  19670. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  19671. }
  19672. export type PostUncheckedUpdateManyWithoutCreatedByNestedInput = {
  19673. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  19674. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  19675. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  19676. createMany?: PostCreateManyCreatedByInputEnvelope
  19677. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19678. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19679. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19680. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  19681. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  19682. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  19683. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  19684. }
  19685. export type WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput = {
  19686. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  19687. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  19688. upsert?: WorkspaceUpsertWithoutOwnerInput
  19689. disconnect?: WorkspaceWhereInput | boolean
  19690. delete?: WorkspaceWhereInput | boolean
  19691. connect?: WorkspaceWhereUniqueInput
  19692. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  19693. }
  19694. export type IdeaCreateNestedOneWithoutAttachmentsInput = {
  19695. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  19696. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  19697. connect?: IdeaWhereUniqueInput
  19698. }
  19699. export type IdeaUpdateOneRequiredWithoutAttachmentsNestedInput = {
  19700. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  19701. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  19702. upsert?: IdeaUpsertWithoutAttachmentsInput
  19703. connect?: IdeaWhereUniqueInput
  19704. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutAttachmentsInput, IdeaUpdateWithoutAttachmentsInput>, IdeaUncheckedUpdateWithoutAttachmentsInput>
  19705. }
  19706. export type IdeaCreateNestedOneWithoutQualificationQuestionsInput = {
  19707. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  19708. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  19709. connect?: IdeaWhereUniqueInput
  19710. }
  19711. export type IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput = {
  19712. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  19713. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  19714. upsert?: IdeaUpsertWithoutQualificationQuestionsInput
  19715. connect?: IdeaWhereUniqueInput
  19716. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput, IdeaUpdateWithoutQualificationQuestionsInput>, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  19717. }
  19718. export type WorkspaceCreateNestedOneWithoutShareLinkInput = {
  19719. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  19720. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  19721. connect?: WorkspaceWhereUniqueInput
  19722. }
  19723. export type WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput = {
  19724. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  19725. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  19726. upsert?: WorkspaceUpsertWithoutShareLinkInput
  19727. connect?: WorkspaceWhereUniqueInput
  19728. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutShareLinkInput, WorkspaceUpdateWithoutShareLinkInput>, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  19729. }
  19730. export type NestedStringFilter<$PrismaModel = never> = {
  19731. equals?: string | StringFieldRefInput<$PrismaModel>
  19732. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19733. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19734. lt?: string | StringFieldRefInput<$PrismaModel>
  19735. lte?: string | StringFieldRefInput<$PrismaModel>
  19736. gt?: string | StringFieldRefInput<$PrismaModel>
  19737. gte?: string | StringFieldRefInput<$PrismaModel>
  19738. contains?: string | StringFieldRefInput<$PrismaModel>
  19739. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19740. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19741. not?: NestedStringFilter<$PrismaModel> | string
  19742. }
  19743. export type NestedStringNullableFilter<$PrismaModel = never> = {
  19744. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19745. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19746. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19747. lt?: string | StringFieldRefInput<$PrismaModel>
  19748. lte?: string | StringFieldRefInput<$PrismaModel>
  19749. gt?: string | StringFieldRefInput<$PrismaModel>
  19750. gte?: string | StringFieldRefInput<$PrismaModel>
  19751. contains?: string | StringFieldRefInput<$PrismaModel>
  19752. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19753. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19754. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  19755. }
  19756. export type NestedIntNullableFilter<$PrismaModel = never> = {
  19757. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19758. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19759. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19760. lt?: number | IntFieldRefInput<$PrismaModel>
  19761. lte?: number | IntFieldRefInput<$PrismaModel>
  19762. gt?: number | IntFieldRefInput<$PrismaModel>
  19763. gte?: number | IntFieldRefInput<$PrismaModel>
  19764. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  19765. }
  19766. export type NestedEnumWorkspaceTierFilter<$PrismaModel = never> = {
  19767. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19768. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19769. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19770. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  19771. }
  19772. export type NestedIntFilter<$PrismaModel = never> = {
  19773. equals?: number | IntFieldRefInput<$PrismaModel>
  19774. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19775. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19776. lt?: number | IntFieldRefInput<$PrismaModel>
  19777. lte?: number | IntFieldRefInput<$PrismaModel>
  19778. gt?: number | IntFieldRefInput<$PrismaModel>
  19779. gte?: number | IntFieldRefInput<$PrismaModel>
  19780. not?: NestedIntFilter<$PrismaModel> | number
  19781. }
  19782. export type NestedDateTimeFilter<$PrismaModel = never> = {
  19783. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19784. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19785. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19786. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19787. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19788. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19789. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19790. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  19791. }
  19792. export type NestedBoolFilter<$PrismaModel = never> = {
  19793. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19794. not?: NestedBoolFilter<$PrismaModel> | boolean
  19795. }
  19796. export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
  19797. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19798. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19799. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19800. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19801. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19802. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19803. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19804. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  19805. }
  19806. export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
  19807. equals?: string | StringFieldRefInput<$PrismaModel>
  19808. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19809. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19810. lt?: string | StringFieldRefInput<$PrismaModel>
  19811. lte?: string | StringFieldRefInput<$PrismaModel>
  19812. gt?: string | StringFieldRefInput<$PrismaModel>
  19813. gte?: string | StringFieldRefInput<$PrismaModel>
  19814. contains?: string | StringFieldRefInput<$PrismaModel>
  19815. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19816. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19817. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  19818. _count?: NestedIntFilter<$PrismaModel>
  19819. _min?: NestedStringFilter<$PrismaModel>
  19820. _max?: NestedStringFilter<$PrismaModel>
  19821. }
  19822. export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
  19823. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19824. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19825. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19826. lt?: string | StringFieldRefInput<$PrismaModel>
  19827. lte?: string | StringFieldRefInput<$PrismaModel>
  19828. gt?: string | StringFieldRefInput<$PrismaModel>
  19829. gte?: string | StringFieldRefInput<$PrismaModel>
  19830. contains?: string | StringFieldRefInput<$PrismaModel>
  19831. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19832. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19833. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  19834. _count?: NestedIntNullableFilter<$PrismaModel>
  19835. _min?: NestedStringNullableFilter<$PrismaModel>
  19836. _max?: NestedStringNullableFilter<$PrismaModel>
  19837. }
  19838. export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
  19839. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19840. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19841. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19842. lt?: number | IntFieldRefInput<$PrismaModel>
  19843. lte?: number | IntFieldRefInput<$PrismaModel>
  19844. gt?: number | IntFieldRefInput<$PrismaModel>
  19845. gte?: number | IntFieldRefInput<$PrismaModel>
  19846. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  19847. _count?: NestedIntNullableFilter<$PrismaModel>
  19848. _avg?: NestedFloatNullableFilter<$PrismaModel>
  19849. _sum?: NestedIntNullableFilter<$PrismaModel>
  19850. _min?: NestedIntNullableFilter<$PrismaModel>
  19851. _max?: NestedIntNullableFilter<$PrismaModel>
  19852. }
  19853. export type NestedFloatNullableFilter<$PrismaModel = never> = {
  19854. equals?: number | FloatFieldRefInput<$PrismaModel> | null
  19855. in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  19856. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  19857. lt?: number | FloatFieldRefInput<$PrismaModel>
  19858. lte?: number | FloatFieldRefInput<$PrismaModel>
  19859. gt?: number | FloatFieldRefInput<$PrismaModel>
  19860. gte?: number | FloatFieldRefInput<$PrismaModel>
  19861. not?: NestedFloatNullableFilter<$PrismaModel> | number | null
  19862. }
  19863. export type NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  19864. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19865. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19866. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19867. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  19868. _count?: NestedIntFilter<$PrismaModel>
  19869. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19870. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19871. }
  19872. export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
  19873. equals?: number | IntFieldRefInput<$PrismaModel>
  19874. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19875. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19876. lt?: number | IntFieldRefInput<$PrismaModel>
  19877. lte?: number | IntFieldRefInput<$PrismaModel>
  19878. gt?: number | IntFieldRefInput<$PrismaModel>
  19879. gte?: number | IntFieldRefInput<$PrismaModel>
  19880. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  19881. _count?: NestedIntFilter<$PrismaModel>
  19882. _avg?: NestedFloatFilter<$PrismaModel>
  19883. _sum?: NestedIntFilter<$PrismaModel>
  19884. _min?: NestedIntFilter<$PrismaModel>
  19885. _max?: NestedIntFilter<$PrismaModel>
  19886. }
  19887. export type NestedFloatFilter<$PrismaModel = never> = {
  19888. equals?: number | FloatFieldRefInput<$PrismaModel>
  19889. in?: number[] | ListFloatFieldRefInput<$PrismaModel>
  19890. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
  19891. lt?: number | FloatFieldRefInput<$PrismaModel>
  19892. lte?: number | FloatFieldRefInput<$PrismaModel>
  19893. gt?: number | FloatFieldRefInput<$PrismaModel>
  19894. gte?: number | FloatFieldRefInput<$PrismaModel>
  19895. not?: NestedFloatFilter<$PrismaModel> | number
  19896. }
  19897. export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
  19898. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19899. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19900. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19901. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19902. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19903. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19904. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19905. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  19906. _count?: NestedIntFilter<$PrismaModel>
  19907. _min?: NestedDateTimeFilter<$PrismaModel>
  19908. _max?: NestedDateTimeFilter<$PrismaModel>
  19909. }
  19910. export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
  19911. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19912. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  19913. _count?: NestedIntFilter<$PrismaModel>
  19914. _min?: NestedBoolFilter<$PrismaModel>
  19915. _max?: NestedBoolFilter<$PrismaModel>
  19916. }
  19917. export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  19918. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19919. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19920. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19921. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19922. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19923. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19924. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19925. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  19926. _count?: NestedIntNullableFilter<$PrismaModel>
  19927. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  19928. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  19929. }
  19930. export type NestedEnumContributorStatusFilter<$PrismaModel = never> = {
  19931. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  19932. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19933. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19934. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  19935. }
  19936. export type NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  19937. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  19938. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19939. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  19940. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  19941. _count?: NestedIntFilter<$PrismaModel>
  19942. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  19943. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  19944. }
  19945. export type NestedEnumImpactLevelFilter<$PrismaModel = never> = {
  19946. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  19947. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19948. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19949. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  19950. }
  19951. export type NestedEnumFrequencyFilter<$PrismaModel = never> = {
  19952. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  19953. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19954. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19955. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  19956. }
  19957. export type NestedEnumIdeaStatusFilter<$PrismaModel = never> = {
  19958. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  19959. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19960. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19961. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  19962. }
  19963. export type NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  19964. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  19965. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19966. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  19967. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  19968. _count?: NestedIntFilter<$PrismaModel>
  19969. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  19970. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  19971. }
  19972. export type NestedEnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  19973. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  19974. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19975. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  19976. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  19977. _count?: NestedIntFilter<$PrismaModel>
  19978. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  19979. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  19980. }
  19981. export type NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  19982. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  19983. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19984. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  19985. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  19986. _count?: NestedIntFilter<$PrismaModel>
  19987. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  19988. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  19989. }
  19990. export type ShareLinkCreateWithoutWorkspaceInput = {
  19991. id?: string
  19992. token?: string
  19993. expiresAt?: Date | string | null
  19994. createdAt?: Date | string
  19995. }
  19996. export type ShareLinkUncheckedCreateWithoutWorkspaceInput = {
  19997. id?: string
  19998. token?: string
  19999. expiresAt?: Date | string | null
  20000. createdAt?: Date | string
  20001. }
  20002. export type ShareLinkCreateOrConnectWithoutWorkspaceInput = {
  20003. where: ShareLinkWhereUniqueInput
  20004. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20005. }
  20006. export type UserCreateWithoutWorkspaceInput = {
  20007. id?: string
  20008. name?: string | null
  20009. email?: string | null
  20010. emailVerified?: Date | string | null
  20011. password?: string | null
  20012. image?: string | null
  20013. accounts?: AccountCreateNestedManyWithoutUserInput
  20014. sessions?: SessionCreateNestedManyWithoutUserInput
  20015. posts?: PostCreateNestedManyWithoutCreatedByInput
  20016. }
  20017. export type UserUncheckedCreateWithoutWorkspaceInput = {
  20018. id?: string
  20019. name?: string | null
  20020. email?: string | null
  20021. emailVerified?: Date | string | null
  20022. password?: string | null
  20023. image?: string | null
  20024. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  20025. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20026. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  20027. }
  20028. export type UserCreateOrConnectWithoutWorkspaceInput = {
  20029. where: UserWhereUniqueInput
  20030. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  20031. }
  20032. export type ContributorCreateWithoutWorkspaceInput = {
  20033. id?: string
  20034. email: string
  20035. service?: string | null
  20036. status?: $Enums.ContributorStatus
  20037. invitedAt?: Date | string
  20038. lastRemindedAt?: Date | string | null
  20039. createdAt?: Date | string
  20040. ideas?: IdeaCreateNestedManyWithoutContributorInput
  20041. }
  20042. export type ContributorUncheckedCreateWithoutWorkspaceInput = {
  20043. id?: string
  20044. email: string
  20045. service?: string | null
  20046. status?: $Enums.ContributorStatus
  20047. invitedAt?: Date | string
  20048. lastRemindedAt?: Date | string | null
  20049. createdAt?: Date | string
  20050. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  20051. }
  20052. export type ContributorCreateOrConnectWithoutWorkspaceInput = {
  20053. where: ContributorWhereUniqueInput
  20054. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  20055. }
  20056. export type ContributorCreateManyWorkspaceInputEnvelope = {
  20057. data: ContributorCreateManyWorkspaceInput | ContributorCreateManyWorkspaceInput[]
  20058. skipDuplicates?: boolean
  20059. }
  20060. export type IdeaCreateWithoutWorkspaceInput = {
  20061. id?: string
  20062. contributorEmail: string
  20063. department: string
  20064. problemDescription: string
  20065. estimatedImpact: $Enums.ImpactLevel
  20066. frequency: $Enums.Frequency
  20067. optionalWhoAffected?: string | null
  20068. optionalAlreadyTried?: string | null
  20069. optionalSuccessLooksLike?: string | null
  20070. status?: $Enums.IdeaStatus
  20071. llmTitle?: string | null
  20072. llmDomain?: string | null
  20073. llmAiType?: string | null
  20074. llmExplanation?: string | null
  20075. llmScoreImpact?: number | null
  20076. llmScoreFeasibility?: number | null
  20077. llmScoreUrgency?: number | null
  20078. llmEnrichedAt?: Date | string | null
  20079. llmEnrichFailed?: boolean
  20080. manualScoreImpact?: number | null
  20081. manualScoreFeasibility?: number | null
  20082. manualScoreUrgency?: number | null
  20083. priorityOrder?: number | null
  20084. emailMessageId?: string | null
  20085. createdAt?: Date | string
  20086. updatedAt?: Date | string
  20087. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  20088. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  20089. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  20090. }
  20091. export type IdeaUncheckedCreateWithoutWorkspaceInput = {
  20092. id?: string
  20093. contributorEmail: string
  20094. contributorId?: string | null
  20095. department: string
  20096. problemDescription: string
  20097. estimatedImpact: $Enums.ImpactLevel
  20098. frequency: $Enums.Frequency
  20099. optionalWhoAffected?: string | null
  20100. optionalAlreadyTried?: string | null
  20101. optionalSuccessLooksLike?: string | null
  20102. status?: $Enums.IdeaStatus
  20103. llmTitle?: string | null
  20104. llmDomain?: string | null
  20105. llmAiType?: string | null
  20106. llmExplanation?: string | null
  20107. llmScoreImpact?: number | null
  20108. llmScoreFeasibility?: number | null
  20109. llmScoreUrgency?: number | null
  20110. llmEnrichedAt?: Date | string | null
  20111. llmEnrichFailed?: boolean
  20112. manualScoreImpact?: number | null
  20113. manualScoreFeasibility?: number | null
  20114. manualScoreUrgency?: number | null
  20115. priorityOrder?: number | null
  20116. emailMessageId?: string | null
  20117. createdAt?: Date | string
  20118. updatedAt?: Date | string
  20119. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  20120. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  20121. }
  20122. export type IdeaCreateOrConnectWithoutWorkspaceInput = {
  20123. where: IdeaWhereUniqueInput
  20124. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  20125. }
  20126. export type IdeaCreateManyWorkspaceInputEnvelope = {
  20127. data: IdeaCreateManyWorkspaceInput | IdeaCreateManyWorkspaceInput[]
  20128. skipDuplicates?: boolean
  20129. }
  20130. export type ManualRelanceLogCreateWithoutWorkspaceInput = {
  20131. id?: string
  20132. subject: string
  20133. recipientCount: number
  20134. sentCount: number
  20135. failedCount?: number
  20136. sentAt?: Date | string
  20137. }
  20138. export type ManualRelanceLogUncheckedCreateWithoutWorkspaceInput = {
  20139. id?: string
  20140. subject: string
  20141. recipientCount: number
  20142. sentCount: number
  20143. failedCount?: number
  20144. sentAt?: Date | string
  20145. }
  20146. export type ManualRelanceLogCreateOrConnectWithoutWorkspaceInput = {
  20147. where: ManualRelanceLogWhereUniqueInput
  20148. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  20149. }
  20150. export type ManualRelanceLogCreateManyWorkspaceInputEnvelope = {
  20151. data: ManualRelanceLogCreateManyWorkspaceInput | ManualRelanceLogCreateManyWorkspaceInput[]
  20152. skipDuplicates?: boolean
  20153. }
  20154. export type ShareLinkUpsertWithoutWorkspaceInput = {
  20155. update: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  20156. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20157. where?: ShareLinkWhereInput
  20158. }
  20159. export type ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput = {
  20160. where?: ShareLinkWhereInput
  20161. data: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  20162. }
  20163. export type ShareLinkUpdateWithoutWorkspaceInput = {
  20164. id?: StringFieldUpdateOperationsInput | string
  20165. token?: StringFieldUpdateOperationsInput | string
  20166. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20167. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20168. }
  20169. export type ShareLinkUncheckedUpdateWithoutWorkspaceInput = {
  20170. id?: StringFieldUpdateOperationsInput | string
  20171. token?: StringFieldUpdateOperationsInput | string
  20172. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20173. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20174. }
  20175. export type UserUpsertWithoutWorkspaceInput = {
  20176. update: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  20177. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  20178. where?: UserWhereInput
  20179. }
  20180. export type UserUpdateToOneWithWhereWithoutWorkspaceInput = {
  20181. where?: UserWhereInput
  20182. data: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  20183. }
  20184. export type UserUpdateWithoutWorkspaceInput = {
  20185. id?: StringFieldUpdateOperationsInput | string
  20186. name?: NullableStringFieldUpdateOperationsInput | string | null
  20187. email?: NullableStringFieldUpdateOperationsInput | string | null
  20188. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20189. password?: NullableStringFieldUpdateOperationsInput | string | null
  20190. image?: NullableStringFieldUpdateOperationsInput | string | null
  20191. accounts?: AccountUpdateManyWithoutUserNestedInput
  20192. sessions?: SessionUpdateManyWithoutUserNestedInput
  20193. posts?: PostUpdateManyWithoutCreatedByNestedInput
  20194. }
  20195. export type UserUncheckedUpdateWithoutWorkspaceInput = {
  20196. id?: StringFieldUpdateOperationsInput | string
  20197. name?: NullableStringFieldUpdateOperationsInput | string | null
  20198. email?: NullableStringFieldUpdateOperationsInput | string | null
  20199. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20200. password?: NullableStringFieldUpdateOperationsInput | string | null
  20201. image?: NullableStringFieldUpdateOperationsInput | string | null
  20202. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  20203. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20204. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  20205. }
  20206. export type ContributorUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20207. where: ContributorWhereUniqueInput
  20208. update: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  20209. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  20210. }
  20211. export type ContributorUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20212. where: ContributorWhereUniqueInput
  20213. data: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  20214. }
  20215. export type ContributorUpdateManyWithWhereWithoutWorkspaceInput = {
  20216. where: ContributorScalarWhereInput
  20217. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyWithoutWorkspaceInput>
  20218. }
  20219. export type ContributorScalarWhereInput = {
  20220. AND?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20221. OR?: ContributorScalarWhereInput[]
  20222. NOT?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20223. id?: StringFilter<"Contributor"> | string
  20224. workspaceId?: StringFilter<"Contributor"> | string
  20225. email?: StringFilter<"Contributor"> | string
  20226. service?: StringNullableFilter<"Contributor"> | string | null
  20227. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  20228. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  20229. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  20230. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  20231. }
  20232. export type IdeaUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20233. where: IdeaWhereUniqueInput
  20234. update: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  20235. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  20236. }
  20237. export type IdeaUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20238. where: IdeaWhereUniqueInput
  20239. data: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  20240. }
  20241. export type IdeaUpdateManyWithWhereWithoutWorkspaceInput = {
  20242. where: IdeaScalarWhereInput
  20243. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutWorkspaceInput>
  20244. }
  20245. export type IdeaScalarWhereInput = {
  20246. AND?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20247. OR?: IdeaScalarWhereInput[]
  20248. NOT?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20249. id?: StringFilter<"Idea"> | string
  20250. workspaceId?: StringFilter<"Idea"> | string
  20251. contributorEmail?: StringFilter<"Idea"> | string
  20252. contributorId?: StringNullableFilter<"Idea"> | string | null
  20253. department?: StringFilter<"Idea"> | string
  20254. problemDescription?: StringFilter<"Idea"> | string
  20255. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  20256. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  20257. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  20258. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  20259. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  20260. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  20261. llmTitle?: StringNullableFilter<"Idea"> | string | null
  20262. llmDomain?: StringNullableFilter<"Idea"> | string | null
  20263. llmAiType?: StringNullableFilter<"Idea"> | string | null
  20264. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  20265. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  20266. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  20267. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  20268. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  20269. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  20270. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  20271. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  20272. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  20273. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  20274. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  20275. createdAt?: DateTimeFilter<"Idea"> | Date | string
  20276. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  20277. }
  20278. export type ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput = {
  20279. where: ManualRelanceLogWhereUniqueInput
  20280. update: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  20281. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  20282. }
  20283. export type ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput = {
  20284. where: ManualRelanceLogWhereUniqueInput
  20285. data: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  20286. }
  20287. export type ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput = {
  20288. where: ManualRelanceLogScalarWhereInput
  20289. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput>
  20290. }
  20291. export type ManualRelanceLogScalarWhereInput = {
  20292. AND?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20293. OR?: ManualRelanceLogScalarWhereInput[]
  20294. NOT?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20295. id?: StringFilter<"ManualRelanceLog"> | string
  20296. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  20297. subject?: StringFilter<"ManualRelanceLog"> | string
  20298. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  20299. sentCount?: IntFilter<"ManualRelanceLog"> | number
  20300. failedCount?: IntFilter<"ManualRelanceLog"> | number
  20301. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  20302. }
  20303. export type WorkspaceCreateWithoutManualRelanceLogsInput = {
  20304. id?: string
  20305. name: string
  20306. slug: string
  20307. sector?: string | null
  20308. companySize?: number | null
  20309. contactEmail?: string | null
  20310. tier?: $Enums.WorkspaceTier
  20311. llmCallsThisMonth?: number
  20312. llmCallsResetAt?: Date | string
  20313. autoRelanceEnabled?: boolean
  20314. exportsThisMonth?: number
  20315. exportsResetAt?: Date | string
  20316. lastVisitedAt?: Date | string | null
  20317. onboardingDismissed?: boolean
  20318. createdAt?: Date | string
  20319. updatedAt?: Date | string
  20320. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20321. owner: UserCreateNestedOneWithoutWorkspaceInput
  20322. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  20323. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  20324. }
  20325. export type WorkspaceUncheckedCreateWithoutManualRelanceLogsInput = {
  20326. id?: string
  20327. name: string
  20328. slug: string
  20329. sector?: string | null
  20330. companySize?: number | null
  20331. contactEmail?: string | null
  20332. tier?: $Enums.WorkspaceTier
  20333. llmCallsThisMonth?: number
  20334. llmCallsResetAt?: Date | string
  20335. autoRelanceEnabled?: boolean
  20336. exportsThisMonth?: number
  20337. exportsResetAt?: Date | string
  20338. lastVisitedAt?: Date | string | null
  20339. onboardingDismissed?: boolean
  20340. createdAt?: Date | string
  20341. updatedAt?: Date | string
  20342. ownerId: string
  20343. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20344. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  20345. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  20346. }
  20347. export type WorkspaceCreateOrConnectWithoutManualRelanceLogsInput = {
  20348. where: WorkspaceWhereUniqueInput
  20349. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20350. }
  20351. export type WorkspaceUpsertWithoutManualRelanceLogsInput = {
  20352. update: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  20353. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20354. where?: WorkspaceWhereInput
  20355. }
  20356. export type WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput = {
  20357. where?: WorkspaceWhereInput
  20358. data: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  20359. }
  20360. export type WorkspaceUpdateWithoutManualRelanceLogsInput = {
  20361. id?: StringFieldUpdateOperationsInput | string
  20362. name?: StringFieldUpdateOperationsInput | string
  20363. slug?: StringFieldUpdateOperationsInput | string
  20364. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20365. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20366. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20367. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20368. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20369. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20370. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20371. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20372. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20373. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20374. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20375. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20376. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20377. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20378. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20379. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  20380. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  20381. }
  20382. export type WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput = {
  20383. id?: StringFieldUpdateOperationsInput | string
  20384. name?: StringFieldUpdateOperationsInput | string
  20385. slug?: StringFieldUpdateOperationsInput | string
  20386. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20387. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20388. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20389. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20390. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20391. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20392. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20393. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20394. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20395. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20396. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20397. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20398. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20399. ownerId?: StringFieldUpdateOperationsInput | string
  20400. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20401. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  20402. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  20403. }
  20404. export type WorkspaceCreateWithoutContributorsInput = {
  20405. id?: string
  20406. name: string
  20407. slug: string
  20408. sector?: string | null
  20409. companySize?: number | null
  20410. contactEmail?: string | null
  20411. tier?: $Enums.WorkspaceTier
  20412. llmCallsThisMonth?: number
  20413. llmCallsResetAt?: Date | string
  20414. autoRelanceEnabled?: boolean
  20415. exportsThisMonth?: number
  20416. exportsResetAt?: Date | string
  20417. lastVisitedAt?: Date | string | null
  20418. onboardingDismissed?: boolean
  20419. createdAt?: Date | string
  20420. updatedAt?: Date | string
  20421. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20422. owner: UserCreateNestedOneWithoutWorkspaceInput
  20423. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  20424. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  20425. }
  20426. export type WorkspaceUncheckedCreateWithoutContributorsInput = {
  20427. id?: string
  20428. name: string
  20429. slug: string
  20430. sector?: string | null
  20431. companySize?: number | null
  20432. contactEmail?: string | null
  20433. tier?: $Enums.WorkspaceTier
  20434. llmCallsThisMonth?: number
  20435. llmCallsResetAt?: Date | string
  20436. autoRelanceEnabled?: boolean
  20437. exportsThisMonth?: number
  20438. exportsResetAt?: Date | string
  20439. lastVisitedAt?: Date | string | null
  20440. onboardingDismissed?: boolean
  20441. createdAt?: Date | string
  20442. updatedAt?: Date | string
  20443. ownerId: string
  20444. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20445. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  20446. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  20447. }
  20448. export type WorkspaceCreateOrConnectWithoutContributorsInput = {
  20449. where: WorkspaceWhereUniqueInput
  20450. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20451. }
  20452. export type IdeaCreateWithoutContributorInput = {
  20453. id?: string
  20454. contributorEmail: string
  20455. department: string
  20456. problemDescription: string
  20457. estimatedImpact: $Enums.ImpactLevel
  20458. frequency: $Enums.Frequency
  20459. optionalWhoAffected?: string | null
  20460. optionalAlreadyTried?: string | null
  20461. optionalSuccessLooksLike?: string | null
  20462. status?: $Enums.IdeaStatus
  20463. llmTitle?: string | null
  20464. llmDomain?: string | null
  20465. llmAiType?: string | null
  20466. llmExplanation?: string | null
  20467. llmScoreImpact?: number | null
  20468. llmScoreFeasibility?: number | null
  20469. llmScoreUrgency?: number | null
  20470. llmEnrichedAt?: Date | string | null
  20471. llmEnrichFailed?: boolean
  20472. manualScoreImpact?: number | null
  20473. manualScoreFeasibility?: number | null
  20474. manualScoreUrgency?: number | null
  20475. priorityOrder?: number | null
  20476. emailMessageId?: string | null
  20477. createdAt?: Date | string
  20478. updatedAt?: Date | string
  20479. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  20480. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  20481. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  20482. }
  20483. export type IdeaUncheckedCreateWithoutContributorInput = {
  20484. id?: string
  20485. workspaceId: string
  20486. contributorEmail: string
  20487. department: string
  20488. problemDescription: string
  20489. estimatedImpact: $Enums.ImpactLevel
  20490. frequency: $Enums.Frequency
  20491. optionalWhoAffected?: string | null
  20492. optionalAlreadyTried?: string | null
  20493. optionalSuccessLooksLike?: string | null
  20494. status?: $Enums.IdeaStatus
  20495. llmTitle?: string | null
  20496. llmDomain?: string | null
  20497. llmAiType?: string | null
  20498. llmExplanation?: string | null
  20499. llmScoreImpact?: number | null
  20500. llmScoreFeasibility?: number | null
  20501. llmScoreUrgency?: number | null
  20502. llmEnrichedAt?: Date | string | null
  20503. llmEnrichFailed?: boolean
  20504. manualScoreImpact?: number | null
  20505. manualScoreFeasibility?: number | null
  20506. manualScoreUrgency?: number | null
  20507. priorityOrder?: number | null
  20508. emailMessageId?: string | null
  20509. createdAt?: Date | string
  20510. updatedAt?: Date | string
  20511. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  20512. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  20513. }
  20514. export type IdeaCreateOrConnectWithoutContributorInput = {
  20515. where: IdeaWhereUniqueInput
  20516. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  20517. }
  20518. export type IdeaCreateManyContributorInputEnvelope = {
  20519. data: IdeaCreateManyContributorInput | IdeaCreateManyContributorInput[]
  20520. skipDuplicates?: boolean
  20521. }
  20522. export type WorkspaceUpsertWithoutContributorsInput = {
  20523. update: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  20524. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20525. where?: WorkspaceWhereInput
  20526. }
  20527. export type WorkspaceUpdateToOneWithWhereWithoutContributorsInput = {
  20528. where?: WorkspaceWhereInput
  20529. data: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  20530. }
  20531. export type WorkspaceUpdateWithoutContributorsInput = {
  20532. id?: StringFieldUpdateOperationsInput | string
  20533. name?: StringFieldUpdateOperationsInput | string
  20534. slug?: StringFieldUpdateOperationsInput | string
  20535. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20536. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20537. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20538. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20539. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20540. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20541. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20542. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20543. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20544. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20545. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20546. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20547. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20548. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20549. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20550. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  20551. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  20552. }
  20553. export type WorkspaceUncheckedUpdateWithoutContributorsInput = {
  20554. id?: StringFieldUpdateOperationsInput | string
  20555. name?: StringFieldUpdateOperationsInput | string
  20556. slug?: StringFieldUpdateOperationsInput | string
  20557. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20558. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20559. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20560. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20561. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20562. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20563. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20564. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20565. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20566. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20567. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20568. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20569. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20570. ownerId?: StringFieldUpdateOperationsInput | string
  20571. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20572. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  20573. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  20574. }
  20575. export type IdeaUpsertWithWhereUniqueWithoutContributorInput = {
  20576. where: IdeaWhereUniqueInput
  20577. update: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  20578. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  20579. }
  20580. export type IdeaUpdateWithWhereUniqueWithoutContributorInput = {
  20581. where: IdeaWhereUniqueInput
  20582. data: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  20583. }
  20584. export type IdeaUpdateManyWithWhereWithoutContributorInput = {
  20585. where: IdeaScalarWhereInput
  20586. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutContributorInput>
  20587. }
  20588. export type WorkspaceCreateWithoutIdeasInput = {
  20589. id?: string
  20590. name: string
  20591. slug: string
  20592. sector?: string | null
  20593. companySize?: number | null
  20594. contactEmail?: string | null
  20595. tier?: $Enums.WorkspaceTier
  20596. llmCallsThisMonth?: number
  20597. llmCallsResetAt?: Date | string
  20598. autoRelanceEnabled?: boolean
  20599. exportsThisMonth?: number
  20600. exportsResetAt?: Date | string
  20601. lastVisitedAt?: Date | string | null
  20602. onboardingDismissed?: boolean
  20603. createdAt?: Date | string
  20604. updatedAt?: Date | string
  20605. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  20606. owner: UserCreateNestedOneWithoutWorkspaceInput
  20607. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  20608. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  20609. }
  20610. export type WorkspaceUncheckedCreateWithoutIdeasInput = {
  20611. id?: string
  20612. name: string
  20613. slug: string
  20614. sector?: string | null
  20615. companySize?: number | null
  20616. contactEmail?: string | null
  20617. tier?: $Enums.WorkspaceTier
  20618. llmCallsThisMonth?: number
  20619. llmCallsResetAt?: Date | string
  20620. autoRelanceEnabled?: boolean
  20621. exportsThisMonth?: number
  20622. exportsResetAt?: Date | string
  20623. lastVisitedAt?: Date | string | null
  20624. onboardingDismissed?: boolean
  20625. createdAt?: Date | string
  20626. updatedAt?: Date | string
  20627. ownerId: string
  20628. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  20629. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  20630. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  20631. }
  20632. export type WorkspaceCreateOrConnectWithoutIdeasInput = {
  20633. where: WorkspaceWhereUniqueInput
  20634. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20635. }
  20636. export type ContributorCreateWithoutIdeasInput = {
  20637. id?: string
  20638. email: string
  20639. service?: string | null
  20640. status?: $Enums.ContributorStatus
  20641. invitedAt?: Date | string
  20642. lastRemindedAt?: Date | string | null
  20643. createdAt?: Date | string
  20644. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  20645. }
  20646. export type ContributorUncheckedCreateWithoutIdeasInput = {
  20647. id?: string
  20648. workspaceId: string
  20649. email: string
  20650. service?: string | null
  20651. status?: $Enums.ContributorStatus
  20652. invitedAt?: Date | string
  20653. lastRemindedAt?: Date | string | null
  20654. createdAt?: Date | string
  20655. }
  20656. export type ContributorCreateOrConnectWithoutIdeasInput = {
  20657. where: ContributorWhereUniqueInput
  20658. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20659. }
  20660. export type IdeaAttachmentCreateWithoutIdeaInput = {
  20661. id?: string
  20662. workspaceId: string
  20663. filename: string
  20664. contentType: string
  20665. size: number
  20666. url: string
  20667. blobPath: string
  20668. createdAt?: Date | string
  20669. }
  20670. export type IdeaAttachmentUncheckedCreateWithoutIdeaInput = {
  20671. id?: string
  20672. workspaceId: string
  20673. filename: string
  20674. contentType: string
  20675. size: number
  20676. url: string
  20677. blobPath: string
  20678. createdAt?: Date | string
  20679. }
  20680. export type IdeaAttachmentCreateOrConnectWithoutIdeaInput = {
  20681. where: IdeaAttachmentWhereUniqueInput
  20682. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  20683. }
  20684. export type IdeaAttachmentCreateManyIdeaInputEnvelope = {
  20685. data: IdeaAttachmentCreateManyIdeaInput | IdeaAttachmentCreateManyIdeaInput[]
  20686. skipDuplicates?: boolean
  20687. }
  20688. export type QualificationQuestionCreateWithoutIdeaInput = {
  20689. id?: string
  20690. workspaceId: string
  20691. questionText: string
  20692. responseToken?: string
  20693. askedAt?: Date | string
  20694. responseText?: string | null
  20695. answeredAt?: Date | string | null
  20696. }
  20697. export type QualificationQuestionUncheckedCreateWithoutIdeaInput = {
  20698. id?: string
  20699. workspaceId: string
  20700. questionText: string
  20701. responseToken?: string
  20702. askedAt?: Date | string
  20703. responseText?: string | null
  20704. answeredAt?: Date | string | null
  20705. }
  20706. export type QualificationQuestionCreateOrConnectWithoutIdeaInput = {
  20707. where: QualificationQuestionWhereUniqueInput
  20708. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  20709. }
  20710. export type QualificationQuestionCreateManyIdeaInputEnvelope = {
  20711. data: QualificationQuestionCreateManyIdeaInput | QualificationQuestionCreateManyIdeaInput[]
  20712. skipDuplicates?: boolean
  20713. }
  20714. export type WorkspaceUpsertWithoutIdeasInput = {
  20715. update: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  20716. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20717. where?: WorkspaceWhereInput
  20718. }
  20719. export type WorkspaceUpdateToOneWithWhereWithoutIdeasInput = {
  20720. where?: WorkspaceWhereInput
  20721. data: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  20722. }
  20723. export type WorkspaceUpdateWithoutIdeasInput = {
  20724. id?: StringFieldUpdateOperationsInput | string
  20725. name?: StringFieldUpdateOperationsInput | string
  20726. slug?: StringFieldUpdateOperationsInput | string
  20727. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20728. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20729. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20730. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20731. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20732. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20733. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20734. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20735. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20736. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20737. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20738. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20739. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20740. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  20741. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  20742. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  20743. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  20744. }
  20745. export type WorkspaceUncheckedUpdateWithoutIdeasInput = {
  20746. id?: StringFieldUpdateOperationsInput | string
  20747. name?: StringFieldUpdateOperationsInput | string
  20748. slug?: StringFieldUpdateOperationsInput | string
  20749. sector?: NullableStringFieldUpdateOperationsInput | string | null
  20750. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  20751. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  20752. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  20753. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  20754. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20755. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  20756. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  20757. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20758. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20759. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  20760. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20761. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20762. ownerId?: StringFieldUpdateOperationsInput | string
  20763. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  20764. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  20765. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  20766. }
  20767. export type ContributorUpsertWithoutIdeasInput = {
  20768. update: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  20769. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20770. where?: ContributorWhereInput
  20771. }
  20772. export type ContributorUpdateToOneWithWhereWithoutIdeasInput = {
  20773. where?: ContributorWhereInput
  20774. data: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  20775. }
  20776. export type ContributorUpdateWithoutIdeasInput = {
  20777. id?: StringFieldUpdateOperationsInput | string
  20778. email?: StringFieldUpdateOperationsInput | string
  20779. service?: NullableStringFieldUpdateOperationsInput | string | null
  20780. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  20781. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20782. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20783. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20784. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  20785. }
  20786. export type ContributorUncheckedUpdateWithoutIdeasInput = {
  20787. id?: StringFieldUpdateOperationsInput | string
  20788. workspaceId?: StringFieldUpdateOperationsInput | string
  20789. email?: StringFieldUpdateOperationsInput | string
  20790. service?: NullableStringFieldUpdateOperationsInput | string | null
  20791. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  20792. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20793. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20794. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  20795. }
  20796. export type IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput = {
  20797. where: IdeaAttachmentWhereUniqueInput
  20798. update: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  20799. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  20800. }
  20801. export type IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput = {
  20802. where: IdeaAttachmentWhereUniqueInput
  20803. data: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  20804. }
  20805. export type IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput = {
  20806. where: IdeaAttachmentScalarWhereInput
  20807. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput>
  20808. }
  20809. export type IdeaAttachmentScalarWhereInput = {
  20810. AND?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20811. OR?: IdeaAttachmentScalarWhereInput[]
  20812. NOT?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20813. id?: StringFilter<"IdeaAttachment"> | string
  20814. ideaId?: StringFilter<"IdeaAttachment"> | string
  20815. workspaceId?: StringFilter<"IdeaAttachment"> | string
  20816. filename?: StringFilter<"IdeaAttachment"> | string
  20817. contentType?: StringFilter<"IdeaAttachment"> | string
  20818. size?: IntFilter<"IdeaAttachment"> | number
  20819. url?: StringFilter<"IdeaAttachment"> | string
  20820. blobPath?: StringFilter<"IdeaAttachment"> | string
  20821. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  20822. }
  20823. export type QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput = {
  20824. where: QualificationQuestionWhereUniqueInput
  20825. update: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  20826. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  20827. }
  20828. export type QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput = {
  20829. where: QualificationQuestionWhereUniqueInput
  20830. data: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  20831. }
  20832. export type QualificationQuestionUpdateManyWithWhereWithoutIdeaInput = {
  20833. where: QualificationQuestionScalarWhereInput
  20834. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyWithoutIdeaInput>
  20835. }
  20836. export type QualificationQuestionScalarWhereInput = {
  20837. AND?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20838. OR?: QualificationQuestionScalarWhereInput[]
  20839. NOT?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20840. id?: StringFilter<"QualificationQuestion"> | string
  20841. ideaId?: StringFilter<"QualificationQuestion"> | string
  20842. workspaceId?: StringFilter<"QualificationQuestion"> | string
  20843. questionText?: StringFilter<"QualificationQuestion"> | string
  20844. responseToken?: StringFilter<"QualificationQuestion"> | string
  20845. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  20846. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  20847. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  20848. }
  20849. export type UserCreateWithoutPostsInput = {
  20850. id?: string
  20851. name?: string | null
  20852. email?: string | null
  20853. emailVerified?: Date | string | null
  20854. password?: string | null
  20855. image?: string | null
  20856. accounts?: AccountCreateNestedManyWithoutUserInput
  20857. sessions?: SessionCreateNestedManyWithoutUserInput
  20858. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20859. }
  20860. export type UserUncheckedCreateWithoutPostsInput = {
  20861. id?: string
  20862. name?: string | null
  20863. email?: string | null
  20864. emailVerified?: Date | string | null
  20865. password?: string | null
  20866. image?: string | null
  20867. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  20868. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20869. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20870. }
  20871. export type UserCreateOrConnectWithoutPostsInput = {
  20872. where: UserWhereUniqueInput
  20873. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20874. }
  20875. export type UserUpsertWithoutPostsInput = {
  20876. update: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  20877. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20878. where?: UserWhereInput
  20879. }
  20880. export type UserUpdateToOneWithWhereWithoutPostsInput = {
  20881. where?: UserWhereInput
  20882. data: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  20883. }
  20884. export type UserUpdateWithoutPostsInput = {
  20885. id?: StringFieldUpdateOperationsInput | string
  20886. name?: NullableStringFieldUpdateOperationsInput | string | null
  20887. email?: NullableStringFieldUpdateOperationsInput | string | null
  20888. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20889. password?: NullableStringFieldUpdateOperationsInput | string | null
  20890. image?: NullableStringFieldUpdateOperationsInput | string | null
  20891. accounts?: AccountUpdateManyWithoutUserNestedInput
  20892. sessions?: SessionUpdateManyWithoutUserNestedInput
  20893. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  20894. }
  20895. export type UserUncheckedUpdateWithoutPostsInput = {
  20896. id?: StringFieldUpdateOperationsInput | string
  20897. name?: NullableStringFieldUpdateOperationsInput | string | null
  20898. email?: NullableStringFieldUpdateOperationsInput | string | null
  20899. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20900. password?: NullableStringFieldUpdateOperationsInput | string | null
  20901. image?: NullableStringFieldUpdateOperationsInput | string | null
  20902. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  20903. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20904. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  20905. }
  20906. export type UserCreateWithoutAccountsInput = {
  20907. id?: string
  20908. name?: string | null
  20909. email?: string | null
  20910. emailVerified?: Date | string | null
  20911. password?: string | null
  20912. image?: string | null
  20913. sessions?: SessionCreateNestedManyWithoutUserInput
  20914. posts?: PostCreateNestedManyWithoutCreatedByInput
  20915. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20916. }
  20917. export type UserUncheckedCreateWithoutAccountsInput = {
  20918. id?: string
  20919. name?: string | null
  20920. email?: string | null
  20921. emailVerified?: Date | string | null
  20922. password?: string | null
  20923. image?: string | null
  20924. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  20925. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  20926. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20927. }
  20928. export type UserCreateOrConnectWithoutAccountsInput = {
  20929. where: UserWhereUniqueInput
  20930. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  20931. }
  20932. export type UserUpsertWithoutAccountsInput = {
  20933. update: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  20934. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  20935. where?: UserWhereInput
  20936. }
  20937. export type UserUpdateToOneWithWhereWithoutAccountsInput = {
  20938. where?: UserWhereInput
  20939. data: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  20940. }
  20941. export type UserUpdateWithoutAccountsInput = {
  20942. id?: StringFieldUpdateOperationsInput | string
  20943. name?: NullableStringFieldUpdateOperationsInput | string | null
  20944. email?: NullableStringFieldUpdateOperationsInput | string | null
  20945. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20946. password?: NullableStringFieldUpdateOperationsInput | string | null
  20947. image?: NullableStringFieldUpdateOperationsInput | string | null
  20948. sessions?: SessionUpdateManyWithoutUserNestedInput
  20949. posts?: PostUpdateManyWithoutCreatedByNestedInput
  20950. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  20951. }
  20952. export type UserUncheckedUpdateWithoutAccountsInput = {
  20953. id?: StringFieldUpdateOperationsInput | string
  20954. name?: NullableStringFieldUpdateOperationsInput | string | null
  20955. email?: NullableStringFieldUpdateOperationsInput | string | null
  20956. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  20957. password?: NullableStringFieldUpdateOperationsInput | string | null
  20958. image?: NullableStringFieldUpdateOperationsInput | string | null
  20959. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  20960. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  20961. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  20962. }
  20963. export type UserCreateWithoutSessionsInput = {
  20964. id?: string
  20965. name?: string | null
  20966. email?: string | null
  20967. emailVerified?: Date | string | null
  20968. password?: string | null
  20969. image?: string | null
  20970. accounts?: AccountCreateNestedManyWithoutUserInput
  20971. posts?: PostCreateNestedManyWithoutCreatedByInput
  20972. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  20973. }
  20974. export type UserUncheckedCreateWithoutSessionsInput = {
  20975. id?: string
  20976. name?: string | null
  20977. email?: string | null
  20978. emailVerified?: Date | string | null
  20979. password?: string | null
  20980. image?: string | null
  20981. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  20982. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  20983. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  20984. }
  20985. export type UserCreateOrConnectWithoutSessionsInput = {
  20986. where: UserWhereUniqueInput
  20987. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  20988. }
  20989. export type UserUpsertWithoutSessionsInput = {
  20990. update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  20991. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  20992. where?: UserWhereInput
  20993. }
  20994. export type UserUpdateToOneWithWhereWithoutSessionsInput = {
  20995. where?: UserWhereInput
  20996. data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  20997. }
  20998. export type UserUpdateWithoutSessionsInput = {
  20999. id?: StringFieldUpdateOperationsInput | string
  21000. name?: NullableStringFieldUpdateOperationsInput | string | null
  21001. email?: NullableStringFieldUpdateOperationsInput | string | null
  21002. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21003. password?: NullableStringFieldUpdateOperationsInput | string | null
  21004. image?: NullableStringFieldUpdateOperationsInput | string | null
  21005. accounts?: AccountUpdateManyWithoutUserNestedInput
  21006. posts?: PostUpdateManyWithoutCreatedByNestedInput
  21007. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  21008. }
  21009. export type UserUncheckedUpdateWithoutSessionsInput = {
  21010. id?: StringFieldUpdateOperationsInput | string
  21011. name?: NullableStringFieldUpdateOperationsInput | string | null
  21012. email?: NullableStringFieldUpdateOperationsInput | string | null
  21013. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21014. password?: NullableStringFieldUpdateOperationsInput | string | null
  21015. image?: NullableStringFieldUpdateOperationsInput | string | null
  21016. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  21017. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  21018. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  21019. }
  21020. export type AccountCreateWithoutUserInput = {
  21021. id?: string
  21022. type: string
  21023. provider: string
  21024. providerAccountId: string
  21025. refresh_token?: string | null
  21026. access_token?: string | null
  21027. expires_at?: number | null
  21028. token_type?: string | null
  21029. scope?: string | null
  21030. id_token?: string | null
  21031. session_state?: string | null
  21032. refresh_token_expires_in?: number | null
  21033. }
  21034. export type AccountUncheckedCreateWithoutUserInput = {
  21035. id?: string
  21036. type: string
  21037. provider: string
  21038. providerAccountId: string
  21039. refresh_token?: string | null
  21040. access_token?: string | null
  21041. expires_at?: number | null
  21042. token_type?: string | null
  21043. scope?: string | null
  21044. id_token?: string | null
  21045. session_state?: string | null
  21046. refresh_token_expires_in?: number | null
  21047. }
  21048. export type AccountCreateOrConnectWithoutUserInput = {
  21049. where: AccountWhereUniqueInput
  21050. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  21051. }
  21052. export type AccountCreateManyUserInputEnvelope = {
  21053. data: AccountCreateManyUserInput | AccountCreateManyUserInput[]
  21054. skipDuplicates?: boolean
  21055. }
  21056. export type SessionCreateWithoutUserInput = {
  21057. id?: string
  21058. sessionToken: string
  21059. expires: Date | string
  21060. }
  21061. export type SessionUncheckedCreateWithoutUserInput = {
  21062. id?: string
  21063. sessionToken: string
  21064. expires: Date | string
  21065. }
  21066. export type SessionCreateOrConnectWithoutUserInput = {
  21067. where: SessionWhereUniqueInput
  21068. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  21069. }
  21070. export type SessionCreateManyUserInputEnvelope = {
  21071. data: SessionCreateManyUserInput | SessionCreateManyUserInput[]
  21072. skipDuplicates?: boolean
  21073. }
  21074. export type PostCreateWithoutCreatedByInput = {
  21075. name: string
  21076. createdAt?: Date | string
  21077. updatedAt?: Date | string
  21078. }
  21079. export type PostUncheckedCreateWithoutCreatedByInput = {
  21080. id?: number
  21081. name: string
  21082. createdAt?: Date | string
  21083. updatedAt?: Date | string
  21084. }
  21085. export type PostCreateOrConnectWithoutCreatedByInput = {
  21086. where: PostWhereUniqueInput
  21087. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  21088. }
  21089. export type PostCreateManyCreatedByInputEnvelope = {
  21090. data: PostCreateManyCreatedByInput | PostCreateManyCreatedByInput[]
  21091. skipDuplicates?: boolean
  21092. }
  21093. export type WorkspaceCreateWithoutOwnerInput = {
  21094. id?: string
  21095. name: string
  21096. slug: string
  21097. sector?: string | null
  21098. companySize?: number | null
  21099. contactEmail?: string | null
  21100. tier?: $Enums.WorkspaceTier
  21101. llmCallsThisMonth?: number
  21102. llmCallsResetAt?: Date | string
  21103. autoRelanceEnabled?: boolean
  21104. exportsThisMonth?: number
  21105. exportsResetAt?: Date | string
  21106. lastVisitedAt?: Date | string | null
  21107. onboardingDismissed?: boolean
  21108. createdAt?: Date | string
  21109. updatedAt?: Date | string
  21110. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  21111. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  21112. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  21113. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  21114. }
  21115. export type WorkspaceUncheckedCreateWithoutOwnerInput = {
  21116. id?: string
  21117. name: string
  21118. slug: string
  21119. sector?: string | null
  21120. companySize?: number | null
  21121. contactEmail?: string | null
  21122. tier?: $Enums.WorkspaceTier
  21123. llmCallsThisMonth?: number
  21124. llmCallsResetAt?: Date | string
  21125. autoRelanceEnabled?: boolean
  21126. exportsThisMonth?: number
  21127. exportsResetAt?: Date | string
  21128. lastVisitedAt?: Date | string | null
  21129. onboardingDismissed?: boolean
  21130. createdAt?: Date | string
  21131. updatedAt?: Date | string
  21132. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  21133. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  21134. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  21135. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  21136. }
  21137. export type WorkspaceCreateOrConnectWithoutOwnerInput = {
  21138. where: WorkspaceWhereUniqueInput
  21139. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21140. }
  21141. export type AccountUpsertWithWhereUniqueWithoutUserInput = {
  21142. where: AccountWhereUniqueInput
  21143. update: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  21144. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  21145. }
  21146. export type AccountUpdateWithWhereUniqueWithoutUserInput = {
  21147. where: AccountWhereUniqueInput
  21148. data: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  21149. }
  21150. export type AccountUpdateManyWithWhereWithoutUserInput = {
  21151. where: AccountScalarWhereInput
  21152. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyWithoutUserInput>
  21153. }
  21154. export type AccountScalarWhereInput = {
  21155. AND?: AccountScalarWhereInput | AccountScalarWhereInput[]
  21156. OR?: AccountScalarWhereInput[]
  21157. NOT?: AccountScalarWhereInput | AccountScalarWhereInput[]
  21158. id?: StringFilter<"Account"> | string
  21159. userId?: StringFilter<"Account"> | string
  21160. type?: StringFilter<"Account"> | string
  21161. provider?: StringFilter<"Account"> | string
  21162. providerAccountId?: StringFilter<"Account"> | string
  21163. refresh_token?: StringNullableFilter<"Account"> | string | null
  21164. access_token?: StringNullableFilter<"Account"> | string | null
  21165. expires_at?: IntNullableFilter<"Account"> | number | null
  21166. token_type?: StringNullableFilter<"Account"> | string | null
  21167. scope?: StringNullableFilter<"Account"> | string | null
  21168. id_token?: StringNullableFilter<"Account"> | string | null
  21169. session_state?: StringNullableFilter<"Account"> | string | null
  21170. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  21171. }
  21172. export type SessionUpsertWithWhereUniqueWithoutUserInput = {
  21173. where: SessionWhereUniqueInput
  21174. update: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  21175. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  21176. }
  21177. export type SessionUpdateWithWhereUniqueWithoutUserInput = {
  21178. where: SessionWhereUniqueInput
  21179. data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  21180. }
  21181. export type SessionUpdateManyWithWhereWithoutUserInput = {
  21182. where: SessionScalarWhereInput
  21183. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
  21184. }
  21185. export type SessionScalarWhereInput = {
  21186. AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21187. OR?: SessionScalarWhereInput[]
  21188. NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21189. id?: StringFilter<"Session"> | string
  21190. sessionToken?: StringFilter<"Session"> | string
  21191. userId?: StringFilter<"Session"> | string
  21192. expires?: DateTimeFilter<"Session"> | Date | string
  21193. }
  21194. export type PostUpsertWithWhereUniqueWithoutCreatedByInput = {
  21195. where: PostWhereUniqueInput
  21196. update: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  21197. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  21198. }
  21199. export type PostUpdateWithWhereUniqueWithoutCreatedByInput = {
  21200. where: PostWhereUniqueInput
  21201. data: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  21202. }
  21203. export type PostUpdateManyWithWhereWithoutCreatedByInput = {
  21204. where: PostScalarWhereInput
  21205. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyWithoutCreatedByInput>
  21206. }
  21207. export type PostScalarWhereInput = {
  21208. AND?: PostScalarWhereInput | PostScalarWhereInput[]
  21209. OR?: PostScalarWhereInput[]
  21210. NOT?: PostScalarWhereInput | PostScalarWhereInput[]
  21211. id?: IntFilter<"Post"> | number
  21212. name?: StringFilter<"Post"> | string
  21213. createdAt?: DateTimeFilter<"Post"> | Date | string
  21214. updatedAt?: DateTimeFilter<"Post"> | Date | string
  21215. createdById?: StringFilter<"Post"> | string
  21216. }
  21217. export type WorkspaceUpsertWithoutOwnerInput = {
  21218. update: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21219. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21220. where?: WorkspaceWhereInput
  21221. }
  21222. export type WorkspaceUpdateToOneWithWhereWithoutOwnerInput = {
  21223. where?: WorkspaceWhereInput
  21224. data: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21225. }
  21226. export type WorkspaceUpdateWithoutOwnerInput = {
  21227. id?: StringFieldUpdateOperationsInput | string
  21228. name?: StringFieldUpdateOperationsInput | string
  21229. slug?: StringFieldUpdateOperationsInput | string
  21230. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21231. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21232. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21233. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21234. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21235. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21236. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21237. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21238. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21239. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21240. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21241. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21242. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21243. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  21244. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  21245. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  21246. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  21247. }
  21248. export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
  21249. id?: StringFieldUpdateOperationsInput | string
  21250. name?: StringFieldUpdateOperationsInput | string
  21251. slug?: StringFieldUpdateOperationsInput | string
  21252. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21253. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21254. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21255. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21256. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21257. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21258. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21259. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21260. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21261. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21262. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21263. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21264. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21265. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  21266. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  21267. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  21268. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  21269. }
  21270. export type IdeaCreateWithoutAttachmentsInput = {
  21271. id?: string
  21272. contributorEmail: string
  21273. department: string
  21274. problemDescription: string
  21275. estimatedImpact: $Enums.ImpactLevel
  21276. frequency: $Enums.Frequency
  21277. optionalWhoAffected?: string | null
  21278. optionalAlreadyTried?: string | null
  21279. optionalSuccessLooksLike?: string | null
  21280. status?: $Enums.IdeaStatus
  21281. llmTitle?: string | null
  21282. llmDomain?: string | null
  21283. llmAiType?: string | null
  21284. llmExplanation?: string | null
  21285. llmScoreImpact?: number | null
  21286. llmScoreFeasibility?: number | null
  21287. llmScoreUrgency?: number | null
  21288. llmEnrichedAt?: Date | string | null
  21289. llmEnrichFailed?: boolean
  21290. manualScoreImpact?: number | null
  21291. manualScoreFeasibility?: number | null
  21292. manualScoreUrgency?: number | null
  21293. priorityOrder?: number | null
  21294. emailMessageId?: string | null
  21295. createdAt?: Date | string
  21296. updatedAt?: Date | string
  21297. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  21298. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  21299. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  21300. }
  21301. export type IdeaUncheckedCreateWithoutAttachmentsInput = {
  21302. id?: string
  21303. workspaceId: string
  21304. contributorEmail: string
  21305. contributorId?: string | null
  21306. department: string
  21307. problemDescription: string
  21308. estimatedImpact: $Enums.ImpactLevel
  21309. frequency: $Enums.Frequency
  21310. optionalWhoAffected?: string | null
  21311. optionalAlreadyTried?: string | null
  21312. optionalSuccessLooksLike?: string | null
  21313. status?: $Enums.IdeaStatus
  21314. llmTitle?: string | null
  21315. llmDomain?: string | null
  21316. llmAiType?: string | null
  21317. llmExplanation?: string | null
  21318. llmScoreImpact?: number | null
  21319. llmScoreFeasibility?: number | null
  21320. llmScoreUrgency?: number | null
  21321. llmEnrichedAt?: Date | string | null
  21322. llmEnrichFailed?: boolean
  21323. manualScoreImpact?: number | null
  21324. manualScoreFeasibility?: number | null
  21325. manualScoreUrgency?: number | null
  21326. priorityOrder?: number | null
  21327. emailMessageId?: string | null
  21328. createdAt?: Date | string
  21329. updatedAt?: Date | string
  21330. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  21331. }
  21332. export type IdeaCreateOrConnectWithoutAttachmentsInput = {
  21333. where: IdeaWhereUniqueInput
  21334. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21335. }
  21336. export type IdeaUpsertWithoutAttachmentsInput = {
  21337. update: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  21338. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21339. where?: IdeaWhereInput
  21340. }
  21341. export type IdeaUpdateToOneWithWhereWithoutAttachmentsInput = {
  21342. where?: IdeaWhereInput
  21343. data: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  21344. }
  21345. export type IdeaUpdateWithoutAttachmentsInput = {
  21346. id?: StringFieldUpdateOperationsInput | string
  21347. contributorEmail?: StringFieldUpdateOperationsInput | string
  21348. department?: StringFieldUpdateOperationsInput | string
  21349. problemDescription?: StringFieldUpdateOperationsInput | string
  21350. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21351. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21352. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21353. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21354. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21355. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21356. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21357. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21358. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21359. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21360. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21361. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21362. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21363. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21364. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21365. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21366. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21367. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21368. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21369. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21370. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21371. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21372. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21373. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21374. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21375. }
  21376. export type IdeaUncheckedUpdateWithoutAttachmentsInput = {
  21377. id?: StringFieldUpdateOperationsInput | string
  21378. workspaceId?: StringFieldUpdateOperationsInput | string
  21379. contributorEmail?: StringFieldUpdateOperationsInput | string
  21380. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21381. department?: StringFieldUpdateOperationsInput | string
  21382. problemDescription?: StringFieldUpdateOperationsInput | string
  21383. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21384. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21385. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21386. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21387. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21388. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21389. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21390. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21391. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21392. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21393. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21394. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21395. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21396. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21397. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21398. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21399. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21400. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21401. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21402. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21403. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21404. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21405. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21406. }
  21407. export type IdeaCreateWithoutQualificationQuestionsInput = {
  21408. id?: string
  21409. contributorEmail: string
  21410. department: string
  21411. problemDescription: string
  21412. estimatedImpact: $Enums.ImpactLevel
  21413. frequency: $Enums.Frequency
  21414. optionalWhoAffected?: string | null
  21415. optionalAlreadyTried?: string | null
  21416. optionalSuccessLooksLike?: string | null
  21417. status?: $Enums.IdeaStatus
  21418. llmTitle?: string | null
  21419. llmDomain?: string | null
  21420. llmAiType?: string | null
  21421. llmExplanation?: string | null
  21422. llmScoreImpact?: number | null
  21423. llmScoreFeasibility?: number | null
  21424. llmScoreUrgency?: number | null
  21425. llmEnrichedAt?: Date | string | null
  21426. llmEnrichFailed?: boolean
  21427. manualScoreImpact?: number | null
  21428. manualScoreFeasibility?: number | null
  21429. manualScoreUrgency?: number | null
  21430. priorityOrder?: number | null
  21431. emailMessageId?: string | null
  21432. createdAt?: Date | string
  21433. updatedAt?: Date | string
  21434. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  21435. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  21436. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  21437. }
  21438. export type IdeaUncheckedCreateWithoutQualificationQuestionsInput = {
  21439. id?: string
  21440. workspaceId: string
  21441. contributorEmail: string
  21442. contributorId?: string | null
  21443. department: string
  21444. problemDescription: string
  21445. estimatedImpact: $Enums.ImpactLevel
  21446. frequency: $Enums.Frequency
  21447. optionalWhoAffected?: string | null
  21448. optionalAlreadyTried?: string | null
  21449. optionalSuccessLooksLike?: string | null
  21450. status?: $Enums.IdeaStatus
  21451. llmTitle?: string | null
  21452. llmDomain?: string | null
  21453. llmAiType?: string | null
  21454. llmExplanation?: string | null
  21455. llmScoreImpact?: number | null
  21456. llmScoreFeasibility?: number | null
  21457. llmScoreUrgency?: number | null
  21458. llmEnrichedAt?: Date | string | null
  21459. llmEnrichFailed?: boolean
  21460. manualScoreImpact?: number | null
  21461. manualScoreFeasibility?: number | null
  21462. manualScoreUrgency?: number | null
  21463. priorityOrder?: number | null
  21464. emailMessageId?: string | null
  21465. createdAt?: Date | string
  21466. updatedAt?: Date | string
  21467. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  21468. }
  21469. export type IdeaCreateOrConnectWithoutQualificationQuestionsInput = {
  21470. where: IdeaWhereUniqueInput
  21471. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21472. }
  21473. export type IdeaUpsertWithoutQualificationQuestionsInput = {
  21474. update: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  21475. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21476. where?: IdeaWhereInput
  21477. }
  21478. export type IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput = {
  21479. where?: IdeaWhereInput
  21480. data: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  21481. }
  21482. export type IdeaUpdateWithoutQualificationQuestionsInput = {
  21483. id?: StringFieldUpdateOperationsInput | string
  21484. contributorEmail?: StringFieldUpdateOperationsInput | string
  21485. department?: StringFieldUpdateOperationsInput | string
  21486. problemDescription?: StringFieldUpdateOperationsInput | string
  21487. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21488. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21489. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21490. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21491. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21492. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21493. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21494. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21495. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21496. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21497. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21498. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21499. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21500. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21501. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21502. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21503. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21504. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21505. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21506. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21507. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21508. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21509. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21510. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21511. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21512. }
  21513. export type IdeaUncheckedUpdateWithoutQualificationQuestionsInput = {
  21514. id?: StringFieldUpdateOperationsInput | string
  21515. workspaceId?: StringFieldUpdateOperationsInput | string
  21516. contributorEmail?: StringFieldUpdateOperationsInput | string
  21517. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21518. department?: StringFieldUpdateOperationsInput | string
  21519. problemDescription?: StringFieldUpdateOperationsInput | string
  21520. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21521. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21522. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21523. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21524. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21525. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21526. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21527. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21528. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21529. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21530. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21531. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21532. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21533. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21534. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21535. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21536. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21537. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21538. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21539. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21540. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21541. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21542. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21543. }
  21544. export type WorkspaceCreateWithoutShareLinkInput = {
  21545. id?: string
  21546. name: string
  21547. slug: string
  21548. sector?: string | null
  21549. companySize?: number | null
  21550. contactEmail?: string | null
  21551. tier?: $Enums.WorkspaceTier
  21552. llmCallsThisMonth?: number
  21553. llmCallsResetAt?: Date | string
  21554. autoRelanceEnabled?: boolean
  21555. exportsThisMonth?: number
  21556. exportsResetAt?: Date | string
  21557. lastVisitedAt?: Date | string | null
  21558. onboardingDismissed?: boolean
  21559. createdAt?: Date | string
  21560. updatedAt?: Date | string
  21561. owner: UserCreateNestedOneWithoutWorkspaceInput
  21562. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  21563. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  21564. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  21565. }
  21566. export type WorkspaceUncheckedCreateWithoutShareLinkInput = {
  21567. id?: string
  21568. name: string
  21569. slug: string
  21570. sector?: string | null
  21571. companySize?: number | null
  21572. contactEmail?: string | null
  21573. tier?: $Enums.WorkspaceTier
  21574. llmCallsThisMonth?: number
  21575. llmCallsResetAt?: Date | string
  21576. autoRelanceEnabled?: boolean
  21577. exportsThisMonth?: number
  21578. exportsResetAt?: Date | string
  21579. lastVisitedAt?: Date | string | null
  21580. onboardingDismissed?: boolean
  21581. createdAt?: Date | string
  21582. updatedAt?: Date | string
  21583. ownerId: string
  21584. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  21585. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  21586. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  21587. }
  21588. export type WorkspaceCreateOrConnectWithoutShareLinkInput = {
  21589. where: WorkspaceWhereUniqueInput
  21590. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21591. }
  21592. export type WorkspaceUpsertWithoutShareLinkInput = {
  21593. update: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  21594. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21595. where?: WorkspaceWhereInput
  21596. }
  21597. export type WorkspaceUpdateToOneWithWhereWithoutShareLinkInput = {
  21598. where?: WorkspaceWhereInput
  21599. data: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  21600. }
  21601. export type WorkspaceUpdateWithoutShareLinkInput = {
  21602. id?: StringFieldUpdateOperationsInput | string
  21603. name?: StringFieldUpdateOperationsInput | string
  21604. slug?: StringFieldUpdateOperationsInput | string
  21605. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21606. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21607. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21608. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21609. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21610. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21611. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21612. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21613. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21614. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21615. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21616. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21617. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21618. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  21619. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  21620. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  21621. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  21622. }
  21623. export type WorkspaceUncheckedUpdateWithoutShareLinkInput = {
  21624. id?: StringFieldUpdateOperationsInput | string
  21625. name?: StringFieldUpdateOperationsInput | string
  21626. slug?: StringFieldUpdateOperationsInput | string
  21627. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21628. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21629. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21630. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21631. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21632. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21633. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21634. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21635. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21636. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21637. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21638. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21639. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21640. ownerId?: StringFieldUpdateOperationsInput | string
  21641. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  21642. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  21643. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  21644. }
  21645. export type ContributorCreateManyWorkspaceInput = {
  21646. id?: string
  21647. email: string
  21648. service?: string | null
  21649. status?: $Enums.ContributorStatus
  21650. invitedAt?: Date | string
  21651. lastRemindedAt?: Date | string | null
  21652. createdAt?: Date | string
  21653. }
  21654. export type IdeaCreateManyWorkspaceInput = {
  21655. id?: string
  21656. contributorEmail: string
  21657. contributorId?: string | null
  21658. department: string
  21659. problemDescription: string
  21660. estimatedImpact: $Enums.ImpactLevel
  21661. frequency: $Enums.Frequency
  21662. optionalWhoAffected?: string | null
  21663. optionalAlreadyTried?: string | null
  21664. optionalSuccessLooksLike?: string | null
  21665. status?: $Enums.IdeaStatus
  21666. llmTitle?: string | null
  21667. llmDomain?: string | null
  21668. llmAiType?: string | null
  21669. llmExplanation?: string | null
  21670. llmScoreImpact?: number | null
  21671. llmScoreFeasibility?: number | null
  21672. llmScoreUrgency?: number | null
  21673. llmEnrichedAt?: Date | string | null
  21674. llmEnrichFailed?: boolean
  21675. manualScoreImpact?: number | null
  21676. manualScoreFeasibility?: number | null
  21677. manualScoreUrgency?: number | null
  21678. priorityOrder?: number | null
  21679. emailMessageId?: string | null
  21680. createdAt?: Date | string
  21681. updatedAt?: Date | string
  21682. }
  21683. export type ManualRelanceLogCreateManyWorkspaceInput = {
  21684. id?: string
  21685. subject: string
  21686. recipientCount: number
  21687. sentCount: number
  21688. failedCount?: number
  21689. sentAt?: Date | string
  21690. }
  21691. export type ContributorUpdateWithoutWorkspaceInput = {
  21692. id?: StringFieldUpdateOperationsInput | string
  21693. email?: StringFieldUpdateOperationsInput | string
  21694. service?: NullableStringFieldUpdateOperationsInput | string | null
  21695. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21696. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21697. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21698. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21699. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  21700. }
  21701. export type ContributorUncheckedUpdateWithoutWorkspaceInput = {
  21702. id?: StringFieldUpdateOperationsInput | string
  21703. email?: StringFieldUpdateOperationsInput | string
  21704. service?: NullableStringFieldUpdateOperationsInput | string | null
  21705. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21706. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21707. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21708. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21709. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  21710. }
  21711. export type ContributorUncheckedUpdateManyWithoutWorkspaceInput = {
  21712. id?: StringFieldUpdateOperationsInput | string
  21713. email?: StringFieldUpdateOperationsInput | string
  21714. service?: NullableStringFieldUpdateOperationsInput | string | null
  21715. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  21716. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21717. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21718. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21719. }
  21720. export type IdeaUpdateWithoutWorkspaceInput = {
  21721. id?: StringFieldUpdateOperationsInput | string
  21722. contributorEmail?: StringFieldUpdateOperationsInput | string
  21723. department?: StringFieldUpdateOperationsInput | string
  21724. problemDescription?: StringFieldUpdateOperationsInput | string
  21725. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21726. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21727. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21728. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21729. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21730. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21731. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21732. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21733. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21734. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21735. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21736. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21737. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21738. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21739. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21740. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21741. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21742. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21743. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21744. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21745. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21746. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21747. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  21748. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21749. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21750. }
  21751. export type IdeaUncheckedUpdateWithoutWorkspaceInput = {
  21752. id?: StringFieldUpdateOperationsInput | string
  21753. contributorEmail?: StringFieldUpdateOperationsInput | string
  21754. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21755. department?: StringFieldUpdateOperationsInput | string
  21756. problemDescription?: StringFieldUpdateOperationsInput | string
  21757. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21758. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21759. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21760. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21761. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21762. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21763. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21764. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21765. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21766. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21767. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21768. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21769. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21770. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21771. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21772. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21773. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21774. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21775. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21776. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21777. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21778. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21779. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21780. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21781. }
  21782. export type IdeaUncheckedUpdateManyWithoutWorkspaceInput = {
  21783. id?: StringFieldUpdateOperationsInput | string
  21784. contributorEmail?: StringFieldUpdateOperationsInput | string
  21785. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  21786. department?: StringFieldUpdateOperationsInput | string
  21787. problemDescription?: StringFieldUpdateOperationsInput | string
  21788. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21789. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21790. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21791. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21792. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21793. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21794. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21795. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21796. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21797. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21798. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21799. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21800. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21801. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21802. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21803. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21804. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21805. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21806. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21807. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21808. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21809. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21810. }
  21811. export type ManualRelanceLogUpdateWithoutWorkspaceInput = {
  21812. id?: StringFieldUpdateOperationsInput | string
  21813. subject?: StringFieldUpdateOperationsInput | string
  21814. recipientCount?: IntFieldUpdateOperationsInput | number
  21815. sentCount?: IntFieldUpdateOperationsInput | number
  21816. failedCount?: IntFieldUpdateOperationsInput | number
  21817. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21818. }
  21819. export type ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput = {
  21820. id?: StringFieldUpdateOperationsInput | string
  21821. subject?: StringFieldUpdateOperationsInput | string
  21822. recipientCount?: IntFieldUpdateOperationsInput | number
  21823. sentCount?: IntFieldUpdateOperationsInput | number
  21824. failedCount?: IntFieldUpdateOperationsInput | number
  21825. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21826. }
  21827. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput = {
  21828. id?: StringFieldUpdateOperationsInput | string
  21829. subject?: StringFieldUpdateOperationsInput | string
  21830. recipientCount?: IntFieldUpdateOperationsInput | number
  21831. sentCount?: IntFieldUpdateOperationsInput | number
  21832. failedCount?: IntFieldUpdateOperationsInput | number
  21833. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21834. }
  21835. export type IdeaCreateManyContributorInput = {
  21836. id?: string
  21837. workspaceId: string
  21838. contributorEmail: string
  21839. department: string
  21840. problemDescription: string
  21841. estimatedImpact: $Enums.ImpactLevel
  21842. frequency: $Enums.Frequency
  21843. optionalWhoAffected?: string | null
  21844. optionalAlreadyTried?: string | null
  21845. optionalSuccessLooksLike?: string | null
  21846. status?: $Enums.IdeaStatus
  21847. llmTitle?: string | null
  21848. llmDomain?: string | null
  21849. llmAiType?: string | null
  21850. llmExplanation?: string | null
  21851. llmScoreImpact?: number | null
  21852. llmScoreFeasibility?: number | null
  21853. llmScoreUrgency?: number | null
  21854. llmEnrichedAt?: Date | string | null
  21855. llmEnrichFailed?: boolean
  21856. manualScoreImpact?: number | null
  21857. manualScoreFeasibility?: number | null
  21858. manualScoreUrgency?: number | null
  21859. priorityOrder?: number | null
  21860. emailMessageId?: string | null
  21861. createdAt?: Date | string
  21862. updatedAt?: Date | string
  21863. }
  21864. export type IdeaUpdateWithoutContributorInput = {
  21865. id?: StringFieldUpdateOperationsInput | string
  21866. contributorEmail?: StringFieldUpdateOperationsInput | string
  21867. department?: StringFieldUpdateOperationsInput | string
  21868. problemDescription?: StringFieldUpdateOperationsInput | string
  21869. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21870. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21871. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21872. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21873. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21874. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21875. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21876. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21877. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21878. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21879. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21880. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21881. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21882. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21883. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21884. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21885. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21886. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21887. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21888. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21889. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21890. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21891. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  21892. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  21893. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  21894. }
  21895. export type IdeaUncheckedUpdateWithoutContributorInput = {
  21896. id?: StringFieldUpdateOperationsInput | string
  21897. workspaceId?: StringFieldUpdateOperationsInput | string
  21898. contributorEmail?: StringFieldUpdateOperationsInput | string
  21899. department?: StringFieldUpdateOperationsInput | string
  21900. problemDescription?: StringFieldUpdateOperationsInput | string
  21901. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21902. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21903. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21904. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21905. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21906. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21907. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21908. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21909. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21910. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21911. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21912. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21913. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21914. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21915. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21916. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21917. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21918. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21919. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21920. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21921. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21922. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21923. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  21924. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  21925. }
  21926. export type IdeaUncheckedUpdateManyWithoutContributorInput = {
  21927. id?: StringFieldUpdateOperationsInput | string
  21928. workspaceId?: StringFieldUpdateOperationsInput | string
  21929. contributorEmail?: StringFieldUpdateOperationsInput | string
  21930. department?: StringFieldUpdateOperationsInput | string
  21931. problemDescription?: StringFieldUpdateOperationsInput | string
  21932. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  21933. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  21934. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  21935. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  21936. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  21937. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  21938. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  21939. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  21940. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  21941. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  21942. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21943. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21944. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21945. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21946. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  21947. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  21948. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  21949. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  21950. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  21951. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  21952. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21953. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21954. }
  21955. export type IdeaAttachmentCreateManyIdeaInput = {
  21956. id?: string
  21957. workspaceId: string
  21958. filename: string
  21959. contentType: string
  21960. size: number
  21961. url: string
  21962. blobPath: string
  21963. createdAt?: Date | string
  21964. }
  21965. export type QualificationQuestionCreateManyIdeaInput = {
  21966. id?: string
  21967. workspaceId: string
  21968. questionText: string
  21969. responseToken?: string
  21970. askedAt?: Date | string
  21971. responseText?: string | null
  21972. answeredAt?: Date | string | null
  21973. }
  21974. export type IdeaAttachmentUpdateWithoutIdeaInput = {
  21975. id?: StringFieldUpdateOperationsInput | string
  21976. workspaceId?: StringFieldUpdateOperationsInput | string
  21977. filename?: StringFieldUpdateOperationsInput | string
  21978. contentType?: StringFieldUpdateOperationsInput | string
  21979. size?: IntFieldUpdateOperationsInput | number
  21980. url?: StringFieldUpdateOperationsInput | string
  21981. blobPath?: StringFieldUpdateOperationsInput | string
  21982. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21983. }
  21984. export type IdeaAttachmentUncheckedUpdateWithoutIdeaInput = {
  21985. id?: StringFieldUpdateOperationsInput | string
  21986. workspaceId?: StringFieldUpdateOperationsInput | string
  21987. filename?: StringFieldUpdateOperationsInput | string
  21988. contentType?: StringFieldUpdateOperationsInput | string
  21989. size?: IntFieldUpdateOperationsInput | number
  21990. url?: StringFieldUpdateOperationsInput | string
  21991. blobPath?: StringFieldUpdateOperationsInput | string
  21992. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21993. }
  21994. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput = {
  21995. id?: StringFieldUpdateOperationsInput | string
  21996. workspaceId?: StringFieldUpdateOperationsInput | string
  21997. filename?: StringFieldUpdateOperationsInput | string
  21998. contentType?: StringFieldUpdateOperationsInput | string
  21999. size?: IntFieldUpdateOperationsInput | number
  22000. url?: StringFieldUpdateOperationsInput | string
  22001. blobPath?: StringFieldUpdateOperationsInput | string
  22002. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22003. }
  22004. export type QualificationQuestionUpdateWithoutIdeaInput = {
  22005. id?: StringFieldUpdateOperationsInput | string
  22006. workspaceId?: StringFieldUpdateOperationsInput | string
  22007. questionText?: StringFieldUpdateOperationsInput | string
  22008. responseToken?: StringFieldUpdateOperationsInput | string
  22009. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22010. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  22011. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22012. }
  22013. export type QualificationQuestionUncheckedUpdateWithoutIdeaInput = {
  22014. id?: StringFieldUpdateOperationsInput | string
  22015. workspaceId?: StringFieldUpdateOperationsInput | string
  22016. questionText?: StringFieldUpdateOperationsInput | string
  22017. responseToken?: StringFieldUpdateOperationsInput | string
  22018. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22019. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  22020. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22021. }
  22022. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaInput = {
  22023. id?: StringFieldUpdateOperationsInput | string
  22024. workspaceId?: StringFieldUpdateOperationsInput | string
  22025. questionText?: StringFieldUpdateOperationsInput | string
  22026. responseToken?: StringFieldUpdateOperationsInput | string
  22027. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22028. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  22029. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22030. }
  22031. export type AccountCreateManyUserInput = {
  22032. id?: string
  22033. type: string
  22034. provider: string
  22035. providerAccountId: string
  22036. refresh_token?: string | null
  22037. access_token?: string | null
  22038. expires_at?: number | null
  22039. token_type?: string | null
  22040. scope?: string | null
  22041. id_token?: string | null
  22042. session_state?: string | null
  22043. refresh_token_expires_in?: number | null
  22044. }
  22045. export type SessionCreateManyUserInput = {
  22046. id?: string
  22047. sessionToken: string
  22048. expires: Date | string
  22049. }
  22050. export type PostCreateManyCreatedByInput = {
  22051. id?: number
  22052. name: string
  22053. createdAt?: Date | string
  22054. updatedAt?: Date | string
  22055. }
  22056. export type AccountUpdateWithoutUserInput = {
  22057. id?: StringFieldUpdateOperationsInput | string
  22058. type?: StringFieldUpdateOperationsInput | string
  22059. provider?: StringFieldUpdateOperationsInput | string
  22060. providerAccountId?: StringFieldUpdateOperationsInput | string
  22061. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  22062. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  22063. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  22064. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  22065. scope?: NullableStringFieldUpdateOperationsInput | string | null
  22066. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  22067. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  22068. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  22069. }
  22070. export type AccountUncheckedUpdateWithoutUserInput = {
  22071. id?: StringFieldUpdateOperationsInput | string
  22072. type?: StringFieldUpdateOperationsInput | string
  22073. provider?: StringFieldUpdateOperationsInput | string
  22074. providerAccountId?: StringFieldUpdateOperationsInput | string
  22075. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  22076. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  22077. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  22078. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  22079. scope?: NullableStringFieldUpdateOperationsInput | string | null
  22080. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  22081. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  22082. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  22083. }
  22084. export type AccountUncheckedUpdateManyWithoutUserInput = {
  22085. id?: StringFieldUpdateOperationsInput | string
  22086. type?: StringFieldUpdateOperationsInput | string
  22087. provider?: StringFieldUpdateOperationsInput | string
  22088. providerAccountId?: StringFieldUpdateOperationsInput | string
  22089. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  22090. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  22091. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  22092. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  22093. scope?: NullableStringFieldUpdateOperationsInput | string | null
  22094. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  22095. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  22096. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  22097. }
  22098. export type SessionUpdateWithoutUserInput = {
  22099. id?: StringFieldUpdateOperationsInput | string
  22100. sessionToken?: StringFieldUpdateOperationsInput | string
  22101. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  22102. }
  22103. export type SessionUncheckedUpdateWithoutUserInput = {
  22104. id?: StringFieldUpdateOperationsInput | string
  22105. sessionToken?: StringFieldUpdateOperationsInput | string
  22106. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  22107. }
  22108. export type SessionUncheckedUpdateManyWithoutUserInput = {
  22109. id?: StringFieldUpdateOperationsInput | string
  22110. sessionToken?: StringFieldUpdateOperationsInput | string
  22111. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  22112. }
  22113. export type PostUpdateWithoutCreatedByInput = {
  22114. name?: StringFieldUpdateOperationsInput | string
  22115. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22116. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22117. }
  22118. export type PostUncheckedUpdateWithoutCreatedByInput = {
  22119. id?: IntFieldUpdateOperationsInput | number
  22120. name?: StringFieldUpdateOperationsInput | string
  22121. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22122. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22123. }
  22124. export type PostUncheckedUpdateManyWithoutCreatedByInput = {
  22125. id?: IntFieldUpdateOperationsInput | number
  22126. name?: StringFieldUpdateOperationsInput | string
  22127. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22128. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22129. }
  22130. /**
  22131. * Batch Payload for updateMany & deleteMany & createMany
  22132. */
  22133. export type BatchPayload = {
  22134. count: number
  22135. }
  22136. /**
  22137. * DMMF
  22138. */
  22139. export const dmmf: runtime.BaseDMMF
  22140. }