index.d.ts 963 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990
  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 AppFeedback
  73. *
  74. */
  75. export type AppFeedback = $Result.DefaultSelection<Prisma.$AppFeedbackPayload>
  76. /**
  77. * Model ShareLink
  78. *
  79. */
  80. export type ShareLink = $Result.DefaultSelection<Prisma.$ShareLinkPayload>
  81. /**
  82. * Enums
  83. */
  84. export namespace $Enums {
  85. export const WorkspaceTier: {
  86. FREE: 'FREE',
  87. PRO: 'PRO'
  88. };
  89. export type WorkspaceTier = (typeof WorkspaceTier)[keyof typeof WorkspaceTier]
  90. export const ContributorStatus: {
  91. INVITED: 'INVITED',
  92. SUBMITTED: 'SUBMITTED',
  93. NOT_SUBMITTED: 'NOT_SUBMITTED'
  94. };
  95. export type ContributorStatus = (typeof ContributorStatus)[keyof typeof ContributorStatus]
  96. export const IdeaStatus: {
  97. SUBMITTED: 'SUBMITTED',
  98. IN_REVIEW: 'IN_REVIEW',
  99. ON_AGENDA: 'ON_AGENDA',
  100. IN_PROGRESS: 'IN_PROGRESS',
  101. NOT_PRIORITY: 'NOT_PRIORITY'
  102. };
  103. export type IdeaStatus = (typeof IdeaStatus)[keyof typeof IdeaStatus]
  104. export const ImpactLevel: {
  105. FAIBLE: 'FAIBLE',
  106. MODERE: 'MODERE',
  107. ELEVE: 'ELEVE',
  108. CRITIQUE: 'CRITIQUE'
  109. };
  110. export type ImpactLevel = (typeof ImpactLevel)[keyof typeof ImpactLevel]
  111. export const Frequency: {
  112. QUOTIDIENNE: 'QUOTIDIENNE',
  113. HEBDOMADAIRE: 'HEBDOMADAIRE',
  114. MENSUELLE: 'MENSUELLE',
  115. TRIMESTRIELLE: 'TRIMESTRIELLE',
  116. PONCTUELLE: 'PONCTUELLE'
  117. };
  118. export type Frequency = (typeof Frequency)[keyof typeof Frequency]
  119. export const FeedbackType: {
  120. BUG: 'BUG',
  121. IMPROVEMENT: 'IMPROVEMENT'
  122. };
  123. export type FeedbackType = (typeof FeedbackType)[keyof typeof FeedbackType]
  124. }
  125. export type WorkspaceTier = $Enums.WorkspaceTier
  126. export const WorkspaceTier: typeof $Enums.WorkspaceTier
  127. export type ContributorStatus = $Enums.ContributorStatus
  128. export const ContributorStatus: typeof $Enums.ContributorStatus
  129. export type IdeaStatus = $Enums.IdeaStatus
  130. export const IdeaStatus: typeof $Enums.IdeaStatus
  131. export type ImpactLevel = $Enums.ImpactLevel
  132. export const ImpactLevel: typeof $Enums.ImpactLevel
  133. export type Frequency = $Enums.Frequency
  134. export const Frequency: typeof $Enums.Frequency
  135. export type FeedbackType = $Enums.FeedbackType
  136. export const FeedbackType: typeof $Enums.FeedbackType
  137. /**
  138. * ## Prisma Client ʲˢ
  139. *
  140. * Type-safe database client for TypeScript & Node.js
  141. * @example
  142. * ```
  143. * const prisma = new PrismaClient()
  144. * // Fetch zero or more Workspaces
  145. * const workspaces = await prisma.workspace.findMany()
  146. * ```
  147. *
  148. *
  149. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
  150. */
  151. export class PrismaClient<
  152. ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
  153. const U = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never,
  154. ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs
  155. > {
  156. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
  157. /**
  158. * ## Prisma Client ʲˢ
  159. *
  160. * Type-safe database client for TypeScript & Node.js
  161. * @example
  162. * ```
  163. * const prisma = new PrismaClient()
  164. * // Fetch zero or more Workspaces
  165. * const workspaces = await prisma.workspace.findMany()
  166. * ```
  167. *
  168. *
  169. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client).
  170. */
  171. constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
  172. $on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
  173. /**
  174. * Connect with the database
  175. */
  176. $connect(): $Utils.JsPromise<void>;
  177. /**
  178. * Disconnect from the database
  179. */
  180. $disconnect(): $Utils.JsPromise<void>;
  181. /**
  182. * Executes a prepared raw query and returns the number of affected rows.
  183. * @example
  184. * ```
  185. * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
  186. * ```
  187. *
  188. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  189. */
  190. $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
  191. /**
  192. * Executes a raw query and returns the number of affected rows.
  193. * Susceptible to SQL injections, see documentation.
  194. * @example
  195. * ```
  196. * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
  197. * ```
  198. *
  199. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  200. */
  201. $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
  202. /**
  203. * Performs a prepared raw query and returns the `SELECT` data.
  204. * @example
  205. * ```
  206. * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
  207. * ```
  208. *
  209. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  210. */
  211. $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
  212. /**
  213. * Performs a raw query and returns the `SELECT` data.
  214. * Susceptible to SQL injections, see documentation.
  215. * @example
  216. * ```
  217. * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
  218. * ```
  219. *
  220. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access).
  221. */
  222. $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
  223. /**
  224. * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
  225. * @example
  226. * ```
  227. * const [george, bob, alice] = await prisma.$transaction([
  228. * prisma.user.create({ data: { name: 'George' } }),
  229. * prisma.user.create({ data: { name: 'Bob' } }),
  230. * prisma.user.create({ data: { name: 'Alice' } }),
  231. * ])
  232. * ```
  233. *
  234. * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions).
  235. */
  236. $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>
  237. $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => $Utils.JsPromise<R>, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): $Utils.JsPromise<R>
  238. $extends: $Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<ClientOptions>, ExtArgs, $Utils.Call<Prisma.TypeMapCb<ClientOptions>, {
  239. extArgs: ExtArgs
  240. }>>
  241. /**
  242. * `prisma.workspace`: Exposes CRUD operations for the **Workspace** model.
  243. * Example usage:
  244. * ```ts
  245. * // Fetch zero or more Workspaces
  246. * const workspaces = await prisma.workspace.findMany()
  247. * ```
  248. */
  249. get workspace(): Prisma.WorkspaceDelegate<ExtArgs, ClientOptions>;
  250. /**
  251. * `prisma.manualRelanceLog`: Exposes CRUD operations for the **ManualRelanceLog** model.
  252. * Example usage:
  253. * ```ts
  254. * // Fetch zero or more ManualRelanceLogs
  255. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany()
  256. * ```
  257. */
  258. get manualRelanceLog(): Prisma.ManualRelanceLogDelegate<ExtArgs, ClientOptions>;
  259. /**
  260. * `prisma.contributor`: Exposes CRUD operations for the **Contributor** model.
  261. * Example usage:
  262. * ```ts
  263. * // Fetch zero or more Contributors
  264. * const contributors = await prisma.contributor.findMany()
  265. * ```
  266. */
  267. get contributor(): Prisma.ContributorDelegate<ExtArgs, ClientOptions>;
  268. /**
  269. * `prisma.idea`: Exposes CRUD operations for the **Idea** model.
  270. * Example usage:
  271. * ```ts
  272. * // Fetch zero or more Ideas
  273. * const ideas = await prisma.idea.findMany()
  274. * ```
  275. */
  276. get idea(): Prisma.IdeaDelegate<ExtArgs, ClientOptions>;
  277. /**
  278. * `prisma.post`: Exposes CRUD operations for the **Post** model.
  279. * Example usage:
  280. * ```ts
  281. * // Fetch zero or more Posts
  282. * const posts = await prisma.post.findMany()
  283. * ```
  284. */
  285. get post(): Prisma.PostDelegate<ExtArgs, ClientOptions>;
  286. /**
  287. * `prisma.account`: Exposes CRUD operations for the **Account** model.
  288. * Example usage:
  289. * ```ts
  290. * // Fetch zero or more Accounts
  291. * const accounts = await prisma.account.findMany()
  292. * ```
  293. */
  294. get account(): Prisma.AccountDelegate<ExtArgs, ClientOptions>;
  295. /**
  296. * `prisma.session`: Exposes CRUD operations for the **Session** model.
  297. * Example usage:
  298. * ```ts
  299. * // Fetch zero or more Sessions
  300. * const sessions = await prisma.session.findMany()
  301. * ```
  302. */
  303. get session(): Prisma.SessionDelegate<ExtArgs, ClientOptions>;
  304. /**
  305. * `prisma.user`: Exposes CRUD operations for the **User** model.
  306. * Example usage:
  307. * ```ts
  308. * // Fetch zero or more Users
  309. * const users = await prisma.user.findMany()
  310. * ```
  311. */
  312. get user(): Prisma.UserDelegate<ExtArgs, ClientOptions>;
  313. /**
  314. * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model.
  315. * Example usage:
  316. * ```ts
  317. * // Fetch zero or more VerificationTokens
  318. * const verificationTokens = await prisma.verificationToken.findMany()
  319. * ```
  320. */
  321. get verificationToken(): Prisma.VerificationTokenDelegate<ExtArgs, ClientOptions>;
  322. /**
  323. * `prisma.ideaAttachment`: Exposes CRUD operations for the **IdeaAttachment** model.
  324. * Example usage:
  325. * ```ts
  326. * // Fetch zero or more IdeaAttachments
  327. * const ideaAttachments = await prisma.ideaAttachment.findMany()
  328. * ```
  329. */
  330. get ideaAttachment(): Prisma.IdeaAttachmentDelegate<ExtArgs, ClientOptions>;
  331. /**
  332. * `prisma.qualificationQuestion`: Exposes CRUD operations for the **QualificationQuestion** model.
  333. * Example usage:
  334. * ```ts
  335. * // Fetch zero or more QualificationQuestions
  336. * const qualificationQuestions = await prisma.qualificationQuestion.findMany()
  337. * ```
  338. */
  339. get qualificationQuestion(): Prisma.QualificationQuestionDelegate<ExtArgs, ClientOptions>;
  340. /**
  341. * `prisma.libraryCase`: Exposes CRUD operations for the **LibraryCase** model.
  342. * Example usage:
  343. * ```ts
  344. * // Fetch zero or more LibraryCases
  345. * const libraryCases = await prisma.libraryCase.findMany()
  346. * ```
  347. */
  348. get libraryCase(): Prisma.LibraryCaseDelegate<ExtArgs, ClientOptions>;
  349. /**
  350. * `prisma.appFeedback`: Exposes CRUD operations for the **AppFeedback** model.
  351. * Example usage:
  352. * ```ts
  353. * // Fetch zero or more AppFeedbacks
  354. * const appFeedbacks = await prisma.appFeedback.findMany()
  355. * ```
  356. */
  357. get appFeedback(): Prisma.AppFeedbackDelegate<ExtArgs, ClientOptions>;
  358. /**
  359. * `prisma.shareLink`: Exposes CRUD operations for the **ShareLink** model.
  360. * Example usage:
  361. * ```ts
  362. * // Fetch zero or more ShareLinks
  363. * const shareLinks = await prisma.shareLink.findMany()
  364. * ```
  365. */
  366. get shareLink(): Prisma.ShareLinkDelegate<ExtArgs, ClientOptions>;
  367. }
  368. export namespace Prisma {
  369. export import DMMF = runtime.DMMF
  370. export type PrismaPromise<T> = $Public.PrismaPromise<T>
  371. /**
  372. * Validator
  373. */
  374. export import validator = runtime.Public.validator
  375. /**
  376. * Prisma Errors
  377. */
  378. export import PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError
  379. export import PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError
  380. export import PrismaClientRustPanicError = runtime.PrismaClientRustPanicError
  381. export import PrismaClientInitializationError = runtime.PrismaClientInitializationError
  382. export import PrismaClientValidationError = runtime.PrismaClientValidationError
  383. /**
  384. * Re-export of sql-template-tag
  385. */
  386. export import sql = runtime.sqltag
  387. export import empty = runtime.empty
  388. export import join = runtime.join
  389. export import raw = runtime.raw
  390. export import Sql = runtime.Sql
  391. /**
  392. * Decimal.js
  393. */
  394. export import Decimal = runtime.Decimal
  395. export type DecimalJsLike = runtime.DecimalJsLike
  396. /**
  397. * Metrics
  398. */
  399. export type Metrics = runtime.Metrics
  400. export type Metric<T> = runtime.Metric<T>
  401. export type MetricHistogram = runtime.MetricHistogram
  402. export type MetricHistogramBucket = runtime.MetricHistogramBucket
  403. /**
  404. * Extensions
  405. */
  406. export import Extension = $Extensions.UserArgs
  407. export import getExtensionContext = runtime.Extensions.getExtensionContext
  408. export import Args = $Public.Args
  409. export import Payload = $Public.Payload
  410. export import Result = $Public.Result
  411. export import Exact = $Public.Exact
  412. /**
  413. * Prisma Client JS version: 6.19.2
  414. * Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
  415. */
  416. export type PrismaVersion = {
  417. client: string
  418. }
  419. export const prismaVersion: PrismaVersion
  420. /**
  421. * Utility Types
  422. */
  423. export import Bytes = runtime.Bytes
  424. export import JsonObject = runtime.JsonObject
  425. export import JsonArray = runtime.JsonArray
  426. export import JsonValue = runtime.JsonValue
  427. export import InputJsonObject = runtime.InputJsonObject
  428. export import InputJsonArray = runtime.InputJsonArray
  429. export import InputJsonValue = runtime.InputJsonValue
  430. /**
  431. * Types of the values used to represent different kinds of `null` values when working with JSON fields.
  432. *
  433. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  434. */
  435. namespace NullTypes {
  436. /**
  437. * Type of `Prisma.DbNull`.
  438. *
  439. * You cannot use other instances of this class. Please use the `Prisma.DbNull` value.
  440. *
  441. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  442. */
  443. class DbNull {
  444. private DbNull: never
  445. private constructor()
  446. }
  447. /**
  448. * Type of `Prisma.JsonNull`.
  449. *
  450. * You cannot use other instances of this class. Please use the `Prisma.JsonNull` value.
  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. class JsonNull {
  455. private JsonNull: never
  456. private constructor()
  457. }
  458. /**
  459. * Type of `Prisma.AnyNull`.
  460. *
  461. * You cannot use other instances of this class. Please use the `Prisma.AnyNull` value.
  462. *
  463. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  464. */
  465. class AnyNull {
  466. private AnyNull: never
  467. private constructor()
  468. }
  469. }
  470. /**
  471. * Helper for filtering JSON entries that have `null` on the database (empty on the db)
  472. *
  473. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  474. */
  475. export const DbNull: NullTypes.DbNull
  476. /**
  477. * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
  478. *
  479. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  480. */
  481. export const JsonNull: NullTypes.JsonNull
  482. /**
  483. * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
  484. *
  485. * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
  486. */
  487. export const AnyNull: NullTypes.AnyNull
  488. type SelectAndInclude = {
  489. select: any
  490. include: any
  491. }
  492. type SelectAndOmit = {
  493. select: any
  494. omit: any
  495. }
  496. /**
  497. * Get the type of the value, that the Promise holds.
  498. */
  499. export type PromiseType<T extends PromiseLike<any>> = T extends PromiseLike<infer U> ? U : T;
  500. /**
  501. * Get the return type of a function which returns a Promise.
  502. */
  503. export type PromiseReturnType<T extends (...args: any) => $Utils.JsPromise<any>> = PromiseType<ReturnType<T>>
  504. /**
  505. * From T, pick a set of properties whose keys are in the union K
  506. */
  507. type Prisma__Pick<T, K extends keyof T> = {
  508. [P in K]: T[P];
  509. };
  510. export type Enumerable<T> = T | Array<T>;
  511. export type RequiredKeys<T> = {
  512. [K in keyof T]-?: {} extends Prisma__Pick<T, K> ? never : K
  513. }[keyof T]
  514. export type TruthyKeys<T> = keyof {
  515. [K in keyof T as T[K] extends false | undefined | null ? never : K]: K
  516. }
  517. export type TrueKeys<T> = TruthyKeys<Prisma__Pick<T, RequiredKeys<T>>>
  518. /**
  519. * Subset
  520. * @desc From `T` pick properties that exist in `U`. Simple version of Intersection
  521. */
  522. export type Subset<T, U> = {
  523. [key in keyof T]: key extends keyof U ? T[key] : never;
  524. };
  525. /**
  526. * SelectSubset
  527. * @desc From `T` pick properties that exist in `U`. Simple version of Intersection.
  528. * Additionally, it validates, if both select and include are present. If the case, it errors.
  529. */
  530. export type SelectSubset<T, U> = {
  531. [key in keyof T]: key extends keyof U ? T[key] : never
  532. } &
  533. (T extends SelectAndInclude
  534. ? 'Please either choose `select` or `include`.'
  535. : T extends SelectAndOmit
  536. ? 'Please either choose `select` or `omit`.'
  537. : {})
  538. /**
  539. * Subset + Intersection
  540. * @desc From `T` pick properties that exist in `U` and intersect `K`
  541. */
  542. export type SubsetIntersection<T, U, K> = {
  543. [key in keyof T]: key extends keyof U ? T[key] : never
  544. } &
  545. K
  546. type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
  547. /**
  548. * XOR is needed to have a real mutually exclusive union type
  549. * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types
  550. */
  551. type XOR<T, U> =
  552. T extends object ?
  553. U extends object ?
  554. (Without<T, U> & U) | (Without<U, T> & T)
  555. : U : T
  556. /**
  557. * Is T a Record?
  558. */
  559. type IsObject<T extends any> = T extends Array<any>
  560. ? False
  561. : T extends Date
  562. ? False
  563. : T extends Uint8Array
  564. ? False
  565. : T extends BigInt
  566. ? False
  567. : T extends object
  568. ? True
  569. : False
  570. /**
  571. * If it's T[], return T
  572. */
  573. export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T
  574. /**
  575. * From ts-toolbelt
  576. */
  577. type __Either<O extends object, K extends Key> = Omit<O, K> &
  578. {
  579. // Merge all but K
  580. [P in K]: Prisma__Pick<O, P & keyof O> // With K possibilities
  581. }[K]
  582. type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>
  583. type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>
  584. type _Either<
  585. O extends object,
  586. K extends Key,
  587. strict extends Boolean
  588. > = {
  589. 1: EitherStrict<O, K>
  590. 0: EitherLoose<O, K>
  591. }[strict]
  592. type Either<
  593. O extends object,
  594. K extends Key,
  595. strict extends Boolean = 1
  596. > = O extends unknown ? _Either<O, K, strict> : never
  597. export type Union = any
  598. type PatchUndefined<O extends object, O1 extends object> = {
  599. [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K]
  600. } & {}
  601. /** Helper Types for "Merge" **/
  602. export type IntersectOf<U extends Union> = (
  603. U extends unknown ? (k: U) => void : never
  604. ) extends (k: infer I) => void
  605. ? I
  606. : never
  607. export type Overwrite<O extends object, O1 extends object> = {
  608. [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
  609. } & {};
  610. type _Merge<U extends object> = IntersectOf<Overwrite<U, {
  611. [K in keyof U]-?: At<U, K>;
  612. }>>;
  613. type Key = string | number | symbol;
  614. type AtBasic<O extends object, K extends Key> = K extends keyof O ? O[K] : never;
  615. type AtStrict<O extends object, K extends Key> = O[K & keyof O];
  616. type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
  617. export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
  618. 1: AtStrict<O, K>;
  619. 0: AtLoose<O, K>;
  620. }[strict];
  621. export type ComputeRaw<A extends any> = A extends Function ? A : {
  622. [K in keyof A]: A[K];
  623. } & {};
  624. export type OptionalFlat<O> = {
  625. [K in keyof O]?: O[K];
  626. } & {};
  627. type _Record<K extends keyof any, T> = {
  628. [P in K]: T;
  629. };
  630. // cause typescript not to expand types and preserve names
  631. type NoExpand<T> = T extends unknown ? T : never;
  632. // this type assumes the passed object is entirely optional
  633. type AtLeast<O extends object, K extends string> = NoExpand<
  634. O extends unknown
  635. ? | (K extends keyof O ? { [P in K]: O[P] } & O : O)
  636. | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O
  637. : never>;
  638. type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
  639. export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
  640. /** End Helper Types for "Merge" **/
  641. export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
  642. /**
  643. A [[Boolean]]
  644. */
  645. export type Boolean = True | False
  646. // /**
  647. // 1
  648. // */
  649. export type True = 1
  650. /**
  651. 0
  652. */
  653. export type False = 0
  654. export type Not<B extends Boolean> = {
  655. 0: 1
  656. 1: 0
  657. }[B]
  658. export type Extends<A1 extends any, A2 extends any> = [A1] extends [never]
  659. ? 0 // anything `never` is false
  660. : A1 extends A2
  661. ? 1
  662. : 0
  663. export type Has<U extends Union, U1 extends Union> = Not<
  664. Extends<Exclude<U1, U>, U1>
  665. >
  666. export type Or<B1 extends Boolean, B2 extends Boolean> = {
  667. 0: {
  668. 0: 0
  669. 1: 1
  670. }
  671. 1: {
  672. 0: 1
  673. 1: 1
  674. }
  675. }[B1][B2]
  676. export type Keys<U extends Union> = U extends unknown ? keyof U : never
  677. type Cast<A, B> = A extends B ? A : B;
  678. export const type: unique symbol;
  679. /**
  680. * Used by group by
  681. */
  682. export type GetScalarType<T, O> = O extends object ? {
  683. [P in keyof T]: P extends keyof O
  684. ? O[P]
  685. : never
  686. } : never
  687. type FieldPaths<
  688. T,
  689. U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>
  690. > = IsObject<T> extends True ? U : T
  691. type GetHavingFields<T> = {
  692. [K in keyof T]: Or<
  693. Or<Extends<'OR', K>, Extends<'AND', K>>,
  694. Extends<'NOT', K>
  695. > extends True
  696. ? // infer is only needed to not hit TS limit
  697. // based on the brilliant idea of Pierre-Antoine Mills
  698. // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437
  699. T[K] extends infer TK
  700. ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never>
  701. : never
  702. : {} extends FieldPaths<T[K]>
  703. ? never
  704. : K
  705. }[keyof T]
  706. /**
  707. * Convert tuple to union
  708. */
  709. type _TupleToUnion<T> = T extends (infer E)[] ? E : never
  710. type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>
  711. type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T
  712. /**
  713. * Like `Pick`, but additionally can also accept an array of keys
  714. */
  715. type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>
  716. /**
  717. * Exclude all keys with underscores
  718. */
  719. type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T
  720. export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>
  721. type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRef<Model, FieldType>
  722. export const ModelName: {
  723. Workspace: 'Workspace',
  724. ManualRelanceLog: 'ManualRelanceLog',
  725. Contributor: 'Contributor',
  726. Idea: 'Idea',
  727. Post: 'Post',
  728. Account: 'Account',
  729. Session: 'Session',
  730. User: 'User',
  731. VerificationToken: 'VerificationToken',
  732. IdeaAttachment: 'IdeaAttachment',
  733. QualificationQuestion: 'QualificationQuestion',
  734. LibraryCase: 'LibraryCase',
  735. AppFeedback: 'AppFeedback',
  736. ShareLink: 'ShareLink'
  737. };
  738. export type ModelName = (typeof ModelName)[keyof typeof ModelName]
  739. export type Datasources = {
  740. db?: Datasource
  741. }
  742. interface TypeMapCb<ClientOptions = {}> extends $Utils.Fn<{extArgs: $Extensions.InternalArgs }, $Utils.Record<string, any>> {
  743. returns: Prisma.TypeMap<this['params']['extArgs'], ClientOptions extends { omit: infer OmitOptions } ? OmitOptions : {}>
  744. }
  745. export type TypeMap<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
  746. globalOmitOptions: {
  747. omit: GlobalOmitOptions
  748. }
  749. meta: {
  750. modelProps: "workspace" | "manualRelanceLog" | "contributor" | "idea" | "post" | "account" | "session" | "user" | "verificationToken" | "ideaAttachment" | "qualificationQuestion" | "libraryCase" | "appFeedback" | "shareLink"
  751. txIsolationLevel: Prisma.TransactionIsolationLevel
  752. }
  753. model: {
  754. Workspace: {
  755. payload: Prisma.$WorkspacePayload<ExtArgs>
  756. fields: Prisma.WorkspaceFieldRefs
  757. operations: {
  758. findUnique: {
  759. args: Prisma.WorkspaceFindUniqueArgs<ExtArgs>
  760. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload> | null
  761. }
  762. findUniqueOrThrow: {
  763. args: Prisma.WorkspaceFindUniqueOrThrowArgs<ExtArgs>
  764. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  765. }
  766. findFirst: {
  767. args: Prisma.WorkspaceFindFirstArgs<ExtArgs>
  768. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload> | null
  769. }
  770. findFirstOrThrow: {
  771. args: Prisma.WorkspaceFindFirstOrThrowArgs<ExtArgs>
  772. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  773. }
  774. findMany: {
  775. args: Prisma.WorkspaceFindManyArgs<ExtArgs>
  776. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  777. }
  778. create: {
  779. args: Prisma.WorkspaceCreateArgs<ExtArgs>
  780. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  781. }
  782. createMany: {
  783. args: Prisma.WorkspaceCreateManyArgs<ExtArgs>
  784. result: BatchPayload
  785. }
  786. createManyAndReturn: {
  787. args: Prisma.WorkspaceCreateManyAndReturnArgs<ExtArgs>
  788. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  789. }
  790. delete: {
  791. args: Prisma.WorkspaceDeleteArgs<ExtArgs>
  792. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  793. }
  794. update: {
  795. args: Prisma.WorkspaceUpdateArgs<ExtArgs>
  796. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  797. }
  798. deleteMany: {
  799. args: Prisma.WorkspaceDeleteManyArgs<ExtArgs>
  800. result: BatchPayload
  801. }
  802. updateMany: {
  803. args: Prisma.WorkspaceUpdateManyArgs<ExtArgs>
  804. result: BatchPayload
  805. }
  806. updateManyAndReturn: {
  807. args: Prisma.WorkspaceUpdateManyAndReturnArgs<ExtArgs>
  808. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>[]
  809. }
  810. upsert: {
  811. args: Prisma.WorkspaceUpsertArgs<ExtArgs>
  812. result: $Utils.PayloadToResult<Prisma.$WorkspacePayload>
  813. }
  814. aggregate: {
  815. args: Prisma.WorkspaceAggregateArgs<ExtArgs>
  816. result: $Utils.Optional<AggregateWorkspace>
  817. }
  818. groupBy: {
  819. args: Prisma.WorkspaceGroupByArgs<ExtArgs>
  820. result: $Utils.Optional<WorkspaceGroupByOutputType>[]
  821. }
  822. count: {
  823. args: Prisma.WorkspaceCountArgs<ExtArgs>
  824. result: $Utils.Optional<WorkspaceCountAggregateOutputType> | number
  825. }
  826. }
  827. }
  828. ManualRelanceLog: {
  829. payload: Prisma.$ManualRelanceLogPayload<ExtArgs>
  830. fields: Prisma.ManualRelanceLogFieldRefs
  831. operations: {
  832. findUnique: {
  833. args: Prisma.ManualRelanceLogFindUniqueArgs<ExtArgs>
  834. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload> | null
  835. }
  836. findUniqueOrThrow: {
  837. args: Prisma.ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs>
  838. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  839. }
  840. findFirst: {
  841. args: Prisma.ManualRelanceLogFindFirstArgs<ExtArgs>
  842. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload> | null
  843. }
  844. findFirstOrThrow: {
  845. args: Prisma.ManualRelanceLogFindFirstOrThrowArgs<ExtArgs>
  846. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  847. }
  848. findMany: {
  849. args: Prisma.ManualRelanceLogFindManyArgs<ExtArgs>
  850. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  851. }
  852. create: {
  853. args: Prisma.ManualRelanceLogCreateArgs<ExtArgs>
  854. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  855. }
  856. createMany: {
  857. args: Prisma.ManualRelanceLogCreateManyArgs<ExtArgs>
  858. result: BatchPayload
  859. }
  860. createManyAndReturn: {
  861. args: Prisma.ManualRelanceLogCreateManyAndReturnArgs<ExtArgs>
  862. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  863. }
  864. delete: {
  865. args: Prisma.ManualRelanceLogDeleteArgs<ExtArgs>
  866. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  867. }
  868. update: {
  869. args: Prisma.ManualRelanceLogUpdateArgs<ExtArgs>
  870. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  871. }
  872. deleteMany: {
  873. args: Prisma.ManualRelanceLogDeleteManyArgs<ExtArgs>
  874. result: BatchPayload
  875. }
  876. updateMany: {
  877. args: Prisma.ManualRelanceLogUpdateManyArgs<ExtArgs>
  878. result: BatchPayload
  879. }
  880. updateManyAndReturn: {
  881. args: Prisma.ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs>
  882. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>[]
  883. }
  884. upsert: {
  885. args: Prisma.ManualRelanceLogUpsertArgs<ExtArgs>
  886. result: $Utils.PayloadToResult<Prisma.$ManualRelanceLogPayload>
  887. }
  888. aggregate: {
  889. args: Prisma.ManualRelanceLogAggregateArgs<ExtArgs>
  890. result: $Utils.Optional<AggregateManualRelanceLog>
  891. }
  892. groupBy: {
  893. args: Prisma.ManualRelanceLogGroupByArgs<ExtArgs>
  894. result: $Utils.Optional<ManualRelanceLogGroupByOutputType>[]
  895. }
  896. count: {
  897. args: Prisma.ManualRelanceLogCountArgs<ExtArgs>
  898. result: $Utils.Optional<ManualRelanceLogCountAggregateOutputType> | number
  899. }
  900. }
  901. }
  902. Contributor: {
  903. payload: Prisma.$ContributorPayload<ExtArgs>
  904. fields: Prisma.ContributorFieldRefs
  905. operations: {
  906. findUnique: {
  907. args: Prisma.ContributorFindUniqueArgs<ExtArgs>
  908. result: $Utils.PayloadToResult<Prisma.$ContributorPayload> | null
  909. }
  910. findUniqueOrThrow: {
  911. args: Prisma.ContributorFindUniqueOrThrowArgs<ExtArgs>
  912. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  913. }
  914. findFirst: {
  915. args: Prisma.ContributorFindFirstArgs<ExtArgs>
  916. result: $Utils.PayloadToResult<Prisma.$ContributorPayload> | null
  917. }
  918. findFirstOrThrow: {
  919. args: Prisma.ContributorFindFirstOrThrowArgs<ExtArgs>
  920. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  921. }
  922. findMany: {
  923. args: Prisma.ContributorFindManyArgs<ExtArgs>
  924. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  925. }
  926. create: {
  927. args: Prisma.ContributorCreateArgs<ExtArgs>
  928. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  929. }
  930. createMany: {
  931. args: Prisma.ContributorCreateManyArgs<ExtArgs>
  932. result: BatchPayload
  933. }
  934. createManyAndReturn: {
  935. args: Prisma.ContributorCreateManyAndReturnArgs<ExtArgs>
  936. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  937. }
  938. delete: {
  939. args: Prisma.ContributorDeleteArgs<ExtArgs>
  940. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  941. }
  942. update: {
  943. args: Prisma.ContributorUpdateArgs<ExtArgs>
  944. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  945. }
  946. deleteMany: {
  947. args: Prisma.ContributorDeleteManyArgs<ExtArgs>
  948. result: BatchPayload
  949. }
  950. updateMany: {
  951. args: Prisma.ContributorUpdateManyArgs<ExtArgs>
  952. result: BatchPayload
  953. }
  954. updateManyAndReturn: {
  955. args: Prisma.ContributorUpdateManyAndReturnArgs<ExtArgs>
  956. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>[]
  957. }
  958. upsert: {
  959. args: Prisma.ContributorUpsertArgs<ExtArgs>
  960. result: $Utils.PayloadToResult<Prisma.$ContributorPayload>
  961. }
  962. aggregate: {
  963. args: Prisma.ContributorAggregateArgs<ExtArgs>
  964. result: $Utils.Optional<AggregateContributor>
  965. }
  966. groupBy: {
  967. args: Prisma.ContributorGroupByArgs<ExtArgs>
  968. result: $Utils.Optional<ContributorGroupByOutputType>[]
  969. }
  970. count: {
  971. args: Prisma.ContributorCountArgs<ExtArgs>
  972. result: $Utils.Optional<ContributorCountAggregateOutputType> | number
  973. }
  974. }
  975. }
  976. Idea: {
  977. payload: Prisma.$IdeaPayload<ExtArgs>
  978. fields: Prisma.IdeaFieldRefs
  979. operations: {
  980. findUnique: {
  981. args: Prisma.IdeaFindUniqueArgs<ExtArgs>
  982. result: $Utils.PayloadToResult<Prisma.$IdeaPayload> | null
  983. }
  984. findUniqueOrThrow: {
  985. args: Prisma.IdeaFindUniqueOrThrowArgs<ExtArgs>
  986. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  987. }
  988. findFirst: {
  989. args: Prisma.IdeaFindFirstArgs<ExtArgs>
  990. result: $Utils.PayloadToResult<Prisma.$IdeaPayload> | null
  991. }
  992. findFirstOrThrow: {
  993. args: Prisma.IdeaFindFirstOrThrowArgs<ExtArgs>
  994. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  995. }
  996. findMany: {
  997. args: Prisma.IdeaFindManyArgs<ExtArgs>
  998. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  999. }
  1000. create: {
  1001. args: Prisma.IdeaCreateArgs<ExtArgs>
  1002. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  1003. }
  1004. createMany: {
  1005. args: Prisma.IdeaCreateManyArgs<ExtArgs>
  1006. result: BatchPayload
  1007. }
  1008. createManyAndReturn: {
  1009. args: Prisma.IdeaCreateManyAndReturnArgs<ExtArgs>
  1010. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  1011. }
  1012. delete: {
  1013. args: Prisma.IdeaDeleteArgs<ExtArgs>
  1014. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  1015. }
  1016. update: {
  1017. args: Prisma.IdeaUpdateArgs<ExtArgs>
  1018. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  1019. }
  1020. deleteMany: {
  1021. args: Prisma.IdeaDeleteManyArgs<ExtArgs>
  1022. result: BatchPayload
  1023. }
  1024. updateMany: {
  1025. args: Prisma.IdeaUpdateManyArgs<ExtArgs>
  1026. result: BatchPayload
  1027. }
  1028. updateManyAndReturn: {
  1029. args: Prisma.IdeaUpdateManyAndReturnArgs<ExtArgs>
  1030. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>[]
  1031. }
  1032. upsert: {
  1033. args: Prisma.IdeaUpsertArgs<ExtArgs>
  1034. result: $Utils.PayloadToResult<Prisma.$IdeaPayload>
  1035. }
  1036. aggregate: {
  1037. args: Prisma.IdeaAggregateArgs<ExtArgs>
  1038. result: $Utils.Optional<AggregateIdea>
  1039. }
  1040. groupBy: {
  1041. args: Prisma.IdeaGroupByArgs<ExtArgs>
  1042. result: $Utils.Optional<IdeaGroupByOutputType>[]
  1043. }
  1044. count: {
  1045. args: Prisma.IdeaCountArgs<ExtArgs>
  1046. result: $Utils.Optional<IdeaCountAggregateOutputType> | number
  1047. }
  1048. }
  1049. }
  1050. Post: {
  1051. payload: Prisma.$PostPayload<ExtArgs>
  1052. fields: Prisma.PostFieldRefs
  1053. operations: {
  1054. findUnique: {
  1055. args: Prisma.PostFindUniqueArgs<ExtArgs>
  1056. result: $Utils.PayloadToResult<Prisma.$PostPayload> | null
  1057. }
  1058. findUniqueOrThrow: {
  1059. args: Prisma.PostFindUniqueOrThrowArgs<ExtArgs>
  1060. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1061. }
  1062. findFirst: {
  1063. args: Prisma.PostFindFirstArgs<ExtArgs>
  1064. result: $Utils.PayloadToResult<Prisma.$PostPayload> | null
  1065. }
  1066. findFirstOrThrow: {
  1067. args: Prisma.PostFindFirstOrThrowArgs<ExtArgs>
  1068. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1069. }
  1070. findMany: {
  1071. args: Prisma.PostFindManyArgs<ExtArgs>
  1072. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1073. }
  1074. create: {
  1075. args: Prisma.PostCreateArgs<ExtArgs>
  1076. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1077. }
  1078. createMany: {
  1079. args: Prisma.PostCreateManyArgs<ExtArgs>
  1080. result: BatchPayload
  1081. }
  1082. createManyAndReturn: {
  1083. args: Prisma.PostCreateManyAndReturnArgs<ExtArgs>
  1084. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1085. }
  1086. delete: {
  1087. args: Prisma.PostDeleteArgs<ExtArgs>
  1088. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1089. }
  1090. update: {
  1091. args: Prisma.PostUpdateArgs<ExtArgs>
  1092. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1093. }
  1094. deleteMany: {
  1095. args: Prisma.PostDeleteManyArgs<ExtArgs>
  1096. result: BatchPayload
  1097. }
  1098. updateMany: {
  1099. args: Prisma.PostUpdateManyArgs<ExtArgs>
  1100. result: BatchPayload
  1101. }
  1102. updateManyAndReturn: {
  1103. args: Prisma.PostUpdateManyAndReturnArgs<ExtArgs>
  1104. result: $Utils.PayloadToResult<Prisma.$PostPayload>[]
  1105. }
  1106. upsert: {
  1107. args: Prisma.PostUpsertArgs<ExtArgs>
  1108. result: $Utils.PayloadToResult<Prisma.$PostPayload>
  1109. }
  1110. aggregate: {
  1111. args: Prisma.PostAggregateArgs<ExtArgs>
  1112. result: $Utils.Optional<AggregatePost>
  1113. }
  1114. groupBy: {
  1115. args: Prisma.PostGroupByArgs<ExtArgs>
  1116. result: $Utils.Optional<PostGroupByOutputType>[]
  1117. }
  1118. count: {
  1119. args: Prisma.PostCountArgs<ExtArgs>
  1120. result: $Utils.Optional<PostCountAggregateOutputType> | number
  1121. }
  1122. }
  1123. }
  1124. Account: {
  1125. payload: Prisma.$AccountPayload<ExtArgs>
  1126. fields: Prisma.AccountFieldRefs
  1127. operations: {
  1128. findUnique: {
  1129. args: Prisma.AccountFindUniqueArgs<ExtArgs>
  1130. result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
  1131. }
  1132. findUniqueOrThrow: {
  1133. args: Prisma.AccountFindUniqueOrThrowArgs<ExtArgs>
  1134. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1135. }
  1136. findFirst: {
  1137. args: Prisma.AccountFindFirstArgs<ExtArgs>
  1138. result: $Utils.PayloadToResult<Prisma.$AccountPayload> | null
  1139. }
  1140. findFirstOrThrow: {
  1141. args: Prisma.AccountFindFirstOrThrowArgs<ExtArgs>
  1142. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1143. }
  1144. findMany: {
  1145. args: Prisma.AccountFindManyArgs<ExtArgs>
  1146. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1147. }
  1148. create: {
  1149. args: Prisma.AccountCreateArgs<ExtArgs>
  1150. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1151. }
  1152. createMany: {
  1153. args: Prisma.AccountCreateManyArgs<ExtArgs>
  1154. result: BatchPayload
  1155. }
  1156. createManyAndReturn: {
  1157. args: Prisma.AccountCreateManyAndReturnArgs<ExtArgs>
  1158. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1159. }
  1160. delete: {
  1161. args: Prisma.AccountDeleteArgs<ExtArgs>
  1162. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1163. }
  1164. update: {
  1165. args: Prisma.AccountUpdateArgs<ExtArgs>
  1166. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1167. }
  1168. deleteMany: {
  1169. args: Prisma.AccountDeleteManyArgs<ExtArgs>
  1170. result: BatchPayload
  1171. }
  1172. updateMany: {
  1173. args: Prisma.AccountUpdateManyArgs<ExtArgs>
  1174. result: BatchPayload
  1175. }
  1176. updateManyAndReturn: {
  1177. args: Prisma.AccountUpdateManyAndReturnArgs<ExtArgs>
  1178. result: $Utils.PayloadToResult<Prisma.$AccountPayload>[]
  1179. }
  1180. upsert: {
  1181. args: Prisma.AccountUpsertArgs<ExtArgs>
  1182. result: $Utils.PayloadToResult<Prisma.$AccountPayload>
  1183. }
  1184. aggregate: {
  1185. args: Prisma.AccountAggregateArgs<ExtArgs>
  1186. result: $Utils.Optional<AggregateAccount>
  1187. }
  1188. groupBy: {
  1189. args: Prisma.AccountGroupByArgs<ExtArgs>
  1190. result: $Utils.Optional<AccountGroupByOutputType>[]
  1191. }
  1192. count: {
  1193. args: Prisma.AccountCountArgs<ExtArgs>
  1194. result: $Utils.Optional<AccountCountAggregateOutputType> | number
  1195. }
  1196. }
  1197. }
  1198. Session: {
  1199. payload: Prisma.$SessionPayload<ExtArgs>
  1200. fields: Prisma.SessionFieldRefs
  1201. operations: {
  1202. findUnique: {
  1203. args: Prisma.SessionFindUniqueArgs<ExtArgs>
  1204. result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
  1205. }
  1206. findUniqueOrThrow: {
  1207. args: Prisma.SessionFindUniqueOrThrowArgs<ExtArgs>
  1208. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1209. }
  1210. findFirst: {
  1211. args: Prisma.SessionFindFirstArgs<ExtArgs>
  1212. result: $Utils.PayloadToResult<Prisma.$SessionPayload> | null
  1213. }
  1214. findFirstOrThrow: {
  1215. args: Prisma.SessionFindFirstOrThrowArgs<ExtArgs>
  1216. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1217. }
  1218. findMany: {
  1219. args: Prisma.SessionFindManyArgs<ExtArgs>
  1220. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1221. }
  1222. create: {
  1223. args: Prisma.SessionCreateArgs<ExtArgs>
  1224. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1225. }
  1226. createMany: {
  1227. args: Prisma.SessionCreateManyArgs<ExtArgs>
  1228. result: BatchPayload
  1229. }
  1230. createManyAndReturn: {
  1231. args: Prisma.SessionCreateManyAndReturnArgs<ExtArgs>
  1232. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1233. }
  1234. delete: {
  1235. args: Prisma.SessionDeleteArgs<ExtArgs>
  1236. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1237. }
  1238. update: {
  1239. args: Prisma.SessionUpdateArgs<ExtArgs>
  1240. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1241. }
  1242. deleteMany: {
  1243. args: Prisma.SessionDeleteManyArgs<ExtArgs>
  1244. result: BatchPayload
  1245. }
  1246. updateMany: {
  1247. args: Prisma.SessionUpdateManyArgs<ExtArgs>
  1248. result: BatchPayload
  1249. }
  1250. updateManyAndReturn: {
  1251. args: Prisma.SessionUpdateManyAndReturnArgs<ExtArgs>
  1252. result: $Utils.PayloadToResult<Prisma.$SessionPayload>[]
  1253. }
  1254. upsert: {
  1255. args: Prisma.SessionUpsertArgs<ExtArgs>
  1256. result: $Utils.PayloadToResult<Prisma.$SessionPayload>
  1257. }
  1258. aggregate: {
  1259. args: Prisma.SessionAggregateArgs<ExtArgs>
  1260. result: $Utils.Optional<AggregateSession>
  1261. }
  1262. groupBy: {
  1263. args: Prisma.SessionGroupByArgs<ExtArgs>
  1264. result: $Utils.Optional<SessionGroupByOutputType>[]
  1265. }
  1266. count: {
  1267. args: Prisma.SessionCountArgs<ExtArgs>
  1268. result: $Utils.Optional<SessionCountAggregateOutputType> | number
  1269. }
  1270. }
  1271. }
  1272. User: {
  1273. payload: Prisma.$UserPayload<ExtArgs>
  1274. fields: Prisma.UserFieldRefs
  1275. operations: {
  1276. findUnique: {
  1277. args: Prisma.UserFindUniqueArgs<ExtArgs>
  1278. result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
  1279. }
  1280. findUniqueOrThrow: {
  1281. args: Prisma.UserFindUniqueOrThrowArgs<ExtArgs>
  1282. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1283. }
  1284. findFirst: {
  1285. args: Prisma.UserFindFirstArgs<ExtArgs>
  1286. result: $Utils.PayloadToResult<Prisma.$UserPayload> | null
  1287. }
  1288. findFirstOrThrow: {
  1289. args: Prisma.UserFindFirstOrThrowArgs<ExtArgs>
  1290. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1291. }
  1292. findMany: {
  1293. args: Prisma.UserFindManyArgs<ExtArgs>
  1294. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1295. }
  1296. create: {
  1297. args: Prisma.UserCreateArgs<ExtArgs>
  1298. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1299. }
  1300. createMany: {
  1301. args: Prisma.UserCreateManyArgs<ExtArgs>
  1302. result: BatchPayload
  1303. }
  1304. createManyAndReturn: {
  1305. args: Prisma.UserCreateManyAndReturnArgs<ExtArgs>
  1306. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1307. }
  1308. delete: {
  1309. args: Prisma.UserDeleteArgs<ExtArgs>
  1310. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1311. }
  1312. update: {
  1313. args: Prisma.UserUpdateArgs<ExtArgs>
  1314. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1315. }
  1316. deleteMany: {
  1317. args: Prisma.UserDeleteManyArgs<ExtArgs>
  1318. result: BatchPayload
  1319. }
  1320. updateMany: {
  1321. args: Prisma.UserUpdateManyArgs<ExtArgs>
  1322. result: BatchPayload
  1323. }
  1324. updateManyAndReturn: {
  1325. args: Prisma.UserUpdateManyAndReturnArgs<ExtArgs>
  1326. result: $Utils.PayloadToResult<Prisma.$UserPayload>[]
  1327. }
  1328. upsert: {
  1329. args: Prisma.UserUpsertArgs<ExtArgs>
  1330. result: $Utils.PayloadToResult<Prisma.$UserPayload>
  1331. }
  1332. aggregate: {
  1333. args: Prisma.UserAggregateArgs<ExtArgs>
  1334. result: $Utils.Optional<AggregateUser>
  1335. }
  1336. groupBy: {
  1337. args: Prisma.UserGroupByArgs<ExtArgs>
  1338. result: $Utils.Optional<UserGroupByOutputType>[]
  1339. }
  1340. count: {
  1341. args: Prisma.UserCountArgs<ExtArgs>
  1342. result: $Utils.Optional<UserCountAggregateOutputType> | number
  1343. }
  1344. }
  1345. }
  1346. VerificationToken: {
  1347. payload: Prisma.$VerificationTokenPayload<ExtArgs>
  1348. fields: Prisma.VerificationTokenFieldRefs
  1349. operations: {
  1350. findUnique: {
  1351. args: Prisma.VerificationTokenFindUniqueArgs<ExtArgs>
  1352. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
  1353. }
  1354. findUniqueOrThrow: {
  1355. args: Prisma.VerificationTokenFindUniqueOrThrowArgs<ExtArgs>
  1356. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1357. }
  1358. findFirst: {
  1359. args: Prisma.VerificationTokenFindFirstArgs<ExtArgs>
  1360. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload> | null
  1361. }
  1362. findFirstOrThrow: {
  1363. args: Prisma.VerificationTokenFindFirstOrThrowArgs<ExtArgs>
  1364. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1365. }
  1366. findMany: {
  1367. args: Prisma.VerificationTokenFindManyArgs<ExtArgs>
  1368. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1369. }
  1370. create: {
  1371. args: Prisma.VerificationTokenCreateArgs<ExtArgs>
  1372. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1373. }
  1374. createMany: {
  1375. args: Prisma.VerificationTokenCreateManyArgs<ExtArgs>
  1376. result: BatchPayload
  1377. }
  1378. createManyAndReturn: {
  1379. args: Prisma.VerificationTokenCreateManyAndReturnArgs<ExtArgs>
  1380. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1381. }
  1382. delete: {
  1383. args: Prisma.VerificationTokenDeleteArgs<ExtArgs>
  1384. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1385. }
  1386. update: {
  1387. args: Prisma.VerificationTokenUpdateArgs<ExtArgs>
  1388. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1389. }
  1390. deleteMany: {
  1391. args: Prisma.VerificationTokenDeleteManyArgs<ExtArgs>
  1392. result: BatchPayload
  1393. }
  1394. updateMany: {
  1395. args: Prisma.VerificationTokenUpdateManyArgs<ExtArgs>
  1396. result: BatchPayload
  1397. }
  1398. updateManyAndReturn: {
  1399. args: Prisma.VerificationTokenUpdateManyAndReturnArgs<ExtArgs>
  1400. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>[]
  1401. }
  1402. upsert: {
  1403. args: Prisma.VerificationTokenUpsertArgs<ExtArgs>
  1404. result: $Utils.PayloadToResult<Prisma.$VerificationTokenPayload>
  1405. }
  1406. aggregate: {
  1407. args: Prisma.VerificationTokenAggregateArgs<ExtArgs>
  1408. result: $Utils.Optional<AggregateVerificationToken>
  1409. }
  1410. groupBy: {
  1411. args: Prisma.VerificationTokenGroupByArgs<ExtArgs>
  1412. result: $Utils.Optional<VerificationTokenGroupByOutputType>[]
  1413. }
  1414. count: {
  1415. args: Prisma.VerificationTokenCountArgs<ExtArgs>
  1416. result: $Utils.Optional<VerificationTokenCountAggregateOutputType> | number
  1417. }
  1418. }
  1419. }
  1420. IdeaAttachment: {
  1421. payload: Prisma.$IdeaAttachmentPayload<ExtArgs>
  1422. fields: Prisma.IdeaAttachmentFieldRefs
  1423. operations: {
  1424. findUnique: {
  1425. args: Prisma.IdeaAttachmentFindUniqueArgs<ExtArgs>
  1426. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload> | null
  1427. }
  1428. findUniqueOrThrow: {
  1429. args: Prisma.IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs>
  1430. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1431. }
  1432. findFirst: {
  1433. args: Prisma.IdeaAttachmentFindFirstArgs<ExtArgs>
  1434. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload> | null
  1435. }
  1436. findFirstOrThrow: {
  1437. args: Prisma.IdeaAttachmentFindFirstOrThrowArgs<ExtArgs>
  1438. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1439. }
  1440. findMany: {
  1441. args: Prisma.IdeaAttachmentFindManyArgs<ExtArgs>
  1442. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1443. }
  1444. create: {
  1445. args: Prisma.IdeaAttachmentCreateArgs<ExtArgs>
  1446. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1447. }
  1448. createMany: {
  1449. args: Prisma.IdeaAttachmentCreateManyArgs<ExtArgs>
  1450. result: BatchPayload
  1451. }
  1452. createManyAndReturn: {
  1453. args: Prisma.IdeaAttachmentCreateManyAndReturnArgs<ExtArgs>
  1454. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1455. }
  1456. delete: {
  1457. args: Prisma.IdeaAttachmentDeleteArgs<ExtArgs>
  1458. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1459. }
  1460. update: {
  1461. args: Prisma.IdeaAttachmentUpdateArgs<ExtArgs>
  1462. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1463. }
  1464. deleteMany: {
  1465. args: Prisma.IdeaAttachmentDeleteManyArgs<ExtArgs>
  1466. result: BatchPayload
  1467. }
  1468. updateMany: {
  1469. args: Prisma.IdeaAttachmentUpdateManyArgs<ExtArgs>
  1470. result: BatchPayload
  1471. }
  1472. updateManyAndReturn: {
  1473. args: Prisma.IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs>
  1474. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>[]
  1475. }
  1476. upsert: {
  1477. args: Prisma.IdeaAttachmentUpsertArgs<ExtArgs>
  1478. result: $Utils.PayloadToResult<Prisma.$IdeaAttachmentPayload>
  1479. }
  1480. aggregate: {
  1481. args: Prisma.IdeaAttachmentAggregateArgs<ExtArgs>
  1482. result: $Utils.Optional<AggregateIdeaAttachment>
  1483. }
  1484. groupBy: {
  1485. args: Prisma.IdeaAttachmentGroupByArgs<ExtArgs>
  1486. result: $Utils.Optional<IdeaAttachmentGroupByOutputType>[]
  1487. }
  1488. count: {
  1489. args: Prisma.IdeaAttachmentCountArgs<ExtArgs>
  1490. result: $Utils.Optional<IdeaAttachmentCountAggregateOutputType> | number
  1491. }
  1492. }
  1493. }
  1494. QualificationQuestion: {
  1495. payload: Prisma.$QualificationQuestionPayload<ExtArgs>
  1496. fields: Prisma.QualificationQuestionFieldRefs
  1497. operations: {
  1498. findUnique: {
  1499. args: Prisma.QualificationQuestionFindUniqueArgs<ExtArgs>
  1500. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload> | null
  1501. }
  1502. findUniqueOrThrow: {
  1503. args: Prisma.QualificationQuestionFindUniqueOrThrowArgs<ExtArgs>
  1504. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1505. }
  1506. findFirst: {
  1507. args: Prisma.QualificationQuestionFindFirstArgs<ExtArgs>
  1508. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload> | null
  1509. }
  1510. findFirstOrThrow: {
  1511. args: Prisma.QualificationQuestionFindFirstOrThrowArgs<ExtArgs>
  1512. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1513. }
  1514. findMany: {
  1515. args: Prisma.QualificationQuestionFindManyArgs<ExtArgs>
  1516. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1517. }
  1518. create: {
  1519. args: Prisma.QualificationQuestionCreateArgs<ExtArgs>
  1520. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1521. }
  1522. createMany: {
  1523. args: Prisma.QualificationQuestionCreateManyArgs<ExtArgs>
  1524. result: BatchPayload
  1525. }
  1526. createManyAndReturn: {
  1527. args: Prisma.QualificationQuestionCreateManyAndReturnArgs<ExtArgs>
  1528. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1529. }
  1530. delete: {
  1531. args: Prisma.QualificationQuestionDeleteArgs<ExtArgs>
  1532. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1533. }
  1534. update: {
  1535. args: Prisma.QualificationQuestionUpdateArgs<ExtArgs>
  1536. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1537. }
  1538. deleteMany: {
  1539. args: Prisma.QualificationQuestionDeleteManyArgs<ExtArgs>
  1540. result: BatchPayload
  1541. }
  1542. updateMany: {
  1543. args: Prisma.QualificationQuestionUpdateManyArgs<ExtArgs>
  1544. result: BatchPayload
  1545. }
  1546. updateManyAndReturn: {
  1547. args: Prisma.QualificationQuestionUpdateManyAndReturnArgs<ExtArgs>
  1548. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>[]
  1549. }
  1550. upsert: {
  1551. args: Prisma.QualificationQuestionUpsertArgs<ExtArgs>
  1552. result: $Utils.PayloadToResult<Prisma.$QualificationQuestionPayload>
  1553. }
  1554. aggregate: {
  1555. args: Prisma.QualificationQuestionAggregateArgs<ExtArgs>
  1556. result: $Utils.Optional<AggregateQualificationQuestion>
  1557. }
  1558. groupBy: {
  1559. args: Prisma.QualificationQuestionGroupByArgs<ExtArgs>
  1560. result: $Utils.Optional<QualificationQuestionGroupByOutputType>[]
  1561. }
  1562. count: {
  1563. args: Prisma.QualificationQuestionCountArgs<ExtArgs>
  1564. result: $Utils.Optional<QualificationQuestionCountAggregateOutputType> | number
  1565. }
  1566. }
  1567. }
  1568. LibraryCase: {
  1569. payload: Prisma.$LibraryCasePayload<ExtArgs>
  1570. fields: Prisma.LibraryCaseFieldRefs
  1571. operations: {
  1572. findUnique: {
  1573. args: Prisma.LibraryCaseFindUniqueArgs<ExtArgs>
  1574. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload> | null
  1575. }
  1576. findUniqueOrThrow: {
  1577. args: Prisma.LibraryCaseFindUniqueOrThrowArgs<ExtArgs>
  1578. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1579. }
  1580. findFirst: {
  1581. args: Prisma.LibraryCaseFindFirstArgs<ExtArgs>
  1582. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload> | null
  1583. }
  1584. findFirstOrThrow: {
  1585. args: Prisma.LibraryCaseFindFirstOrThrowArgs<ExtArgs>
  1586. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1587. }
  1588. findMany: {
  1589. args: Prisma.LibraryCaseFindManyArgs<ExtArgs>
  1590. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1591. }
  1592. create: {
  1593. args: Prisma.LibraryCaseCreateArgs<ExtArgs>
  1594. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1595. }
  1596. createMany: {
  1597. args: Prisma.LibraryCaseCreateManyArgs<ExtArgs>
  1598. result: BatchPayload
  1599. }
  1600. createManyAndReturn: {
  1601. args: Prisma.LibraryCaseCreateManyAndReturnArgs<ExtArgs>
  1602. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1603. }
  1604. delete: {
  1605. args: Prisma.LibraryCaseDeleteArgs<ExtArgs>
  1606. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1607. }
  1608. update: {
  1609. args: Prisma.LibraryCaseUpdateArgs<ExtArgs>
  1610. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1611. }
  1612. deleteMany: {
  1613. args: Prisma.LibraryCaseDeleteManyArgs<ExtArgs>
  1614. result: BatchPayload
  1615. }
  1616. updateMany: {
  1617. args: Prisma.LibraryCaseUpdateManyArgs<ExtArgs>
  1618. result: BatchPayload
  1619. }
  1620. updateManyAndReturn: {
  1621. args: Prisma.LibraryCaseUpdateManyAndReturnArgs<ExtArgs>
  1622. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>[]
  1623. }
  1624. upsert: {
  1625. args: Prisma.LibraryCaseUpsertArgs<ExtArgs>
  1626. result: $Utils.PayloadToResult<Prisma.$LibraryCasePayload>
  1627. }
  1628. aggregate: {
  1629. args: Prisma.LibraryCaseAggregateArgs<ExtArgs>
  1630. result: $Utils.Optional<AggregateLibraryCase>
  1631. }
  1632. groupBy: {
  1633. args: Prisma.LibraryCaseGroupByArgs<ExtArgs>
  1634. result: $Utils.Optional<LibraryCaseGroupByOutputType>[]
  1635. }
  1636. count: {
  1637. args: Prisma.LibraryCaseCountArgs<ExtArgs>
  1638. result: $Utils.Optional<LibraryCaseCountAggregateOutputType> | number
  1639. }
  1640. }
  1641. }
  1642. AppFeedback: {
  1643. payload: Prisma.$AppFeedbackPayload<ExtArgs>
  1644. fields: Prisma.AppFeedbackFieldRefs
  1645. operations: {
  1646. findUnique: {
  1647. args: Prisma.AppFeedbackFindUniqueArgs<ExtArgs>
  1648. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload> | null
  1649. }
  1650. findUniqueOrThrow: {
  1651. args: Prisma.AppFeedbackFindUniqueOrThrowArgs<ExtArgs>
  1652. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>
  1653. }
  1654. findFirst: {
  1655. args: Prisma.AppFeedbackFindFirstArgs<ExtArgs>
  1656. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload> | null
  1657. }
  1658. findFirstOrThrow: {
  1659. args: Prisma.AppFeedbackFindFirstOrThrowArgs<ExtArgs>
  1660. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>
  1661. }
  1662. findMany: {
  1663. args: Prisma.AppFeedbackFindManyArgs<ExtArgs>
  1664. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>[]
  1665. }
  1666. create: {
  1667. args: Prisma.AppFeedbackCreateArgs<ExtArgs>
  1668. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>
  1669. }
  1670. createMany: {
  1671. args: Prisma.AppFeedbackCreateManyArgs<ExtArgs>
  1672. result: BatchPayload
  1673. }
  1674. createManyAndReturn: {
  1675. args: Prisma.AppFeedbackCreateManyAndReturnArgs<ExtArgs>
  1676. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>[]
  1677. }
  1678. delete: {
  1679. args: Prisma.AppFeedbackDeleteArgs<ExtArgs>
  1680. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>
  1681. }
  1682. update: {
  1683. args: Prisma.AppFeedbackUpdateArgs<ExtArgs>
  1684. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>
  1685. }
  1686. deleteMany: {
  1687. args: Prisma.AppFeedbackDeleteManyArgs<ExtArgs>
  1688. result: BatchPayload
  1689. }
  1690. updateMany: {
  1691. args: Prisma.AppFeedbackUpdateManyArgs<ExtArgs>
  1692. result: BatchPayload
  1693. }
  1694. updateManyAndReturn: {
  1695. args: Prisma.AppFeedbackUpdateManyAndReturnArgs<ExtArgs>
  1696. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>[]
  1697. }
  1698. upsert: {
  1699. args: Prisma.AppFeedbackUpsertArgs<ExtArgs>
  1700. result: $Utils.PayloadToResult<Prisma.$AppFeedbackPayload>
  1701. }
  1702. aggregate: {
  1703. args: Prisma.AppFeedbackAggregateArgs<ExtArgs>
  1704. result: $Utils.Optional<AggregateAppFeedback>
  1705. }
  1706. groupBy: {
  1707. args: Prisma.AppFeedbackGroupByArgs<ExtArgs>
  1708. result: $Utils.Optional<AppFeedbackGroupByOutputType>[]
  1709. }
  1710. count: {
  1711. args: Prisma.AppFeedbackCountArgs<ExtArgs>
  1712. result: $Utils.Optional<AppFeedbackCountAggregateOutputType> | number
  1713. }
  1714. }
  1715. }
  1716. ShareLink: {
  1717. payload: Prisma.$ShareLinkPayload<ExtArgs>
  1718. fields: Prisma.ShareLinkFieldRefs
  1719. operations: {
  1720. findUnique: {
  1721. args: Prisma.ShareLinkFindUniqueArgs<ExtArgs>
  1722. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload> | null
  1723. }
  1724. findUniqueOrThrow: {
  1725. args: Prisma.ShareLinkFindUniqueOrThrowArgs<ExtArgs>
  1726. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1727. }
  1728. findFirst: {
  1729. args: Prisma.ShareLinkFindFirstArgs<ExtArgs>
  1730. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload> | null
  1731. }
  1732. findFirstOrThrow: {
  1733. args: Prisma.ShareLinkFindFirstOrThrowArgs<ExtArgs>
  1734. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1735. }
  1736. findMany: {
  1737. args: Prisma.ShareLinkFindManyArgs<ExtArgs>
  1738. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1739. }
  1740. create: {
  1741. args: Prisma.ShareLinkCreateArgs<ExtArgs>
  1742. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1743. }
  1744. createMany: {
  1745. args: Prisma.ShareLinkCreateManyArgs<ExtArgs>
  1746. result: BatchPayload
  1747. }
  1748. createManyAndReturn: {
  1749. args: Prisma.ShareLinkCreateManyAndReturnArgs<ExtArgs>
  1750. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1751. }
  1752. delete: {
  1753. args: Prisma.ShareLinkDeleteArgs<ExtArgs>
  1754. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1755. }
  1756. update: {
  1757. args: Prisma.ShareLinkUpdateArgs<ExtArgs>
  1758. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1759. }
  1760. deleteMany: {
  1761. args: Prisma.ShareLinkDeleteManyArgs<ExtArgs>
  1762. result: BatchPayload
  1763. }
  1764. updateMany: {
  1765. args: Prisma.ShareLinkUpdateManyArgs<ExtArgs>
  1766. result: BatchPayload
  1767. }
  1768. updateManyAndReturn: {
  1769. args: Prisma.ShareLinkUpdateManyAndReturnArgs<ExtArgs>
  1770. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>[]
  1771. }
  1772. upsert: {
  1773. args: Prisma.ShareLinkUpsertArgs<ExtArgs>
  1774. result: $Utils.PayloadToResult<Prisma.$ShareLinkPayload>
  1775. }
  1776. aggregate: {
  1777. args: Prisma.ShareLinkAggregateArgs<ExtArgs>
  1778. result: $Utils.Optional<AggregateShareLink>
  1779. }
  1780. groupBy: {
  1781. args: Prisma.ShareLinkGroupByArgs<ExtArgs>
  1782. result: $Utils.Optional<ShareLinkGroupByOutputType>[]
  1783. }
  1784. count: {
  1785. args: Prisma.ShareLinkCountArgs<ExtArgs>
  1786. result: $Utils.Optional<ShareLinkCountAggregateOutputType> | number
  1787. }
  1788. }
  1789. }
  1790. }
  1791. } & {
  1792. other: {
  1793. payload: any
  1794. operations: {
  1795. $executeRaw: {
  1796. args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
  1797. result: any
  1798. }
  1799. $executeRawUnsafe: {
  1800. args: [query: string, ...values: any[]],
  1801. result: any
  1802. }
  1803. $queryRaw: {
  1804. args: [query: TemplateStringsArray | Prisma.Sql, ...values: any[]],
  1805. result: any
  1806. }
  1807. $queryRawUnsafe: {
  1808. args: [query: string, ...values: any[]],
  1809. result: any
  1810. }
  1811. }
  1812. }
  1813. }
  1814. export const defineExtension: $Extensions.ExtendsHook<"define", Prisma.TypeMapCb, $Extensions.DefaultArgs>
  1815. export type DefaultPrismaClient = PrismaClient
  1816. export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
  1817. export interface PrismaClientOptions {
  1818. /**
  1819. * Overwrites the datasource url from your schema.prisma file
  1820. */
  1821. datasources?: Datasources
  1822. /**
  1823. * Overwrites the datasource url from your schema.prisma file
  1824. */
  1825. datasourceUrl?: string
  1826. /**
  1827. * @default "colorless"
  1828. */
  1829. errorFormat?: ErrorFormat
  1830. /**
  1831. * @example
  1832. * ```
  1833. * // Shorthand for `emit: 'stdout'`
  1834. * log: ['query', 'info', 'warn', 'error']
  1835. *
  1836. * // Emit as events only
  1837. * log: [
  1838. * { emit: 'event', level: 'query' },
  1839. * { emit: 'event', level: 'info' },
  1840. * { emit: 'event', level: 'warn' }
  1841. * { emit: 'event', level: 'error' }
  1842. * ]
  1843. *
  1844. * / Emit as events and log to stdout
  1845. * og: [
  1846. * { emit: 'stdout', level: 'query' },
  1847. * { emit: 'stdout', level: 'info' },
  1848. * { emit: 'stdout', level: 'warn' }
  1849. * { emit: 'stdout', level: 'error' }
  1850. *
  1851. * ```
  1852. * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
  1853. */
  1854. log?: (LogLevel | LogDefinition)[]
  1855. /**
  1856. * The default values for transactionOptions
  1857. * maxWait ?= 2000
  1858. * timeout ?= 5000
  1859. */
  1860. transactionOptions?: {
  1861. maxWait?: number
  1862. timeout?: number
  1863. isolationLevel?: Prisma.TransactionIsolationLevel
  1864. }
  1865. /**
  1866. * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`
  1867. */
  1868. adapter?: runtime.SqlDriverAdapterFactory | null
  1869. /**
  1870. * Global configuration for omitting model fields by default.
  1871. *
  1872. * @example
  1873. * ```
  1874. * const prisma = new PrismaClient({
  1875. * omit: {
  1876. * user: {
  1877. * password: true
  1878. * }
  1879. * }
  1880. * })
  1881. * ```
  1882. */
  1883. omit?: Prisma.GlobalOmitConfig
  1884. }
  1885. export type GlobalOmitConfig = {
  1886. workspace?: WorkspaceOmit
  1887. manualRelanceLog?: ManualRelanceLogOmit
  1888. contributor?: ContributorOmit
  1889. idea?: IdeaOmit
  1890. post?: PostOmit
  1891. account?: AccountOmit
  1892. session?: SessionOmit
  1893. user?: UserOmit
  1894. verificationToken?: VerificationTokenOmit
  1895. ideaAttachment?: IdeaAttachmentOmit
  1896. qualificationQuestion?: QualificationQuestionOmit
  1897. libraryCase?: LibraryCaseOmit
  1898. appFeedback?: AppFeedbackOmit
  1899. shareLink?: ShareLinkOmit
  1900. }
  1901. /* Types for Logging */
  1902. export type LogLevel = 'info' | 'query' | 'warn' | 'error'
  1903. export type LogDefinition = {
  1904. level: LogLevel
  1905. emit: 'stdout' | 'event'
  1906. }
  1907. export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
  1908. export type GetLogType<T> = CheckIsLogLevel<
  1909. T extends LogDefinition ? T['level'] : T
  1910. >;
  1911. export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
  1912. ? GetLogType<T[number]>
  1913. : never;
  1914. export type QueryEvent = {
  1915. timestamp: Date
  1916. query: string
  1917. params: string
  1918. duration: number
  1919. target: string
  1920. }
  1921. export type LogEvent = {
  1922. timestamp: Date
  1923. message: string
  1924. target: string
  1925. }
  1926. /* End Types for Logging */
  1927. export type PrismaAction =
  1928. | 'findUnique'
  1929. | 'findUniqueOrThrow'
  1930. | 'findMany'
  1931. | 'findFirst'
  1932. | 'findFirstOrThrow'
  1933. | 'create'
  1934. | 'createMany'
  1935. | 'createManyAndReturn'
  1936. | 'update'
  1937. | 'updateMany'
  1938. | 'updateManyAndReturn'
  1939. | 'upsert'
  1940. | 'delete'
  1941. | 'deleteMany'
  1942. | 'executeRaw'
  1943. | 'queryRaw'
  1944. | 'aggregate'
  1945. | 'count'
  1946. | 'runCommandRaw'
  1947. | 'findRaw'
  1948. | 'groupBy'
  1949. // tested in getLogLevel.test.ts
  1950. export function getLogLevel(log: Array<LogLevel | LogDefinition>): LogLevel | undefined;
  1951. /**
  1952. * `PrismaClient` proxy available in interactive transactions.
  1953. */
  1954. export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClientDenyList>
  1955. export type Datasource = {
  1956. url?: string
  1957. }
  1958. /**
  1959. * Count Types
  1960. */
  1961. /**
  1962. * Count Type WorkspaceCountOutputType
  1963. */
  1964. export type WorkspaceCountOutputType = {
  1965. feedbacks: number
  1966. contributors: number
  1967. ideas: number
  1968. manualRelanceLogs: number
  1969. }
  1970. export type WorkspaceCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1971. feedbacks?: boolean | WorkspaceCountOutputTypeCountFeedbacksArgs
  1972. contributors?: boolean | WorkspaceCountOutputTypeCountContributorsArgs
  1973. ideas?: boolean | WorkspaceCountOutputTypeCountIdeasArgs
  1974. manualRelanceLogs?: boolean | WorkspaceCountOutputTypeCountManualRelanceLogsArgs
  1975. }
  1976. // Custom InputTypes
  1977. /**
  1978. * WorkspaceCountOutputType without action
  1979. */
  1980. export type WorkspaceCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1981. /**
  1982. * Select specific fields to fetch from the WorkspaceCountOutputType
  1983. */
  1984. select?: WorkspaceCountOutputTypeSelect<ExtArgs> | null
  1985. }
  1986. /**
  1987. * WorkspaceCountOutputType without action
  1988. */
  1989. export type WorkspaceCountOutputTypeCountFeedbacksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1990. where?: AppFeedbackWhereInput
  1991. }
  1992. /**
  1993. * WorkspaceCountOutputType without action
  1994. */
  1995. export type WorkspaceCountOutputTypeCountContributorsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  1996. where?: ContributorWhereInput
  1997. }
  1998. /**
  1999. * WorkspaceCountOutputType without action
  2000. */
  2001. export type WorkspaceCountOutputTypeCountIdeasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2002. where?: IdeaWhereInput
  2003. }
  2004. /**
  2005. * WorkspaceCountOutputType without action
  2006. */
  2007. export type WorkspaceCountOutputTypeCountManualRelanceLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2008. where?: ManualRelanceLogWhereInput
  2009. }
  2010. /**
  2011. * Count Type ContributorCountOutputType
  2012. */
  2013. export type ContributorCountOutputType = {
  2014. ideas: number
  2015. }
  2016. export type ContributorCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2017. ideas?: boolean | ContributorCountOutputTypeCountIdeasArgs
  2018. }
  2019. // Custom InputTypes
  2020. /**
  2021. * ContributorCountOutputType without action
  2022. */
  2023. export type ContributorCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2024. /**
  2025. * Select specific fields to fetch from the ContributorCountOutputType
  2026. */
  2027. select?: ContributorCountOutputTypeSelect<ExtArgs> | null
  2028. }
  2029. /**
  2030. * ContributorCountOutputType without action
  2031. */
  2032. export type ContributorCountOutputTypeCountIdeasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2033. where?: IdeaWhereInput
  2034. }
  2035. /**
  2036. * Count Type IdeaCountOutputType
  2037. */
  2038. export type IdeaCountOutputType = {
  2039. attachments: number
  2040. qualificationQuestions: number
  2041. }
  2042. export type IdeaCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2043. attachments?: boolean | IdeaCountOutputTypeCountAttachmentsArgs
  2044. qualificationQuestions?: boolean | IdeaCountOutputTypeCountQualificationQuestionsArgs
  2045. }
  2046. // Custom InputTypes
  2047. /**
  2048. * IdeaCountOutputType without action
  2049. */
  2050. export type IdeaCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2051. /**
  2052. * Select specific fields to fetch from the IdeaCountOutputType
  2053. */
  2054. select?: IdeaCountOutputTypeSelect<ExtArgs> | null
  2055. }
  2056. /**
  2057. * IdeaCountOutputType without action
  2058. */
  2059. export type IdeaCountOutputTypeCountAttachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2060. where?: IdeaAttachmentWhereInput
  2061. }
  2062. /**
  2063. * IdeaCountOutputType without action
  2064. */
  2065. export type IdeaCountOutputTypeCountQualificationQuestionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2066. where?: QualificationQuestionWhereInput
  2067. }
  2068. /**
  2069. * Count Type UserCountOutputType
  2070. */
  2071. export type UserCountOutputType = {
  2072. accounts: number
  2073. sessions: number
  2074. posts: number
  2075. feedbacks: number
  2076. }
  2077. export type UserCountOutputTypeSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2078. accounts?: boolean | UserCountOutputTypeCountAccountsArgs
  2079. sessions?: boolean | UserCountOutputTypeCountSessionsArgs
  2080. posts?: boolean | UserCountOutputTypeCountPostsArgs
  2081. feedbacks?: boolean | UserCountOutputTypeCountFeedbacksArgs
  2082. }
  2083. // Custom InputTypes
  2084. /**
  2085. * UserCountOutputType without action
  2086. */
  2087. export type UserCountOutputTypeDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2088. /**
  2089. * Select specific fields to fetch from the UserCountOutputType
  2090. */
  2091. select?: UserCountOutputTypeSelect<ExtArgs> | null
  2092. }
  2093. /**
  2094. * UserCountOutputType without action
  2095. */
  2096. export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2097. where?: AccountWhereInput
  2098. }
  2099. /**
  2100. * UserCountOutputType without action
  2101. */
  2102. export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2103. where?: SessionWhereInput
  2104. }
  2105. /**
  2106. * UserCountOutputType without action
  2107. */
  2108. export type UserCountOutputTypeCountPostsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2109. where?: PostWhereInput
  2110. }
  2111. /**
  2112. * UserCountOutputType without action
  2113. */
  2114. export type UserCountOutputTypeCountFeedbacksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2115. where?: AppFeedbackWhereInput
  2116. }
  2117. /**
  2118. * Models
  2119. */
  2120. /**
  2121. * Model Workspace
  2122. */
  2123. export type AggregateWorkspace = {
  2124. _count: WorkspaceCountAggregateOutputType | null
  2125. _avg: WorkspaceAvgAggregateOutputType | null
  2126. _sum: WorkspaceSumAggregateOutputType | null
  2127. _min: WorkspaceMinAggregateOutputType | null
  2128. _max: WorkspaceMaxAggregateOutputType | null
  2129. }
  2130. export type WorkspaceAvgAggregateOutputType = {
  2131. companySize: number | null
  2132. llmCallsThisMonth: number | null
  2133. exportsThisMonth: number | null
  2134. }
  2135. export type WorkspaceSumAggregateOutputType = {
  2136. companySize: number | null
  2137. llmCallsThisMonth: number | null
  2138. exportsThisMonth: number | null
  2139. }
  2140. export type WorkspaceMinAggregateOutputType = {
  2141. id: string | null
  2142. name: string | null
  2143. slug: string | null
  2144. sector: string | null
  2145. companySize: number | null
  2146. contactEmail: string | null
  2147. tier: $Enums.WorkspaceTier | null
  2148. llmCallsThisMonth: number | null
  2149. llmCallsResetAt: Date | null
  2150. autoRelanceEnabled: boolean | null
  2151. exportsThisMonth: number | null
  2152. exportsResetAt: Date | null
  2153. lastVisitedAt: Date | null
  2154. onboardingDismissed: boolean | null
  2155. proModeAvailable: boolean | null
  2156. createdAt: Date | null
  2157. updatedAt: Date | null
  2158. ownerId: string | null
  2159. }
  2160. export type WorkspaceMaxAggregateOutputType = {
  2161. id: string | null
  2162. name: string | null
  2163. slug: string | null
  2164. sector: string | null
  2165. companySize: number | null
  2166. contactEmail: string | null
  2167. tier: $Enums.WorkspaceTier | null
  2168. llmCallsThisMonth: number | null
  2169. llmCallsResetAt: Date | null
  2170. autoRelanceEnabled: boolean | null
  2171. exportsThisMonth: number | null
  2172. exportsResetAt: Date | null
  2173. lastVisitedAt: Date | null
  2174. onboardingDismissed: boolean | null
  2175. proModeAvailable: boolean | null
  2176. createdAt: Date | null
  2177. updatedAt: Date | null
  2178. ownerId: string | null
  2179. }
  2180. export type WorkspaceCountAggregateOutputType = {
  2181. id: number
  2182. name: number
  2183. slug: number
  2184. sector: number
  2185. companySize: number
  2186. contactEmail: number
  2187. tier: number
  2188. llmCallsThisMonth: number
  2189. llmCallsResetAt: number
  2190. autoRelanceEnabled: number
  2191. exportsThisMonth: number
  2192. exportsResetAt: number
  2193. lastVisitedAt: number
  2194. onboardingDismissed: number
  2195. proModeAvailable: number
  2196. createdAt: number
  2197. updatedAt: number
  2198. ownerId: number
  2199. _all: number
  2200. }
  2201. export type WorkspaceAvgAggregateInputType = {
  2202. companySize?: true
  2203. llmCallsThisMonth?: true
  2204. exportsThisMonth?: true
  2205. }
  2206. export type WorkspaceSumAggregateInputType = {
  2207. companySize?: true
  2208. llmCallsThisMonth?: true
  2209. exportsThisMonth?: true
  2210. }
  2211. export type WorkspaceMinAggregateInputType = {
  2212. id?: true
  2213. name?: true
  2214. slug?: true
  2215. sector?: true
  2216. companySize?: true
  2217. contactEmail?: true
  2218. tier?: true
  2219. llmCallsThisMonth?: true
  2220. llmCallsResetAt?: true
  2221. autoRelanceEnabled?: true
  2222. exportsThisMonth?: true
  2223. exportsResetAt?: true
  2224. lastVisitedAt?: true
  2225. onboardingDismissed?: true
  2226. proModeAvailable?: true
  2227. createdAt?: true
  2228. updatedAt?: true
  2229. ownerId?: true
  2230. }
  2231. export type WorkspaceMaxAggregateInputType = {
  2232. id?: true
  2233. name?: true
  2234. slug?: true
  2235. sector?: true
  2236. companySize?: true
  2237. contactEmail?: true
  2238. tier?: true
  2239. llmCallsThisMonth?: true
  2240. llmCallsResetAt?: true
  2241. autoRelanceEnabled?: true
  2242. exportsThisMonth?: true
  2243. exportsResetAt?: true
  2244. lastVisitedAt?: true
  2245. onboardingDismissed?: true
  2246. proModeAvailable?: true
  2247. createdAt?: true
  2248. updatedAt?: true
  2249. ownerId?: true
  2250. }
  2251. export type WorkspaceCountAggregateInputType = {
  2252. id?: true
  2253. name?: true
  2254. slug?: true
  2255. sector?: true
  2256. companySize?: true
  2257. contactEmail?: true
  2258. tier?: true
  2259. llmCallsThisMonth?: true
  2260. llmCallsResetAt?: true
  2261. autoRelanceEnabled?: true
  2262. exportsThisMonth?: true
  2263. exportsResetAt?: true
  2264. lastVisitedAt?: true
  2265. onboardingDismissed?: true
  2266. proModeAvailable?: true
  2267. createdAt?: true
  2268. updatedAt?: true
  2269. ownerId?: true
  2270. _all?: true
  2271. }
  2272. export type WorkspaceAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2273. /**
  2274. * Filter which Workspace to aggregate.
  2275. */
  2276. where?: WorkspaceWhereInput
  2277. /**
  2278. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  2279. *
  2280. * Determine the order of Workspaces to fetch.
  2281. */
  2282. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  2283. /**
  2284. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  2285. *
  2286. * Sets the start position
  2287. */
  2288. cursor?: WorkspaceWhereUniqueInput
  2289. /**
  2290. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2291. *
  2292. * Take `±n` Workspaces from the position of the cursor.
  2293. */
  2294. take?: number
  2295. /**
  2296. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  2297. *
  2298. * Skip the first `n` Workspaces.
  2299. */
  2300. skip?: number
  2301. /**
  2302. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2303. *
  2304. * Count returned Workspaces
  2305. **/
  2306. _count?: true | WorkspaceCountAggregateInputType
  2307. /**
  2308. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2309. *
  2310. * Select which fields to average
  2311. **/
  2312. _avg?: WorkspaceAvgAggregateInputType
  2313. /**
  2314. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2315. *
  2316. * Select which fields to sum
  2317. **/
  2318. _sum?: WorkspaceSumAggregateInputType
  2319. /**
  2320. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2321. *
  2322. * Select which fields to find the minimum value
  2323. **/
  2324. _min?: WorkspaceMinAggregateInputType
  2325. /**
  2326. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  2327. *
  2328. * Select which fields to find the maximum value
  2329. **/
  2330. _max?: WorkspaceMaxAggregateInputType
  2331. }
  2332. export type GetWorkspaceAggregateType<T extends WorkspaceAggregateArgs> = {
  2333. [P in keyof T & keyof AggregateWorkspace]: P extends '_count' | 'count'
  2334. ? T[P] extends true
  2335. ? number
  2336. : GetScalarType<T[P], AggregateWorkspace[P]>
  2337. : GetScalarType<T[P], AggregateWorkspace[P]>
  2338. }
  2339. export type WorkspaceGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2340. where?: WorkspaceWhereInput
  2341. orderBy?: WorkspaceOrderByWithAggregationInput | WorkspaceOrderByWithAggregationInput[]
  2342. by: WorkspaceScalarFieldEnum[] | WorkspaceScalarFieldEnum
  2343. having?: WorkspaceScalarWhereWithAggregatesInput
  2344. take?: number
  2345. skip?: number
  2346. _count?: WorkspaceCountAggregateInputType | true
  2347. _avg?: WorkspaceAvgAggregateInputType
  2348. _sum?: WorkspaceSumAggregateInputType
  2349. _min?: WorkspaceMinAggregateInputType
  2350. _max?: WorkspaceMaxAggregateInputType
  2351. }
  2352. export type WorkspaceGroupByOutputType = {
  2353. id: string
  2354. name: string
  2355. slug: string
  2356. sector: string | null
  2357. companySize: number | null
  2358. contactEmail: string | null
  2359. tier: $Enums.WorkspaceTier
  2360. llmCallsThisMonth: number
  2361. llmCallsResetAt: Date
  2362. autoRelanceEnabled: boolean
  2363. exportsThisMonth: number
  2364. exportsResetAt: Date
  2365. lastVisitedAt: Date | null
  2366. onboardingDismissed: boolean
  2367. proModeAvailable: boolean
  2368. createdAt: Date
  2369. updatedAt: Date
  2370. ownerId: string
  2371. _count: WorkspaceCountAggregateOutputType | null
  2372. _avg: WorkspaceAvgAggregateOutputType | null
  2373. _sum: WorkspaceSumAggregateOutputType | null
  2374. _min: WorkspaceMinAggregateOutputType | null
  2375. _max: WorkspaceMaxAggregateOutputType | null
  2376. }
  2377. type GetWorkspaceGroupByPayload<T extends WorkspaceGroupByArgs> = Prisma.PrismaPromise<
  2378. Array<
  2379. PickEnumerable<WorkspaceGroupByOutputType, T['by']> &
  2380. {
  2381. [P in ((keyof T) & (keyof WorkspaceGroupByOutputType))]: P extends '_count'
  2382. ? T[P] extends boolean
  2383. ? number
  2384. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2385. : GetScalarType<T[P], WorkspaceGroupByOutputType[P]>
  2386. }
  2387. >
  2388. >
  2389. export type WorkspaceSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2390. id?: boolean
  2391. name?: boolean
  2392. slug?: boolean
  2393. sector?: boolean
  2394. companySize?: boolean
  2395. contactEmail?: boolean
  2396. tier?: boolean
  2397. llmCallsThisMonth?: boolean
  2398. llmCallsResetAt?: boolean
  2399. autoRelanceEnabled?: boolean
  2400. exportsThisMonth?: boolean
  2401. exportsResetAt?: boolean
  2402. lastVisitedAt?: boolean
  2403. onboardingDismissed?: boolean
  2404. proModeAvailable?: boolean
  2405. createdAt?: boolean
  2406. updatedAt?: boolean
  2407. ownerId?: boolean
  2408. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2409. feedbacks?: boolean | Workspace$feedbacksArgs<ExtArgs>
  2410. owner?: boolean | UserDefaultArgs<ExtArgs>
  2411. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2412. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2413. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2414. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2415. }, ExtArgs["result"]["workspace"]>
  2416. export type WorkspaceSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2417. id?: boolean
  2418. name?: boolean
  2419. slug?: boolean
  2420. sector?: boolean
  2421. companySize?: boolean
  2422. contactEmail?: boolean
  2423. tier?: boolean
  2424. llmCallsThisMonth?: boolean
  2425. llmCallsResetAt?: boolean
  2426. autoRelanceEnabled?: boolean
  2427. exportsThisMonth?: boolean
  2428. exportsResetAt?: boolean
  2429. lastVisitedAt?: boolean
  2430. onboardingDismissed?: boolean
  2431. proModeAvailable?: boolean
  2432. createdAt?: boolean
  2433. updatedAt?: boolean
  2434. ownerId?: boolean
  2435. owner?: boolean | UserDefaultArgs<ExtArgs>
  2436. }, ExtArgs["result"]["workspace"]>
  2437. export type WorkspaceSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  2438. id?: boolean
  2439. name?: boolean
  2440. slug?: boolean
  2441. sector?: boolean
  2442. companySize?: boolean
  2443. contactEmail?: boolean
  2444. tier?: boolean
  2445. llmCallsThisMonth?: boolean
  2446. llmCallsResetAt?: boolean
  2447. autoRelanceEnabled?: boolean
  2448. exportsThisMonth?: boolean
  2449. exportsResetAt?: boolean
  2450. lastVisitedAt?: boolean
  2451. onboardingDismissed?: boolean
  2452. proModeAvailable?: boolean
  2453. createdAt?: boolean
  2454. updatedAt?: boolean
  2455. ownerId?: boolean
  2456. owner?: boolean | UserDefaultArgs<ExtArgs>
  2457. }, ExtArgs["result"]["workspace"]>
  2458. export type WorkspaceSelectScalar = {
  2459. id?: boolean
  2460. name?: boolean
  2461. slug?: boolean
  2462. sector?: boolean
  2463. companySize?: boolean
  2464. contactEmail?: boolean
  2465. tier?: boolean
  2466. llmCallsThisMonth?: boolean
  2467. llmCallsResetAt?: boolean
  2468. autoRelanceEnabled?: boolean
  2469. exportsThisMonth?: boolean
  2470. exportsResetAt?: boolean
  2471. lastVisitedAt?: boolean
  2472. onboardingDismissed?: boolean
  2473. proModeAvailable?: boolean
  2474. createdAt?: boolean
  2475. updatedAt?: boolean
  2476. ownerId?: boolean
  2477. }
  2478. 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" | "proModeAvailable" | "createdAt" | "updatedAt" | "ownerId", ExtArgs["result"]["workspace"]>
  2479. export type WorkspaceInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2480. shareLink?: boolean | Workspace$shareLinkArgs<ExtArgs>
  2481. feedbacks?: boolean | Workspace$feedbacksArgs<ExtArgs>
  2482. owner?: boolean | UserDefaultArgs<ExtArgs>
  2483. contributors?: boolean | Workspace$contributorsArgs<ExtArgs>
  2484. ideas?: boolean | Workspace$ideasArgs<ExtArgs>
  2485. manualRelanceLogs?: boolean | Workspace$manualRelanceLogsArgs<ExtArgs>
  2486. _count?: boolean | WorkspaceCountOutputTypeDefaultArgs<ExtArgs>
  2487. }
  2488. export type WorkspaceIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2489. owner?: boolean | UserDefaultArgs<ExtArgs>
  2490. }
  2491. export type WorkspaceIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2492. owner?: boolean | UserDefaultArgs<ExtArgs>
  2493. }
  2494. export type $WorkspacePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2495. name: "Workspace"
  2496. objects: {
  2497. shareLink: Prisma.$ShareLinkPayload<ExtArgs> | null
  2498. feedbacks: Prisma.$AppFeedbackPayload<ExtArgs>[]
  2499. owner: Prisma.$UserPayload<ExtArgs>
  2500. contributors: Prisma.$ContributorPayload<ExtArgs>[]
  2501. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  2502. manualRelanceLogs: Prisma.$ManualRelanceLogPayload<ExtArgs>[]
  2503. }
  2504. scalars: $Extensions.GetPayloadResult<{
  2505. id: string
  2506. name: string
  2507. slug: string
  2508. sector: string | null
  2509. companySize: number | null
  2510. contactEmail: string | null
  2511. tier: $Enums.WorkspaceTier
  2512. llmCallsThisMonth: number
  2513. llmCallsResetAt: Date
  2514. autoRelanceEnabled: boolean
  2515. exportsThisMonth: number
  2516. exportsResetAt: Date
  2517. lastVisitedAt: Date | null
  2518. onboardingDismissed: boolean
  2519. /**
  2520. * Débloqué après un partage sur la page parrainage : affiche l'activation Pro.
  2521. */
  2522. proModeAvailable: boolean
  2523. createdAt: Date
  2524. updatedAt: Date
  2525. ownerId: string
  2526. }, ExtArgs["result"]["workspace"]>
  2527. composites: {}
  2528. }
  2529. type WorkspaceGetPayload<S extends boolean | null | undefined | WorkspaceDefaultArgs> = $Result.GetResult<Prisma.$WorkspacePayload, S>
  2530. type WorkspaceCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  2531. Omit<WorkspaceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  2532. select?: WorkspaceCountAggregateInputType | true
  2533. }
  2534. export interface WorkspaceDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  2535. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Workspace'], meta: { name: 'Workspace' } }
  2536. /**
  2537. * Find zero or one Workspace that matches the filter.
  2538. * @param {WorkspaceFindUniqueArgs} args - Arguments to find a Workspace
  2539. * @example
  2540. * // Get one Workspace
  2541. * const workspace = await prisma.workspace.findUnique({
  2542. * where: {
  2543. * // ... provide filter here
  2544. * }
  2545. * })
  2546. */
  2547. findUnique<T extends WorkspaceFindUniqueArgs>(args: SelectSubset<T, WorkspaceFindUniqueArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2548. /**
  2549. * Find one Workspace that matches the filter or throw an error with `error.code='P2025'`
  2550. * if no matches were found.
  2551. * @param {WorkspaceFindUniqueOrThrowArgs} args - Arguments to find a Workspace
  2552. * @example
  2553. * // Get one Workspace
  2554. * const workspace = await prisma.workspace.findUniqueOrThrow({
  2555. * where: {
  2556. * // ... provide filter here
  2557. * }
  2558. * })
  2559. */
  2560. findUniqueOrThrow<T extends WorkspaceFindUniqueOrThrowArgs>(args: SelectSubset<T, WorkspaceFindUniqueOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2561. /**
  2562. * Find the first Workspace that matches the filter.
  2563. * Note, that providing `undefined` is treated as the value not being there.
  2564. * Read more here: https://pris.ly/d/null-undefined
  2565. * @param {WorkspaceFindFirstArgs} args - Arguments to find a Workspace
  2566. * @example
  2567. * // Get one Workspace
  2568. * const workspace = await prisma.workspace.findFirst({
  2569. * where: {
  2570. * // ... provide filter here
  2571. * }
  2572. * })
  2573. */
  2574. findFirst<T extends WorkspaceFindFirstArgs>(args?: SelectSubset<T, WorkspaceFindFirstArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  2575. /**
  2576. * Find the first Workspace that matches the filter or
  2577. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  2578. * Note, that providing `undefined` is treated as the value not being there.
  2579. * Read more here: https://pris.ly/d/null-undefined
  2580. * @param {WorkspaceFindFirstOrThrowArgs} args - Arguments to find a Workspace
  2581. * @example
  2582. * // Get one Workspace
  2583. * const workspace = await prisma.workspace.findFirstOrThrow({
  2584. * where: {
  2585. * // ... provide filter here
  2586. * }
  2587. * })
  2588. */
  2589. findFirstOrThrow<T extends WorkspaceFindFirstOrThrowArgs>(args?: SelectSubset<T, WorkspaceFindFirstOrThrowArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2590. /**
  2591. * Find zero or more Workspaces that matches the filter.
  2592. * Note, that providing `undefined` is treated as the value not being there.
  2593. * Read more here: https://pris.ly/d/null-undefined
  2594. * @param {WorkspaceFindManyArgs} args - Arguments to filter and select certain fields only.
  2595. * @example
  2596. * // Get all Workspaces
  2597. * const workspaces = await prisma.workspace.findMany()
  2598. *
  2599. * // Get first 10 Workspaces
  2600. * const workspaces = await prisma.workspace.findMany({ take: 10 })
  2601. *
  2602. * // Only select the `id`
  2603. * const workspaceWithIdOnly = await prisma.workspace.findMany({ select: { id: true } })
  2604. *
  2605. */
  2606. findMany<T extends WorkspaceFindManyArgs>(args?: SelectSubset<T, WorkspaceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  2607. /**
  2608. * Create a Workspace.
  2609. * @param {WorkspaceCreateArgs} args - Arguments to create a Workspace.
  2610. * @example
  2611. * // Create one Workspace
  2612. * const Workspace = await prisma.workspace.create({
  2613. * data: {
  2614. * // ... data to create a Workspace
  2615. * }
  2616. * })
  2617. *
  2618. */
  2619. create<T extends WorkspaceCreateArgs>(args: SelectSubset<T, WorkspaceCreateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2620. /**
  2621. * Create many Workspaces.
  2622. * @param {WorkspaceCreateManyArgs} args - Arguments to create many Workspaces.
  2623. * @example
  2624. * // Create many Workspaces
  2625. * const workspace = await prisma.workspace.createMany({
  2626. * data: [
  2627. * // ... provide data here
  2628. * ]
  2629. * })
  2630. *
  2631. */
  2632. createMany<T extends WorkspaceCreateManyArgs>(args?: SelectSubset<T, WorkspaceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2633. /**
  2634. * Create many Workspaces and returns the data saved in the database.
  2635. * @param {WorkspaceCreateManyAndReturnArgs} args - Arguments to create many Workspaces.
  2636. * @example
  2637. * // Create many Workspaces
  2638. * const workspace = await prisma.workspace.createManyAndReturn({
  2639. * data: [
  2640. * // ... provide data here
  2641. * ]
  2642. * })
  2643. *
  2644. * // Create many Workspaces and only return the `id`
  2645. * const workspaceWithIdOnly = await prisma.workspace.createManyAndReturn({
  2646. * select: { id: true },
  2647. * data: [
  2648. * // ... provide data here
  2649. * ]
  2650. * })
  2651. * Note, that providing `undefined` is treated as the value not being there.
  2652. * Read more here: https://pris.ly/d/null-undefined
  2653. *
  2654. */
  2655. createManyAndReturn<T extends WorkspaceCreateManyAndReturnArgs>(args?: SelectSubset<T, WorkspaceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  2656. /**
  2657. * Delete a Workspace.
  2658. * @param {WorkspaceDeleteArgs} args - Arguments to delete one Workspace.
  2659. * @example
  2660. * // Delete one Workspace
  2661. * const Workspace = await prisma.workspace.delete({
  2662. * where: {
  2663. * // ... filter to delete one Workspace
  2664. * }
  2665. * })
  2666. *
  2667. */
  2668. delete<T extends WorkspaceDeleteArgs>(args: SelectSubset<T, WorkspaceDeleteArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2669. /**
  2670. * Update one Workspace.
  2671. * @param {WorkspaceUpdateArgs} args - Arguments to update one Workspace.
  2672. * @example
  2673. * // Update one Workspace
  2674. * const workspace = await prisma.workspace.update({
  2675. * where: {
  2676. * // ... provide filter here
  2677. * },
  2678. * data: {
  2679. * // ... provide data here
  2680. * }
  2681. * })
  2682. *
  2683. */
  2684. update<T extends WorkspaceUpdateArgs>(args: SelectSubset<T, WorkspaceUpdateArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2685. /**
  2686. * Delete zero or more Workspaces.
  2687. * @param {WorkspaceDeleteManyArgs} args - Arguments to filter Workspaces to delete.
  2688. * @example
  2689. * // Delete a few Workspaces
  2690. * const { count } = await prisma.workspace.deleteMany({
  2691. * where: {
  2692. * // ... provide filter here
  2693. * }
  2694. * })
  2695. *
  2696. */
  2697. deleteMany<T extends WorkspaceDeleteManyArgs>(args?: SelectSubset<T, WorkspaceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2698. /**
  2699. * Update zero or more Workspaces.
  2700. * Note, that providing `undefined` is treated as the value not being there.
  2701. * Read more here: https://pris.ly/d/null-undefined
  2702. * @param {WorkspaceUpdateManyArgs} args - Arguments to update one or more rows.
  2703. * @example
  2704. * // Update many Workspaces
  2705. * const workspace = await prisma.workspace.updateMany({
  2706. * where: {
  2707. * // ... provide filter here
  2708. * },
  2709. * data: {
  2710. * // ... provide data here
  2711. * }
  2712. * })
  2713. *
  2714. */
  2715. updateMany<T extends WorkspaceUpdateManyArgs>(args: SelectSubset<T, WorkspaceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  2716. /**
  2717. * Update zero or more Workspaces and returns the data updated in the database.
  2718. * @param {WorkspaceUpdateManyAndReturnArgs} args - Arguments to update many Workspaces.
  2719. * @example
  2720. * // Update many Workspaces
  2721. * const workspace = await prisma.workspace.updateManyAndReturn({
  2722. * where: {
  2723. * // ... provide filter here
  2724. * },
  2725. * data: [
  2726. * // ... provide data here
  2727. * ]
  2728. * })
  2729. *
  2730. * // Update zero or more Workspaces and only return the `id`
  2731. * const workspaceWithIdOnly = await prisma.workspace.updateManyAndReturn({
  2732. * select: { id: true },
  2733. * where: {
  2734. * // ... provide filter here
  2735. * },
  2736. * data: [
  2737. * // ... provide data here
  2738. * ]
  2739. * })
  2740. * Note, that providing `undefined` is treated as the value not being there.
  2741. * Read more here: https://pris.ly/d/null-undefined
  2742. *
  2743. */
  2744. updateManyAndReturn<T extends WorkspaceUpdateManyAndReturnArgs>(args: SelectSubset<T, WorkspaceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  2745. /**
  2746. * Create or update one Workspace.
  2747. * @param {WorkspaceUpsertArgs} args - Arguments to update or create a Workspace.
  2748. * @example
  2749. * // Update or create a Workspace
  2750. * const workspace = await prisma.workspace.upsert({
  2751. * create: {
  2752. * // ... data to create a Workspace
  2753. * },
  2754. * update: {
  2755. * // ... in case it already exists, update
  2756. * },
  2757. * where: {
  2758. * // ... the filter for the Workspace we want to update
  2759. * }
  2760. * })
  2761. */
  2762. upsert<T extends WorkspaceUpsertArgs>(args: SelectSubset<T, WorkspaceUpsertArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  2763. /**
  2764. * Count the number of Workspaces.
  2765. * Note, that providing `undefined` is treated as the value not being there.
  2766. * Read more here: https://pris.ly/d/null-undefined
  2767. * @param {WorkspaceCountArgs} args - Arguments to filter Workspaces to count.
  2768. * @example
  2769. * // Count the number of Workspaces
  2770. * const count = await prisma.workspace.count({
  2771. * where: {
  2772. * // ... the filter for the Workspaces we want to count
  2773. * }
  2774. * })
  2775. **/
  2776. count<T extends WorkspaceCountArgs>(
  2777. args?: Subset<T, WorkspaceCountArgs>,
  2778. ): Prisma.PrismaPromise<
  2779. T extends $Utils.Record<'select', any>
  2780. ? T['select'] extends true
  2781. ? number
  2782. : GetScalarType<T['select'], WorkspaceCountAggregateOutputType>
  2783. : number
  2784. >
  2785. /**
  2786. * Allows you to perform aggregations operations on a Workspace.
  2787. * Note, that providing `undefined` is treated as the value not being there.
  2788. * Read more here: https://pris.ly/d/null-undefined
  2789. * @param {WorkspaceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  2790. * @example
  2791. * // Ordered by age ascending
  2792. * // Where email contains prisma.io
  2793. * // Limited to the 10 users
  2794. * const aggregations = await prisma.user.aggregate({
  2795. * _avg: {
  2796. * age: true,
  2797. * },
  2798. * where: {
  2799. * email: {
  2800. * contains: "prisma.io",
  2801. * },
  2802. * },
  2803. * orderBy: {
  2804. * age: "asc",
  2805. * },
  2806. * take: 10,
  2807. * })
  2808. **/
  2809. aggregate<T extends WorkspaceAggregateArgs>(args: Subset<T, WorkspaceAggregateArgs>): Prisma.PrismaPromise<GetWorkspaceAggregateType<T>>
  2810. /**
  2811. * Group by Workspace.
  2812. * Note, that providing `undefined` is treated as the value not being there.
  2813. * Read more here: https://pris.ly/d/null-undefined
  2814. * @param {WorkspaceGroupByArgs} args - Group by arguments.
  2815. * @example
  2816. * // Group by city, order by createdAt, get count
  2817. * const result = await prisma.user.groupBy({
  2818. * by: ['city', 'createdAt'],
  2819. * orderBy: {
  2820. * createdAt: true
  2821. * },
  2822. * _count: {
  2823. * _all: true
  2824. * },
  2825. * })
  2826. *
  2827. **/
  2828. groupBy<
  2829. T extends WorkspaceGroupByArgs,
  2830. HasSelectOrTake extends Or<
  2831. Extends<'skip', Keys<T>>,
  2832. Extends<'take', Keys<T>>
  2833. >,
  2834. OrderByArg extends True extends HasSelectOrTake
  2835. ? { orderBy: WorkspaceGroupByArgs['orderBy'] }
  2836. : { orderBy?: WorkspaceGroupByArgs['orderBy'] },
  2837. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  2838. ByFields extends MaybeTupleToUnion<T['by']>,
  2839. ByValid extends Has<ByFields, OrderFields>,
  2840. HavingFields extends GetHavingFields<T['having']>,
  2841. HavingValid extends Has<ByFields, HavingFields>,
  2842. ByEmpty extends T['by'] extends never[] ? True : False,
  2843. InputErrors extends ByEmpty extends True
  2844. ? `Error: "by" must not be empty.`
  2845. : HavingValid extends False
  2846. ? {
  2847. [P in HavingFields]: P extends ByFields
  2848. ? never
  2849. : P extends string
  2850. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  2851. : [
  2852. Error,
  2853. 'Field ',
  2854. P,
  2855. ` in "having" needs to be provided in "by"`,
  2856. ]
  2857. }[HavingFields]
  2858. : 'take' extends Keys<T>
  2859. ? 'orderBy' extends Keys<T>
  2860. ? ByValid extends True
  2861. ? {}
  2862. : {
  2863. [P in OrderFields]: P extends ByFields
  2864. ? never
  2865. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2866. }[OrderFields]
  2867. : 'Error: If you provide "take", you also need to provide "orderBy"'
  2868. : 'skip' extends Keys<T>
  2869. ? 'orderBy' extends Keys<T>
  2870. ? ByValid extends True
  2871. ? {}
  2872. : {
  2873. [P in OrderFields]: P extends ByFields
  2874. ? never
  2875. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2876. }[OrderFields]
  2877. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  2878. : ByValid extends True
  2879. ? {}
  2880. : {
  2881. [P in OrderFields]: P extends ByFields
  2882. ? never
  2883. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  2884. }[OrderFields]
  2885. >(args: SubsetIntersection<T, WorkspaceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetWorkspaceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  2886. /**
  2887. * Fields of the Workspace model
  2888. */
  2889. readonly fields: WorkspaceFieldRefs;
  2890. }
  2891. /**
  2892. * The delegate class that acts as a "Promise-like" for Workspace.
  2893. * Why is this prefixed with `Prisma__`?
  2894. * Because we want to prevent naming conflicts as mentioned in
  2895. * https://github.com/prisma/prisma-client-js/issues/707
  2896. */
  2897. export interface Prisma__WorkspaceClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  2898. readonly [Symbol.toStringTag]: "PrismaPromise"
  2899. 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>
  2900. feedbacks<T extends Workspace$feedbacksArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$feedbacksArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2901. owner<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  2902. contributors<T extends Workspace$contributorsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$contributorsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2903. ideas<T extends Workspace$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2904. manualRelanceLogs<T extends Workspace$manualRelanceLogsArgs<ExtArgs> = {}>(args?: Subset<T, Workspace$manualRelanceLogsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  2905. /**
  2906. * Attaches callbacks for the resolution and/or rejection of the Promise.
  2907. * @param onfulfilled The callback to execute when the Promise is resolved.
  2908. * @param onrejected The callback to execute when the Promise is rejected.
  2909. * @returns A Promise for the completion of which ever callback is executed.
  2910. */
  2911. 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>
  2912. /**
  2913. * Attaches a callback for only the rejection of the Promise.
  2914. * @param onrejected The callback to execute when the Promise is rejected.
  2915. * @returns A Promise for the completion of the callback.
  2916. */
  2917. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  2918. /**
  2919. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  2920. * resolved value cannot be modified from the callback.
  2921. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  2922. * @returns A Promise for the completion of the callback.
  2923. */
  2924. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  2925. }
  2926. /**
  2927. * Fields of the Workspace model
  2928. */
  2929. interface WorkspaceFieldRefs {
  2930. readonly id: FieldRef<"Workspace", 'String'>
  2931. readonly name: FieldRef<"Workspace", 'String'>
  2932. readonly slug: FieldRef<"Workspace", 'String'>
  2933. readonly sector: FieldRef<"Workspace", 'String'>
  2934. readonly companySize: FieldRef<"Workspace", 'Int'>
  2935. readonly contactEmail: FieldRef<"Workspace", 'String'>
  2936. readonly tier: FieldRef<"Workspace", 'WorkspaceTier'>
  2937. readonly llmCallsThisMonth: FieldRef<"Workspace", 'Int'>
  2938. readonly llmCallsResetAt: FieldRef<"Workspace", 'DateTime'>
  2939. readonly autoRelanceEnabled: FieldRef<"Workspace", 'Boolean'>
  2940. readonly exportsThisMonth: FieldRef<"Workspace", 'Int'>
  2941. readonly exportsResetAt: FieldRef<"Workspace", 'DateTime'>
  2942. readonly lastVisitedAt: FieldRef<"Workspace", 'DateTime'>
  2943. readonly onboardingDismissed: FieldRef<"Workspace", 'Boolean'>
  2944. readonly proModeAvailable: FieldRef<"Workspace", 'Boolean'>
  2945. readonly createdAt: FieldRef<"Workspace", 'DateTime'>
  2946. readonly updatedAt: FieldRef<"Workspace", 'DateTime'>
  2947. readonly ownerId: FieldRef<"Workspace", 'String'>
  2948. }
  2949. // Custom InputTypes
  2950. /**
  2951. * Workspace findUnique
  2952. */
  2953. export type WorkspaceFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2954. /**
  2955. * Select specific fields to fetch from the Workspace
  2956. */
  2957. select?: WorkspaceSelect<ExtArgs> | null
  2958. /**
  2959. * Omit specific fields from the Workspace
  2960. */
  2961. omit?: WorkspaceOmit<ExtArgs> | null
  2962. /**
  2963. * Choose, which related nodes to fetch as well
  2964. */
  2965. include?: WorkspaceInclude<ExtArgs> | null
  2966. /**
  2967. * Filter, which Workspace to fetch.
  2968. */
  2969. where: WorkspaceWhereUniqueInput
  2970. }
  2971. /**
  2972. * Workspace findUniqueOrThrow
  2973. */
  2974. export type WorkspaceFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2975. /**
  2976. * Select specific fields to fetch from the Workspace
  2977. */
  2978. select?: WorkspaceSelect<ExtArgs> | null
  2979. /**
  2980. * Omit specific fields from the Workspace
  2981. */
  2982. omit?: WorkspaceOmit<ExtArgs> | null
  2983. /**
  2984. * Choose, which related nodes to fetch as well
  2985. */
  2986. include?: WorkspaceInclude<ExtArgs> | null
  2987. /**
  2988. * Filter, which Workspace to fetch.
  2989. */
  2990. where: WorkspaceWhereUniqueInput
  2991. }
  2992. /**
  2993. * Workspace findFirst
  2994. */
  2995. export type WorkspaceFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  2996. /**
  2997. * Select specific fields to fetch from the Workspace
  2998. */
  2999. select?: WorkspaceSelect<ExtArgs> | null
  3000. /**
  3001. * Omit specific fields from the Workspace
  3002. */
  3003. omit?: WorkspaceOmit<ExtArgs> | null
  3004. /**
  3005. * Choose, which related nodes to fetch as well
  3006. */
  3007. include?: WorkspaceInclude<ExtArgs> | null
  3008. /**
  3009. * Filter, which Workspace to fetch.
  3010. */
  3011. where?: WorkspaceWhereInput
  3012. /**
  3013. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  3014. *
  3015. * Determine the order of Workspaces to fetch.
  3016. */
  3017. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  3018. /**
  3019. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  3020. *
  3021. * Sets the position for searching for Workspaces.
  3022. */
  3023. cursor?: WorkspaceWhereUniqueInput
  3024. /**
  3025. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3026. *
  3027. * Take `±n` Workspaces from the position of the cursor.
  3028. */
  3029. take?: number
  3030. /**
  3031. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3032. *
  3033. * Skip the first `n` Workspaces.
  3034. */
  3035. skip?: number
  3036. /**
  3037. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  3038. *
  3039. * Filter by unique combinations of Workspaces.
  3040. */
  3041. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  3042. }
  3043. /**
  3044. * Workspace findFirstOrThrow
  3045. */
  3046. export type WorkspaceFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3047. /**
  3048. * Select specific fields to fetch from the Workspace
  3049. */
  3050. select?: WorkspaceSelect<ExtArgs> | null
  3051. /**
  3052. * Omit specific fields from the Workspace
  3053. */
  3054. omit?: WorkspaceOmit<ExtArgs> | null
  3055. /**
  3056. * Choose, which related nodes to fetch as well
  3057. */
  3058. include?: WorkspaceInclude<ExtArgs> | null
  3059. /**
  3060. * Filter, which Workspace to fetch.
  3061. */
  3062. where?: WorkspaceWhereInput
  3063. /**
  3064. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  3065. *
  3066. * Determine the order of Workspaces to fetch.
  3067. */
  3068. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  3069. /**
  3070. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  3071. *
  3072. * Sets the position for searching for Workspaces.
  3073. */
  3074. cursor?: WorkspaceWhereUniqueInput
  3075. /**
  3076. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3077. *
  3078. * Take `±n` Workspaces from the position of the cursor.
  3079. */
  3080. take?: number
  3081. /**
  3082. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3083. *
  3084. * Skip the first `n` Workspaces.
  3085. */
  3086. skip?: number
  3087. /**
  3088. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  3089. *
  3090. * Filter by unique combinations of Workspaces.
  3091. */
  3092. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  3093. }
  3094. /**
  3095. * Workspace findMany
  3096. */
  3097. export type WorkspaceFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3098. /**
  3099. * Select specific fields to fetch from the Workspace
  3100. */
  3101. select?: WorkspaceSelect<ExtArgs> | null
  3102. /**
  3103. * Omit specific fields from the Workspace
  3104. */
  3105. omit?: WorkspaceOmit<ExtArgs> | null
  3106. /**
  3107. * Choose, which related nodes to fetch as well
  3108. */
  3109. include?: WorkspaceInclude<ExtArgs> | null
  3110. /**
  3111. * Filter, which Workspaces to fetch.
  3112. */
  3113. where?: WorkspaceWhereInput
  3114. /**
  3115. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  3116. *
  3117. * Determine the order of Workspaces to fetch.
  3118. */
  3119. orderBy?: WorkspaceOrderByWithRelationInput | WorkspaceOrderByWithRelationInput[]
  3120. /**
  3121. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  3122. *
  3123. * Sets the position for listing Workspaces.
  3124. */
  3125. cursor?: WorkspaceWhereUniqueInput
  3126. /**
  3127. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3128. *
  3129. * Take `±n` Workspaces from the position of the cursor.
  3130. */
  3131. take?: number
  3132. /**
  3133. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3134. *
  3135. * Skip the first `n` Workspaces.
  3136. */
  3137. skip?: number
  3138. distinct?: WorkspaceScalarFieldEnum | WorkspaceScalarFieldEnum[]
  3139. }
  3140. /**
  3141. * Workspace create
  3142. */
  3143. export type WorkspaceCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3144. /**
  3145. * Select specific fields to fetch from the Workspace
  3146. */
  3147. select?: WorkspaceSelect<ExtArgs> | null
  3148. /**
  3149. * Omit specific fields from the Workspace
  3150. */
  3151. omit?: WorkspaceOmit<ExtArgs> | null
  3152. /**
  3153. * Choose, which related nodes to fetch as well
  3154. */
  3155. include?: WorkspaceInclude<ExtArgs> | null
  3156. /**
  3157. * The data needed to create a Workspace.
  3158. */
  3159. data: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3160. }
  3161. /**
  3162. * Workspace createMany
  3163. */
  3164. export type WorkspaceCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3165. /**
  3166. * The data used to create many Workspaces.
  3167. */
  3168. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3169. skipDuplicates?: boolean
  3170. }
  3171. /**
  3172. * Workspace createManyAndReturn
  3173. */
  3174. export type WorkspaceCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3175. /**
  3176. * Select specific fields to fetch from the Workspace
  3177. */
  3178. select?: WorkspaceSelectCreateManyAndReturn<ExtArgs> | null
  3179. /**
  3180. * Omit specific fields from the Workspace
  3181. */
  3182. omit?: WorkspaceOmit<ExtArgs> | null
  3183. /**
  3184. * The data used to create many Workspaces.
  3185. */
  3186. data: WorkspaceCreateManyInput | WorkspaceCreateManyInput[]
  3187. skipDuplicates?: boolean
  3188. /**
  3189. * Choose, which related nodes to fetch as well
  3190. */
  3191. include?: WorkspaceIncludeCreateManyAndReturn<ExtArgs> | null
  3192. }
  3193. /**
  3194. * Workspace update
  3195. */
  3196. export type WorkspaceUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3197. /**
  3198. * Select specific fields to fetch from the Workspace
  3199. */
  3200. select?: WorkspaceSelect<ExtArgs> | null
  3201. /**
  3202. * Omit specific fields from the Workspace
  3203. */
  3204. omit?: WorkspaceOmit<ExtArgs> | null
  3205. /**
  3206. * Choose, which related nodes to fetch as well
  3207. */
  3208. include?: WorkspaceInclude<ExtArgs> | null
  3209. /**
  3210. * The data needed to update a Workspace.
  3211. */
  3212. data: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3213. /**
  3214. * Choose, which Workspace to update.
  3215. */
  3216. where: WorkspaceWhereUniqueInput
  3217. }
  3218. /**
  3219. * Workspace updateMany
  3220. */
  3221. export type WorkspaceUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3222. /**
  3223. * The data used to update Workspaces.
  3224. */
  3225. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3226. /**
  3227. * Filter which Workspaces to update
  3228. */
  3229. where?: WorkspaceWhereInput
  3230. /**
  3231. * Limit how many Workspaces to update.
  3232. */
  3233. limit?: number
  3234. }
  3235. /**
  3236. * Workspace updateManyAndReturn
  3237. */
  3238. export type WorkspaceUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3239. /**
  3240. * Select specific fields to fetch from the Workspace
  3241. */
  3242. select?: WorkspaceSelectUpdateManyAndReturn<ExtArgs> | null
  3243. /**
  3244. * Omit specific fields from the Workspace
  3245. */
  3246. omit?: WorkspaceOmit<ExtArgs> | null
  3247. /**
  3248. * The data used to update Workspaces.
  3249. */
  3250. data: XOR<WorkspaceUpdateManyMutationInput, WorkspaceUncheckedUpdateManyInput>
  3251. /**
  3252. * Filter which Workspaces to update
  3253. */
  3254. where?: WorkspaceWhereInput
  3255. /**
  3256. * Limit how many Workspaces to update.
  3257. */
  3258. limit?: number
  3259. /**
  3260. * Choose, which related nodes to fetch as well
  3261. */
  3262. include?: WorkspaceIncludeUpdateManyAndReturn<ExtArgs> | null
  3263. }
  3264. /**
  3265. * Workspace upsert
  3266. */
  3267. export type WorkspaceUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3268. /**
  3269. * Select specific fields to fetch from the Workspace
  3270. */
  3271. select?: WorkspaceSelect<ExtArgs> | null
  3272. /**
  3273. * Omit specific fields from the Workspace
  3274. */
  3275. omit?: WorkspaceOmit<ExtArgs> | null
  3276. /**
  3277. * Choose, which related nodes to fetch as well
  3278. */
  3279. include?: WorkspaceInclude<ExtArgs> | null
  3280. /**
  3281. * The filter to search for the Workspace to update in case it exists.
  3282. */
  3283. where: WorkspaceWhereUniqueInput
  3284. /**
  3285. * In case the Workspace found by the `where` argument doesn't exist, create a new Workspace with this data.
  3286. */
  3287. create: XOR<WorkspaceCreateInput, WorkspaceUncheckedCreateInput>
  3288. /**
  3289. * In case the Workspace was found with the provided `where` argument, update it with this data.
  3290. */
  3291. update: XOR<WorkspaceUpdateInput, WorkspaceUncheckedUpdateInput>
  3292. }
  3293. /**
  3294. * Workspace delete
  3295. */
  3296. export type WorkspaceDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3297. /**
  3298. * Select specific fields to fetch from the Workspace
  3299. */
  3300. select?: WorkspaceSelect<ExtArgs> | null
  3301. /**
  3302. * Omit specific fields from the Workspace
  3303. */
  3304. omit?: WorkspaceOmit<ExtArgs> | null
  3305. /**
  3306. * Choose, which related nodes to fetch as well
  3307. */
  3308. include?: WorkspaceInclude<ExtArgs> | null
  3309. /**
  3310. * Filter which Workspace to delete.
  3311. */
  3312. where: WorkspaceWhereUniqueInput
  3313. }
  3314. /**
  3315. * Workspace deleteMany
  3316. */
  3317. export type WorkspaceDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3318. /**
  3319. * Filter which Workspaces to delete
  3320. */
  3321. where?: WorkspaceWhereInput
  3322. /**
  3323. * Limit how many Workspaces to delete.
  3324. */
  3325. limit?: number
  3326. }
  3327. /**
  3328. * Workspace.shareLink
  3329. */
  3330. export type Workspace$shareLinkArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3331. /**
  3332. * Select specific fields to fetch from the ShareLink
  3333. */
  3334. select?: ShareLinkSelect<ExtArgs> | null
  3335. /**
  3336. * Omit specific fields from the ShareLink
  3337. */
  3338. omit?: ShareLinkOmit<ExtArgs> | null
  3339. /**
  3340. * Choose, which related nodes to fetch as well
  3341. */
  3342. include?: ShareLinkInclude<ExtArgs> | null
  3343. where?: ShareLinkWhereInput
  3344. }
  3345. /**
  3346. * Workspace.feedbacks
  3347. */
  3348. export type Workspace$feedbacksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3349. /**
  3350. * Select specific fields to fetch from the AppFeedback
  3351. */
  3352. select?: AppFeedbackSelect<ExtArgs> | null
  3353. /**
  3354. * Omit specific fields from the AppFeedback
  3355. */
  3356. omit?: AppFeedbackOmit<ExtArgs> | null
  3357. /**
  3358. * Choose, which related nodes to fetch as well
  3359. */
  3360. include?: AppFeedbackInclude<ExtArgs> | null
  3361. where?: AppFeedbackWhereInput
  3362. orderBy?: AppFeedbackOrderByWithRelationInput | AppFeedbackOrderByWithRelationInput[]
  3363. cursor?: AppFeedbackWhereUniqueInput
  3364. take?: number
  3365. skip?: number
  3366. distinct?: AppFeedbackScalarFieldEnum | AppFeedbackScalarFieldEnum[]
  3367. }
  3368. /**
  3369. * Workspace.contributors
  3370. */
  3371. export type Workspace$contributorsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3372. /**
  3373. * Select specific fields to fetch from the Contributor
  3374. */
  3375. select?: ContributorSelect<ExtArgs> | null
  3376. /**
  3377. * Omit specific fields from the Contributor
  3378. */
  3379. omit?: ContributorOmit<ExtArgs> | null
  3380. /**
  3381. * Choose, which related nodes to fetch as well
  3382. */
  3383. include?: ContributorInclude<ExtArgs> | null
  3384. where?: ContributorWhereInput
  3385. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  3386. cursor?: ContributorWhereUniqueInput
  3387. take?: number
  3388. skip?: number
  3389. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  3390. }
  3391. /**
  3392. * Workspace.ideas
  3393. */
  3394. export type Workspace$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3395. /**
  3396. * Select specific fields to fetch from the Idea
  3397. */
  3398. select?: IdeaSelect<ExtArgs> | null
  3399. /**
  3400. * Omit specific fields from the Idea
  3401. */
  3402. omit?: IdeaOmit<ExtArgs> | null
  3403. /**
  3404. * Choose, which related nodes to fetch as well
  3405. */
  3406. include?: IdeaInclude<ExtArgs> | null
  3407. where?: IdeaWhereInput
  3408. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  3409. cursor?: IdeaWhereUniqueInput
  3410. take?: number
  3411. skip?: number
  3412. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  3413. }
  3414. /**
  3415. * Workspace.manualRelanceLogs
  3416. */
  3417. export type Workspace$manualRelanceLogsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3418. /**
  3419. * Select specific fields to fetch from the ManualRelanceLog
  3420. */
  3421. select?: ManualRelanceLogSelect<ExtArgs> | null
  3422. /**
  3423. * Omit specific fields from the ManualRelanceLog
  3424. */
  3425. omit?: ManualRelanceLogOmit<ExtArgs> | null
  3426. /**
  3427. * Choose, which related nodes to fetch as well
  3428. */
  3429. include?: ManualRelanceLogInclude<ExtArgs> | null
  3430. where?: ManualRelanceLogWhereInput
  3431. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3432. cursor?: ManualRelanceLogWhereUniqueInput
  3433. take?: number
  3434. skip?: number
  3435. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  3436. }
  3437. /**
  3438. * Workspace without action
  3439. */
  3440. export type WorkspaceDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3441. /**
  3442. * Select specific fields to fetch from the Workspace
  3443. */
  3444. select?: WorkspaceSelect<ExtArgs> | null
  3445. /**
  3446. * Omit specific fields from the Workspace
  3447. */
  3448. omit?: WorkspaceOmit<ExtArgs> | null
  3449. /**
  3450. * Choose, which related nodes to fetch as well
  3451. */
  3452. include?: WorkspaceInclude<ExtArgs> | null
  3453. }
  3454. /**
  3455. * Model ManualRelanceLog
  3456. */
  3457. export type AggregateManualRelanceLog = {
  3458. _count: ManualRelanceLogCountAggregateOutputType | null
  3459. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3460. _sum: ManualRelanceLogSumAggregateOutputType | null
  3461. _min: ManualRelanceLogMinAggregateOutputType | null
  3462. _max: ManualRelanceLogMaxAggregateOutputType | null
  3463. }
  3464. export type ManualRelanceLogAvgAggregateOutputType = {
  3465. recipientCount: number | null
  3466. sentCount: number | null
  3467. failedCount: number | null
  3468. }
  3469. export type ManualRelanceLogSumAggregateOutputType = {
  3470. recipientCount: number | null
  3471. sentCount: number | null
  3472. failedCount: number | null
  3473. }
  3474. export type ManualRelanceLogMinAggregateOutputType = {
  3475. id: string | null
  3476. workspaceId: string | null
  3477. subject: string | null
  3478. recipientCount: number | null
  3479. sentCount: number | null
  3480. failedCount: number | null
  3481. sentAt: Date | null
  3482. }
  3483. export type ManualRelanceLogMaxAggregateOutputType = {
  3484. id: string | null
  3485. workspaceId: string | null
  3486. subject: string | null
  3487. recipientCount: number | null
  3488. sentCount: number | null
  3489. failedCount: number | null
  3490. sentAt: Date | null
  3491. }
  3492. export type ManualRelanceLogCountAggregateOutputType = {
  3493. id: number
  3494. workspaceId: number
  3495. subject: number
  3496. recipientCount: number
  3497. sentCount: number
  3498. failedCount: number
  3499. sentAt: number
  3500. _all: number
  3501. }
  3502. export type ManualRelanceLogAvgAggregateInputType = {
  3503. recipientCount?: true
  3504. sentCount?: true
  3505. failedCount?: true
  3506. }
  3507. export type ManualRelanceLogSumAggregateInputType = {
  3508. recipientCount?: true
  3509. sentCount?: true
  3510. failedCount?: true
  3511. }
  3512. export type ManualRelanceLogMinAggregateInputType = {
  3513. id?: true
  3514. workspaceId?: true
  3515. subject?: true
  3516. recipientCount?: true
  3517. sentCount?: true
  3518. failedCount?: true
  3519. sentAt?: true
  3520. }
  3521. export type ManualRelanceLogMaxAggregateInputType = {
  3522. id?: true
  3523. workspaceId?: true
  3524. subject?: true
  3525. recipientCount?: true
  3526. sentCount?: true
  3527. failedCount?: true
  3528. sentAt?: true
  3529. }
  3530. export type ManualRelanceLogCountAggregateInputType = {
  3531. id?: true
  3532. workspaceId?: true
  3533. subject?: true
  3534. recipientCount?: true
  3535. sentCount?: true
  3536. failedCount?: true
  3537. sentAt?: true
  3538. _all?: true
  3539. }
  3540. export type ManualRelanceLogAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3541. /**
  3542. * Filter which ManualRelanceLog to aggregate.
  3543. */
  3544. where?: ManualRelanceLogWhereInput
  3545. /**
  3546. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  3547. *
  3548. * Determine the order of ManualRelanceLogs to fetch.
  3549. */
  3550. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  3551. /**
  3552. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  3553. *
  3554. * Sets the start position
  3555. */
  3556. cursor?: ManualRelanceLogWhereUniqueInput
  3557. /**
  3558. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3559. *
  3560. * Take `±n` ManualRelanceLogs from the position of the cursor.
  3561. */
  3562. take?: number
  3563. /**
  3564. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  3565. *
  3566. * Skip the first `n` ManualRelanceLogs.
  3567. */
  3568. skip?: number
  3569. /**
  3570. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3571. *
  3572. * Count returned ManualRelanceLogs
  3573. **/
  3574. _count?: true | ManualRelanceLogCountAggregateInputType
  3575. /**
  3576. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3577. *
  3578. * Select which fields to average
  3579. **/
  3580. _avg?: ManualRelanceLogAvgAggregateInputType
  3581. /**
  3582. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3583. *
  3584. * Select which fields to sum
  3585. **/
  3586. _sum?: ManualRelanceLogSumAggregateInputType
  3587. /**
  3588. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3589. *
  3590. * Select which fields to find the minimum value
  3591. **/
  3592. _min?: ManualRelanceLogMinAggregateInputType
  3593. /**
  3594. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  3595. *
  3596. * Select which fields to find the maximum value
  3597. **/
  3598. _max?: ManualRelanceLogMaxAggregateInputType
  3599. }
  3600. export type GetManualRelanceLogAggregateType<T extends ManualRelanceLogAggregateArgs> = {
  3601. [P in keyof T & keyof AggregateManualRelanceLog]: P extends '_count' | 'count'
  3602. ? T[P] extends true
  3603. ? number
  3604. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3605. : GetScalarType<T[P], AggregateManualRelanceLog[P]>
  3606. }
  3607. export type ManualRelanceLogGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3608. where?: ManualRelanceLogWhereInput
  3609. orderBy?: ManualRelanceLogOrderByWithAggregationInput | ManualRelanceLogOrderByWithAggregationInput[]
  3610. by: ManualRelanceLogScalarFieldEnum[] | ManualRelanceLogScalarFieldEnum
  3611. having?: ManualRelanceLogScalarWhereWithAggregatesInput
  3612. take?: number
  3613. skip?: number
  3614. _count?: ManualRelanceLogCountAggregateInputType | true
  3615. _avg?: ManualRelanceLogAvgAggregateInputType
  3616. _sum?: ManualRelanceLogSumAggregateInputType
  3617. _min?: ManualRelanceLogMinAggregateInputType
  3618. _max?: ManualRelanceLogMaxAggregateInputType
  3619. }
  3620. export type ManualRelanceLogGroupByOutputType = {
  3621. id: string
  3622. workspaceId: string
  3623. subject: string
  3624. recipientCount: number
  3625. sentCount: number
  3626. failedCount: number
  3627. sentAt: Date
  3628. _count: ManualRelanceLogCountAggregateOutputType | null
  3629. _avg: ManualRelanceLogAvgAggregateOutputType | null
  3630. _sum: ManualRelanceLogSumAggregateOutputType | null
  3631. _min: ManualRelanceLogMinAggregateOutputType | null
  3632. _max: ManualRelanceLogMaxAggregateOutputType | null
  3633. }
  3634. type GetManualRelanceLogGroupByPayload<T extends ManualRelanceLogGroupByArgs> = Prisma.PrismaPromise<
  3635. Array<
  3636. PickEnumerable<ManualRelanceLogGroupByOutputType, T['by']> &
  3637. {
  3638. [P in ((keyof T) & (keyof ManualRelanceLogGroupByOutputType))]: P extends '_count'
  3639. ? T[P] extends boolean
  3640. ? number
  3641. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3642. : GetScalarType<T[P], ManualRelanceLogGroupByOutputType[P]>
  3643. }
  3644. >
  3645. >
  3646. export type ManualRelanceLogSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3647. id?: boolean
  3648. workspaceId?: boolean
  3649. subject?: boolean
  3650. recipientCount?: boolean
  3651. sentCount?: boolean
  3652. failedCount?: boolean
  3653. sentAt?: boolean
  3654. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3655. }, ExtArgs["result"]["manualRelanceLog"]>
  3656. export type ManualRelanceLogSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3657. id?: boolean
  3658. workspaceId?: boolean
  3659. subject?: boolean
  3660. recipientCount?: boolean
  3661. sentCount?: boolean
  3662. failedCount?: boolean
  3663. sentAt?: boolean
  3664. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3665. }, ExtArgs["result"]["manualRelanceLog"]>
  3666. export type ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  3667. id?: boolean
  3668. workspaceId?: boolean
  3669. subject?: boolean
  3670. recipientCount?: boolean
  3671. sentCount?: boolean
  3672. failedCount?: boolean
  3673. sentAt?: boolean
  3674. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3675. }, ExtArgs["result"]["manualRelanceLog"]>
  3676. export type ManualRelanceLogSelectScalar = {
  3677. id?: boolean
  3678. workspaceId?: boolean
  3679. subject?: boolean
  3680. recipientCount?: boolean
  3681. sentCount?: boolean
  3682. failedCount?: boolean
  3683. sentAt?: boolean
  3684. }
  3685. export type ManualRelanceLogOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "subject" | "recipientCount" | "sentCount" | "failedCount" | "sentAt", ExtArgs["result"]["manualRelanceLog"]>
  3686. export type ManualRelanceLogInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3687. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3688. }
  3689. export type ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3690. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3691. }
  3692. export type ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3693. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  3694. }
  3695. export type $ManualRelanceLogPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  3696. name: "ManualRelanceLog"
  3697. objects: {
  3698. workspace: Prisma.$WorkspacePayload<ExtArgs>
  3699. }
  3700. scalars: $Extensions.GetPayloadResult<{
  3701. id: string
  3702. workspaceId: string
  3703. subject: string
  3704. recipientCount: number
  3705. sentCount: number
  3706. failedCount: number
  3707. sentAt: Date
  3708. }, ExtArgs["result"]["manualRelanceLog"]>
  3709. composites: {}
  3710. }
  3711. type ManualRelanceLogGetPayload<S extends boolean | null | undefined | ManualRelanceLogDefaultArgs> = $Result.GetResult<Prisma.$ManualRelanceLogPayload, S>
  3712. type ManualRelanceLogCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  3713. Omit<ManualRelanceLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  3714. select?: ManualRelanceLogCountAggregateInputType | true
  3715. }
  3716. export interface ManualRelanceLogDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  3717. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ManualRelanceLog'], meta: { name: 'ManualRelanceLog' } }
  3718. /**
  3719. * Find zero or one ManualRelanceLog that matches the filter.
  3720. * @param {ManualRelanceLogFindUniqueArgs} args - Arguments to find a ManualRelanceLog
  3721. * @example
  3722. * // Get one ManualRelanceLog
  3723. * const manualRelanceLog = await prisma.manualRelanceLog.findUnique({
  3724. * where: {
  3725. * // ... provide filter here
  3726. * }
  3727. * })
  3728. */
  3729. findUnique<T extends ManualRelanceLogFindUniqueArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3730. /**
  3731. * Find one ManualRelanceLog that matches the filter or throw an error with `error.code='P2025'`
  3732. * if no matches were found.
  3733. * @param {ManualRelanceLogFindUniqueOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3734. * @example
  3735. * // Get one ManualRelanceLog
  3736. * const manualRelanceLog = await prisma.manualRelanceLog.findUniqueOrThrow({
  3737. * where: {
  3738. * // ... provide filter here
  3739. * }
  3740. * })
  3741. */
  3742. findUniqueOrThrow<T extends ManualRelanceLogFindUniqueOrThrowArgs>(args: SelectSubset<T, ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3743. /**
  3744. * Find the first ManualRelanceLog that matches the filter.
  3745. * Note, that providing `undefined` is treated as the value not being there.
  3746. * Read more here: https://pris.ly/d/null-undefined
  3747. * @param {ManualRelanceLogFindFirstArgs} args - Arguments to find a ManualRelanceLog
  3748. * @example
  3749. * // Get one ManualRelanceLog
  3750. * const manualRelanceLog = await prisma.manualRelanceLog.findFirst({
  3751. * where: {
  3752. * // ... provide filter here
  3753. * }
  3754. * })
  3755. */
  3756. findFirst<T extends ManualRelanceLogFindFirstArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  3757. /**
  3758. * Find the first ManualRelanceLog that matches the filter or
  3759. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  3760. * Note, that providing `undefined` is treated as the value not being there.
  3761. * Read more here: https://pris.ly/d/null-undefined
  3762. * @param {ManualRelanceLogFindFirstOrThrowArgs} args - Arguments to find a ManualRelanceLog
  3763. * @example
  3764. * // Get one ManualRelanceLog
  3765. * const manualRelanceLog = await prisma.manualRelanceLog.findFirstOrThrow({
  3766. * where: {
  3767. * // ... provide filter here
  3768. * }
  3769. * })
  3770. */
  3771. findFirstOrThrow<T extends ManualRelanceLogFindFirstOrThrowArgs>(args?: SelectSubset<T, ManualRelanceLogFindFirstOrThrowArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3772. /**
  3773. * Find zero or more ManualRelanceLogs that matches the filter.
  3774. * Note, that providing `undefined` is treated as the value not being there.
  3775. * Read more here: https://pris.ly/d/null-undefined
  3776. * @param {ManualRelanceLogFindManyArgs} args - Arguments to filter and select certain fields only.
  3777. * @example
  3778. * // Get all ManualRelanceLogs
  3779. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany()
  3780. *
  3781. * // Get first 10 ManualRelanceLogs
  3782. * const manualRelanceLogs = await prisma.manualRelanceLog.findMany({ take: 10 })
  3783. *
  3784. * // Only select the `id`
  3785. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.findMany({ select: { id: true } })
  3786. *
  3787. */
  3788. findMany<T extends ManualRelanceLogFindManyArgs>(args?: SelectSubset<T, ManualRelanceLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  3789. /**
  3790. * Create a ManualRelanceLog.
  3791. * @param {ManualRelanceLogCreateArgs} args - Arguments to create a ManualRelanceLog.
  3792. * @example
  3793. * // Create one ManualRelanceLog
  3794. * const ManualRelanceLog = await prisma.manualRelanceLog.create({
  3795. * data: {
  3796. * // ... data to create a ManualRelanceLog
  3797. * }
  3798. * })
  3799. *
  3800. */
  3801. create<T extends ManualRelanceLogCreateArgs>(args: SelectSubset<T, ManualRelanceLogCreateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3802. /**
  3803. * Create many ManualRelanceLogs.
  3804. * @param {ManualRelanceLogCreateManyArgs} args - Arguments to create many ManualRelanceLogs.
  3805. * @example
  3806. * // Create many ManualRelanceLogs
  3807. * const manualRelanceLog = await prisma.manualRelanceLog.createMany({
  3808. * data: [
  3809. * // ... provide data here
  3810. * ]
  3811. * })
  3812. *
  3813. */
  3814. createMany<T extends ManualRelanceLogCreateManyArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3815. /**
  3816. * Create many ManualRelanceLogs and returns the data saved in the database.
  3817. * @param {ManualRelanceLogCreateManyAndReturnArgs} args - Arguments to create many ManualRelanceLogs.
  3818. * @example
  3819. * // Create many ManualRelanceLogs
  3820. * const manualRelanceLog = await prisma.manualRelanceLog.createManyAndReturn({
  3821. * data: [
  3822. * // ... provide data here
  3823. * ]
  3824. * })
  3825. *
  3826. * // Create many ManualRelanceLogs and only return the `id`
  3827. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.createManyAndReturn({
  3828. * select: { id: true },
  3829. * data: [
  3830. * // ... provide data here
  3831. * ]
  3832. * })
  3833. * Note, that providing `undefined` is treated as the value not being there.
  3834. * Read more here: https://pris.ly/d/null-undefined
  3835. *
  3836. */
  3837. createManyAndReturn<T extends ManualRelanceLogCreateManyAndReturnArgs>(args?: SelectSubset<T, ManualRelanceLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  3838. /**
  3839. * Delete a ManualRelanceLog.
  3840. * @param {ManualRelanceLogDeleteArgs} args - Arguments to delete one ManualRelanceLog.
  3841. * @example
  3842. * // Delete one ManualRelanceLog
  3843. * const ManualRelanceLog = await prisma.manualRelanceLog.delete({
  3844. * where: {
  3845. * // ... filter to delete one ManualRelanceLog
  3846. * }
  3847. * })
  3848. *
  3849. */
  3850. delete<T extends ManualRelanceLogDeleteArgs>(args: SelectSubset<T, ManualRelanceLogDeleteArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3851. /**
  3852. * Update one ManualRelanceLog.
  3853. * @param {ManualRelanceLogUpdateArgs} args - Arguments to update one ManualRelanceLog.
  3854. * @example
  3855. * // Update one ManualRelanceLog
  3856. * const manualRelanceLog = await prisma.manualRelanceLog.update({
  3857. * where: {
  3858. * // ... provide filter here
  3859. * },
  3860. * data: {
  3861. * // ... provide data here
  3862. * }
  3863. * })
  3864. *
  3865. */
  3866. update<T extends ManualRelanceLogUpdateArgs>(args: SelectSubset<T, ManualRelanceLogUpdateArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3867. /**
  3868. * Delete zero or more ManualRelanceLogs.
  3869. * @param {ManualRelanceLogDeleteManyArgs} args - Arguments to filter ManualRelanceLogs to delete.
  3870. * @example
  3871. * // Delete a few ManualRelanceLogs
  3872. * const { count } = await prisma.manualRelanceLog.deleteMany({
  3873. * where: {
  3874. * // ... provide filter here
  3875. * }
  3876. * })
  3877. *
  3878. */
  3879. deleteMany<T extends ManualRelanceLogDeleteManyArgs>(args?: SelectSubset<T, ManualRelanceLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3880. /**
  3881. * Update zero or more ManualRelanceLogs.
  3882. * Note, that providing `undefined` is treated as the value not being there.
  3883. * Read more here: https://pris.ly/d/null-undefined
  3884. * @param {ManualRelanceLogUpdateManyArgs} args - Arguments to update one or more rows.
  3885. * @example
  3886. * // Update many ManualRelanceLogs
  3887. * const manualRelanceLog = await prisma.manualRelanceLog.updateMany({
  3888. * where: {
  3889. * // ... provide filter here
  3890. * },
  3891. * data: {
  3892. * // ... provide data here
  3893. * }
  3894. * })
  3895. *
  3896. */
  3897. updateMany<T extends ManualRelanceLogUpdateManyArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  3898. /**
  3899. * Update zero or more ManualRelanceLogs and returns the data updated in the database.
  3900. * @param {ManualRelanceLogUpdateManyAndReturnArgs} args - Arguments to update many ManualRelanceLogs.
  3901. * @example
  3902. * // Update many ManualRelanceLogs
  3903. * const manualRelanceLog = await prisma.manualRelanceLog.updateManyAndReturn({
  3904. * where: {
  3905. * // ... provide filter here
  3906. * },
  3907. * data: [
  3908. * // ... provide data here
  3909. * ]
  3910. * })
  3911. *
  3912. * // Update zero or more ManualRelanceLogs and only return the `id`
  3913. * const manualRelanceLogWithIdOnly = await prisma.manualRelanceLog.updateManyAndReturn({
  3914. * select: { id: true },
  3915. * where: {
  3916. * // ... provide filter here
  3917. * },
  3918. * data: [
  3919. * // ... provide data here
  3920. * ]
  3921. * })
  3922. * Note, that providing `undefined` is treated as the value not being there.
  3923. * Read more here: https://pris.ly/d/null-undefined
  3924. *
  3925. */
  3926. updateManyAndReturn<T extends ManualRelanceLogUpdateManyAndReturnArgs>(args: SelectSubset<T, ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  3927. /**
  3928. * Create or update one ManualRelanceLog.
  3929. * @param {ManualRelanceLogUpsertArgs} args - Arguments to update or create a ManualRelanceLog.
  3930. * @example
  3931. * // Update or create a ManualRelanceLog
  3932. * const manualRelanceLog = await prisma.manualRelanceLog.upsert({
  3933. * create: {
  3934. * // ... data to create a ManualRelanceLog
  3935. * },
  3936. * update: {
  3937. * // ... in case it already exists, update
  3938. * },
  3939. * where: {
  3940. * // ... the filter for the ManualRelanceLog we want to update
  3941. * }
  3942. * })
  3943. */
  3944. upsert<T extends ManualRelanceLogUpsertArgs>(args: SelectSubset<T, ManualRelanceLogUpsertArgs<ExtArgs>>): Prisma__ManualRelanceLogClient<$Result.GetResult<Prisma.$ManualRelanceLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  3945. /**
  3946. * Count the number of ManualRelanceLogs.
  3947. * Note, that providing `undefined` is treated as the value not being there.
  3948. * Read more here: https://pris.ly/d/null-undefined
  3949. * @param {ManualRelanceLogCountArgs} args - Arguments to filter ManualRelanceLogs to count.
  3950. * @example
  3951. * // Count the number of ManualRelanceLogs
  3952. * const count = await prisma.manualRelanceLog.count({
  3953. * where: {
  3954. * // ... the filter for the ManualRelanceLogs we want to count
  3955. * }
  3956. * })
  3957. **/
  3958. count<T extends ManualRelanceLogCountArgs>(
  3959. args?: Subset<T, ManualRelanceLogCountArgs>,
  3960. ): Prisma.PrismaPromise<
  3961. T extends $Utils.Record<'select', any>
  3962. ? T['select'] extends true
  3963. ? number
  3964. : GetScalarType<T['select'], ManualRelanceLogCountAggregateOutputType>
  3965. : number
  3966. >
  3967. /**
  3968. * Allows you to perform aggregations operations on a ManualRelanceLog.
  3969. * Note, that providing `undefined` is treated as the value not being there.
  3970. * Read more here: https://pris.ly/d/null-undefined
  3971. * @param {ManualRelanceLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  3972. * @example
  3973. * // Ordered by age ascending
  3974. * // Where email contains prisma.io
  3975. * // Limited to the 10 users
  3976. * const aggregations = await prisma.user.aggregate({
  3977. * _avg: {
  3978. * age: true,
  3979. * },
  3980. * where: {
  3981. * email: {
  3982. * contains: "prisma.io",
  3983. * },
  3984. * },
  3985. * orderBy: {
  3986. * age: "asc",
  3987. * },
  3988. * take: 10,
  3989. * })
  3990. **/
  3991. aggregate<T extends ManualRelanceLogAggregateArgs>(args: Subset<T, ManualRelanceLogAggregateArgs>): Prisma.PrismaPromise<GetManualRelanceLogAggregateType<T>>
  3992. /**
  3993. * Group by ManualRelanceLog.
  3994. * Note, that providing `undefined` is treated as the value not being there.
  3995. * Read more here: https://pris.ly/d/null-undefined
  3996. * @param {ManualRelanceLogGroupByArgs} args - Group by arguments.
  3997. * @example
  3998. * // Group by city, order by createdAt, get count
  3999. * const result = await prisma.user.groupBy({
  4000. * by: ['city', 'createdAt'],
  4001. * orderBy: {
  4002. * createdAt: true
  4003. * },
  4004. * _count: {
  4005. * _all: true
  4006. * },
  4007. * })
  4008. *
  4009. **/
  4010. groupBy<
  4011. T extends ManualRelanceLogGroupByArgs,
  4012. HasSelectOrTake extends Or<
  4013. Extends<'skip', Keys<T>>,
  4014. Extends<'take', Keys<T>>
  4015. >,
  4016. OrderByArg extends True extends HasSelectOrTake
  4017. ? { orderBy: ManualRelanceLogGroupByArgs['orderBy'] }
  4018. : { orderBy?: ManualRelanceLogGroupByArgs['orderBy'] },
  4019. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  4020. ByFields extends MaybeTupleToUnion<T['by']>,
  4021. ByValid extends Has<ByFields, OrderFields>,
  4022. HavingFields extends GetHavingFields<T['having']>,
  4023. HavingValid extends Has<ByFields, HavingFields>,
  4024. ByEmpty extends T['by'] extends never[] ? True : False,
  4025. InputErrors extends ByEmpty extends True
  4026. ? `Error: "by" must not be empty.`
  4027. : HavingValid extends False
  4028. ? {
  4029. [P in HavingFields]: P extends ByFields
  4030. ? never
  4031. : P extends string
  4032. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  4033. : [
  4034. Error,
  4035. 'Field ',
  4036. P,
  4037. ` in "having" needs to be provided in "by"`,
  4038. ]
  4039. }[HavingFields]
  4040. : 'take' extends Keys<T>
  4041. ? 'orderBy' extends Keys<T>
  4042. ? ByValid extends True
  4043. ? {}
  4044. : {
  4045. [P in OrderFields]: P extends ByFields
  4046. ? never
  4047. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4048. }[OrderFields]
  4049. : 'Error: If you provide "take", you also need to provide "orderBy"'
  4050. : 'skip' extends Keys<T>
  4051. ? 'orderBy' extends Keys<T>
  4052. ? ByValid extends True
  4053. ? {}
  4054. : {
  4055. [P in OrderFields]: P extends ByFields
  4056. ? never
  4057. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4058. }[OrderFields]
  4059. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  4060. : ByValid extends True
  4061. ? {}
  4062. : {
  4063. [P in OrderFields]: P extends ByFields
  4064. ? never
  4065. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  4066. }[OrderFields]
  4067. >(args: SubsetIntersection<T, ManualRelanceLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetManualRelanceLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  4068. /**
  4069. * Fields of the ManualRelanceLog model
  4070. */
  4071. readonly fields: ManualRelanceLogFieldRefs;
  4072. }
  4073. /**
  4074. * The delegate class that acts as a "Promise-like" for ManualRelanceLog.
  4075. * Why is this prefixed with `Prisma__`?
  4076. * Because we want to prevent naming conflicts as mentioned in
  4077. * https://github.com/prisma/prisma-client-js/issues/707
  4078. */
  4079. export interface Prisma__ManualRelanceLogClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  4080. readonly [Symbol.toStringTag]: "PrismaPromise"
  4081. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  4082. /**
  4083. * Attaches callbacks for the resolution and/or rejection of the Promise.
  4084. * @param onfulfilled The callback to execute when the Promise is resolved.
  4085. * @param onrejected The callback to execute when the Promise is rejected.
  4086. * @returns A Promise for the completion of which ever callback is executed.
  4087. */
  4088. 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>
  4089. /**
  4090. * Attaches a callback for only the rejection of the Promise.
  4091. * @param onrejected The callback to execute when the Promise is rejected.
  4092. * @returns A Promise for the completion of the callback.
  4093. */
  4094. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  4095. /**
  4096. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  4097. * resolved value cannot be modified from the callback.
  4098. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  4099. * @returns A Promise for the completion of the callback.
  4100. */
  4101. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  4102. }
  4103. /**
  4104. * Fields of the ManualRelanceLog model
  4105. */
  4106. interface ManualRelanceLogFieldRefs {
  4107. readonly id: FieldRef<"ManualRelanceLog", 'String'>
  4108. readonly workspaceId: FieldRef<"ManualRelanceLog", 'String'>
  4109. readonly subject: FieldRef<"ManualRelanceLog", 'String'>
  4110. readonly recipientCount: FieldRef<"ManualRelanceLog", 'Int'>
  4111. readonly sentCount: FieldRef<"ManualRelanceLog", 'Int'>
  4112. readonly failedCount: FieldRef<"ManualRelanceLog", 'Int'>
  4113. readonly sentAt: FieldRef<"ManualRelanceLog", 'DateTime'>
  4114. }
  4115. // Custom InputTypes
  4116. /**
  4117. * ManualRelanceLog findUnique
  4118. */
  4119. export type ManualRelanceLogFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4120. /**
  4121. * Select specific fields to fetch from the ManualRelanceLog
  4122. */
  4123. select?: ManualRelanceLogSelect<ExtArgs> | null
  4124. /**
  4125. * Omit specific fields from the ManualRelanceLog
  4126. */
  4127. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4128. /**
  4129. * Choose, which related nodes to fetch as well
  4130. */
  4131. include?: ManualRelanceLogInclude<ExtArgs> | null
  4132. /**
  4133. * Filter, which ManualRelanceLog to fetch.
  4134. */
  4135. where: ManualRelanceLogWhereUniqueInput
  4136. }
  4137. /**
  4138. * ManualRelanceLog findUniqueOrThrow
  4139. */
  4140. export type ManualRelanceLogFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4141. /**
  4142. * Select specific fields to fetch from the ManualRelanceLog
  4143. */
  4144. select?: ManualRelanceLogSelect<ExtArgs> | null
  4145. /**
  4146. * Omit specific fields from the ManualRelanceLog
  4147. */
  4148. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4149. /**
  4150. * Choose, which related nodes to fetch as well
  4151. */
  4152. include?: ManualRelanceLogInclude<ExtArgs> | null
  4153. /**
  4154. * Filter, which ManualRelanceLog to fetch.
  4155. */
  4156. where: ManualRelanceLogWhereUniqueInput
  4157. }
  4158. /**
  4159. * ManualRelanceLog findFirst
  4160. */
  4161. export type ManualRelanceLogFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4162. /**
  4163. * Select specific fields to fetch from the ManualRelanceLog
  4164. */
  4165. select?: ManualRelanceLogSelect<ExtArgs> | null
  4166. /**
  4167. * Omit specific fields from the ManualRelanceLog
  4168. */
  4169. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4170. /**
  4171. * Choose, which related nodes to fetch as well
  4172. */
  4173. include?: ManualRelanceLogInclude<ExtArgs> | null
  4174. /**
  4175. * Filter, which ManualRelanceLog to fetch.
  4176. */
  4177. where?: ManualRelanceLogWhereInput
  4178. /**
  4179. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4180. *
  4181. * Determine the order of ManualRelanceLogs to fetch.
  4182. */
  4183. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4184. /**
  4185. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4186. *
  4187. * Sets the position for searching for ManualRelanceLogs.
  4188. */
  4189. cursor?: ManualRelanceLogWhereUniqueInput
  4190. /**
  4191. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4192. *
  4193. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4194. */
  4195. take?: number
  4196. /**
  4197. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4198. *
  4199. * Skip the first `n` ManualRelanceLogs.
  4200. */
  4201. skip?: number
  4202. /**
  4203. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4204. *
  4205. * Filter by unique combinations of ManualRelanceLogs.
  4206. */
  4207. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4208. }
  4209. /**
  4210. * ManualRelanceLog findFirstOrThrow
  4211. */
  4212. export type ManualRelanceLogFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4213. /**
  4214. * Select specific fields to fetch from the ManualRelanceLog
  4215. */
  4216. select?: ManualRelanceLogSelect<ExtArgs> | null
  4217. /**
  4218. * Omit specific fields from the ManualRelanceLog
  4219. */
  4220. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4221. /**
  4222. * Choose, which related nodes to fetch as well
  4223. */
  4224. include?: ManualRelanceLogInclude<ExtArgs> | null
  4225. /**
  4226. * Filter, which ManualRelanceLog to fetch.
  4227. */
  4228. where?: ManualRelanceLogWhereInput
  4229. /**
  4230. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4231. *
  4232. * Determine the order of ManualRelanceLogs to fetch.
  4233. */
  4234. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4235. /**
  4236. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4237. *
  4238. * Sets the position for searching for ManualRelanceLogs.
  4239. */
  4240. cursor?: ManualRelanceLogWhereUniqueInput
  4241. /**
  4242. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4243. *
  4244. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4245. */
  4246. take?: number
  4247. /**
  4248. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4249. *
  4250. * Skip the first `n` ManualRelanceLogs.
  4251. */
  4252. skip?: number
  4253. /**
  4254. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  4255. *
  4256. * Filter by unique combinations of ManualRelanceLogs.
  4257. */
  4258. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4259. }
  4260. /**
  4261. * ManualRelanceLog findMany
  4262. */
  4263. export type ManualRelanceLogFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4264. /**
  4265. * Select specific fields to fetch from the ManualRelanceLog
  4266. */
  4267. select?: ManualRelanceLogSelect<ExtArgs> | null
  4268. /**
  4269. * Omit specific fields from the ManualRelanceLog
  4270. */
  4271. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4272. /**
  4273. * Choose, which related nodes to fetch as well
  4274. */
  4275. include?: ManualRelanceLogInclude<ExtArgs> | null
  4276. /**
  4277. * Filter, which ManualRelanceLogs to fetch.
  4278. */
  4279. where?: ManualRelanceLogWhereInput
  4280. /**
  4281. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4282. *
  4283. * Determine the order of ManualRelanceLogs to fetch.
  4284. */
  4285. orderBy?: ManualRelanceLogOrderByWithRelationInput | ManualRelanceLogOrderByWithRelationInput[]
  4286. /**
  4287. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4288. *
  4289. * Sets the position for listing ManualRelanceLogs.
  4290. */
  4291. cursor?: ManualRelanceLogWhereUniqueInput
  4292. /**
  4293. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4294. *
  4295. * Take `±n` ManualRelanceLogs from the position of the cursor.
  4296. */
  4297. take?: number
  4298. /**
  4299. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4300. *
  4301. * Skip the first `n` ManualRelanceLogs.
  4302. */
  4303. skip?: number
  4304. distinct?: ManualRelanceLogScalarFieldEnum | ManualRelanceLogScalarFieldEnum[]
  4305. }
  4306. /**
  4307. * ManualRelanceLog create
  4308. */
  4309. export type ManualRelanceLogCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4310. /**
  4311. * Select specific fields to fetch from the ManualRelanceLog
  4312. */
  4313. select?: ManualRelanceLogSelect<ExtArgs> | null
  4314. /**
  4315. * Omit specific fields from the ManualRelanceLog
  4316. */
  4317. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4318. /**
  4319. * Choose, which related nodes to fetch as well
  4320. */
  4321. include?: ManualRelanceLogInclude<ExtArgs> | null
  4322. /**
  4323. * The data needed to create a ManualRelanceLog.
  4324. */
  4325. data: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4326. }
  4327. /**
  4328. * ManualRelanceLog createMany
  4329. */
  4330. export type ManualRelanceLogCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4331. /**
  4332. * The data used to create many ManualRelanceLogs.
  4333. */
  4334. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4335. skipDuplicates?: boolean
  4336. }
  4337. /**
  4338. * ManualRelanceLog createManyAndReturn
  4339. */
  4340. export type ManualRelanceLogCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4341. /**
  4342. * Select specific fields to fetch from the ManualRelanceLog
  4343. */
  4344. select?: ManualRelanceLogSelectCreateManyAndReturn<ExtArgs> | null
  4345. /**
  4346. * Omit specific fields from the ManualRelanceLog
  4347. */
  4348. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4349. /**
  4350. * The data used to create many ManualRelanceLogs.
  4351. */
  4352. data: ManualRelanceLogCreateManyInput | ManualRelanceLogCreateManyInput[]
  4353. skipDuplicates?: boolean
  4354. /**
  4355. * Choose, which related nodes to fetch as well
  4356. */
  4357. include?: ManualRelanceLogIncludeCreateManyAndReturn<ExtArgs> | null
  4358. }
  4359. /**
  4360. * ManualRelanceLog update
  4361. */
  4362. export type ManualRelanceLogUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4363. /**
  4364. * Select specific fields to fetch from the ManualRelanceLog
  4365. */
  4366. select?: ManualRelanceLogSelect<ExtArgs> | null
  4367. /**
  4368. * Omit specific fields from the ManualRelanceLog
  4369. */
  4370. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4371. /**
  4372. * Choose, which related nodes to fetch as well
  4373. */
  4374. include?: ManualRelanceLogInclude<ExtArgs> | null
  4375. /**
  4376. * The data needed to update a ManualRelanceLog.
  4377. */
  4378. data: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4379. /**
  4380. * Choose, which ManualRelanceLog to update.
  4381. */
  4382. where: ManualRelanceLogWhereUniqueInput
  4383. }
  4384. /**
  4385. * ManualRelanceLog updateMany
  4386. */
  4387. export type ManualRelanceLogUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4388. /**
  4389. * The data used to update ManualRelanceLogs.
  4390. */
  4391. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4392. /**
  4393. * Filter which ManualRelanceLogs to update
  4394. */
  4395. where?: ManualRelanceLogWhereInput
  4396. /**
  4397. * Limit how many ManualRelanceLogs to update.
  4398. */
  4399. limit?: number
  4400. }
  4401. /**
  4402. * ManualRelanceLog updateManyAndReturn
  4403. */
  4404. export type ManualRelanceLogUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4405. /**
  4406. * Select specific fields to fetch from the ManualRelanceLog
  4407. */
  4408. select?: ManualRelanceLogSelectUpdateManyAndReturn<ExtArgs> | null
  4409. /**
  4410. * Omit specific fields from the ManualRelanceLog
  4411. */
  4412. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4413. /**
  4414. * The data used to update ManualRelanceLogs.
  4415. */
  4416. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyInput>
  4417. /**
  4418. * Filter which ManualRelanceLogs to update
  4419. */
  4420. where?: ManualRelanceLogWhereInput
  4421. /**
  4422. * Limit how many ManualRelanceLogs to update.
  4423. */
  4424. limit?: number
  4425. /**
  4426. * Choose, which related nodes to fetch as well
  4427. */
  4428. include?: ManualRelanceLogIncludeUpdateManyAndReturn<ExtArgs> | null
  4429. }
  4430. /**
  4431. * ManualRelanceLog upsert
  4432. */
  4433. export type ManualRelanceLogUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4434. /**
  4435. * Select specific fields to fetch from the ManualRelanceLog
  4436. */
  4437. select?: ManualRelanceLogSelect<ExtArgs> | null
  4438. /**
  4439. * Omit specific fields from the ManualRelanceLog
  4440. */
  4441. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4442. /**
  4443. * Choose, which related nodes to fetch as well
  4444. */
  4445. include?: ManualRelanceLogInclude<ExtArgs> | null
  4446. /**
  4447. * The filter to search for the ManualRelanceLog to update in case it exists.
  4448. */
  4449. where: ManualRelanceLogWhereUniqueInput
  4450. /**
  4451. * In case the ManualRelanceLog found by the `where` argument doesn't exist, create a new ManualRelanceLog with this data.
  4452. */
  4453. create: XOR<ManualRelanceLogCreateInput, ManualRelanceLogUncheckedCreateInput>
  4454. /**
  4455. * In case the ManualRelanceLog was found with the provided `where` argument, update it with this data.
  4456. */
  4457. update: XOR<ManualRelanceLogUpdateInput, ManualRelanceLogUncheckedUpdateInput>
  4458. }
  4459. /**
  4460. * ManualRelanceLog delete
  4461. */
  4462. export type ManualRelanceLogDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4463. /**
  4464. * Select specific fields to fetch from the ManualRelanceLog
  4465. */
  4466. select?: ManualRelanceLogSelect<ExtArgs> | null
  4467. /**
  4468. * Omit specific fields from the ManualRelanceLog
  4469. */
  4470. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4471. /**
  4472. * Choose, which related nodes to fetch as well
  4473. */
  4474. include?: ManualRelanceLogInclude<ExtArgs> | null
  4475. /**
  4476. * Filter which ManualRelanceLog to delete.
  4477. */
  4478. where: ManualRelanceLogWhereUniqueInput
  4479. }
  4480. /**
  4481. * ManualRelanceLog deleteMany
  4482. */
  4483. export type ManualRelanceLogDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4484. /**
  4485. * Filter which ManualRelanceLogs to delete
  4486. */
  4487. where?: ManualRelanceLogWhereInput
  4488. /**
  4489. * Limit how many ManualRelanceLogs to delete.
  4490. */
  4491. limit?: number
  4492. }
  4493. /**
  4494. * ManualRelanceLog without action
  4495. */
  4496. export type ManualRelanceLogDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4497. /**
  4498. * Select specific fields to fetch from the ManualRelanceLog
  4499. */
  4500. select?: ManualRelanceLogSelect<ExtArgs> | null
  4501. /**
  4502. * Omit specific fields from the ManualRelanceLog
  4503. */
  4504. omit?: ManualRelanceLogOmit<ExtArgs> | null
  4505. /**
  4506. * Choose, which related nodes to fetch as well
  4507. */
  4508. include?: ManualRelanceLogInclude<ExtArgs> | null
  4509. }
  4510. /**
  4511. * Model Contributor
  4512. */
  4513. export type AggregateContributor = {
  4514. _count: ContributorCountAggregateOutputType | null
  4515. _min: ContributorMinAggregateOutputType | null
  4516. _max: ContributorMaxAggregateOutputType | null
  4517. }
  4518. export type ContributorMinAggregateOutputType = {
  4519. id: string | null
  4520. workspaceId: string | null
  4521. email: string | null
  4522. service: string | null
  4523. status: $Enums.ContributorStatus | null
  4524. invitedAt: Date | null
  4525. lastRemindedAt: Date | null
  4526. createdAt: Date | null
  4527. }
  4528. export type ContributorMaxAggregateOutputType = {
  4529. id: string | null
  4530. workspaceId: string | null
  4531. email: string | null
  4532. service: string | null
  4533. status: $Enums.ContributorStatus | null
  4534. invitedAt: Date | null
  4535. lastRemindedAt: Date | null
  4536. createdAt: Date | null
  4537. }
  4538. export type ContributorCountAggregateOutputType = {
  4539. id: number
  4540. workspaceId: number
  4541. email: number
  4542. service: number
  4543. status: number
  4544. invitedAt: number
  4545. lastRemindedAt: number
  4546. createdAt: number
  4547. _all: number
  4548. }
  4549. export type ContributorMinAggregateInputType = {
  4550. id?: true
  4551. workspaceId?: true
  4552. email?: true
  4553. service?: true
  4554. status?: true
  4555. invitedAt?: true
  4556. lastRemindedAt?: true
  4557. createdAt?: true
  4558. }
  4559. export type ContributorMaxAggregateInputType = {
  4560. id?: true
  4561. workspaceId?: true
  4562. email?: true
  4563. service?: true
  4564. status?: true
  4565. invitedAt?: true
  4566. lastRemindedAt?: true
  4567. createdAt?: true
  4568. }
  4569. export type ContributorCountAggregateInputType = {
  4570. id?: true
  4571. workspaceId?: true
  4572. email?: true
  4573. service?: true
  4574. status?: true
  4575. invitedAt?: true
  4576. lastRemindedAt?: true
  4577. createdAt?: true
  4578. _all?: true
  4579. }
  4580. export type ContributorAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4581. /**
  4582. * Filter which Contributor to aggregate.
  4583. */
  4584. where?: ContributorWhereInput
  4585. /**
  4586. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  4587. *
  4588. * Determine the order of Contributors to fetch.
  4589. */
  4590. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  4591. /**
  4592. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  4593. *
  4594. * Sets the start position
  4595. */
  4596. cursor?: ContributorWhereUniqueInput
  4597. /**
  4598. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4599. *
  4600. * Take `±n` Contributors from the position of the cursor.
  4601. */
  4602. take?: number
  4603. /**
  4604. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  4605. *
  4606. * Skip the first `n` Contributors.
  4607. */
  4608. skip?: number
  4609. /**
  4610. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4611. *
  4612. * Count returned Contributors
  4613. **/
  4614. _count?: true | ContributorCountAggregateInputType
  4615. /**
  4616. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4617. *
  4618. * Select which fields to find the minimum value
  4619. **/
  4620. _min?: ContributorMinAggregateInputType
  4621. /**
  4622. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  4623. *
  4624. * Select which fields to find the maximum value
  4625. **/
  4626. _max?: ContributorMaxAggregateInputType
  4627. }
  4628. export type GetContributorAggregateType<T extends ContributorAggregateArgs> = {
  4629. [P in keyof T & keyof AggregateContributor]: P extends '_count' | 'count'
  4630. ? T[P] extends true
  4631. ? number
  4632. : GetScalarType<T[P], AggregateContributor[P]>
  4633. : GetScalarType<T[P], AggregateContributor[P]>
  4634. }
  4635. export type ContributorGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4636. where?: ContributorWhereInput
  4637. orderBy?: ContributorOrderByWithAggregationInput | ContributorOrderByWithAggregationInput[]
  4638. by: ContributorScalarFieldEnum[] | ContributorScalarFieldEnum
  4639. having?: ContributorScalarWhereWithAggregatesInput
  4640. take?: number
  4641. skip?: number
  4642. _count?: ContributorCountAggregateInputType | true
  4643. _min?: ContributorMinAggregateInputType
  4644. _max?: ContributorMaxAggregateInputType
  4645. }
  4646. export type ContributorGroupByOutputType = {
  4647. id: string
  4648. workspaceId: string
  4649. email: string
  4650. service: string | null
  4651. status: $Enums.ContributorStatus
  4652. invitedAt: Date
  4653. lastRemindedAt: Date | null
  4654. createdAt: Date
  4655. _count: ContributorCountAggregateOutputType | null
  4656. _min: ContributorMinAggregateOutputType | null
  4657. _max: ContributorMaxAggregateOutputType | null
  4658. }
  4659. type GetContributorGroupByPayload<T extends ContributorGroupByArgs> = Prisma.PrismaPromise<
  4660. Array<
  4661. PickEnumerable<ContributorGroupByOutputType, T['by']> &
  4662. {
  4663. [P in ((keyof T) & (keyof ContributorGroupByOutputType))]: P extends '_count'
  4664. ? T[P] extends boolean
  4665. ? number
  4666. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4667. : GetScalarType<T[P], ContributorGroupByOutputType[P]>
  4668. }
  4669. >
  4670. >
  4671. export type ContributorSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4672. id?: boolean
  4673. workspaceId?: boolean
  4674. email?: boolean
  4675. service?: boolean
  4676. status?: boolean
  4677. invitedAt?: boolean
  4678. lastRemindedAt?: boolean
  4679. createdAt?: boolean
  4680. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4681. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4682. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4683. }, ExtArgs["result"]["contributor"]>
  4684. export type ContributorSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4685. id?: boolean
  4686. workspaceId?: boolean
  4687. email?: boolean
  4688. service?: boolean
  4689. status?: boolean
  4690. invitedAt?: boolean
  4691. lastRemindedAt?: boolean
  4692. createdAt?: boolean
  4693. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4694. }, ExtArgs["result"]["contributor"]>
  4695. export type ContributorSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  4696. id?: boolean
  4697. workspaceId?: boolean
  4698. email?: boolean
  4699. service?: boolean
  4700. status?: boolean
  4701. invitedAt?: boolean
  4702. lastRemindedAt?: boolean
  4703. createdAt?: boolean
  4704. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4705. }, ExtArgs["result"]["contributor"]>
  4706. export type ContributorSelectScalar = {
  4707. id?: boolean
  4708. workspaceId?: boolean
  4709. email?: boolean
  4710. service?: boolean
  4711. status?: boolean
  4712. invitedAt?: boolean
  4713. lastRemindedAt?: boolean
  4714. createdAt?: boolean
  4715. }
  4716. export type ContributorOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "email" | "service" | "status" | "invitedAt" | "lastRemindedAt" | "createdAt", ExtArgs["result"]["contributor"]>
  4717. export type ContributorInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4718. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4719. ideas?: boolean | Contributor$ideasArgs<ExtArgs>
  4720. _count?: boolean | ContributorCountOutputTypeDefaultArgs<ExtArgs>
  4721. }
  4722. export type ContributorIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4723. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4724. }
  4725. export type ContributorIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4726. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  4727. }
  4728. export type $ContributorPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  4729. name: "Contributor"
  4730. objects: {
  4731. workspace: Prisma.$WorkspacePayload<ExtArgs>
  4732. ideas: Prisma.$IdeaPayload<ExtArgs>[]
  4733. }
  4734. scalars: $Extensions.GetPayloadResult<{
  4735. id: string
  4736. workspaceId: string
  4737. email: string
  4738. /**
  4739. * Service / direction (optionnel), saisi à l'invitation ou éditable, ciblage des relances manuelles.
  4740. */
  4741. service: string | null
  4742. status: $Enums.ContributorStatus
  4743. invitedAt: Date
  4744. lastRemindedAt: Date | null
  4745. createdAt: Date
  4746. }, ExtArgs["result"]["contributor"]>
  4747. composites: {}
  4748. }
  4749. type ContributorGetPayload<S extends boolean | null | undefined | ContributorDefaultArgs> = $Result.GetResult<Prisma.$ContributorPayload, S>
  4750. type ContributorCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  4751. Omit<ContributorFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  4752. select?: ContributorCountAggregateInputType | true
  4753. }
  4754. export interface ContributorDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  4755. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Contributor'], meta: { name: 'Contributor' } }
  4756. /**
  4757. * Find zero or one Contributor that matches the filter.
  4758. * @param {ContributorFindUniqueArgs} args - Arguments to find a Contributor
  4759. * @example
  4760. * // Get one Contributor
  4761. * const contributor = await prisma.contributor.findUnique({
  4762. * where: {
  4763. * // ... provide filter here
  4764. * }
  4765. * })
  4766. */
  4767. findUnique<T extends ContributorFindUniqueArgs>(args: SelectSubset<T, ContributorFindUniqueArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4768. /**
  4769. * Find one Contributor that matches the filter or throw an error with `error.code='P2025'`
  4770. * if no matches were found.
  4771. * @param {ContributorFindUniqueOrThrowArgs} args - Arguments to find a Contributor
  4772. * @example
  4773. * // Get one Contributor
  4774. * const contributor = await prisma.contributor.findUniqueOrThrow({
  4775. * where: {
  4776. * // ... provide filter here
  4777. * }
  4778. * })
  4779. */
  4780. findUniqueOrThrow<T extends ContributorFindUniqueOrThrowArgs>(args: SelectSubset<T, ContributorFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4781. /**
  4782. * Find the first Contributor that matches the filter.
  4783. * Note, that providing `undefined` is treated as the value not being there.
  4784. * Read more here: https://pris.ly/d/null-undefined
  4785. * @param {ContributorFindFirstArgs} args - Arguments to find a Contributor
  4786. * @example
  4787. * // Get one Contributor
  4788. * const contributor = await prisma.contributor.findFirst({
  4789. * where: {
  4790. * // ... provide filter here
  4791. * }
  4792. * })
  4793. */
  4794. findFirst<T extends ContributorFindFirstArgs>(args?: SelectSubset<T, ContributorFindFirstArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  4795. /**
  4796. * Find the first Contributor that matches the filter or
  4797. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  4798. * Note, that providing `undefined` is treated as the value not being there.
  4799. * Read more here: https://pris.ly/d/null-undefined
  4800. * @param {ContributorFindFirstOrThrowArgs} args - Arguments to find a Contributor
  4801. * @example
  4802. * // Get one Contributor
  4803. * const contributor = await prisma.contributor.findFirstOrThrow({
  4804. * where: {
  4805. * // ... provide filter here
  4806. * }
  4807. * })
  4808. */
  4809. findFirstOrThrow<T extends ContributorFindFirstOrThrowArgs>(args?: SelectSubset<T, ContributorFindFirstOrThrowArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4810. /**
  4811. * Find zero or more Contributors that matches the filter.
  4812. * Note, that providing `undefined` is treated as the value not being there.
  4813. * Read more here: https://pris.ly/d/null-undefined
  4814. * @param {ContributorFindManyArgs} args - Arguments to filter and select certain fields only.
  4815. * @example
  4816. * // Get all Contributors
  4817. * const contributors = await prisma.contributor.findMany()
  4818. *
  4819. * // Get first 10 Contributors
  4820. * const contributors = await prisma.contributor.findMany({ take: 10 })
  4821. *
  4822. * // Only select the `id`
  4823. * const contributorWithIdOnly = await prisma.contributor.findMany({ select: { id: true } })
  4824. *
  4825. */
  4826. findMany<T extends ContributorFindManyArgs>(args?: SelectSubset<T, ContributorFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  4827. /**
  4828. * Create a Contributor.
  4829. * @param {ContributorCreateArgs} args - Arguments to create a Contributor.
  4830. * @example
  4831. * // Create one Contributor
  4832. * const Contributor = await prisma.contributor.create({
  4833. * data: {
  4834. * // ... data to create a Contributor
  4835. * }
  4836. * })
  4837. *
  4838. */
  4839. create<T extends ContributorCreateArgs>(args: SelectSubset<T, ContributorCreateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4840. /**
  4841. * Create many Contributors.
  4842. * @param {ContributorCreateManyArgs} args - Arguments to create many Contributors.
  4843. * @example
  4844. * // Create many Contributors
  4845. * const contributor = await prisma.contributor.createMany({
  4846. * data: [
  4847. * // ... provide data here
  4848. * ]
  4849. * })
  4850. *
  4851. */
  4852. createMany<T extends ContributorCreateManyArgs>(args?: SelectSubset<T, ContributorCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4853. /**
  4854. * Create many Contributors and returns the data saved in the database.
  4855. * @param {ContributorCreateManyAndReturnArgs} args - Arguments to create many Contributors.
  4856. * @example
  4857. * // Create many Contributors
  4858. * const contributor = await prisma.contributor.createManyAndReturn({
  4859. * data: [
  4860. * // ... provide data here
  4861. * ]
  4862. * })
  4863. *
  4864. * // Create many Contributors and only return the `id`
  4865. * const contributorWithIdOnly = await prisma.contributor.createManyAndReturn({
  4866. * select: { id: true },
  4867. * data: [
  4868. * // ... provide data here
  4869. * ]
  4870. * })
  4871. * Note, that providing `undefined` is treated as the value not being there.
  4872. * Read more here: https://pris.ly/d/null-undefined
  4873. *
  4874. */
  4875. createManyAndReturn<T extends ContributorCreateManyAndReturnArgs>(args?: SelectSubset<T, ContributorCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  4876. /**
  4877. * Delete a Contributor.
  4878. * @param {ContributorDeleteArgs} args - Arguments to delete one Contributor.
  4879. * @example
  4880. * // Delete one Contributor
  4881. * const Contributor = await prisma.contributor.delete({
  4882. * where: {
  4883. * // ... filter to delete one Contributor
  4884. * }
  4885. * })
  4886. *
  4887. */
  4888. delete<T extends ContributorDeleteArgs>(args: SelectSubset<T, ContributorDeleteArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4889. /**
  4890. * Update one Contributor.
  4891. * @param {ContributorUpdateArgs} args - Arguments to update one Contributor.
  4892. * @example
  4893. * // Update one Contributor
  4894. * const contributor = await prisma.contributor.update({
  4895. * where: {
  4896. * // ... provide filter here
  4897. * },
  4898. * data: {
  4899. * // ... provide data here
  4900. * }
  4901. * })
  4902. *
  4903. */
  4904. update<T extends ContributorUpdateArgs>(args: SelectSubset<T, ContributorUpdateArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4905. /**
  4906. * Delete zero or more Contributors.
  4907. * @param {ContributorDeleteManyArgs} args - Arguments to filter Contributors to delete.
  4908. * @example
  4909. * // Delete a few Contributors
  4910. * const { count } = await prisma.contributor.deleteMany({
  4911. * where: {
  4912. * // ... provide filter here
  4913. * }
  4914. * })
  4915. *
  4916. */
  4917. deleteMany<T extends ContributorDeleteManyArgs>(args?: SelectSubset<T, ContributorDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4918. /**
  4919. * Update zero or more Contributors.
  4920. * Note, that providing `undefined` is treated as the value not being there.
  4921. * Read more here: https://pris.ly/d/null-undefined
  4922. * @param {ContributorUpdateManyArgs} args - Arguments to update one or more rows.
  4923. * @example
  4924. * // Update many Contributors
  4925. * const contributor = await prisma.contributor.updateMany({
  4926. * where: {
  4927. * // ... provide filter here
  4928. * },
  4929. * data: {
  4930. * // ... provide data here
  4931. * }
  4932. * })
  4933. *
  4934. */
  4935. updateMany<T extends ContributorUpdateManyArgs>(args: SelectSubset<T, ContributorUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  4936. /**
  4937. * Update zero or more Contributors and returns the data updated in the database.
  4938. * @param {ContributorUpdateManyAndReturnArgs} args - Arguments to update many Contributors.
  4939. * @example
  4940. * // Update many Contributors
  4941. * const contributor = await prisma.contributor.updateManyAndReturn({
  4942. * where: {
  4943. * // ... provide filter here
  4944. * },
  4945. * data: [
  4946. * // ... provide data here
  4947. * ]
  4948. * })
  4949. *
  4950. * // Update zero or more Contributors and only return the `id`
  4951. * const contributorWithIdOnly = await prisma.contributor.updateManyAndReturn({
  4952. * select: { id: true },
  4953. * where: {
  4954. * // ... provide filter here
  4955. * },
  4956. * data: [
  4957. * // ... provide data here
  4958. * ]
  4959. * })
  4960. * Note, that providing `undefined` is treated as the value not being there.
  4961. * Read more here: https://pris.ly/d/null-undefined
  4962. *
  4963. */
  4964. updateManyAndReturn<T extends ContributorUpdateManyAndReturnArgs>(args: SelectSubset<T, ContributorUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  4965. /**
  4966. * Create or update one Contributor.
  4967. * @param {ContributorUpsertArgs} args - Arguments to update or create a Contributor.
  4968. * @example
  4969. * // Update or create a Contributor
  4970. * const contributor = await prisma.contributor.upsert({
  4971. * create: {
  4972. * // ... data to create a Contributor
  4973. * },
  4974. * update: {
  4975. * // ... in case it already exists, update
  4976. * },
  4977. * where: {
  4978. * // ... the filter for the Contributor we want to update
  4979. * }
  4980. * })
  4981. */
  4982. upsert<T extends ContributorUpsertArgs>(args: SelectSubset<T, ContributorUpsertArgs<ExtArgs>>): Prisma__ContributorClient<$Result.GetResult<Prisma.$ContributorPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  4983. /**
  4984. * Count the number of Contributors.
  4985. * Note, that providing `undefined` is treated as the value not being there.
  4986. * Read more here: https://pris.ly/d/null-undefined
  4987. * @param {ContributorCountArgs} args - Arguments to filter Contributors to count.
  4988. * @example
  4989. * // Count the number of Contributors
  4990. * const count = await prisma.contributor.count({
  4991. * where: {
  4992. * // ... the filter for the Contributors we want to count
  4993. * }
  4994. * })
  4995. **/
  4996. count<T extends ContributorCountArgs>(
  4997. args?: Subset<T, ContributorCountArgs>,
  4998. ): Prisma.PrismaPromise<
  4999. T extends $Utils.Record<'select', any>
  5000. ? T['select'] extends true
  5001. ? number
  5002. : GetScalarType<T['select'], ContributorCountAggregateOutputType>
  5003. : number
  5004. >
  5005. /**
  5006. * Allows you to perform aggregations operations on a Contributor.
  5007. * Note, that providing `undefined` is treated as the value not being there.
  5008. * Read more here: https://pris.ly/d/null-undefined
  5009. * @param {ContributorAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  5010. * @example
  5011. * // Ordered by age ascending
  5012. * // Where email contains prisma.io
  5013. * // Limited to the 10 users
  5014. * const aggregations = await prisma.user.aggregate({
  5015. * _avg: {
  5016. * age: true,
  5017. * },
  5018. * where: {
  5019. * email: {
  5020. * contains: "prisma.io",
  5021. * },
  5022. * },
  5023. * orderBy: {
  5024. * age: "asc",
  5025. * },
  5026. * take: 10,
  5027. * })
  5028. **/
  5029. aggregate<T extends ContributorAggregateArgs>(args: Subset<T, ContributorAggregateArgs>): Prisma.PrismaPromise<GetContributorAggregateType<T>>
  5030. /**
  5031. * Group by Contributor.
  5032. * Note, that providing `undefined` is treated as the value not being there.
  5033. * Read more here: https://pris.ly/d/null-undefined
  5034. * @param {ContributorGroupByArgs} args - Group by arguments.
  5035. * @example
  5036. * // Group by city, order by createdAt, get count
  5037. * const result = await prisma.user.groupBy({
  5038. * by: ['city', 'createdAt'],
  5039. * orderBy: {
  5040. * createdAt: true
  5041. * },
  5042. * _count: {
  5043. * _all: true
  5044. * },
  5045. * })
  5046. *
  5047. **/
  5048. groupBy<
  5049. T extends ContributorGroupByArgs,
  5050. HasSelectOrTake extends Or<
  5051. Extends<'skip', Keys<T>>,
  5052. Extends<'take', Keys<T>>
  5053. >,
  5054. OrderByArg extends True extends HasSelectOrTake
  5055. ? { orderBy: ContributorGroupByArgs['orderBy'] }
  5056. : { orderBy?: ContributorGroupByArgs['orderBy'] },
  5057. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  5058. ByFields extends MaybeTupleToUnion<T['by']>,
  5059. ByValid extends Has<ByFields, OrderFields>,
  5060. HavingFields extends GetHavingFields<T['having']>,
  5061. HavingValid extends Has<ByFields, HavingFields>,
  5062. ByEmpty extends T['by'] extends never[] ? True : False,
  5063. InputErrors extends ByEmpty extends True
  5064. ? `Error: "by" must not be empty.`
  5065. : HavingValid extends False
  5066. ? {
  5067. [P in HavingFields]: P extends ByFields
  5068. ? never
  5069. : P extends string
  5070. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  5071. : [
  5072. Error,
  5073. 'Field ',
  5074. P,
  5075. ` in "having" needs to be provided in "by"`,
  5076. ]
  5077. }[HavingFields]
  5078. : 'take' extends Keys<T>
  5079. ? 'orderBy' extends Keys<T>
  5080. ? ByValid extends True
  5081. ? {}
  5082. : {
  5083. [P in OrderFields]: P extends ByFields
  5084. ? never
  5085. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  5086. }[OrderFields]
  5087. : 'Error: If you provide "take", you also need to provide "orderBy"'
  5088. : 'skip' extends Keys<T>
  5089. ? 'orderBy' extends Keys<T>
  5090. ? ByValid extends True
  5091. ? {}
  5092. : {
  5093. [P in OrderFields]: P extends ByFields
  5094. ? never
  5095. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  5096. }[OrderFields]
  5097. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  5098. : ByValid extends True
  5099. ? {}
  5100. : {
  5101. [P in OrderFields]: P extends ByFields
  5102. ? never
  5103. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  5104. }[OrderFields]
  5105. >(args: SubsetIntersection<T, ContributorGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContributorGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  5106. /**
  5107. * Fields of the Contributor model
  5108. */
  5109. readonly fields: ContributorFieldRefs;
  5110. }
  5111. /**
  5112. * The delegate class that acts as a "Promise-like" for Contributor.
  5113. * Why is this prefixed with `Prisma__`?
  5114. * Because we want to prevent naming conflicts as mentioned in
  5115. * https://github.com/prisma/prisma-client-js/issues/707
  5116. */
  5117. export interface Prisma__ContributorClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  5118. readonly [Symbol.toStringTag]: "PrismaPromise"
  5119. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  5120. ideas<T extends Contributor$ideasArgs<ExtArgs> = {}>(args?: Subset<T, Contributor$ideasArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  5121. /**
  5122. * Attaches callbacks for the resolution and/or rejection of the Promise.
  5123. * @param onfulfilled The callback to execute when the Promise is resolved.
  5124. * @param onrejected The callback to execute when the Promise is rejected.
  5125. * @returns A Promise for the completion of which ever callback is executed.
  5126. */
  5127. 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>
  5128. /**
  5129. * Attaches a callback for only the rejection of the Promise.
  5130. * @param onrejected The callback to execute when the Promise is rejected.
  5131. * @returns A Promise for the completion of the callback.
  5132. */
  5133. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  5134. /**
  5135. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  5136. * resolved value cannot be modified from the callback.
  5137. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  5138. * @returns A Promise for the completion of the callback.
  5139. */
  5140. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  5141. }
  5142. /**
  5143. * Fields of the Contributor model
  5144. */
  5145. interface ContributorFieldRefs {
  5146. readonly id: FieldRef<"Contributor", 'String'>
  5147. readonly workspaceId: FieldRef<"Contributor", 'String'>
  5148. readonly email: FieldRef<"Contributor", 'String'>
  5149. readonly service: FieldRef<"Contributor", 'String'>
  5150. readonly status: FieldRef<"Contributor", 'ContributorStatus'>
  5151. readonly invitedAt: FieldRef<"Contributor", 'DateTime'>
  5152. readonly lastRemindedAt: FieldRef<"Contributor", 'DateTime'>
  5153. readonly createdAt: FieldRef<"Contributor", 'DateTime'>
  5154. }
  5155. // Custom InputTypes
  5156. /**
  5157. * Contributor findUnique
  5158. */
  5159. export type ContributorFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5160. /**
  5161. * Select specific fields to fetch from the Contributor
  5162. */
  5163. select?: ContributorSelect<ExtArgs> | null
  5164. /**
  5165. * Omit specific fields from the Contributor
  5166. */
  5167. omit?: ContributorOmit<ExtArgs> | null
  5168. /**
  5169. * Choose, which related nodes to fetch as well
  5170. */
  5171. include?: ContributorInclude<ExtArgs> | null
  5172. /**
  5173. * Filter, which Contributor to fetch.
  5174. */
  5175. where: ContributorWhereUniqueInput
  5176. }
  5177. /**
  5178. * Contributor findUniqueOrThrow
  5179. */
  5180. export type ContributorFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5181. /**
  5182. * Select specific fields to fetch from the Contributor
  5183. */
  5184. select?: ContributorSelect<ExtArgs> | null
  5185. /**
  5186. * Omit specific fields from the Contributor
  5187. */
  5188. omit?: ContributorOmit<ExtArgs> | null
  5189. /**
  5190. * Choose, which related nodes to fetch as well
  5191. */
  5192. include?: ContributorInclude<ExtArgs> | null
  5193. /**
  5194. * Filter, which Contributor to fetch.
  5195. */
  5196. where: ContributorWhereUniqueInput
  5197. }
  5198. /**
  5199. * Contributor findFirst
  5200. */
  5201. export type ContributorFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5202. /**
  5203. * Select specific fields to fetch from the Contributor
  5204. */
  5205. select?: ContributorSelect<ExtArgs> | null
  5206. /**
  5207. * Omit specific fields from the Contributor
  5208. */
  5209. omit?: ContributorOmit<ExtArgs> | null
  5210. /**
  5211. * Choose, which related nodes to fetch as well
  5212. */
  5213. include?: ContributorInclude<ExtArgs> | null
  5214. /**
  5215. * Filter, which Contributor to fetch.
  5216. */
  5217. where?: ContributorWhereInput
  5218. /**
  5219. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5220. *
  5221. * Determine the order of Contributors to fetch.
  5222. */
  5223. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5224. /**
  5225. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5226. *
  5227. * Sets the position for searching for Contributors.
  5228. */
  5229. cursor?: ContributorWhereUniqueInput
  5230. /**
  5231. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5232. *
  5233. * Take `±n` Contributors from the position of the cursor.
  5234. */
  5235. take?: number
  5236. /**
  5237. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5238. *
  5239. * Skip the first `n` Contributors.
  5240. */
  5241. skip?: number
  5242. /**
  5243. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5244. *
  5245. * Filter by unique combinations of Contributors.
  5246. */
  5247. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5248. }
  5249. /**
  5250. * Contributor findFirstOrThrow
  5251. */
  5252. export type ContributorFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5253. /**
  5254. * Select specific fields to fetch from the Contributor
  5255. */
  5256. select?: ContributorSelect<ExtArgs> | null
  5257. /**
  5258. * Omit specific fields from the Contributor
  5259. */
  5260. omit?: ContributorOmit<ExtArgs> | null
  5261. /**
  5262. * Choose, which related nodes to fetch as well
  5263. */
  5264. include?: ContributorInclude<ExtArgs> | null
  5265. /**
  5266. * Filter, which Contributor to fetch.
  5267. */
  5268. where?: ContributorWhereInput
  5269. /**
  5270. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5271. *
  5272. * Determine the order of Contributors to fetch.
  5273. */
  5274. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5275. /**
  5276. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5277. *
  5278. * Sets the position for searching for Contributors.
  5279. */
  5280. cursor?: ContributorWhereUniqueInput
  5281. /**
  5282. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5283. *
  5284. * Take `±n` Contributors from the position of the cursor.
  5285. */
  5286. take?: number
  5287. /**
  5288. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5289. *
  5290. * Skip the first `n` Contributors.
  5291. */
  5292. skip?: number
  5293. /**
  5294. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  5295. *
  5296. * Filter by unique combinations of Contributors.
  5297. */
  5298. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5299. }
  5300. /**
  5301. * Contributor findMany
  5302. */
  5303. export type ContributorFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5304. /**
  5305. * Select specific fields to fetch from the Contributor
  5306. */
  5307. select?: ContributorSelect<ExtArgs> | null
  5308. /**
  5309. * Omit specific fields from the Contributor
  5310. */
  5311. omit?: ContributorOmit<ExtArgs> | null
  5312. /**
  5313. * Choose, which related nodes to fetch as well
  5314. */
  5315. include?: ContributorInclude<ExtArgs> | null
  5316. /**
  5317. * Filter, which Contributors to fetch.
  5318. */
  5319. where?: ContributorWhereInput
  5320. /**
  5321. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5322. *
  5323. * Determine the order of Contributors to fetch.
  5324. */
  5325. orderBy?: ContributorOrderByWithRelationInput | ContributorOrderByWithRelationInput[]
  5326. /**
  5327. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5328. *
  5329. * Sets the position for listing Contributors.
  5330. */
  5331. cursor?: ContributorWhereUniqueInput
  5332. /**
  5333. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5334. *
  5335. * Take `±n` Contributors from the position of the cursor.
  5336. */
  5337. take?: number
  5338. /**
  5339. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5340. *
  5341. * Skip the first `n` Contributors.
  5342. */
  5343. skip?: number
  5344. distinct?: ContributorScalarFieldEnum | ContributorScalarFieldEnum[]
  5345. }
  5346. /**
  5347. * Contributor create
  5348. */
  5349. export type ContributorCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5350. /**
  5351. * Select specific fields to fetch from the Contributor
  5352. */
  5353. select?: ContributorSelect<ExtArgs> | null
  5354. /**
  5355. * Omit specific fields from the Contributor
  5356. */
  5357. omit?: ContributorOmit<ExtArgs> | null
  5358. /**
  5359. * Choose, which related nodes to fetch as well
  5360. */
  5361. include?: ContributorInclude<ExtArgs> | null
  5362. /**
  5363. * The data needed to create a Contributor.
  5364. */
  5365. data: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5366. }
  5367. /**
  5368. * Contributor createMany
  5369. */
  5370. export type ContributorCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5371. /**
  5372. * The data used to create many Contributors.
  5373. */
  5374. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5375. skipDuplicates?: boolean
  5376. }
  5377. /**
  5378. * Contributor createManyAndReturn
  5379. */
  5380. export type ContributorCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5381. /**
  5382. * Select specific fields to fetch from the Contributor
  5383. */
  5384. select?: ContributorSelectCreateManyAndReturn<ExtArgs> | null
  5385. /**
  5386. * Omit specific fields from the Contributor
  5387. */
  5388. omit?: ContributorOmit<ExtArgs> | null
  5389. /**
  5390. * The data used to create many Contributors.
  5391. */
  5392. data: ContributorCreateManyInput | ContributorCreateManyInput[]
  5393. skipDuplicates?: boolean
  5394. /**
  5395. * Choose, which related nodes to fetch as well
  5396. */
  5397. include?: ContributorIncludeCreateManyAndReturn<ExtArgs> | null
  5398. }
  5399. /**
  5400. * Contributor update
  5401. */
  5402. export type ContributorUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5403. /**
  5404. * Select specific fields to fetch from the Contributor
  5405. */
  5406. select?: ContributorSelect<ExtArgs> | null
  5407. /**
  5408. * Omit specific fields from the Contributor
  5409. */
  5410. omit?: ContributorOmit<ExtArgs> | null
  5411. /**
  5412. * Choose, which related nodes to fetch as well
  5413. */
  5414. include?: ContributorInclude<ExtArgs> | null
  5415. /**
  5416. * The data needed to update a Contributor.
  5417. */
  5418. data: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5419. /**
  5420. * Choose, which Contributor to update.
  5421. */
  5422. where: ContributorWhereUniqueInput
  5423. }
  5424. /**
  5425. * Contributor updateMany
  5426. */
  5427. export type ContributorUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5428. /**
  5429. * The data used to update Contributors.
  5430. */
  5431. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5432. /**
  5433. * Filter which Contributors to update
  5434. */
  5435. where?: ContributorWhereInput
  5436. /**
  5437. * Limit how many Contributors to update.
  5438. */
  5439. limit?: number
  5440. }
  5441. /**
  5442. * Contributor updateManyAndReturn
  5443. */
  5444. export type ContributorUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5445. /**
  5446. * Select specific fields to fetch from the Contributor
  5447. */
  5448. select?: ContributorSelectUpdateManyAndReturn<ExtArgs> | null
  5449. /**
  5450. * Omit specific fields from the Contributor
  5451. */
  5452. omit?: ContributorOmit<ExtArgs> | null
  5453. /**
  5454. * The data used to update Contributors.
  5455. */
  5456. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyInput>
  5457. /**
  5458. * Filter which Contributors to update
  5459. */
  5460. where?: ContributorWhereInput
  5461. /**
  5462. * Limit how many Contributors to update.
  5463. */
  5464. limit?: number
  5465. /**
  5466. * Choose, which related nodes to fetch as well
  5467. */
  5468. include?: ContributorIncludeUpdateManyAndReturn<ExtArgs> | null
  5469. }
  5470. /**
  5471. * Contributor upsert
  5472. */
  5473. export type ContributorUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5474. /**
  5475. * Select specific fields to fetch from the Contributor
  5476. */
  5477. select?: ContributorSelect<ExtArgs> | null
  5478. /**
  5479. * Omit specific fields from the Contributor
  5480. */
  5481. omit?: ContributorOmit<ExtArgs> | null
  5482. /**
  5483. * Choose, which related nodes to fetch as well
  5484. */
  5485. include?: ContributorInclude<ExtArgs> | null
  5486. /**
  5487. * The filter to search for the Contributor to update in case it exists.
  5488. */
  5489. where: ContributorWhereUniqueInput
  5490. /**
  5491. * In case the Contributor found by the `where` argument doesn't exist, create a new Contributor with this data.
  5492. */
  5493. create: XOR<ContributorCreateInput, ContributorUncheckedCreateInput>
  5494. /**
  5495. * In case the Contributor was found with the provided `where` argument, update it with this data.
  5496. */
  5497. update: XOR<ContributorUpdateInput, ContributorUncheckedUpdateInput>
  5498. }
  5499. /**
  5500. * Contributor delete
  5501. */
  5502. export type ContributorDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5503. /**
  5504. * Select specific fields to fetch from the Contributor
  5505. */
  5506. select?: ContributorSelect<ExtArgs> | null
  5507. /**
  5508. * Omit specific fields from the Contributor
  5509. */
  5510. omit?: ContributorOmit<ExtArgs> | null
  5511. /**
  5512. * Choose, which related nodes to fetch as well
  5513. */
  5514. include?: ContributorInclude<ExtArgs> | null
  5515. /**
  5516. * Filter which Contributor to delete.
  5517. */
  5518. where: ContributorWhereUniqueInput
  5519. }
  5520. /**
  5521. * Contributor deleteMany
  5522. */
  5523. export type ContributorDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5524. /**
  5525. * Filter which Contributors to delete
  5526. */
  5527. where?: ContributorWhereInput
  5528. /**
  5529. * Limit how many Contributors to delete.
  5530. */
  5531. limit?: number
  5532. }
  5533. /**
  5534. * Contributor.ideas
  5535. */
  5536. export type Contributor$ideasArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5537. /**
  5538. * Select specific fields to fetch from the Idea
  5539. */
  5540. select?: IdeaSelect<ExtArgs> | null
  5541. /**
  5542. * Omit specific fields from the Idea
  5543. */
  5544. omit?: IdeaOmit<ExtArgs> | null
  5545. /**
  5546. * Choose, which related nodes to fetch as well
  5547. */
  5548. include?: IdeaInclude<ExtArgs> | null
  5549. where?: IdeaWhereInput
  5550. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5551. cursor?: IdeaWhereUniqueInput
  5552. take?: number
  5553. skip?: number
  5554. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  5555. }
  5556. /**
  5557. * Contributor without action
  5558. */
  5559. export type ContributorDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5560. /**
  5561. * Select specific fields to fetch from the Contributor
  5562. */
  5563. select?: ContributorSelect<ExtArgs> | null
  5564. /**
  5565. * Omit specific fields from the Contributor
  5566. */
  5567. omit?: ContributorOmit<ExtArgs> | null
  5568. /**
  5569. * Choose, which related nodes to fetch as well
  5570. */
  5571. include?: ContributorInclude<ExtArgs> | null
  5572. }
  5573. /**
  5574. * Model Idea
  5575. */
  5576. export type AggregateIdea = {
  5577. _count: IdeaCountAggregateOutputType | null
  5578. _avg: IdeaAvgAggregateOutputType | null
  5579. _sum: IdeaSumAggregateOutputType | null
  5580. _min: IdeaMinAggregateOutputType | null
  5581. _max: IdeaMaxAggregateOutputType | null
  5582. }
  5583. export type IdeaAvgAggregateOutputType = {
  5584. llmScoreImpact: number | null
  5585. llmScoreFeasibility: number | null
  5586. llmScoreUrgency: number | null
  5587. manualScoreImpact: number | null
  5588. manualScoreFeasibility: number | null
  5589. manualScoreUrgency: number | null
  5590. priorityOrder: number | null
  5591. }
  5592. export type IdeaSumAggregateOutputType = {
  5593. llmScoreImpact: number | null
  5594. llmScoreFeasibility: number | null
  5595. llmScoreUrgency: number | null
  5596. manualScoreImpact: number | null
  5597. manualScoreFeasibility: number | null
  5598. manualScoreUrgency: number | null
  5599. priorityOrder: number | null
  5600. }
  5601. export type IdeaMinAggregateOutputType = {
  5602. id: string | null
  5603. workspaceId: string | null
  5604. contributorEmail: string | null
  5605. contributorId: string | null
  5606. department: string | null
  5607. problemDescription: string | null
  5608. estimatedImpact: $Enums.ImpactLevel | null
  5609. frequency: $Enums.Frequency | null
  5610. optionalWhoAffected: string | null
  5611. optionalAlreadyTried: string | null
  5612. optionalSuccessLooksLike: string | null
  5613. status: $Enums.IdeaStatus | null
  5614. llmTitle: string | null
  5615. llmDomain: string | null
  5616. llmAiType: string | null
  5617. llmExplanation: string | null
  5618. llmScoreImpact: number | null
  5619. llmScoreFeasibility: number | null
  5620. llmScoreUrgency: number | null
  5621. llmEnrichedAt: Date | null
  5622. llmEnrichFailed: boolean | null
  5623. manualScoreImpact: number | null
  5624. manualScoreFeasibility: number | null
  5625. manualScoreUrgency: number | null
  5626. priorityOrder: number | null
  5627. emailMessageId: string | null
  5628. createdAt: Date | null
  5629. updatedAt: Date | null
  5630. }
  5631. export type IdeaMaxAggregateOutputType = {
  5632. id: string | null
  5633. workspaceId: string | null
  5634. contributorEmail: string | null
  5635. contributorId: string | null
  5636. department: string | null
  5637. problemDescription: string | null
  5638. estimatedImpact: $Enums.ImpactLevel | null
  5639. frequency: $Enums.Frequency | null
  5640. optionalWhoAffected: string | null
  5641. optionalAlreadyTried: string | null
  5642. optionalSuccessLooksLike: string | null
  5643. status: $Enums.IdeaStatus | null
  5644. llmTitle: string | null
  5645. llmDomain: string | null
  5646. llmAiType: string | null
  5647. llmExplanation: string | null
  5648. llmScoreImpact: number | null
  5649. llmScoreFeasibility: number | null
  5650. llmScoreUrgency: number | null
  5651. llmEnrichedAt: Date | null
  5652. llmEnrichFailed: boolean | null
  5653. manualScoreImpact: number | null
  5654. manualScoreFeasibility: number | null
  5655. manualScoreUrgency: number | null
  5656. priorityOrder: number | null
  5657. emailMessageId: string | null
  5658. createdAt: Date | null
  5659. updatedAt: Date | null
  5660. }
  5661. export type IdeaCountAggregateOutputType = {
  5662. id: number
  5663. workspaceId: number
  5664. contributorEmail: number
  5665. contributorId: number
  5666. department: number
  5667. problemDescription: number
  5668. estimatedImpact: number
  5669. frequency: number
  5670. optionalWhoAffected: number
  5671. optionalAlreadyTried: number
  5672. optionalSuccessLooksLike: number
  5673. status: number
  5674. llmTitle: number
  5675. llmDomain: number
  5676. llmAiType: number
  5677. llmExplanation: number
  5678. llmScoreImpact: number
  5679. llmScoreFeasibility: number
  5680. llmScoreUrgency: number
  5681. llmEnrichedAt: number
  5682. llmEnrichFailed: number
  5683. manualScoreImpact: number
  5684. manualScoreFeasibility: number
  5685. manualScoreUrgency: number
  5686. priorityOrder: number
  5687. emailMessageId: number
  5688. createdAt: number
  5689. updatedAt: number
  5690. _all: number
  5691. }
  5692. export type IdeaAvgAggregateInputType = {
  5693. llmScoreImpact?: true
  5694. llmScoreFeasibility?: true
  5695. llmScoreUrgency?: true
  5696. manualScoreImpact?: true
  5697. manualScoreFeasibility?: true
  5698. manualScoreUrgency?: true
  5699. priorityOrder?: true
  5700. }
  5701. export type IdeaSumAggregateInputType = {
  5702. llmScoreImpact?: true
  5703. llmScoreFeasibility?: true
  5704. llmScoreUrgency?: true
  5705. manualScoreImpact?: true
  5706. manualScoreFeasibility?: true
  5707. manualScoreUrgency?: true
  5708. priorityOrder?: true
  5709. }
  5710. export type IdeaMinAggregateInputType = {
  5711. id?: true
  5712. workspaceId?: true
  5713. contributorEmail?: true
  5714. contributorId?: true
  5715. department?: true
  5716. problemDescription?: true
  5717. estimatedImpact?: true
  5718. frequency?: true
  5719. optionalWhoAffected?: true
  5720. optionalAlreadyTried?: true
  5721. optionalSuccessLooksLike?: true
  5722. status?: true
  5723. llmTitle?: true
  5724. llmDomain?: true
  5725. llmAiType?: true
  5726. llmExplanation?: true
  5727. llmScoreImpact?: true
  5728. llmScoreFeasibility?: true
  5729. llmScoreUrgency?: true
  5730. llmEnrichedAt?: true
  5731. llmEnrichFailed?: true
  5732. manualScoreImpact?: true
  5733. manualScoreFeasibility?: true
  5734. manualScoreUrgency?: true
  5735. priorityOrder?: true
  5736. emailMessageId?: true
  5737. createdAt?: true
  5738. updatedAt?: true
  5739. }
  5740. export type IdeaMaxAggregateInputType = {
  5741. id?: true
  5742. workspaceId?: true
  5743. contributorEmail?: true
  5744. contributorId?: true
  5745. department?: true
  5746. problemDescription?: true
  5747. estimatedImpact?: true
  5748. frequency?: true
  5749. optionalWhoAffected?: true
  5750. optionalAlreadyTried?: true
  5751. optionalSuccessLooksLike?: true
  5752. status?: true
  5753. llmTitle?: true
  5754. llmDomain?: true
  5755. llmAiType?: true
  5756. llmExplanation?: true
  5757. llmScoreImpact?: true
  5758. llmScoreFeasibility?: true
  5759. llmScoreUrgency?: true
  5760. llmEnrichedAt?: true
  5761. llmEnrichFailed?: true
  5762. manualScoreImpact?: true
  5763. manualScoreFeasibility?: true
  5764. manualScoreUrgency?: true
  5765. priorityOrder?: true
  5766. emailMessageId?: true
  5767. createdAt?: true
  5768. updatedAt?: true
  5769. }
  5770. export type IdeaCountAggregateInputType = {
  5771. id?: true
  5772. workspaceId?: true
  5773. contributorEmail?: true
  5774. contributorId?: true
  5775. department?: true
  5776. problemDescription?: true
  5777. estimatedImpact?: true
  5778. frequency?: true
  5779. optionalWhoAffected?: true
  5780. optionalAlreadyTried?: true
  5781. optionalSuccessLooksLike?: true
  5782. status?: true
  5783. llmTitle?: true
  5784. llmDomain?: true
  5785. llmAiType?: true
  5786. llmExplanation?: true
  5787. llmScoreImpact?: true
  5788. llmScoreFeasibility?: true
  5789. llmScoreUrgency?: true
  5790. llmEnrichedAt?: true
  5791. llmEnrichFailed?: true
  5792. manualScoreImpact?: true
  5793. manualScoreFeasibility?: true
  5794. manualScoreUrgency?: true
  5795. priorityOrder?: true
  5796. emailMessageId?: true
  5797. createdAt?: true
  5798. updatedAt?: true
  5799. _all?: true
  5800. }
  5801. export type IdeaAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5802. /**
  5803. * Filter which Idea to aggregate.
  5804. */
  5805. where?: IdeaWhereInput
  5806. /**
  5807. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  5808. *
  5809. * Determine the order of Ideas to fetch.
  5810. */
  5811. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  5812. /**
  5813. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  5814. *
  5815. * Sets the start position
  5816. */
  5817. cursor?: IdeaWhereUniqueInput
  5818. /**
  5819. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5820. *
  5821. * Take `±n` Ideas from the position of the cursor.
  5822. */
  5823. take?: number
  5824. /**
  5825. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  5826. *
  5827. * Skip the first `n` Ideas.
  5828. */
  5829. skip?: number
  5830. /**
  5831. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5832. *
  5833. * Count returned Ideas
  5834. **/
  5835. _count?: true | IdeaCountAggregateInputType
  5836. /**
  5837. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5838. *
  5839. * Select which fields to average
  5840. **/
  5841. _avg?: IdeaAvgAggregateInputType
  5842. /**
  5843. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5844. *
  5845. * Select which fields to sum
  5846. **/
  5847. _sum?: IdeaSumAggregateInputType
  5848. /**
  5849. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5850. *
  5851. * Select which fields to find the minimum value
  5852. **/
  5853. _min?: IdeaMinAggregateInputType
  5854. /**
  5855. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  5856. *
  5857. * Select which fields to find the maximum value
  5858. **/
  5859. _max?: IdeaMaxAggregateInputType
  5860. }
  5861. export type GetIdeaAggregateType<T extends IdeaAggregateArgs> = {
  5862. [P in keyof T & keyof AggregateIdea]: P extends '_count' | 'count'
  5863. ? T[P] extends true
  5864. ? number
  5865. : GetScalarType<T[P], AggregateIdea[P]>
  5866. : GetScalarType<T[P], AggregateIdea[P]>
  5867. }
  5868. export type IdeaGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  5869. where?: IdeaWhereInput
  5870. orderBy?: IdeaOrderByWithAggregationInput | IdeaOrderByWithAggregationInput[]
  5871. by: IdeaScalarFieldEnum[] | IdeaScalarFieldEnum
  5872. having?: IdeaScalarWhereWithAggregatesInput
  5873. take?: number
  5874. skip?: number
  5875. _count?: IdeaCountAggregateInputType | true
  5876. _avg?: IdeaAvgAggregateInputType
  5877. _sum?: IdeaSumAggregateInputType
  5878. _min?: IdeaMinAggregateInputType
  5879. _max?: IdeaMaxAggregateInputType
  5880. }
  5881. export type IdeaGroupByOutputType = {
  5882. id: string
  5883. workspaceId: string
  5884. contributorEmail: string
  5885. contributorId: string | null
  5886. department: string
  5887. problemDescription: string
  5888. estimatedImpact: $Enums.ImpactLevel
  5889. frequency: $Enums.Frequency
  5890. optionalWhoAffected: string | null
  5891. optionalAlreadyTried: string | null
  5892. optionalSuccessLooksLike: string | null
  5893. status: $Enums.IdeaStatus
  5894. llmTitle: string | null
  5895. llmDomain: string | null
  5896. llmAiType: string | null
  5897. llmExplanation: string | null
  5898. llmScoreImpact: number | null
  5899. llmScoreFeasibility: number | null
  5900. llmScoreUrgency: number | null
  5901. llmEnrichedAt: Date | null
  5902. llmEnrichFailed: boolean
  5903. manualScoreImpact: number | null
  5904. manualScoreFeasibility: number | null
  5905. manualScoreUrgency: number | null
  5906. priorityOrder: number | null
  5907. emailMessageId: string | null
  5908. createdAt: Date
  5909. updatedAt: Date
  5910. _count: IdeaCountAggregateOutputType | null
  5911. _avg: IdeaAvgAggregateOutputType | null
  5912. _sum: IdeaSumAggregateOutputType | null
  5913. _min: IdeaMinAggregateOutputType | null
  5914. _max: IdeaMaxAggregateOutputType | null
  5915. }
  5916. type GetIdeaGroupByPayload<T extends IdeaGroupByArgs> = Prisma.PrismaPromise<
  5917. Array<
  5918. PickEnumerable<IdeaGroupByOutputType, T['by']> &
  5919. {
  5920. [P in ((keyof T) & (keyof IdeaGroupByOutputType))]: P extends '_count'
  5921. ? T[P] extends boolean
  5922. ? number
  5923. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5924. : GetScalarType<T[P], IdeaGroupByOutputType[P]>
  5925. }
  5926. >
  5927. >
  5928. export type IdeaSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5929. id?: boolean
  5930. workspaceId?: boolean
  5931. contributorEmail?: boolean
  5932. contributorId?: boolean
  5933. department?: boolean
  5934. problemDescription?: boolean
  5935. estimatedImpact?: boolean
  5936. frequency?: boolean
  5937. optionalWhoAffected?: boolean
  5938. optionalAlreadyTried?: boolean
  5939. optionalSuccessLooksLike?: boolean
  5940. status?: boolean
  5941. llmTitle?: boolean
  5942. llmDomain?: boolean
  5943. llmAiType?: boolean
  5944. llmExplanation?: boolean
  5945. llmScoreImpact?: boolean
  5946. llmScoreFeasibility?: boolean
  5947. llmScoreUrgency?: boolean
  5948. llmEnrichedAt?: boolean
  5949. llmEnrichFailed?: boolean
  5950. manualScoreImpact?: boolean
  5951. manualScoreFeasibility?: boolean
  5952. manualScoreUrgency?: boolean
  5953. priorityOrder?: boolean
  5954. emailMessageId?: boolean
  5955. createdAt?: boolean
  5956. updatedAt?: boolean
  5957. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5958. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5959. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  5960. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  5961. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  5962. }, ExtArgs["result"]["idea"]>
  5963. export type IdeaSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5964. id?: boolean
  5965. workspaceId?: boolean
  5966. contributorEmail?: boolean
  5967. contributorId?: boolean
  5968. department?: boolean
  5969. problemDescription?: boolean
  5970. estimatedImpact?: boolean
  5971. frequency?: boolean
  5972. optionalWhoAffected?: boolean
  5973. optionalAlreadyTried?: boolean
  5974. optionalSuccessLooksLike?: boolean
  5975. status?: boolean
  5976. llmTitle?: boolean
  5977. llmDomain?: boolean
  5978. llmAiType?: boolean
  5979. llmExplanation?: boolean
  5980. llmScoreImpact?: boolean
  5981. llmScoreFeasibility?: boolean
  5982. llmScoreUrgency?: boolean
  5983. llmEnrichedAt?: boolean
  5984. llmEnrichFailed?: boolean
  5985. manualScoreImpact?: boolean
  5986. manualScoreFeasibility?: boolean
  5987. manualScoreUrgency?: boolean
  5988. priorityOrder?: boolean
  5989. emailMessageId?: boolean
  5990. createdAt?: boolean
  5991. updatedAt?: boolean
  5992. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  5993. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  5994. }, ExtArgs["result"]["idea"]>
  5995. export type IdeaSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  5996. id?: boolean
  5997. workspaceId?: boolean
  5998. contributorEmail?: boolean
  5999. contributorId?: boolean
  6000. department?: boolean
  6001. problemDescription?: boolean
  6002. estimatedImpact?: boolean
  6003. frequency?: boolean
  6004. optionalWhoAffected?: boolean
  6005. optionalAlreadyTried?: boolean
  6006. optionalSuccessLooksLike?: boolean
  6007. status?: boolean
  6008. llmTitle?: boolean
  6009. llmDomain?: boolean
  6010. llmAiType?: boolean
  6011. llmExplanation?: boolean
  6012. llmScoreImpact?: boolean
  6013. llmScoreFeasibility?: boolean
  6014. llmScoreUrgency?: boolean
  6015. llmEnrichedAt?: boolean
  6016. llmEnrichFailed?: boolean
  6017. manualScoreImpact?: boolean
  6018. manualScoreFeasibility?: boolean
  6019. manualScoreUrgency?: boolean
  6020. priorityOrder?: boolean
  6021. emailMessageId?: boolean
  6022. createdAt?: boolean
  6023. updatedAt?: boolean
  6024. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  6025. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  6026. }, ExtArgs["result"]["idea"]>
  6027. export type IdeaSelectScalar = {
  6028. id?: boolean
  6029. workspaceId?: boolean
  6030. contributorEmail?: boolean
  6031. contributorId?: boolean
  6032. department?: boolean
  6033. problemDescription?: boolean
  6034. estimatedImpact?: boolean
  6035. frequency?: boolean
  6036. optionalWhoAffected?: boolean
  6037. optionalAlreadyTried?: boolean
  6038. optionalSuccessLooksLike?: boolean
  6039. status?: boolean
  6040. llmTitle?: boolean
  6041. llmDomain?: boolean
  6042. llmAiType?: boolean
  6043. llmExplanation?: boolean
  6044. llmScoreImpact?: boolean
  6045. llmScoreFeasibility?: boolean
  6046. llmScoreUrgency?: boolean
  6047. llmEnrichedAt?: boolean
  6048. llmEnrichFailed?: boolean
  6049. manualScoreImpact?: boolean
  6050. manualScoreFeasibility?: boolean
  6051. manualScoreUrgency?: boolean
  6052. priorityOrder?: boolean
  6053. emailMessageId?: boolean
  6054. createdAt?: boolean
  6055. updatedAt?: boolean
  6056. }
  6057. 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"]>
  6058. export type IdeaInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6059. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  6060. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  6061. attachments?: boolean | Idea$attachmentsArgs<ExtArgs>
  6062. qualificationQuestions?: boolean | Idea$qualificationQuestionsArgs<ExtArgs>
  6063. _count?: boolean | IdeaCountOutputTypeDefaultArgs<ExtArgs>
  6064. }
  6065. export type IdeaIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6066. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  6067. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  6068. }
  6069. export type IdeaIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6070. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  6071. contributor?: boolean | Idea$contributorArgs<ExtArgs>
  6072. }
  6073. export type $IdeaPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6074. name: "Idea"
  6075. objects: {
  6076. workspace: Prisma.$WorkspacePayload<ExtArgs>
  6077. contributor: Prisma.$ContributorPayload<ExtArgs> | null
  6078. attachments: Prisma.$IdeaAttachmentPayload<ExtArgs>[]
  6079. qualificationQuestions: Prisma.$QualificationQuestionPayload<ExtArgs>[]
  6080. }
  6081. scalars: $Extensions.GetPayloadResult<{
  6082. id: string
  6083. workspaceId: string
  6084. contributorEmail: string
  6085. contributorId: string | null
  6086. department: string
  6087. problemDescription: string
  6088. estimatedImpact: $Enums.ImpactLevel
  6089. frequency: $Enums.Frequency
  6090. /**
  6091. * Réponses optionnelles à la soumission (langage métier), aident le transformateur à trancher
  6092. */
  6093. optionalWhoAffected: string | null
  6094. optionalAlreadyTried: string | null
  6095. optionalSuccessLooksLike: string | null
  6096. status: $Enums.IdeaStatus
  6097. llmTitle: string | null
  6098. llmDomain: string | null
  6099. llmAiType: string | null
  6100. llmExplanation: string | null
  6101. llmScoreImpact: number | null
  6102. llmScoreFeasibility: number | null
  6103. llmScoreUrgency: number | null
  6104. llmEnrichedAt: Date | null
  6105. llmEnrichFailed: boolean
  6106. manualScoreImpact: number | null
  6107. manualScoreFeasibility: number | null
  6108. manualScoreUrgency: number | null
  6109. priorityOrder: number | null
  6110. emailMessageId: string | null
  6111. createdAt: Date
  6112. updatedAt: Date
  6113. }, ExtArgs["result"]["idea"]>
  6114. composites: {}
  6115. }
  6116. type IdeaGetPayload<S extends boolean | null | undefined | IdeaDefaultArgs> = $Result.GetResult<Prisma.$IdeaPayload, S>
  6117. type IdeaCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  6118. Omit<IdeaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  6119. select?: IdeaCountAggregateInputType | true
  6120. }
  6121. export interface IdeaDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  6122. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Idea'], meta: { name: 'Idea' } }
  6123. /**
  6124. * Find zero or one Idea that matches the filter.
  6125. * @param {IdeaFindUniqueArgs} args - Arguments to find a Idea
  6126. * @example
  6127. * // Get one Idea
  6128. * const idea = await prisma.idea.findUnique({
  6129. * where: {
  6130. * // ... provide filter here
  6131. * }
  6132. * })
  6133. */
  6134. findUnique<T extends IdeaFindUniqueArgs>(args: SelectSubset<T, IdeaFindUniqueArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  6135. /**
  6136. * Find one Idea that matches the filter or throw an error with `error.code='P2025'`
  6137. * if no matches were found.
  6138. * @param {IdeaFindUniqueOrThrowArgs} args - Arguments to find a Idea
  6139. * @example
  6140. * // Get one Idea
  6141. * const idea = await prisma.idea.findUniqueOrThrow({
  6142. * where: {
  6143. * // ... provide filter here
  6144. * }
  6145. * })
  6146. */
  6147. findUniqueOrThrow<T extends IdeaFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6148. /**
  6149. * Find the first Idea that matches the filter.
  6150. * Note, that providing `undefined` is treated as the value not being there.
  6151. * Read more here: https://pris.ly/d/null-undefined
  6152. * @param {IdeaFindFirstArgs} args - Arguments to find a Idea
  6153. * @example
  6154. * // Get one Idea
  6155. * const idea = await prisma.idea.findFirst({
  6156. * where: {
  6157. * // ... provide filter here
  6158. * }
  6159. * })
  6160. */
  6161. findFirst<T extends IdeaFindFirstArgs>(args?: SelectSubset<T, IdeaFindFirstArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  6162. /**
  6163. * Find the first Idea that matches the filter or
  6164. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  6165. * Note, that providing `undefined` is treated as the value not being there.
  6166. * Read more here: https://pris.ly/d/null-undefined
  6167. * @param {IdeaFindFirstOrThrowArgs} args - Arguments to find a Idea
  6168. * @example
  6169. * // Get one Idea
  6170. * const idea = await prisma.idea.findFirstOrThrow({
  6171. * where: {
  6172. * // ... provide filter here
  6173. * }
  6174. * })
  6175. */
  6176. findFirstOrThrow<T extends IdeaFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6177. /**
  6178. * Find zero or more Ideas that matches the filter.
  6179. * Note, that providing `undefined` is treated as the value not being there.
  6180. * Read more here: https://pris.ly/d/null-undefined
  6181. * @param {IdeaFindManyArgs} args - Arguments to filter and select certain fields only.
  6182. * @example
  6183. * // Get all Ideas
  6184. * const ideas = await prisma.idea.findMany()
  6185. *
  6186. * // Get first 10 Ideas
  6187. * const ideas = await prisma.idea.findMany({ take: 10 })
  6188. *
  6189. * // Only select the `id`
  6190. * const ideaWithIdOnly = await prisma.idea.findMany({ select: { id: true } })
  6191. *
  6192. */
  6193. findMany<T extends IdeaFindManyArgs>(args?: SelectSubset<T, IdeaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  6194. /**
  6195. * Create a Idea.
  6196. * @param {IdeaCreateArgs} args - Arguments to create a Idea.
  6197. * @example
  6198. * // Create one Idea
  6199. * const Idea = await prisma.idea.create({
  6200. * data: {
  6201. * // ... data to create a Idea
  6202. * }
  6203. * })
  6204. *
  6205. */
  6206. create<T extends IdeaCreateArgs>(args: SelectSubset<T, IdeaCreateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6207. /**
  6208. * Create many Ideas.
  6209. * @param {IdeaCreateManyArgs} args - Arguments to create many Ideas.
  6210. * @example
  6211. * // Create many Ideas
  6212. * const idea = await prisma.idea.createMany({
  6213. * data: [
  6214. * // ... provide data here
  6215. * ]
  6216. * })
  6217. *
  6218. */
  6219. createMany<T extends IdeaCreateManyArgs>(args?: SelectSubset<T, IdeaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6220. /**
  6221. * Create many Ideas and returns the data saved in the database.
  6222. * @param {IdeaCreateManyAndReturnArgs} args - Arguments to create many Ideas.
  6223. * @example
  6224. * // Create many Ideas
  6225. * const idea = await prisma.idea.createManyAndReturn({
  6226. * data: [
  6227. * // ... provide data here
  6228. * ]
  6229. * })
  6230. *
  6231. * // Create many Ideas and only return the `id`
  6232. * const ideaWithIdOnly = await prisma.idea.createManyAndReturn({
  6233. * select: { id: true },
  6234. * data: [
  6235. * // ... provide data here
  6236. * ]
  6237. * })
  6238. * Note, that providing `undefined` is treated as the value not being there.
  6239. * Read more here: https://pris.ly/d/null-undefined
  6240. *
  6241. */
  6242. createManyAndReturn<T extends IdeaCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  6243. /**
  6244. * Delete a Idea.
  6245. * @param {IdeaDeleteArgs} args - Arguments to delete one Idea.
  6246. * @example
  6247. * // Delete one Idea
  6248. * const Idea = await prisma.idea.delete({
  6249. * where: {
  6250. * // ... filter to delete one Idea
  6251. * }
  6252. * })
  6253. *
  6254. */
  6255. delete<T extends IdeaDeleteArgs>(args: SelectSubset<T, IdeaDeleteArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6256. /**
  6257. * Update one Idea.
  6258. * @param {IdeaUpdateArgs} args - Arguments to update one Idea.
  6259. * @example
  6260. * // Update one Idea
  6261. * const idea = await prisma.idea.update({
  6262. * where: {
  6263. * // ... provide filter here
  6264. * },
  6265. * data: {
  6266. * // ... provide data here
  6267. * }
  6268. * })
  6269. *
  6270. */
  6271. update<T extends IdeaUpdateArgs>(args: SelectSubset<T, IdeaUpdateArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6272. /**
  6273. * Delete zero or more Ideas.
  6274. * @param {IdeaDeleteManyArgs} args - Arguments to filter Ideas to delete.
  6275. * @example
  6276. * // Delete a few Ideas
  6277. * const { count } = await prisma.idea.deleteMany({
  6278. * where: {
  6279. * // ... provide filter here
  6280. * }
  6281. * })
  6282. *
  6283. */
  6284. deleteMany<T extends IdeaDeleteManyArgs>(args?: SelectSubset<T, IdeaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6285. /**
  6286. * Update zero or more Ideas.
  6287. * Note, that providing `undefined` is treated as the value not being there.
  6288. * Read more here: https://pris.ly/d/null-undefined
  6289. * @param {IdeaUpdateManyArgs} args - Arguments to update one or more rows.
  6290. * @example
  6291. * // Update many Ideas
  6292. * const idea = await prisma.idea.updateMany({
  6293. * where: {
  6294. * // ... provide filter here
  6295. * },
  6296. * data: {
  6297. * // ... provide data here
  6298. * }
  6299. * })
  6300. *
  6301. */
  6302. updateMany<T extends IdeaUpdateManyArgs>(args: SelectSubset<T, IdeaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  6303. /**
  6304. * Update zero or more Ideas and returns the data updated in the database.
  6305. * @param {IdeaUpdateManyAndReturnArgs} args - Arguments to update many Ideas.
  6306. * @example
  6307. * // Update many Ideas
  6308. * const idea = await prisma.idea.updateManyAndReturn({
  6309. * where: {
  6310. * // ... provide filter here
  6311. * },
  6312. * data: [
  6313. * // ... provide data here
  6314. * ]
  6315. * })
  6316. *
  6317. * // Update zero or more Ideas and only return the `id`
  6318. * const ideaWithIdOnly = await prisma.idea.updateManyAndReturn({
  6319. * select: { id: true },
  6320. * where: {
  6321. * // ... provide filter here
  6322. * },
  6323. * data: [
  6324. * // ... provide data here
  6325. * ]
  6326. * })
  6327. * Note, that providing `undefined` is treated as the value not being there.
  6328. * Read more here: https://pris.ly/d/null-undefined
  6329. *
  6330. */
  6331. updateManyAndReturn<T extends IdeaUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  6332. /**
  6333. * Create or update one Idea.
  6334. * @param {IdeaUpsertArgs} args - Arguments to update or create a Idea.
  6335. * @example
  6336. * // Update or create a Idea
  6337. * const idea = await prisma.idea.upsert({
  6338. * create: {
  6339. * // ... data to create a Idea
  6340. * },
  6341. * update: {
  6342. * // ... in case it already exists, update
  6343. * },
  6344. * where: {
  6345. * // ... the filter for the Idea we want to update
  6346. * }
  6347. * })
  6348. */
  6349. upsert<T extends IdeaUpsertArgs>(args: SelectSubset<T, IdeaUpsertArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  6350. /**
  6351. * Count the number of Ideas.
  6352. * Note, that providing `undefined` is treated as the value not being there.
  6353. * Read more here: https://pris.ly/d/null-undefined
  6354. * @param {IdeaCountArgs} args - Arguments to filter Ideas to count.
  6355. * @example
  6356. * // Count the number of Ideas
  6357. * const count = await prisma.idea.count({
  6358. * where: {
  6359. * // ... the filter for the Ideas we want to count
  6360. * }
  6361. * })
  6362. **/
  6363. count<T extends IdeaCountArgs>(
  6364. args?: Subset<T, IdeaCountArgs>,
  6365. ): Prisma.PrismaPromise<
  6366. T extends $Utils.Record<'select', any>
  6367. ? T['select'] extends true
  6368. ? number
  6369. : GetScalarType<T['select'], IdeaCountAggregateOutputType>
  6370. : number
  6371. >
  6372. /**
  6373. * Allows you to perform aggregations operations on a Idea.
  6374. * Note, that providing `undefined` is treated as the value not being there.
  6375. * Read more here: https://pris.ly/d/null-undefined
  6376. * @param {IdeaAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  6377. * @example
  6378. * // Ordered by age ascending
  6379. * // Where email contains prisma.io
  6380. * // Limited to the 10 users
  6381. * const aggregations = await prisma.user.aggregate({
  6382. * _avg: {
  6383. * age: true,
  6384. * },
  6385. * where: {
  6386. * email: {
  6387. * contains: "prisma.io",
  6388. * },
  6389. * },
  6390. * orderBy: {
  6391. * age: "asc",
  6392. * },
  6393. * take: 10,
  6394. * })
  6395. **/
  6396. aggregate<T extends IdeaAggregateArgs>(args: Subset<T, IdeaAggregateArgs>): Prisma.PrismaPromise<GetIdeaAggregateType<T>>
  6397. /**
  6398. * Group by Idea.
  6399. * Note, that providing `undefined` is treated as the value not being there.
  6400. * Read more here: https://pris.ly/d/null-undefined
  6401. * @param {IdeaGroupByArgs} args - Group by arguments.
  6402. * @example
  6403. * // Group by city, order by createdAt, get count
  6404. * const result = await prisma.user.groupBy({
  6405. * by: ['city', 'createdAt'],
  6406. * orderBy: {
  6407. * createdAt: true
  6408. * },
  6409. * _count: {
  6410. * _all: true
  6411. * },
  6412. * })
  6413. *
  6414. **/
  6415. groupBy<
  6416. T extends IdeaGroupByArgs,
  6417. HasSelectOrTake extends Or<
  6418. Extends<'skip', Keys<T>>,
  6419. Extends<'take', Keys<T>>
  6420. >,
  6421. OrderByArg extends True extends HasSelectOrTake
  6422. ? { orderBy: IdeaGroupByArgs['orderBy'] }
  6423. : { orderBy?: IdeaGroupByArgs['orderBy'] },
  6424. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  6425. ByFields extends MaybeTupleToUnion<T['by']>,
  6426. ByValid extends Has<ByFields, OrderFields>,
  6427. HavingFields extends GetHavingFields<T['having']>,
  6428. HavingValid extends Has<ByFields, HavingFields>,
  6429. ByEmpty extends T['by'] extends never[] ? True : False,
  6430. InputErrors extends ByEmpty extends True
  6431. ? `Error: "by" must not be empty.`
  6432. : HavingValid extends False
  6433. ? {
  6434. [P in HavingFields]: P extends ByFields
  6435. ? never
  6436. : P extends string
  6437. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  6438. : [
  6439. Error,
  6440. 'Field ',
  6441. P,
  6442. ` in "having" needs to be provided in "by"`,
  6443. ]
  6444. }[HavingFields]
  6445. : 'take' extends Keys<T>
  6446. ? 'orderBy' extends Keys<T>
  6447. ? ByValid extends True
  6448. ? {}
  6449. : {
  6450. [P in OrderFields]: P extends ByFields
  6451. ? never
  6452. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6453. }[OrderFields]
  6454. : 'Error: If you provide "take", you also need to provide "orderBy"'
  6455. : 'skip' extends Keys<T>
  6456. ? 'orderBy' extends Keys<T>
  6457. ? ByValid extends True
  6458. ? {}
  6459. : {
  6460. [P in OrderFields]: P extends ByFields
  6461. ? never
  6462. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6463. }[OrderFields]
  6464. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  6465. : ByValid extends True
  6466. ? {}
  6467. : {
  6468. [P in OrderFields]: P extends ByFields
  6469. ? never
  6470. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  6471. }[OrderFields]
  6472. >(args: SubsetIntersection<T, IdeaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  6473. /**
  6474. * Fields of the Idea model
  6475. */
  6476. readonly fields: IdeaFieldRefs;
  6477. }
  6478. /**
  6479. * The delegate class that acts as a "Promise-like" for Idea.
  6480. * Why is this prefixed with `Prisma__`?
  6481. * Because we want to prevent naming conflicts as mentioned in
  6482. * https://github.com/prisma/prisma-client-js/issues/707
  6483. */
  6484. export interface Prisma__IdeaClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  6485. readonly [Symbol.toStringTag]: "PrismaPromise"
  6486. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  6487. 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>
  6488. attachments<T extends Idea$attachmentsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$attachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6489. qualificationQuestions<T extends Idea$qualificationQuestionsArgs<ExtArgs> = {}>(args?: Subset<T, Idea$qualificationQuestionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  6490. /**
  6491. * Attaches callbacks for the resolution and/or rejection of the Promise.
  6492. * @param onfulfilled The callback to execute when the Promise is resolved.
  6493. * @param onrejected The callback to execute when the Promise is rejected.
  6494. * @returns A Promise for the completion of which ever callback is executed.
  6495. */
  6496. 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>
  6497. /**
  6498. * Attaches a callback for only the rejection of the Promise.
  6499. * @param onrejected The callback to execute when the Promise is rejected.
  6500. * @returns A Promise for the completion of the callback.
  6501. */
  6502. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  6503. /**
  6504. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  6505. * resolved value cannot be modified from the callback.
  6506. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  6507. * @returns A Promise for the completion of the callback.
  6508. */
  6509. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  6510. }
  6511. /**
  6512. * Fields of the Idea model
  6513. */
  6514. interface IdeaFieldRefs {
  6515. readonly id: FieldRef<"Idea", 'String'>
  6516. readonly workspaceId: FieldRef<"Idea", 'String'>
  6517. readonly contributorEmail: FieldRef<"Idea", 'String'>
  6518. readonly contributorId: FieldRef<"Idea", 'String'>
  6519. readonly department: FieldRef<"Idea", 'String'>
  6520. readonly problemDescription: FieldRef<"Idea", 'String'>
  6521. readonly estimatedImpact: FieldRef<"Idea", 'ImpactLevel'>
  6522. readonly frequency: FieldRef<"Idea", 'Frequency'>
  6523. readonly optionalWhoAffected: FieldRef<"Idea", 'String'>
  6524. readonly optionalAlreadyTried: FieldRef<"Idea", 'String'>
  6525. readonly optionalSuccessLooksLike: FieldRef<"Idea", 'String'>
  6526. readonly status: FieldRef<"Idea", 'IdeaStatus'>
  6527. readonly llmTitle: FieldRef<"Idea", 'String'>
  6528. readonly llmDomain: FieldRef<"Idea", 'String'>
  6529. readonly llmAiType: FieldRef<"Idea", 'String'>
  6530. readonly llmExplanation: FieldRef<"Idea", 'String'>
  6531. readonly llmScoreImpact: FieldRef<"Idea", 'Int'>
  6532. readonly llmScoreFeasibility: FieldRef<"Idea", 'Int'>
  6533. readonly llmScoreUrgency: FieldRef<"Idea", 'Int'>
  6534. readonly llmEnrichedAt: FieldRef<"Idea", 'DateTime'>
  6535. readonly llmEnrichFailed: FieldRef<"Idea", 'Boolean'>
  6536. readonly manualScoreImpact: FieldRef<"Idea", 'Int'>
  6537. readonly manualScoreFeasibility: FieldRef<"Idea", 'Int'>
  6538. readonly manualScoreUrgency: FieldRef<"Idea", 'Int'>
  6539. readonly priorityOrder: FieldRef<"Idea", 'Int'>
  6540. readonly emailMessageId: FieldRef<"Idea", 'String'>
  6541. readonly createdAt: FieldRef<"Idea", 'DateTime'>
  6542. readonly updatedAt: FieldRef<"Idea", 'DateTime'>
  6543. }
  6544. // Custom InputTypes
  6545. /**
  6546. * Idea findUnique
  6547. */
  6548. export type IdeaFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6549. /**
  6550. * Select specific fields to fetch from the Idea
  6551. */
  6552. select?: IdeaSelect<ExtArgs> | null
  6553. /**
  6554. * Omit specific fields from the Idea
  6555. */
  6556. omit?: IdeaOmit<ExtArgs> | null
  6557. /**
  6558. * Choose, which related nodes to fetch as well
  6559. */
  6560. include?: IdeaInclude<ExtArgs> | null
  6561. /**
  6562. * Filter, which Idea to fetch.
  6563. */
  6564. where: IdeaWhereUniqueInput
  6565. }
  6566. /**
  6567. * Idea findUniqueOrThrow
  6568. */
  6569. export type IdeaFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6570. /**
  6571. * Select specific fields to fetch from the Idea
  6572. */
  6573. select?: IdeaSelect<ExtArgs> | null
  6574. /**
  6575. * Omit specific fields from the Idea
  6576. */
  6577. omit?: IdeaOmit<ExtArgs> | null
  6578. /**
  6579. * Choose, which related nodes to fetch as well
  6580. */
  6581. include?: IdeaInclude<ExtArgs> | null
  6582. /**
  6583. * Filter, which Idea to fetch.
  6584. */
  6585. where: IdeaWhereUniqueInput
  6586. }
  6587. /**
  6588. * Idea findFirst
  6589. */
  6590. export type IdeaFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6591. /**
  6592. * Select specific fields to fetch from the Idea
  6593. */
  6594. select?: IdeaSelect<ExtArgs> | null
  6595. /**
  6596. * Omit specific fields from the Idea
  6597. */
  6598. omit?: IdeaOmit<ExtArgs> | null
  6599. /**
  6600. * Choose, which related nodes to fetch as well
  6601. */
  6602. include?: IdeaInclude<ExtArgs> | null
  6603. /**
  6604. * Filter, which Idea to fetch.
  6605. */
  6606. where?: IdeaWhereInput
  6607. /**
  6608. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6609. *
  6610. * Determine the order of Ideas to fetch.
  6611. */
  6612. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6613. /**
  6614. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6615. *
  6616. * Sets the position for searching for Ideas.
  6617. */
  6618. cursor?: IdeaWhereUniqueInput
  6619. /**
  6620. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6621. *
  6622. * Take `±n` Ideas from the position of the cursor.
  6623. */
  6624. take?: number
  6625. /**
  6626. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6627. *
  6628. * Skip the first `n` Ideas.
  6629. */
  6630. skip?: number
  6631. /**
  6632. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6633. *
  6634. * Filter by unique combinations of Ideas.
  6635. */
  6636. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6637. }
  6638. /**
  6639. * Idea findFirstOrThrow
  6640. */
  6641. export type IdeaFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6642. /**
  6643. * Select specific fields to fetch from the Idea
  6644. */
  6645. select?: IdeaSelect<ExtArgs> | null
  6646. /**
  6647. * Omit specific fields from the Idea
  6648. */
  6649. omit?: IdeaOmit<ExtArgs> | null
  6650. /**
  6651. * Choose, which related nodes to fetch as well
  6652. */
  6653. include?: IdeaInclude<ExtArgs> | null
  6654. /**
  6655. * Filter, which Idea to fetch.
  6656. */
  6657. where?: IdeaWhereInput
  6658. /**
  6659. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6660. *
  6661. * Determine the order of Ideas to fetch.
  6662. */
  6663. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6664. /**
  6665. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6666. *
  6667. * Sets the position for searching for Ideas.
  6668. */
  6669. cursor?: IdeaWhereUniqueInput
  6670. /**
  6671. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6672. *
  6673. * Take `±n` Ideas from the position of the cursor.
  6674. */
  6675. take?: number
  6676. /**
  6677. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6678. *
  6679. * Skip the first `n` Ideas.
  6680. */
  6681. skip?: number
  6682. /**
  6683. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  6684. *
  6685. * Filter by unique combinations of Ideas.
  6686. */
  6687. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6688. }
  6689. /**
  6690. * Idea findMany
  6691. */
  6692. export type IdeaFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6693. /**
  6694. * Select specific fields to fetch from the Idea
  6695. */
  6696. select?: IdeaSelect<ExtArgs> | null
  6697. /**
  6698. * Omit specific fields from the Idea
  6699. */
  6700. omit?: IdeaOmit<ExtArgs> | null
  6701. /**
  6702. * Choose, which related nodes to fetch as well
  6703. */
  6704. include?: IdeaInclude<ExtArgs> | null
  6705. /**
  6706. * Filter, which Ideas to fetch.
  6707. */
  6708. where?: IdeaWhereInput
  6709. /**
  6710. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  6711. *
  6712. * Determine the order of Ideas to fetch.
  6713. */
  6714. orderBy?: IdeaOrderByWithRelationInput | IdeaOrderByWithRelationInput[]
  6715. /**
  6716. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  6717. *
  6718. * Sets the position for listing Ideas.
  6719. */
  6720. cursor?: IdeaWhereUniqueInput
  6721. /**
  6722. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6723. *
  6724. * Take `±n` Ideas from the position of the cursor.
  6725. */
  6726. take?: number
  6727. /**
  6728. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  6729. *
  6730. * Skip the first `n` Ideas.
  6731. */
  6732. skip?: number
  6733. distinct?: IdeaScalarFieldEnum | IdeaScalarFieldEnum[]
  6734. }
  6735. /**
  6736. * Idea create
  6737. */
  6738. export type IdeaCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6739. /**
  6740. * Select specific fields to fetch from the Idea
  6741. */
  6742. select?: IdeaSelect<ExtArgs> | null
  6743. /**
  6744. * Omit specific fields from the Idea
  6745. */
  6746. omit?: IdeaOmit<ExtArgs> | null
  6747. /**
  6748. * Choose, which related nodes to fetch as well
  6749. */
  6750. include?: IdeaInclude<ExtArgs> | null
  6751. /**
  6752. * The data needed to create a Idea.
  6753. */
  6754. data: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6755. }
  6756. /**
  6757. * Idea createMany
  6758. */
  6759. export type IdeaCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6760. /**
  6761. * The data used to create many Ideas.
  6762. */
  6763. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6764. skipDuplicates?: boolean
  6765. }
  6766. /**
  6767. * Idea createManyAndReturn
  6768. */
  6769. export type IdeaCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6770. /**
  6771. * Select specific fields to fetch from the Idea
  6772. */
  6773. select?: IdeaSelectCreateManyAndReturn<ExtArgs> | null
  6774. /**
  6775. * Omit specific fields from the Idea
  6776. */
  6777. omit?: IdeaOmit<ExtArgs> | null
  6778. /**
  6779. * The data used to create many Ideas.
  6780. */
  6781. data: IdeaCreateManyInput | IdeaCreateManyInput[]
  6782. skipDuplicates?: boolean
  6783. /**
  6784. * Choose, which related nodes to fetch as well
  6785. */
  6786. include?: IdeaIncludeCreateManyAndReturn<ExtArgs> | null
  6787. }
  6788. /**
  6789. * Idea update
  6790. */
  6791. export type IdeaUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6792. /**
  6793. * Select specific fields to fetch from the Idea
  6794. */
  6795. select?: IdeaSelect<ExtArgs> | null
  6796. /**
  6797. * Omit specific fields from the Idea
  6798. */
  6799. omit?: IdeaOmit<ExtArgs> | null
  6800. /**
  6801. * Choose, which related nodes to fetch as well
  6802. */
  6803. include?: IdeaInclude<ExtArgs> | null
  6804. /**
  6805. * The data needed to update a Idea.
  6806. */
  6807. data: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6808. /**
  6809. * Choose, which Idea to update.
  6810. */
  6811. where: IdeaWhereUniqueInput
  6812. }
  6813. /**
  6814. * Idea updateMany
  6815. */
  6816. export type IdeaUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6817. /**
  6818. * The data used to update Ideas.
  6819. */
  6820. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6821. /**
  6822. * Filter which Ideas to update
  6823. */
  6824. where?: IdeaWhereInput
  6825. /**
  6826. * Limit how many Ideas to update.
  6827. */
  6828. limit?: number
  6829. }
  6830. /**
  6831. * Idea updateManyAndReturn
  6832. */
  6833. export type IdeaUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6834. /**
  6835. * Select specific fields to fetch from the Idea
  6836. */
  6837. select?: IdeaSelectUpdateManyAndReturn<ExtArgs> | null
  6838. /**
  6839. * Omit specific fields from the Idea
  6840. */
  6841. omit?: IdeaOmit<ExtArgs> | null
  6842. /**
  6843. * The data used to update Ideas.
  6844. */
  6845. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyInput>
  6846. /**
  6847. * Filter which Ideas to update
  6848. */
  6849. where?: IdeaWhereInput
  6850. /**
  6851. * Limit how many Ideas to update.
  6852. */
  6853. limit?: number
  6854. /**
  6855. * Choose, which related nodes to fetch as well
  6856. */
  6857. include?: IdeaIncludeUpdateManyAndReturn<ExtArgs> | null
  6858. }
  6859. /**
  6860. * Idea upsert
  6861. */
  6862. export type IdeaUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6863. /**
  6864. * Select specific fields to fetch from the Idea
  6865. */
  6866. select?: IdeaSelect<ExtArgs> | null
  6867. /**
  6868. * Omit specific fields from the Idea
  6869. */
  6870. omit?: IdeaOmit<ExtArgs> | null
  6871. /**
  6872. * Choose, which related nodes to fetch as well
  6873. */
  6874. include?: IdeaInclude<ExtArgs> | null
  6875. /**
  6876. * The filter to search for the Idea to update in case it exists.
  6877. */
  6878. where: IdeaWhereUniqueInput
  6879. /**
  6880. * In case the Idea found by the `where` argument doesn't exist, create a new Idea with this data.
  6881. */
  6882. create: XOR<IdeaCreateInput, IdeaUncheckedCreateInput>
  6883. /**
  6884. * In case the Idea was found with the provided `where` argument, update it with this data.
  6885. */
  6886. update: XOR<IdeaUpdateInput, IdeaUncheckedUpdateInput>
  6887. }
  6888. /**
  6889. * Idea delete
  6890. */
  6891. export type IdeaDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6892. /**
  6893. * Select specific fields to fetch from the Idea
  6894. */
  6895. select?: IdeaSelect<ExtArgs> | null
  6896. /**
  6897. * Omit specific fields from the Idea
  6898. */
  6899. omit?: IdeaOmit<ExtArgs> | null
  6900. /**
  6901. * Choose, which related nodes to fetch as well
  6902. */
  6903. include?: IdeaInclude<ExtArgs> | null
  6904. /**
  6905. * Filter which Idea to delete.
  6906. */
  6907. where: IdeaWhereUniqueInput
  6908. }
  6909. /**
  6910. * Idea deleteMany
  6911. */
  6912. export type IdeaDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6913. /**
  6914. * Filter which Ideas to delete
  6915. */
  6916. where?: IdeaWhereInput
  6917. /**
  6918. * Limit how many Ideas to delete.
  6919. */
  6920. limit?: number
  6921. }
  6922. /**
  6923. * Idea.contributor
  6924. */
  6925. export type Idea$contributorArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6926. /**
  6927. * Select specific fields to fetch from the Contributor
  6928. */
  6929. select?: ContributorSelect<ExtArgs> | null
  6930. /**
  6931. * Omit specific fields from the Contributor
  6932. */
  6933. omit?: ContributorOmit<ExtArgs> | null
  6934. /**
  6935. * Choose, which related nodes to fetch as well
  6936. */
  6937. include?: ContributorInclude<ExtArgs> | null
  6938. where?: ContributorWhereInput
  6939. }
  6940. /**
  6941. * Idea.attachments
  6942. */
  6943. export type Idea$attachmentsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6944. /**
  6945. * Select specific fields to fetch from the IdeaAttachment
  6946. */
  6947. select?: IdeaAttachmentSelect<ExtArgs> | null
  6948. /**
  6949. * Omit specific fields from the IdeaAttachment
  6950. */
  6951. omit?: IdeaAttachmentOmit<ExtArgs> | null
  6952. /**
  6953. * Choose, which related nodes to fetch as well
  6954. */
  6955. include?: IdeaAttachmentInclude<ExtArgs> | null
  6956. where?: IdeaAttachmentWhereInput
  6957. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  6958. cursor?: IdeaAttachmentWhereUniqueInput
  6959. take?: number
  6960. skip?: number
  6961. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  6962. }
  6963. /**
  6964. * Idea.qualificationQuestions
  6965. */
  6966. export type Idea$qualificationQuestionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6967. /**
  6968. * Select specific fields to fetch from the QualificationQuestion
  6969. */
  6970. select?: QualificationQuestionSelect<ExtArgs> | null
  6971. /**
  6972. * Omit specific fields from the QualificationQuestion
  6973. */
  6974. omit?: QualificationQuestionOmit<ExtArgs> | null
  6975. /**
  6976. * Choose, which related nodes to fetch as well
  6977. */
  6978. include?: QualificationQuestionInclude<ExtArgs> | null
  6979. where?: QualificationQuestionWhereInput
  6980. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  6981. cursor?: QualificationQuestionWhereUniqueInput
  6982. take?: number
  6983. skip?: number
  6984. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  6985. }
  6986. /**
  6987. * Idea without action
  6988. */
  6989. export type IdeaDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  6990. /**
  6991. * Select specific fields to fetch from the Idea
  6992. */
  6993. select?: IdeaSelect<ExtArgs> | null
  6994. /**
  6995. * Omit specific fields from the Idea
  6996. */
  6997. omit?: IdeaOmit<ExtArgs> | null
  6998. /**
  6999. * Choose, which related nodes to fetch as well
  7000. */
  7001. include?: IdeaInclude<ExtArgs> | null
  7002. }
  7003. /**
  7004. * Model Post
  7005. */
  7006. export type AggregatePost = {
  7007. _count: PostCountAggregateOutputType | null
  7008. _avg: PostAvgAggregateOutputType | null
  7009. _sum: PostSumAggregateOutputType | null
  7010. _min: PostMinAggregateOutputType | null
  7011. _max: PostMaxAggregateOutputType | null
  7012. }
  7013. export type PostAvgAggregateOutputType = {
  7014. id: number | null
  7015. }
  7016. export type PostSumAggregateOutputType = {
  7017. id: number | null
  7018. }
  7019. export type PostMinAggregateOutputType = {
  7020. id: number | null
  7021. name: string | null
  7022. createdAt: Date | null
  7023. updatedAt: Date | null
  7024. createdById: string | null
  7025. }
  7026. export type PostMaxAggregateOutputType = {
  7027. id: number | null
  7028. name: string | null
  7029. createdAt: Date | null
  7030. updatedAt: Date | null
  7031. createdById: string | null
  7032. }
  7033. export type PostCountAggregateOutputType = {
  7034. id: number
  7035. name: number
  7036. createdAt: number
  7037. updatedAt: number
  7038. createdById: number
  7039. _all: number
  7040. }
  7041. export type PostAvgAggregateInputType = {
  7042. id?: true
  7043. }
  7044. export type PostSumAggregateInputType = {
  7045. id?: true
  7046. }
  7047. export type PostMinAggregateInputType = {
  7048. id?: true
  7049. name?: true
  7050. createdAt?: true
  7051. updatedAt?: true
  7052. createdById?: true
  7053. }
  7054. export type PostMaxAggregateInputType = {
  7055. id?: true
  7056. name?: true
  7057. createdAt?: true
  7058. updatedAt?: true
  7059. createdById?: true
  7060. }
  7061. export type PostCountAggregateInputType = {
  7062. id?: true
  7063. name?: true
  7064. createdAt?: true
  7065. updatedAt?: true
  7066. createdById?: true
  7067. _all?: true
  7068. }
  7069. export type PostAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7070. /**
  7071. * Filter which Post to aggregate.
  7072. */
  7073. where?: PostWhereInput
  7074. /**
  7075. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7076. *
  7077. * Determine the order of Posts to fetch.
  7078. */
  7079. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7080. /**
  7081. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7082. *
  7083. * Sets the start position
  7084. */
  7085. cursor?: PostWhereUniqueInput
  7086. /**
  7087. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7088. *
  7089. * Take `±n` Posts from the position of the cursor.
  7090. */
  7091. take?: number
  7092. /**
  7093. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7094. *
  7095. * Skip the first `n` Posts.
  7096. */
  7097. skip?: number
  7098. /**
  7099. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7100. *
  7101. * Count returned Posts
  7102. **/
  7103. _count?: true | PostCountAggregateInputType
  7104. /**
  7105. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7106. *
  7107. * Select which fields to average
  7108. **/
  7109. _avg?: PostAvgAggregateInputType
  7110. /**
  7111. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7112. *
  7113. * Select which fields to sum
  7114. **/
  7115. _sum?: PostSumAggregateInputType
  7116. /**
  7117. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7118. *
  7119. * Select which fields to find the minimum value
  7120. **/
  7121. _min?: PostMinAggregateInputType
  7122. /**
  7123. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  7124. *
  7125. * Select which fields to find the maximum value
  7126. **/
  7127. _max?: PostMaxAggregateInputType
  7128. }
  7129. export type GetPostAggregateType<T extends PostAggregateArgs> = {
  7130. [P in keyof T & keyof AggregatePost]: P extends '_count' | 'count'
  7131. ? T[P] extends true
  7132. ? number
  7133. : GetScalarType<T[P], AggregatePost[P]>
  7134. : GetScalarType<T[P], AggregatePost[P]>
  7135. }
  7136. export type PostGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7137. where?: PostWhereInput
  7138. orderBy?: PostOrderByWithAggregationInput | PostOrderByWithAggregationInput[]
  7139. by: PostScalarFieldEnum[] | PostScalarFieldEnum
  7140. having?: PostScalarWhereWithAggregatesInput
  7141. take?: number
  7142. skip?: number
  7143. _count?: PostCountAggregateInputType | true
  7144. _avg?: PostAvgAggregateInputType
  7145. _sum?: PostSumAggregateInputType
  7146. _min?: PostMinAggregateInputType
  7147. _max?: PostMaxAggregateInputType
  7148. }
  7149. export type PostGroupByOutputType = {
  7150. id: number
  7151. name: string
  7152. createdAt: Date
  7153. updatedAt: Date
  7154. createdById: string
  7155. _count: PostCountAggregateOutputType | null
  7156. _avg: PostAvgAggregateOutputType | null
  7157. _sum: PostSumAggregateOutputType | null
  7158. _min: PostMinAggregateOutputType | null
  7159. _max: PostMaxAggregateOutputType | null
  7160. }
  7161. type GetPostGroupByPayload<T extends PostGroupByArgs> = Prisma.PrismaPromise<
  7162. Array<
  7163. PickEnumerable<PostGroupByOutputType, T['by']> &
  7164. {
  7165. [P in ((keyof T) & (keyof PostGroupByOutputType))]: P extends '_count'
  7166. ? T[P] extends boolean
  7167. ? number
  7168. : GetScalarType<T[P], PostGroupByOutputType[P]>
  7169. : GetScalarType<T[P], PostGroupByOutputType[P]>
  7170. }
  7171. >
  7172. >
  7173. export type PostSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7174. id?: boolean
  7175. name?: boolean
  7176. createdAt?: boolean
  7177. updatedAt?: boolean
  7178. createdById?: boolean
  7179. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7180. }, ExtArgs["result"]["post"]>
  7181. export type PostSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7182. id?: boolean
  7183. name?: boolean
  7184. createdAt?: boolean
  7185. updatedAt?: boolean
  7186. createdById?: boolean
  7187. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7188. }, ExtArgs["result"]["post"]>
  7189. export type PostSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  7190. id?: boolean
  7191. name?: boolean
  7192. createdAt?: boolean
  7193. updatedAt?: boolean
  7194. createdById?: boolean
  7195. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7196. }, ExtArgs["result"]["post"]>
  7197. export type PostSelectScalar = {
  7198. id?: boolean
  7199. name?: boolean
  7200. createdAt?: boolean
  7201. updatedAt?: boolean
  7202. createdById?: boolean
  7203. }
  7204. export type PostOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "createdAt" | "updatedAt" | "createdById", ExtArgs["result"]["post"]>
  7205. export type PostInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7206. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7207. }
  7208. export type PostIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7209. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7210. }
  7211. export type PostIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7212. createdBy?: boolean | UserDefaultArgs<ExtArgs>
  7213. }
  7214. export type $PostPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7215. name: "Post"
  7216. objects: {
  7217. createdBy: Prisma.$UserPayload<ExtArgs>
  7218. }
  7219. scalars: $Extensions.GetPayloadResult<{
  7220. id: number
  7221. name: string
  7222. createdAt: Date
  7223. updatedAt: Date
  7224. createdById: string
  7225. }, ExtArgs["result"]["post"]>
  7226. composites: {}
  7227. }
  7228. type PostGetPayload<S extends boolean | null | undefined | PostDefaultArgs> = $Result.GetResult<Prisma.$PostPayload, S>
  7229. type PostCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  7230. Omit<PostFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  7231. select?: PostCountAggregateInputType | true
  7232. }
  7233. export interface PostDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  7234. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Post'], meta: { name: 'Post' } }
  7235. /**
  7236. * Find zero or one Post that matches the filter.
  7237. * @param {PostFindUniqueArgs} args - Arguments to find a Post
  7238. * @example
  7239. * // Get one Post
  7240. * const post = await prisma.post.findUnique({
  7241. * where: {
  7242. * // ... provide filter here
  7243. * }
  7244. * })
  7245. */
  7246. findUnique<T extends PostFindUniqueArgs>(args: SelectSubset<T, PostFindUniqueArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7247. /**
  7248. * Find one Post that matches the filter or throw an error with `error.code='P2025'`
  7249. * if no matches were found.
  7250. * @param {PostFindUniqueOrThrowArgs} args - Arguments to find a Post
  7251. * @example
  7252. * // Get one Post
  7253. * const post = await prisma.post.findUniqueOrThrow({
  7254. * where: {
  7255. * // ... provide filter here
  7256. * }
  7257. * })
  7258. */
  7259. findUniqueOrThrow<T extends PostFindUniqueOrThrowArgs>(args: SelectSubset<T, PostFindUniqueOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7260. /**
  7261. * Find the first Post that matches the filter.
  7262. * Note, that providing `undefined` is treated as the value not being there.
  7263. * Read more here: https://pris.ly/d/null-undefined
  7264. * @param {PostFindFirstArgs} args - Arguments to find a Post
  7265. * @example
  7266. * // Get one Post
  7267. * const post = await prisma.post.findFirst({
  7268. * where: {
  7269. * // ... provide filter here
  7270. * }
  7271. * })
  7272. */
  7273. findFirst<T extends PostFindFirstArgs>(args?: SelectSubset<T, PostFindFirstArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  7274. /**
  7275. * Find the first Post that matches the filter or
  7276. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  7277. * Note, that providing `undefined` is treated as the value not being there.
  7278. * Read more here: https://pris.ly/d/null-undefined
  7279. * @param {PostFindFirstOrThrowArgs} args - Arguments to find a Post
  7280. * @example
  7281. * // Get one Post
  7282. * const post = await prisma.post.findFirstOrThrow({
  7283. * where: {
  7284. * // ... provide filter here
  7285. * }
  7286. * })
  7287. */
  7288. findFirstOrThrow<T extends PostFindFirstOrThrowArgs>(args?: SelectSubset<T, PostFindFirstOrThrowArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7289. /**
  7290. * Find zero or more Posts that matches the filter.
  7291. * Note, that providing `undefined` is treated as the value not being there.
  7292. * Read more here: https://pris.ly/d/null-undefined
  7293. * @param {PostFindManyArgs} args - Arguments to filter and select certain fields only.
  7294. * @example
  7295. * // Get all Posts
  7296. * const posts = await prisma.post.findMany()
  7297. *
  7298. * // Get first 10 Posts
  7299. * const posts = await prisma.post.findMany({ take: 10 })
  7300. *
  7301. * // Only select the `id`
  7302. * const postWithIdOnly = await prisma.post.findMany({ select: { id: true } })
  7303. *
  7304. */
  7305. findMany<T extends PostFindManyArgs>(args?: SelectSubset<T, PostFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  7306. /**
  7307. * Create a Post.
  7308. * @param {PostCreateArgs} args - Arguments to create a Post.
  7309. * @example
  7310. * // Create one Post
  7311. * const Post = await prisma.post.create({
  7312. * data: {
  7313. * // ... data to create a Post
  7314. * }
  7315. * })
  7316. *
  7317. */
  7318. create<T extends PostCreateArgs>(args: SelectSubset<T, PostCreateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7319. /**
  7320. * Create many Posts.
  7321. * @param {PostCreateManyArgs} args - Arguments to create many Posts.
  7322. * @example
  7323. * // Create many Posts
  7324. * const post = await prisma.post.createMany({
  7325. * data: [
  7326. * // ... provide data here
  7327. * ]
  7328. * })
  7329. *
  7330. */
  7331. createMany<T extends PostCreateManyArgs>(args?: SelectSubset<T, PostCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7332. /**
  7333. * Create many Posts and returns the data saved in the database.
  7334. * @param {PostCreateManyAndReturnArgs} args - Arguments to create many Posts.
  7335. * @example
  7336. * // Create many Posts
  7337. * const post = await prisma.post.createManyAndReturn({
  7338. * data: [
  7339. * // ... provide data here
  7340. * ]
  7341. * })
  7342. *
  7343. * // Create many Posts and only return the `id`
  7344. * const postWithIdOnly = await prisma.post.createManyAndReturn({
  7345. * select: { id: true },
  7346. * data: [
  7347. * // ... provide data here
  7348. * ]
  7349. * })
  7350. * Note, that providing `undefined` is treated as the value not being there.
  7351. * Read more here: https://pris.ly/d/null-undefined
  7352. *
  7353. */
  7354. createManyAndReturn<T extends PostCreateManyAndReturnArgs>(args?: SelectSubset<T, PostCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  7355. /**
  7356. * Delete a Post.
  7357. * @param {PostDeleteArgs} args - Arguments to delete one Post.
  7358. * @example
  7359. * // Delete one Post
  7360. * const Post = await prisma.post.delete({
  7361. * where: {
  7362. * // ... filter to delete one Post
  7363. * }
  7364. * })
  7365. *
  7366. */
  7367. delete<T extends PostDeleteArgs>(args: SelectSubset<T, PostDeleteArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7368. /**
  7369. * Update one Post.
  7370. * @param {PostUpdateArgs} args - Arguments to update one Post.
  7371. * @example
  7372. * // Update one Post
  7373. * const post = await prisma.post.update({
  7374. * where: {
  7375. * // ... provide filter here
  7376. * },
  7377. * data: {
  7378. * // ... provide data here
  7379. * }
  7380. * })
  7381. *
  7382. */
  7383. update<T extends PostUpdateArgs>(args: SelectSubset<T, PostUpdateArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7384. /**
  7385. * Delete zero or more Posts.
  7386. * @param {PostDeleteManyArgs} args - Arguments to filter Posts to delete.
  7387. * @example
  7388. * // Delete a few Posts
  7389. * const { count } = await prisma.post.deleteMany({
  7390. * where: {
  7391. * // ... provide filter here
  7392. * }
  7393. * })
  7394. *
  7395. */
  7396. deleteMany<T extends PostDeleteManyArgs>(args?: SelectSubset<T, PostDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7397. /**
  7398. * Update zero or more Posts.
  7399. * Note, that providing `undefined` is treated as the value not being there.
  7400. * Read more here: https://pris.ly/d/null-undefined
  7401. * @param {PostUpdateManyArgs} args - Arguments to update one or more rows.
  7402. * @example
  7403. * // Update many Posts
  7404. * const post = await prisma.post.updateMany({
  7405. * where: {
  7406. * // ... provide filter here
  7407. * },
  7408. * data: {
  7409. * // ... provide data here
  7410. * }
  7411. * })
  7412. *
  7413. */
  7414. updateMany<T extends PostUpdateManyArgs>(args: SelectSubset<T, PostUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  7415. /**
  7416. * Update zero or more Posts and returns the data updated in the database.
  7417. * @param {PostUpdateManyAndReturnArgs} args - Arguments to update many Posts.
  7418. * @example
  7419. * // Update many Posts
  7420. * const post = await prisma.post.updateManyAndReturn({
  7421. * where: {
  7422. * // ... provide filter here
  7423. * },
  7424. * data: [
  7425. * // ... provide data here
  7426. * ]
  7427. * })
  7428. *
  7429. * // Update zero or more Posts and only return the `id`
  7430. * const postWithIdOnly = await prisma.post.updateManyAndReturn({
  7431. * select: { id: true },
  7432. * where: {
  7433. * // ... provide filter here
  7434. * },
  7435. * data: [
  7436. * // ... provide data here
  7437. * ]
  7438. * })
  7439. * Note, that providing `undefined` is treated as the value not being there.
  7440. * Read more here: https://pris.ly/d/null-undefined
  7441. *
  7442. */
  7443. updateManyAndReturn<T extends PostUpdateManyAndReturnArgs>(args: SelectSubset<T, PostUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  7444. /**
  7445. * Create or update one Post.
  7446. * @param {PostUpsertArgs} args - Arguments to update or create a Post.
  7447. * @example
  7448. * // Update or create a Post
  7449. * const post = await prisma.post.upsert({
  7450. * create: {
  7451. * // ... data to create a Post
  7452. * },
  7453. * update: {
  7454. * // ... in case it already exists, update
  7455. * },
  7456. * where: {
  7457. * // ... the filter for the Post we want to update
  7458. * }
  7459. * })
  7460. */
  7461. upsert<T extends PostUpsertArgs>(args: SelectSubset<T, PostUpsertArgs<ExtArgs>>): Prisma__PostClient<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  7462. /**
  7463. * Count the number of Posts.
  7464. * Note, that providing `undefined` is treated as the value not being there.
  7465. * Read more here: https://pris.ly/d/null-undefined
  7466. * @param {PostCountArgs} args - Arguments to filter Posts to count.
  7467. * @example
  7468. * // Count the number of Posts
  7469. * const count = await prisma.post.count({
  7470. * where: {
  7471. * // ... the filter for the Posts we want to count
  7472. * }
  7473. * })
  7474. **/
  7475. count<T extends PostCountArgs>(
  7476. args?: Subset<T, PostCountArgs>,
  7477. ): Prisma.PrismaPromise<
  7478. T extends $Utils.Record<'select', any>
  7479. ? T['select'] extends true
  7480. ? number
  7481. : GetScalarType<T['select'], PostCountAggregateOutputType>
  7482. : number
  7483. >
  7484. /**
  7485. * Allows you to perform aggregations operations on a Post.
  7486. * Note, that providing `undefined` is treated as the value not being there.
  7487. * Read more here: https://pris.ly/d/null-undefined
  7488. * @param {PostAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  7489. * @example
  7490. * // Ordered by age ascending
  7491. * // Where email contains prisma.io
  7492. * // Limited to the 10 users
  7493. * const aggregations = await prisma.user.aggregate({
  7494. * _avg: {
  7495. * age: true,
  7496. * },
  7497. * where: {
  7498. * email: {
  7499. * contains: "prisma.io",
  7500. * },
  7501. * },
  7502. * orderBy: {
  7503. * age: "asc",
  7504. * },
  7505. * take: 10,
  7506. * })
  7507. **/
  7508. aggregate<T extends PostAggregateArgs>(args: Subset<T, PostAggregateArgs>): Prisma.PrismaPromise<GetPostAggregateType<T>>
  7509. /**
  7510. * Group by Post.
  7511. * Note, that providing `undefined` is treated as the value not being there.
  7512. * Read more here: https://pris.ly/d/null-undefined
  7513. * @param {PostGroupByArgs} args - Group by arguments.
  7514. * @example
  7515. * // Group by city, order by createdAt, get count
  7516. * const result = await prisma.user.groupBy({
  7517. * by: ['city', 'createdAt'],
  7518. * orderBy: {
  7519. * createdAt: true
  7520. * },
  7521. * _count: {
  7522. * _all: true
  7523. * },
  7524. * })
  7525. *
  7526. **/
  7527. groupBy<
  7528. T extends PostGroupByArgs,
  7529. HasSelectOrTake extends Or<
  7530. Extends<'skip', Keys<T>>,
  7531. Extends<'take', Keys<T>>
  7532. >,
  7533. OrderByArg extends True extends HasSelectOrTake
  7534. ? { orderBy: PostGroupByArgs['orderBy'] }
  7535. : { orderBy?: PostGroupByArgs['orderBy'] },
  7536. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  7537. ByFields extends MaybeTupleToUnion<T['by']>,
  7538. ByValid extends Has<ByFields, OrderFields>,
  7539. HavingFields extends GetHavingFields<T['having']>,
  7540. HavingValid extends Has<ByFields, HavingFields>,
  7541. ByEmpty extends T['by'] extends never[] ? True : False,
  7542. InputErrors extends ByEmpty extends True
  7543. ? `Error: "by" must not be empty.`
  7544. : HavingValid extends False
  7545. ? {
  7546. [P in HavingFields]: P extends ByFields
  7547. ? never
  7548. : P extends string
  7549. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  7550. : [
  7551. Error,
  7552. 'Field ',
  7553. P,
  7554. ` in "having" needs to be provided in "by"`,
  7555. ]
  7556. }[HavingFields]
  7557. : 'take' extends Keys<T>
  7558. ? 'orderBy' extends Keys<T>
  7559. ? ByValid extends True
  7560. ? {}
  7561. : {
  7562. [P in OrderFields]: P extends ByFields
  7563. ? never
  7564. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7565. }[OrderFields]
  7566. : 'Error: If you provide "take", you also need to provide "orderBy"'
  7567. : 'skip' extends Keys<T>
  7568. ? 'orderBy' extends Keys<T>
  7569. ? ByValid extends True
  7570. ? {}
  7571. : {
  7572. [P in OrderFields]: P extends ByFields
  7573. ? never
  7574. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7575. }[OrderFields]
  7576. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  7577. : ByValid extends True
  7578. ? {}
  7579. : {
  7580. [P in OrderFields]: P extends ByFields
  7581. ? never
  7582. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  7583. }[OrderFields]
  7584. >(args: SubsetIntersection<T, PostGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPostGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  7585. /**
  7586. * Fields of the Post model
  7587. */
  7588. readonly fields: PostFieldRefs;
  7589. }
  7590. /**
  7591. * The delegate class that acts as a "Promise-like" for Post.
  7592. * Why is this prefixed with `Prisma__`?
  7593. * Because we want to prevent naming conflicts as mentioned in
  7594. * https://github.com/prisma/prisma-client-js/issues/707
  7595. */
  7596. export interface Prisma__PostClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  7597. readonly [Symbol.toStringTag]: "PrismaPromise"
  7598. createdBy<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  7599. /**
  7600. * Attaches callbacks for the resolution and/or rejection of the Promise.
  7601. * @param onfulfilled The callback to execute when the Promise is resolved.
  7602. * @param onrejected The callback to execute when the Promise is rejected.
  7603. * @returns A Promise for the completion of which ever callback is executed.
  7604. */
  7605. 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>
  7606. /**
  7607. * Attaches a callback for only the rejection of the Promise.
  7608. * @param onrejected The callback to execute when the Promise is rejected.
  7609. * @returns A Promise for the completion of the callback.
  7610. */
  7611. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  7612. /**
  7613. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  7614. * resolved value cannot be modified from the callback.
  7615. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  7616. * @returns A Promise for the completion of the callback.
  7617. */
  7618. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  7619. }
  7620. /**
  7621. * Fields of the Post model
  7622. */
  7623. interface PostFieldRefs {
  7624. readonly id: FieldRef<"Post", 'Int'>
  7625. readonly name: FieldRef<"Post", 'String'>
  7626. readonly createdAt: FieldRef<"Post", 'DateTime'>
  7627. readonly updatedAt: FieldRef<"Post", 'DateTime'>
  7628. readonly createdById: FieldRef<"Post", 'String'>
  7629. }
  7630. // Custom InputTypes
  7631. /**
  7632. * Post findUnique
  7633. */
  7634. export type PostFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7635. /**
  7636. * Select specific fields to fetch from the Post
  7637. */
  7638. select?: PostSelect<ExtArgs> | null
  7639. /**
  7640. * Omit specific fields from the Post
  7641. */
  7642. omit?: PostOmit<ExtArgs> | null
  7643. /**
  7644. * Choose, which related nodes to fetch as well
  7645. */
  7646. include?: PostInclude<ExtArgs> | null
  7647. /**
  7648. * Filter, which Post to fetch.
  7649. */
  7650. where: PostWhereUniqueInput
  7651. }
  7652. /**
  7653. * Post findUniqueOrThrow
  7654. */
  7655. export type PostFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7656. /**
  7657. * Select specific fields to fetch from the Post
  7658. */
  7659. select?: PostSelect<ExtArgs> | null
  7660. /**
  7661. * Omit specific fields from the Post
  7662. */
  7663. omit?: PostOmit<ExtArgs> | null
  7664. /**
  7665. * Choose, which related nodes to fetch as well
  7666. */
  7667. include?: PostInclude<ExtArgs> | null
  7668. /**
  7669. * Filter, which Post to fetch.
  7670. */
  7671. where: PostWhereUniqueInput
  7672. }
  7673. /**
  7674. * Post findFirst
  7675. */
  7676. export type PostFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7677. /**
  7678. * Select specific fields to fetch from the Post
  7679. */
  7680. select?: PostSelect<ExtArgs> | null
  7681. /**
  7682. * Omit specific fields from the Post
  7683. */
  7684. omit?: PostOmit<ExtArgs> | null
  7685. /**
  7686. * Choose, which related nodes to fetch as well
  7687. */
  7688. include?: PostInclude<ExtArgs> | null
  7689. /**
  7690. * Filter, which Post to fetch.
  7691. */
  7692. where?: PostWhereInput
  7693. /**
  7694. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7695. *
  7696. * Determine the order of Posts to fetch.
  7697. */
  7698. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7699. /**
  7700. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7701. *
  7702. * Sets the position for searching for Posts.
  7703. */
  7704. cursor?: PostWhereUniqueInput
  7705. /**
  7706. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7707. *
  7708. * Take `±n` Posts from the position of the cursor.
  7709. */
  7710. take?: number
  7711. /**
  7712. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7713. *
  7714. * Skip the first `n` Posts.
  7715. */
  7716. skip?: number
  7717. /**
  7718. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7719. *
  7720. * Filter by unique combinations of Posts.
  7721. */
  7722. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7723. }
  7724. /**
  7725. * Post findFirstOrThrow
  7726. */
  7727. export type PostFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7728. /**
  7729. * Select specific fields to fetch from the Post
  7730. */
  7731. select?: PostSelect<ExtArgs> | null
  7732. /**
  7733. * Omit specific fields from the Post
  7734. */
  7735. omit?: PostOmit<ExtArgs> | null
  7736. /**
  7737. * Choose, which related nodes to fetch as well
  7738. */
  7739. include?: PostInclude<ExtArgs> | null
  7740. /**
  7741. * Filter, which Post to fetch.
  7742. */
  7743. where?: PostWhereInput
  7744. /**
  7745. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7746. *
  7747. * Determine the order of Posts to fetch.
  7748. */
  7749. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7750. /**
  7751. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7752. *
  7753. * Sets the position for searching for Posts.
  7754. */
  7755. cursor?: PostWhereUniqueInput
  7756. /**
  7757. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7758. *
  7759. * Take `±n` Posts from the position of the cursor.
  7760. */
  7761. take?: number
  7762. /**
  7763. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7764. *
  7765. * Skip the first `n` Posts.
  7766. */
  7767. skip?: number
  7768. /**
  7769. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  7770. *
  7771. * Filter by unique combinations of Posts.
  7772. */
  7773. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7774. }
  7775. /**
  7776. * Post findMany
  7777. */
  7778. export type PostFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7779. /**
  7780. * Select specific fields to fetch from the Post
  7781. */
  7782. select?: PostSelect<ExtArgs> | null
  7783. /**
  7784. * Omit specific fields from the Post
  7785. */
  7786. omit?: PostOmit<ExtArgs> | null
  7787. /**
  7788. * Choose, which related nodes to fetch as well
  7789. */
  7790. include?: PostInclude<ExtArgs> | null
  7791. /**
  7792. * Filter, which Posts to fetch.
  7793. */
  7794. where?: PostWhereInput
  7795. /**
  7796. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  7797. *
  7798. * Determine the order of Posts to fetch.
  7799. */
  7800. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  7801. /**
  7802. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  7803. *
  7804. * Sets the position for listing Posts.
  7805. */
  7806. cursor?: PostWhereUniqueInput
  7807. /**
  7808. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7809. *
  7810. * Take `±n` Posts from the position of the cursor.
  7811. */
  7812. take?: number
  7813. /**
  7814. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  7815. *
  7816. * Skip the first `n` Posts.
  7817. */
  7818. skip?: number
  7819. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  7820. }
  7821. /**
  7822. * Post create
  7823. */
  7824. export type PostCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7825. /**
  7826. * Select specific fields to fetch from the Post
  7827. */
  7828. select?: PostSelect<ExtArgs> | null
  7829. /**
  7830. * Omit specific fields from the Post
  7831. */
  7832. omit?: PostOmit<ExtArgs> | null
  7833. /**
  7834. * Choose, which related nodes to fetch as well
  7835. */
  7836. include?: PostInclude<ExtArgs> | null
  7837. /**
  7838. * The data needed to create a Post.
  7839. */
  7840. data: XOR<PostCreateInput, PostUncheckedCreateInput>
  7841. }
  7842. /**
  7843. * Post createMany
  7844. */
  7845. export type PostCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7846. /**
  7847. * The data used to create many Posts.
  7848. */
  7849. data: PostCreateManyInput | PostCreateManyInput[]
  7850. skipDuplicates?: boolean
  7851. }
  7852. /**
  7853. * Post createManyAndReturn
  7854. */
  7855. export type PostCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7856. /**
  7857. * Select specific fields to fetch from the Post
  7858. */
  7859. select?: PostSelectCreateManyAndReturn<ExtArgs> | null
  7860. /**
  7861. * Omit specific fields from the Post
  7862. */
  7863. omit?: PostOmit<ExtArgs> | null
  7864. /**
  7865. * The data used to create many Posts.
  7866. */
  7867. data: PostCreateManyInput | PostCreateManyInput[]
  7868. skipDuplicates?: boolean
  7869. /**
  7870. * Choose, which related nodes to fetch as well
  7871. */
  7872. include?: PostIncludeCreateManyAndReturn<ExtArgs> | null
  7873. }
  7874. /**
  7875. * Post update
  7876. */
  7877. export type PostUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7878. /**
  7879. * Select specific fields to fetch from the Post
  7880. */
  7881. select?: PostSelect<ExtArgs> | null
  7882. /**
  7883. * Omit specific fields from the Post
  7884. */
  7885. omit?: PostOmit<ExtArgs> | null
  7886. /**
  7887. * Choose, which related nodes to fetch as well
  7888. */
  7889. include?: PostInclude<ExtArgs> | null
  7890. /**
  7891. * The data needed to update a Post.
  7892. */
  7893. data: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7894. /**
  7895. * Choose, which Post to update.
  7896. */
  7897. where: PostWhereUniqueInput
  7898. }
  7899. /**
  7900. * Post updateMany
  7901. */
  7902. export type PostUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7903. /**
  7904. * The data used to update Posts.
  7905. */
  7906. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7907. /**
  7908. * Filter which Posts to update
  7909. */
  7910. where?: PostWhereInput
  7911. /**
  7912. * Limit how many Posts to update.
  7913. */
  7914. limit?: number
  7915. }
  7916. /**
  7917. * Post updateManyAndReturn
  7918. */
  7919. export type PostUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7920. /**
  7921. * Select specific fields to fetch from the Post
  7922. */
  7923. select?: PostSelectUpdateManyAndReturn<ExtArgs> | null
  7924. /**
  7925. * Omit specific fields from the Post
  7926. */
  7927. omit?: PostOmit<ExtArgs> | null
  7928. /**
  7929. * The data used to update Posts.
  7930. */
  7931. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyInput>
  7932. /**
  7933. * Filter which Posts to update
  7934. */
  7935. where?: PostWhereInput
  7936. /**
  7937. * Limit how many Posts to update.
  7938. */
  7939. limit?: number
  7940. /**
  7941. * Choose, which related nodes to fetch as well
  7942. */
  7943. include?: PostIncludeUpdateManyAndReturn<ExtArgs> | null
  7944. }
  7945. /**
  7946. * Post upsert
  7947. */
  7948. export type PostUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7949. /**
  7950. * Select specific fields to fetch from the Post
  7951. */
  7952. select?: PostSelect<ExtArgs> | null
  7953. /**
  7954. * Omit specific fields from the Post
  7955. */
  7956. omit?: PostOmit<ExtArgs> | null
  7957. /**
  7958. * Choose, which related nodes to fetch as well
  7959. */
  7960. include?: PostInclude<ExtArgs> | null
  7961. /**
  7962. * The filter to search for the Post to update in case it exists.
  7963. */
  7964. where: PostWhereUniqueInput
  7965. /**
  7966. * In case the Post found by the `where` argument doesn't exist, create a new Post with this data.
  7967. */
  7968. create: XOR<PostCreateInput, PostUncheckedCreateInput>
  7969. /**
  7970. * In case the Post was found with the provided `where` argument, update it with this data.
  7971. */
  7972. update: XOR<PostUpdateInput, PostUncheckedUpdateInput>
  7973. }
  7974. /**
  7975. * Post delete
  7976. */
  7977. export type PostDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7978. /**
  7979. * Select specific fields to fetch from the Post
  7980. */
  7981. select?: PostSelect<ExtArgs> | null
  7982. /**
  7983. * Omit specific fields from the Post
  7984. */
  7985. omit?: PostOmit<ExtArgs> | null
  7986. /**
  7987. * Choose, which related nodes to fetch as well
  7988. */
  7989. include?: PostInclude<ExtArgs> | null
  7990. /**
  7991. * Filter which Post to delete.
  7992. */
  7993. where: PostWhereUniqueInput
  7994. }
  7995. /**
  7996. * Post deleteMany
  7997. */
  7998. export type PostDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  7999. /**
  8000. * Filter which Posts to delete
  8001. */
  8002. where?: PostWhereInput
  8003. /**
  8004. * Limit how many Posts to delete.
  8005. */
  8006. limit?: number
  8007. }
  8008. /**
  8009. * Post without action
  8010. */
  8011. export type PostDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8012. /**
  8013. * Select specific fields to fetch from the Post
  8014. */
  8015. select?: PostSelect<ExtArgs> | null
  8016. /**
  8017. * Omit specific fields from the Post
  8018. */
  8019. omit?: PostOmit<ExtArgs> | null
  8020. /**
  8021. * Choose, which related nodes to fetch as well
  8022. */
  8023. include?: PostInclude<ExtArgs> | null
  8024. }
  8025. /**
  8026. * Model Account
  8027. */
  8028. export type AggregateAccount = {
  8029. _count: AccountCountAggregateOutputType | null
  8030. _avg: AccountAvgAggregateOutputType | null
  8031. _sum: AccountSumAggregateOutputType | null
  8032. _min: AccountMinAggregateOutputType | null
  8033. _max: AccountMaxAggregateOutputType | null
  8034. }
  8035. export type AccountAvgAggregateOutputType = {
  8036. expires_at: number | null
  8037. refresh_token_expires_in: number | null
  8038. }
  8039. export type AccountSumAggregateOutputType = {
  8040. expires_at: number | null
  8041. refresh_token_expires_in: number | null
  8042. }
  8043. export type AccountMinAggregateOutputType = {
  8044. id: string | null
  8045. userId: string | null
  8046. type: string | null
  8047. provider: string | null
  8048. providerAccountId: string | null
  8049. refresh_token: string | null
  8050. access_token: string | null
  8051. expires_at: number | null
  8052. token_type: string | null
  8053. scope: string | null
  8054. id_token: string | null
  8055. session_state: string | null
  8056. refresh_token_expires_in: number | null
  8057. }
  8058. export type AccountMaxAggregateOutputType = {
  8059. id: string | null
  8060. userId: string | null
  8061. type: string | null
  8062. provider: string | null
  8063. providerAccountId: string | null
  8064. refresh_token: string | null
  8065. access_token: string | null
  8066. expires_at: number | null
  8067. token_type: string | null
  8068. scope: string | null
  8069. id_token: string | null
  8070. session_state: string | null
  8071. refresh_token_expires_in: number | null
  8072. }
  8073. export type AccountCountAggregateOutputType = {
  8074. id: number
  8075. userId: number
  8076. type: number
  8077. provider: number
  8078. providerAccountId: number
  8079. refresh_token: number
  8080. access_token: number
  8081. expires_at: number
  8082. token_type: number
  8083. scope: number
  8084. id_token: number
  8085. session_state: number
  8086. refresh_token_expires_in: number
  8087. _all: number
  8088. }
  8089. export type AccountAvgAggregateInputType = {
  8090. expires_at?: true
  8091. refresh_token_expires_in?: true
  8092. }
  8093. export type AccountSumAggregateInputType = {
  8094. expires_at?: true
  8095. refresh_token_expires_in?: true
  8096. }
  8097. export type AccountMinAggregateInputType = {
  8098. id?: true
  8099. userId?: true
  8100. type?: true
  8101. provider?: true
  8102. providerAccountId?: true
  8103. refresh_token?: true
  8104. access_token?: true
  8105. expires_at?: true
  8106. token_type?: true
  8107. scope?: true
  8108. id_token?: true
  8109. session_state?: true
  8110. refresh_token_expires_in?: true
  8111. }
  8112. export type AccountMaxAggregateInputType = {
  8113. id?: true
  8114. userId?: true
  8115. type?: true
  8116. provider?: true
  8117. providerAccountId?: true
  8118. refresh_token?: true
  8119. access_token?: true
  8120. expires_at?: true
  8121. token_type?: true
  8122. scope?: true
  8123. id_token?: true
  8124. session_state?: true
  8125. refresh_token_expires_in?: true
  8126. }
  8127. export type AccountCountAggregateInputType = {
  8128. id?: true
  8129. userId?: true
  8130. type?: true
  8131. provider?: true
  8132. providerAccountId?: true
  8133. refresh_token?: true
  8134. access_token?: true
  8135. expires_at?: true
  8136. token_type?: true
  8137. scope?: true
  8138. id_token?: true
  8139. session_state?: true
  8140. refresh_token_expires_in?: true
  8141. _all?: true
  8142. }
  8143. export type AccountAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8144. /**
  8145. * Filter which Account to aggregate.
  8146. */
  8147. where?: AccountWhereInput
  8148. /**
  8149. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8150. *
  8151. * Determine the order of Accounts to fetch.
  8152. */
  8153. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8154. /**
  8155. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8156. *
  8157. * Sets the start position
  8158. */
  8159. cursor?: AccountWhereUniqueInput
  8160. /**
  8161. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8162. *
  8163. * Take `±n` Accounts from the position of the cursor.
  8164. */
  8165. take?: number
  8166. /**
  8167. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8168. *
  8169. * Skip the first `n` Accounts.
  8170. */
  8171. skip?: number
  8172. /**
  8173. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8174. *
  8175. * Count returned Accounts
  8176. **/
  8177. _count?: true | AccountCountAggregateInputType
  8178. /**
  8179. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8180. *
  8181. * Select which fields to average
  8182. **/
  8183. _avg?: AccountAvgAggregateInputType
  8184. /**
  8185. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8186. *
  8187. * Select which fields to sum
  8188. **/
  8189. _sum?: AccountSumAggregateInputType
  8190. /**
  8191. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8192. *
  8193. * Select which fields to find the minimum value
  8194. **/
  8195. _min?: AccountMinAggregateInputType
  8196. /**
  8197. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  8198. *
  8199. * Select which fields to find the maximum value
  8200. **/
  8201. _max?: AccountMaxAggregateInputType
  8202. }
  8203. export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
  8204. [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
  8205. ? T[P] extends true
  8206. ? number
  8207. : GetScalarType<T[P], AggregateAccount[P]>
  8208. : GetScalarType<T[P], AggregateAccount[P]>
  8209. }
  8210. export type AccountGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8211. where?: AccountWhereInput
  8212. orderBy?: AccountOrderByWithAggregationInput | AccountOrderByWithAggregationInput[]
  8213. by: AccountScalarFieldEnum[] | AccountScalarFieldEnum
  8214. having?: AccountScalarWhereWithAggregatesInput
  8215. take?: number
  8216. skip?: number
  8217. _count?: AccountCountAggregateInputType | true
  8218. _avg?: AccountAvgAggregateInputType
  8219. _sum?: AccountSumAggregateInputType
  8220. _min?: AccountMinAggregateInputType
  8221. _max?: AccountMaxAggregateInputType
  8222. }
  8223. export type AccountGroupByOutputType = {
  8224. id: string
  8225. userId: string
  8226. type: string
  8227. provider: string
  8228. providerAccountId: string
  8229. refresh_token: string | null
  8230. access_token: string | null
  8231. expires_at: number | null
  8232. token_type: string | null
  8233. scope: string | null
  8234. id_token: string | null
  8235. session_state: string | null
  8236. refresh_token_expires_in: number | null
  8237. _count: AccountCountAggregateOutputType | null
  8238. _avg: AccountAvgAggregateOutputType | null
  8239. _sum: AccountSumAggregateOutputType | null
  8240. _min: AccountMinAggregateOutputType | null
  8241. _max: AccountMaxAggregateOutputType | null
  8242. }
  8243. type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
  8244. Array<
  8245. PickEnumerable<AccountGroupByOutputType, T['by']> &
  8246. {
  8247. [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
  8248. ? T[P] extends boolean
  8249. ? number
  8250. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8251. : GetScalarType<T[P], AccountGroupByOutputType[P]>
  8252. }
  8253. >
  8254. >
  8255. export type AccountSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8256. id?: boolean
  8257. userId?: boolean
  8258. type?: boolean
  8259. provider?: boolean
  8260. providerAccountId?: boolean
  8261. refresh_token?: boolean
  8262. access_token?: boolean
  8263. expires_at?: boolean
  8264. token_type?: boolean
  8265. scope?: boolean
  8266. id_token?: boolean
  8267. session_state?: boolean
  8268. refresh_token_expires_in?: boolean
  8269. user?: boolean | UserDefaultArgs<ExtArgs>
  8270. }, ExtArgs["result"]["account"]>
  8271. export type AccountSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8272. id?: boolean
  8273. userId?: boolean
  8274. type?: boolean
  8275. provider?: boolean
  8276. providerAccountId?: boolean
  8277. refresh_token?: boolean
  8278. access_token?: boolean
  8279. expires_at?: boolean
  8280. token_type?: boolean
  8281. scope?: boolean
  8282. id_token?: boolean
  8283. session_state?: boolean
  8284. refresh_token_expires_in?: boolean
  8285. user?: boolean | UserDefaultArgs<ExtArgs>
  8286. }, ExtArgs["result"]["account"]>
  8287. export type AccountSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  8288. id?: boolean
  8289. userId?: boolean
  8290. type?: boolean
  8291. provider?: boolean
  8292. providerAccountId?: boolean
  8293. refresh_token?: boolean
  8294. access_token?: boolean
  8295. expires_at?: boolean
  8296. token_type?: boolean
  8297. scope?: boolean
  8298. id_token?: boolean
  8299. session_state?: boolean
  8300. refresh_token_expires_in?: boolean
  8301. user?: boolean | UserDefaultArgs<ExtArgs>
  8302. }, ExtArgs["result"]["account"]>
  8303. export type AccountSelectScalar = {
  8304. id?: boolean
  8305. userId?: boolean
  8306. type?: boolean
  8307. provider?: boolean
  8308. providerAccountId?: boolean
  8309. refresh_token?: boolean
  8310. access_token?: boolean
  8311. expires_at?: boolean
  8312. token_type?: boolean
  8313. scope?: boolean
  8314. id_token?: boolean
  8315. session_state?: boolean
  8316. refresh_token_expires_in?: boolean
  8317. }
  8318. 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"]>
  8319. export type AccountInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8320. user?: boolean | UserDefaultArgs<ExtArgs>
  8321. }
  8322. export type AccountIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8323. user?: boolean | UserDefaultArgs<ExtArgs>
  8324. }
  8325. export type AccountIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8326. user?: boolean | UserDefaultArgs<ExtArgs>
  8327. }
  8328. export type $AccountPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8329. name: "Account"
  8330. objects: {
  8331. user: Prisma.$UserPayload<ExtArgs>
  8332. }
  8333. scalars: $Extensions.GetPayloadResult<{
  8334. id: string
  8335. userId: string
  8336. type: string
  8337. provider: string
  8338. providerAccountId: string
  8339. refresh_token: string | null
  8340. access_token: string | null
  8341. expires_at: number | null
  8342. token_type: string | null
  8343. scope: string | null
  8344. id_token: string | null
  8345. session_state: string | null
  8346. refresh_token_expires_in: number | null
  8347. }, ExtArgs["result"]["account"]>
  8348. composites: {}
  8349. }
  8350. type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = $Result.GetResult<Prisma.$AccountPayload, S>
  8351. type AccountCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  8352. Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  8353. select?: AccountCountAggregateInputType | true
  8354. }
  8355. export interface AccountDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  8356. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
  8357. /**
  8358. * Find zero or one Account that matches the filter.
  8359. * @param {AccountFindUniqueArgs} args - Arguments to find a Account
  8360. * @example
  8361. * // Get one Account
  8362. * const account = await prisma.account.findUnique({
  8363. * where: {
  8364. * // ... provide filter here
  8365. * }
  8366. * })
  8367. */
  8368. findUnique<T extends AccountFindUniqueArgs>(args: SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8369. /**
  8370. * Find one Account that matches the filter or throw an error with `error.code='P2025'`
  8371. * if no matches were found.
  8372. * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
  8373. * @example
  8374. * // Get one Account
  8375. * const account = await prisma.account.findUniqueOrThrow({
  8376. * where: {
  8377. * // ... provide filter here
  8378. * }
  8379. * })
  8380. */
  8381. findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8382. /**
  8383. * Find the first Account that matches the filter.
  8384. * Note, that providing `undefined` is treated as the value not being there.
  8385. * Read more here: https://pris.ly/d/null-undefined
  8386. * @param {AccountFindFirstArgs} args - Arguments to find a Account
  8387. * @example
  8388. * // Get one Account
  8389. * const account = await prisma.account.findFirst({
  8390. * where: {
  8391. * // ... provide filter here
  8392. * }
  8393. * })
  8394. */
  8395. findFirst<T extends AccountFindFirstArgs>(args?: SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  8396. /**
  8397. * Find the first Account that matches the filter or
  8398. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  8399. * Note, that providing `undefined` is treated as the value not being there.
  8400. * Read more here: https://pris.ly/d/null-undefined
  8401. * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
  8402. * @example
  8403. * // Get one Account
  8404. * const account = await prisma.account.findFirstOrThrow({
  8405. * where: {
  8406. * // ... provide filter here
  8407. * }
  8408. * })
  8409. */
  8410. findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8411. /**
  8412. * Find zero or more Accounts that matches the filter.
  8413. * Note, that providing `undefined` is treated as the value not being there.
  8414. * Read more here: https://pris.ly/d/null-undefined
  8415. * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
  8416. * @example
  8417. * // Get all Accounts
  8418. * const accounts = await prisma.account.findMany()
  8419. *
  8420. * // Get first 10 Accounts
  8421. * const accounts = await prisma.account.findMany({ take: 10 })
  8422. *
  8423. * // Only select the `id`
  8424. * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
  8425. *
  8426. */
  8427. findMany<T extends AccountFindManyArgs>(args?: SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  8428. /**
  8429. * Create a Account.
  8430. * @param {AccountCreateArgs} args - Arguments to create a Account.
  8431. * @example
  8432. * // Create one Account
  8433. * const Account = await prisma.account.create({
  8434. * data: {
  8435. * // ... data to create a Account
  8436. * }
  8437. * })
  8438. *
  8439. */
  8440. create<T extends AccountCreateArgs>(args: SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8441. /**
  8442. * Create many Accounts.
  8443. * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
  8444. * @example
  8445. * // Create many Accounts
  8446. * const account = await prisma.account.createMany({
  8447. * data: [
  8448. * // ... provide data here
  8449. * ]
  8450. * })
  8451. *
  8452. */
  8453. createMany<T extends AccountCreateManyArgs>(args?: SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8454. /**
  8455. * Create many Accounts and returns the data saved in the database.
  8456. * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
  8457. * @example
  8458. * // Create many Accounts
  8459. * const account = await prisma.account.createManyAndReturn({
  8460. * data: [
  8461. * // ... provide data here
  8462. * ]
  8463. * })
  8464. *
  8465. * // Create many Accounts and only return the `id`
  8466. * const accountWithIdOnly = await prisma.account.createManyAndReturn({
  8467. * select: { id: true },
  8468. * data: [
  8469. * // ... provide data here
  8470. * ]
  8471. * })
  8472. * Note, that providing `undefined` is treated as the value not being there.
  8473. * Read more here: https://pris.ly/d/null-undefined
  8474. *
  8475. */
  8476. createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  8477. /**
  8478. * Delete a Account.
  8479. * @param {AccountDeleteArgs} args - Arguments to delete one Account.
  8480. * @example
  8481. * // Delete one Account
  8482. * const Account = await prisma.account.delete({
  8483. * where: {
  8484. * // ... filter to delete one Account
  8485. * }
  8486. * })
  8487. *
  8488. */
  8489. delete<T extends AccountDeleteArgs>(args: SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8490. /**
  8491. * Update one Account.
  8492. * @param {AccountUpdateArgs} args - Arguments to update one Account.
  8493. * @example
  8494. * // Update one Account
  8495. * const account = await prisma.account.update({
  8496. * where: {
  8497. * // ... provide filter here
  8498. * },
  8499. * data: {
  8500. * // ... provide data here
  8501. * }
  8502. * })
  8503. *
  8504. */
  8505. update<T extends AccountUpdateArgs>(args: SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8506. /**
  8507. * Delete zero or more Accounts.
  8508. * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
  8509. * @example
  8510. * // Delete a few Accounts
  8511. * const { count } = await prisma.account.deleteMany({
  8512. * where: {
  8513. * // ... provide filter here
  8514. * }
  8515. * })
  8516. *
  8517. */
  8518. deleteMany<T extends AccountDeleteManyArgs>(args?: SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8519. /**
  8520. * Update zero or more Accounts.
  8521. * Note, that providing `undefined` is treated as the value not being there.
  8522. * Read more here: https://pris.ly/d/null-undefined
  8523. * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
  8524. * @example
  8525. * // Update many Accounts
  8526. * const account = await prisma.account.updateMany({
  8527. * where: {
  8528. * // ... provide filter here
  8529. * },
  8530. * data: {
  8531. * // ... provide data here
  8532. * }
  8533. * })
  8534. *
  8535. */
  8536. updateMany<T extends AccountUpdateManyArgs>(args: SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  8537. /**
  8538. * Update zero or more Accounts and returns the data updated in the database.
  8539. * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
  8540. * @example
  8541. * // Update many Accounts
  8542. * const account = await prisma.account.updateManyAndReturn({
  8543. * where: {
  8544. * // ... provide filter here
  8545. * },
  8546. * data: [
  8547. * // ... provide data here
  8548. * ]
  8549. * })
  8550. *
  8551. * // Update zero or more Accounts and only return the `id`
  8552. * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
  8553. * select: { id: true },
  8554. * where: {
  8555. * // ... provide filter here
  8556. * },
  8557. * data: [
  8558. * // ... provide data here
  8559. * ]
  8560. * })
  8561. * Note, that providing `undefined` is treated as the value not being there.
  8562. * Read more here: https://pris.ly/d/null-undefined
  8563. *
  8564. */
  8565. updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  8566. /**
  8567. * Create or update one Account.
  8568. * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
  8569. * @example
  8570. * // Update or create a Account
  8571. * const account = await prisma.account.upsert({
  8572. * create: {
  8573. * // ... data to create a Account
  8574. * },
  8575. * update: {
  8576. * // ... in case it already exists, update
  8577. * },
  8578. * where: {
  8579. * // ... the filter for the Account we want to update
  8580. * }
  8581. * })
  8582. */
  8583. upsert<T extends AccountUpsertArgs>(args: SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma__AccountClient<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  8584. /**
  8585. * Count the number of Accounts.
  8586. * Note, that providing `undefined` is treated as the value not being there.
  8587. * Read more here: https://pris.ly/d/null-undefined
  8588. * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
  8589. * @example
  8590. * // Count the number of Accounts
  8591. * const count = await prisma.account.count({
  8592. * where: {
  8593. * // ... the filter for the Accounts we want to count
  8594. * }
  8595. * })
  8596. **/
  8597. count<T extends AccountCountArgs>(
  8598. args?: Subset<T, AccountCountArgs>,
  8599. ): Prisma.PrismaPromise<
  8600. T extends $Utils.Record<'select', any>
  8601. ? T['select'] extends true
  8602. ? number
  8603. : GetScalarType<T['select'], AccountCountAggregateOutputType>
  8604. : number
  8605. >
  8606. /**
  8607. * Allows you to perform aggregations operations on a Account.
  8608. * Note, that providing `undefined` is treated as the value not being there.
  8609. * Read more here: https://pris.ly/d/null-undefined
  8610. * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  8611. * @example
  8612. * // Ordered by age ascending
  8613. * // Where email contains prisma.io
  8614. * // Limited to the 10 users
  8615. * const aggregations = await prisma.user.aggregate({
  8616. * _avg: {
  8617. * age: true,
  8618. * },
  8619. * where: {
  8620. * email: {
  8621. * contains: "prisma.io",
  8622. * },
  8623. * },
  8624. * orderBy: {
  8625. * age: "asc",
  8626. * },
  8627. * take: 10,
  8628. * })
  8629. **/
  8630. aggregate<T extends AccountAggregateArgs>(args: Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
  8631. /**
  8632. * Group by Account.
  8633. * Note, that providing `undefined` is treated as the value not being there.
  8634. * Read more here: https://pris.ly/d/null-undefined
  8635. * @param {AccountGroupByArgs} args - Group by arguments.
  8636. * @example
  8637. * // Group by city, order by createdAt, get count
  8638. * const result = await prisma.user.groupBy({
  8639. * by: ['city', 'createdAt'],
  8640. * orderBy: {
  8641. * createdAt: true
  8642. * },
  8643. * _count: {
  8644. * _all: true
  8645. * },
  8646. * })
  8647. *
  8648. **/
  8649. groupBy<
  8650. T extends AccountGroupByArgs,
  8651. HasSelectOrTake extends Or<
  8652. Extends<'skip', Keys<T>>,
  8653. Extends<'take', Keys<T>>
  8654. >,
  8655. OrderByArg extends True extends HasSelectOrTake
  8656. ? { orderBy: AccountGroupByArgs['orderBy'] }
  8657. : { orderBy?: AccountGroupByArgs['orderBy'] },
  8658. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  8659. ByFields extends MaybeTupleToUnion<T['by']>,
  8660. ByValid extends Has<ByFields, OrderFields>,
  8661. HavingFields extends GetHavingFields<T['having']>,
  8662. HavingValid extends Has<ByFields, HavingFields>,
  8663. ByEmpty extends T['by'] extends never[] ? True : False,
  8664. InputErrors extends ByEmpty extends True
  8665. ? `Error: "by" must not be empty.`
  8666. : HavingValid extends False
  8667. ? {
  8668. [P in HavingFields]: P extends ByFields
  8669. ? never
  8670. : P extends string
  8671. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  8672. : [
  8673. Error,
  8674. 'Field ',
  8675. P,
  8676. ` in "having" needs to be provided in "by"`,
  8677. ]
  8678. }[HavingFields]
  8679. : 'take' extends Keys<T>
  8680. ? 'orderBy' extends Keys<T>
  8681. ? ByValid extends True
  8682. ? {}
  8683. : {
  8684. [P in OrderFields]: P extends ByFields
  8685. ? never
  8686. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8687. }[OrderFields]
  8688. : 'Error: If you provide "take", you also need to provide "orderBy"'
  8689. : 'skip' extends Keys<T>
  8690. ? 'orderBy' extends Keys<T>
  8691. ? ByValid extends True
  8692. ? {}
  8693. : {
  8694. [P in OrderFields]: P extends ByFields
  8695. ? never
  8696. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8697. }[OrderFields]
  8698. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  8699. : ByValid extends True
  8700. ? {}
  8701. : {
  8702. [P in OrderFields]: P extends ByFields
  8703. ? never
  8704. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  8705. }[OrderFields]
  8706. >(args: SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  8707. /**
  8708. * Fields of the Account model
  8709. */
  8710. readonly fields: AccountFieldRefs;
  8711. }
  8712. /**
  8713. * The delegate class that acts as a "Promise-like" for Account.
  8714. * Why is this prefixed with `Prisma__`?
  8715. * Because we want to prevent naming conflicts as mentioned in
  8716. * https://github.com/prisma/prisma-client-js/issues/707
  8717. */
  8718. export interface Prisma__AccountClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  8719. readonly [Symbol.toStringTag]: "PrismaPromise"
  8720. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  8721. /**
  8722. * Attaches callbacks for the resolution and/or rejection of the Promise.
  8723. * @param onfulfilled The callback to execute when the Promise is resolved.
  8724. * @param onrejected The callback to execute when the Promise is rejected.
  8725. * @returns A Promise for the completion of which ever callback is executed.
  8726. */
  8727. 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>
  8728. /**
  8729. * Attaches a callback for only the rejection of the Promise.
  8730. * @param onrejected The callback to execute when the Promise is rejected.
  8731. * @returns A Promise for the completion of the callback.
  8732. */
  8733. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  8734. /**
  8735. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  8736. * resolved value cannot be modified from the callback.
  8737. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  8738. * @returns A Promise for the completion of the callback.
  8739. */
  8740. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  8741. }
  8742. /**
  8743. * Fields of the Account model
  8744. */
  8745. interface AccountFieldRefs {
  8746. readonly id: FieldRef<"Account", 'String'>
  8747. readonly userId: FieldRef<"Account", 'String'>
  8748. readonly type: FieldRef<"Account", 'String'>
  8749. readonly provider: FieldRef<"Account", 'String'>
  8750. readonly providerAccountId: FieldRef<"Account", 'String'>
  8751. readonly refresh_token: FieldRef<"Account", 'String'>
  8752. readonly access_token: FieldRef<"Account", 'String'>
  8753. readonly expires_at: FieldRef<"Account", 'Int'>
  8754. readonly token_type: FieldRef<"Account", 'String'>
  8755. readonly scope: FieldRef<"Account", 'String'>
  8756. readonly id_token: FieldRef<"Account", 'String'>
  8757. readonly session_state: FieldRef<"Account", 'String'>
  8758. readonly refresh_token_expires_in: FieldRef<"Account", 'Int'>
  8759. }
  8760. // Custom InputTypes
  8761. /**
  8762. * Account findUnique
  8763. */
  8764. export type AccountFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8765. /**
  8766. * Select specific fields to fetch from the Account
  8767. */
  8768. select?: AccountSelect<ExtArgs> | null
  8769. /**
  8770. * Omit specific fields from the Account
  8771. */
  8772. omit?: AccountOmit<ExtArgs> | null
  8773. /**
  8774. * Choose, which related nodes to fetch as well
  8775. */
  8776. include?: AccountInclude<ExtArgs> | null
  8777. /**
  8778. * Filter, which Account to fetch.
  8779. */
  8780. where: AccountWhereUniqueInput
  8781. }
  8782. /**
  8783. * Account findUniqueOrThrow
  8784. */
  8785. export type AccountFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8786. /**
  8787. * Select specific fields to fetch from the Account
  8788. */
  8789. select?: AccountSelect<ExtArgs> | null
  8790. /**
  8791. * Omit specific fields from the Account
  8792. */
  8793. omit?: AccountOmit<ExtArgs> | null
  8794. /**
  8795. * Choose, which related nodes to fetch as well
  8796. */
  8797. include?: AccountInclude<ExtArgs> | null
  8798. /**
  8799. * Filter, which Account to fetch.
  8800. */
  8801. where: AccountWhereUniqueInput
  8802. }
  8803. /**
  8804. * Account findFirst
  8805. */
  8806. export type AccountFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8807. /**
  8808. * Select specific fields to fetch from the Account
  8809. */
  8810. select?: AccountSelect<ExtArgs> | null
  8811. /**
  8812. * Omit specific fields from the Account
  8813. */
  8814. omit?: AccountOmit<ExtArgs> | null
  8815. /**
  8816. * Choose, which related nodes to fetch as well
  8817. */
  8818. include?: AccountInclude<ExtArgs> | null
  8819. /**
  8820. * Filter, which Account to fetch.
  8821. */
  8822. where?: AccountWhereInput
  8823. /**
  8824. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8825. *
  8826. * Determine the order of Accounts to fetch.
  8827. */
  8828. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8829. /**
  8830. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8831. *
  8832. * Sets the position for searching for Accounts.
  8833. */
  8834. cursor?: AccountWhereUniqueInput
  8835. /**
  8836. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8837. *
  8838. * Take `±n` Accounts from the position of the cursor.
  8839. */
  8840. take?: number
  8841. /**
  8842. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8843. *
  8844. * Skip the first `n` Accounts.
  8845. */
  8846. skip?: number
  8847. /**
  8848. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8849. *
  8850. * Filter by unique combinations of Accounts.
  8851. */
  8852. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8853. }
  8854. /**
  8855. * Account findFirstOrThrow
  8856. */
  8857. export type AccountFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8858. /**
  8859. * Select specific fields to fetch from the Account
  8860. */
  8861. select?: AccountSelect<ExtArgs> | null
  8862. /**
  8863. * Omit specific fields from the Account
  8864. */
  8865. omit?: AccountOmit<ExtArgs> | null
  8866. /**
  8867. * Choose, which related nodes to fetch as well
  8868. */
  8869. include?: AccountInclude<ExtArgs> | null
  8870. /**
  8871. * Filter, which Account to fetch.
  8872. */
  8873. where?: AccountWhereInput
  8874. /**
  8875. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8876. *
  8877. * Determine the order of Accounts to fetch.
  8878. */
  8879. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8880. /**
  8881. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8882. *
  8883. * Sets the position for searching for Accounts.
  8884. */
  8885. cursor?: AccountWhereUniqueInput
  8886. /**
  8887. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8888. *
  8889. * Take `±n` Accounts from the position of the cursor.
  8890. */
  8891. take?: number
  8892. /**
  8893. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8894. *
  8895. * Skip the first `n` Accounts.
  8896. */
  8897. skip?: number
  8898. /**
  8899. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  8900. *
  8901. * Filter by unique combinations of Accounts.
  8902. */
  8903. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8904. }
  8905. /**
  8906. * Account findMany
  8907. */
  8908. export type AccountFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8909. /**
  8910. * Select specific fields to fetch from the Account
  8911. */
  8912. select?: AccountSelect<ExtArgs> | null
  8913. /**
  8914. * Omit specific fields from the Account
  8915. */
  8916. omit?: AccountOmit<ExtArgs> | null
  8917. /**
  8918. * Choose, which related nodes to fetch as well
  8919. */
  8920. include?: AccountInclude<ExtArgs> | null
  8921. /**
  8922. * Filter, which Accounts to fetch.
  8923. */
  8924. where?: AccountWhereInput
  8925. /**
  8926. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  8927. *
  8928. * Determine the order of Accounts to fetch.
  8929. */
  8930. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  8931. /**
  8932. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  8933. *
  8934. * Sets the position for listing Accounts.
  8935. */
  8936. cursor?: AccountWhereUniqueInput
  8937. /**
  8938. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8939. *
  8940. * Take `±n` Accounts from the position of the cursor.
  8941. */
  8942. take?: number
  8943. /**
  8944. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  8945. *
  8946. * Skip the first `n` Accounts.
  8947. */
  8948. skip?: number
  8949. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  8950. }
  8951. /**
  8952. * Account create
  8953. */
  8954. export type AccountCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8955. /**
  8956. * Select specific fields to fetch from the Account
  8957. */
  8958. select?: AccountSelect<ExtArgs> | null
  8959. /**
  8960. * Omit specific fields from the Account
  8961. */
  8962. omit?: AccountOmit<ExtArgs> | null
  8963. /**
  8964. * Choose, which related nodes to fetch as well
  8965. */
  8966. include?: AccountInclude<ExtArgs> | null
  8967. /**
  8968. * The data needed to create a Account.
  8969. */
  8970. data: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  8971. }
  8972. /**
  8973. * Account createMany
  8974. */
  8975. export type AccountCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8976. /**
  8977. * The data used to create many Accounts.
  8978. */
  8979. data: AccountCreateManyInput | AccountCreateManyInput[]
  8980. skipDuplicates?: boolean
  8981. }
  8982. /**
  8983. * Account createManyAndReturn
  8984. */
  8985. export type AccountCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  8986. /**
  8987. * Select specific fields to fetch from the Account
  8988. */
  8989. select?: AccountSelectCreateManyAndReturn<ExtArgs> | null
  8990. /**
  8991. * Omit specific fields from the Account
  8992. */
  8993. omit?: AccountOmit<ExtArgs> | null
  8994. /**
  8995. * The data used to create many Accounts.
  8996. */
  8997. data: AccountCreateManyInput | AccountCreateManyInput[]
  8998. skipDuplicates?: boolean
  8999. /**
  9000. * Choose, which related nodes to fetch as well
  9001. */
  9002. include?: AccountIncludeCreateManyAndReturn<ExtArgs> | null
  9003. }
  9004. /**
  9005. * Account update
  9006. */
  9007. export type AccountUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9008. /**
  9009. * Select specific fields to fetch from the Account
  9010. */
  9011. select?: AccountSelect<ExtArgs> | null
  9012. /**
  9013. * Omit specific fields from the Account
  9014. */
  9015. omit?: AccountOmit<ExtArgs> | null
  9016. /**
  9017. * Choose, which related nodes to fetch as well
  9018. */
  9019. include?: AccountInclude<ExtArgs> | null
  9020. /**
  9021. * The data needed to update a Account.
  9022. */
  9023. data: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  9024. /**
  9025. * Choose, which Account to update.
  9026. */
  9027. where: AccountWhereUniqueInput
  9028. }
  9029. /**
  9030. * Account updateMany
  9031. */
  9032. export type AccountUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9033. /**
  9034. * The data used to update Accounts.
  9035. */
  9036. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  9037. /**
  9038. * Filter which Accounts to update
  9039. */
  9040. where?: AccountWhereInput
  9041. /**
  9042. * Limit how many Accounts to update.
  9043. */
  9044. limit?: number
  9045. }
  9046. /**
  9047. * Account updateManyAndReturn
  9048. */
  9049. export type AccountUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9050. /**
  9051. * Select specific fields to fetch from the Account
  9052. */
  9053. select?: AccountSelectUpdateManyAndReturn<ExtArgs> | null
  9054. /**
  9055. * Omit specific fields from the Account
  9056. */
  9057. omit?: AccountOmit<ExtArgs> | null
  9058. /**
  9059. * The data used to update Accounts.
  9060. */
  9061. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyInput>
  9062. /**
  9063. * Filter which Accounts to update
  9064. */
  9065. where?: AccountWhereInput
  9066. /**
  9067. * Limit how many Accounts to update.
  9068. */
  9069. limit?: number
  9070. /**
  9071. * Choose, which related nodes to fetch as well
  9072. */
  9073. include?: AccountIncludeUpdateManyAndReturn<ExtArgs> | null
  9074. }
  9075. /**
  9076. * Account upsert
  9077. */
  9078. export type AccountUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9079. /**
  9080. * Select specific fields to fetch from the Account
  9081. */
  9082. select?: AccountSelect<ExtArgs> | null
  9083. /**
  9084. * Omit specific fields from the Account
  9085. */
  9086. omit?: AccountOmit<ExtArgs> | null
  9087. /**
  9088. * Choose, which related nodes to fetch as well
  9089. */
  9090. include?: AccountInclude<ExtArgs> | null
  9091. /**
  9092. * The filter to search for the Account to update in case it exists.
  9093. */
  9094. where: AccountWhereUniqueInput
  9095. /**
  9096. * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
  9097. */
  9098. create: XOR<AccountCreateInput, AccountUncheckedCreateInput>
  9099. /**
  9100. * In case the Account was found with the provided `where` argument, update it with this data.
  9101. */
  9102. update: XOR<AccountUpdateInput, AccountUncheckedUpdateInput>
  9103. }
  9104. /**
  9105. * Account delete
  9106. */
  9107. export type AccountDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9108. /**
  9109. * Select specific fields to fetch from the Account
  9110. */
  9111. select?: AccountSelect<ExtArgs> | null
  9112. /**
  9113. * Omit specific fields from the Account
  9114. */
  9115. omit?: AccountOmit<ExtArgs> | null
  9116. /**
  9117. * Choose, which related nodes to fetch as well
  9118. */
  9119. include?: AccountInclude<ExtArgs> | null
  9120. /**
  9121. * Filter which Account to delete.
  9122. */
  9123. where: AccountWhereUniqueInput
  9124. }
  9125. /**
  9126. * Account deleteMany
  9127. */
  9128. export type AccountDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9129. /**
  9130. * Filter which Accounts to delete
  9131. */
  9132. where?: AccountWhereInput
  9133. /**
  9134. * Limit how many Accounts to delete.
  9135. */
  9136. limit?: number
  9137. }
  9138. /**
  9139. * Account without action
  9140. */
  9141. export type AccountDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9142. /**
  9143. * Select specific fields to fetch from the Account
  9144. */
  9145. select?: AccountSelect<ExtArgs> | null
  9146. /**
  9147. * Omit specific fields from the Account
  9148. */
  9149. omit?: AccountOmit<ExtArgs> | null
  9150. /**
  9151. * Choose, which related nodes to fetch as well
  9152. */
  9153. include?: AccountInclude<ExtArgs> | null
  9154. }
  9155. /**
  9156. * Model Session
  9157. */
  9158. export type AggregateSession = {
  9159. _count: SessionCountAggregateOutputType | null
  9160. _min: SessionMinAggregateOutputType | null
  9161. _max: SessionMaxAggregateOutputType | null
  9162. }
  9163. export type SessionMinAggregateOutputType = {
  9164. id: string | null
  9165. sessionToken: string | null
  9166. userId: string | null
  9167. expires: Date | null
  9168. }
  9169. export type SessionMaxAggregateOutputType = {
  9170. id: string | null
  9171. sessionToken: string | null
  9172. userId: string | null
  9173. expires: Date | null
  9174. }
  9175. export type SessionCountAggregateOutputType = {
  9176. id: number
  9177. sessionToken: number
  9178. userId: number
  9179. expires: number
  9180. _all: number
  9181. }
  9182. export type SessionMinAggregateInputType = {
  9183. id?: true
  9184. sessionToken?: true
  9185. userId?: true
  9186. expires?: true
  9187. }
  9188. export type SessionMaxAggregateInputType = {
  9189. id?: true
  9190. sessionToken?: true
  9191. userId?: true
  9192. expires?: true
  9193. }
  9194. export type SessionCountAggregateInputType = {
  9195. id?: true
  9196. sessionToken?: true
  9197. userId?: true
  9198. expires?: true
  9199. _all?: true
  9200. }
  9201. export type SessionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9202. /**
  9203. * Filter which Session to aggregate.
  9204. */
  9205. where?: SessionWhereInput
  9206. /**
  9207. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9208. *
  9209. * Determine the order of Sessions to fetch.
  9210. */
  9211. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9212. /**
  9213. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9214. *
  9215. * Sets the start position
  9216. */
  9217. cursor?: SessionWhereUniqueInput
  9218. /**
  9219. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9220. *
  9221. * Take `±n` Sessions from the position of the cursor.
  9222. */
  9223. take?: number
  9224. /**
  9225. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9226. *
  9227. * Skip the first `n` Sessions.
  9228. */
  9229. skip?: number
  9230. /**
  9231. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9232. *
  9233. * Count returned Sessions
  9234. **/
  9235. _count?: true | SessionCountAggregateInputType
  9236. /**
  9237. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9238. *
  9239. * Select which fields to find the minimum value
  9240. **/
  9241. _min?: SessionMinAggregateInputType
  9242. /**
  9243. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  9244. *
  9245. * Select which fields to find the maximum value
  9246. **/
  9247. _max?: SessionMaxAggregateInputType
  9248. }
  9249. export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
  9250. [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
  9251. ? T[P] extends true
  9252. ? number
  9253. : GetScalarType<T[P], AggregateSession[P]>
  9254. : GetScalarType<T[P], AggregateSession[P]>
  9255. }
  9256. export type SessionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9257. where?: SessionWhereInput
  9258. orderBy?: SessionOrderByWithAggregationInput | SessionOrderByWithAggregationInput[]
  9259. by: SessionScalarFieldEnum[] | SessionScalarFieldEnum
  9260. having?: SessionScalarWhereWithAggregatesInput
  9261. take?: number
  9262. skip?: number
  9263. _count?: SessionCountAggregateInputType | true
  9264. _min?: SessionMinAggregateInputType
  9265. _max?: SessionMaxAggregateInputType
  9266. }
  9267. export type SessionGroupByOutputType = {
  9268. id: string
  9269. sessionToken: string
  9270. userId: string
  9271. expires: Date
  9272. _count: SessionCountAggregateOutputType | null
  9273. _min: SessionMinAggregateOutputType | null
  9274. _max: SessionMaxAggregateOutputType | null
  9275. }
  9276. type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
  9277. Array<
  9278. PickEnumerable<SessionGroupByOutputType, T['by']> &
  9279. {
  9280. [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
  9281. ? T[P] extends boolean
  9282. ? number
  9283. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9284. : GetScalarType<T[P], SessionGroupByOutputType[P]>
  9285. }
  9286. >
  9287. >
  9288. export type SessionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9289. id?: boolean
  9290. sessionToken?: boolean
  9291. userId?: boolean
  9292. expires?: boolean
  9293. user?: boolean | UserDefaultArgs<ExtArgs>
  9294. }, ExtArgs["result"]["session"]>
  9295. export type SessionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9296. id?: boolean
  9297. sessionToken?: boolean
  9298. userId?: boolean
  9299. expires?: boolean
  9300. user?: boolean | UserDefaultArgs<ExtArgs>
  9301. }, ExtArgs["result"]["session"]>
  9302. export type SessionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  9303. id?: boolean
  9304. sessionToken?: boolean
  9305. userId?: boolean
  9306. expires?: boolean
  9307. user?: boolean | UserDefaultArgs<ExtArgs>
  9308. }, ExtArgs["result"]["session"]>
  9309. export type SessionSelectScalar = {
  9310. id?: boolean
  9311. sessionToken?: boolean
  9312. userId?: boolean
  9313. expires?: boolean
  9314. }
  9315. export type SessionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]>
  9316. export type SessionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9317. user?: boolean | UserDefaultArgs<ExtArgs>
  9318. }
  9319. export type SessionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9320. user?: boolean | UserDefaultArgs<ExtArgs>
  9321. }
  9322. export type SessionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9323. user?: boolean | UserDefaultArgs<ExtArgs>
  9324. }
  9325. export type $SessionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9326. name: "Session"
  9327. objects: {
  9328. user: Prisma.$UserPayload<ExtArgs>
  9329. }
  9330. scalars: $Extensions.GetPayloadResult<{
  9331. id: string
  9332. sessionToken: string
  9333. userId: string
  9334. expires: Date
  9335. }, ExtArgs["result"]["session"]>
  9336. composites: {}
  9337. }
  9338. type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = $Result.GetResult<Prisma.$SessionPayload, S>
  9339. type SessionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  9340. Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  9341. select?: SessionCountAggregateInputType | true
  9342. }
  9343. export interface SessionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  9344. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
  9345. /**
  9346. * Find zero or one Session that matches the filter.
  9347. * @param {SessionFindUniqueArgs} args - Arguments to find a Session
  9348. * @example
  9349. * // Get one Session
  9350. * const session = await prisma.session.findUnique({
  9351. * where: {
  9352. * // ... provide filter here
  9353. * }
  9354. * })
  9355. */
  9356. findUnique<T extends SessionFindUniqueArgs>(args: SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9357. /**
  9358. * Find one Session that matches the filter or throw an error with `error.code='P2025'`
  9359. * if no matches were found.
  9360. * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
  9361. * @example
  9362. * // Get one Session
  9363. * const session = await prisma.session.findUniqueOrThrow({
  9364. * where: {
  9365. * // ... provide filter here
  9366. * }
  9367. * })
  9368. */
  9369. findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9370. /**
  9371. * Find the first Session that matches the filter.
  9372. * Note, that providing `undefined` is treated as the value not being there.
  9373. * Read more here: https://pris.ly/d/null-undefined
  9374. * @param {SessionFindFirstArgs} args - Arguments to find a Session
  9375. * @example
  9376. * // Get one Session
  9377. * const session = await prisma.session.findFirst({
  9378. * where: {
  9379. * // ... provide filter here
  9380. * }
  9381. * })
  9382. */
  9383. findFirst<T extends SessionFindFirstArgs>(args?: SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  9384. /**
  9385. * Find the first Session that matches the filter or
  9386. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  9387. * Note, that providing `undefined` is treated as the value not being there.
  9388. * Read more here: https://pris.ly/d/null-undefined
  9389. * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
  9390. * @example
  9391. * // Get one Session
  9392. * const session = await prisma.session.findFirstOrThrow({
  9393. * where: {
  9394. * // ... provide filter here
  9395. * }
  9396. * })
  9397. */
  9398. findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9399. /**
  9400. * Find zero or more Sessions that matches the filter.
  9401. * Note, that providing `undefined` is treated as the value not being there.
  9402. * Read more here: https://pris.ly/d/null-undefined
  9403. * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
  9404. * @example
  9405. * // Get all Sessions
  9406. * const sessions = await prisma.session.findMany()
  9407. *
  9408. * // Get first 10 Sessions
  9409. * const sessions = await prisma.session.findMany({ take: 10 })
  9410. *
  9411. * // Only select the `id`
  9412. * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
  9413. *
  9414. */
  9415. findMany<T extends SessionFindManyArgs>(args?: SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  9416. /**
  9417. * Create a Session.
  9418. * @param {SessionCreateArgs} args - Arguments to create a Session.
  9419. * @example
  9420. * // Create one Session
  9421. * const Session = await prisma.session.create({
  9422. * data: {
  9423. * // ... data to create a Session
  9424. * }
  9425. * })
  9426. *
  9427. */
  9428. create<T extends SessionCreateArgs>(args: SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9429. /**
  9430. * Create many Sessions.
  9431. * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
  9432. * @example
  9433. * // Create many Sessions
  9434. * const session = await prisma.session.createMany({
  9435. * data: [
  9436. * // ... provide data here
  9437. * ]
  9438. * })
  9439. *
  9440. */
  9441. createMany<T extends SessionCreateManyArgs>(args?: SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9442. /**
  9443. * Create many Sessions and returns the data saved in the database.
  9444. * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
  9445. * @example
  9446. * // Create many Sessions
  9447. * const session = await prisma.session.createManyAndReturn({
  9448. * data: [
  9449. * // ... provide data here
  9450. * ]
  9451. * })
  9452. *
  9453. * // Create many Sessions and only return the `id`
  9454. * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
  9455. * select: { id: true },
  9456. * data: [
  9457. * // ... provide data here
  9458. * ]
  9459. * })
  9460. * Note, that providing `undefined` is treated as the value not being there.
  9461. * Read more here: https://pris.ly/d/null-undefined
  9462. *
  9463. */
  9464. createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  9465. /**
  9466. * Delete a Session.
  9467. * @param {SessionDeleteArgs} args - Arguments to delete one Session.
  9468. * @example
  9469. * // Delete one Session
  9470. * const Session = await prisma.session.delete({
  9471. * where: {
  9472. * // ... filter to delete one Session
  9473. * }
  9474. * })
  9475. *
  9476. */
  9477. delete<T extends SessionDeleteArgs>(args: SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9478. /**
  9479. * Update one Session.
  9480. * @param {SessionUpdateArgs} args - Arguments to update one Session.
  9481. * @example
  9482. * // Update one Session
  9483. * const session = await prisma.session.update({
  9484. * where: {
  9485. * // ... provide filter here
  9486. * },
  9487. * data: {
  9488. * // ... provide data here
  9489. * }
  9490. * })
  9491. *
  9492. */
  9493. update<T extends SessionUpdateArgs>(args: SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9494. /**
  9495. * Delete zero or more Sessions.
  9496. * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
  9497. * @example
  9498. * // Delete a few Sessions
  9499. * const { count } = await prisma.session.deleteMany({
  9500. * where: {
  9501. * // ... provide filter here
  9502. * }
  9503. * })
  9504. *
  9505. */
  9506. deleteMany<T extends SessionDeleteManyArgs>(args?: SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9507. /**
  9508. * Update zero or more Sessions.
  9509. * Note, that providing `undefined` is treated as the value not being there.
  9510. * Read more here: https://pris.ly/d/null-undefined
  9511. * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
  9512. * @example
  9513. * // Update many Sessions
  9514. * const session = await prisma.session.updateMany({
  9515. * where: {
  9516. * // ... provide filter here
  9517. * },
  9518. * data: {
  9519. * // ... provide data here
  9520. * }
  9521. * })
  9522. *
  9523. */
  9524. updateMany<T extends SessionUpdateManyArgs>(args: SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  9525. /**
  9526. * Update zero or more Sessions and returns the data updated in the database.
  9527. * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
  9528. * @example
  9529. * // Update many Sessions
  9530. * const session = await prisma.session.updateManyAndReturn({
  9531. * where: {
  9532. * // ... provide filter here
  9533. * },
  9534. * data: [
  9535. * // ... provide data here
  9536. * ]
  9537. * })
  9538. *
  9539. * // Update zero or more Sessions and only return the `id`
  9540. * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
  9541. * select: { id: true },
  9542. * where: {
  9543. * // ... provide filter here
  9544. * },
  9545. * data: [
  9546. * // ... provide data here
  9547. * ]
  9548. * })
  9549. * Note, that providing `undefined` is treated as the value not being there.
  9550. * Read more here: https://pris.ly/d/null-undefined
  9551. *
  9552. */
  9553. updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  9554. /**
  9555. * Create or update one Session.
  9556. * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
  9557. * @example
  9558. * // Update or create a Session
  9559. * const session = await prisma.session.upsert({
  9560. * create: {
  9561. * // ... data to create a Session
  9562. * },
  9563. * update: {
  9564. * // ... in case it already exists, update
  9565. * },
  9566. * where: {
  9567. * // ... the filter for the Session we want to update
  9568. * }
  9569. * })
  9570. */
  9571. upsert<T extends SessionUpsertArgs>(args: SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma__SessionClient<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  9572. /**
  9573. * Count the number of Sessions.
  9574. * Note, that providing `undefined` is treated as the value not being there.
  9575. * Read more here: https://pris.ly/d/null-undefined
  9576. * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
  9577. * @example
  9578. * // Count the number of Sessions
  9579. * const count = await prisma.session.count({
  9580. * where: {
  9581. * // ... the filter for the Sessions we want to count
  9582. * }
  9583. * })
  9584. **/
  9585. count<T extends SessionCountArgs>(
  9586. args?: Subset<T, SessionCountArgs>,
  9587. ): Prisma.PrismaPromise<
  9588. T extends $Utils.Record<'select', any>
  9589. ? T['select'] extends true
  9590. ? number
  9591. : GetScalarType<T['select'], SessionCountAggregateOutputType>
  9592. : number
  9593. >
  9594. /**
  9595. * Allows you to perform aggregations operations on a Session.
  9596. * Note, that providing `undefined` is treated as the value not being there.
  9597. * Read more here: https://pris.ly/d/null-undefined
  9598. * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  9599. * @example
  9600. * // Ordered by age ascending
  9601. * // Where email contains prisma.io
  9602. * // Limited to the 10 users
  9603. * const aggregations = await prisma.user.aggregate({
  9604. * _avg: {
  9605. * age: true,
  9606. * },
  9607. * where: {
  9608. * email: {
  9609. * contains: "prisma.io",
  9610. * },
  9611. * },
  9612. * orderBy: {
  9613. * age: "asc",
  9614. * },
  9615. * take: 10,
  9616. * })
  9617. **/
  9618. aggregate<T extends SessionAggregateArgs>(args: Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
  9619. /**
  9620. * Group by Session.
  9621. * Note, that providing `undefined` is treated as the value not being there.
  9622. * Read more here: https://pris.ly/d/null-undefined
  9623. * @param {SessionGroupByArgs} args - Group by arguments.
  9624. * @example
  9625. * // Group by city, order by createdAt, get count
  9626. * const result = await prisma.user.groupBy({
  9627. * by: ['city', 'createdAt'],
  9628. * orderBy: {
  9629. * createdAt: true
  9630. * },
  9631. * _count: {
  9632. * _all: true
  9633. * },
  9634. * })
  9635. *
  9636. **/
  9637. groupBy<
  9638. T extends SessionGroupByArgs,
  9639. HasSelectOrTake extends Or<
  9640. Extends<'skip', Keys<T>>,
  9641. Extends<'take', Keys<T>>
  9642. >,
  9643. OrderByArg extends True extends HasSelectOrTake
  9644. ? { orderBy: SessionGroupByArgs['orderBy'] }
  9645. : { orderBy?: SessionGroupByArgs['orderBy'] },
  9646. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  9647. ByFields extends MaybeTupleToUnion<T['by']>,
  9648. ByValid extends Has<ByFields, OrderFields>,
  9649. HavingFields extends GetHavingFields<T['having']>,
  9650. HavingValid extends Has<ByFields, HavingFields>,
  9651. ByEmpty extends T['by'] extends never[] ? True : False,
  9652. InputErrors extends ByEmpty extends True
  9653. ? `Error: "by" must not be empty.`
  9654. : HavingValid extends False
  9655. ? {
  9656. [P in HavingFields]: P extends ByFields
  9657. ? never
  9658. : P extends string
  9659. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  9660. : [
  9661. Error,
  9662. 'Field ',
  9663. P,
  9664. ` in "having" needs to be provided in "by"`,
  9665. ]
  9666. }[HavingFields]
  9667. : 'take' extends Keys<T>
  9668. ? 'orderBy' extends Keys<T>
  9669. ? ByValid extends True
  9670. ? {}
  9671. : {
  9672. [P in OrderFields]: P extends ByFields
  9673. ? never
  9674. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9675. }[OrderFields]
  9676. : 'Error: If you provide "take", you also need to provide "orderBy"'
  9677. : 'skip' extends Keys<T>
  9678. ? 'orderBy' extends Keys<T>
  9679. ? ByValid extends True
  9680. ? {}
  9681. : {
  9682. [P in OrderFields]: P extends ByFields
  9683. ? never
  9684. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9685. }[OrderFields]
  9686. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  9687. : ByValid extends True
  9688. ? {}
  9689. : {
  9690. [P in OrderFields]: P extends ByFields
  9691. ? never
  9692. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  9693. }[OrderFields]
  9694. >(args: SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  9695. /**
  9696. * Fields of the Session model
  9697. */
  9698. readonly fields: SessionFieldRefs;
  9699. }
  9700. /**
  9701. * The delegate class that acts as a "Promise-like" for Session.
  9702. * Why is this prefixed with `Prisma__`?
  9703. * Because we want to prevent naming conflicts as mentioned in
  9704. * https://github.com/prisma/prisma-client-js/issues/707
  9705. */
  9706. export interface Prisma__SessionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  9707. readonly [Symbol.toStringTag]: "PrismaPromise"
  9708. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  9709. /**
  9710. * Attaches callbacks for the resolution and/or rejection of the Promise.
  9711. * @param onfulfilled The callback to execute when the Promise is resolved.
  9712. * @param onrejected The callback to execute when the Promise is rejected.
  9713. * @returns A Promise for the completion of which ever callback is executed.
  9714. */
  9715. 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>
  9716. /**
  9717. * Attaches a callback for only the rejection of the Promise.
  9718. * @param onrejected The callback to execute when the Promise is rejected.
  9719. * @returns A Promise for the completion of the callback.
  9720. */
  9721. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  9722. /**
  9723. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  9724. * resolved value cannot be modified from the callback.
  9725. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  9726. * @returns A Promise for the completion of the callback.
  9727. */
  9728. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  9729. }
  9730. /**
  9731. * Fields of the Session model
  9732. */
  9733. interface SessionFieldRefs {
  9734. readonly id: FieldRef<"Session", 'String'>
  9735. readonly sessionToken: FieldRef<"Session", 'String'>
  9736. readonly userId: FieldRef<"Session", 'String'>
  9737. readonly expires: FieldRef<"Session", 'DateTime'>
  9738. }
  9739. // Custom InputTypes
  9740. /**
  9741. * Session findUnique
  9742. */
  9743. export type SessionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9744. /**
  9745. * Select specific fields to fetch from the Session
  9746. */
  9747. select?: SessionSelect<ExtArgs> | null
  9748. /**
  9749. * Omit specific fields from the Session
  9750. */
  9751. omit?: SessionOmit<ExtArgs> | null
  9752. /**
  9753. * Choose, which related nodes to fetch as well
  9754. */
  9755. include?: SessionInclude<ExtArgs> | null
  9756. /**
  9757. * Filter, which Session to fetch.
  9758. */
  9759. where: SessionWhereUniqueInput
  9760. }
  9761. /**
  9762. * Session findUniqueOrThrow
  9763. */
  9764. export type SessionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9765. /**
  9766. * Select specific fields to fetch from the Session
  9767. */
  9768. select?: SessionSelect<ExtArgs> | null
  9769. /**
  9770. * Omit specific fields from the Session
  9771. */
  9772. omit?: SessionOmit<ExtArgs> | null
  9773. /**
  9774. * Choose, which related nodes to fetch as well
  9775. */
  9776. include?: SessionInclude<ExtArgs> | null
  9777. /**
  9778. * Filter, which Session to fetch.
  9779. */
  9780. where: SessionWhereUniqueInput
  9781. }
  9782. /**
  9783. * Session findFirst
  9784. */
  9785. export type SessionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9786. /**
  9787. * Select specific fields to fetch from the Session
  9788. */
  9789. select?: SessionSelect<ExtArgs> | null
  9790. /**
  9791. * Omit specific fields from the Session
  9792. */
  9793. omit?: SessionOmit<ExtArgs> | null
  9794. /**
  9795. * Choose, which related nodes to fetch as well
  9796. */
  9797. include?: SessionInclude<ExtArgs> | null
  9798. /**
  9799. * Filter, which Session to fetch.
  9800. */
  9801. where?: SessionWhereInput
  9802. /**
  9803. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9804. *
  9805. * Determine the order of Sessions to fetch.
  9806. */
  9807. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9808. /**
  9809. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9810. *
  9811. * Sets the position for searching for Sessions.
  9812. */
  9813. cursor?: SessionWhereUniqueInput
  9814. /**
  9815. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9816. *
  9817. * Take `±n` Sessions from the position of the cursor.
  9818. */
  9819. take?: number
  9820. /**
  9821. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9822. *
  9823. * Skip the first `n` Sessions.
  9824. */
  9825. skip?: number
  9826. /**
  9827. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9828. *
  9829. * Filter by unique combinations of Sessions.
  9830. */
  9831. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9832. }
  9833. /**
  9834. * Session findFirstOrThrow
  9835. */
  9836. export type SessionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9837. /**
  9838. * Select specific fields to fetch from the Session
  9839. */
  9840. select?: SessionSelect<ExtArgs> | null
  9841. /**
  9842. * Omit specific fields from the Session
  9843. */
  9844. omit?: SessionOmit<ExtArgs> | null
  9845. /**
  9846. * Choose, which related nodes to fetch as well
  9847. */
  9848. include?: SessionInclude<ExtArgs> | null
  9849. /**
  9850. * Filter, which Session to fetch.
  9851. */
  9852. where?: SessionWhereInput
  9853. /**
  9854. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9855. *
  9856. * Determine the order of Sessions to fetch.
  9857. */
  9858. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9859. /**
  9860. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9861. *
  9862. * Sets the position for searching for Sessions.
  9863. */
  9864. cursor?: SessionWhereUniqueInput
  9865. /**
  9866. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9867. *
  9868. * Take `±n` Sessions from the position of the cursor.
  9869. */
  9870. take?: number
  9871. /**
  9872. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9873. *
  9874. * Skip the first `n` Sessions.
  9875. */
  9876. skip?: number
  9877. /**
  9878. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  9879. *
  9880. * Filter by unique combinations of Sessions.
  9881. */
  9882. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9883. }
  9884. /**
  9885. * Session findMany
  9886. */
  9887. export type SessionFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9888. /**
  9889. * Select specific fields to fetch from the Session
  9890. */
  9891. select?: SessionSelect<ExtArgs> | null
  9892. /**
  9893. * Omit specific fields from the Session
  9894. */
  9895. omit?: SessionOmit<ExtArgs> | null
  9896. /**
  9897. * Choose, which related nodes to fetch as well
  9898. */
  9899. include?: SessionInclude<ExtArgs> | null
  9900. /**
  9901. * Filter, which Sessions to fetch.
  9902. */
  9903. where?: SessionWhereInput
  9904. /**
  9905. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  9906. *
  9907. * Determine the order of Sessions to fetch.
  9908. */
  9909. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  9910. /**
  9911. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  9912. *
  9913. * Sets the position for listing Sessions.
  9914. */
  9915. cursor?: SessionWhereUniqueInput
  9916. /**
  9917. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9918. *
  9919. * Take `±n` Sessions from the position of the cursor.
  9920. */
  9921. take?: number
  9922. /**
  9923. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  9924. *
  9925. * Skip the first `n` Sessions.
  9926. */
  9927. skip?: number
  9928. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  9929. }
  9930. /**
  9931. * Session create
  9932. */
  9933. export type SessionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9934. /**
  9935. * Select specific fields to fetch from the Session
  9936. */
  9937. select?: SessionSelect<ExtArgs> | null
  9938. /**
  9939. * Omit specific fields from the Session
  9940. */
  9941. omit?: SessionOmit<ExtArgs> | null
  9942. /**
  9943. * Choose, which related nodes to fetch as well
  9944. */
  9945. include?: SessionInclude<ExtArgs> | null
  9946. /**
  9947. * The data needed to create a Session.
  9948. */
  9949. data: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  9950. }
  9951. /**
  9952. * Session createMany
  9953. */
  9954. export type SessionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9955. /**
  9956. * The data used to create many Sessions.
  9957. */
  9958. data: SessionCreateManyInput | SessionCreateManyInput[]
  9959. skipDuplicates?: boolean
  9960. }
  9961. /**
  9962. * Session createManyAndReturn
  9963. */
  9964. export type SessionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9965. /**
  9966. * Select specific fields to fetch from the Session
  9967. */
  9968. select?: SessionSelectCreateManyAndReturn<ExtArgs> | null
  9969. /**
  9970. * Omit specific fields from the Session
  9971. */
  9972. omit?: SessionOmit<ExtArgs> | null
  9973. /**
  9974. * The data used to create many Sessions.
  9975. */
  9976. data: SessionCreateManyInput | SessionCreateManyInput[]
  9977. skipDuplicates?: boolean
  9978. /**
  9979. * Choose, which related nodes to fetch as well
  9980. */
  9981. include?: SessionIncludeCreateManyAndReturn<ExtArgs> | null
  9982. }
  9983. /**
  9984. * Session update
  9985. */
  9986. export type SessionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  9987. /**
  9988. * Select specific fields to fetch from the Session
  9989. */
  9990. select?: SessionSelect<ExtArgs> | null
  9991. /**
  9992. * Omit specific fields from the Session
  9993. */
  9994. omit?: SessionOmit<ExtArgs> | null
  9995. /**
  9996. * Choose, which related nodes to fetch as well
  9997. */
  9998. include?: SessionInclude<ExtArgs> | null
  9999. /**
  10000. * The data needed to update a Session.
  10001. */
  10002. data: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  10003. /**
  10004. * Choose, which Session to update.
  10005. */
  10006. where: SessionWhereUniqueInput
  10007. }
  10008. /**
  10009. * Session updateMany
  10010. */
  10011. export type SessionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10012. /**
  10013. * The data used to update Sessions.
  10014. */
  10015. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  10016. /**
  10017. * Filter which Sessions to update
  10018. */
  10019. where?: SessionWhereInput
  10020. /**
  10021. * Limit how many Sessions to update.
  10022. */
  10023. limit?: number
  10024. }
  10025. /**
  10026. * Session updateManyAndReturn
  10027. */
  10028. export type SessionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10029. /**
  10030. * Select specific fields to fetch from the Session
  10031. */
  10032. select?: SessionSelectUpdateManyAndReturn<ExtArgs> | null
  10033. /**
  10034. * Omit specific fields from the Session
  10035. */
  10036. omit?: SessionOmit<ExtArgs> | null
  10037. /**
  10038. * The data used to update Sessions.
  10039. */
  10040. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyInput>
  10041. /**
  10042. * Filter which Sessions to update
  10043. */
  10044. where?: SessionWhereInput
  10045. /**
  10046. * Limit how many Sessions to update.
  10047. */
  10048. limit?: number
  10049. /**
  10050. * Choose, which related nodes to fetch as well
  10051. */
  10052. include?: SessionIncludeUpdateManyAndReturn<ExtArgs> | null
  10053. }
  10054. /**
  10055. * Session upsert
  10056. */
  10057. export type SessionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10058. /**
  10059. * Select specific fields to fetch from the Session
  10060. */
  10061. select?: SessionSelect<ExtArgs> | null
  10062. /**
  10063. * Omit specific fields from the Session
  10064. */
  10065. omit?: SessionOmit<ExtArgs> | null
  10066. /**
  10067. * Choose, which related nodes to fetch as well
  10068. */
  10069. include?: SessionInclude<ExtArgs> | null
  10070. /**
  10071. * The filter to search for the Session to update in case it exists.
  10072. */
  10073. where: SessionWhereUniqueInput
  10074. /**
  10075. * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
  10076. */
  10077. create: XOR<SessionCreateInput, SessionUncheckedCreateInput>
  10078. /**
  10079. * In case the Session was found with the provided `where` argument, update it with this data.
  10080. */
  10081. update: XOR<SessionUpdateInput, SessionUncheckedUpdateInput>
  10082. }
  10083. /**
  10084. * Session delete
  10085. */
  10086. export type SessionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10087. /**
  10088. * Select specific fields to fetch from the Session
  10089. */
  10090. select?: SessionSelect<ExtArgs> | null
  10091. /**
  10092. * Omit specific fields from the Session
  10093. */
  10094. omit?: SessionOmit<ExtArgs> | null
  10095. /**
  10096. * Choose, which related nodes to fetch as well
  10097. */
  10098. include?: SessionInclude<ExtArgs> | null
  10099. /**
  10100. * Filter which Session to delete.
  10101. */
  10102. where: SessionWhereUniqueInput
  10103. }
  10104. /**
  10105. * Session deleteMany
  10106. */
  10107. export type SessionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10108. /**
  10109. * Filter which Sessions to delete
  10110. */
  10111. where?: SessionWhereInput
  10112. /**
  10113. * Limit how many Sessions to delete.
  10114. */
  10115. limit?: number
  10116. }
  10117. /**
  10118. * Session without action
  10119. */
  10120. export type SessionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10121. /**
  10122. * Select specific fields to fetch from the Session
  10123. */
  10124. select?: SessionSelect<ExtArgs> | null
  10125. /**
  10126. * Omit specific fields from the Session
  10127. */
  10128. omit?: SessionOmit<ExtArgs> | null
  10129. /**
  10130. * Choose, which related nodes to fetch as well
  10131. */
  10132. include?: SessionInclude<ExtArgs> | null
  10133. }
  10134. /**
  10135. * Model User
  10136. */
  10137. export type AggregateUser = {
  10138. _count: UserCountAggregateOutputType | null
  10139. _min: UserMinAggregateOutputType | null
  10140. _max: UserMaxAggregateOutputType | null
  10141. }
  10142. export type UserMinAggregateOutputType = {
  10143. id: string | null
  10144. name: string | null
  10145. email: string | null
  10146. emailVerified: Date | null
  10147. password: string | null
  10148. legalTermsAcceptedAt: Date | null
  10149. image: string | null
  10150. }
  10151. export type UserMaxAggregateOutputType = {
  10152. id: string | null
  10153. name: string | null
  10154. email: string | null
  10155. emailVerified: Date | null
  10156. password: string | null
  10157. legalTermsAcceptedAt: Date | null
  10158. image: string | null
  10159. }
  10160. export type UserCountAggregateOutputType = {
  10161. id: number
  10162. name: number
  10163. email: number
  10164. emailVerified: number
  10165. password: number
  10166. legalTermsAcceptedAt: number
  10167. image: number
  10168. _all: number
  10169. }
  10170. export type UserMinAggregateInputType = {
  10171. id?: true
  10172. name?: true
  10173. email?: true
  10174. emailVerified?: true
  10175. password?: true
  10176. legalTermsAcceptedAt?: true
  10177. image?: true
  10178. }
  10179. export type UserMaxAggregateInputType = {
  10180. id?: true
  10181. name?: true
  10182. email?: true
  10183. emailVerified?: true
  10184. password?: true
  10185. legalTermsAcceptedAt?: true
  10186. image?: true
  10187. }
  10188. export type UserCountAggregateInputType = {
  10189. id?: true
  10190. name?: true
  10191. email?: true
  10192. emailVerified?: true
  10193. password?: true
  10194. legalTermsAcceptedAt?: true
  10195. image?: true
  10196. _all?: true
  10197. }
  10198. export type UserAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10199. /**
  10200. * Filter which User to aggregate.
  10201. */
  10202. where?: UserWhereInput
  10203. /**
  10204. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10205. *
  10206. * Determine the order of Users to fetch.
  10207. */
  10208. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10209. /**
  10210. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10211. *
  10212. * Sets the start position
  10213. */
  10214. cursor?: UserWhereUniqueInput
  10215. /**
  10216. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10217. *
  10218. * Take `±n` Users from the position of the cursor.
  10219. */
  10220. take?: number
  10221. /**
  10222. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10223. *
  10224. * Skip the first `n` Users.
  10225. */
  10226. skip?: number
  10227. /**
  10228. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10229. *
  10230. * Count returned Users
  10231. **/
  10232. _count?: true | UserCountAggregateInputType
  10233. /**
  10234. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10235. *
  10236. * Select which fields to find the minimum value
  10237. **/
  10238. _min?: UserMinAggregateInputType
  10239. /**
  10240. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  10241. *
  10242. * Select which fields to find the maximum value
  10243. **/
  10244. _max?: UserMaxAggregateInputType
  10245. }
  10246. export type GetUserAggregateType<T extends UserAggregateArgs> = {
  10247. [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
  10248. ? T[P] extends true
  10249. ? number
  10250. : GetScalarType<T[P], AggregateUser[P]>
  10251. : GetScalarType<T[P], AggregateUser[P]>
  10252. }
  10253. export type UserGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10254. where?: UserWhereInput
  10255. orderBy?: UserOrderByWithAggregationInput | UserOrderByWithAggregationInput[]
  10256. by: UserScalarFieldEnum[] | UserScalarFieldEnum
  10257. having?: UserScalarWhereWithAggregatesInput
  10258. take?: number
  10259. skip?: number
  10260. _count?: UserCountAggregateInputType | true
  10261. _min?: UserMinAggregateInputType
  10262. _max?: UserMaxAggregateInputType
  10263. }
  10264. export type UserGroupByOutputType = {
  10265. id: string
  10266. name: string | null
  10267. email: string | null
  10268. emailVerified: Date | null
  10269. password: string | null
  10270. legalTermsAcceptedAt: Date | null
  10271. image: string | null
  10272. _count: UserCountAggregateOutputType | null
  10273. _min: UserMinAggregateOutputType | null
  10274. _max: UserMaxAggregateOutputType | null
  10275. }
  10276. type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
  10277. Array<
  10278. PickEnumerable<UserGroupByOutputType, T['by']> &
  10279. {
  10280. [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
  10281. ? T[P] extends boolean
  10282. ? number
  10283. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10284. : GetScalarType<T[P], UserGroupByOutputType[P]>
  10285. }
  10286. >
  10287. >
  10288. export type UserSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10289. id?: boolean
  10290. name?: boolean
  10291. email?: boolean
  10292. emailVerified?: boolean
  10293. password?: boolean
  10294. legalTermsAcceptedAt?: boolean
  10295. image?: boolean
  10296. accounts?: boolean | User$accountsArgs<ExtArgs>
  10297. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10298. posts?: boolean | User$postsArgs<ExtArgs>
  10299. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10300. feedbacks?: boolean | User$feedbacksArgs<ExtArgs>
  10301. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10302. }, ExtArgs["result"]["user"]>
  10303. export type UserSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10304. id?: boolean
  10305. name?: boolean
  10306. email?: boolean
  10307. emailVerified?: boolean
  10308. password?: boolean
  10309. legalTermsAcceptedAt?: boolean
  10310. image?: boolean
  10311. }, ExtArgs["result"]["user"]>
  10312. export type UserSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  10313. id?: boolean
  10314. name?: boolean
  10315. email?: boolean
  10316. emailVerified?: boolean
  10317. password?: boolean
  10318. legalTermsAcceptedAt?: boolean
  10319. image?: boolean
  10320. }, ExtArgs["result"]["user"]>
  10321. export type UserSelectScalar = {
  10322. id?: boolean
  10323. name?: boolean
  10324. email?: boolean
  10325. emailVerified?: boolean
  10326. password?: boolean
  10327. legalTermsAcceptedAt?: boolean
  10328. image?: boolean
  10329. }
  10330. export type UserOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "name" | "email" | "emailVerified" | "password" | "legalTermsAcceptedAt" | "image", ExtArgs["result"]["user"]>
  10331. export type UserInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10332. accounts?: boolean | User$accountsArgs<ExtArgs>
  10333. sessions?: boolean | User$sessionsArgs<ExtArgs>
  10334. posts?: boolean | User$postsArgs<ExtArgs>
  10335. workspace?: boolean | User$workspaceArgs<ExtArgs>
  10336. feedbacks?: boolean | User$feedbacksArgs<ExtArgs>
  10337. _count?: boolean | UserCountOutputTypeDefaultArgs<ExtArgs>
  10338. }
  10339. export type UserIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10340. export type UserIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {}
  10341. export type $UserPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10342. name: "User"
  10343. objects: {
  10344. accounts: Prisma.$AccountPayload<ExtArgs>[]
  10345. sessions: Prisma.$SessionPayload<ExtArgs>[]
  10346. posts: Prisma.$PostPayload<ExtArgs>[]
  10347. workspace: Prisma.$WorkspacePayload<ExtArgs> | null
  10348. feedbacks: Prisma.$AppFeedbackPayload<ExtArgs>[]
  10349. }
  10350. scalars: $Extensions.GetPayloadResult<{
  10351. id: string
  10352. name: string | null
  10353. email: string | null
  10354. emailVerified: Date | null
  10355. password: string | null
  10356. /**
  10357. * Horodatage unique d'acceptation CGU/CGV, confidentialité et annexe RGPD à l'inscription.
  10358. */
  10359. legalTermsAcceptedAt: Date | null
  10360. image: string | null
  10361. }, ExtArgs["result"]["user"]>
  10362. composites: {}
  10363. }
  10364. type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = $Result.GetResult<Prisma.$UserPayload, S>
  10365. type UserCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  10366. Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  10367. select?: UserCountAggregateInputType | true
  10368. }
  10369. export interface UserDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  10370. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
  10371. /**
  10372. * Find zero or one User that matches the filter.
  10373. * @param {UserFindUniqueArgs} args - Arguments to find a User
  10374. * @example
  10375. * // Get one User
  10376. * const user = await prisma.user.findUnique({
  10377. * where: {
  10378. * // ... provide filter here
  10379. * }
  10380. * })
  10381. */
  10382. findUnique<T extends UserFindUniqueArgs>(args: SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10383. /**
  10384. * Find one User that matches the filter or throw an error with `error.code='P2025'`
  10385. * if no matches were found.
  10386. * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
  10387. * @example
  10388. * // Get one User
  10389. * const user = await prisma.user.findUniqueOrThrow({
  10390. * where: {
  10391. * // ... provide filter here
  10392. * }
  10393. * })
  10394. */
  10395. findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10396. /**
  10397. * Find the first User that matches the filter.
  10398. * Note, that providing `undefined` is treated as the value not being there.
  10399. * Read more here: https://pris.ly/d/null-undefined
  10400. * @param {UserFindFirstArgs} args - Arguments to find a User
  10401. * @example
  10402. * // Get one User
  10403. * const user = await prisma.user.findFirst({
  10404. * where: {
  10405. * // ... provide filter here
  10406. * }
  10407. * })
  10408. */
  10409. findFirst<T extends UserFindFirstArgs>(args?: SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  10410. /**
  10411. * Find the first User that matches the filter or
  10412. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  10413. * Note, that providing `undefined` is treated as the value not being there.
  10414. * Read more here: https://pris.ly/d/null-undefined
  10415. * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
  10416. * @example
  10417. * // Get one User
  10418. * const user = await prisma.user.findFirstOrThrow({
  10419. * where: {
  10420. * // ... provide filter here
  10421. * }
  10422. * })
  10423. */
  10424. findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10425. /**
  10426. * Find zero or more Users that matches the filter.
  10427. * Note, that providing `undefined` is treated as the value not being there.
  10428. * Read more here: https://pris.ly/d/null-undefined
  10429. * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
  10430. * @example
  10431. * // Get all Users
  10432. * const users = await prisma.user.findMany()
  10433. *
  10434. * // Get first 10 Users
  10435. * const users = await prisma.user.findMany({ take: 10 })
  10436. *
  10437. * // Only select the `id`
  10438. * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
  10439. *
  10440. */
  10441. findMany<T extends UserFindManyArgs>(args?: SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  10442. /**
  10443. * Create a User.
  10444. * @param {UserCreateArgs} args - Arguments to create a User.
  10445. * @example
  10446. * // Create one User
  10447. * const User = await prisma.user.create({
  10448. * data: {
  10449. * // ... data to create a User
  10450. * }
  10451. * })
  10452. *
  10453. */
  10454. create<T extends UserCreateArgs>(args: SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10455. /**
  10456. * Create many Users.
  10457. * @param {UserCreateManyArgs} args - Arguments to create many Users.
  10458. * @example
  10459. * // Create many Users
  10460. * const user = await prisma.user.createMany({
  10461. * data: [
  10462. * // ... provide data here
  10463. * ]
  10464. * })
  10465. *
  10466. */
  10467. createMany<T extends UserCreateManyArgs>(args?: SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10468. /**
  10469. * Create many Users and returns the data saved in the database.
  10470. * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
  10471. * @example
  10472. * // Create many Users
  10473. * const user = await prisma.user.createManyAndReturn({
  10474. * data: [
  10475. * // ... provide data here
  10476. * ]
  10477. * })
  10478. *
  10479. * // Create many Users and only return the `id`
  10480. * const userWithIdOnly = await prisma.user.createManyAndReturn({
  10481. * select: { id: true },
  10482. * data: [
  10483. * // ... provide data here
  10484. * ]
  10485. * })
  10486. * Note, that providing `undefined` is treated as the value not being there.
  10487. * Read more here: https://pris.ly/d/null-undefined
  10488. *
  10489. */
  10490. createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  10491. /**
  10492. * Delete a User.
  10493. * @param {UserDeleteArgs} args - Arguments to delete one User.
  10494. * @example
  10495. * // Delete one User
  10496. * const User = await prisma.user.delete({
  10497. * where: {
  10498. * // ... filter to delete one User
  10499. * }
  10500. * })
  10501. *
  10502. */
  10503. delete<T extends UserDeleteArgs>(args: SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10504. /**
  10505. * Update one User.
  10506. * @param {UserUpdateArgs} args - Arguments to update one User.
  10507. * @example
  10508. * // Update one User
  10509. * const user = await prisma.user.update({
  10510. * where: {
  10511. * // ... provide filter here
  10512. * },
  10513. * data: {
  10514. * // ... provide data here
  10515. * }
  10516. * })
  10517. *
  10518. */
  10519. update<T extends UserUpdateArgs>(args: SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10520. /**
  10521. * Delete zero or more Users.
  10522. * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
  10523. * @example
  10524. * // Delete a few Users
  10525. * const { count } = await prisma.user.deleteMany({
  10526. * where: {
  10527. * // ... provide filter here
  10528. * }
  10529. * })
  10530. *
  10531. */
  10532. deleteMany<T extends UserDeleteManyArgs>(args?: SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10533. /**
  10534. * Update zero or more Users.
  10535. * Note, that providing `undefined` is treated as the value not being there.
  10536. * Read more here: https://pris.ly/d/null-undefined
  10537. * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
  10538. * @example
  10539. * // Update many Users
  10540. * const user = await prisma.user.updateMany({
  10541. * where: {
  10542. * // ... provide filter here
  10543. * },
  10544. * data: {
  10545. * // ... provide data here
  10546. * }
  10547. * })
  10548. *
  10549. */
  10550. updateMany<T extends UserUpdateManyArgs>(args: SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  10551. /**
  10552. * Update zero or more Users and returns the data updated in the database.
  10553. * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
  10554. * @example
  10555. * // Update many Users
  10556. * const user = await prisma.user.updateManyAndReturn({
  10557. * where: {
  10558. * // ... provide filter here
  10559. * },
  10560. * data: [
  10561. * // ... provide data here
  10562. * ]
  10563. * })
  10564. *
  10565. * // Update zero or more Users and only return the `id`
  10566. * const userWithIdOnly = await prisma.user.updateManyAndReturn({
  10567. * select: { id: true },
  10568. * where: {
  10569. * // ... provide filter here
  10570. * },
  10571. * data: [
  10572. * // ... provide data here
  10573. * ]
  10574. * })
  10575. * Note, that providing `undefined` is treated as the value not being there.
  10576. * Read more here: https://pris.ly/d/null-undefined
  10577. *
  10578. */
  10579. updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  10580. /**
  10581. * Create or update one User.
  10582. * @param {UserUpsertArgs} args - Arguments to update or create a User.
  10583. * @example
  10584. * // Update or create a User
  10585. * const user = await prisma.user.upsert({
  10586. * create: {
  10587. * // ... data to create a User
  10588. * },
  10589. * update: {
  10590. * // ... in case it already exists, update
  10591. * },
  10592. * where: {
  10593. * // ... the filter for the User we want to update
  10594. * }
  10595. * })
  10596. */
  10597. upsert<T extends UserUpsertArgs>(args: SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  10598. /**
  10599. * Count the number of Users.
  10600. * Note, that providing `undefined` is treated as the value not being there.
  10601. * Read more here: https://pris.ly/d/null-undefined
  10602. * @param {UserCountArgs} args - Arguments to filter Users to count.
  10603. * @example
  10604. * // Count the number of Users
  10605. * const count = await prisma.user.count({
  10606. * where: {
  10607. * // ... the filter for the Users we want to count
  10608. * }
  10609. * })
  10610. **/
  10611. count<T extends UserCountArgs>(
  10612. args?: Subset<T, UserCountArgs>,
  10613. ): Prisma.PrismaPromise<
  10614. T extends $Utils.Record<'select', any>
  10615. ? T['select'] extends true
  10616. ? number
  10617. : GetScalarType<T['select'], UserCountAggregateOutputType>
  10618. : number
  10619. >
  10620. /**
  10621. * Allows you to perform aggregations operations on a User.
  10622. * Note, that providing `undefined` is treated as the value not being there.
  10623. * Read more here: https://pris.ly/d/null-undefined
  10624. * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  10625. * @example
  10626. * // Ordered by age ascending
  10627. * // Where email contains prisma.io
  10628. * // Limited to the 10 users
  10629. * const aggregations = await prisma.user.aggregate({
  10630. * _avg: {
  10631. * age: true,
  10632. * },
  10633. * where: {
  10634. * email: {
  10635. * contains: "prisma.io",
  10636. * },
  10637. * },
  10638. * orderBy: {
  10639. * age: "asc",
  10640. * },
  10641. * take: 10,
  10642. * })
  10643. **/
  10644. aggregate<T extends UserAggregateArgs>(args: Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
  10645. /**
  10646. * Group by User.
  10647. * Note, that providing `undefined` is treated as the value not being there.
  10648. * Read more here: https://pris.ly/d/null-undefined
  10649. * @param {UserGroupByArgs} args - Group by arguments.
  10650. * @example
  10651. * // Group by city, order by createdAt, get count
  10652. * const result = await prisma.user.groupBy({
  10653. * by: ['city', 'createdAt'],
  10654. * orderBy: {
  10655. * createdAt: true
  10656. * },
  10657. * _count: {
  10658. * _all: true
  10659. * },
  10660. * })
  10661. *
  10662. **/
  10663. groupBy<
  10664. T extends UserGroupByArgs,
  10665. HasSelectOrTake extends Or<
  10666. Extends<'skip', Keys<T>>,
  10667. Extends<'take', Keys<T>>
  10668. >,
  10669. OrderByArg extends True extends HasSelectOrTake
  10670. ? { orderBy: UserGroupByArgs['orderBy'] }
  10671. : { orderBy?: UserGroupByArgs['orderBy'] },
  10672. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  10673. ByFields extends MaybeTupleToUnion<T['by']>,
  10674. ByValid extends Has<ByFields, OrderFields>,
  10675. HavingFields extends GetHavingFields<T['having']>,
  10676. HavingValid extends Has<ByFields, HavingFields>,
  10677. ByEmpty extends T['by'] extends never[] ? True : False,
  10678. InputErrors extends ByEmpty extends True
  10679. ? `Error: "by" must not be empty.`
  10680. : HavingValid extends False
  10681. ? {
  10682. [P in HavingFields]: P extends ByFields
  10683. ? never
  10684. : P extends string
  10685. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  10686. : [
  10687. Error,
  10688. 'Field ',
  10689. P,
  10690. ` in "having" needs to be provided in "by"`,
  10691. ]
  10692. }[HavingFields]
  10693. : 'take' extends Keys<T>
  10694. ? 'orderBy' extends Keys<T>
  10695. ? ByValid extends True
  10696. ? {}
  10697. : {
  10698. [P in OrderFields]: P extends ByFields
  10699. ? never
  10700. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10701. }[OrderFields]
  10702. : 'Error: If you provide "take", you also need to provide "orderBy"'
  10703. : 'skip' extends Keys<T>
  10704. ? 'orderBy' extends Keys<T>
  10705. ? ByValid extends True
  10706. ? {}
  10707. : {
  10708. [P in OrderFields]: P extends ByFields
  10709. ? never
  10710. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10711. }[OrderFields]
  10712. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  10713. : ByValid extends True
  10714. ? {}
  10715. : {
  10716. [P in OrderFields]: P extends ByFields
  10717. ? never
  10718. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  10719. }[OrderFields]
  10720. >(args: SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  10721. /**
  10722. * Fields of the User model
  10723. */
  10724. readonly fields: UserFieldRefs;
  10725. }
  10726. /**
  10727. * The delegate class that acts as a "Promise-like" for User.
  10728. * Why is this prefixed with `Prisma__`?
  10729. * Because we want to prevent naming conflicts as mentioned in
  10730. * https://github.com/prisma/prisma-client-js/issues/707
  10731. */
  10732. export interface Prisma__UserClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  10733. readonly [Symbol.toStringTag]: "PrismaPromise"
  10734. accounts<T extends User$accountsArgs<ExtArgs> = {}>(args?: Subset<T, User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10735. sessions<T extends User$sessionsArgs<ExtArgs> = {}>(args?: Subset<T, User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10736. posts<T extends User$postsArgs<ExtArgs> = {}>(args?: Subset<T, User$postsArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$PostPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10737. 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>
  10738. feedbacks<T extends User$feedbacksArgs<ExtArgs> = {}>(args?: Subset<T, User$feedbacksArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
  10739. /**
  10740. * Attaches callbacks for the resolution and/or rejection of the Promise.
  10741. * @param onfulfilled The callback to execute when the Promise is resolved.
  10742. * @param onrejected The callback to execute when the Promise is rejected.
  10743. * @returns A Promise for the completion of which ever callback is executed.
  10744. */
  10745. 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>
  10746. /**
  10747. * Attaches a callback for only the rejection of the Promise.
  10748. * @param onrejected The callback to execute when the Promise is rejected.
  10749. * @returns A Promise for the completion of the callback.
  10750. */
  10751. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  10752. /**
  10753. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  10754. * resolved value cannot be modified from the callback.
  10755. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  10756. * @returns A Promise for the completion of the callback.
  10757. */
  10758. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  10759. }
  10760. /**
  10761. * Fields of the User model
  10762. */
  10763. interface UserFieldRefs {
  10764. readonly id: FieldRef<"User", 'String'>
  10765. readonly name: FieldRef<"User", 'String'>
  10766. readonly email: FieldRef<"User", 'String'>
  10767. readonly emailVerified: FieldRef<"User", 'DateTime'>
  10768. readonly password: FieldRef<"User", 'String'>
  10769. readonly legalTermsAcceptedAt: FieldRef<"User", 'DateTime'>
  10770. readonly image: FieldRef<"User", 'String'>
  10771. }
  10772. // Custom InputTypes
  10773. /**
  10774. * User findUnique
  10775. */
  10776. export type UserFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10777. /**
  10778. * Select specific fields to fetch from the User
  10779. */
  10780. select?: UserSelect<ExtArgs> | null
  10781. /**
  10782. * Omit specific fields from the User
  10783. */
  10784. omit?: UserOmit<ExtArgs> | null
  10785. /**
  10786. * Choose, which related nodes to fetch as well
  10787. */
  10788. include?: UserInclude<ExtArgs> | null
  10789. /**
  10790. * Filter, which User to fetch.
  10791. */
  10792. where: UserWhereUniqueInput
  10793. }
  10794. /**
  10795. * User findUniqueOrThrow
  10796. */
  10797. export type UserFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10798. /**
  10799. * Select specific fields to fetch from the User
  10800. */
  10801. select?: UserSelect<ExtArgs> | null
  10802. /**
  10803. * Omit specific fields from the User
  10804. */
  10805. omit?: UserOmit<ExtArgs> | null
  10806. /**
  10807. * Choose, which related nodes to fetch as well
  10808. */
  10809. include?: UserInclude<ExtArgs> | null
  10810. /**
  10811. * Filter, which User to fetch.
  10812. */
  10813. where: UserWhereUniqueInput
  10814. }
  10815. /**
  10816. * User findFirst
  10817. */
  10818. export type UserFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10819. /**
  10820. * Select specific fields to fetch from the User
  10821. */
  10822. select?: UserSelect<ExtArgs> | null
  10823. /**
  10824. * Omit specific fields from the User
  10825. */
  10826. omit?: UserOmit<ExtArgs> | null
  10827. /**
  10828. * Choose, which related nodes to fetch as well
  10829. */
  10830. include?: UserInclude<ExtArgs> | null
  10831. /**
  10832. * Filter, which User to fetch.
  10833. */
  10834. where?: UserWhereInput
  10835. /**
  10836. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10837. *
  10838. * Determine the order of Users to fetch.
  10839. */
  10840. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10841. /**
  10842. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10843. *
  10844. * Sets the position for searching for Users.
  10845. */
  10846. cursor?: UserWhereUniqueInput
  10847. /**
  10848. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10849. *
  10850. * Take `±n` Users from the position of the cursor.
  10851. */
  10852. take?: number
  10853. /**
  10854. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10855. *
  10856. * Skip the first `n` Users.
  10857. */
  10858. skip?: number
  10859. /**
  10860. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10861. *
  10862. * Filter by unique combinations of Users.
  10863. */
  10864. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10865. }
  10866. /**
  10867. * User findFirstOrThrow
  10868. */
  10869. export type UserFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10870. /**
  10871. * Select specific fields to fetch from the User
  10872. */
  10873. select?: UserSelect<ExtArgs> | null
  10874. /**
  10875. * Omit specific fields from the User
  10876. */
  10877. omit?: UserOmit<ExtArgs> | null
  10878. /**
  10879. * Choose, which related nodes to fetch as well
  10880. */
  10881. include?: UserInclude<ExtArgs> | null
  10882. /**
  10883. * Filter, which User to fetch.
  10884. */
  10885. where?: UserWhereInput
  10886. /**
  10887. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10888. *
  10889. * Determine the order of Users to fetch.
  10890. */
  10891. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10892. /**
  10893. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10894. *
  10895. * Sets the position for searching for Users.
  10896. */
  10897. cursor?: UserWhereUniqueInput
  10898. /**
  10899. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10900. *
  10901. * Take `±n` Users from the position of the cursor.
  10902. */
  10903. take?: number
  10904. /**
  10905. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10906. *
  10907. * Skip the first `n` Users.
  10908. */
  10909. skip?: number
  10910. /**
  10911. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  10912. *
  10913. * Filter by unique combinations of Users.
  10914. */
  10915. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10916. }
  10917. /**
  10918. * User findMany
  10919. */
  10920. export type UserFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10921. /**
  10922. * Select specific fields to fetch from the User
  10923. */
  10924. select?: UserSelect<ExtArgs> | null
  10925. /**
  10926. * Omit specific fields from the User
  10927. */
  10928. omit?: UserOmit<ExtArgs> | null
  10929. /**
  10930. * Choose, which related nodes to fetch as well
  10931. */
  10932. include?: UserInclude<ExtArgs> | null
  10933. /**
  10934. * Filter, which Users to fetch.
  10935. */
  10936. where?: UserWhereInput
  10937. /**
  10938. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  10939. *
  10940. * Determine the order of Users to fetch.
  10941. */
  10942. orderBy?: UserOrderByWithRelationInput | UserOrderByWithRelationInput[]
  10943. /**
  10944. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  10945. *
  10946. * Sets the position for listing Users.
  10947. */
  10948. cursor?: UserWhereUniqueInput
  10949. /**
  10950. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10951. *
  10952. * Take `±n` Users from the position of the cursor.
  10953. */
  10954. take?: number
  10955. /**
  10956. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  10957. *
  10958. * Skip the first `n` Users.
  10959. */
  10960. skip?: number
  10961. distinct?: UserScalarFieldEnum | UserScalarFieldEnum[]
  10962. }
  10963. /**
  10964. * User create
  10965. */
  10966. export type UserCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10967. /**
  10968. * Select specific fields to fetch from the User
  10969. */
  10970. select?: UserSelect<ExtArgs> | null
  10971. /**
  10972. * Omit specific fields from the User
  10973. */
  10974. omit?: UserOmit<ExtArgs> | null
  10975. /**
  10976. * Choose, which related nodes to fetch as well
  10977. */
  10978. include?: UserInclude<ExtArgs> | null
  10979. /**
  10980. * The data needed to create a User.
  10981. */
  10982. data?: XOR<UserCreateInput, UserUncheckedCreateInput>
  10983. }
  10984. /**
  10985. * User createMany
  10986. */
  10987. export type UserCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10988. /**
  10989. * The data used to create many Users.
  10990. */
  10991. data: UserCreateManyInput | UserCreateManyInput[]
  10992. skipDuplicates?: boolean
  10993. }
  10994. /**
  10995. * User createManyAndReturn
  10996. */
  10997. export type UserCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  10998. /**
  10999. * Select specific fields to fetch from the User
  11000. */
  11001. select?: UserSelectCreateManyAndReturn<ExtArgs> | null
  11002. /**
  11003. * Omit specific fields from the User
  11004. */
  11005. omit?: UserOmit<ExtArgs> | null
  11006. /**
  11007. * The data used to create many Users.
  11008. */
  11009. data: UserCreateManyInput | UserCreateManyInput[]
  11010. skipDuplicates?: boolean
  11011. }
  11012. /**
  11013. * User update
  11014. */
  11015. export type UserUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11016. /**
  11017. * Select specific fields to fetch from the User
  11018. */
  11019. select?: UserSelect<ExtArgs> | null
  11020. /**
  11021. * Omit specific fields from the User
  11022. */
  11023. omit?: UserOmit<ExtArgs> | null
  11024. /**
  11025. * Choose, which related nodes to fetch as well
  11026. */
  11027. include?: UserInclude<ExtArgs> | null
  11028. /**
  11029. * The data needed to update a User.
  11030. */
  11031. data: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  11032. /**
  11033. * Choose, which User to update.
  11034. */
  11035. where: UserWhereUniqueInput
  11036. }
  11037. /**
  11038. * User updateMany
  11039. */
  11040. export type UserUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11041. /**
  11042. * The data used to update Users.
  11043. */
  11044. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  11045. /**
  11046. * Filter which Users to update
  11047. */
  11048. where?: UserWhereInput
  11049. /**
  11050. * Limit how many Users to update.
  11051. */
  11052. limit?: number
  11053. }
  11054. /**
  11055. * User updateManyAndReturn
  11056. */
  11057. export type UserUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11058. /**
  11059. * Select specific fields to fetch from the User
  11060. */
  11061. select?: UserSelectUpdateManyAndReturn<ExtArgs> | null
  11062. /**
  11063. * Omit specific fields from the User
  11064. */
  11065. omit?: UserOmit<ExtArgs> | null
  11066. /**
  11067. * The data used to update Users.
  11068. */
  11069. data: XOR<UserUpdateManyMutationInput, UserUncheckedUpdateManyInput>
  11070. /**
  11071. * Filter which Users to update
  11072. */
  11073. where?: UserWhereInput
  11074. /**
  11075. * Limit how many Users to update.
  11076. */
  11077. limit?: number
  11078. }
  11079. /**
  11080. * User upsert
  11081. */
  11082. export type UserUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11083. /**
  11084. * Select specific fields to fetch from the User
  11085. */
  11086. select?: UserSelect<ExtArgs> | null
  11087. /**
  11088. * Omit specific fields from the User
  11089. */
  11090. omit?: UserOmit<ExtArgs> | null
  11091. /**
  11092. * Choose, which related nodes to fetch as well
  11093. */
  11094. include?: UserInclude<ExtArgs> | null
  11095. /**
  11096. * The filter to search for the User to update in case it exists.
  11097. */
  11098. where: UserWhereUniqueInput
  11099. /**
  11100. * In case the User found by the `where` argument doesn't exist, create a new User with this data.
  11101. */
  11102. create: XOR<UserCreateInput, UserUncheckedCreateInput>
  11103. /**
  11104. * In case the User was found with the provided `where` argument, update it with this data.
  11105. */
  11106. update: XOR<UserUpdateInput, UserUncheckedUpdateInput>
  11107. }
  11108. /**
  11109. * User delete
  11110. */
  11111. export type UserDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11112. /**
  11113. * Select specific fields to fetch from the User
  11114. */
  11115. select?: UserSelect<ExtArgs> | null
  11116. /**
  11117. * Omit specific fields from the User
  11118. */
  11119. omit?: UserOmit<ExtArgs> | null
  11120. /**
  11121. * Choose, which related nodes to fetch as well
  11122. */
  11123. include?: UserInclude<ExtArgs> | null
  11124. /**
  11125. * Filter which User to delete.
  11126. */
  11127. where: UserWhereUniqueInput
  11128. }
  11129. /**
  11130. * User deleteMany
  11131. */
  11132. export type UserDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11133. /**
  11134. * Filter which Users to delete
  11135. */
  11136. where?: UserWhereInput
  11137. /**
  11138. * Limit how many Users to delete.
  11139. */
  11140. limit?: number
  11141. }
  11142. /**
  11143. * User.accounts
  11144. */
  11145. export type User$accountsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11146. /**
  11147. * Select specific fields to fetch from the Account
  11148. */
  11149. select?: AccountSelect<ExtArgs> | null
  11150. /**
  11151. * Omit specific fields from the Account
  11152. */
  11153. omit?: AccountOmit<ExtArgs> | null
  11154. /**
  11155. * Choose, which related nodes to fetch as well
  11156. */
  11157. include?: AccountInclude<ExtArgs> | null
  11158. where?: AccountWhereInput
  11159. orderBy?: AccountOrderByWithRelationInput | AccountOrderByWithRelationInput[]
  11160. cursor?: AccountWhereUniqueInput
  11161. take?: number
  11162. skip?: number
  11163. distinct?: AccountScalarFieldEnum | AccountScalarFieldEnum[]
  11164. }
  11165. /**
  11166. * User.sessions
  11167. */
  11168. export type User$sessionsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11169. /**
  11170. * Select specific fields to fetch from the Session
  11171. */
  11172. select?: SessionSelect<ExtArgs> | null
  11173. /**
  11174. * Omit specific fields from the Session
  11175. */
  11176. omit?: SessionOmit<ExtArgs> | null
  11177. /**
  11178. * Choose, which related nodes to fetch as well
  11179. */
  11180. include?: SessionInclude<ExtArgs> | null
  11181. where?: SessionWhereInput
  11182. orderBy?: SessionOrderByWithRelationInput | SessionOrderByWithRelationInput[]
  11183. cursor?: SessionWhereUniqueInput
  11184. take?: number
  11185. skip?: number
  11186. distinct?: SessionScalarFieldEnum | SessionScalarFieldEnum[]
  11187. }
  11188. /**
  11189. * User.posts
  11190. */
  11191. export type User$postsArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11192. /**
  11193. * Select specific fields to fetch from the Post
  11194. */
  11195. select?: PostSelect<ExtArgs> | null
  11196. /**
  11197. * Omit specific fields from the Post
  11198. */
  11199. omit?: PostOmit<ExtArgs> | null
  11200. /**
  11201. * Choose, which related nodes to fetch as well
  11202. */
  11203. include?: PostInclude<ExtArgs> | null
  11204. where?: PostWhereInput
  11205. orderBy?: PostOrderByWithRelationInput | PostOrderByWithRelationInput[]
  11206. cursor?: PostWhereUniqueInput
  11207. take?: number
  11208. skip?: number
  11209. distinct?: PostScalarFieldEnum | PostScalarFieldEnum[]
  11210. }
  11211. /**
  11212. * User.workspace
  11213. */
  11214. export type User$workspaceArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11215. /**
  11216. * Select specific fields to fetch from the Workspace
  11217. */
  11218. select?: WorkspaceSelect<ExtArgs> | null
  11219. /**
  11220. * Omit specific fields from the Workspace
  11221. */
  11222. omit?: WorkspaceOmit<ExtArgs> | null
  11223. /**
  11224. * Choose, which related nodes to fetch as well
  11225. */
  11226. include?: WorkspaceInclude<ExtArgs> | null
  11227. where?: WorkspaceWhereInput
  11228. }
  11229. /**
  11230. * User.feedbacks
  11231. */
  11232. export type User$feedbacksArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11233. /**
  11234. * Select specific fields to fetch from the AppFeedback
  11235. */
  11236. select?: AppFeedbackSelect<ExtArgs> | null
  11237. /**
  11238. * Omit specific fields from the AppFeedback
  11239. */
  11240. omit?: AppFeedbackOmit<ExtArgs> | null
  11241. /**
  11242. * Choose, which related nodes to fetch as well
  11243. */
  11244. include?: AppFeedbackInclude<ExtArgs> | null
  11245. where?: AppFeedbackWhereInput
  11246. orderBy?: AppFeedbackOrderByWithRelationInput | AppFeedbackOrderByWithRelationInput[]
  11247. cursor?: AppFeedbackWhereUniqueInput
  11248. take?: number
  11249. skip?: number
  11250. distinct?: AppFeedbackScalarFieldEnum | AppFeedbackScalarFieldEnum[]
  11251. }
  11252. /**
  11253. * User without action
  11254. */
  11255. export type UserDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11256. /**
  11257. * Select specific fields to fetch from the User
  11258. */
  11259. select?: UserSelect<ExtArgs> | null
  11260. /**
  11261. * Omit specific fields from the User
  11262. */
  11263. omit?: UserOmit<ExtArgs> | null
  11264. /**
  11265. * Choose, which related nodes to fetch as well
  11266. */
  11267. include?: UserInclude<ExtArgs> | null
  11268. }
  11269. /**
  11270. * Model VerificationToken
  11271. */
  11272. export type AggregateVerificationToken = {
  11273. _count: VerificationTokenCountAggregateOutputType | null
  11274. _min: VerificationTokenMinAggregateOutputType | null
  11275. _max: VerificationTokenMaxAggregateOutputType | null
  11276. }
  11277. export type VerificationTokenMinAggregateOutputType = {
  11278. identifier: string | null
  11279. token: string | null
  11280. expires: Date | null
  11281. }
  11282. export type VerificationTokenMaxAggregateOutputType = {
  11283. identifier: string | null
  11284. token: string | null
  11285. expires: Date | null
  11286. }
  11287. export type VerificationTokenCountAggregateOutputType = {
  11288. identifier: number
  11289. token: number
  11290. expires: number
  11291. _all: number
  11292. }
  11293. export type VerificationTokenMinAggregateInputType = {
  11294. identifier?: true
  11295. token?: true
  11296. expires?: true
  11297. }
  11298. export type VerificationTokenMaxAggregateInputType = {
  11299. identifier?: true
  11300. token?: true
  11301. expires?: true
  11302. }
  11303. export type VerificationTokenCountAggregateInputType = {
  11304. identifier?: true
  11305. token?: true
  11306. expires?: true
  11307. _all?: true
  11308. }
  11309. export type VerificationTokenAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11310. /**
  11311. * Filter which VerificationToken to aggregate.
  11312. */
  11313. where?: VerificationTokenWhereInput
  11314. /**
  11315. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11316. *
  11317. * Determine the order of VerificationTokens to fetch.
  11318. */
  11319. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11320. /**
  11321. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11322. *
  11323. * Sets the start position
  11324. */
  11325. cursor?: VerificationTokenWhereUniqueInput
  11326. /**
  11327. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11328. *
  11329. * Take `±n` VerificationTokens from the position of the cursor.
  11330. */
  11331. take?: number
  11332. /**
  11333. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11334. *
  11335. * Skip the first `n` VerificationTokens.
  11336. */
  11337. skip?: number
  11338. /**
  11339. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11340. *
  11341. * Count returned VerificationTokens
  11342. **/
  11343. _count?: true | VerificationTokenCountAggregateInputType
  11344. /**
  11345. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11346. *
  11347. * Select which fields to find the minimum value
  11348. **/
  11349. _min?: VerificationTokenMinAggregateInputType
  11350. /**
  11351. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  11352. *
  11353. * Select which fields to find the maximum value
  11354. **/
  11355. _max?: VerificationTokenMaxAggregateInputType
  11356. }
  11357. export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
  11358. [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
  11359. ? T[P] extends true
  11360. ? number
  11361. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11362. : GetScalarType<T[P], AggregateVerificationToken[P]>
  11363. }
  11364. export type VerificationTokenGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11365. where?: VerificationTokenWhereInput
  11366. orderBy?: VerificationTokenOrderByWithAggregationInput | VerificationTokenOrderByWithAggregationInput[]
  11367. by: VerificationTokenScalarFieldEnum[] | VerificationTokenScalarFieldEnum
  11368. having?: VerificationTokenScalarWhereWithAggregatesInput
  11369. take?: number
  11370. skip?: number
  11371. _count?: VerificationTokenCountAggregateInputType | true
  11372. _min?: VerificationTokenMinAggregateInputType
  11373. _max?: VerificationTokenMaxAggregateInputType
  11374. }
  11375. export type VerificationTokenGroupByOutputType = {
  11376. identifier: string
  11377. token: string
  11378. expires: Date
  11379. _count: VerificationTokenCountAggregateOutputType | null
  11380. _min: VerificationTokenMinAggregateOutputType | null
  11381. _max: VerificationTokenMaxAggregateOutputType | null
  11382. }
  11383. type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
  11384. Array<
  11385. PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
  11386. {
  11387. [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
  11388. ? T[P] extends boolean
  11389. ? number
  11390. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11391. : GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
  11392. }
  11393. >
  11394. >
  11395. export type VerificationTokenSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11396. identifier?: boolean
  11397. token?: boolean
  11398. expires?: boolean
  11399. }, ExtArgs["result"]["verificationToken"]>
  11400. export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11401. identifier?: boolean
  11402. token?: boolean
  11403. expires?: boolean
  11404. }, ExtArgs["result"]["verificationToken"]>
  11405. export type VerificationTokenSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  11406. identifier?: boolean
  11407. token?: boolean
  11408. expires?: boolean
  11409. }, ExtArgs["result"]["verificationToken"]>
  11410. export type VerificationTokenSelectScalar = {
  11411. identifier?: boolean
  11412. token?: boolean
  11413. expires?: boolean
  11414. }
  11415. export type VerificationTokenOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]>
  11416. export type $VerificationTokenPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11417. name: "VerificationToken"
  11418. objects: {}
  11419. scalars: $Extensions.GetPayloadResult<{
  11420. identifier: string
  11421. token: string
  11422. expires: Date
  11423. }, ExtArgs["result"]["verificationToken"]>
  11424. composites: {}
  11425. }
  11426. type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = $Result.GetResult<Prisma.$VerificationTokenPayload, S>
  11427. type VerificationTokenCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  11428. Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  11429. select?: VerificationTokenCountAggregateInputType | true
  11430. }
  11431. export interface VerificationTokenDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  11432. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'], meta: { name: 'VerificationToken' } }
  11433. /**
  11434. * Find zero or one VerificationToken that matches the filter.
  11435. * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
  11436. * @example
  11437. * // Get one VerificationToken
  11438. * const verificationToken = await prisma.verificationToken.findUnique({
  11439. * where: {
  11440. * // ... provide filter here
  11441. * }
  11442. * })
  11443. */
  11444. findUnique<T extends VerificationTokenFindUniqueArgs>(args: SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11445. /**
  11446. * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
  11447. * if no matches were found.
  11448. * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
  11449. * @example
  11450. * // Get one VerificationToken
  11451. * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
  11452. * where: {
  11453. * // ... provide filter here
  11454. * }
  11455. * })
  11456. */
  11457. findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11458. /**
  11459. * Find the first VerificationToken that matches the filter.
  11460. * Note, that providing `undefined` is treated as the value not being there.
  11461. * Read more here: https://pris.ly/d/null-undefined
  11462. * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
  11463. * @example
  11464. * // Get one VerificationToken
  11465. * const verificationToken = await prisma.verificationToken.findFirst({
  11466. * where: {
  11467. * // ... provide filter here
  11468. * }
  11469. * })
  11470. */
  11471. findFirst<T extends VerificationTokenFindFirstArgs>(args?: SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  11472. /**
  11473. * Find the first VerificationToken that matches the filter or
  11474. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  11475. * Note, that providing `undefined` is treated as the value not being there.
  11476. * Read more here: https://pris.ly/d/null-undefined
  11477. * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
  11478. * @example
  11479. * // Get one VerificationToken
  11480. * const verificationToken = await prisma.verificationToken.findFirstOrThrow({
  11481. * where: {
  11482. * // ... provide filter here
  11483. * }
  11484. * })
  11485. */
  11486. findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11487. /**
  11488. * Find zero or more VerificationTokens that matches the filter.
  11489. * Note, that providing `undefined` is treated as the value not being there.
  11490. * Read more here: https://pris.ly/d/null-undefined
  11491. * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
  11492. * @example
  11493. * // Get all VerificationTokens
  11494. * const verificationTokens = await prisma.verificationToken.findMany()
  11495. *
  11496. * // Get first 10 VerificationTokens
  11497. * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
  11498. *
  11499. * // Only select the `identifier`
  11500. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
  11501. *
  11502. */
  11503. findMany<T extends VerificationTokenFindManyArgs>(args?: SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  11504. /**
  11505. * Create a VerificationToken.
  11506. * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
  11507. * @example
  11508. * // Create one VerificationToken
  11509. * const VerificationToken = await prisma.verificationToken.create({
  11510. * data: {
  11511. * // ... data to create a VerificationToken
  11512. * }
  11513. * })
  11514. *
  11515. */
  11516. create<T extends VerificationTokenCreateArgs>(args: SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11517. /**
  11518. * Create many VerificationTokens.
  11519. * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
  11520. * @example
  11521. * // Create many VerificationTokens
  11522. * const verificationToken = await prisma.verificationToken.createMany({
  11523. * data: [
  11524. * // ... provide data here
  11525. * ]
  11526. * })
  11527. *
  11528. */
  11529. createMany<T extends VerificationTokenCreateManyArgs>(args?: SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11530. /**
  11531. * Create many VerificationTokens and returns the data saved in the database.
  11532. * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
  11533. * @example
  11534. * // Create many VerificationTokens
  11535. * const verificationToken = await prisma.verificationToken.createManyAndReturn({
  11536. * data: [
  11537. * // ... provide data here
  11538. * ]
  11539. * })
  11540. *
  11541. * // Create many VerificationTokens and only return the `identifier`
  11542. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
  11543. * select: { identifier: true },
  11544. * data: [
  11545. * // ... provide data here
  11546. * ]
  11547. * })
  11548. * Note, that providing `undefined` is treated as the value not being there.
  11549. * Read more here: https://pris.ly/d/null-undefined
  11550. *
  11551. */
  11552. createManyAndReturn<T extends VerificationTokenCreateManyAndReturnArgs>(args?: SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  11553. /**
  11554. * Delete a VerificationToken.
  11555. * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
  11556. * @example
  11557. * // Delete one VerificationToken
  11558. * const VerificationToken = await prisma.verificationToken.delete({
  11559. * where: {
  11560. * // ... filter to delete one VerificationToken
  11561. * }
  11562. * })
  11563. *
  11564. */
  11565. delete<T extends VerificationTokenDeleteArgs>(args: SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11566. /**
  11567. * Update one VerificationToken.
  11568. * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
  11569. * @example
  11570. * // Update one VerificationToken
  11571. * const verificationToken = await prisma.verificationToken.update({
  11572. * where: {
  11573. * // ... provide filter here
  11574. * },
  11575. * data: {
  11576. * // ... provide data here
  11577. * }
  11578. * })
  11579. *
  11580. */
  11581. update<T extends VerificationTokenUpdateArgs>(args: SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11582. /**
  11583. * Delete zero or more VerificationTokens.
  11584. * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
  11585. * @example
  11586. * // Delete a few VerificationTokens
  11587. * const { count } = await prisma.verificationToken.deleteMany({
  11588. * where: {
  11589. * // ... provide filter here
  11590. * }
  11591. * })
  11592. *
  11593. */
  11594. deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11595. /**
  11596. * Update zero or more VerificationTokens.
  11597. * Note, that providing `undefined` is treated as the value not being there.
  11598. * Read more here: https://pris.ly/d/null-undefined
  11599. * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
  11600. * @example
  11601. * // Update many VerificationTokens
  11602. * const verificationToken = await prisma.verificationToken.updateMany({
  11603. * where: {
  11604. * // ... provide filter here
  11605. * },
  11606. * data: {
  11607. * // ... provide data here
  11608. * }
  11609. * })
  11610. *
  11611. */
  11612. updateMany<T extends VerificationTokenUpdateManyArgs>(args: SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  11613. /**
  11614. * Update zero or more VerificationTokens and returns the data updated in the database.
  11615. * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens.
  11616. * @example
  11617. * // Update many VerificationTokens
  11618. * const verificationToken = await prisma.verificationToken.updateManyAndReturn({
  11619. * where: {
  11620. * // ... provide filter here
  11621. * },
  11622. * data: [
  11623. * // ... provide data here
  11624. * ]
  11625. * })
  11626. *
  11627. * // Update zero or more VerificationTokens and only return the `identifier`
  11628. * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({
  11629. * select: { identifier: true },
  11630. * where: {
  11631. * // ... provide filter here
  11632. * },
  11633. * data: [
  11634. * // ... provide data here
  11635. * ]
  11636. * })
  11637. * Note, that providing `undefined` is treated as the value not being there.
  11638. * Read more here: https://pris.ly/d/null-undefined
  11639. *
  11640. */
  11641. updateManyAndReturn<T extends VerificationTokenUpdateManyAndReturnArgs>(args: SelectSubset<T, VerificationTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  11642. /**
  11643. * Create or update one VerificationToken.
  11644. * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
  11645. * @example
  11646. * // Update or create a VerificationToken
  11647. * const verificationToken = await prisma.verificationToken.upsert({
  11648. * create: {
  11649. * // ... data to create a VerificationToken
  11650. * },
  11651. * update: {
  11652. * // ... in case it already exists, update
  11653. * },
  11654. * where: {
  11655. * // ... the filter for the VerificationToken we want to update
  11656. * }
  11657. * })
  11658. */
  11659. upsert<T extends VerificationTokenUpsertArgs>(args: SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma__VerificationTokenClient<$Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  11660. /**
  11661. * Count the number of VerificationTokens.
  11662. * Note, that providing `undefined` is treated as the value not being there.
  11663. * Read more here: https://pris.ly/d/null-undefined
  11664. * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
  11665. * @example
  11666. * // Count the number of VerificationTokens
  11667. * const count = await prisma.verificationToken.count({
  11668. * where: {
  11669. * // ... the filter for the VerificationTokens we want to count
  11670. * }
  11671. * })
  11672. **/
  11673. count<T extends VerificationTokenCountArgs>(
  11674. args?: Subset<T, VerificationTokenCountArgs>,
  11675. ): Prisma.PrismaPromise<
  11676. T extends $Utils.Record<'select', any>
  11677. ? T['select'] extends true
  11678. ? number
  11679. : GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
  11680. : number
  11681. >
  11682. /**
  11683. * Allows you to perform aggregations operations on a VerificationToken.
  11684. * Note, that providing `undefined` is treated as the value not being there.
  11685. * Read more here: https://pris.ly/d/null-undefined
  11686. * @param {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  11687. * @example
  11688. * // Ordered by age ascending
  11689. * // Where email contains prisma.io
  11690. * // Limited to the 10 users
  11691. * const aggregations = await prisma.user.aggregate({
  11692. * _avg: {
  11693. * age: true,
  11694. * },
  11695. * where: {
  11696. * email: {
  11697. * contains: "prisma.io",
  11698. * },
  11699. * },
  11700. * orderBy: {
  11701. * age: "asc",
  11702. * },
  11703. * take: 10,
  11704. * })
  11705. **/
  11706. aggregate<T extends VerificationTokenAggregateArgs>(args: Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
  11707. /**
  11708. * Group by VerificationToken.
  11709. * Note, that providing `undefined` is treated as the value not being there.
  11710. * Read more here: https://pris.ly/d/null-undefined
  11711. * @param {VerificationTokenGroupByArgs} args - Group by arguments.
  11712. * @example
  11713. * // Group by city, order by createdAt, get count
  11714. * const result = await prisma.user.groupBy({
  11715. * by: ['city', 'createdAt'],
  11716. * orderBy: {
  11717. * createdAt: true
  11718. * },
  11719. * _count: {
  11720. * _all: true
  11721. * },
  11722. * })
  11723. *
  11724. **/
  11725. groupBy<
  11726. T extends VerificationTokenGroupByArgs,
  11727. HasSelectOrTake extends Or<
  11728. Extends<'skip', Keys<T>>,
  11729. Extends<'take', Keys<T>>
  11730. >,
  11731. OrderByArg extends True extends HasSelectOrTake
  11732. ? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
  11733. : { orderBy?: VerificationTokenGroupByArgs['orderBy'] },
  11734. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  11735. ByFields extends MaybeTupleToUnion<T['by']>,
  11736. ByValid extends Has<ByFields, OrderFields>,
  11737. HavingFields extends GetHavingFields<T['having']>,
  11738. HavingValid extends Has<ByFields, HavingFields>,
  11739. ByEmpty extends T['by'] extends never[] ? True : False,
  11740. InputErrors extends ByEmpty extends True
  11741. ? `Error: "by" must not be empty.`
  11742. : HavingValid extends False
  11743. ? {
  11744. [P in HavingFields]: P extends ByFields
  11745. ? never
  11746. : P extends string
  11747. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  11748. : [
  11749. Error,
  11750. 'Field ',
  11751. P,
  11752. ` in "having" needs to be provided in "by"`,
  11753. ]
  11754. }[HavingFields]
  11755. : 'take' extends Keys<T>
  11756. ? 'orderBy' extends Keys<T>
  11757. ? ByValid extends True
  11758. ? {}
  11759. : {
  11760. [P in OrderFields]: P extends ByFields
  11761. ? never
  11762. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11763. }[OrderFields]
  11764. : 'Error: If you provide "take", you also need to provide "orderBy"'
  11765. : 'skip' extends Keys<T>
  11766. ? 'orderBy' extends Keys<T>
  11767. ? ByValid extends True
  11768. ? {}
  11769. : {
  11770. [P in OrderFields]: P extends ByFields
  11771. ? never
  11772. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11773. }[OrderFields]
  11774. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  11775. : ByValid extends True
  11776. ? {}
  11777. : {
  11778. [P in OrderFields]: P extends ByFields
  11779. ? never
  11780. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  11781. }[OrderFields]
  11782. >(args: SubsetIntersection<T, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  11783. /**
  11784. * Fields of the VerificationToken model
  11785. */
  11786. readonly fields: VerificationTokenFieldRefs;
  11787. }
  11788. /**
  11789. * The delegate class that acts as a "Promise-like" for VerificationToken.
  11790. * Why is this prefixed with `Prisma__`?
  11791. * Because we want to prevent naming conflicts as mentioned in
  11792. * https://github.com/prisma/prisma-client-js/issues/707
  11793. */
  11794. export interface Prisma__VerificationTokenClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  11795. readonly [Symbol.toStringTag]: "PrismaPromise"
  11796. /**
  11797. * Attaches callbacks for the resolution and/or rejection of the Promise.
  11798. * @param onfulfilled The callback to execute when the Promise is resolved.
  11799. * @param onrejected The callback to execute when the Promise is rejected.
  11800. * @returns A Promise for the completion of which ever callback is executed.
  11801. */
  11802. 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>
  11803. /**
  11804. * Attaches a callback for only the rejection of the Promise.
  11805. * @param onrejected The callback to execute when the Promise is rejected.
  11806. * @returns A Promise for the completion of the callback.
  11807. */
  11808. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  11809. /**
  11810. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  11811. * resolved value cannot be modified from the callback.
  11812. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  11813. * @returns A Promise for the completion of the callback.
  11814. */
  11815. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  11816. }
  11817. /**
  11818. * Fields of the VerificationToken model
  11819. */
  11820. interface VerificationTokenFieldRefs {
  11821. readonly identifier: FieldRef<"VerificationToken", 'String'>
  11822. readonly token: FieldRef<"VerificationToken", 'String'>
  11823. readonly expires: FieldRef<"VerificationToken", 'DateTime'>
  11824. }
  11825. // Custom InputTypes
  11826. /**
  11827. * VerificationToken findUnique
  11828. */
  11829. export type VerificationTokenFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11830. /**
  11831. * Select specific fields to fetch from the VerificationToken
  11832. */
  11833. select?: VerificationTokenSelect<ExtArgs> | null
  11834. /**
  11835. * Omit specific fields from the VerificationToken
  11836. */
  11837. omit?: VerificationTokenOmit<ExtArgs> | null
  11838. /**
  11839. * Filter, which VerificationToken to fetch.
  11840. */
  11841. where: VerificationTokenWhereUniqueInput
  11842. }
  11843. /**
  11844. * VerificationToken findUniqueOrThrow
  11845. */
  11846. export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11847. /**
  11848. * Select specific fields to fetch from the VerificationToken
  11849. */
  11850. select?: VerificationTokenSelect<ExtArgs> | null
  11851. /**
  11852. * Omit specific fields from the VerificationToken
  11853. */
  11854. omit?: VerificationTokenOmit<ExtArgs> | null
  11855. /**
  11856. * Filter, which VerificationToken to fetch.
  11857. */
  11858. where: VerificationTokenWhereUniqueInput
  11859. }
  11860. /**
  11861. * VerificationToken findFirst
  11862. */
  11863. export type VerificationTokenFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11864. /**
  11865. * Select specific fields to fetch from the VerificationToken
  11866. */
  11867. select?: VerificationTokenSelect<ExtArgs> | null
  11868. /**
  11869. * Omit specific fields from the VerificationToken
  11870. */
  11871. omit?: VerificationTokenOmit<ExtArgs> | null
  11872. /**
  11873. * Filter, which VerificationToken to fetch.
  11874. */
  11875. where?: VerificationTokenWhereInput
  11876. /**
  11877. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11878. *
  11879. * Determine the order of VerificationTokens to fetch.
  11880. */
  11881. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11882. /**
  11883. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11884. *
  11885. * Sets the position for searching for VerificationTokens.
  11886. */
  11887. cursor?: VerificationTokenWhereUniqueInput
  11888. /**
  11889. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11890. *
  11891. * Take `±n` VerificationTokens from the position of the cursor.
  11892. */
  11893. take?: number
  11894. /**
  11895. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11896. *
  11897. * Skip the first `n` VerificationTokens.
  11898. */
  11899. skip?: number
  11900. /**
  11901. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11902. *
  11903. * Filter by unique combinations of VerificationTokens.
  11904. */
  11905. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11906. }
  11907. /**
  11908. * VerificationToken findFirstOrThrow
  11909. */
  11910. export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11911. /**
  11912. * Select specific fields to fetch from the VerificationToken
  11913. */
  11914. select?: VerificationTokenSelect<ExtArgs> | null
  11915. /**
  11916. * Omit specific fields from the VerificationToken
  11917. */
  11918. omit?: VerificationTokenOmit<ExtArgs> | null
  11919. /**
  11920. * Filter, which VerificationToken to fetch.
  11921. */
  11922. where?: VerificationTokenWhereInput
  11923. /**
  11924. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11925. *
  11926. * Determine the order of VerificationTokens to fetch.
  11927. */
  11928. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11929. /**
  11930. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11931. *
  11932. * Sets the position for searching for VerificationTokens.
  11933. */
  11934. cursor?: VerificationTokenWhereUniqueInput
  11935. /**
  11936. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11937. *
  11938. * Take `±n` VerificationTokens from the position of the cursor.
  11939. */
  11940. take?: number
  11941. /**
  11942. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11943. *
  11944. * Skip the first `n` VerificationTokens.
  11945. */
  11946. skip?: number
  11947. /**
  11948. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  11949. *
  11950. * Filter by unique combinations of VerificationTokens.
  11951. */
  11952. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11953. }
  11954. /**
  11955. * VerificationToken findMany
  11956. */
  11957. export type VerificationTokenFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  11958. /**
  11959. * Select specific fields to fetch from the VerificationToken
  11960. */
  11961. select?: VerificationTokenSelect<ExtArgs> | null
  11962. /**
  11963. * Omit specific fields from the VerificationToken
  11964. */
  11965. omit?: VerificationTokenOmit<ExtArgs> | null
  11966. /**
  11967. * Filter, which VerificationTokens to fetch.
  11968. */
  11969. where?: VerificationTokenWhereInput
  11970. /**
  11971. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  11972. *
  11973. * Determine the order of VerificationTokens to fetch.
  11974. */
  11975. orderBy?: VerificationTokenOrderByWithRelationInput | VerificationTokenOrderByWithRelationInput[]
  11976. /**
  11977. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  11978. *
  11979. * Sets the position for listing VerificationTokens.
  11980. */
  11981. cursor?: VerificationTokenWhereUniqueInput
  11982. /**
  11983. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11984. *
  11985. * Take `±n` VerificationTokens from the position of the cursor.
  11986. */
  11987. take?: number
  11988. /**
  11989. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  11990. *
  11991. * Skip the first `n` VerificationTokens.
  11992. */
  11993. skip?: number
  11994. distinct?: VerificationTokenScalarFieldEnum | VerificationTokenScalarFieldEnum[]
  11995. }
  11996. /**
  11997. * VerificationToken create
  11998. */
  11999. export type VerificationTokenCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12000. /**
  12001. * Select specific fields to fetch from the VerificationToken
  12002. */
  12003. select?: VerificationTokenSelect<ExtArgs> | null
  12004. /**
  12005. * Omit specific fields from the VerificationToken
  12006. */
  12007. omit?: VerificationTokenOmit<ExtArgs> | null
  12008. /**
  12009. * The data needed to create a VerificationToken.
  12010. */
  12011. data: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  12012. }
  12013. /**
  12014. * VerificationToken createMany
  12015. */
  12016. export type VerificationTokenCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12017. /**
  12018. * The data used to create many VerificationTokens.
  12019. */
  12020. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  12021. skipDuplicates?: boolean
  12022. }
  12023. /**
  12024. * VerificationToken createManyAndReturn
  12025. */
  12026. export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12027. /**
  12028. * Select specific fields to fetch from the VerificationToken
  12029. */
  12030. select?: VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null
  12031. /**
  12032. * Omit specific fields from the VerificationToken
  12033. */
  12034. omit?: VerificationTokenOmit<ExtArgs> | null
  12035. /**
  12036. * The data used to create many VerificationTokens.
  12037. */
  12038. data: VerificationTokenCreateManyInput | VerificationTokenCreateManyInput[]
  12039. skipDuplicates?: boolean
  12040. }
  12041. /**
  12042. * VerificationToken update
  12043. */
  12044. export type VerificationTokenUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12045. /**
  12046. * Select specific fields to fetch from the VerificationToken
  12047. */
  12048. select?: VerificationTokenSelect<ExtArgs> | null
  12049. /**
  12050. * Omit specific fields from the VerificationToken
  12051. */
  12052. omit?: VerificationTokenOmit<ExtArgs> | null
  12053. /**
  12054. * The data needed to update a VerificationToken.
  12055. */
  12056. data: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  12057. /**
  12058. * Choose, which VerificationToken to update.
  12059. */
  12060. where: VerificationTokenWhereUniqueInput
  12061. }
  12062. /**
  12063. * VerificationToken updateMany
  12064. */
  12065. export type VerificationTokenUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12066. /**
  12067. * The data used to update VerificationTokens.
  12068. */
  12069. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  12070. /**
  12071. * Filter which VerificationTokens to update
  12072. */
  12073. where?: VerificationTokenWhereInput
  12074. /**
  12075. * Limit how many VerificationTokens to update.
  12076. */
  12077. limit?: number
  12078. }
  12079. /**
  12080. * VerificationToken updateManyAndReturn
  12081. */
  12082. export type VerificationTokenUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12083. /**
  12084. * Select specific fields to fetch from the VerificationToken
  12085. */
  12086. select?: VerificationTokenSelectUpdateManyAndReturn<ExtArgs> | null
  12087. /**
  12088. * Omit specific fields from the VerificationToken
  12089. */
  12090. omit?: VerificationTokenOmit<ExtArgs> | null
  12091. /**
  12092. * The data used to update VerificationTokens.
  12093. */
  12094. data: XOR<VerificationTokenUpdateManyMutationInput, VerificationTokenUncheckedUpdateManyInput>
  12095. /**
  12096. * Filter which VerificationTokens to update
  12097. */
  12098. where?: VerificationTokenWhereInput
  12099. /**
  12100. * Limit how many VerificationTokens to update.
  12101. */
  12102. limit?: number
  12103. }
  12104. /**
  12105. * VerificationToken upsert
  12106. */
  12107. export type VerificationTokenUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12108. /**
  12109. * Select specific fields to fetch from the VerificationToken
  12110. */
  12111. select?: VerificationTokenSelect<ExtArgs> | null
  12112. /**
  12113. * Omit specific fields from the VerificationToken
  12114. */
  12115. omit?: VerificationTokenOmit<ExtArgs> | null
  12116. /**
  12117. * The filter to search for the VerificationToken to update in case it exists.
  12118. */
  12119. where: VerificationTokenWhereUniqueInput
  12120. /**
  12121. * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
  12122. */
  12123. create: XOR<VerificationTokenCreateInput, VerificationTokenUncheckedCreateInput>
  12124. /**
  12125. * In case the VerificationToken was found with the provided `where` argument, update it with this data.
  12126. */
  12127. update: XOR<VerificationTokenUpdateInput, VerificationTokenUncheckedUpdateInput>
  12128. }
  12129. /**
  12130. * VerificationToken delete
  12131. */
  12132. export type VerificationTokenDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12133. /**
  12134. * Select specific fields to fetch from the VerificationToken
  12135. */
  12136. select?: VerificationTokenSelect<ExtArgs> | null
  12137. /**
  12138. * Omit specific fields from the VerificationToken
  12139. */
  12140. omit?: VerificationTokenOmit<ExtArgs> | null
  12141. /**
  12142. * Filter which VerificationToken to delete.
  12143. */
  12144. where: VerificationTokenWhereUniqueInput
  12145. }
  12146. /**
  12147. * VerificationToken deleteMany
  12148. */
  12149. export type VerificationTokenDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12150. /**
  12151. * Filter which VerificationTokens to delete
  12152. */
  12153. where?: VerificationTokenWhereInput
  12154. /**
  12155. * Limit how many VerificationTokens to delete.
  12156. */
  12157. limit?: number
  12158. }
  12159. /**
  12160. * VerificationToken without action
  12161. */
  12162. export type VerificationTokenDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12163. /**
  12164. * Select specific fields to fetch from the VerificationToken
  12165. */
  12166. select?: VerificationTokenSelect<ExtArgs> | null
  12167. /**
  12168. * Omit specific fields from the VerificationToken
  12169. */
  12170. omit?: VerificationTokenOmit<ExtArgs> | null
  12171. }
  12172. /**
  12173. * Model IdeaAttachment
  12174. */
  12175. export type AggregateIdeaAttachment = {
  12176. _count: IdeaAttachmentCountAggregateOutputType | null
  12177. _avg: IdeaAttachmentAvgAggregateOutputType | null
  12178. _sum: IdeaAttachmentSumAggregateOutputType | null
  12179. _min: IdeaAttachmentMinAggregateOutputType | null
  12180. _max: IdeaAttachmentMaxAggregateOutputType | null
  12181. }
  12182. export type IdeaAttachmentAvgAggregateOutputType = {
  12183. size: number | null
  12184. }
  12185. export type IdeaAttachmentSumAggregateOutputType = {
  12186. size: number | null
  12187. }
  12188. export type IdeaAttachmentMinAggregateOutputType = {
  12189. id: string | null
  12190. ideaId: string | null
  12191. workspaceId: string | null
  12192. filename: string | null
  12193. contentType: string | null
  12194. size: number | null
  12195. url: string | null
  12196. blobPath: string | null
  12197. createdAt: Date | null
  12198. }
  12199. export type IdeaAttachmentMaxAggregateOutputType = {
  12200. id: string | null
  12201. ideaId: string | null
  12202. workspaceId: string | null
  12203. filename: string | null
  12204. contentType: string | null
  12205. size: number | null
  12206. url: string | null
  12207. blobPath: string | null
  12208. createdAt: Date | null
  12209. }
  12210. export type IdeaAttachmentCountAggregateOutputType = {
  12211. id: number
  12212. ideaId: number
  12213. workspaceId: number
  12214. filename: number
  12215. contentType: number
  12216. size: number
  12217. url: number
  12218. blobPath: number
  12219. createdAt: number
  12220. _all: number
  12221. }
  12222. export type IdeaAttachmentAvgAggregateInputType = {
  12223. size?: true
  12224. }
  12225. export type IdeaAttachmentSumAggregateInputType = {
  12226. size?: true
  12227. }
  12228. export type IdeaAttachmentMinAggregateInputType = {
  12229. id?: true
  12230. ideaId?: true
  12231. workspaceId?: true
  12232. filename?: true
  12233. contentType?: true
  12234. size?: true
  12235. url?: true
  12236. blobPath?: true
  12237. createdAt?: true
  12238. }
  12239. export type IdeaAttachmentMaxAggregateInputType = {
  12240. id?: true
  12241. ideaId?: true
  12242. workspaceId?: true
  12243. filename?: true
  12244. contentType?: true
  12245. size?: true
  12246. url?: true
  12247. blobPath?: true
  12248. createdAt?: true
  12249. }
  12250. export type IdeaAttachmentCountAggregateInputType = {
  12251. id?: true
  12252. ideaId?: true
  12253. workspaceId?: true
  12254. filename?: true
  12255. contentType?: true
  12256. size?: true
  12257. url?: true
  12258. blobPath?: true
  12259. createdAt?: true
  12260. _all?: true
  12261. }
  12262. export type IdeaAttachmentAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12263. /**
  12264. * Filter which IdeaAttachment to aggregate.
  12265. */
  12266. where?: IdeaAttachmentWhereInput
  12267. /**
  12268. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12269. *
  12270. * Determine the order of IdeaAttachments to fetch.
  12271. */
  12272. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12273. /**
  12274. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12275. *
  12276. * Sets the start position
  12277. */
  12278. cursor?: IdeaAttachmentWhereUniqueInput
  12279. /**
  12280. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12281. *
  12282. * Take `±n` IdeaAttachments from the position of the cursor.
  12283. */
  12284. take?: number
  12285. /**
  12286. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12287. *
  12288. * Skip the first `n` IdeaAttachments.
  12289. */
  12290. skip?: number
  12291. /**
  12292. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12293. *
  12294. * Count returned IdeaAttachments
  12295. **/
  12296. _count?: true | IdeaAttachmentCountAggregateInputType
  12297. /**
  12298. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12299. *
  12300. * Select which fields to average
  12301. **/
  12302. _avg?: IdeaAttachmentAvgAggregateInputType
  12303. /**
  12304. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12305. *
  12306. * Select which fields to sum
  12307. **/
  12308. _sum?: IdeaAttachmentSumAggregateInputType
  12309. /**
  12310. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12311. *
  12312. * Select which fields to find the minimum value
  12313. **/
  12314. _min?: IdeaAttachmentMinAggregateInputType
  12315. /**
  12316. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  12317. *
  12318. * Select which fields to find the maximum value
  12319. **/
  12320. _max?: IdeaAttachmentMaxAggregateInputType
  12321. }
  12322. export type GetIdeaAttachmentAggregateType<T extends IdeaAttachmentAggregateArgs> = {
  12323. [P in keyof T & keyof AggregateIdeaAttachment]: P extends '_count' | 'count'
  12324. ? T[P] extends true
  12325. ? number
  12326. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12327. : GetScalarType<T[P], AggregateIdeaAttachment[P]>
  12328. }
  12329. export type IdeaAttachmentGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12330. where?: IdeaAttachmentWhereInput
  12331. orderBy?: IdeaAttachmentOrderByWithAggregationInput | IdeaAttachmentOrderByWithAggregationInput[]
  12332. by: IdeaAttachmentScalarFieldEnum[] | IdeaAttachmentScalarFieldEnum
  12333. having?: IdeaAttachmentScalarWhereWithAggregatesInput
  12334. take?: number
  12335. skip?: number
  12336. _count?: IdeaAttachmentCountAggregateInputType | true
  12337. _avg?: IdeaAttachmentAvgAggregateInputType
  12338. _sum?: IdeaAttachmentSumAggregateInputType
  12339. _min?: IdeaAttachmentMinAggregateInputType
  12340. _max?: IdeaAttachmentMaxAggregateInputType
  12341. }
  12342. export type IdeaAttachmentGroupByOutputType = {
  12343. id: string
  12344. ideaId: string
  12345. workspaceId: string
  12346. filename: string
  12347. contentType: string
  12348. size: number
  12349. url: string
  12350. blobPath: string
  12351. createdAt: Date
  12352. _count: IdeaAttachmentCountAggregateOutputType | null
  12353. _avg: IdeaAttachmentAvgAggregateOutputType | null
  12354. _sum: IdeaAttachmentSumAggregateOutputType | null
  12355. _min: IdeaAttachmentMinAggregateOutputType | null
  12356. _max: IdeaAttachmentMaxAggregateOutputType | null
  12357. }
  12358. type GetIdeaAttachmentGroupByPayload<T extends IdeaAttachmentGroupByArgs> = Prisma.PrismaPromise<
  12359. Array<
  12360. PickEnumerable<IdeaAttachmentGroupByOutputType, T['by']> &
  12361. {
  12362. [P in ((keyof T) & (keyof IdeaAttachmentGroupByOutputType))]: P extends '_count'
  12363. ? T[P] extends boolean
  12364. ? number
  12365. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12366. : GetScalarType<T[P], IdeaAttachmentGroupByOutputType[P]>
  12367. }
  12368. >
  12369. >
  12370. export type IdeaAttachmentSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12371. id?: boolean
  12372. ideaId?: boolean
  12373. workspaceId?: boolean
  12374. filename?: boolean
  12375. contentType?: boolean
  12376. size?: boolean
  12377. url?: boolean
  12378. blobPath?: boolean
  12379. createdAt?: boolean
  12380. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12381. }, ExtArgs["result"]["ideaAttachment"]>
  12382. export type IdeaAttachmentSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12383. id?: boolean
  12384. ideaId?: boolean
  12385. workspaceId?: boolean
  12386. filename?: boolean
  12387. contentType?: boolean
  12388. size?: boolean
  12389. url?: boolean
  12390. blobPath?: boolean
  12391. createdAt?: boolean
  12392. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12393. }, ExtArgs["result"]["ideaAttachment"]>
  12394. export type IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  12395. id?: boolean
  12396. ideaId?: boolean
  12397. workspaceId?: boolean
  12398. filename?: boolean
  12399. contentType?: boolean
  12400. size?: boolean
  12401. url?: boolean
  12402. blobPath?: boolean
  12403. createdAt?: boolean
  12404. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12405. }, ExtArgs["result"]["ideaAttachment"]>
  12406. export type IdeaAttachmentSelectScalar = {
  12407. id?: boolean
  12408. ideaId?: boolean
  12409. workspaceId?: boolean
  12410. filename?: boolean
  12411. contentType?: boolean
  12412. size?: boolean
  12413. url?: boolean
  12414. blobPath?: boolean
  12415. createdAt?: boolean
  12416. }
  12417. export type IdeaAttachmentOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "filename" | "contentType" | "size" | "url" | "blobPath" | "createdAt", ExtArgs["result"]["ideaAttachment"]>
  12418. export type IdeaAttachmentInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12419. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12420. }
  12421. export type IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12422. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12423. }
  12424. export type IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12425. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  12426. }
  12427. export type $IdeaAttachmentPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12428. name: "IdeaAttachment"
  12429. objects: {
  12430. idea: Prisma.$IdeaPayload<ExtArgs>
  12431. }
  12432. scalars: $Extensions.GetPayloadResult<{
  12433. id: string
  12434. ideaId: string
  12435. workspaceId: string
  12436. filename: string
  12437. contentType: string
  12438. size: number
  12439. url: string
  12440. blobPath: string
  12441. createdAt: Date
  12442. }, ExtArgs["result"]["ideaAttachment"]>
  12443. composites: {}
  12444. }
  12445. type IdeaAttachmentGetPayload<S extends boolean | null | undefined | IdeaAttachmentDefaultArgs> = $Result.GetResult<Prisma.$IdeaAttachmentPayload, S>
  12446. type IdeaAttachmentCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  12447. Omit<IdeaAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  12448. select?: IdeaAttachmentCountAggregateInputType | true
  12449. }
  12450. export interface IdeaAttachmentDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  12451. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['IdeaAttachment'], meta: { name: 'IdeaAttachment' } }
  12452. /**
  12453. * Find zero or one IdeaAttachment that matches the filter.
  12454. * @param {IdeaAttachmentFindUniqueArgs} args - Arguments to find a IdeaAttachment
  12455. * @example
  12456. * // Get one IdeaAttachment
  12457. * const ideaAttachment = await prisma.ideaAttachment.findUnique({
  12458. * where: {
  12459. * // ... provide filter here
  12460. * }
  12461. * })
  12462. */
  12463. findUnique<T extends IdeaAttachmentFindUniqueArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12464. /**
  12465. * Find one IdeaAttachment that matches the filter or throw an error with `error.code='P2025'`
  12466. * if no matches were found.
  12467. * @param {IdeaAttachmentFindUniqueOrThrowArgs} args - Arguments to find a IdeaAttachment
  12468. * @example
  12469. * // Get one IdeaAttachment
  12470. * const ideaAttachment = await prisma.ideaAttachment.findUniqueOrThrow({
  12471. * where: {
  12472. * // ... provide filter here
  12473. * }
  12474. * })
  12475. */
  12476. findUniqueOrThrow<T extends IdeaAttachmentFindUniqueOrThrowArgs>(args: SelectSubset<T, IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12477. /**
  12478. * Find the first IdeaAttachment that matches the filter.
  12479. * Note, that providing `undefined` is treated as the value not being there.
  12480. * Read more here: https://pris.ly/d/null-undefined
  12481. * @param {IdeaAttachmentFindFirstArgs} args - Arguments to find a IdeaAttachment
  12482. * @example
  12483. * // Get one IdeaAttachment
  12484. * const ideaAttachment = await prisma.ideaAttachment.findFirst({
  12485. * where: {
  12486. * // ... provide filter here
  12487. * }
  12488. * })
  12489. */
  12490. findFirst<T extends IdeaAttachmentFindFirstArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  12491. /**
  12492. * Find the first IdeaAttachment that matches the filter or
  12493. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  12494. * Note, that providing `undefined` is treated as the value not being there.
  12495. * Read more here: https://pris.ly/d/null-undefined
  12496. * @param {IdeaAttachmentFindFirstOrThrowArgs} args - Arguments to find a IdeaAttachment
  12497. * @example
  12498. * // Get one IdeaAttachment
  12499. * const ideaAttachment = await prisma.ideaAttachment.findFirstOrThrow({
  12500. * where: {
  12501. * // ... provide filter here
  12502. * }
  12503. * })
  12504. */
  12505. findFirstOrThrow<T extends IdeaAttachmentFindFirstOrThrowArgs>(args?: SelectSubset<T, IdeaAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12506. /**
  12507. * Find zero or more IdeaAttachments that matches the filter.
  12508. * Note, that providing `undefined` is treated as the value not being there.
  12509. * Read more here: https://pris.ly/d/null-undefined
  12510. * @param {IdeaAttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
  12511. * @example
  12512. * // Get all IdeaAttachments
  12513. * const ideaAttachments = await prisma.ideaAttachment.findMany()
  12514. *
  12515. * // Get first 10 IdeaAttachments
  12516. * const ideaAttachments = await prisma.ideaAttachment.findMany({ take: 10 })
  12517. *
  12518. * // Only select the `id`
  12519. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.findMany({ select: { id: true } })
  12520. *
  12521. */
  12522. findMany<T extends IdeaAttachmentFindManyArgs>(args?: SelectSubset<T, IdeaAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  12523. /**
  12524. * Create a IdeaAttachment.
  12525. * @param {IdeaAttachmentCreateArgs} args - Arguments to create a IdeaAttachment.
  12526. * @example
  12527. * // Create one IdeaAttachment
  12528. * const IdeaAttachment = await prisma.ideaAttachment.create({
  12529. * data: {
  12530. * // ... data to create a IdeaAttachment
  12531. * }
  12532. * })
  12533. *
  12534. */
  12535. create<T extends IdeaAttachmentCreateArgs>(args: SelectSubset<T, IdeaAttachmentCreateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12536. /**
  12537. * Create many IdeaAttachments.
  12538. * @param {IdeaAttachmentCreateManyArgs} args - Arguments to create many IdeaAttachments.
  12539. * @example
  12540. * // Create many IdeaAttachments
  12541. * const ideaAttachment = await prisma.ideaAttachment.createMany({
  12542. * data: [
  12543. * // ... provide data here
  12544. * ]
  12545. * })
  12546. *
  12547. */
  12548. createMany<T extends IdeaAttachmentCreateManyArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12549. /**
  12550. * Create many IdeaAttachments and returns the data saved in the database.
  12551. * @param {IdeaAttachmentCreateManyAndReturnArgs} args - Arguments to create many IdeaAttachments.
  12552. * @example
  12553. * // Create many IdeaAttachments
  12554. * const ideaAttachment = await prisma.ideaAttachment.createManyAndReturn({
  12555. * data: [
  12556. * // ... provide data here
  12557. * ]
  12558. * })
  12559. *
  12560. * // Create many IdeaAttachments and only return the `id`
  12561. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.createManyAndReturn({
  12562. * select: { id: true },
  12563. * data: [
  12564. * // ... provide data here
  12565. * ]
  12566. * })
  12567. * Note, that providing `undefined` is treated as the value not being there.
  12568. * Read more here: https://pris.ly/d/null-undefined
  12569. *
  12570. */
  12571. createManyAndReturn<T extends IdeaAttachmentCreateManyAndReturnArgs>(args?: SelectSubset<T, IdeaAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  12572. /**
  12573. * Delete a IdeaAttachment.
  12574. * @param {IdeaAttachmentDeleteArgs} args - Arguments to delete one IdeaAttachment.
  12575. * @example
  12576. * // Delete one IdeaAttachment
  12577. * const IdeaAttachment = await prisma.ideaAttachment.delete({
  12578. * where: {
  12579. * // ... filter to delete one IdeaAttachment
  12580. * }
  12581. * })
  12582. *
  12583. */
  12584. delete<T extends IdeaAttachmentDeleteArgs>(args: SelectSubset<T, IdeaAttachmentDeleteArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12585. /**
  12586. * Update one IdeaAttachment.
  12587. * @param {IdeaAttachmentUpdateArgs} args - Arguments to update one IdeaAttachment.
  12588. * @example
  12589. * // Update one IdeaAttachment
  12590. * const ideaAttachment = await prisma.ideaAttachment.update({
  12591. * where: {
  12592. * // ... provide filter here
  12593. * },
  12594. * data: {
  12595. * // ... provide data here
  12596. * }
  12597. * })
  12598. *
  12599. */
  12600. update<T extends IdeaAttachmentUpdateArgs>(args: SelectSubset<T, IdeaAttachmentUpdateArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12601. /**
  12602. * Delete zero or more IdeaAttachments.
  12603. * @param {IdeaAttachmentDeleteManyArgs} args - Arguments to filter IdeaAttachments to delete.
  12604. * @example
  12605. * // Delete a few IdeaAttachments
  12606. * const { count } = await prisma.ideaAttachment.deleteMany({
  12607. * where: {
  12608. * // ... provide filter here
  12609. * }
  12610. * })
  12611. *
  12612. */
  12613. deleteMany<T extends IdeaAttachmentDeleteManyArgs>(args?: SelectSubset<T, IdeaAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12614. /**
  12615. * Update zero or more IdeaAttachments.
  12616. * Note, that providing `undefined` is treated as the value not being there.
  12617. * Read more here: https://pris.ly/d/null-undefined
  12618. * @param {IdeaAttachmentUpdateManyArgs} args - Arguments to update one or more rows.
  12619. * @example
  12620. * // Update many IdeaAttachments
  12621. * const ideaAttachment = await prisma.ideaAttachment.updateMany({
  12622. * where: {
  12623. * // ... provide filter here
  12624. * },
  12625. * data: {
  12626. * // ... provide data here
  12627. * }
  12628. * })
  12629. *
  12630. */
  12631. updateMany<T extends IdeaAttachmentUpdateManyArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  12632. /**
  12633. * Update zero or more IdeaAttachments and returns the data updated in the database.
  12634. * @param {IdeaAttachmentUpdateManyAndReturnArgs} args - Arguments to update many IdeaAttachments.
  12635. * @example
  12636. * // Update many IdeaAttachments
  12637. * const ideaAttachment = await prisma.ideaAttachment.updateManyAndReturn({
  12638. * where: {
  12639. * // ... provide filter here
  12640. * },
  12641. * data: [
  12642. * // ... provide data here
  12643. * ]
  12644. * })
  12645. *
  12646. * // Update zero or more IdeaAttachments and only return the `id`
  12647. * const ideaAttachmentWithIdOnly = await prisma.ideaAttachment.updateManyAndReturn({
  12648. * select: { id: true },
  12649. * where: {
  12650. * // ... provide filter here
  12651. * },
  12652. * data: [
  12653. * // ... provide data here
  12654. * ]
  12655. * })
  12656. * Note, that providing `undefined` is treated as the value not being there.
  12657. * Read more here: https://pris.ly/d/null-undefined
  12658. *
  12659. */
  12660. updateManyAndReturn<T extends IdeaAttachmentUpdateManyAndReturnArgs>(args: SelectSubset<T, IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  12661. /**
  12662. * Create or update one IdeaAttachment.
  12663. * @param {IdeaAttachmentUpsertArgs} args - Arguments to update or create a IdeaAttachment.
  12664. * @example
  12665. * // Update or create a IdeaAttachment
  12666. * const ideaAttachment = await prisma.ideaAttachment.upsert({
  12667. * create: {
  12668. * // ... data to create a IdeaAttachment
  12669. * },
  12670. * update: {
  12671. * // ... in case it already exists, update
  12672. * },
  12673. * where: {
  12674. * // ... the filter for the IdeaAttachment we want to update
  12675. * }
  12676. * })
  12677. */
  12678. upsert<T extends IdeaAttachmentUpsertArgs>(args: SelectSubset<T, IdeaAttachmentUpsertArgs<ExtArgs>>): Prisma__IdeaAttachmentClient<$Result.GetResult<Prisma.$IdeaAttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  12679. /**
  12680. * Count the number of IdeaAttachments.
  12681. * Note, that providing `undefined` is treated as the value not being there.
  12682. * Read more here: https://pris.ly/d/null-undefined
  12683. * @param {IdeaAttachmentCountArgs} args - Arguments to filter IdeaAttachments to count.
  12684. * @example
  12685. * // Count the number of IdeaAttachments
  12686. * const count = await prisma.ideaAttachment.count({
  12687. * where: {
  12688. * // ... the filter for the IdeaAttachments we want to count
  12689. * }
  12690. * })
  12691. **/
  12692. count<T extends IdeaAttachmentCountArgs>(
  12693. args?: Subset<T, IdeaAttachmentCountArgs>,
  12694. ): Prisma.PrismaPromise<
  12695. T extends $Utils.Record<'select', any>
  12696. ? T['select'] extends true
  12697. ? number
  12698. : GetScalarType<T['select'], IdeaAttachmentCountAggregateOutputType>
  12699. : number
  12700. >
  12701. /**
  12702. * Allows you to perform aggregations operations on a IdeaAttachment.
  12703. * Note, that providing `undefined` is treated as the value not being there.
  12704. * Read more here: https://pris.ly/d/null-undefined
  12705. * @param {IdeaAttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  12706. * @example
  12707. * // Ordered by age ascending
  12708. * // Where email contains prisma.io
  12709. * // Limited to the 10 users
  12710. * const aggregations = await prisma.user.aggregate({
  12711. * _avg: {
  12712. * age: true,
  12713. * },
  12714. * where: {
  12715. * email: {
  12716. * contains: "prisma.io",
  12717. * },
  12718. * },
  12719. * orderBy: {
  12720. * age: "asc",
  12721. * },
  12722. * take: 10,
  12723. * })
  12724. **/
  12725. aggregate<T extends IdeaAttachmentAggregateArgs>(args: Subset<T, IdeaAttachmentAggregateArgs>): Prisma.PrismaPromise<GetIdeaAttachmentAggregateType<T>>
  12726. /**
  12727. * Group by IdeaAttachment.
  12728. * Note, that providing `undefined` is treated as the value not being there.
  12729. * Read more here: https://pris.ly/d/null-undefined
  12730. * @param {IdeaAttachmentGroupByArgs} args - Group by arguments.
  12731. * @example
  12732. * // Group by city, order by createdAt, get count
  12733. * const result = await prisma.user.groupBy({
  12734. * by: ['city', 'createdAt'],
  12735. * orderBy: {
  12736. * createdAt: true
  12737. * },
  12738. * _count: {
  12739. * _all: true
  12740. * },
  12741. * })
  12742. *
  12743. **/
  12744. groupBy<
  12745. T extends IdeaAttachmentGroupByArgs,
  12746. HasSelectOrTake extends Or<
  12747. Extends<'skip', Keys<T>>,
  12748. Extends<'take', Keys<T>>
  12749. >,
  12750. OrderByArg extends True extends HasSelectOrTake
  12751. ? { orderBy: IdeaAttachmentGroupByArgs['orderBy'] }
  12752. : { orderBy?: IdeaAttachmentGroupByArgs['orderBy'] },
  12753. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  12754. ByFields extends MaybeTupleToUnion<T['by']>,
  12755. ByValid extends Has<ByFields, OrderFields>,
  12756. HavingFields extends GetHavingFields<T['having']>,
  12757. HavingValid extends Has<ByFields, HavingFields>,
  12758. ByEmpty extends T['by'] extends never[] ? True : False,
  12759. InputErrors extends ByEmpty extends True
  12760. ? `Error: "by" must not be empty.`
  12761. : HavingValid extends False
  12762. ? {
  12763. [P in HavingFields]: P extends ByFields
  12764. ? never
  12765. : P extends string
  12766. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  12767. : [
  12768. Error,
  12769. 'Field ',
  12770. P,
  12771. ` in "having" needs to be provided in "by"`,
  12772. ]
  12773. }[HavingFields]
  12774. : 'take' extends Keys<T>
  12775. ? 'orderBy' extends Keys<T>
  12776. ? ByValid extends True
  12777. ? {}
  12778. : {
  12779. [P in OrderFields]: P extends ByFields
  12780. ? never
  12781. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12782. }[OrderFields]
  12783. : 'Error: If you provide "take", you also need to provide "orderBy"'
  12784. : 'skip' extends Keys<T>
  12785. ? 'orderBy' extends Keys<T>
  12786. ? ByValid extends True
  12787. ? {}
  12788. : {
  12789. [P in OrderFields]: P extends ByFields
  12790. ? never
  12791. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12792. }[OrderFields]
  12793. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  12794. : ByValid extends True
  12795. ? {}
  12796. : {
  12797. [P in OrderFields]: P extends ByFields
  12798. ? never
  12799. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  12800. }[OrderFields]
  12801. >(args: SubsetIntersection<T, IdeaAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIdeaAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  12802. /**
  12803. * Fields of the IdeaAttachment model
  12804. */
  12805. readonly fields: IdeaAttachmentFieldRefs;
  12806. }
  12807. /**
  12808. * The delegate class that acts as a "Promise-like" for IdeaAttachment.
  12809. * Why is this prefixed with `Prisma__`?
  12810. * Because we want to prevent naming conflicts as mentioned in
  12811. * https://github.com/prisma/prisma-client-js/issues/707
  12812. */
  12813. export interface Prisma__IdeaAttachmentClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  12814. readonly [Symbol.toStringTag]: "PrismaPromise"
  12815. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  12816. /**
  12817. * Attaches callbacks for the resolution and/or rejection of the Promise.
  12818. * @param onfulfilled The callback to execute when the Promise is resolved.
  12819. * @param onrejected The callback to execute when the Promise is rejected.
  12820. * @returns A Promise for the completion of which ever callback is executed.
  12821. */
  12822. 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>
  12823. /**
  12824. * Attaches a callback for only the rejection of the Promise.
  12825. * @param onrejected The callback to execute when the Promise is rejected.
  12826. * @returns A Promise for the completion of the callback.
  12827. */
  12828. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  12829. /**
  12830. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  12831. * resolved value cannot be modified from the callback.
  12832. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  12833. * @returns A Promise for the completion of the callback.
  12834. */
  12835. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  12836. }
  12837. /**
  12838. * Fields of the IdeaAttachment model
  12839. */
  12840. interface IdeaAttachmentFieldRefs {
  12841. readonly id: FieldRef<"IdeaAttachment", 'String'>
  12842. readonly ideaId: FieldRef<"IdeaAttachment", 'String'>
  12843. readonly workspaceId: FieldRef<"IdeaAttachment", 'String'>
  12844. readonly filename: FieldRef<"IdeaAttachment", 'String'>
  12845. readonly contentType: FieldRef<"IdeaAttachment", 'String'>
  12846. readonly size: FieldRef<"IdeaAttachment", 'Int'>
  12847. readonly url: FieldRef<"IdeaAttachment", 'String'>
  12848. readonly blobPath: FieldRef<"IdeaAttachment", 'String'>
  12849. readonly createdAt: FieldRef<"IdeaAttachment", 'DateTime'>
  12850. }
  12851. // Custom InputTypes
  12852. /**
  12853. * IdeaAttachment findUnique
  12854. */
  12855. export type IdeaAttachmentFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12856. /**
  12857. * Select specific fields to fetch from the IdeaAttachment
  12858. */
  12859. select?: IdeaAttachmentSelect<ExtArgs> | null
  12860. /**
  12861. * Omit specific fields from the IdeaAttachment
  12862. */
  12863. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12864. /**
  12865. * Choose, which related nodes to fetch as well
  12866. */
  12867. include?: IdeaAttachmentInclude<ExtArgs> | null
  12868. /**
  12869. * Filter, which IdeaAttachment to fetch.
  12870. */
  12871. where: IdeaAttachmentWhereUniqueInput
  12872. }
  12873. /**
  12874. * IdeaAttachment findUniqueOrThrow
  12875. */
  12876. export type IdeaAttachmentFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12877. /**
  12878. * Select specific fields to fetch from the IdeaAttachment
  12879. */
  12880. select?: IdeaAttachmentSelect<ExtArgs> | null
  12881. /**
  12882. * Omit specific fields from the IdeaAttachment
  12883. */
  12884. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12885. /**
  12886. * Choose, which related nodes to fetch as well
  12887. */
  12888. include?: IdeaAttachmentInclude<ExtArgs> | null
  12889. /**
  12890. * Filter, which IdeaAttachment to fetch.
  12891. */
  12892. where: IdeaAttachmentWhereUniqueInput
  12893. }
  12894. /**
  12895. * IdeaAttachment findFirst
  12896. */
  12897. export type IdeaAttachmentFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12898. /**
  12899. * Select specific fields to fetch from the IdeaAttachment
  12900. */
  12901. select?: IdeaAttachmentSelect<ExtArgs> | null
  12902. /**
  12903. * Omit specific fields from the IdeaAttachment
  12904. */
  12905. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12906. /**
  12907. * Choose, which related nodes to fetch as well
  12908. */
  12909. include?: IdeaAttachmentInclude<ExtArgs> | null
  12910. /**
  12911. * Filter, which IdeaAttachment to fetch.
  12912. */
  12913. where?: IdeaAttachmentWhereInput
  12914. /**
  12915. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12916. *
  12917. * Determine the order of IdeaAttachments to fetch.
  12918. */
  12919. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12920. /**
  12921. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12922. *
  12923. * Sets the position for searching for IdeaAttachments.
  12924. */
  12925. cursor?: IdeaAttachmentWhereUniqueInput
  12926. /**
  12927. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12928. *
  12929. * Take `±n` IdeaAttachments from the position of the cursor.
  12930. */
  12931. take?: number
  12932. /**
  12933. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12934. *
  12935. * Skip the first `n` IdeaAttachments.
  12936. */
  12937. skip?: number
  12938. /**
  12939. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12940. *
  12941. * Filter by unique combinations of IdeaAttachments.
  12942. */
  12943. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12944. }
  12945. /**
  12946. * IdeaAttachment findFirstOrThrow
  12947. */
  12948. export type IdeaAttachmentFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  12949. /**
  12950. * Select specific fields to fetch from the IdeaAttachment
  12951. */
  12952. select?: IdeaAttachmentSelect<ExtArgs> | null
  12953. /**
  12954. * Omit specific fields from the IdeaAttachment
  12955. */
  12956. omit?: IdeaAttachmentOmit<ExtArgs> | null
  12957. /**
  12958. * Choose, which related nodes to fetch as well
  12959. */
  12960. include?: IdeaAttachmentInclude<ExtArgs> | null
  12961. /**
  12962. * Filter, which IdeaAttachment to fetch.
  12963. */
  12964. where?: IdeaAttachmentWhereInput
  12965. /**
  12966. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  12967. *
  12968. * Determine the order of IdeaAttachments to fetch.
  12969. */
  12970. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  12971. /**
  12972. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  12973. *
  12974. * Sets the position for searching for IdeaAttachments.
  12975. */
  12976. cursor?: IdeaAttachmentWhereUniqueInput
  12977. /**
  12978. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12979. *
  12980. * Take `±n` IdeaAttachments from the position of the cursor.
  12981. */
  12982. take?: number
  12983. /**
  12984. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  12985. *
  12986. * Skip the first `n` IdeaAttachments.
  12987. */
  12988. skip?: number
  12989. /**
  12990. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  12991. *
  12992. * Filter by unique combinations of IdeaAttachments.
  12993. */
  12994. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  12995. }
  12996. /**
  12997. * IdeaAttachment findMany
  12998. */
  12999. export type IdeaAttachmentFindManyArgs<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 IdeaAttachments to fetch.
  13014. */
  13015. where?: IdeaAttachmentWhereInput
  13016. /**
  13017. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13018. *
  13019. * Determine the order of IdeaAttachments to fetch.
  13020. */
  13021. orderBy?: IdeaAttachmentOrderByWithRelationInput | IdeaAttachmentOrderByWithRelationInput[]
  13022. /**
  13023. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13024. *
  13025. * Sets the position for listing IdeaAttachments.
  13026. */
  13027. cursor?: IdeaAttachmentWhereUniqueInput
  13028. /**
  13029. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13030. *
  13031. * Take `±n` IdeaAttachments from the position of the cursor.
  13032. */
  13033. take?: number
  13034. /**
  13035. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13036. *
  13037. * Skip the first `n` IdeaAttachments.
  13038. */
  13039. skip?: number
  13040. distinct?: IdeaAttachmentScalarFieldEnum | IdeaAttachmentScalarFieldEnum[]
  13041. }
  13042. /**
  13043. * IdeaAttachment create
  13044. */
  13045. export type IdeaAttachmentCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13046. /**
  13047. * Select specific fields to fetch from the IdeaAttachment
  13048. */
  13049. select?: IdeaAttachmentSelect<ExtArgs> | null
  13050. /**
  13051. * Omit specific fields from the IdeaAttachment
  13052. */
  13053. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13054. /**
  13055. * Choose, which related nodes to fetch as well
  13056. */
  13057. include?: IdeaAttachmentInclude<ExtArgs> | null
  13058. /**
  13059. * The data needed to create a IdeaAttachment.
  13060. */
  13061. data: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  13062. }
  13063. /**
  13064. * IdeaAttachment createMany
  13065. */
  13066. export type IdeaAttachmentCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13067. /**
  13068. * The data used to create many IdeaAttachments.
  13069. */
  13070. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  13071. skipDuplicates?: boolean
  13072. }
  13073. /**
  13074. * IdeaAttachment createManyAndReturn
  13075. */
  13076. export type IdeaAttachmentCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13077. /**
  13078. * Select specific fields to fetch from the IdeaAttachment
  13079. */
  13080. select?: IdeaAttachmentSelectCreateManyAndReturn<ExtArgs> | null
  13081. /**
  13082. * Omit specific fields from the IdeaAttachment
  13083. */
  13084. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13085. /**
  13086. * The data used to create many IdeaAttachments.
  13087. */
  13088. data: IdeaAttachmentCreateManyInput | IdeaAttachmentCreateManyInput[]
  13089. skipDuplicates?: boolean
  13090. /**
  13091. * Choose, which related nodes to fetch as well
  13092. */
  13093. include?: IdeaAttachmentIncludeCreateManyAndReturn<ExtArgs> | null
  13094. }
  13095. /**
  13096. * IdeaAttachment update
  13097. */
  13098. export type IdeaAttachmentUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13099. /**
  13100. * Select specific fields to fetch from the IdeaAttachment
  13101. */
  13102. select?: IdeaAttachmentSelect<ExtArgs> | null
  13103. /**
  13104. * Omit specific fields from the IdeaAttachment
  13105. */
  13106. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13107. /**
  13108. * Choose, which related nodes to fetch as well
  13109. */
  13110. include?: IdeaAttachmentInclude<ExtArgs> | null
  13111. /**
  13112. * The data needed to update a IdeaAttachment.
  13113. */
  13114. data: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  13115. /**
  13116. * Choose, which IdeaAttachment to update.
  13117. */
  13118. where: IdeaAttachmentWhereUniqueInput
  13119. }
  13120. /**
  13121. * IdeaAttachment updateMany
  13122. */
  13123. export type IdeaAttachmentUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13124. /**
  13125. * The data used to update IdeaAttachments.
  13126. */
  13127. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  13128. /**
  13129. * Filter which IdeaAttachments to update
  13130. */
  13131. where?: IdeaAttachmentWhereInput
  13132. /**
  13133. * Limit how many IdeaAttachments to update.
  13134. */
  13135. limit?: number
  13136. }
  13137. /**
  13138. * IdeaAttachment updateManyAndReturn
  13139. */
  13140. export type IdeaAttachmentUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13141. /**
  13142. * Select specific fields to fetch from the IdeaAttachment
  13143. */
  13144. select?: IdeaAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
  13145. /**
  13146. * Omit specific fields from the IdeaAttachment
  13147. */
  13148. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13149. /**
  13150. * The data used to update IdeaAttachments.
  13151. */
  13152. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyInput>
  13153. /**
  13154. * Filter which IdeaAttachments to update
  13155. */
  13156. where?: IdeaAttachmentWhereInput
  13157. /**
  13158. * Limit how many IdeaAttachments to update.
  13159. */
  13160. limit?: number
  13161. /**
  13162. * Choose, which related nodes to fetch as well
  13163. */
  13164. include?: IdeaAttachmentIncludeUpdateManyAndReturn<ExtArgs> | null
  13165. }
  13166. /**
  13167. * IdeaAttachment upsert
  13168. */
  13169. export type IdeaAttachmentUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13170. /**
  13171. * Select specific fields to fetch from the IdeaAttachment
  13172. */
  13173. select?: IdeaAttachmentSelect<ExtArgs> | null
  13174. /**
  13175. * Omit specific fields from the IdeaAttachment
  13176. */
  13177. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13178. /**
  13179. * Choose, which related nodes to fetch as well
  13180. */
  13181. include?: IdeaAttachmentInclude<ExtArgs> | null
  13182. /**
  13183. * The filter to search for the IdeaAttachment to update in case it exists.
  13184. */
  13185. where: IdeaAttachmentWhereUniqueInput
  13186. /**
  13187. * In case the IdeaAttachment found by the `where` argument doesn't exist, create a new IdeaAttachment with this data.
  13188. */
  13189. create: XOR<IdeaAttachmentCreateInput, IdeaAttachmentUncheckedCreateInput>
  13190. /**
  13191. * In case the IdeaAttachment was found with the provided `where` argument, update it with this data.
  13192. */
  13193. update: XOR<IdeaAttachmentUpdateInput, IdeaAttachmentUncheckedUpdateInput>
  13194. }
  13195. /**
  13196. * IdeaAttachment delete
  13197. */
  13198. export type IdeaAttachmentDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13199. /**
  13200. * Select specific fields to fetch from the IdeaAttachment
  13201. */
  13202. select?: IdeaAttachmentSelect<ExtArgs> | null
  13203. /**
  13204. * Omit specific fields from the IdeaAttachment
  13205. */
  13206. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13207. /**
  13208. * Choose, which related nodes to fetch as well
  13209. */
  13210. include?: IdeaAttachmentInclude<ExtArgs> | null
  13211. /**
  13212. * Filter which IdeaAttachment to delete.
  13213. */
  13214. where: IdeaAttachmentWhereUniqueInput
  13215. }
  13216. /**
  13217. * IdeaAttachment deleteMany
  13218. */
  13219. export type IdeaAttachmentDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13220. /**
  13221. * Filter which IdeaAttachments to delete
  13222. */
  13223. where?: IdeaAttachmentWhereInput
  13224. /**
  13225. * Limit how many IdeaAttachments to delete.
  13226. */
  13227. limit?: number
  13228. }
  13229. /**
  13230. * IdeaAttachment without action
  13231. */
  13232. export type IdeaAttachmentDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13233. /**
  13234. * Select specific fields to fetch from the IdeaAttachment
  13235. */
  13236. select?: IdeaAttachmentSelect<ExtArgs> | null
  13237. /**
  13238. * Omit specific fields from the IdeaAttachment
  13239. */
  13240. omit?: IdeaAttachmentOmit<ExtArgs> | null
  13241. /**
  13242. * Choose, which related nodes to fetch as well
  13243. */
  13244. include?: IdeaAttachmentInclude<ExtArgs> | null
  13245. }
  13246. /**
  13247. * Model QualificationQuestion
  13248. */
  13249. export type AggregateQualificationQuestion = {
  13250. _count: QualificationQuestionCountAggregateOutputType | null
  13251. _min: QualificationQuestionMinAggregateOutputType | null
  13252. _max: QualificationQuestionMaxAggregateOutputType | null
  13253. }
  13254. export type QualificationQuestionMinAggregateOutputType = {
  13255. id: string | null
  13256. ideaId: string | null
  13257. workspaceId: string | null
  13258. questionText: string | null
  13259. responseToken: string | null
  13260. askedAt: Date | null
  13261. responseText: string | null
  13262. answeredAt: Date | null
  13263. }
  13264. export type QualificationQuestionMaxAggregateOutputType = {
  13265. id: string | null
  13266. ideaId: string | null
  13267. workspaceId: string | null
  13268. questionText: string | null
  13269. responseToken: string | null
  13270. askedAt: Date | null
  13271. responseText: string | null
  13272. answeredAt: Date | null
  13273. }
  13274. export type QualificationQuestionCountAggregateOutputType = {
  13275. id: number
  13276. ideaId: number
  13277. workspaceId: number
  13278. questionText: number
  13279. responseToken: number
  13280. askedAt: number
  13281. responseText: number
  13282. answeredAt: number
  13283. _all: number
  13284. }
  13285. export type QualificationQuestionMinAggregateInputType = {
  13286. id?: true
  13287. ideaId?: true
  13288. workspaceId?: true
  13289. questionText?: true
  13290. responseToken?: true
  13291. askedAt?: true
  13292. responseText?: true
  13293. answeredAt?: true
  13294. }
  13295. export type QualificationQuestionMaxAggregateInputType = {
  13296. id?: true
  13297. ideaId?: true
  13298. workspaceId?: true
  13299. questionText?: true
  13300. responseToken?: true
  13301. askedAt?: true
  13302. responseText?: true
  13303. answeredAt?: true
  13304. }
  13305. export type QualificationQuestionCountAggregateInputType = {
  13306. id?: true
  13307. ideaId?: true
  13308. workspaceId?: true
  13309. questionText?: true
  13310. responseToken?: true
  13311. askedAt?: true
  13312. responseText?: true
  13313. answeredAt?: true
  13314. _all?: true
  13315. }
  13316. export type QualificationQuestionAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13317. /**
  13318. * Filter which QualificationQuestion to aggregate.
  13319. */
  13320. where?: QualificationQuestionWhereInput
  13321. /**
  13322. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13323. *
  13324. * Determine the order of QualificationQuestions to fetch.
  13325. */
  13326. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13327. /**
  13328. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13329. *
  13330. * Sets the start position
  13331. */
  13332. cursor?: QualificationQuestionWhereUniqueInput
  13333. /**
  13334. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13335. *
  13336. * Take `±n` QualificationQuestions from the position of the cursor.
  13337. */
  13338. take?: number
  13339. /**
  13340. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13341. *
  13342. * Skip the first `n` QualificationQuestions.
  13343. */
  13344. skip?: number
  13345. /**
  13346. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13347. *
  13348. * Count returned QualificationQuestions
  13349. **/
  13350. _count?: true | QualificationQuestionCountAggregateInputType
  13351. /**
  13352. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13353. *
  13354. * Select which fields to find the minimum value
  13355. **/
  13356. _min?: QualificationQuestionMinAggregateInputType
  13357. /**
  13358. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  13359. *
  13360. * Select which fields to find the maximum value
  13361. **/
  13362. _max?: QualificationQuestionMaxAggregateInputType
  13363. }
  13364. export type GetQualificationQuestionAggregateType<T extends QualificationQuestionAggregateArgs> = {
  13365. [P in keyof T & keyof AggregateQualificationQuestion]: P extends '_count' | 'count'
  13366. ? T[P] extends true
  13367. ? number
  13368. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13369. : GetScalarType<T[P], AggregateQualificationQuestion[P]>
  13370. }
  13371. export type QualificationQuestionGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13372. where?: QualificationQuestionWhereInput
  13373. orderBy?: QualificationQuestionOrderByWithAggregationInput | QualificationQuestionOrderByWithAggregationInput[]
  13374. by: QualificationQuestionScalarFieldEnum[] | QualificationQuestionScalarFieldEnum
  13375. having?: QualificationQuestionScalarWhereWithAggregatesInput
  13376. take?: number
  13377. skip?: number
  13378. _count?: QualificationQuestionCountAggregateInputType | true
  13379. _min?: QualificationQuestionMinAggregateInputType
  13380. _max?: QualificationQuestionMaxAggregateInputType
  13381. }
  13382. export type QualificationQuestionGroupByOutputType = {
  13383. id: string
  13384. ideaId: string
  13385. workspaceId: string
  13386. questionText: string
  13387. responseToken: string
  13388. askedAt: Date
  13389. responseText: string | null
  13390. answeredAt: Date | null
  13391. _count: QualificationQuestionCountAggregateOutputType | null
  13392. _min: QualificationQuestionMinAggregateOutputType | null
  13393. _max: QualificationQuestionMaxAggregateOutputType | null
  13394. }
  13395. type GetQualificationQuestionGroupByPayload<T extends QualificationQuestionGroupByArgs> = Prisma.PrismaPromise<
  13396. Array<
  13397. PickEnumerable<QualificationQuestionGroupByOutputType, T['by']> &
  13398. {
  13399. [P in ((keyof T) & (keyof QualificationQuestionGroupByOutputType))]: P extends '_count'
  13400. ? T[P] extends boolean
  13401. ? number
  13402. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13403. : GetScalarType<T[P], QualificationQuestionGroupByOutputType[P]>
  13404. }
  13405. >
  13406. >
  13407. export type QualificationQuestionSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13408. id?: boolean
  13409. ideaId?: boolean
  13410. workspaceId?: boolean
  13411. questionText?: boolean
  13412. responseToken?: boolean
  13413. askedAt?: boolean
  13414. responseText?: boolean
  13415. answeredAt?: boolean
  13416. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13417. }, ExtArgs["result"]["qualificationQuestion"]>
  13418. export type QualificationQuestionSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13419. id?: boolean
  13420. ideaId?: boolean
  13421. workspaceId?: boolean
  13422. questionText?: boolean
  13423. responseToken?: boolean
  13424. askedAt?: boolean
  13425. responseText?: boolean
  13426. answeredAt?: boolean
  13427. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13428. }, ExtArgs["result"]["qualificationQuestion"]>
  13429. export type QualificationQuestionSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  13430. id?: boolean
  13431. ideaId?: boolean
  13432. workspaceId?: boolean
  13433. questionText?: boolean
  13434. responseToken?: boolean
  13435. askedAt?: boolean
  13436. responseText?: boolean
  13437. answeredAt?: boolean
  13438. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13439. }, ExtArgs["result"]["qualificationQuestion"]>
  13440. export type QualificationQuestionSelectScalar = {
  13441. id?: boolean
  13442. ideaId?: boolean
  13443. workspaceId?: boolean
  13444. questionText?: boolean
  13445. responseToken?: boolean
  13446. askedAt?: boolean
  13447. responseText?: boolean
  13448. answeredAt?: boolean
  13449. }
  13450. export type QualificationQuestionOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "ideaId" | "workspaceId" | "questionText" | "responseToken" | "askedAt" | "responseText" | "answeredAt", ExtArgs["result"]["qualificationQuestion"]>
  13451. export type QualificationQuestionInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13452. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13453. }
  13454. export type QualificationQuestionIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13455. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13456. }
  13457. export type QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13458. idea?: boolean | IdeaDefaultArgs<ExtArgs>
  13459. }
  13460. export type $QualificationQuestionPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13461. name: "QualificationQuestion"
  13462. objects: {
  13463. idea: Prisma.$IdeaPayload<ExtArgs>
  13464. }
  13465. scalars: $Extensions.GetPayloadResult<{
  13466. id: string
  13467. ideaId: string
  13468. workspaceId: string
  13469. questionText: string
  13470. responseToken: string
  13471. askedAt: Date
  13472. responseText: string | null
  13473. answeredAt: Date | null
  13474. }, ExtArgs["result"]["qualificationQuestion"]>
  13475. composites: {}
  13476. }
  13477. type QualificationQuestionGetPayload<S extends boolean | null | undefined | QualificationQuestionDefaultArgs> = $Result.GetResult<Prisma.$QualificationQuestionPayload, S>
  13478. type QualificationQuestionCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  13479. Omit<QualificationQuestionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  13480. select?: QualificationQuestionCountAggregateInputType | true
  13481. }
  13482. export interface QualificationQuestionDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  13483. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['QualificationQuestion'], meta: { name: 'QualificationQuestion' } }
  13484. /**
  13485. * Find zero or one QualificationQuestion that matches the filter.
  13486. * @param {QualificationQuestionFindUniqueArgs} args - Arguments to find a QualificationQuestion
  13487. * @example
  13488. * // Get one QualificationQuestion
  13489. * const qualificationQuestion = await prisma.qualificationQuestion.findUnique({
  13490. * where: {
  13491. * // ... provide filter here
  13492. * }
  13493. * })
  13494. */
  13495. findUnique<T extends QualificationQuestionFindUniqueArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13496. /**
  13497. * Find one QualificationQuestion that matches the filter or throw an error with `error.code='P2025'`
  13498. * if no matches were found.
  13499. * @param {QualificationQuestionFindUniqueOrThrowArgs} args - Arguments to find a QualificationQuestion
  13500. * @example
  13501. * // Get one QualificationQuestion
  13502. * const qualificationQuestion = await prisma.qualificationQuestion.findUniqueOrThrow({
  13503. * where: {
  13504. * // ... provide filter here
  13505. * }
  13506. * })
  13507. */
  13508. findUniqueOrThrow<T extends QualificationQuestionFindUniqueOrThrowArgs>(args: SelectSubset<T, QualificationQuestionFindUniqueOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13509. /**
  13510. * Find the first QualificationQuestion that matches the filter.
  13511. * Note, that providing `undefined` is treated as the value not being there.
  13512. * Read more here: https://pris.ly/d/null-undefined
  13513. * @param {QualificationQuestionFindFirstArgs} args - Arguments to find a QualificationQuestion
  13514. * @example
  13515. * // Get one QualificationQuestion
  13516. * const qualificationQuestion = await prisma.qualificationQuestion.findFirst({
  13517. * where: {
  13518. * // ... provide filter here
  13519. * }
  13520. * })
  13521. */
  13522. findFirst<T extends QualificationQuestionFindFirstArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  13523. /**
  13524. * Find the first QualificationQuestion that matches the filter or
  13525. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  13526. * Note, that providing `undefined` is treated as the value not being there.
  13527. * Read more here: https://pris.ly/d/null-undefined
  13528. * @param {QualificationQuestionFindFirstOrThrowArgs} args - Arguments to find a QualificationQuestion
  13529. * @example
  13530. * // Get one QualificationQuestion
  13531. * const qualificationQuestion = await prisma.qualificationQuestion.findFirstOrThrow({
  13532. * where: {
  13533. * // ... provide filter here
  13534. * }
  13535. * })
  13536. */
  13537. findFirstOrThrow<T extends QualificationQuestionFindFirstOrThrowArgs>(args?: SelectSubset<T, QualificationQuestionFindFirstOrThrowArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13538. /**
  13539. * Find zero or more QualificationQuestions that matches the filter.
  13540. * Note, that providing `undefined` is treated as the value not being there.
  13541. * Read more here: https://pris.ly/d/null-undefined
  13542. * @param {QualificationQuestionFindManyArgs} args - Arguments to filter and select certain fields only.
  13543. * @example
  13544. * // Get all QualificationQuestions
  13545. * const qualificationQuestions = await prisma.qualificationQuestion.findMany()
  13546. *
  13547. * // Get first 10 QualificationQuestions
  13548. * const qualificationQuestions = await prisma.qualificationQuestion.findMany({ take: 10 })
  13549. *
  13550. * // Only select the `id`
  13551. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.findMany({ select: { id: true } })
  13552. *
  13553. */
  13554. findMany<T extends QualificationQuestionFindManyArgs>(args?: SelectSubset<T, QualificationQuestionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  13555. /**
  13556. * Create a QualificationQuestion.
  13557. * @param {QualificationQuestionCreateArgs} args - Arguments to create a QualificationQuestion.
  13558. * @example
  13559. * // Create one QualificationQuestion
  13560. * const QualificationQuestion = await prisma.qualificationQuestion.create({
  13561. * data: {
  13562. * // ... data to create a QualificationQuestion
  13563. * }
  13564. * })
  13565. *
  13566. */
  13567. create<T extends QualificationQuestionCreateArgs>(args: SelectSubset<T, QualificationQuestionCreateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13568. /**
  13569. * Create many QualificationQuestions.
  13570. * @param {QualificationQuestionCreateManyArgs} args - Arguments to create many QualificationQuestions.
  13571. * @example
  13572. * // Create many QualificationQuestions
  13573. * const qualificationQuestion = await prisma.qualificationQuestion.createMany({
  13574. * data: [
  13575. * // ... provide data here
  13576. * ]
  13577. * })
  13578. *
  13579. */
  13580. createMany<T extends QualificationQuestionCreateManyArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13581. /**
  13582. * Create many QualificationQuestions and returns the data saved in the database.
  13583. * @param {QualificationQuestionCreateManyAndReturnArgs} args - Arguments to create many QualificationQuestions.
  13584. * @example
  13585. * // Create many QualificationQuestions
  13586. * const qualificationQuestion = await prisma.qualificationQuestion.createManyAndReturn({
  13587. * data: [
  13588. * // ... provide data here
  13589. * ]
  13590. * })
  13591. *
  13592. * // Create many QualificationQuestions and only return the `id`
  13593. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.createManyAndReturn({
  13594. * select: { id: true },
  13595. * data: [
  13596. * // ... provide data here
  13597. * ]
  13598. * })
  13599. * Note, that providing `undefined` is treated as the value not being there.
  13600. * Read more here: https://pris.ly/d/null-undefined
  13601. *
  13602. */
  13603. createManyAndReturn<T extends QualificationQuestionCreateManyAndReturnArgs>(args?: SelectSubset<T, QualificationQuestionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  13604. /**
  13605. * Delete a QualificationQuestion.
  13606. * @param {QualificationQuestionDeleteArgs} args - Arguments to delete one QualificationQuestion.
  13607. * @example
  13608. * // Delete one QualificationQuestion
  13609. * const QualificationQuestion = await prisma.qualificationQuestion.delete({
  13610. * where: {
  13611. * // ... filter to delete one QualificationQuestion
  13612. * }
  13613. * })
  13614. *
  13615. */
  13616. delete<T extends QualificationQuestionDeleteArgs>(args: SelectSubset<T, QualificationQuestionDeleteArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13617. /**
  13618. * Update one QualificationQuestion.
  13619. * @param {QualificationQuestionUpdateArgs} args - Arguments to update one QualificationQuestion.
  13620. * @example
  13621. * // Update one QualificationQuestion
  13622. * const qualificationQuestion = await prisma.qualificationQuestion.update({
  13623. * where: {
  13624. * // ... provide filter here
  13625. * },
  13626. * data: {
  13627. * // ... provide data here
  13628. * }
  13629. * })
  13630. *
  13631. */
  13632. update<T extends QualificationQuestionUpdateArgs>(args: SelectSubset<T, QualificationQuestionUpdateArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13633. /**
  13634. * Delete zero or more QualificationQuestions.
  13635. * @param {QualificationQuestionDeleteManyArgs} args - Arguments to filter QualificationQuestions to delete.
  13636. * @example
  13637. * // Delete a few QualificationQuestions
  13638. * const { count } = await prisma.qualificationQuestion.deleteMany({
  13639. * where: {
  13640. * // ... provide filter here
  13641. * }
  13642. * })
  13643. *
  13644. */
  13645. deleteMany<T extends QualificationQuestionDeleteManyArgs>(args?: SelectSubset<T, QualificationQuestionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13646. /**
  13647. * Update zero or more QualificationQuestions.
  13648. * Note, that providing `undefined` is treated as the value not being there.
  13649. * Read more here: https://pris.ly/d/null-undefined
  13650. * @param {QualificationQuestionUpdateManyArgs} args - Arguments to update one or more rows.
  13651. * @example
  13652. * // Update many QualificationQuestions
  13653. * const qualificationQuestion = await prisma.qualificationQuestion.updateMany({
  13654. * where: {
  13655. * // ... provide filter here
  13656. * },
  13657. * data: {
  13658. * // ... provide data here
  13659. * }
  13660. * })
  13661. *
  13662. */
  13663. updateMany<T extends QualificationQuestionUpdateManyArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  13664. /**
  13665. * Update zero or more QualificationQuestions and returns the data updated in the database.
  13666. * @param {QualificationQuestionUpdateManyAndReturnArgs} args - Arguments to update many QualificationQuestions.
  13667. * @example
  13668. * // Update many QualificationQuestions
  13669. * const qualificationQuestion = await prisma.qualificationQuestion.updateManyAndReturn({
  13670. * where: {
  13671. * // ... provide filter here
  13672. * },
  13673. * data: [
  13674. * // ... provide data here
  13675. * ]
  13676. * })
  13677. *
  13678. * // Update zero or more QualificationQuestions and only return the `id`
  13679. * const qualificationQuestionWithIdOnly = await prisma.qualificationQuestion.updateManyAndReturn({
  13680. * select: { id: true },
  13681. * where: {
  13682. * // ... provide filter here
  13683. * },
  13684. * data: [
  13685. * // ... provide data here
  13686. * ]
  13687. * })
  13688. * Note, that providing `undefined` is treated as the value not being there.
  13689. * Read more here: https://pris.ly/d/null-undefined
  13690. *
  13691. */
  13692. updateManyAndReturn<T extends QualificationQuestionUpdateManyAndReturnArgs>(args: SelectSubset<T, QualificationQuestionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  13693. /**
  13694. * Create or update one QualificationQuestion.
  13695. * @param {QualificationQuestionUpsertArgs} args - Arguments to update or create a QualificationQuestion.
  13696. * @example
  13697. * // Update or create a QualificationQuestion
  13698. * const qualificationQuestion = await prisma.qualificationQuestion.upsert({
  13699. * create: {
  13700. * // ... data to create a QualificationQuestion
  13701. * },
  13702. * update: {
  13703. * // ... in case it already exists, update
  13704. * },
  13705. * where: {
  13706. * // ... the filter for the QualificationQuestion we want to update
  13707. * }
  13708. * })
  13709. */
  13710. upsert<T extends QualificationQuestionUpsertArgs>(args: SelectSubset<T, QualificationQuestionUpsertArgs<ExtArgs>>): Prisma__QualificationQuestionClient<$Result.GetResult<Prisma.$QualificationQuestionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  13711. /**
  13712. * Count the number of QualificationQuestions.
  13713. * Note, that providing `undefined` is treated as the value not being there.
  13714. * Read more here: https://pris.ly/d/null-undefined
  13715. * @param {QualificationQuestionCountArgs} args - Arguments to filter QualificationQuestions to count.
  13716. * @example
  13717. * // Count the number of QualificationQuestions
  13718. * const count = await prisma.qualificationQuestion.count({
  13719. * where: {
  13720. * // ... the filter for the QualificationQuestions we want to count
  13721. * }
  13722. * })
  13723. **/
  13724. count<T extends QualificationQuestionCountArgs>(
  13725. args?: Subset<T, QualificationQuestionCountArgs>,
  13726. ): Prisma.PrismaPromise<
  13727. T extends $Utils.Record<'select', any>
  13728. ? T['select'] extends true
  13729. ? number
  13730. : GetScalarType<T['select'], QualificationQuestionCountAggregateOutputType>
  13731. : number
  13732. >
  13733. /**
  13734. * Allows you to perform aggregations operations on a QualificationQuestion.
  13735. * Note, that providing `undefined` is treated as the value not being there.
  13736. * Read more here: https://pris.ly/d/null-undefined
  13737. * @param {QualificationQuestionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  13738. * @example
  13739. * // Ordered by age ascending
  13740. * // Where email contains prisma.io
  13741. * // Limited to the 10 users
  13742. * const aggregations = await prisma.user.aggregate({
  13743. * _avg: {
  13744. * age: true,
  13745. * },
  13746. * where: {
  13747. * email: {
  13748. * contains: "prisma.io",
  13749. * },
  13750. * },
  13751. * orderBy: {
  13752. * age: "asc",
  13753. * },
  13754. * take: 10,
  13755. * })
  13756. **/
  13757. aggregate<T extends QualificationQuestionAggregateArgs>(args: Subset<T, QualificationQuestionAggregateArgs>): Prisma.PrismaPromise<GetQualificationQuestionAggregateType<T>>
  13758. /**
  13759. * Group by QualificationQuestion.
  13760. * Note, that providing `undefined` is treated as the value not being there.
  13761. * Read more here: https://pris.ly/d/null-undefined
  13762. * @param {QualificationQuestionGroupByArgs} args - Group by arguments.
  13763. * @example
  13764. * // Group by city, order by createdAt, get count
  13765. * const result = await prisma.user.groupBy({
  13766. * by: ['city', 'createdAt'],
  13767. * orderBy: {
  13768. * createdAt: true
  13769. * },
  13770. * _count: {
  13771. * _all: true
  13772. * },
  13773. * })
  13774. *
  13775. **/
  13776. groupBy<
  13777. T extends QualificationQuestionGroupByArgs,
  13778. HasSelectOrTake extends Or<
  13779. Extends<'skip', Keys<T>>,
  13780. Extends<'take', Keys<T>>
  13781. >,
  13782. OrderByArg extends True extends HasSelectOrTake
  13783. ? { orderBy: QualificationQuestionGroupByArgs['orderBy'] }
  13784. : { orderBy?: QualificationQuestionGroupByArgs['orderBy'] },
  13785. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  13786. ByFields extends MaybeTupleToUnion<T['by']>,
  13787. ByValid extends Has<ByFields, OrderFields>,
  13788. HavingFields extends GetHavingFields<T['having']>,
  13789. HavingValid extends Has<ByFields, HavingFields>,
  13790. ByEmpty extends T['by'] extends never[] ? True : False,
  13791. InputErrors extends ByEmpty extends True
  13792. ? `Error: "by" must not be empty.`
  13793. : HavingValid extends False
  13794. ? {
  13795. [P in HavingFields]: P extends ByFields
  13796. ? never
  13797. : P extends string
  13798. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  13799. : [
  13800. Error,
  13801. 'Field ',
  13802. P,
  13803. ` in "having" needs to be provided in "by"`,
  13804. ]
  13805. }[HavingFields]
  13806. : 'take' extends Keys<T>
  13807. ? 'orderBy' extends Keys<T>
  13808. ? ByValid extends True
  13809. ? {}
  13810. : {
  13811. [P in OrderFields]: P extends ByFields
  13812. ? never
  13813. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13814. }[OrderFields]
  13815. : 'Error: If you provide "take", you also need to provide "orderBy"'
  13816. : 'skip' extends Keys<T>
  13817. ? 'orderBy' extends Keys<T>
  13818. ? ByValid extends True
  13819. ? {}
  13820. : {
  13821. [P in OrderFields]: P extends ByFields
  13822. ? never
  13823. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13824. }[OrderFields]
  13825. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  13826. : ByValid extends True
  13827. ? {}
  13828. : {
  13829. [P in OrderFields]: P extends ByFields
  13830. ? never
  13831. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  13832. }[OrderFields]
  13833. >(args: SubsetIntersection<T, QualificationQuestionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetQualificationQuestionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  13834. /**
  13835. * Fields of the QualificationQuestion model
  13836. */
  13837. readonly fields: QualificationQuestionFieldRefs;
  13838. }
  13839. /**
  13840. * The delegate class that acts as a "Promise-like" for QualificationQuestion.
  13841. * Why is this prefixed with `Prisma__`?
  13842. * Because we want to prevent naming conflicts as mentioned in
  13843. * https://github.com/prisma/prisma-client-js/issues/707
  13844. */
  13845. export interface Prisma__QualificationQuestionClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  13846. readonly [Symbol.toStringTag]: "PrismaPromise"
  13847. idea<T extends IdeaDefaultArgs<ExtArgs> = {}>(args?: Subset<T, IdeaDefaultArgs<ExtArgs>>): Prisma__IdeaClient<$Result.GetResult<Prisma.$IdeaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  13848. /**
  13849. * Attaches callbacks for the resolution and/or rejection of the Promise.
  13850. * @param onfulfilled The callback to execute when the Promise is resolved.
  13851. * @param onrejected The callback to execute when the Promise is rejected.
  13852. * @returns A Promise for the completion of which ever callback is executed.
  13853. */
  13854. 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>
  13855. /**
  13856. * Attaches a callback for only the rejection of the Promise.
  13857. * @param onrejected The callback to execute when the Promise is rejected.
  13858. * @returns A Promise for the completion of the callback.
  13859. */
  13860. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  13861. /**
  13862. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  13863. * resolved value cannot be modified from the callback.
  13864. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  13865. * @returns A Promise for the completion of the callback.
  13866. */
  13867. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  13868. }
  13869. /**
  13870. * Fields of the QualificationQuestion model
  13871. */
  13872. interface QualificationQuestionFieldRefs {
  13873. readonly id: FieldRef<"QualificationQuestion", 'String'>
  13874. readonly ideaId: FieldRef<"QualificationQuestion", 'String'>
  13875. readonly workspaceId: FieldRef<"QualificationQuestion", 'String'>
  13876. readonly questionText: FieldRef<"QualificationQuestion", 'String'>
  13877. readonly responseToken: FieldRef<"QualificationQuestion", 'String'>
  13878. readonly askedAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13879. readonly responseText: FieldRef<"QualificationQuestion", 'String'>
  13880. readonly answeredAt: FieldRef<"QualificationQuestion", 'DateTime'>
  13881. }
  13882. // Custom InputTypes
  13883. /**
  13884. * QualificationQuestion findUnique
  13885. */
  13886. export type QualificationQuestionFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13887. /**
  13888. * Select specific fields to fetch from the QualificationQuestion
  13889. */
  13890. select?: QualificationQuestionSelect<ExtArgs> | null
  13891. /**
  13892. * Omit specific fields from the QualificationQuestion
  13893. */
  13894. omit?: QualificationQuestionOmit<ExtArgs> | null
  13895. /**
  13896. * Choose, which related nodes to fetch as well
  13897. */
  13898. include?: QualificationQuestionInclude<ExtArgs> | null
  13899. /**
  13900. * Filter, which QualificationQuestion to fetch.
  13901. */
  13902. where: QualificationQuestionWhereUniqueInput
  13903. }
  13904. /**
  13905. * QualificationQuestion findUniqueOrThrow
  13906. */
  13907. export type QualificationQuestionFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13908. /**
  13909. * Select specific fields to fetch from the QualificationQuestion
  13910. */
  13911. select?: QualificationQuestionSelect<ExtArgs> | null
  13912. /**
  13913. * Omit specific fields from the QualificationQuestion
  13914. */
  13915. omit?: QualificationQuestionOmit<ExtArgs> | null
  13916. /**
  13917. * Choose, which related nodes to fetch as well
  13918. */
  13919. include?: QualificationQuestionInclude<ExtArgs> | null
  13920. /**
  13921. * Filter, which QualificationQuestion to fetch.
  13922. */
  13923. where: QualificationQuestionWhereUniqueInput
  13924. }
  13925. /**
  13926. * QualificationQuestion findFirst
  13927. */
  13928. export type QualificationQuestionFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13929. /**
  13930. * Select specific fields to fetch from the QualificationQuestion
  13931. */
  13932. select?: QualificationQuestionSelect<ExtArgs> | null
  13933. /**
  13934. * Omit specific fields from the QualificationQuestion
  13935. */
  13936. omit?: QualificationQuestionOmit<ExtArgs> | null
  13937. /**
  13938. * Choose, which related nodes to fetch as well
  13939. */
  13940. include?: QualificationQuestionInclude<ExtArgs> | null
  13941. /**
  13942. * Filter, which QualificationQuestion to fetch.
  13943. */
  13944. where?: QualificationQuestionWhereInput
  13945. /**
  13946. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13947. *
  13948. * Determine the order of QualificationQuestions to fetch.
  13949. */
  13950. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  13951. /**
  13952. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  13953. *
  13954. * Sets the position for searching for QualificationQuestions.
  13955. */
  13956. cursor?: QualificationQuestionWhereUniqueInput
  13957. /**
  13958. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13959. *
  13960. * Take `±n` QualificationQuestions from the position of the cursor.
  13961. */
  13962. take?: number
  13963. /**
  13964. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  13965. *
  13966. * Skip the first `n` QualificationQuestions.
  13967. */
  13968. skip?: number
  13969. /**
  13970. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  13971. *
  13972. * Filter by unique combinations of QualificationQuestions.
  13973. */
  13974. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  13975. }
  13976. /**
  13977. * QualificationQuestion findFirstOrThrow
  13978. */
  13979. export type QualificationQuestionFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  13980. /**
  13981. * Select specific fields to fetch from the QualificationQuestion
  13982. */
  13983. select?: QualificationQuestionSelect<ExtArgs> | null
  13984. /**
  13985. * Omit specific fields from the QualificationQuestion
  13986. */
  13987. omit?: QualificationQuestionOmit<ExtArgs> | null
  13988. /**
  13989. * Choose, which related nodes to fetch as well
  13990. */
  13991. include?: QualificationQuestionInclude<ExtArgs> | null
  13992. /**
  13993. * Filter, which QualificationQuestion to fetch.
  13994. */
  13995. where?: QualificationQuestionWhereInput
  13996. /**
  13997. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  13998. *
  13999. * Determine the order of QualificationQuestions to fetch.
  14000. */
  14001. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  14002. /**
  14003. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14004. *
  14005. * Sets the position for searching for QualificationQuestions.
  14006. */
  14007. cursor?: QualificationQuestionWhereUniqueInput
  14008. /**
  14009. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14010. *
  14011. * Take `±n` QualificationQuestions from the position of the cursor.
  14012. */
  14013. take?: number
  14014. /**
  14015. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14016. *
  14017. * Skip the first `n` QualificationQuestions.
  14018. */
  14019. skip?: number
  14020. /**
  14021. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14022. *
  14023. * Filter by unique combinations of QualificationQuestions.
  14024. */
  14025. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  14026. }
  14027. /**
  14028. * QualificationQuestion findMany
  14029. */
  14030. export type QualificationQuestionFindManyArgs<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 QualificationQuestions to fetch.
  14045. */
  14046. where?: QualificationQuestionWhereInput
  14047. /**
  14048. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14049. *
  14050. * Determine the order of QualificationQuestions to fetch.
  14051. */
  14052. orderBy?: QualificationQuestionOrderByWithRelationInput | QualificationQuestionOrderByWithRelationInput[]
  14053. /**
  14054. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14055. *
  14056. * Sets the position for listing QualificationQuestions.
  14057. */
  14058. cursor?: QualificationQuestionWhereUniqueInput
  14059. /**
  14060. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14061. *
  14062. * Take `±n` QualificationQuestions from the position of the cursor.
  14063. */
  14064. take?: number
  14065. /**
  14066. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14067. *
  14068. * Skip the first `n` QualificationQuestions.
  14069. */
  14070. skip?: number
  14071. distinct?: QualificationQuestionScalarFieldEnum | QualificationQuestionScalarFieldEnum[]
  14072. }
  14073. /**
  14074. * QualificationQuestion create
  14075. */
  14076. export type QualificationQuestionCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14077. /**
  14078. * Select specific fields to fetch from the QualificationQuestion
  14079. */
  14080. select?: QualificationQuestionSelect<ExtArgs> | null
  14081. /**
  14082. * Omit specific fields from the QualificationQuestion
  14083. */
  14084. omit?: QualificationQuestionOmit<ExtArgs> | null
  14085. /**
  14086. * Choose, which related nodes to fetch as well
  14087. */
  14088. include?: QualificationQuestionInclude<ExtArgs> | null
  14089. /**
  14090. * The data needed to create a QualificationQuestion.
  14091. */
  14092. data: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  14093. }
  14094. /**
  14095. * QualificationQuestion createMany
  14096. */
  14097. export type QualificationQuestionCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14098. /**
  14099. * The data used to create many QualificationQuestions.
  14100. */
  14101. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  14102. skipDuplicates?: boolean
  14103. }
  14104. /**
  14105. * QualificationQuestion createManyAndReturn
  14106. */
  14107. export type QualificationQuestionCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14108. /**
  14109. * Select specific fields to fetch from the QualificationQuestion
  14110. */
  14111. select?: QualificationQuestionSelectCreateManyAndReturn<ExtArgs> | null
  14112. /**
  14113. * Omit specific fields from the QualificationQuestion
  14114. */
  14115. omit?: QualificationQuestionOmit<ExtArgs> | null
  14116. /**
  14117. * The data used to create many QualificationQuestions.
  14118. */
  14119. data: QualificationQuestionCreateManyInput | QualificationQuestionCreateManyInput[]
  14120. skipDuplicates?: boolean
  14121. /**
  14122. * Choose, which related nodes to fetch as well
  14123. */
  14124. include?: QualificationQuestionIncludeCreateManyAndReturn<ExtArgs> | null
  14125. }
  14126. /**
  14127. * QualificationQuestion update
  14128. */
  14129. export type QualificationQuestionUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14130. /**
  14131. * Select specific fields to fetch from the QualificationQuestion
  14132. */
  14133. select?: QualificationQuestionSelect<ExtArgs> | null
  14134. /**
  14135. * Omit specific fields from the QualificationQuestion
  14136. */
  14137. omit?: QualificationQuestionOmit<ExtArgs> | null
  14138. /**
  14139. * Choose, which related nodes to fetch as well
  14140. */
  14141. include?: QualificationQuestionInclude<ExtArgs> | null
  14142. /**
  14143. * The data needed to update a QualificationQuestion.
  14144. */
  14145. data: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  14146. /**
  14147. * Choose, which QualificationQuestion to update.
  14148. */
  14149. where: QualificationQuestionWhereUniqueInput
  14150. }
  14151. /**
  14152. * QualificationQuestion updateMany
  14153. */
  14154. export type QualificationQuestionUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14155. /**
  14156. * The data used to update QualificationQuestions.
  14157. */
  14158. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  14159. /**
  14160. * Filter which QualificationQuestions to update
  14161. */
  14162. where?: QualificationQuestionWhereInput
  14163. /**
  14164. * Limit how many QualificationQuestions to update.
  14165. */
  14166. limit?: number
  14167. }
  14168. /**
  14169. * QualificationQuestion updateManyAndReturn
  14170. */
  14171. export type QualificationQuestionUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14172. /**
  14173. * Select specific fields to fetch from the QualificationQuestion
  14174. */
  14175. select?: QualificationQuestionSelectUpdateManyAndReturn<ExtArgs> | null
  14176. /**
  14177. * Omit specific fields from the QualificationQuestion
  14178. */
  14179. omit?: QualificationQuestionOmit<ExtArgs> | null
  14180. /**
  14181. * The data used to update QualificationQuestions.
  14182. */
  14183. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyInput>
  14184. /**
  14185. * Filter which QualificationQuestions to update
  14186. */
  14187. where?: QualificationQuestionWhereInput
  14188. /**
  14189. * Limit how many QualificationQuestions to update.
  14190. */
  14191. limit?: number
  14192. /**
  14193. * Choose, which related nodes to fetch as well
  14194. */
  14195. include?: QualificationQuestionIncludeUpdateManyAndReturn<ExtArgs> | null
  14196. }
  14197. /**
  14198. * QualificationQuestion upsert
  14199. */
  14200. export type QualificationQuestionUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14201. /**
  14202. * Select specific fields to fetch from the QualificationQuestion
  14203. */
  14204. select?: QualificationQuestionSelect<ExtArgs> | null
  14205. /**
  14206. * Omit specific fields from the QualificationQuestion
  14207. */
  14208. omit?: QualificationQuestionOmit<ExtArgs> | null
  14209. /**
  14210. * Choose, which related nodes to fetch as well
  14211. */
  14212. include?: QualificationQuestionInclude<ExtArgs> | null
  14213. /**
  14214. * The filter to search for the QualificationQuestion to update in case it exists.
  14215. */
  14216. where: QualificationQuestionWhereUniqueInput
  14217. /**
  14218. * In case the QualificationQuestion found by the `where` argument doesn't exist, create a new QualificationQuestion with this data.
  14219. */
  14220. create: XOR<QualificationQuestionCreateInput, QualificationQuestionUncheckedCreateInput>
  14221. /**
  14222. * In case the QualificationQuestion was found with the provided `where` argument, update it with this data.
  14223. */
  14224. update: XOR<QualificationQuestionUpdateInput, QualificationQuestionUncheckedUpdateInput>
  14225. }
  14226. /**
  14227. * QualificationQuestion delete
  14228. */
  14229. export type QualificationQuestionDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14230. /**
  14231. * Select specific fields to fetch from the QualificationQuestion
  14232. */
  14233. select?: QualificationQuestionSelect<ExtArgs> | null
  14234. /**
  14235. * Omit specific fields from the QualificationQuestion
  14236. */
  14237. omit?: QualificationQuestionOmit<ExtArgs> | null
  14238. /**
  14239. * Choose, which related nodes to fetch as well
  14240. */
  14241. include?: QualificationQuestionInclude<ExtArgs> | null
  14242. /**
  14243. * Filter which QualificationQuestion to delete.
  14244. */
  14245. where: QualificationQuestionWhereUniqueInput
  14246. }
  14247. /**
  14248. * QualificationQuestion deleteMany
  14249. */
  14250. export type QualificationQuestionDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14251. /**
  14252. * Filter which QualificationQuestions to delete
  14253. */
  14254. where?: QualificationQuestionWhereInput
  14255. /**
  14256. * Limit how many QualificationQuestions to delete.
  14257. */
  14258. limit?: number
  14259. }
  14260. /**
  14261. * QualificationQuestion without action
  14262. */
  14263. export type QualificationQuestionDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14264. /**
  14265. * Select specific fields to fetch from the QualificationQuestion
  14266. */
  14267. select?: QualificationQuestionSelect<ExtArgs> | null
  14268. /**
  14269. * Omit specific fields from the QualificationQuestion
  14270. */
  14271. omit?: QualificationQuestionOmit<ExtArgs> | null
  14272. /**
  14273. * Choose, which related nodes to fetch as well
  14274. */
  14275. include?: QualificationQuestionInclude<ExtArgs> | null
  14276. }
  14277. /**
  14278. * Model LibraryCase
  14279. */
  14280. export type AggregateLibraryCase = {
  14281. _count: LibraryCaseCountAggregateOutputType | null
  14282. _min: LibraryCaseMinAggregateOutputType | null
  14283. _max: LibraryCaseMaxAggregateOutputType | null
  14284. }
  14285. export type LibraryCaseMinAggregateOutputType = {
  14286. id: string | null
  14287. sector: string | null
  14288. department: string | null
  14289. title: string | null
  14290. description: string | null
  14291. createdAt: Date | null
  14292. updatedAt: Date | null
  14293. }
  14294. export type LibraryCaseMaxAggregateOutputType = {
  14295. id: string | null
  14296. sector: string | null
  14297. department: string | null
  14298. title: string | null
  14299. description: string | null
  14300. createdAt: Date | null
  14301. updatedAt: Date | null
  14302. }
  14303. export type LibraryCaseCountAggregateOutputType = {
  14304. id: number
  14305. sector: number
  14306. department: number
  14307. title: number
  14308. description: number
  14309. createdAt: number
  14310. updatedAt: number
  14311. _all: number
  14312. }
  14313. export type LibraryCaseMinAggregateInputType = {
  14314. id?: true
  14315. sector?: true
  14316. department?: true
  14317. title?: true
  14318. description?: true
  14319. createdAt?: true
  14320. updatedAt?: true
  14321. }
  14322. export type LibraryCaseMaxAggregateInputType = {
  14323. id?: true
  14324. sector?: true
  14325. department?: true
  14326. title?: true
  14327. description?: true
  14328. createdAt?: true
  14329. updatedAt?: true
  14330. }
  14331. export type LibraryCaseCountAggregateInputType = {
  14332. id?: true
  14333. sector?: true
  14334. department?: true
  14335. title?: true
  14336. description?: true
  14337. createdAt?: true
  14338. updatedAt?: true
  14339. _all?: true
  14340. }
  14341. export type LibraryCaseAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14342. /**
  14343. * Filter which LibraryCase to aggregate.
  14344. */
  14345. where?: LibraryCaseWhereInput
  14346. /**
  14347. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14348. *
  14349. * Determine the order of LibraryCases to fetch.
  14350. */
  14351. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14352. /**
  14353. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14354. *
  14355. * Sets the start position
  14356. */
  14357. cursor?: LibraryCaseWhereUniqueInput
  14358. /**
  14359. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14360. *
  14361. * Take `±n` LibraryCases from the position of the cursor.
  14362. */
  14363. take?: number
  14364. /**
  14365. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14366. *
  14367. * Skip the first `n` LibraryCases.
  14368. */
  14369. skip?: number
  14370. /**
  14371. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14372. *
  14373. * Count returned LibraryCases
  14374. **/
  14375. _count?: true | LibraryCaseCountAggregateInputType
  14376. /**
  14377. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14378. *
  14379. * Select which fields to find the minimum value
  14380. **/
  14381. _min?: LibraryCaseMinAggregateInputType
  14382. /**
  14383. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  14384. *
  14385. * Select which fields to find the maximum value
  14386. **/
  14387. _max?: LibraryCaseMaxAggregateInputType
  14388. }
  14389. export type GetLibraryCaseAggregateType<T extends LibraryCaseAggregateArgs> = {
  14390. [P in keyof T & keyof AggregateLibraryCase]: P extends '_count' | 'count'
  14391. ? T[P] extends true
  14392. ? number
  14393. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14394. : GetScalarType<T[P], AggregateLibraryCase[P]>
  14395. }
  14396. export type LibraryCaseGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14397. where?: LibraryCaseWhereInput
  14398. orderBy?: LibraryCaseOrderByWithAggregationInput | LibraryCaseOrderByWithAggregationInput[]
  14399. by: LibraryCaseScalarFieldEnum[] | LibraryCaseScalarFieldEnum
  14400. having?: LibraryCaseScalarWhereWithAggregatesInput
  14401. take?: number
  14402. skip?: number
  14403. _count?: LibraryCaseCountAggregateInputType | true
  14404. _min?: LibraryCaseMinAggregateInputType
  14405. _max?: LibraryCaseMaxAggregateInputType
  14406. }
  14407. export type LibraryCaseGroupByOutputType = {
  14408. id: string
  14409. sector: string
  14410. department: string
  14411. title: string
  14412. description: string
  14413. createdAt: Date
  14414. updatedAt: Date
  14415. _count: LibraryCaseCountAggregateOutputType | null
  14416. _min: LibraryCaseMinAggregateOutputType | null
  14417. _max: LibraryCaseMaxAggregateOutputType | null
  14418. }
  14419. type GetLibraryCaseGroupByPayload<T extends LibraryCaseGroupByArgs> = Prisma.PrismaPromise<
  14420. Array<
  14421. PickEnumerable<LibraryCaseGroupByOutputType, T['by']> &
  14422. {
  14423. [P in ((keyof T) & (keyof LibraryCaseGroupByOutputType))]: P extends '_count'
  14424. ? T[P] extends boolean
  14425. ? number
  14426. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14427. : GetScalarType<T[P], LibraryCaseGroupByOutputType[P]>
  14428. }
  14429. >
  14430. >
  14431. export type LibraryCaseSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14432. id?: boolean
  14433. sector?: boolean
  14434. department?: boolean
  14435. title?: boolean
  14436. description?: boolean
  14437. createdAt?: boolean
  14438. updatedAt?: boolean
  14439. }, ExtArgs["result"]["libraryCase"]>
  14440. export type LibraryCaseSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14441. id?: boolean
  14442. sector?: boolean
  14443. department?: boolean
  14444. title?: boolean
  14445. description?: boolean
  14446. createdAt?: boolean
  14447. updatedAt?: boolean
  14448. }, ExtArgs["result"]["libraryCase"]>
  14449. export type LibraryCaseSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  14450. id?: boolean
  14451. sector?: boolean
  14452. department?: boolean
  14453. title?: boolean
  14454. description?: boolean
  14455. createdAt?: boolean
  14456. updatedAt?: boolean
  14457. }, ExtArgs["result"]["libraryCase"]>
  14458. export type LibraryCaseSelectScalar = {
  14459. id?: boolean
  14460. sector?: boolean
  14461. department?: boolean
  14462. title?: boolean
  14463. description?: boolean
  14464. createdAt?: boolean
  14465. updatedAt?: boolean
  14466. }
  14467. export type LibraryCaseOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "sector" | "department" | "title" | "description" | "createdAt" | "updatedAt", ExtArgs["result"]["libraryCase"]>
  14468. export type $LibraryCasePayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14469. name: "LibraryCase"
  14470. objects: {}
  14471. scalars: $Extensions.GetPayloadResult<{
  14472. id: string
  14473. sector: string
  14474. department: string
  14475. title: string
  14476. description: string
  14477. createdAt: Date
  14478. updatedAt: Date
  14479. }, ExtArgs["result"]["libraryCase"]>
  14480. composites: {}
  14481. }
  14482. type LibraryCaseGetPayload<S extends boolean | null | undefined | LibraryCaseDefaultArgs> = $Result.GetResult<Prisma.$LibraryCasePayload, S>
  14483. type LibraryCaseCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  14484. Omit<LibraryCaseFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  14485. select?: LibraryCaseCountAggregateInputType | true
  14486. }
  14487. export interface LibraryCaseDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  14488. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LibraryCase'], meta: { name: 'LibraryCase' } }
  14489. /**
  14490. * Find zero or one LibraryCase that matches the filter.
  14491. * @param {LibraryCaseFindUniqueArgs} args - Arguments to find a LibraryCase
  14492. * @example
  14493. * // Get one LibraryCase
  14494. * const libraryCase = await prisma.libraryCase.findUnique({
  14495. * where: {
  14496. * // ... provide filter here
  14497. * }
  14498. * })
  14499. */
  14500. findUnique<T extends LibraryCaseFindUniqueArgs>(args: SelectSubset<T, LibraryCaseFindUniqueArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14501. /**
  14502. * Find one LibraryCase that matches the filter or throw an error with `error.code='P2025'`
  14503. * if no matches were found.
  14504. * @param {LibraryCaseFindUniqueOrThrowArgs} args - Arguments to find a LibraryCase
  14505. * @example
  14506. * // Get one LibraryCase
  14507. * const libraryCase = await prisma.libraryCase.findUniqueOrThrow({
  14508. * where: {
  14509. * // ... provide filter here
  14510. * }
  14511. * })
  14512. */
  14513. findUniqueOrThrow<T extends LibraryCaseFindUniqueOrThrowArgs>(args: SelectSubset<T, LibraryCaseFindUniqueOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14514. /**
  14515. * Find the first LibraryCase that matches the filter.
  14516. * Note, that providing `undefined` is treated as the value not being there.
  14517. * Read more here: https://pris.ly/d/null-undefined
  14518. * @param {LibraryCaseFindFirstArgs} args - Arguments to find a LibraryCase
  14519. * @example
  14520. * // Get one LibraryCase
  14521. * const libraryCase = await prisma.libraryCase.findFirst({
  14522. * where: {
  14523. * // ... provide filter here
  14524. * }
  14525. * })
  14526. */
  14527. findFirst<T extends LibraryCaseFindFirstArgs>(args?: SelectSubset<T, LibraryCaseFindFirstArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  14528. /**
  14529. * Find the first LibraryCase that matches the filter or
  14530. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  14531. * Note, that providing `undefined` is treated as the value not being there.
  14532. * Read more here: https://pris.ly/d/null-undefined
  14533. * @param {LibraryCaseFindFirstOrThrowArgs} args - Arguments to find a LibraryCase
  14534. * @example
  14535. * // Get one LibraryCase
  14536. * const libraryCase = await prisma.libraryCase.findFirstOrThrow({
  14537. * where: {
  14538. * // ... provide filter here
  14539. * }
  14540. * })
  14541. */
  14542. findFirstOrThrow<T extends LibraryCaseFindFirstOrThrowArgs>(args?: SelectSubset<T, LibraryCaseFindFirstOrThrowArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14543. /**
  14544. * Find zero or more LibraryCases that matches the filter.
  14545. * Note, that providing `undefined` is treated as the value not being there.
  14546. * Read more here: https://pris.ly/d/null-undefined
  14547. * @param {LibraryCaseFindManyArgs} args - Arguments to filter and select certain fields only.
  14548. * @example
  14549. * // Get all LibraryCases
  14550. * const libraryCases = await prisma.libraryCase.findMany()
  14551. *
  14552. * // Get first 10 LibraryCases
  14553. * const libraryCases = await prisma.libraryCase.findMany({ take: 10 })
  14554. *
  14555. * // Only select the `id`
  14556. * const libraryCaseWithIdOnly = await prisma.libraryCase.findMany({ select: { id: true } })
  14557. *
  14558. */
  14559. findMany<T extends LibraryCaseFindManyArgs>(args?: SelectSubset<T, LibraryCaseFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  14560. /**
  14561. * Create a LibraryCase.
  14562. * @param {LibraryCaseCreateArgs} args - Arguments to create a LibraryCase.
  14563. * @example
  14564. * // Create one LibraryCase
  14565. * const LibraryCase = await prisma.libraryCase.create({
  14566. * data: {
  14567. * // ... data to create a LibraryCase
  14568. * }
  14569. * })
  14570. *
  14571. */
  14572. create<T extends LibraryCaseCreateArgs>(args: SelectSubset<T, LibraryCaseCreateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14573. /**
  14574. * Create many LibraryCases.
  14575. * @param {LibraryCaseCreateManyArgs} args - Arguments to create many LibraryCases.
  14576. * @example
  14577. * // Create many LibraryCases
  14578. * const libraryCase = await prisma.libraryCase.createMany({
  14579. * data: [
  14580. * // ... provide data here
  14581. * ]
  14582. * })
  14583. *
  14584. */
  14585. createMany<T extends LibraryCaseCreateManyArgs>(args?: SelectSubset<T, LibraryCaseCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14586. /**
  14587. * Create many LibraryCases and returns the data saved in the database.
  14588. * @param {LibraryCaseCreateManyAndReturnArgs} args - Arguments to create many LibraryCases.
  14589. * @example
  14590. * // Create many LibraryCases
  14591. * const libraryCase = await prisma.libraryCase.createManyAndReturn({
  14592. * data: [
  14593. * // ... provide data here
  14594. * ]
  14595. * })
  14596. *
  14597. * // Create many LibraryCases and only return the `id`
  14598. * const libraryCaseWithIdOnly = await prisma.libraryCase.createManyAndReturn({
  14599. * select: { id: true },
  14600. * data: [
  14601. * // ... provide data here
  14602. * ]
  14603. * })
  14604. * Note, that providing `undefined` is treated as the value not being there.
  14605. * Read more here: https://pris.ly/d/null-undefined
  14606. *
  14607. */
  14608. createManyAndReturn<T extends LibraryCaseCreateManyAndReturnArgs>(args?: SelectSubset<T, LibraryCaseCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  14609. /**
  14610. * Delete a LibraryCase.
  14611. * @param {LibraryCaseDeleteArgs} args - Arguments to delete one LibraryCase.
  14612. * @example
  14613. * // Delete one LibraryCase
  14614. * const LibraryCase = await prisma.libraryCase.delete({
  14615. * where: {
  14616. * // ... filter to delete one LibraryCase
  14617. * }
  14618. * })
  14619. *
  14620. */
  14621. delete<T extends LibraryCaseDeleteArgs>(args: SelectSubset<T, LibraryCaseDeleteArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14622. /**
  14623. * Update one LibraryCase.
  14624. * @param {LibraryCaseUpdateArgs} args - Arguments to update one LibraryCase.
  14625. * @example
  14626. * // Update one LibraryCase
  14627. * const libraryCase = await prisma.libraryCase.update({
  14628. * where: {
  14629. * // ... provide filter here
  14630. * },
  14631. * data: {
  14632. * // ... provide data here
  14633. * }
  14634. * })
  14635. *
  14636. */
  14637. update<T extends LibraryCaseUpdateArgs>(args: SelectSubset<T, LibraryCaseUpdateArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14638. /**
  14639. * Delete zero or more LibraryCases.
  14640. * @param {LibraryCaseDeleteManyArgs} args - Arguments to filter LibraryCases to delete.
  14641. * @example
  14642. * // Delete a few LibraryCases
  14643. * const { count } = await prisma.libraryCase.deleteMany({
  14644. * where: {
  14645. * // ... provide filter here
  14646. * }
  14647. * })
  14648. *
  14649. */
  14650. deleteMany<T extends LibraryCaseDeleteManyArgs>(args?: SelectSubset<T, LibraryCaseDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14651. /**
  14652. * Update zero or more LibraryCases.
  14653. * Note, that providing `undefined` is treated as the value not being there.
  14654. * Read more here: https://pris.ly/d/null-undefined
  14655. * @param {LibraryCaseUpdateManyArgs} args - Arguments to update one or more rows.
  14656. * @example
  14657. * // Update many LibraryCases
  14658. * const libraryCase = await prisma.libraryCase.updateMany({
  14659. * where: {
  14660. * // ... provide filter here
  14661. * },
  14662. * data: {
  14663. * // ... provide data here
  14664. * }
  14665. * })
  14666. *
  14667. */
  14668. updateMany<T extends LibraryCaseUpdateManyArgs>(args: SelectSubset<T, LibraryCaseUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  14669. /**
  14670. * Update zero or more LibraryCases and returns the data updated in the database.
  14671. * @param {LibraryCaseUpdateManyAndReturnArgs} args - Arguments to update many LibraryCases.
  14672. * @example
  14673. * // Update many LibraryCases
  14674. * const libraryCase = await prisma.libraryCase.updateManyAndReturn({
  14675. * where: {
  14676. * // ... provide filter here
  14677. * },
  14678. * data: [
  14679. * // ... provide data here
  14680. * ]
  14681. * })
  14682. *
  14683. * // Update zero or more LibraryCases and only return the `id`
  14684. * const libraryCaseWithIdOnly = await prisma.libraryCase.updateManyAndReturn({
  14685. * select: { id: true },
  14686. * where: {
  14687. * // ... provide filter here
  14688. * },
  14689. * data: [
  14690. * // ... provide data here
  14691. * ]
  14692. * })
  14693. * Note, that providing `undefined` is treated as the value not being there.
  14694. * Read more here: https://pris.ly/d/null-undefined
  14695. *
  14696. */
  14697. updateManyAndReturn<T extends LibraryCaseUpdateManyAndReturnArgs>(args: SelectSubset<T, LibraryCaseUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  14698. /**
  14699. * Create or update one LibraryCase.
  14700. * @param {LibraryCaseUpsertArgs} args - Arguments to update or create a LibraryCase.
  14701. * @example
  14702. * // Update or create a LibraryCase
  14703. * const libraryCase = await prisma.libraryCase.upsert({
  14704. * create: {
  14705. * // ... data to create a LibraryCase
  14706. * },
  14707. * update: {
  14708. * // ... in case it already exists, update
  14709. * },
  14710. * where: {
  14711. * // ... the filter for the LibraryCase we want to update
  14712. * }
  14713. * })
  14714. */
  14715. upsert<T extends LibraryCaseUpsertArgs>(args: SelectSubset<T, LibraryCaseUpsertArgs<ExtArgs>>): Prisma__LibraryCaseClient<$Result.GetResult<Prisma.$LibraryCasePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  14716. /**
  14717. * Count the number of LibraryCases.
  14718. * Note, that providing `undefined` is treated as the value not being there.
  14719. * Read more here: https://pris.ly/d/null-undefined
  14720. * @param {LibraryCaseCountArgs} args - Arguments to filter LibraryCases to count.
  14721. * @example
  14722. * // Count the number of LibraryCases
  14723. * const count = await prisma.libraryCase.count({
  14724. * where: {
  14725. * // ... the filter for the LibraryCases we want to count
  14726. * }
  14727. * })
  14728. **/
  14729. count<T extends LibraryCaseCountArgs>(
  14730. args?: Subset<T, LibraryCaseCountArgs>,
  14731. ): Prisma.PrismaPromise<
  14732. T extends $Utils.Record<'select', any>
  14733. ? T['select'] extends true
  14734. ? number
  14735. : GetScalarType<T['select'], LibraryCaseCountAggregateOutputType>
  14736. : number
  14737. >
  14738. /**
  14739. * Allows you to perform aggregations operations on a LibraryCase.
  14740. * Note, that providing `undefined` is treated as the value not being there.
  14741. * Read more here: https://pris.ly/d/null-undefined
  14742. * @param {LibraryCaseAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  14743. * @example
  14744. * // Ordered by age ascending
  14745. * // Where email contains prisma.io
  14746. * // Limited to the 10 users
  14747. * const aggregations = await prisma.user.aggregate({
  14748. * _avg: {
  14749. * age: true,
  14750. * },
  14751. * where: {
  14752. * email: {
  14753. * contains: "prisma.io",
  14754. * },
  14755. * },
  14756. * orderBy: {
  14757. * age: "asc",
  14758. * },
  14759. * take: 10,
  14760. * })
  14761. **/
  14762. aggregate<T extends LibraryCaseAggregateArgs>(args: Subset<T, LibraryCaseAggregateArgs>): Prisma.PrismaPromise<GetLibraryCaseAggregateType<T>>
  14763. /**
  14764. * Group by LibraryCase.
  14765. * Note, that providing `undefined` is treated as the value not being there.
  14766. * Read more here: https://pris.ly/d/null-undefined
  14767. * @param {LibraryCaseGroupByArgs} args - Group by arguments.
  14768. * @example
  14769. * // Group by city, order by createdAt, get count
  14770. * const result = await prisma.user.groupBy({
  14771. * by: ['city', 'createdAt'],
  14772. * orderBy: {
  14773. * createdAt: true
  14774. * },
  14775. * _count: {
  14776. * _all: true
  14777. * },
  14778. * })
  14779. *
  14780. **/
  14781. groupBy<
  14782. T extends LibraryCaseGroupByArgs,
  14783. HasSelectOrTake extends Or<
  14784. Extends<'skip', Keys<T>>,
  14785. Extends<'take', Keys<T>>
  14786. >,
  14787. OrderByArg extends True extends HasSelectOrTake
  14788. ? { orderBy: LibraryCaseGroupByArgs['orderBy'] }
  14789. : { orderBy?: LibraryCaseGroupByArgs['orderBy'] },
  14790. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  14791. ByFields extends MaybeTupleToUnion<T['by']>,
  14792. ByValid extends Has<ByFields, OrderFields>,
  14793. HavingFields extends GetHavingFields<T['having']>,
  14794. HavingValid extends Has<ByFields, HavingFields>,
  14795. ByEmpty extends T['by'] extends never[] ? True : False,
  14796. InputErrors extends ByEmpty extends True
  14797. ? `Error: "by" must not be empty.`
  14798. : HavingValid extends False
  14799. ? {
  14800. [P in HavingFields]: P extends ByFields
  14801. ? never
  14802. : P extends string
  14803. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  14804. : [
  14805. Error,
  14806. 'Field ',
  14807. P,
  14808. ` in "having" needs to be provided in "by"`,
  14809. ]
  14810. }[HavingFields]
  14811. : 'take' extends Keys<T>
  14812. ? 'orderBy' extends Keys<T>
  14813. ? ByValid extends True
  14814. ? {}
  14815. : {
  14816. [P in OrderFields]: P extends ByFields
  14817. ? never
  14818. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14819. }[OrderFields]
  14820. : 'Error: If you provide "take", you also need to provide "orderBy"'
  14821. : 'skip' extends Keys<T>
  14822. ? 'orderBy' extends Keys<T>
  14823. ? ByValid extends True
  14824. ? {}
  14825. : {
  14826. [P in OrderFields]: P extends ByFields
  14827. ? never
  14828. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14829. }[OrderFields]
  14830. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  14831. : ByValid extends True
  14832. ? {}
  14833. : {
  14834. [P in OrderFields]: P extends ByFields
  14835. ? never
  14836. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  14837. }[OrderFields]
  14838. >(args: SubsetIntersection<T, LibraryCaseGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLibraryCaseGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  14839. /**
  14840. * Fields of the LibraryCase model
  14841. */
  14842. readonly fields: LibraryCaseFieldRefs;
  14843. }
  14844. /**
  14845. * The delegate class that acts as a "Promise-like" for LibraryCase.
  14846. * Why is this prefixed with `Prisma__`?
  14847. * Because we want to prevent naming conflicts as mentioned in
  14848. * https://github.com/prisma/prisma-client-js/issues/707
  14849. */
  14850. export interface Prisma__LibraryCaseClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  14851. readonly [Symbol.toStringTag]: "PrismaPromise"
  14852. /**
  14853. * Attaches callbacks for the resolution and/or rejection of the Promise.
  14854. * @param onfulfilled The callback to execute when the Promise is resolved.
  14855. * @param onrejected The callback to execute when the Promise is rejected.
  14856. * @returns A Promise for the completion of which ever callback is executed.
  14857. */
  14858. 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>
  14859. /**
  14860. * Attaches a callback for only the rejection of the Promise.
  14861. * @param onrejected The callback to execute when the Promise is rejected.
  14862. * @returns A Promise for the completion of the callback.
  14863. */
  14864. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  14865. /**
  14866. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  14867. * resolved value cannot be modified from the callback.
  14868. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  14869. * @returns A Promise for the completion of the callback.
  14870. */
  14871. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  14872. }
  14873. /**
  14874. * Fields of the LibraryCase model
  14875. */
  14876. interface LibraryCaseFieldRefs {
  14877. readonly id: FieldRef<"LibraryCase", 'String'>
  14878. readonly sector: FieldRef<"LibraryCase", 'String'>
  14879. readonly department: FieldRef<"LibraryCase", 'String'>
  14880. readonly title: FieldRef<"LibraryCase", 'String'>
  14881. readonly description: FieldRef<"LibraryCase", 'String'>
  14882. readonly createdAt: FieldRef<"LibraryCase", 'DateTime'>
  14883. readonly updatedAt: FieldRef<"LibraryCase", 'DateTime'>
  14884. }
  14885. // Custom InputTypes
  14886. /**
  14887. * LibraryCase findUnique
  14888. */
  14889. export type LibraryCaseFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14890. /**
  14891. * Select specific fields to fetch from the LibraryCase
  14892. */
  14893. select?: LibraryCaseSelect<ExtArgs> | null
  14894. /**
  14895. * Omit specific fields from the LibraryCase
  14896. */
  14897. omit?: LibraryCaseOmit<ExtArgs> | null
  14898. /**
  14899. * Filter, which LibraryCase to fetch.
  14900. */
  14901. where: LibraryCaseWhereUniqueInput
  14902. }
  14903. /**
  14904. * LibraryCase findUniqueOrThrow
  14905. */
  14906. export type LibraryCaseFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14907. /**
  14908. * Select specific fields to fetch from the LibraryCase
  14909. */
  14910. select?: LibraryCaseSelect<ExtArgs> | null
  14911. /**
  14912. * Omit specific fields from the LibraryCase
  14913. */
  14914. omit?: LibraryCaseOmit<ExtArgs> | null
  14915. /**
  14916. * Filter, which LibraryCase to fetch.
  14917. */
  14918. where: LibraryCaseWhereUniqueInput
  14919. }
  14920. /**
  14921. * LibraryCase findFirst
  14922. */
  14923. export type LibraryCaseFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14924. /**
  14925. * Select specific fields to fetch from the LibraryCase
  14926. */
  14927. select?: LibraryCaseSelect<ExtArgs> | null
  14928. /**
  14929. * Omit specific fields from the LibraryCase
  14930. */
  14931. omit?: LibraryCaseOmit<ExtArgs> | null
  14932. /**
  14933. * Filter, which LibraryCase to fetch.
  14934. */
  14935. where?: LibraryCaseWhereInput
  14936. /**
  14937. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14938. *
  14939. * Determine the order of LibraryCases to fetch.
  14940. */
  14941. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14942. /**
  14943. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14944. *
  14945. * Sets the position for searching for LibraryCases.
  14946. */
  14947. cursor?: LibraryCaseWhereUniqueInput
  14948. /**
  14949. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14950. *
  14951. * Take `±n` LibraryCases from the position of the cursor.
  14952. */
  14953. take?: number
  14954. /**
  14955. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14956. *
  14957. * Skip the first `n` LibraryCases.
  14958. */
  14959. skip?: number
  14960. /**
  14961. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  14962. *
  14963. * Filter by unique combinations of LibraryCases.
  14964. */
  14965. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  14966. }
  14967. /**
  14968. * LibraryCase findFirstOrThrow
  14969. */
  14970. export type LibraryCaseFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  14971. /**
  14972. * Select specific fields to fetch from the LibraryCase
  14973. */
  14974. select?: LibraryCaseSelect<ExtArgs> | null
  14975. /**
  14976. * Omit specific fields from the LibraryCase
  14977. */
  14978. omit?: LibraryCaseOmit<ExtArgs> | null
  14979. /**
  14980. * Filter, which LibraryCase to fetch.
  14981. */
  14982. where?: LibraryCaseWhereInput
  14983. /**
  14984. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  14985. *
  14986. * Determine the order of LibraryCases to fetch.
  14987. */
  14988. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  14989. /**
  14990. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  14991. *
  14992. * Sets the position for searching for LibraryCases.
  14993. */
  14994. cursor?: LibraryCaseWhereUniqueInput
  14995. /**
  14996. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  14997. *
  14998. * Take `±n` LibraryCases from the position of the cursor.
  14999. */
  15000. take?: number
  15001. /**
  15002. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15003. *
  15004. * Skip the first `n` LibraryCases.
  15005. */
  15006. skip?: number
  15007. /**
  15008. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15009. *
  15010. * Filter by unique combinations of LibraryCases.
  15011. */
  15012. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  15013. }
  15014. /**
  15015. * LibraryCase findMany
  15016. */
  15017. export type LibraryCaseFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15018. /**
  15019. * Select specific fields to fetch from the LibraryCase
  15020. */
  15021. select?: LibraryCaseSelect<ExtArgs> | null
  15022. /**
  15023. * Omit specific fields from the LibraryCase
  15024. */
  15025. omit?: LibraryCaseOmit<ExtArgs> | null
  15026. /**
  15027. * Filter, which LibraryCases to fetch.
  15028. */
  15029. where?: LibraryCaseWhereInput
  15030. /**
  15031. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15032. *
  15033. * Determine the order of LibraryCases to fetch.
  15034. */
  15035. orderBy?: LibraryCaseOrderByWithRelationInput | LibraryCaseOrderByWithRelationInput[]
  15036. /**
  15037. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15038. *
  15039. * Sets the position for listing LibraryCases.
  15040. */
  15041. cursor?: LibraryCaseWhereUniqueInput
  15042. /**
  15043. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15044. *
  15045. * Take `±n` LibraryCases from the position of the cursor.
  15046. */
  15047. take?: number
  15048. /**
  15049. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15050. *
  15051. * Skip the first `n` LibraryCases.
  15052. */
  15053. skip?: number
  15054. distinct?: LibraryCaseScalarFieldEnum | LibraryCaseScalarFieldEnum[]
  15055. }
  15056. /**
  15057. * LibraryCase create
  15058. */
  15059. export type LibraryCaseCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15060. /**
  15061. * Select specific fields to fetch from the LibraryCase
  15062. */
  15063. select?: LibraryCaseSelect<ExtArgs> | null
  15064. /**
  15065. * Omit specific fields from the LibraryCase
  15066. */
  15067. omit?: LibraryCaseOmit<ExtArgs> | null
  15068. /**
  15069. * The data needed to create a LibraryCase.
  15070. */
  15071. data: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  15072. }
  15073. /**
  15074. * LibraryCase createMany
  15075. */
  15076. export type LibraryCaseCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15077. /**
  15078. * The data used to create many LibraryCases.
  15079. */
  15080. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  15081. skipDuplicates?: boolean
  15082. }
  15083. /**
  15084. * LibraryCase createManyAndReturn
  15085. */
  15086. export type LibraryCaseCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15087. /**
  15088. * Select specific fields to fetch from the LibraryCase
  15089. */
  15090. select?: LibraryCaseSelectCreateManyAndReturn<ExtArgs> | null
  15091. /**
  15092. * Omit specific fields from the LibraryCase
  15093. */
  15094. omit?: LibraryCaseOmit<ExtArgs> | null
  15095. /**
  15096. * The data used to create many LibraryCases.
  15097. */
  15098. data: LibraryCaseCreateManyInput | LibraryCaseCreateManyInput[]
  15099. skipDuplicates?: boolean
  15100. }
  15101. /**
  15102. * LibraryCase update
  15103. */
  15104. export type LibraryCaseUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15105. /**
  15106. * Select specific fields to fetch from the LibraryCase
  15107. */
  15108. select?: LibraryCaseSelect<ExtArgs> | null
  15109. /**
  15110. * Omit specific fields from the LibraryCase
  15111. */
  15112. omit?: LibraryCaseOmit<ExtArgs> | null
  15113. /**
  15114. * The data needed to update a LibraryCase.
  15115. */
  15116. data: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  15117. /**
  15118. * Choose, which LibraryCase to update.
  15119. */
  15120. where: LibraryCaseWhereUniqueInput
  15121. }
  15122. /**
  15123. * LibraryCase updateMany
  15124. */
  15125. export type LibraryCaseUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15126. /**
  15127. * The data used to update LibraryCases.
  15128. */
  15129. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  15130. /**
  15131. * Filter which LibraryCases to update
  15132. */
  15133. where?: LibraryCaseWhereInput
  15134. /**
  15135. * Limit how many LibraryCases to update.
  15136. */
  15137. limit?: number
  15138. }
  15139. /**
  15140. * LibraryCase updateManyAndReturn
  15141. */
  15142. export type LibraryCaseUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15143. /**
  15144. * Select specific fields to fetch from the LibraryCase
  15145. */
  15146. select?: LibraryCaseSelectUpdateManyAndReturn<ExtArgs> | null
  15147. /**
  15148. * Omit specific fields from the LibraryCase
  15149. */
  15150. omit?: LibraryCaseOmit<ExtArgs> | null
  15151. /**
  15152. * The data used to update LibraryCases.
  15153. */
  15154. data: XOR<LibraryCaseUpdateManyMutationInput, LibraryCaseUncheckedUpdateManyInput>
  15155. /**
  15156. * Filter which LibraryCases to update
  15157. */
  15158. where?: LibraryCaseWhereInput
  15159. /**
  15160. * Limit how many LibraryCases to update.
  15161. */
  15162. limit?: number
  15163. }
  15164. /**
  15165. * LibraryCase upsert
  15166. */
  15167. export type LibraryCaseUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15168. /**
  15169. * Select specific fields to fetch from the LibraryCase
  15170. */
  15171. select?: LibraryCaseSelect<ExtArgs> | null
  15172. /**
  15173. * Omit specific fields from the LibraryCase
  15174. */
  15175. omit?: LibraryCaseOmit<ExtArgs> | null
  15176. /**
  15177. * The filter to search for the LibraryCase to update in case it exists.
  15178. */
  15179. where: LibraryCaseWhereUniqueInput
  15180. /**
  15181. * In case the LibraryCase found by the `where` argument doesn't exist, create a new LibraryCase with this data.
  15182. */
  15183. create: XOR<LibraryCaseCreateInput, LibraryCaseUncheckedCreateInput>
  15184. /**
  15185. * In case the LibraryCase was found with the provided `where` argument, update it with this data.
  15186. */
  15187. update: XOR<LibraryCaseUpdateInput, LibraryCaseUncheckedUpdateInput>
  15188. }
  15189. /**
  15190. * LibraryCase delete
  15191. */
  15192. export type LibraryCaseDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15193. /**
  15194. * Select specific fields to fetch from the LibraryCase
  15195. */
  15196. select?: LibraryCaseSelect<ExtArgs> | null
  15197. /**
  15198. * Omit specific fields from the LibraryCase
  15199. */
  15200. omit?: LibraryCaseOmit<ExtArgs> | null
  15201. /**
  15202. * Filter which LibraryCase to delete.
  15203. */
  15204. where: LibraryCaseWhereUniqueInput
  15205. }
  15206. /**
  15207. * LibraryCase deleteMany
  15208. */
  15209. export type LibraryCaseDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15210. /**
  15211. * Filter which LibraryCases to delete
  15212. */
  15213. where?: LibraryCaseWhereInput
  15214. /**
  15215. * Limit how many LibraryCases to delete.
  15216. */
  15217. limit?: number
  15218. }
  15219. /**
  15220. * LibraryCase without action
  15221. */
  15222. export type LibraryCaseDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15223. /**
  15224. * Select specific fields to fetch from the LibraryCase
  15225. */
  15226. select?: LibraryCaseSelect<ExtArgs> | null
  15227. /**
  15228. * Omit specific fields from the LibraryCase
  15229. */
  15230. omit?: LibraryCaseOmit<ExtArgs> | null
  15231. }
  15232. /**
  15233. * Model AppFeedback
  15234. */
  15235. export type AggregateAppFeedback = {
  15236. _count: AppFeedbackCountAggregateOutputType | null
  15237. _min: AppFeedbackMinAggregateOutputType | null
  15238. _max: AppFeedbackMaxAggregateOutputType | null
  15239. }
  15240. export type AppFeedbackMinAggregateOutputType = {
  15241. id: string | null
  15242. userId: string | null
  15243. workspaceId: string | null
  15244. type: $Enums.FeedbackType | null
  15245. message: string | null
  15246. createdAt: Date | null
  15247. }
  15248. export type AppFeedbackMaxAggregateOutputType = {
  15249. id: string | null
  15250. userId: string | null
  15251. workspaceId: string | null
  15252. type: $Enums.FeedbackType | null
  15253. message: string | null
  15254. createdAt: Date | null
  15255. }
  15256. export type AppFeedbackCountAggregateOutputType = {
  15257. id: number
  15258. userId: number
  15259. workspaceId: number
  15260. type: number
  15261. message: number
  15262. createdAt: number
  15263. _all: number
  15264. }
  15265. export type AppFeedbackMinAggregateInputType = {
  15266. id?: true
  15267. userId?: true
  15268. workspaceId?: true
  15269. type?: true
  15270. message?: true
  15271. createdAt?: true
  15272. }
  15273. export type AppFeedbackMaxAggregateInputType = {
  15274. id?: true
  15275. userId?: true
  15276. workspaceId?: true
  15277. type?: true
  15278. message?: true
  15279. createdAt?: true
  15280. }
  15281. export type AppFeedbackCountAggregateInputType = {
  15282. id?: true
  15283. userId?: true
  15284. workspaceId?: true
  15285. type?: true
  15286. message?: true
  15287. createdAt?: true
  15288. _all?: true
  15289. }
  15290. export type AppFeedbackAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15291. /**
  15292. * Filter which AppFeedback to aggregate.
  15293. */
  15294. where?: AppFeedbackWhereInput
  15295. /**
  15296. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15297. *
  15298. * Determine the order of AppFeedbacks to fetch.
  15299. */
  15300. orderBy?: AppFeedbackOrderByWithRelationInput | AppFeedbackOrderByWithRelationInput[]
  15301. /**
  15302. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15303. *
  15304. * Sets the start position
  15305. */
  15306. cursor?: AppFeedbackWhereUniqueInput
  15307. /**
  15308. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15309. *
  15310. * Take `±n` AppFeedbacks from the position of the cursor.
  15311. */
  15312. take?: number
  15313. /**
  15314. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15315. *
  15316. * Skip the first `n` AppFeedbacks.
  15317. */
  15318. skip?: number
  15319. /**
  15320. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15321. *
  15322. * Count returned AppFeedbacks
  15323. **/
  15324. _count?: true | AppFeedbackCountAggregateInputType
  15325. /**
  15326. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15327. *
  15328. * Select which fields to find the minimum value
  15329. **/
  15330. _min?: AppFeedbackMinAggregateInputType
  15331. /**
  15332. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  15333. *
  15334. * Select which fields to find the maximum value
  15335. **/
  15336. _max?: AppFeedbackMaxAggregateInputType
  15337. }
  15338. export type GetAppFeedbackAggregateType<T extends AppFeedbackAggregateArgs> = {
  15339. [P in keyof T & keyof AggregateAppFeedback]: P extends '_count' | 'count'
  15340. ? T[P] extends true
  15341. ? number
  15342. : GetScalarType<T[P], AggregateAppFeedback[P]>
  15343. : GetScalarType<T[P], AggregateAppFeedback[P]>
  15344. }
  15345. export type AppFeedbackGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15346. where?: AppFeedbackWhereInput
  15347. orderBy?: AppFeedbackOrderByWithAggregationInput | AppFeedbackOrderByWithAggregationInput[]
  15348. by: AppFeedbackScalarFieldEnum[] | AppFeedbackScalarFieldEnum
  15349. having?: AppFeedbackScalarWhereWithAggregatesInput
  15350. take?: number
  15351. skip?: number
  15352. _count?: AppFeedbackCountAggregateInputType | true
  15353. _min?: AppFeedbackMinAggregateInputType
  15354. _max?: AppFeedbackMaxAggregateInputType
  15355. }
  15356. export type AppFeedbackGroupByOutputType = {
  15357. id: string
  15358. userId: string
  15359. workspaceId: string
  15360. type: $Enums.FeedbackType
  15361. message: string
  15362. createdAt: Date
  15363. _count: AppFeedbackCountAggregateOutputType | null
  15364. _min: AppFeedbackMinAggregateOutputType | null
  15365. _max: AppFeedbackMaxAggregateOutputType | null
  15366. }
  15367. type GetAppFeedbackGroupByPayload<T extends AppFeedbackGroupByArgs> = Prisma.PrismaPromise<
  15368. Array<
  15369. PickEnumerable<AppFeedbackGroupByOutputType, T['by']> &
  15370. {
  15371. [P in ((keyof T) & (keyof AppFeedbackGroupByOutputType))]: P extends '_count'
  15372. ? T[P] extends boolean
  15373. ? number
  15374. : GetScalarType<T[P], AppFeedbackGroupByOutputType[P]>
  15375. : GetScalarType<T[P], AppFeedbackGroupByOutputType[P]>
  15376. }
  15377. >
  15378. >
  15379. export type AppFeedbackSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15380. id?: boolean
  15381. userId?: boolean
  15382. workspaceId?: boolean
  15383. type?: boolean
  15384. message?: boolean
  15385. createdAt?: boolean
  15386. user?: boolean | UserDefaultArgs<ExtArgs>
  15387. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15388. }, ExtArgs["result"]["appFeedback"]>
  15389. export type AppFeedbackSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15390. id?: boolean
  15391. userId?: boolean
  15392. workspaceId?: boolean
  15393. type?: boolean
  15394. message?: boolean
  15395. createdAt?: boolean
  15396. user?: boolean | UserDefaultArgs<ExtArgs>
  15397. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15398. }, ExtArgs["result"]["appFeedback"]>
  15399. export type AppFeedbackSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  15400. id?: boolean
  15401. userId?: boolean
  15402. workspaceId?: boolean
  15403. type?: boolean
  15404. message?: boolean
  15405. createdAt?: boolean
  15406. user?: boolean | UserDefaultArgs<ExtArgs>
  15407. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15408. }, ExtArgs["result"]["appFeedback"]>
  15409. export type AppFeedbackSelectScalar = {
  15410. id?: boolean
  15411. userId?: boolean
  15412. workspaceId?: boolean
  15413. type?: boolean
  15414. message?: boolean
  15415. createdAt?: boolean
  15416. }
  15417. export type AppFeedbackOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "userId" | "workspaceId" | "type" | "message" | "createdAt", ExtArgs["result"]["appFeedback"]>
  15418. export type AppFeedbackInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15419. user?: boolean | UserDefaultArgs<ExtArgs>
  15420. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15421. }
  15422. export type AppFeedbackIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15423. user?: boolean | UserDefaultArgs<ExtArgs>
  15424. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15425. }
  15426. export type AppFeedbackIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15427. user?: boolean | UserDefaultArgs<ExtArgs>
  15428. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  15429. }
  15430. export type $AppFeedbackPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15431. name: "AppFeedback"
  15432. objects: {
  15433. user: Prisma.$UserPayload<ExtArgs>
  15434. workspace: Prisma.$WorkspacePayload<ExtArgs>
  15435. }
  15436. scalars: $Extensions.GetPayloadResult<{
  15437. id: string
  15438. userId: string
  15439. workspaceId: string
  15440. type: $Enums.FeedbackType
  15441. message: string
  15442. createdAt: Date
  15443. }, ExtArgs["result"]["appFeedback"]>
  15444. composites: {}
  15445. }
  15446. type AppFeedbackGetPayload<S extends boolean | null | undefined | AppFeedbackDefaultArgs> = $Result.GetResult<Prisma.$AppFeedbackPayload, S>
  15447. type AppFeedbackCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  15448. Omit<AppFeedbackFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  15449. select?: AppFeedbackCountAggregateInputType | true
  15450. }
  15451. export interface AppFeedbackDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  15452. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AppFeedback'], meta: { name: 'AppFeedback' } }
  15453. /**
  15454. * Find zero or one AppFeedback that matches the filter.
  15455. * @param {AppFeedbackFindUniqueArgs} args - Arguments to find a AppFeedback
  15456. * @example
  15457. * // Get one AppFeedback
  15458. * const appFeedback = await prisma.appFeedback.findUnique({
  15459. * where: {
  15460. * // ... provide filter here
  15461. * }
  15462. * })
  15463. */
  15464. findUnique<T extends AppFeedbackFindUniqueArgs>(args: SelectSubset<T, AppFeedbackFindUniqueArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15465. /**
  15466. * Find one AppFeedback that matches the filter or throw an error with `error.code='P2025'`
  15467. * if no matches were found.
  15468. * @param {AppFeedbackFindUniqueOrThrowArgs} args - Arguments to find a AppFeedback
  15469. * @example
  15470. * // Get one AppFeedback
  15471. * const appFeedback = await prisma.appFeedback.findUniqueOrThrow({
  15472. * where: {
  15473. * // ... provide filter here
  15474. * }
  15475. * })
  15476. */
  15477. findUniqueOrThrow<T extends AppFeedbackFindUniqueOrThrowArgs>(args: SelectSubset<T, AppFeedbackFindUniqueOrThrowArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15478. /**
  15479. * Find the first AppFeedback that matches the filter.
  15480. * Note, that providing `undefined` is treated as the value not being there.
  15481. * Read more here: https://pris.ly/d/null-undefined
  15482. * @param {AppFeedbackFindFirstArgs} args - Arguments to find a AppFeedback
  15483. * @example
  15484. * // Get one AppFeedback
  15485. * const appFeedback = await prisma.appFeedback.findFirst({
  15486. * where: {
  15487. * // ... provide filter here
  15488. * }
  15489. * })
  15490. */
  15491. findFirst<T extends AppFeedbackFindFirstArgs>(args?: SelectSubset<T, AppFeedbackFindFirstArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  15492. /**
  15493. * Find the first AppFeedback that matches the filter or
  15494. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  15495. * Note, that providing `undefined` is treated as the value not being there.
  15496. * Read more here: https://pris.ly/d/null-undefined
  15497. * @param {AppFeedbackFindFirstOrThrowArgs} args - Arguments to find a AppFeedback
  15498. * @example
  15499. * // Get one AppFeedback
  15500. * const appFeedback = await prisma.appFeedback.findFirstOrThrow({
  15501. * where: {
  15502. * // ... provide filter here
  15503. * }
  15504. * })
  15505. */
  15506. findFirstOrThrow<T extends AppFeedbackFindFirstOrThrowArgs>(args?: SelectSubset<T, AppFeedbackFindFirstOrThrowArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15507. /**
  15508. * Find zero or more AppFeedbacks that matches the filter.
  15509. * Note, that providing `undefined` is treated as the value not being there.
  15510. * Read more here: https://pris.ly/d/null-undefined
  15511. * @param {AppFeedbackFindManyArgs} args - Arguments to filter and select certain fields only.
  15512. * @example
  15513. * // Get all AppFeedbacks
  15514. * const appFeedbacks = await prisma.appFeedback.findMany()
  15515. *
  15516. * // Get first 10 AppFeedbacks
  15517. * const appFeedbacks = await prisma.appFeedback.findMany({ take: 10 })
  15518. *
  15519. * // Only select the `id`
  15520. * const appFeedbackWithIdOnly = await prisma.appFeedback.findMany({ select: { id: true } })
  15521. *
  15522. */
  15523. findMany<T extends AppFeedbackFindManyArgs>(args?: SelectSubset<T, AppFeedbackFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  15524. /**
  15525. * Create a AppFeedback.
  15526. * @param {AppFeedbackCreateArgs} args - Arguments to create a AppFeedback.
  15527. * @example
  15528. * // Create one AppFeedback
  15529. * const AppFeedback = await prisma.appFeedback.create({
  15530. * data: {
  15531. * // ... data to create a AppFeedback
  15532. * }
  15533. * })
  15534. *
  15535. */
  15536. create<T extends AppFeedbackCreateArgs>(args: SelectSubset<T, AppFeedbackCreateArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15537. /**
  15538. * Create many AppFeedbacks.
  15539. * @param {AppFeedbackCreateManyArgs} args - Arguments to create many AppFeedbacks.
  15540. * @example
  15541. * // Create many AppFeedbacks
  15542. * const appFeedback = await prisma.appFeedback.createMany({
  15543. * data: [
  15544. * // ... provide data here
  15545. * ]
  15546. * })
  15547. *
  15548. */
  15549. createMany<T extends AppFeedbackCreateManyArgs>(args?: SelectSubset<T, AppFeedbackCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15550. /**
  15551. * Create many AppFeedbacks and returns the data saved in the database.
  15552. * @param {AppFeedbackCreateManyAndReturnArgs} args - Arguments to create many AppFeedbacks.
  15553. * @example
  15554. * // Create many AppFeedbacks
  15555. * const appFeedback = await prisma.appFeedback.createManyAndReturn({
  15556. * data: [
  15557. * // ... provide data here
  15558. * ]
  15559. * })
  15560. *
  15561. * // Create many AppFeedbacks and only return the `id`
  15562. * const appFeedbackWithIdOnly = await prisma.appFeedback.createManyAndReturn({
  15563. * select: { id: true },
  15564. * data: [
  15565. * // ... provide data here
  15566. * ]
  15567. * })
  15568. * Note, that providing `undefined` is treated as the value not being there.
  15569. * Read more here: https://pris.ly/d/null-undefined
  15570. *
  15571. */
  15572. createManyAndReturn<T extends AppFeedbackCreateManyAndReturnArgs>(args?: SelectSubset<T, AppFeedbackCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  15573. /**
  15574. * Delete a AppFeedback.
  15575. * @param {AppFeedbackDeleteArgs} args - Arguments to delete one AppFeedback.
  15576. * @example
  15577. * // Delete one AppFeedback
  15578. * const AppFeedback = await prisma.appFeedback.delete({
  15579. * where: {
  15580. * // ... filter to delete one AppFeedback
  15581. * }
  15582. * })
  15583. *
  15584. */
  15585. delete<T extends AppFeedbackDeleteArgs>(args: SelectSubset<T, AppFeedbackDeleteArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15586. /**
  15587. * Update one AppFeedback.
  15588. * @param {AppFeedbackUpdateArgs} args - Arguments to update one AppFeedback.
  15589. * @example
  15590. * // Update one AppFeedback
  15591. * const appFeedback = await prisma.appFeedback.update({
  15592. * where: {
  15593. * // ... provide filter here
  15594. * },
  15595. * data: {
  15596. * // ... provide data here
  15597. * }
  15598. * })
  15599. *
  15600. */
  15601. update<T extends AppFeedbackUpdateArgs>(args: SelectSubset<T, AppFeedbackUpdateArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15602. /**
  15603. * Delete zero or more AppFeedbacks.
  15604. * @param {AppFeedbackDeleteManyArgs} args - Arguments to filter AppFeedbacks to delete.
  15605. * @example
  15606. * // Delete a few AppFeedbacks
  15607. * const { count } = await prisma.appFeedback.deleteMany({
  15608. * where: {
  15609. * // ... provide filter here
  15610. * }
  15611. * })
  15612. *
  15613. */
  15614. deleteMany<T extends AppFeedbackDeleteManyArgs>(args?: SelectSubset<T, AppFeedbackDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15615. /**
  15616. * Update zero or more AppFeedbacks.
  15617. * Note, that providing `undefined` is treated as the value not being there.
  15618. * Read more here: https://pris.ly/d/null-undefined
  15619. * @param {AppFeedbackUpdateManyArgs} args - Arguments to update one or more rows.
  15620. * @example
  15621. * // Update many AppFeedbacks
  15622. * const appFeedback = await prisma.appFeedback.updateMany({
  15623. * where: {
  15624. * // ... provide filter here
  15625. * },
  15626. * data: {
  15627. * // ... provide data here
  15628. * }
  15629. * })
  15630. *
  15631. */
  15632. updateMany<T extends AppFeedbackUpdateManyArgs>(args: SelectSubset<T, AppFeedbackUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  15633. /**
  15634. * Update zero or more AppFeedbacks and returns the data updated in the database.
  15635. * @param {AppFeedbackUpdateManyAndReturnArgs} args - Arguments to update many AppFeedbacks.
  15636. * @example
  15637. * // Update many AppFeedbacks
  15638. * const appFeedback = await prisma.appFeedback.updateManyAndReturn({
  15639. * where: {
  15640. * // ... provide filter here
  15641. * },
  15642. * data: [
  15643. * // ... provide data here
  15644. * ]
  15645. * })
  15646. *
  15647. * // Update zero or more AppFeedbacks and only return the `id`
  15648. * const appFeedbackWithIdOnly = await prisma.appFeedback.updateManyAndReturn({
  15649. * select: { id: true },
  15650. * where: {
  15651. * // ... provide filter here
  15652. * },
  15653. * data: [
  15654. * // ... provide data here
  15655. * ]
  15656. * })
  15657. * Note, that providing `undefined` is treated as the value not being there.
  15658. * Read more here: https://pris.ly/d/null-undefined
  15659. *
  15660. */
  15661. updateManyAndReturn<T extends AppFeedbackUpdateManyAndReturnArgs>(args: SelectSubset<T, AppFeedbackUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  15662. /**
  15663. * Create or update one AppFeedback.
  15664. * @param {AppFeedbackUpsertArgs} args - Arguments to update or create a AppFeedback.
  15665. * @example
  15666. * // Update or create a AppFeedback
  15667. * const appFeedback = await prisma.appFeedback.upsert({
  15668. * create: {
  15669. * // ... data to create a AppFeedback
  15670. * },
  15671. * update: {
  15672. * // ... in case it already exists, update
  15673. * },
  15674. * where: {
  15675. * // ... the filter for the AppFeedback we want to update
  15676. * }
  15677. * })
  15678. */
  15679. upsert<T extends AppFeedbackUpsertArgs>(args: SelectSubset<T, AppFeedbackUpsertArgs<ExtArgs>>): Prisma__AppFeedbackClient<$Result.GetResult<Prisma.$AppFeedbackPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  15680. /**
  15681. * Count the number of AppFeedbacks.
  15682. * Note, that providing `undefined` is treated as the value not being there.
  15683. * Read more here: https://pris.ly/d/null-undefined
  15684. * @param {AppFeedbackCountArgs} args - Arguments to filter AppFeedbacks to count.
  15685. * @example
  15686. * // Count the number of AppFeedbacks
  15687. * const count = await prisma.appFeedback.count({
  15688. * where: {
  15689. * // ... the filter for the AppFeedbacks we want to count
  15690. * }
  15691. * })
  15692. **/
  15693. count<T extends AppFeedbackCountArgs>(
  15694. args?: Subset<T, AppFeedbackCountArgs>,
  15695. ): Prisma.PrismaPromise<
  15696. T extends $Utils.Record<'select', any>
  15697. ? T['select'] extends true
  15698. ? number
  15699. : GetScalarType<T['select'], AppFeedbackCountAggregateOutputType>
  15700. : number
  15701. >
  15702. /**
  15703. * Allows you to perform aggregations operations on a AppFeedback.
  15704. * Note, that providing `undefined` is treated as the value not being there.
  15705. * Read more here: https://pris.ly/d/null-undefined
  15706. * @param {AppFeedbackAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  15707. * @example
  15708. * // Ordered by age ascending
  15709. * // Where email contains prisma.io
  15710. * // Limited to the 10 users
  15711. * const aggregations = await prisma.user.aggregate({
  15712. * _avg: {
  15713. * age: true,
  15714. * },
  15715. * where: {
  15716. * email: {
  15717. * contains: "prisma.io",
  15718. * },
  15719. * },
  15720. * orderBy: {
  15721. * age: "asc",
  15722. * },
  15723. * take: 10,
  15724. * })
  15725. **/
  15726. aggregate<T extends AppFeedbackAggregateArgs>(args: Subset<T, AppFeedbackAggregateArgs>): Prisma.PrismaPromise<GetAppFeedbackAggregateType<T>>
  15727. /**
  15728. * Group by AppFeedback.
  15729. * Note, that providing `undefined` is treated as the value not being there.
  15730. * Read more here: https://pris.ly/d/null-undefined
  15731. * @param {AppFeedbackGroupByArgs} args - Group by arguments.
  15732. * @example
  15733. * // Group by city, order by createdAt, get count
  15734. * const result = await prisma.user.groupBy({
  15735. * by: ['city', 'createdAt'],
  15736. * orderBy: {
  15737. * createdAt: true
  15738. * },
  15739. * _count: {
  15740. * _all: true
  15741. * },
  15742. * })
  15743. *
  15744. **/
  15745. groupBy<
  15746. T extends AppFeedbackGroupByArgs,
  15747. HasSelectOrTake extends Or<
  15748. Extends<'skip', Keys<T>>,
  15749. Extends<'take', Keys<T>>
  15750. >,
  15751. OrderByArg extends True extends HasSelectOrTake
  15752. ? { orderBy: AppFeedbackGroupByArgs['orderBy'] }
  15753. : { orderBy?: AppFeedbackGroupByArgs['orderBy'] },
  15754. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  15755. ByFields extends MaybeTupleToUnion<T['by']>,
  15756. ByValid extends Has<ByFields, OrderFields>,
  15757. HavingFields extends GetHavingFields<T['having']>,
  15758. HavingValid extends Has<ByFields, HavingFields>,
  15759. ByEmpty extends T['by'] extends never[] ? True : False,
  15760. InputErrors extends ByEmpty extends True
  15761. ? `Error: "by" must not be empty.`
  15762. : HavingValid extends False
  15763. ? {
  15764. [P in HavingFields]: P extends ByFields
  15765. ? never
  15766. : P extends string
  15767. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  15768. : [
  15769. Error,
  15770. 'Field ',
  15771. P,
  15772. ` in "having" needs to be provided in "by"`,
  15773. ]
  15774. }[HavingFields]
  15775. : 'take' extends Keys<T>
  15776. ? 'orderBy' extends Keys<T>
  15777. ? ByValid extends True
  15778. ? {}
  15779. : {
  15780. [P in OrderFields]: P extends ByFields
  15781. ? never
  15782. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15783. }[OrderFields]
  15784. : 'Error: If you provide "take", you also need to provide "orderBy"'
  15785. : 'skip' extends Keys<T>
  15786. ? 'orderBy' extends Keys<T>
  15787. ? ByValid extends True
  15788. ? {}
  15789. : {
  15790. [P in OrderFields]: P extends ByFields
  15791. ? never
  15792. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15793. }[OrderFields]
  15794. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  15795. : ByValid extends True
  15796. ? {}
  15797. : {
  15798. [P in OrderFields]: P extends ByFields
  15799. ? never
  15800. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  15801. }[OrderFields]
  15802. >(args: SubsetIntersection<T, AppFeedbackGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAppFeedbackGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  15803. /**
  15804. * Fields of the AppFeedback model
  15805. */
  15806. readonly fields: AppFeedbackFieldRefs;
  15807. }
  15808. /**
  15809. * The delegate class that acts as a "Promise-like" for AppFeedback.
  15810. * Why is this prefixed with `Prisma__`?
  15811. * Because we want to prevent naming conflicts as mentioned in
  15812. * https://github.com/prisma/prisma-client-js/issues/707
  15813. */
  15814. export interface Prisma__AppFeedbackClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  15815. readonly [Symbol.toStringTag]: "PrismaPromise"
  15816. user<T extends UserDefaultArgs<ExtArgs> = {}>(args?: Subset<T, UserDefaultArgs<ExtArgs>>): Prisma__UserClient<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  15817. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  15818. /**
  15819. * Attaches callbacks for the resolution and/or rejection of the Promise.
  15820. * @param onfulfilled The callback to execute when the Promise is resolved.
  15821. * @param onrejected The callback to execute when the Promise is rejected.
  15822. * @returns A Promise for the completion of which ever callback is executed.
  15823. */
  15824. 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>
  15825. /**
  15826. * Attaches a callback for only the rejection of the Promise.
  15827. * @param onrejected The callback to execute when the Promise is rejected.
  15828. * @returns A Promise for the completion of the callback.
  15829. */
  15830. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  15831. /**
  15832. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  15833. * resolved value cannot be modified from the callback.
  15834. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  15835. * @returns A Promise for the completion of the callback.
  15836. */
  15837. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  15838. }
  15839. /**
  15840. * Fields of the AppFeedback model
  15841. */
  15842. interface AppFeedbackFieldRefs {
  15843. readonly id: FieldRef<"AppFeedback", 'String'>
  15844. readonly userId: FieldRef<"AppFeedback", 'String'>
  15845. readonly workspaceId: FieldRef<"AppFeedback", 'String'>
  15846. readonly type: FieldRef<"AppFeedback", 'FeedbackType'>
  15847. readonly message: FieldRef<"AppFeedback", 'String'>
  15848. readonly createdAt: FieldRef<"AppFeedback", 'DateTime'>
  15849. }
  15850. // Custom InputTypes
  15851. /**
  15852. * AppFeedback findUnique
  15853. */
  15854. export type AppFeedbackFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15855. /**
  15856. * Select specific fields to fetch from the AppFeedback
  15857. */
  15858. select?: AppFeedbackSelect<ExtArgs> | null
  15859. /**
  15860. * Omit specific fields from the AppFeedback
  15861. */
  15862. omit?: AppFeedbackOmit<ExtArgs> | null
  15863. /**
  15864. * Choose, which related nodes to fetch as well
  15865. */
  15866. include?: AppFeedbackInclude<ExtArgs> | null
  15867. /**
  15868. * Filter, which AppFeedback to fetch.
  15869. */
  15870. where: AppFeedbackWhereUniqueInput
  15871. }
  15872. /**
  15873. * AppFeedback findUniqueOrThrow
  15874. */
  15875. export type AppFeedbackFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15876. /**
  15877. * Select specific fields to fetch from the AppFeedback
  15878. */
  15879. select?: AppFeedbackSelect<ExtArgs> | null
  15880. /**
  15881. * Omit specific fields from the AppFeedback
  15882. */
  15883. omit?: AppFeedbackOmit<ExtArgs> | null
  15884. /**
  15885. * Choose, which related nodes to fetch as well
  15886. */
  15887. include?: AppFeedbackInclude<ExtArgs> | null
  15888. /**
  15889. * Filter, which AppFeedback to fetch.
  15890. */
  15891. where: AppFeedbackWhereUniqueInput
  15892. }
  15893. /**
  15894. * AppFeedback findFirst
  15895. */
  15896. export type AppFeedbackFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15897. /**
  15898. * Select specific fields to fetch from the AppFeedback
  15899. */
  15900. select?: AppFeedbackSelect<ExtArgs> | null
  15901. /**
  15902. * Omit specific fields from the AppFeedback
  15903. */
  15904. omit?: AppFeedbackOmit<ExtArgs> | null
  15905. /**
  15906. * Choose, which related nodes to fetch as well
  15907. */
  15908. include?: AppFeedbackInclude<ExtArgs> | null
  15909. /**
  15910. * Filter, which AppFeedback to fetch.
  15911. */
  15912. where?: AppFeedbackWhereInput
  15913. /**
  15914. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15915. *
  15916. * Determine the order of AppFeedbacks to fetch.
  15917. */
  15918. orderBy?: AppFeedbackOrderByWithRelationInput | AppFeedbackOrderByWithRelationInput[]
  15919. /**
  15920. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15921. *
  15922. * Sets the position for searching for AppFeedbacks.
  15923. */
  15924. cursor?: AppFeedbackWhereUniqueInput
  15925. /**
  15926. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15927. *
  15928. * Take `±n` AppFeedbacks from the position of the cursor.
  15929. */
  15930. take?: number
  15931. /**
  15932. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15933. *
  15934. * Skip the first `n` AppFeedbacks.
  15935. */
  15936. skip?: number
  15937. /**
  15938. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15939. *
  15940. * Filter by unique combinations of AppFeedbacks.
  15941. */
  15942. distinct?: AppFeedbackScalarFieldEnum | AppFeedbackScalarFieldEnum[]
  15943. }
  15944. /**
  15945. * AppFeedback findFirstOrThrow
  15946. */
  15947. export type AppFeedbackFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15948. /**
  15949. * Select specific fields to fetch from the AppFeedback
  15950. */
  15951. select?: AppFeedbackSelect<ExtArgs> | null
  15952. /**
  15953. * Omit specific fields from the AppFeedback
  15954. */
  15955. omit?: AppFeedbackOmit<ExtArgs> | null
  15956. /**
  15957. * Choose, which related nodes to fetch as well
  15958. */
  15959. include?: AppFeedbackInclude<ExtArgs> | null
  15960. /**
  15961. * Filter, which AppFeedback to fetch.
  15962. */
  15963. where?: AppFeedbackWhereInput
  15964. /**
  15965. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  15966. *
  15967. * Determine the order of AppFeedbacks to fetch.
  15968. */
  15969. orderBy?: AppFeedbackOrderByWithRelationInput | AppFeedbackOrderByWithRelationInput[]
  15970. /**
  15971. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  15972. *
  15973. * Sets the position for searching for AppFeedbacks.
  15974. */
  15975. cursor?: AppFeedbackWhereUniqueInput
  15976. /**
  15977. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15978. *
  15979. * Take `±n` AppFeedbacks from the position of the cursor.
  15980. */
  15981. take?: number
  15982. /**
  15983. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  15984. *
  15985. * Skip the first `n` AppFeedbacks.
  15986. */
  15987. skip?: number
  15988. /**
  15989. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  15990. *
  15991. * Filter by unique combinations of AppFeedbacks.
  15992. */
  15993. distinct?: AppFeedbackScalarFieldEnum | AppFeedbackScalarFieldEnum[]
  15994. }
  15995. /**
  15996. * AppFeedback findMany
  15997. */
  15998. export type AppFeedbackFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  15999. /**
  16000. * Select specific fields to fetch from the AppFeedback
  16001. */
  16002. select?: AppFeedbackSelect<ExtArgs> | null
  16003. /**
  16004. * Omit specific fields from the AppFeedback
  16005. */
  16006. omit?: AppFeedbackOmit<ExtArgs> | null
  16007. /**
  16008. * Choose, which related nodes to fetch as well
  16009. */
  16010. include?: AppFeedbackInclude<ExtArgs> | null
  16011. /**
  16012. * Filter, which AppFeedbacks to fetch.
  16013. */
  16014. where?: AppFeedbackWhereInput
  16015. /**
  16016. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  16017. *
  16018. * Determine the order of AppFeedbacks to fetch.
  16019. */
  16020. orderBy?: AppFeedbackOrderByWithRelationInput | AppFeedbackOrderByWithRelationInput[]
  16021. /**
  16022. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  16023. *
  16024. * Sets the position for listing AppFeedbacks.
  16025. */
  16026. cursor?: AppFeedbackWhereUniqueInput
  16027. /**
  16028. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16029. *
  16030. * Take `±n` AppFeedbacks from the position of the cursor.
  16031. */
  16032. take?: number
  16033. /**
  16034. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16035. *
  16036. * Skip the first `n` AppFeedbacks.
  16037. */
  16038. skip?: number
  16039. distinct?: AppFeedbackScalarFieldEnum | AppFeedbackScalarFieldEnum[]
  16040. }
  16041. /**
  16042. * AppFeedback create
  16043. */
  16044. export type AppFeedbackCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16045. /**
  16046. * Select specific fields to fetch from the AppFeedback
  16047. */
  16048. select?: AppFeedbackSelect<ExtArgs> | null
  16049. /**
  16050. * Omit specific fields from the AppFeedback
  16051. */
  16052. omit?: AppFeedbackOmit<ExtArgs> | null
  16053. /**
  16054. * Choose, which related nodes to fetch as well
  16055. */
  16056. include?: AppFeedbackInclude<ExtArgs> | null
  16057. /**
  16058. * The data needed to create a AppFeedback.
  16059. */
  16060. data: XOR<AppFeedbackCreateInput, AppFeedbackUncheckedCreateInput>
  16061. }
  16062. /**
  16063. * AppFeedback createMany
  16064. */
  16065. export type AppFeedbackCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16066. /**
  16067. * The data used to create many AppFeedbacks.
  16068. */
  16069. data: AppFeedbackCreateManyInput | AppFeedbackCreateManyInput[]
  16070. skipDuplicates?: boolean
  16071. }
  16072. /**
  16073. * AppFeedback createManyAndReturn
  16074. */
  16075. export type AppFeedbackCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16076. /**
  16077. * Select specific fields to fetch from the AppFeedback
  16078. */
  16079. select?: AppFeedbackSelectCreateManyAndReturn<ExtArgs> | null
  16080. /**
  16081. * Omit specific fields from the AppFeedback
  16082. */
  16083. omit?: AppFeedbackOmit<ExtArgs> | null
  16084. /**
  16085. * The data used to create many AppFeedbacks.
  16086. */
  16087. data: AppFeedbackCreateManyInput | AppFeedbackCreateManyInput[]
  16088. skipDuplicates?: boolean
  16089. /**
  16090. * Choose, which related nodes to fetch as well
  16091. */
  16092. include?: AppFeedbackIncludeCreateManyAndReturn<ExtArgs> | null
  16093. }
  16094. /**
  16095. * AppFeedback update
  16096. */
  16097. export type AppFeedbackUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16098. /**
  16099. * Select specific fields to fetch from the AppFeedback
  16100. */
  16101. select?: AppFeedbackSelect<ExtArgs> | null
  16102. /**
  16103. * Omit specific fields from the AppFeedback
  16104. */
  16105. omit?: AppFeedbackOmit<ExtArgs> | null
  16106. /**
  16107. * Choose, which related nodes to fetch as well
  16108. */
  16109. include?: AppFeedbackInclude<ExtArgs> | null
  16110. /**
  16111. * The data needed to update a AppFeedback.
  16112. */
  16113. data: XOR<AppFeedbackUpdateInput, AppFeedbackUncheckedUpdateInput>
  16114. /**
  16115. * Choose, which AppFeedback to update.
  16116. */
  16117. where: AppFeedbackWhereUniqueInput
  16118. }
  16119. /**
  16120. * AppFeedback updateMany
  16121. */
  16122. export type AppFeedbackUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16123. /**
  16124. * The data used to update AppFeedbacks.
  16125. */
  16126. data: XOR<AppFeedbackUpdateManyMutationInput, AppFeedbackUncheckedUpdateManyInput>
  16127. /**
  16128. * Filter which AppFeedbacks to update
  16129. */
  16130. where?: AppFeedbackWhereInput
  16131. /**
  16132. * Limit how many AppFeedbacks to update.
  16133. */
  16134. limit?: number
  16135. }
  16136. /**
  16137. * AppFeedback updateManyAndReturn
  16138. */
  16139. export type AppFeedbackUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16140. /**
  16141. * Select specific fields to fetch from the AppFeedback
  16142. */
  16143. select?: AppFeedbackSelectUpdateManyAndReturn<ExtArgs> | null
  16144. /**
  16145. * Omit specific fields from the AppFeedback
  16146. */
  16147. omit?: AppFeedbackOmit<ExtArgs> | null
  16148. /**
  16149. * The data used to update AppFeedbacks.
  16150. */
  16151. data: XOR<AppFeedbackUpdateManyMutationInput, AppFeedbackUncheckedUpdateManyInput>
  16152. /**
  16153. * Filter which AppFeedbacks to update
  16154. */
  16155. where?: AppFeedbackWhereInput
  16156. /**
  16157. * Limit how many AppFeedbacks to update.
  16158. */
  16159. limit?: number
  16160. /**
  16161. * Choose, which related nodes to fetch as well
  16162. */
  16163. include?: AppFeedbackIncludeUpdateManyAndReturn<ExtArgs> | null
  16164. }
  16165. /**
  16166. * AppFeedback upsert
  16167. */
  16168. export type AppFeedbackUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16169. /**
  16170. * Select specific fields to fetch from the AppFeedback
  16171. */
  16172. select?: AppFeedbackSelect<ExtArgs> | null
  16173. /**
  16174. * Omit specific fields from the AppFeedback
  16175. */
  16176. omit?: AppFeedbackOmit<ExtArgs> | null
  16177. /**
  16178. * Choose, which related nodes to fetch as well
  16179. */
  16180. include?: AppFeedbackInclude<ExtArgs> | null
  16181. /**
  16182. * The filter to search for the AppFeedback to update in case it exists.
  16183. */
  16184. where: AppFeedbackWhereUniqueInput
  16185. /**
  16186. * In case the AppFeedback found by the `where` argument doesn't exist, create a new AppFeedback with this data.
  16187. */
  16188. create: XOR<AppFeedbackCreateInput, AppFeedbackUncheckedCreateInput>
  16189. /**
  16190. * In case the AppFeedback was found with the provided `where` argument, update it with this data.
  16191. */
  16192. update: XOR<AppFeedbackUpdateInput, AppFeedbackUncheckedUpdateInput>
  16193. }
  16194. /**
  16195. * AppFeedback delete
  16196. */
  16197. export type AppFeedbackDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16198. /**
  16199. * Select specific fields to fetch from the AppFeedback
  16200. */
  16201. select?: AppFeedbackSelect<ExtArgs> | null
  16202. /**
  16203. * Omit specific fields from the AppFeedback
  16204. */
  16205. omit?: AppFeedbackOmit<ExtArgs> | null
  16206. /**
  16207. * Choose, which related nodes to fetch as well
  16208. */
  16209. include?: AppFeedbackInclude<ExtArgs> | null
  16210. /**
  16211. * Filter which AppFeedback to delete.
  16212. */
  16213. where: AppFeedbackWhereUniqueInput
  16214. }
  16215. /**
  16216. * AppFeedback deleteMany
  16217. */
  16218. export type AppFeedbackDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16219. /**
  16220. * Filter which AppFeedbacks to delete
  16221. */
  16222. where?: AppFeedbackWhereInput
  16223. /**
  16224. * Limit how many AppFeedbacks to delete.
  16225. */
  16226. limit?: number
  16227. }
  16228. /**
  16229. * AppFeedback without action
  16230. */
  16231. export type AppFeedbackDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16232. /**
  16233. * Select specific fields to fetch from the AppFeedback
  16234. */
  16235. select?: AppFeedbackSelect<ExtArgs> | null
  16236. /**
  16237. * Omit specific fields from the AppFeedback
  16238. */
  16239. omit?: AppFeedbackOmit<ExtArgs> | null
  16240. /**
  16241. * Choose, which related nodes to fetch as well
  16242. */
  16243. include?: AppFeedbackInclude<ExtArgs> | null
  16244. }
  16245. /**
  16246. * Model ShareLink
  16247. */
  16248. export type AggregateShareLink = {
  16249. _count: ShareLinkCountAggregateOutputType | null
  16250. _min: ShareLinkMinAggregateOutputType | null
  16251. _max: ShareLinkMaxAggregateOutputType | null
  16252. }
  16253. export type ShareLinkMinAggregateOutputType = {
  16254. id: string | null
  16255. workspaceId: string | null
  16256. token: string | null
  16257. expiresAt: Date | null
  16258. createdAt: Date | null
  16259. }
  16260. export type ShareLinkMaxAggregateOutputType = {
  16261. id: string | null
  16262. workspaceId: string | null
  16263. token: string | null
  16264. expiresAt: Date | null
  16265. createdAt: Date | null
  16266. }
  16267. export type ShareLinkCountAggregateOutputType = {
  16268. id: number
  16269. workspaceId: number
  16270. token: number
  16271. expiresAt: number
  16272. createdAt: number
  16273. _all: number
  16274. }
  16275. export type ShareLinkMinAggregateInputType = {
  16276. id?: true
  16277. workspaceId?: true
  16278. token?: true
  16279. expiresAt?: true
  16280. createdAt?: true
  16281. }
  16282. export type ShareLinkMaxAggregateInputType = {
  16283. id?: true
  16284. workspaceId?: true
  16285. token?: true
  16286. expiresAt?: true
  16287. createdAt?: true
  16288. }
  16289. export type ShareLinkCountAggregateInputType = {
  16290. id?: true
  16291. workspaceId?: true
  16292. token?: true
  16293. expiresAt?: true
  16294. createdAt?: true
  16295. _all?: true
  16296. }
  16297. export type ShareLinkAggregateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16298. /**
  16299. * Filter which ShareLink to aggregate.
  16300. */
  16301. where?: ShareLinkWhereInput
  16302. /**
  16303. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  16304. *
  16305. * Determine the order of ShareLinks to fetch.
  16306. */
  16307. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  16308. /**
  16309. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  16310. *
  16311. * Sets the start position
  16312. */
  16313. cursor?: ShareLinkWhereUniqueInput
  16314. /**
  16315. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16316. *
  16317. * Take `±n` ShareLinks from the position of the cursor.
  16318. */
  16319. take?: number
  16320. /**
  16321. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16322. *
  16323. * Skip the first `n` ShareLinks.
  16324. */
  16325. skip?: number
  16326. /**
  16327. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  16328. *
  16329. * Count returned ShareLinks
  16330. **/
  16331. _count?: true | ShareLinkCountAggregateInputType
  16332. /**
  16333. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  16334. *
  16335. * Select which fields to find the minimum value
  16336. **/
  16337. _min?: ShareLinkMinAggregateInputType
  16338. /**
  16339. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
  16340. *
  16341. * Select which fields to find the maximum value
  16342. **/
  16343. _max?: ShareLinkMaxAggregateInputType
  16344. }
  16345. export type GetShareLinkAggregateType<T extends ShareLinkAggregateArgs> = {
  16346. [P in keyof T & keyof AggregateShareLink]: P extends '_count' | 'count'
  16347. ? T[P] extends true
  16348. ? number
  16349. : GetScalarType<T[P], AggregateShareLink[P]>
  16350. : GetScalarType<T[P], AggregateShareLink[P]>
  16351. }
  16352. export type ShareLinkGroupByArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16353. where?: ShareLinkWhereInput
  16354. orderBy?: ShareLinkOrderByWithAggregationInput | ShareLinkOrderByWithAggregationInput[]
  16355. by: ShareLinkScalarFieldEnum[] | ShareLinkScalarFieldEnum
  16356. having?: ShareLinkScalarWhereWithAggregatesInput
  16357. take?: number
  16358. skip?: number
  16359. _count?: ShareLinkCountAggregateInputType | true
  16360. _min?: ShareLinkMinAggregateInputType
  16361. _max?: ShareLinkMaxAggregateInputType
  16362. }
  16363. export type ShareLinkGroupByOutputType = {
  16364. id: string
  16365. workspaceId: string
  16366. token: string
  16367. expiresAt: Date | null
  16368. createdAt: Date
  16369. _count: ShareLinkCountAggregateOutputType | null
  16370. _min: ShareLinkMinAggregateOutputType | null
  16371. _max: ShareLinkMaxAggregateOutputType | null
  16372. }
  16373. type GetShareLinkGroupByPayload<T extends ShareLinkGroupByArgs> = Prisma.PrismaPromise<
  16374. Array<
  16375. PickEnumerable<ShareLinkGroupByOutputType, T['by']> &
  16376. {
  16377. [P in ((keyof T) & (keyof ShareLinkGroupByOutputType))]: P extends '_count'
  16378. ? T[P] extends boolean
  16379. ? number
  16380. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  16381. : GetScalarType<T[P], ShareLinkGroupByOutputType[P]>
  16382. }
  16383. >
  16384. >
  16385. export type ShareLinkSelect<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  16386. id?: boolean
  16387. workspaceId?: boolean
  16388. token?: boolean
  16389. expiresAt?: boolean
  16390. createdAt?: boolean
  16391. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  16392. }, ExtArgs["result"]["shareLink"]>
  16393. export type ShareLinkSelectCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  16394. id?: boolean
  16395. workspaceId?: boolean
  16396. token?: boolean
  16397. expiresAt?: boolean
  16398. createdAt?: boolean
  16399. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  16400. }, ExtArgs["result"]["shareLink"]>
  16401. export type ShareLinkSelectUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetSelect<{
  16402. id?: boolean
  16403. workspaceId?: boolean
  16404. token?: boolean
  16405. expiresAt?: boolean
  16406. createdAt?: boolean
  16407. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  16408. }, ExtArgs["result"]["shareLink"]>
  16409. export type ShareLinkSelectScalar = {
  16410. id?: boolean
  16411. workspaceId?: boolean
  16412. token?: boolean
  16413. expiresAt?: boolean
  16414. createdAt?: boolean
  16415. }
  16416. export type ShareLinkOmit<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = $Extensions.GetOmit<"id" | "workspaceId" | "token" | "expiresAt" | "createdAt", ExtArgs["result"]["shareLink"]>
  16417. export type ShareLinkInclude<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16418. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  16419. }
  16420. export type ShareLinkIncludeCreateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16421. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  16422. }
  16423. export type ShareLinkIncludeUpdateManyAndReturn<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16424. workspace?: boolean | WorkspaceDefaultArgs<ExtArgs>
  16425. }
  16426. export type $ShareLinkPayload<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16427. name: "ShareLink"
  16428. objects: {
  16429. workspace: Prisma.$WorkspacePayload<ExtArgs>
  16430. }
  16431. scalars: $Extensions.GetPayloadResult<{
  16432. id: string
  16433. workspaceId: string
  16434. token: string
  16435. expiresAt: Date | null
  16436. createdAt: Date
  16437. }, ExtArgs["result"]["shareLink"]>
  16438. composites: {}
  16439. }
  16440. type ShareLinkGetPayload<S extends boolean | null | undefined | ShareLinkDefaultArgs> = $Result.GetResult<Prisma.$ShareLinkPayload, S>
  16441. type ShareLinkCountArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> =
  16442. Omit<ShareLinkFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
  16443. select?: ShareLinkCountAggregateInputType | true
  16444. }
  16445. export interface ShareLinkDelegate<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> {
  16446. [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ShareLink'], meta: { name: 'ShareLink' } }
  16447. /**
  16448. * Find zero or one ShareLink that matches the filter.
  16449. * @param {ShareLinkFindUniqueArgs} args - Arguments to find a ShareLink
  16450. * @example
  16451. * // Get one ShareLink
  16452. * const shareLink = await prisma.shareLink.findUnique({
  16453. * where: {
  16454. * // ... provide filter here
  16455. * }
  16456. * })
  16457. */
  16458. findUnique<T extends ShareLinkFindUniqueArgs>(args: SelectSubset<T, ShareLinkFindUniqueArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  16459. /**
  16460. * Find one ShareLink that matches the filter or throw an error with `error.code='P2025'`
  16461. * if no matches were found.
  16462. * @param {ShareLinkFindUniqueOrThrowArgs} args - Arguments to find a ShareLink
  16463. * @example
  16464. * // Get one ShareLink
  16465. * const shareLink = await prisma.shareLink.findUniqueOrThrow({
  16466. * where: {
  16467. * // ... provide filter here
  16468. * }
  16469. * })
  16470. */
  16471. findUniqueOrThrow<T extends ShareLinkFindUniqueOrThrowArgs>(args: SelectSubset<T, ShareLinkFindUniqueOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  16472. /**
  16473. * Find the first ShareLink that matches the filter.
  16474. * Note, that providing `undefined` is treated as the value not being there.
  16475. * Read more here: https://pris.ly/d/null-undefined
  16476. * @param {ShareLinkFindFirstArgs} args - Arguments to find a ShareLink
  16477. * @example
  16478. * // Get one ShareLink
  16479. * const shareLink = await prisma.shareLink.findFirst({
  16480. * where: {
  16481. * // ... provide filter here
  16482. * }
  16483. * })
  16484. */
  16485. findFirst<T extends ShareLinkFindFirstArgs>(args?: SelectSubset<T, ShareLinkFindFirstArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
  16486. /**
  16487. * Find the first ShareLink that matches the filter or
  16488. * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
  16489. * Note, that providing `undefined` is treated as the value not being there.
  16490. * Read more here: https://pris.ly/d/null-undefined
  16491. * @param {ShareLinkFindFirstOrThrowArgs} args - Arguments to find a ShareLink
  16492. * @example
  16493. * // Get one ShareLink
  16494. * const shareLink = await prisma.shareLink.findFirstOrThrow({
  16495. * where: {
  16496. * // ... provide filter here
  16497. * }
  16498. * })
  16499. */
  16500. findFirstOrThrow<T extends ShareLinkFindFirstOrThrowArgs>(args?: SelectSubset<T, ShareLinkFindFirstOrThrowArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  16501. /**
  16502. * Find zero or more ShareLinks that matches the filter.
  16503. * Note, that providing `undefined` is treated as the value not being there.
  16504. * Read more here: https://pris.ly/d/null-undefined
  16505. * @param {ShareLinkFindManyArgs} args - Arguments to filter and select certain fields only.
  16506. * @example
  16507. * // Get all ShareLinks
  16508. * const shareLinks = await prisma.shareLink.findMany()
  16509. *
  16510. * // Get first 10 ShareLinks
  16511. * const shareLinks = await prisma.shareLink.findMany({ take: 10 })
  16512. *
  16513. * // Only select the `id`
  16514. * const shareLinkWithIdOnly = await prisma.shareLink.findMany({ select: { id: true } })
  16515. *
  16516. */
  16517. findMany<T extends ShareLinkFindManyArgs>(args?: SelectSubset<T, ShareLinkFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
  16518. /**
  16519. * Create a ShareLink.
  16520. * @param {ShareLinkCreateArgs} args - Arguments to create a ShareLink.
  16521. * @example
  16522. * // Create one ShareLink
  16523. * const ShareLink = await prisma.shareLink.create({
  16524. * data: {
  16525. * // ... data to create a ShareLink
  16526. * }
  16527. * })
  16528. *
  16529. */
  16530. create<T extends ShareLinkCreateArgs>(args: SelectSubset<T, ShareLinkCreateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  16531. /**
  16532. * Create many ShareLinks.
  16533. * @param {ShareLinkCreateManyArgs} args - Arguments to create many ShareLinks.
  16534. * @example
  16535. * // Create many ShareLinks
  16536. * const shareLink = await prisma.shareLink.createMany({
  16537. * data: [
  16538. * // ... provide data here
  16539. * ]
  16540. * })
  16541. *
  16542. */
  16543. createMany<T extends ShareLinkCreateManyArgs>(args?: SelectSubset<T, ShareLinkCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  16544. /**
  16545. * Create many ShareLinks and returns the data saved in the database.
  16546. * @param {ShareLinkCreateManyAndReturnArgs} args - Arguments to create many ShareLinks.
  16547. * @example
  16548. * // Create many ShareLinks
  16549. * const shareLink = await prisma.shareLink.createManyAndReturn({
  16550. * data: [
  16551. * // ... provide data here
  16552. * ]
  16553. * })
  16554. *
  16555. * // Create many ShareLinks and only return the `id`
  16556. * const shareLinkWithIdOnly = await prisma.shareLink.createManyAndReturn({
  16557. * select: { id: true },
  16558. * data: [
  16559. * // ... provide data here
  16560. * ]
  16561. * })
  16562. * Note, that providing `undefined` is treated as the value not being there.
  16563. * Read more here: https://pris.ly/d/null-undefined
  16564. *
  16565. */
  16566. createManyAndReturn<T extends ShareLinkCreateManyAndReturnArgs>(args?: SelectSubset<T, ShareLinkCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
  16567. /**
  16568. * Delete a ShareLink.
  16569. * @param {ShareLinkDeleteArgs} args - Arguments to delete one ShareLink.
  16570. * @example
  16571. * // Delete one ShareLink
  16572. * const ShareLink = await prisma.shareLink.delete({
  16573. * where: {
  16574. * // ... filter to delete one ShareLink
  16575. * }
  16576. * })
  16577. *
  16578. */
  16579. delete<T extends ShareLinkDeleteArgs>(args: SelectSubset<T, ShareLinkDeleteArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  16580. /**
  16581. * Update one ShareLink.
  16582. * @param {ShareLinkUpdateArgs} args - Arguments to update one ShareLink.
  16583. * @example
  16584. * // Update one ShareLink
  16585. * const shareLink = await prisma.shareLink.update({
  16586. * where: {
  16587. * // ... provide filter here
  16588. * },
  16589. * data: {
  16590. * // ... provide data here
  16591. * }
  16592. * })
  16593. *
  16594. */
  16595. update<T extends ShareLinkUpdateArgs>(args: SelectSubset<T, ShareLinkUpdateArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  16596. /**
  16597. * Delete zero or more ShareLinks.
  16598. * @param {ShareLinkDeleteManyArgs} args - Arguments to filter ShareLinks to delete.
  16599. * @example
  16600. * // Delete a few ShareLinks
  16601. * const { count } = await prisma.shareLink.deleteMany({
  16602. * where: {
  16603. * // ... provide filter here
  16604. * }
  16605. * })
  16606. *
  16607. */
  16608. deleteMany<T extends ShareLinkDeleteManyArgs>(args?: SelectSubset<T, ShareLinkDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  16609. /**
  16610. * Update zero or more ShareLinks.
  16611. * Note, that providing `undefined` is treated as the value not being there.
  16612. * Read more here: https://pris.ly/d/null-undefined
  16613. * @param {ShareLinkUpdateManyArgs} args - Arguments to update one or more rows.
  16614. * @example
  16615. * // Update many ShareLinks
  16616. * const shareLink = await prisma.shareLink.updateMany({
  16617. * where: {
  16618. * // ... provide filter here
  16619. * },
  16620. * data: {
  16621. * // ... provide data here
  16622. * }
  16623. * })
  16624. *
  16625. */
  16626. updateMany<T extends ShareLinkUpdateManyArgs>(args: SelectSubset<T, ShareLinkUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<BatchPayload>
  16627. /**
  16628. * Update zero or more ShareLinks and returns the data updated in the database.
  16629. * @param {ShareLinkUpdateManyAndReturnArgs} args - Arguments to update many ShareLinks.
  16630. * @example
  16631. * // Update many ShareLinks
  16632. * const shareLink = await prisma.shareLink.updateManyAndReturn({
  16633. * where: {
  16634. * // ... provide filter here
  16635. * },
  16636. * data: [
  16637. * // ... provide data here
  16638. * ]
  16639. * })
  16640. *
  16641. * // Update zero or more ShareLinks and only return the `id`
  16642. * const shareLinkWithIdOnly = await prisma.shareLink.updateManyAndReturn({
  16643. * select: { id: true },
  16644. * where: {
  16645. * // ... provide filter here
  16646. * },
  16647. * data: [
  16648. * // ... provide data here
  16649. * ]
  16650. * })
  16651. * Note, that providing `undefined` is treated as the value not being there.
  16652. * Read more here: https://pris.ly/d/null-undefined
  16653. *
  16654. */
  16655. updateManyAndReturn<T extends ShareLinkUpdateManyAndReturnArgs>(args: SelectSubset<T, ShareLinkUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
  16656. /**
  16657. * Create or update one ShareLink.
  16658. * @param {ShareLinkUpsertArgs} args - Arguments to update or create a ShareLink.
  16659. * @example
  16660. * // Update or create a ShareLink
  16661. * const shareLink = await prisma.shareLink.upsert({
  16662. * create: {
  16663. * // ... data to create a ShareLink
  16664. * },
  16665. * update: {
  16666. * // ... in case it already exists, update
  16667. * },
  16668. * where: {
  16669. * // ... the filter for the ShareLink we want to update
  16670. * }
  16671. * })
  16672. */
  16673. upsert<T extends ShareLinkUpsertArgs>(args: SelectSubset<T, ShareLinkUpsertArgs<ExtArgs>>): Prisma__ShareLinkClient<$Result.GetResult<Prisma.$ShareLinkPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
  16674. /**
  16675. * Count the number of ShareLinks.
  16676. * Note, that providing `undefined` is treated as the value not being there.
  16677. * Read more here: https://pris.ly/d/null-undefined
  16678. * @param {ShareLinkCountArgs} args - Arguments to filter ShareLinks to count.
  16679. * @example
  16680. * // Count the number of ShareLinks
  16681. * const count = await prisma.shareLink.count({
  16682. * where: {
  16683. * // ... the filter for the ShareLinks we want to count
  16684. * }
  16685. * })
  16686. **/
  16687. count<T extends ShareLinkCountArgs>(
  16688. args?: Subset<T, ShareLinkCountArgs>,
  16689. ): Prisma.PrismaPromise<
  16690. T extends $Utils.Record<'select', any>
  16691. ? T['select'] extends true
  16692. ? number
  16693. : GetScalarType<T['select'], ShareLinkCountAggregateOutputType>
  16694. : number
  16695. >
  16696. /**
  16697. * Allows you to perform aggregations operations on a ShareLink.
  16698. * Note, that providing `undefined` is treated as the value not being there.
  16699. * Read more here: https://pris.ly/d/null-undefined
  16700. * @param {ShareLinkAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
  16701. * @example
  16702. * // Ordered by age ascending
  16703. * // Where email contains prisma.io
  16704. * // Limited to the 10 users
  16705. * const aggregations = await prisma.user.aggregate({
  16706. * _avg: {
  16707. * age: true,
  16708. * },
  16709. * where: {
  16710. * email: {
  16711. * contains: "prisma.io",
  16712. * },
  16713. * },
  16714. * orderBy: {
  16715. * age: "asc",
  16716. * },
  16717. * take: 10,
  16718. * })
  16719. **/
  16720. aggregate<T extends ShareLinkAggregateArgs>(args: Subset<T, ShareLinkAggregateArgs>): Prisma.PrismaPromise<GetShareLinkAggregateType<T>>
  16721. /**
  16722. * Group by ShareLink.
  16723. * Note, that providing `undefined` is treated as the value not being there.
  16724. * Read more here: https://pris.ly/d/null-undefined
  16725. * @param {ShareLinkGroupByArgs} args - Group by arguments.
  16726. * @example
  16727. * // Group by city, order by createdAt, get count
  16728. * const result = await prisma.user.groupBy({
  16729. * by: ['city', 'createdAt'],
  16730. * orderBy: {
  16731. * createdAt: true
  16732. * },
  16733. * _count: {
  16734. * _all: true
  16735. * },
  16736. * })
  16737. *
  16738. **/
  16739. groupBy<
  16740. T extends ShareLinkGroupByArgs,
  16741. HasSelectOrTake extends Or<
  16742. Extends<'skip', Keys<T>>,
  16743. Extends<'take', Keys<T>>
  16744. >,
  16745. OrderByArg extends True extends HasSelectOrTake
  16746. ? { orderBy: ShareLinkGroupByArgs['orderBy'] }
  16747. : { orderBy?: ShareLinkGroupByArgs['orderBy'] },
  16748. OrderFields extends ExcludeUnderscoreKeys<Keys<MaybeTupleToUnion<T['orderBy']>>>,
  16749. ByFields extends MaybeTupleToUnion<T['by']>,
  16750. ByValid extends Has<ByFields, OrderFields>,
  16751. HavingFields extends GetHavingFields<T['having']>,
  16752. HavingValid extends Has<ByFields, HavingFields>,
  16753. ByEmpty extends T['by'] extends never[] ? True : False,
  16754. InputErrors extends ByEmpty extends True
  16755. ? `Error: "by" must not be empty.`
  16756. : HavingValid extends False
  16757. ? {
  16758. [P in HavingFields]: P extends ByFields
  16759. ? never
  16760. : P extends string
  16761. ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
  16762. : [
  16763. Error,
  16764. 'Field ',
  16765. P,
  16766. ` in "having" needs to be provided in "by"`,
  16767. ]
  16768. }[HavingFields]
  16769. : 'take' extends Keys<T>
  16770. ? 'orderBy' extends Keys<T>
  16771. ? ByValid extends True
  16772. ? {}
  16773. : {
  16774. [P in OrderFields]: P extends ByFields
  16775. ? never
  16776. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  16777. }[OrderFields]
  16778. : 'Error: If you provide "take", you also need to provide "orderBy"'
  16779. : 'skip' extends Keys<T>
  16780. ? 'orderBy' extends Keys<T>
  16781. ? ByValid extends True
  16782. ? {}
  16783. : {
  16784. [P in OrderFields]: P extends ByFields
  16785. ? never
  16786. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  16787. }[OrderFields]
  16788. : 'Error: If you provide "skip", you also need to provide "orderBy"'
  16789. : ByValid extends True
  16790. ? {}
  16791. : {
  16792. [P in OrderFields]: P extends ByFields
  16793. ? never
  16794. : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
  16795. }[OrderFields]
  16796. >(args: SubsetIntersection<T, ShareLinkGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetShareLinkGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
  16797. /**
  16798. * Fields of the ShareLink model
  16799. */
  16800. readonly fields: ShareLinkFieldRefs;
  16801. }
  16802. /**
  16803. * The delegate class that acts as a "Promise-like" for ShareLink.
  16804. * Why is this prefixed with `Prisma__`?
  16805. * Because we want to prevent naming conflicts as mentioned in
  16806. * https://github.com/prisma/prisma-client-js/issues/707
  16807. */
  16808. export interface Prisma__ShareLinkClient<T, Null = never, ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
  16809. readonly [Symbol.toStringTag]: "PrismaPromise"
  16810. workspace<T extends WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Subset<T, WorkspaceDefaultArgs<ExtArgs>>): Prisma__WorkspaceClient<$Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
  16811. /**
  16812. * Attaches callbacks for the resolution and/or rejection of the Promise.
  16813. * @param onfulfilled The callback to execute when the Promise is resolved.
  16814. * @param onrejected The callback to execute when the Promise is rejected.
  16815. * @returns A Promise for the completion of which ever callback is executed.
  16816. */
  16817. 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>
  16818. /**
  16819. * Attaches a callback for only the rejection of the Promise.
  16820. * @param onrejected The callback to execute when the Promise is rejected.
  16821. * @returns A Promise for the completion of the callback.
  16822. */
  16823. catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): $Utils.JsPromise<T | TResult>
  16824. /**
  16825. * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
  16826. * resolved value cannot be modified from the callback.
  16827. * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
  16828. * @returns A Promise for the completion of the callback.
  16829. */
  16830. finally(onfinally?: (() => void) | undefined | null): $Utils.JsPromise<T>
  16831. }
  16832. /**
  16833. * Fields of the ShareLink model
  16834. */
  16835. interface ShareLinkFieldRefs {
  16836. readonly id: FieldRef<"ShareLink", 'String'>
  16837. readonly workspaceId: FieldRef<"ShareLink", 'String'>
  16838. readonly token: FieldRef<"ShareLink", 'String'>
  16839. readonly expiresAt: FieldRef<"ShareLink", 'DateTime'>
  16840. readonly createdAt: FieldRef<"ShareLink", 'DateTime'>
  16841. }
  16842. // Custom InputTypes
  16843. /**
  16844. * ShareLink findUnique
  16845. */
  16846. export type ShareLinkFindUniqueArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16847. /**
  16848. * Select specific fields to fetch from the ShareLink
  16849. */
  16850. select?: ShareLinkSelect<ExtArgs> | null
  16851. /**
  16852. * Omit specific fields from the ShareLink
  16853. */
  16854. omit?: ShareLinkOmit<ExtArgs> | null
  16855. /**
  16856. * Choose, which related nodes to fetch as well
  16857. */
  16858. include?: ShareLinkInclude<ExtArgs> | null
  16859. /**
  16860. * Filter, which ShareLink to fetch.
  16861. */
  16862. where: ShareLinkWhereUniqueInput
  16863. }
  16864. /**
  16865. * ShareLink findUniqueOrThrow
  16866. */
  16867. export type ShareLinkFindUniqueOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16868. /**
  16869. * Select specific fields to fetch from the ShareLink
  16870. */
  16871. select?: ShareLinkSelect<ExtArgs> | null
  16872. /**
  16873. * Omit specific fields from the ShareLink
  16874. */
  16875. omit?: ShareLinkOmit<ExtArgs> | null
  16876. /**
  16877. * Choose, which related nodes to fetch as well
  16878. */
  16879. include?: ShareLinkInclude<ExtArgs> | null
  16880. /**
  16881. * Filter, which ShareLink to fetch.
  16882. */
  16883. where: ShareLinkWhereUniqueInput
  16884. }
  16885. /**
  16886. * ShareLink findFirst
  16887. */
  16888. export type ShareLinkFindFirstArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16889. /**
  16890. * Select specific fields to fetch from the ShareLink
  16891. */
  16892. select?: ShareLinkSelect<ExtArgs> | null
  16893. /**
  16894. * Omit specific fields from the ShareLink
  16895. */
  16896. omit?: ShareLinkOmit<ExtArgs> | null
  16897. /**
  16898. * Choose, which related nodes to fetch as well
  16899. */
  16900. include?: ShareLinkInclude<ExtArgs> | null
  16901. /**
  16902. * Filter, which ShareLink to fetch.
  16903. */
  16904. where?: ShareLinkWhereInput
  16905. /**
  16906. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  16907. *
  16908. * Determine the order of ShareLinks to fetch.
  16909. */
  16910. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  16911. /**
  16912. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  16913. *
  16914. * Sets the position for searching for ShareLinks.
  16915. */
  16916. cursor?: ShareLinkWhereUniqueInput
  16917. /**
  16918. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16919. *
  16920. * Take `±n` ShareLinks from the position of the cursor.
  16921. */
  16922. take?: number
  16923. /**
  16924. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16925. *
  16926. * Skip the first `n` ShareLinks.
  16927. */
  16928. skip?: number
  16929. /**
  16930. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  16931. *
  16932. * Filter by unique combinations of ShareLinks.
  16933. */
  16934. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  16935. }
  16936. /**
  16937. * ShareLink findFirstOrThrow
  16938. */
  16939. export type ShareLinkFindFirstOrThrowArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16940. /**
  16941. * Select specific fields to fetch from the ShareLink
  16942. */
  16943. select?: ShareLinkSelect<ExtArgs> | null
  16944. /**
  16945. * Omit specific fields from the ShareLink
  16946. */
  16947. omit?: ShareLinkOmit<ExtArgs> | null
  16948. /**
  16949. * Choose, which related nodes to fetch as well
  16950. */
  16951. include?: ShareLinkInclude<ExtArgs> | null
  16952. /**
  16953. * Filter, which ShareLink to fetch.
  16954. */
  16955. where?: ShareLinkWhereInput
  16956. /**
  16957. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  16958. *
  16959. * Determine the order of ShareLinks to fetch.
  16960. */
  16961. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  16962. /**
  16963. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  16964. *
  16965. * Sets the position for searching for ShareLinks.
  16966. */
  16967. cursor?: ShareLinkWhereUniqueInput
  16968. /**
  16969. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16970. *
  16971. * Take `±n` ShareLinks from the position of the cursor.
  16972. */
  16973. take?: number
  16974. /**
  16975. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  16976. *
  16977. * Skip the first `n` ShareLinks.
  16978. */
  16979. skip?: number
  16980. /**
  16981. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
  16982. *
  16983. * Filter by unique combinations of ShareLinks.
  16984. */
  16985. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  16986. }
  16987. /**
  16988. * ShareLink findMany
  16989. */
  16990. export type ShareLinkFindManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  16991. /**
  16992. * Select specific fields to fetch from the ShareLink
  16993. */
  16994. select?: ShareLinkSelect<ExtArgs> | null
  16995. /**
  16996. * Omit specific fields from the ShareLink
  16997. */
  16998. omit?: ShareLinkOmit<ExtArgs> | null
  16999. /**
  17000. * Choose, which related nodes to fetch as well
  17001. */
  17002. include?: ShareLinkInclude<ExtArgs> | null
  17003. /**
  17004. * Filter, which ShareLinks to fetch.
  17005. */
  17006. where?: ShareLinkWhereInput
  17007. /**
  17008. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
  17009. *
  17010. * Determine the order of ShareLinks to fetch.
  17011. */
  17012. orderBy?: ShareLinkOrderByWithRelationInput | ShareLinkOrderByWithRelationInput[]
  17013. /**
  17014. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
  17015. *
  17016. * Sets the position for listing ShareLinks.
  17017. */
  17018. cursor?: ShareLinkWhereUniqueInput
  17019. /**
  17020. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  17021. *
  17022. * Take `±n` ShareLinks from the position of the cursor.
  17023. */
  17024. take?: number
  17025. /**
  17026. * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
  17027. *
  17028. * Skip the first `n` ShareLinks.
  17029. */
  17030. skip?: number
  17031. distinct?: ShareLinkScalarFieldEnum | ShareLinkScalarFieldEnum[]
  17032. }
  17033. /**
  17034. * ShareLink create
  17035. */
  17036. export type ShareLinkCreateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17037. /**
  17038. * Select specific fields to fetch from the ShareLink
  17039. */
  17040. select?: ShareLinkSelect<ExtArgs> | null
  17041. /**
  17042. * Omit specific fields from the ShareLink
  17043. */
  17044. omit?: ShareLinkOmit<ExtArgs> | null
  17045. /**
  17046. * Choose, which related nodes to fetch as well
  17047. */
  17048. include?: ShareLinkInclude<ExtArgs> | null
  17049. /**
  17050. * The data needed to create a ShareLink.
  17051. */
  17052. data: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  17053. }
  17054. /**
  17055. * ShareLink createMany
  17056. */
  17057. export type ShareLinkCreateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17058. /**
  17059. * The data used to create many ShareLinks.
  17060. */
  17061. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  17062. skipDuplicates?: boolean
  17063. }
  17064. /**
  17065. * ShareLink createManyAndReturn
  17066. */
  17067. export type ShareLinkCreateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17068. /**
  17069. * Select specific fields to fetch from the ShareLink
  17070. */
  17071. select?: ShareLinkSelectCreateManyAndReturn<ExtArgs> | null
  17072. /**
  17073. * Omit specific fields from the ShareLink
  17074. */
  17075. omit?: ShareLinkOmit<ExtArgs> | null
  17076. /**
  17077. * The data used to create many ShareLinks.
  17078. */
  17079. data: ShareLinkCreateManyInput | ShareLinkCreateManyInput[]
  17080. skipDuplicates?: boolean
  17081. /**
  17082. * Choose, which related nodes to fetch as well
  17083. */
  17084. include?: ShareLinkIncludeCreateManyAndReturn<ExtArgs> | null
  17085. }
  17086. /**
  17087. * ShareLink update
  17088. */
  17089. export type ShareLinkUpdateArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17090. /**
  17091. * Select specific fields to fetch from the ShareLink
  17092. */
  17093. select?: ShareLinkSelect<ExtArgs> | null
  17094. /**
  17095. * Omit specific fields from the ShareLink
  17096. */
  17097. omit?: ShareLinkOmit<ExtArgs> | null
  17098. /**
  17099. * Choose, which related nodes to fetch as well
  17100. */
  17101. include?: ShareLinkInclude<ExtArgs> | null
  17102. /**
  17103. * The data needed to update a ShareLink.
  17104. */
  17105. data: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  17106. /**
  17107. * Choose, which ShareLink to update.
  17108. */
  17109. where: ShareLinkWhereUniqueInput
  17110. }
  17111. /**
  17112. * ShareLink updateMany
  17113. */
  17114. export type ShareLinkUpdateManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17115. /**
  17116. * The data used to update ShareLinks.
  17117. */
  17118. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  17119. /**
  17120. * Filter which ShareLinks to update
  17121. */
  17122. where?: ShareLinkWhereInput
  17123. /**
  17124. * Limit how many ShareLinks to update.
  17125. */
  17126. limit?: number
  17127. }
  17128. /**
  17129. * ShareLink updateManyAndReturn
  17130. */
  17131. export type ShareLinkUpdateManyAndReturnArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17132. /**
  17133. * Select specific fields to fetch from the ShareLink
  17134. */
  17135. select?: ShareLinkSelectUpdateManyAndReturn<ExtArgs> | null
  17136. /**
  17137. * Omit specific fields from the ShareLink
  17138. */
  17139. omit?: ShareLinkOmit<ExtArgs> | null
  17140. /**
  17141. * The data used to update ShareLinks.
  17142. */
  17143. data: XOR<ShareLinkUpdateManyMutationInput, ShareLinkUncheckedUpdateManyInput>
  17144. /**
  17145. * Filter which ShareLinks to update
  17146. */
  17147. where?: ShareLinkWhereInput
  17148. /**
  17149. * Limit how many ShareLinks to update.
  17150. */
  17151. limit?: number
  17152. /**
  17153. * Choose, which related nodes to fetch as well
  17154. */
  17155. include?: ShareLinkIncludeUpdateManyAndReturn<ExtArgs> | null
  17156. }
  17157. /**
  17158. * ShareLink upsert
  17159. */
  17160. export type ShareLinkUpsertArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17161. /**
  17162. * Select specific fields to fetch from the ShareLink
  17163. */
  17164. select?: ShareLinkSelect<ExtArgs> | null
  17165. /**
  17166. * Omit specific fields from the ShareLink
  17167. */
  17168. omit?: ShareLinkOmit<ExtArgs> | null
  17169. /**
  17170. * Choose, which related nodes to fetch as well
  17171. */
  17172. include?: ShareLinkInclude<ExtArgs> | null
  17173. /**
  17174. * The filter to search for the ShareLink to update in case it exists.
  17175. */
  17176. where: ShareLinkWhereUniqueInput
  17177. /**
  17178. * In case the ShareLink found by the `where` argument doesn't exist, create a new ShareLink with this data.
  17179. */
  17180. create: XOR<ShareLinkCreateInput, ShareLinkUncheckedCreateInput>
  17181. /**
  17182. * In case the ShareLink was found with the provided `where` argument, update it with this data.
  17183. */
  17184. update: XOR<ShareLinkUpdateInput, ShareLinkUncheckedUpdateInput>
  17185. }
  17186. /**
  17187. * ShareLink delete
  17188. */
  17189. export type ShareLinkDeleteArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17190. /**
  17191. * Select specific fields to fetch from the ShareLink
  17192. */
  17193. select?: ShareLinkSelect<ExtArgs> | null
  17194. /**
  17195. * Omit specific fields from the ShareLink
  17196. */
  17197. omit?: ShareLinkOmit<ExtArgs> | null
  17198. /**
  17199. * Choose, which related nodes to fetch as well
  17200. */
  17201. include?: ShareLinkInclude<ExtArgs> | null
  17202. /**
  17203. * Filter which ShareLink to delete.
  17204. */
  17205. where: ShareLinkWhereUniqueInput
  17206. }
  17207. /**
  17208. * ShareLink deleteMany
  17209. */
  17210. export type ShareLinkDeleteManyArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17211. /**
  17212. * Filter which ShareLinks to delete
  17213. */
  17214. where?: ShareLinkWhereInput
  17215. /**
  17216. * Limit how many ShareLinks to delete.
  17217. */
  17218. limit?: number
  17219. }
  17220. /**
  17221. * ShareLink without action
  17222. */
  17223. export type ShareLinkDefaultArgs<ExtArgs extends $Extensions.InternalArgs = $Extensions.DefaultArgs> = {
  17224. /**
  17225. * Select specific fields to fetch from the ShareLink
  17226. */
  17227. select?: ShareLinkSelect<ExtArgs> | null
  17228. /**
  17229. * Omit specific fields from the ShareLink
  17230. */
  17231. omit?: ShareLinkOmit<ExtArgs> | null
  17232. /**
  17233. * Choose, which related nodes to fetch as well
  17234. */
  17235. include?: ShareLinkInclude<ExtArgs> | null
  17236. }
  17237. /**
  17238. * Enums
  17239. */
  17240. export const TransactionIsolationLevel: {
  17241. ReadUncommitted: 'ReadUncommitted',
  17242. ReadCommitted: 'ReadCommitted',
  17243. RepeatableRead: 'RepeatableRead',
  17244. Serializable: 'Serializable'
  17245. };
  17246. export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
  17247. export const WorkspaceScalarFieldEnum: {
  17248. id: 'id',
  17249. name: 'name',
  17250. slug: 'slug',
  17251. sector: 'sector',
  17252. companySize: 'companySize',
  17253. contactEmail: 'contactEmail',
  17254. tier: 'tier',
  17255. llmCallsThisMonth: 'llmCallsThisMonth',
  17256. llmCallsResetAt: 'llmCallsResetAt',
  17257. autoRelanceEnabled: 'autoRelanceEnabled',
  17258. exportsThisMonth: 'exportsThisMonth',
  17259. exportsResetAt: 'exportsResetAt',
  17260. lastVisitedAt: 'lastVisitedAt',
  17261. onboardingDismissed: 'onboardingDismissed',
  17262. proModeAvailable: 'proModeAvailable',
  17263. createdAt: 'createdAt',
  17264. updatedAt: 'updatedAt',
  17265. ownerId: 'ownerId'
  17266. };
  17267. export type WorkspaceScalarFieldEnum = (typeof WorkspaceScalarFieldEnum)[keyof typeof WorkspaceScalarFieldEnum]
  17268. export const ManualRelanceLogScalarFieldEnum: {
  17269. id: 'id',
  17270. workspaceId: 'workspaceId',
  17271. subject: 'subject',
  17272. recipientCount: 'recipientCount',
  17273. sentCount: 'sentCount',
  17274. failedCount: 'failedCount',
  17275. sentAt: 'sentAt'
  17276. };
  17277. export type ManualRelanceLogScalarFieldEnum = (typeof ManualRelanceLogScalarFieldEnum)[keyof typeof ManualRelanceLogScalarFieldEnum]
  17278. export const ContributorScalarFieldEnum: {
  17279. id: 'id',
  17280. workspaceId: 'workspaceId',
  17281. email: 'email',
  17282. service: 'service',
  17283. status: 'status',
  17284. invitedAt: 'invitedAt',
  17285. lastRemindedAt: 'lastRemindedAt',
  17286. createdAt: 'createdAt'
  17287. };
  17288. export type ContributorScalarFieldEnum = (typeof ContributorScalarFieldEnum)[keyof typeof ContributorScalarFieldEnum]
  17289. export const IdeaScalarFieldEnum: {
  17290. id: 'id',
  17291. workspaceId: 'workspaceId',
  17292. contributorEmail: 'contributorEmail',
  17293. contributorId: 'contributorId',
  17294. department: 'department',
  17295. problemDescription: 'problemDescription',
  17296. estimatedImpact: 'estimatedImpact',
  17297. frequency: 'frequency',
  17298. optionalWhoAffected: 'optionalWhoAffected',
  17299. optionalAlreadyTried: 'optionalAlreadyTried',
  17300. optionalSuccessLooksLike: 'optionalSuccessLooksLike',
  17301. status: 'status',
  17302. llmTitle: 'llmTitle',
  17303. llmDomain: 'llmDomain',
  17304. llmAiType: 'llmAiType',
  17305. llmExplanation: 'llmExplanation',
  17306. llmScoreImpact: 'llmScoreImpact',
  17307. llmScoreFeasibility: 'llmScoreFeasibility',
  17308. llmScoreUrgency: 'llmScoreUrgency',
  17309. llmEnrichedAt: 'llmEnrichedAt',
  17310. llmEnrichFailed: 'llmEnrichFailed',
  17311. manualScoreImpact: 'manualScoreImpact',
  17312. manualScoreFeasibility: 'manualScoreFeasibility',
  17313. manualScoreUrgency: 'manualScoreUrgency',
  17314. priorityOrder: 'priorityOrder',
  17315. emailMessageId: 'emailMessageId',
  17316. createdAt: 'createdAt',
  17317. updatedAt: 'updatedAt'
  17318. };
  17319. export type IdeaScalarFieldEnum = (typeof IdeaScalarFieldEnum)[keyof typeof IdeaScalarFieldEnum]
  17320. export const PostScalarFieldEnum: {
  17321. id: 'id',
  17322. name: 'name',
  17323. createdAt: 'createdAt',
  17324. updatedAt: 'updatedAt',
  17325. createdById: 'createdById'
  17326. };
  17327. export type PostScalarFieldEnum = (typeof PostScalarFieldEnum)[keyof typeof PostScalarFieldEnum]
  17328. export const AccountScalarFieldEnum: {
  17329. id: 'id',
  17330. userId: 'userId',
  17331. type: 'type',
  17332. provider: 'provider',
  17333. providerAccountId: 'providerAccountId',
  17334. refresh_token: 'refresh_token',
  17335. access_token: 'access_token',
  17336. expires_at: 'expires_at',
  17337. token_type: 'token_type',
  17338. scope: 'scope',
  17339. id_token: 'id_token',
  17340. session_state: 'session_state',
  17341. refresh_token_expires_in: 'refresh_token_expires_in'
  17342. };
  17343. export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
  17344. export const SessionScalarFieldEnum: {
  17345. id: 'id',
  17346. sessionToken: 'sessionToken',
  17347. userId: 'userId',
  17348. expires: 'expires'
  17349. };
  17350. export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
  17351. export const UserScalarFieldEnum: {
  17352. id: 'id',
  17353. name: 'name',
  17354. email: 'email',
  17355. emailVerified: 'emailVerified',
  17356. password: 'password',
  17357. legalTermsAcceptedAt: 'legalTermsAcceptedAt',
  17358. image: 'image'
  17359. };
  17360. export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
  17361. export const VerificationTokenScalarFieldEnum: {
  17362. identifier: 'identifier',
  17363. token: 'token',
  17364. expires: 'expires'
  17365. };
  17366. export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum]
  17367. export const IdeaAttachmentScalarFieldEnum: {
  17368. id: 'id',
  17369. ideaId: 'ideaId',
  17370. workspaceId: 'workspaceId',
  17371. filename: 'filename',
  17372. contentType: 'contentType',
  17373. size: 'size',
  17374. url: 'url',
  17375. blobPath: 'blobPath',
  17376. createdAt: 'createdAt'
  17377. };
  17378. export type IdeaAttachmentScalarFieldEnum = (typeof IdeaAttachmentScalarFieldEnum)[keyof typeof IdeaAttachmentScalarFieldEnum]
  17379. export const QualificationQuestionScalarFieldEnum: {
  17380. id: 'id',
  17381. ideaId: 'ideaId',
  17382. workspaceId: 'workspaceId',
  17383. questionText: 'questionText',
  17384. responseToken: 'responseToken',
  17385. askedAt: 'askedAt',
  17386. responseText: 'responseText',
  17387. answeredAt: 'answeredAt'
  17388. };
  17389. export type QualificationQuestionScalarFieldEnum = (typeof QualificationQuestionScalarFieldEnum)[keyof typeof QualificationQuestionScalarFieldEnum]
  17390. export const LibraryCaseScalarFieldEnum: {
  17391. id: 'id',
  17392. sector: 'sector',
  17393. department: 'department',
  17394. title: 'title',
  17395. description: 'description',
  17396. createdAt: 'createdAt',
  17397. updatedAt: 'updatedAt'
  17398. };
  17399. export type LibraryCaseScalarFieldEnum = (typeof LibraryCaseScalarFieldEnum)[keyof typeof LibraryCaseScalarFieldEnum]
  17400. export const AppFeedbackScalarFieldEnum: {
  17401. id: 'id',
  17402. userId: 'userId',
  17403. workspaceId: 'workspaceId',
  17404. type: 'type',
  17405. message: 'message',
  17406. createdAt: 'createdAt'
  17407. };
  17408. export type AppFeedbackScalarFieldEnum = (typeof AppFeedbackScalarFieldEnum)[keyof typeof AppFeedbackScalarFieldEnum]
  17409. export const ShareLinkScalarFieldEnum: {
  17410. id: 'id',
  17411. workspaceId: 'workspaceId',
  17412. token: 'token',
  17413. expiresAt: 'expiresAt',
  17414. createdAt: 'createdAt'
  17415. };
  17416. export type ShareLinkScalarFieldEnum = (typeof ShareLinkScalarFieldEnum)[keyof typeof ShareLinkScalarFieldEnum]
  17417. export const SortOrder: {
  17418. asc: 'asc',
  17419. desc: 'desc'
  17420. };
  17421. export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
  17422. export const QueryMode: {
  17423. default: 'default',
  17424. insensitive: 'insensitive'
  17425. };
  17426. export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
  17427. export const NullsOrder: {
  17428. first: 'first',
  17429. last: 'last'
  17430. };
  17431. export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
  17432. /**
  17433. * Field references
  17434. */
  17435. /**
  17436. * Reference to a field of type 'String'
  17437. */
  17438. export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'>
  17439. /**
  17440. * Reference to a field of type 'String[]'
  17441. */
  17442. export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'>
  17443. /**
  17444. * Reference to a field of type 'Int'
  17445. */
  17446. export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'>
  17447. /**
  17448. * Reference to a field of type 'Int[]'
  17449. */
  17450. export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'>
  17451. /**
  17452. * Reference to a field of type 'WorkspaceTier'
  17453. */
  17454. export type EnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier'>
  17455. /**
  17456. * Reference to a field of type 'WorkspaceTier[]'
  17457. */
  17458. export type ListEnumWorkspaceTierFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkspaceTier[]'>
  17459. /**
  17460. * Reference to a field of type 'DateTime'
  17461. */
  17462. export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'>
  17463. /**
  17464. * Reference to a field of type 'DateTime[]'
  17465. */
  17466. export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'>
  17467. /**
  17468. * Reference to a field of type 'Boolean'
  17469. */
  17470. export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
  17471. /**
  17472. * Reference to a field of type 'ContributorStatus'
  17473. */
  17474. export type EnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus'>
  17475. /**
  17476. * Reference to a field of type 'ContributorStatus[]'
  17477. */
  17478. export type ListEnumContributorStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ContributorStatus[]'>
  17479. /**
  17480. * Reference to a field of type 'ImpactLevel'
  17481. */
  17482. export type EnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel'>
  17483. /**
  17484. * Reference to a field of type 'ImpactLevel[]'
  17485. */
  17486. export type ListEnumImpactLevelFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ImpactLevel[]'>
  17487. /**
  17488. * Reference to a field of type 'Frequency'
  17489. */
  17490. export type EnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency'>
  17491. /**
  17492. * Reference to a field of type 'Frequency[]'
  17493. */
  17494. export type ListEnumFrequencyFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Frequency[]'>
  17495. /**
  17496. * Reference to a field of type 'IdeaStatus'
  17497. */
  17498. export type EnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus'>
  17499. /**
  17500. * Reference to a field of type 'IdeaStatus[]'
  17501. */
  17502. export type ListEnumIdeaStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'IdeaStatus[]'>
  17503. /**
  17504. * Reference to a field of type 'FeedbackType'
  17505. */
  17506. export type EnumFeedbackTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FeedbackType'>
  17507. /**
  17508. * Reference to a field of type 'FeedbackType[]'
  17509. */
  17510. export type ListEnumFeedbackTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'FeedbackType[]'>
  17511. /**
  17512. * Reference to a field of type 'Float'
  17513. */
  17514. export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'>
  17515. /**
  17516. * Reference to a field of type 'Float[]'
  17517. */
  17518. export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'>
  17519. /**
  17520. * Deep Input Types
  17521. */
  17522. export type WorkspaceWhereInput = {
  17523. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  17524. OR?: WorkspaceWhereInput[]
  17525. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  17526. id?: StringFilter<"Workspace"> | string
  17527. name?: StringFilter<"Workspace"> | string
  17528. slug?: StringFilter<"Workspace"> | string
  17529. sector?: StringNullableFilter<"Workspace"> | string | null
  17530. companySize?: IntNullableFilter<"Workspace"> | number | null
  17531. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  17532. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  17533. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  17534. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  17535. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  17536. exportsThisMonth?: IntFilter<"Workspace"> | number
  17537. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  17538. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  17539. onboardingDismissed?: BoolFilter<"Workspace"> | boolean
  17540. proModeAvailable?: BoolFilter<"Workspace"> | boolean
  17541. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  17542. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  17543. ownerId?: StringFilter<"Workspace"> | string
  17544. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  17545. feedbacks?: AppFeedbackListRelationFilter
  17546. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  17547. contributors?: ContributorListRelationFilter
  17548. ideas?: IdeaListRelationFilter
  17549. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  17550. }
  17551. export type WorkspaceOrderByWithRelationInput = {
  17552. id?: SortOrder
  17553. name?: SortOrder
  17554. slug?: SortOrder
  17555. sector?: SortOrderInput | SortOrder
  17556. companySize?: SortOrderInput | SortOrder
  17557. contactEmail?: SortOrderInput | SortOrder
  17558. tier?: SortOrder
  17559. llmCallsThisMonth?: SortOrder
  17560. llmCallsResetAt?: SortOrder
  17561. autoRelanceEnabled?: SortOrder
  17562. exportsThisMonth?: SortOrder
  17563. exportsResetAt?: SortOrder
  17564. lastVisitedAt?: SortOrderInput | SortOrder
  17565. onboardingDismissed?: SortOrder
  17566. proModeAvailable?: SortOrder
  17567. createdAt?: SortOrder
  17568. updatedAt?: SortOrder
  17569. ownerId?: SortOrder
  17570. shareLink?: ShareLinkOrderByWithRelationInput
  17571. feedbacks?: AppFeedbackOrderByRelationAggregateInput
  17572. owner?: UserOrderByWithRelationInput
  17573. contributors?: ContributorOrderByRelationAggregateInput
  17574. ideas?: IdeaOrderByRelationAggregateInput
  17575. manualRelanceLogs?: ManualRelanceLogOrderByRelationAggregateInput
  17576. }
  17577. export type WorkspaceWhereUniqueInput = Prisma.AtLeast<{
  17578. id?: string
  17579. slug?: string
  17580. ownerId?: string
  17581. AND?: WorkspaceWhereInput | WorkspaceWhereInput[]
  17582. OR?: WorkspaceWhereInput[]
  17583. NOT?: WorkspaceWhereInput | WorkspaceWhereInput[]
  17584. name?: StringFilter<"Workspace"> | string
  17585. sector?: StringNullableFilter<"Workspace"> | string | null
  17586. companySize?: IntNullableFilter<"Workspace"> | number | null
  17587. contactEmail?: StringNullableFilter<"Workspace"> | string | null
  17588. tier?: EnumWorkspaceTierFilter<"Workspace"> | $Enums.WorkspaceTier
  17589. llmCallsThisMonth?: IntFilter<"Workspace"> | number
  17590. llmCallsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  17591. autoRelanceEnabled?: BoolFilter<"Workspace"> | boolean
  17592. exportsThisMonth?: IntFilter<"Workspace"> | number
  17593. exportsResetAt?: DateTimeFilter<"Workspace"> | Date | string
  17594. lastVisitedAt?: DateTimeNullableFilter<"Workspace"> | Date | string | null
  17595. onboardingDismissed?: BoolFilter<"Workspace"> | boolean
  17596. proModeAvailable?: BoolFilter<"Workspace"> | boolean
  17597. createdAt?: DateTimeFilter<"Workspace"> | Date | string
  17598. updatedAt?: DateTimeFilter<"Workspace"> | Date | string
  17599. shareLink?: XOR<ShareLinkNullableScalarRelationFilter, ShareLinkWhereInput> | null
  17600. feedbacks?: AppFeedbackListRelationFilter
  17601. owner?: XOR<UserScalarRelationFilter, UserWhereInput>
  17602. contributors?: ContributorListRelationFilter
  17603. ideas?: IdeaListRelationFilter
  17604. manualRelanceLogs?: ManualRelanceLogListRelationFilter
  17605. }, "id" | "slug" | "ownerId">
  17606. export type WorkspaceOrderByWithAggregationInput = {
  17607. id?: SortOrder
  17608. name?: SortOrder
  17609. slug?: SortOrder
  17610. sector?: SortOrderInput | SortOrder
  17611. companySize?: SortOrderInput | SortOrder
  17612. contactEmail?: SortOrderInput | SortOrder
  17613. tier?: SortOrder
  17614. llmCallsThisMonth?: SortOrder
  17615. llmCallsResetAt?: SortOrder
  17616. autoRelanceEnabled?: SortOrder
  17617. exportsThisMonth?: SortOrder
  17618. exportsResetAt?: SortOrder
  17619. lastVisitedAt?: SortOrderInput | SortOrder
  17620. onboardingDismissed?: SortOrder
  17621. proModeAvailable?: SortOrder
  17622. createdAt?: SortOrder
  17623. updatedAt?: SortOrder
  17624. ownerId?: SortOrder
  17625. _count?: WorkspaceCountOrderByAggregateInput
  17626. _avg?: WorkspaceAvgOrderByAggregateInput
  17627. _max?: WorkspaceMaxOrderByAggregateInput
  17628. _min?: WorkspaceMinOrderByAggregateInput
  17629. _sum?: WorkspaceSumOrderByAggregateInput
  17630. }
  17631. export type WorkspaceScalarWhereWithAggregatesInput = {
  17632. AND?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  17633. OR?: WorkspaceScalarWhereWithAggregatesInput[]
  17634. NOT?: WorkspaceScalarWhereWithAggregatesInput | WorkspaceScalarWhereWithAggregatesInput[]
  17635. id?: StringWithAggregatesFilter<"Workspace"> | string
  17636. name?: StringWithAggregatesFilter<"Workspace"> | string
  17637. slug?: StringWithAggregatesFilter<"Workspace"> | string
  17638. sector?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  17639. companySize?: IntNullableWithAggregatesFilter<"Workspace"> | number | null
  17640. contactEmail?: StringNullableWithAggregatesFilter<"Workspace"> | string | null
  17641. tier?: EnumWorkspaceTierWithAggregatesFilter<"Workspace"> | $Enums.WorkspaceTier
  17642. llmCallsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  17643. llmCallsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  17644. autoRelanceEnabled?: BoolWithAggregatesFilter<"Workspace"> | boolean
  17645. exportsThisMonth?: IntWithAggregatesFilter<"Workspace"> | number
  17646. exportsResetAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  17647. lastVisitedAt?: DateTimeNullableWithAggregatesFilter<"Workspace"> | Date | string | null
  17648. onboardingDismissed?: BoolWithAggregatesFilter<"Workspace"> | boolean
  17649. proModeAvailable?: BoolWithAggregatesFilter<"Workspace"> | boolean
  17650. createdAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  17651. updatedAt?: DateTimeWithAggregatesFilter<"Workspace"> | Date | string
  17652. ownerId?: StringWithAggregatesFilter<"Workspace"> | string
  17653. }
  17654. export type ManualRelanceLogWhereInput = {
  17655. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  17656. OR?: ManualRelanceLogWhereInput[]
  17657. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  17658. id?: StringFilter<"ManualRelanceLog"> | string
  17659. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  17660. subject?: StringFilter<"ManualRelanceLog"> | string
  17661. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  17662. sentCount?: IntFilter<"ManualRelanceLog"> | number
  17663. failedCount?: IntFilter<"ManualRelanceLog"> | number
  17664. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  17665. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17666. }
  17667. export type ManualRelanceLogOrderByWithRelationInput = {
  17668. id?: SortOrder
  17669. workspaceId?: SortOrder
  17670. subject?: SortOrder
  17671. recipientCount?: SortOrder
  17672. sentCount?: SortOrder
  17673. failedCount?: SortOrder
  17674. sentAt?: SortOrder
  17675. workspace?: WorkspaceOrderByWithRelationInput
  17676. }
  17677. export type ManualRelanceLogWhereUniqueInput = Prisma.AtLeast<{
  17678. id?: string
  17679. AND?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  17680. OR?: ManualRelanceLogWhereInput[]
  17681. NOT?: ManualRelanceLogWhereInput | ManualRelanceLogWhereInput[]
  17682. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  17683. subject?: StringFilter<"ManualRelanceLog"> | string
  17684. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  17685. sentCount?: IntFilter<"ManualRelanceLog"> | number
  17686. failedCount?: IntFilter<"ManualRelanceLog"> | number
  17687. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  17688. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17689. }, "id">
  17690. export type ManualRelanceLogOrderByWithAggregationInput = {
  17691. id?: SortOrder
  17692. workspaceId?: SortOrder
  17693. subject?: SortOrder
  17694. recipientCount?: SortOrder
  17695. sentCount?: SortOrder
  17696. failedCount?: SortOrder
  17697. sentAt?: SortOrder
  17698. _count?: ManualRelanceLogCountOrderByAggregateInput
  17699. _avg?: ManualRelanceLogAvgOrderByAggregateInput
  17700. _max?: ManualRelanceLogMaxOrderByAggregateInput
  17701. _min?: ManualRelanceLogMinOrderByAggregateInput
  17702. _sum?: ManualRelanceLogSumOrderByAggregateInput
  17703. }
  17704. export type ManualRelanceLogScalarWhereWithAggregatesInput = {
  17705. AND?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  17706. OR?: ManualRelanceLogScalarWhereWithAggregatesInput[]
  17707. NOT?: ManualRelanceLogScalarWhereWithAggregatesInput | ManualRelanceLogScalarWhereWithAggregatesInput[]
  17708. id?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  17709. workspaceId?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  17710. subject?: StringWithAggregatesFilter<"ManualRelanceLog"> | string
  17711. recipientCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  17712. sentCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  17713. failedCount?: IntWithAggregatesFilter<"ManualRelanceLog"> | number
  17714. sentAt?: DateTimeWithAggregatesFilter<"ManualRelanceLog"> | Date | string
  17715. }
  17716. export type ContributorWhereInput = {
  17717. AND?: ContributorWhereInput | ContributorWhereInput[]
  17718. OR?: ContributorWhereInput[]
  17719. NOT?: ContributorWhereInput | ContributorWhereInput[]
  17720. id?: StringFilter<"Contributor"> | string
  17721. workspaceId?: StringFilter<"Contributor"> | string
  17722. email?: StringFilter<"Contributor"> | string
  17723. service?: StringNullableFilter<"Contributor"> | string | null
  17724. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  17725. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  17726. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  17727. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  17728. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17729. ideas?: IdeaListRelationFilter
  17730. }
  17731. export type ContributorOrderByWithRelationInput = {
  17732. id?: SortOrder
  17733. workspaceId?: SortOrder
  17734. email?: SortOrder
  17735. service?: SortOrderInput | SortOrder
  17736. status?: SortOrder
  17737. invitedAt?: SortOrder
  17738. lastRemindedAt?: SortOrderInput | SortOrder
  17739. createdAt?: SortOrder
  17740. workspace?: WorkspaceOrderByWithRelationInput
  17741. ideas?: IdeaOrderByRelationAggregateInput
  17742. }
  17743. export type ContributorWhereUniqueInput = Prisma.AtLeast<{
  17744. id?: string
  17745. workspaceId_email?: ContributorWorkspaceIdEmailCompoundUniqueInput
  17746. AND?: ContributorWhereInput | ContributorWhereInput[]
  17747. OR?: ContributorWhereInput[]
  17748. NOT?: ContributorWhereInput | ContributorWhereInput[]
  17749. workspaceId?: StringFilter<"Contributor"> | string
  17750. email?: StringFilter<"Contributor"> | string
  17751. service?: StringNullableFilter<"Contributor"> | string | null
  17752. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  17753. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  17754. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  17755. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  17756. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17757. ideas?: IdeaListRelationFilter
  17758. }, "id" | "workspaceId_email">
  17759. export type ContributorOrderByWithAggregationInput = {
  17760. id?: SortOrder
  17761. workspaceId?: SortOrder
  17762. email?: SortOrder
  17763. service?: SortOrderInput | SortOrder
  17764. status?: SortOrder
  17765. invitedAt?: SortOrder
  17766. lastRemindedAt?: SortOrderInput | SortOrder
  17767. createdAt?: SortOrder
  17768. _count?: ContributorCountOrderByAggregateInput
  17769. _max?: ContributorMaxOrderByAggregateInput
  17770. _min?: ContributorMinOrderByAggregateInput
  17771. }
  17772. export type ContributorScalarWhereWithAggregatesInput = {
  17773. AND?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  17774. OR?: ContributorScalarWhereWithAggregatesInput[]
  17775. NOT?: ContributorScalarWhereWithAggregatesInput | ContributorScalarWhereWithAggregatesInput[]
  17776. id?: StringWithAggregatesFilter<"Contributor"> | string
  17777. workspaceId?: StringWithAggregatesFilter<"Contributor"> | string
  17778. email?: StringWithAggregatesFilter<"Contributor"> | string
  17779. service?: StringNullableWithAggregatesFilter<"Contributor"> | string | null
  17780. status?: EnumContributorStatusWithAggregatesFilter<"Contributor"> | $Enums.ContributorStatus
  17781. invitedAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  17782. lastRemindedAt?: DateTimeNullableWithAggregatesFilter<"Contributor"> | Date | string | null
  17783. createdAt?: DateTimeWithAggregatesFilter<"Contributor"> | Date | string
  17784. }
  17785. export type IdeaWhereInput = {
  17786. AND?: IdeaWhereInput | IdeaWhereInput[]
  17787. OR?: IdeaWhereInput[]
  17788. NOT?: IdeaWhereInput | IdeaWhereInput[]
  17789. id?: StringFilter<"Idea"> | string
  17790. workspaceId?: StringFilter<"Idea"> | string
  17791. contributorEmail?: StringFilter<"Idea"> | string
  17792. contributorId?: StringNullableFilter<"Idea"> | string | null
  17793. department?: StringFilter<"Idea"> | string
  17794. problemDescription?: StringFilter<"Idea"> | string
  17795. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  17796. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  17797. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  17798. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  17799. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  17800. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  17801. llmTitle?: StringNullableFilter<"Idea"> | string | null
  17802. llmDomain?: StringNullableFilter<"Idea"> | string | null
  17803. llmAiType?: StringNullableFilter<"Idea"> | string | null
  17804. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  17805. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  17806. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  17807. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  17808. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  17809. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  17810. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  17811. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  17812. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  17813. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  17814. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  17815. createdAt?: DateTimeFilter<"Idea"> | Date | string
  17816. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  17817. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17818. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  17819. attachments?: IdeaAttachmentListRelationFilter
  17820. qualificationQuestions?: QualificationQuestionListRelationFilter
  17821. }
  17822. export type IdeaOrderByWithRelationInput = {
  17823. id?: SortOrder
  17824. workspaceId?: SortOrder
  17825. contributorEmail?: SortOrder
  17826. contributorId?: SortOrderInput | SortOrder
  17827. department?: SortOrder
  17828. problemDescription?: SortOrder
  17829. estimatedImpact?: SortOrder
  17830. frequency?: SortOrder
  17831. optionalWhoAffected?: SortOrderInput | SortOrder
  17832. optionalAlreadyTried?: SortOrderInput | SortOrder
  17833. optionalSuccessLooksLike?: SortOrderInput | SortOrder
  17834. status?: SortOrder
  17835. llmTitle?: SortOrderInput | SortOrder
  17836. llmDomain?: SortOrderInput | SortOrder
  17837. llmAiType?: SortOrderInput | SortOrder
  17838. llmExplanation?: SortOrderInput | SortOrder
  17839. llmScoreImpact?: SortOrderInput | SortOrder
  17840. llmScoreFeasibility?: SortOrderInput | SortOrder
  17841. llmScoreUrgency?: SortOrderInput | SortOrder
  17842. llmEnrichedAt?: SortOrderInput | SortOrder
  17843. llmEnrichFailed?: SortOrder
  17844. manualScoreImpact?: SortOrderInput | SortOrder
  17845. manualScoreFeasibility?: SortOrderInput | SortOrder
  17846. manualScoreUrgency?: SortOrderInput | SortOrder
  17847. priorityOrder?: SortOrderInput | SortOrder
  17848. emailMessageId?: SortOrderInput | SortOrder
  17849. createdAt?: SortOrder
  17850. updatedAt?: SortOrder
  17851. workspace?: WorkspaceOrderByWithRelationInput
  17852. contributor?: ContributorOrderByWithRelationInput
  17853. attachments?: IdeaAttachmentOrderByRelationAggregateInput
  17854. qualificationQuestions?: QualificationQuestionOrderByRelationAggregateInput
  17855. }
  17856. export type IdeaWhereUniqueInput = Prisma.AtLeast<{
  17857. id?: string
  17858. emailMessageId?: string
  17859. AND?: IdeaWhereInput | IdeaWhereInput[]
  17860. OR?: IdeaWhereInput[]
  17861. NOT?: IdeaWhereInput | IdeaWhereInput[]
  17862. workspaceId?: StringFilter<"Idea"> | string
  17863. contributorEmail?: StringFilter<"Idea"> | string
  17864. contributorId?: StringNullableFilter<"Idea"> | string | null
  17865. department?: StringFilter<"Idea"> | string
  17866. problemDescription?: StringFilter<"Idea"> | string
  17867. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  17868. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  17869. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  17870. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  17871. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  17872. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  17873. llmTitle?: StringNullableFilter<"Idea"> | string | null
  17874. llmDomain?: StringNullableFilter<"Idea"> | string | null
  17875. llmAiType?: StringNullableFilter<"Idea"> | string | null
  17876. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  17877. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  17878. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  17879. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  17880. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  17881. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  17882. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  17883. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  17884. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  17885. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  17886. createdAt?: DateTimeFilter<"Idea"> | Date | string
  17887. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  17888. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  17889. contributor?: XOR<ContributorNullableScalarRelationFilter, ContributorWhereInput> | null
  17890. attachments?: IdeaAttachmentListRelationFilter
  17891. qualificationQuestions?: QualificationQuestionListRelationFilter
  17892. }, "id" | "emailMessageId">
  17893. export type IdeaOrderByWithAggregationInput = {
  17894. id?: SortOrder
  17895. workspaceId?: SortOrder
  17896. contributorEmail?: SortOrder
  17897. contributorId?: SortOrderInput | SortOrder
  17898. department?: SortOrder
  17899. problemDescription?: SortOrder
  17900. estimatedImpact?: SortOrder
  17901. frequency?: SortOrder
  17902. optionalWhoAffected?: SortOrderInput | SortOrder
  17903. optionalAlreadyTried?: SortOrderInput | SortOrder
  17904. optionalSuccessLooksLike?: SortOrderInput | SortOrder
  17905. status?: SortOrder
  17906. llmTitle?: SortOrderInput | SortOrder
  17907. llmDomain?: SortOrderInput | SortOrder
  17908. llmAiType?: SortOrderInput | SortOrder
  17909. llmExplanation?: SortOrderInput | SortOrder
  17910. llmScoreImpact?: SortOrderInput | SortOrder
  17911. llmScoreFeasibility?: SortOrderInput | SortOrder
  17912. llmScoreUrgency?: SortOrderInput | SortOrder
  17913. llmEnrichedAt?: SortOrderInput | SortOrder
  17914. llmEnrichFailed?: SortOrder
  17915. manualScoreImpact?: SortOrderInput | SortOrder
  17916. manualScoreFeasibility?: SortOrderInput | SortOrder
  17917. manualScoreUrgency?: SortOrderInput | SortOrder
  17918. priorityOrder?: SortOrderInput | SortOrder
  17919. emailMessageId?: SortOrderInput | SortOrder
  17920. createdAt?: SortOrder
  17921. updatedAt?: SortOrder
  17922. _count?: IdeaCountOrderByAggregateInput
  17923. _avg?: IdeaAvgOrderByAggregateInput
  17924. _max?: IdeaMaxOrderByAggregateInput
  17925. _min?: IdeaMinOrderByAggregateInput
  17926. _sum?: IdeaSumOrderByAggregateInput
  17927. }
  17928. export type IdeaScalarWhereWithAggregatesInput = {
  17929. AND?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  17930. OR?: IdeaScalarWhereWithAggregatesInput[]
  17931. NOT?: IdeaScalarWhereWithAggregatesInput | IdeaScalarWhereWithAggregatesInput[]
  17932. id?: StringWithAggregatesFilter<"Idea"> | string
  17933. workspaceId?: StringWithAggregatesFilter<"Idea"> | string
  17934. contributorEmail?: StringWithAggregatesFilter<"Idea"> | string
  17935. contributorId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17936. department?: StringWithAggregatesFilter<"Idea"> | string
  17937. problemDescription?: StringWithAggregatesFilter<"Idea"> | string
  17938. estimatedImpact?: EnumImpactLevelWithAggregatesFilter<"Idea"> | $Enums.ImpactLevel
  17939. frequency?: EnumFrequencyWithAggregatesFilter<"Idea"> | $Enums.Frequency
  17940. optionalWhoAffected?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17941. optionalAlreadyTried?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17942. optionalSuccessLooksLike?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17943. status?: EnumIdeaStatusWithAggregatesFilter<"Idea"> | $Enums.IdeaStatus
  17944. llmTitle?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17945. llmDomain?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17946. llmAiType?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17947. llmExplanation?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17948. llmScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  17949. llmScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  17950. llmScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  17951. llmEnrichedAt?: DateTimeNullableWithAggregatesFilter<"Idea"> | Date | string | null
  17952. llmEnrichFailed?: BoolWithAggregatesFilter<"Idea"> | boolean
  17953. manualScoreImpact?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  17954. manualScoreFeasibility?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  17955. manualScoreUrgency?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  17956. priorityOrder?: IntNullableWithAggregatesFilter<"Idea"> | number | null
  17957. emailMessageId?: StringNullableWithAggregatesFilter<"Idea"> | string | null
  17958. createdAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  17959. updatedAt?: DateTimeWithAggregatesFilter<"Idea"> | Date | string
  17960. }
  17961. export type PostWhereInput = {
  17962. AND?: PostWhereInput | PostWhereInput[]
  17963. OR?: PostWhereInput[]
  17964. NOT?: PostWhereInput | PostWhereInput[]
  17965. id?: IntFilter<"Post"> | number
  17966. name?: StringFilter<"Post"> | string
  17967. createdAt?: DateTimeFilter<"Post"> | Date | string
  17968. updatedAt?: DateTimeFilter<"Post"> | Date | string
  17969. createdById?: StringFilter<"Post"> | string
  17970. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  17971. }
  17972. export type PostOrderByWithRelationInput = {
  17973. id?: SortOrder
  17974. name?: SortOrder
  17975. createdAt?: SortOrder
  17976. updatedAt?: SortOrder
  17977. createdById?: SortOrder
  17978. createdBy?: UserOrderByWithRelationInput
  17979. }
  17980. export type PostWhereUniqueInput = Prisma.AtLeast<{
  17981. id?: number
  17982. AND?: PostWhereInput | PostWhereInput[]
  17983. OR?: PostWhereInput[]
  17984. NOT?: PostWhereInput | PostWhereInput[]
  17985. name?: StringFilter<"Post"> | string
  17986. createdAt?: DateTimeFilter<"Post"> | Date | string
  17987. updatedAt?: DateTimeFilter<"Post"> | Date | string
  17988. createdById?: StringFilter<"Post"> | string
  17989. createdBy?: XOR<UserScalarRelationFilter, UserWhereInput>
  17990. }, "id">
  17991. export type PostOrderByWithAggregationInput = {
  17992. id?: SortOrder
  17993. name?: SortOrder
  17994. createdAt?: SortOrder
  17995. updatedAt?: SortOrder
  17996. createdById?: SortOrder
  17997. _count?: PostCountOrderByAggregateInput
  17998. _avg?: PostAvgOrderByAggregateInput
  17999. _max?: PostMaxOrderByAggregateInput
  18000. _min?: PostMinOrderByAggregateInput
  18001. _sum?: PostSumOrderByAggregateInput
  18002. }
  18003. export type PostScalarWhereWithAggregatesInput = {
  18004. AND?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  18005. OR?: PostScalarWhereWithAggregatesInput[]
  18006. NOT?: PostScalarWhereWithAggregatesInput | PostScalarWhereWithAggregatesInput[]
  18007. id?: IntWithAggregatesFilter<"Post"> | number
  18008. name?: StringWithAggregatesFilter<"Post"> | string
  18009. createdAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  18010. updatedAt?: DateTimeWithAggregatesFilter<"Post"> | Date | string
  18011. createdById?: StringWithAggregatesFilter<"Post"> | string
  18012. }
  18013. export type AccountWhereInput = {
  18014. AND?: AccountWhereInput | AccountWhereInput[]
  18015. OR?: AccountWhereInput[]
  18016. NOT?: AccountWhereInput | AccountWhereInput[]
  18017. id?: StringFilter<"Account"> | string
  18018. userId?: StringFilter<"Account"> | string
  18019. type?: StringFilter<"Account"> | string
  18020. provider?: StringFilter<"Account"> | string
  18021. providerAccountId?: StringFilter<"Account"> | string
  18022. refresh_token?: StringNullableFilter<"Account"> | string | null
  18023. access_token?: StringNullableFilter<"Account"> | string | null
  18024. expires_at?: IntNullableFilter<"Account"> | number | null
  18025. token_type?: StringNullableFilter<"Account"> | string | null
  18026. scope?: StringNullableFilter<"Account"> | string | null
  18027. id_token?: StringNullableFilter<"Account"> | string | null
  18028. session_state?: StringNullableFilter<"Account"> | string | null
  18029. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  18030. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  18031. }
  18032. export type AccountOrderByWithRelationInput = {
  18033. id?: SortOrder
  18034. userId?: SortOrder
  18035. type?: SortOrder
  18036. provider?: SortOrder
  18037. providerAccountId?: SortOrder
  18038. refresh_token?: SortOrderInput | SortOrder
  18039. access_token?: SortOrderInput | SortOrder
  18040. expires_at?: SortOrderInput | SortOrder
  18041. token_type?: SortOrderInput | SortOrder
  18042. scope?: SortOrderInput | SortOrder
  18043. id_token?: SortOrderInput | SortOrder
  18044. session_state?: SortOrderInput | SortOrder
  18045. refresh_token_expires_in?: SortOrderInput | SortOrder
  18046. user?: UserOrderByWithRelationInput
  18047. }
  18048. export type AccountWhereUniqueInput = Prisma.AtLeast<{
  18049. id?: string
  18050. provider_providerAccountId?: AccountProviderProviderAccountIdCompoundUniqueInput
  18051. AND?: AccountWhereInput | AccountWhereInput[]
  18052. OR?: AccountWhereInput[]
  18053. NOT?: AccountWhereInput | AccountWhereInput[]
  18054. userId?: StringFilter<"Account"> | string
  18055. type?: StringFilter<"Account"> | string
  18056. provider?: StringFilter<"Account"> | string
  18057. providerAccountId?: StringFilter<"Account"> | string
  18058. refresh_token?: StringNullableFilter<"Account"> | string | null
  18059. access_token?: StringNullableFilter<"Account"> | string | null
  18060. expires_at?: IntNullableFilter<"Account"> | number | null
  18061. token_type?: StringNullableFilter<"Account"> | string | null
  18062. scope?: StringNullableFilter<"Account"> | string | null
  18063. id_token?: StringNullableFilter<"Account"> | string | null
  18064. session_state?: StringNullableFilter<"Account"> | string | null
  18065. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  18066. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  18067. }, "id" | "provider_providerAccountId">
  18068. export type AccountOrderByWithAggregationInput = {
  18069. id?: SortOrder
  18070. userId?: SortOrder
  18071. type?: SortOrder
  18072. provider?: SortOrder
  18073. providerAccountId?: SortOrder
  18074. refresh_token?: SortOrderInput | SortOrder
  18075. access_token?: SortOrderInput | SortOrder
  18076. expires_at?: SortOrderInput | SortOrder
  18077. token_type?: SortOrderInput | SortOrder
  18078. scope?: SortOrderInput | SortOrder
  18079. id_token?: SortOrderInput | SortOrder
  18080. session_state?: SortOrderInput | SortOrder
  18081. refresh_token_expires_in?: SortOrderInput | SortOrder
  18082. _count?: AccountCountOrderByAggregateInput
  18083. _avg?: AccountAvgOrderByAggregateInput
  18084. _max?: AccountMaxOrderByAggregateInput
  18085. _min?: AccountMinOrderByAggregateInput
  18086. _sum?: AccountSumOrderByAggregateInput
  18087. }
  18088. export type AccountScalarWhereWithAggregatesInput = {
  18089. AND?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  18090. OR?: AccountScalarWhereWithAggregatesInput[]
  18091. NOT?: AccountScalarWhereWithAggregatesInput | AccountScalarWhereWithAggregatesInput[]
  18092. id?: StringWithAggregatesFilter<"Account"> | string
  18093. userId?: StringWithAggregatesFilter<"Account"> | string
  18094. type?: StringWithAggregatesFilter<"Account"> | string
  18095. provider?: StringWithAggregatesFilter<"Account"> | string
  18096. providerAccountId?: StringWithAggregatesFilter<"Account"> | string
  18097. refresh_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  18098. access_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  18099. expires_at?: IntNullableWithAggregatesFilter<"Account"> | number | null
  18100. token_type?: StringNullableWithAggregatesFilter<"Account"> | string | null
  18101. scope?: StringNullableWithAggregatesFilter<"Account"> | string | null
  18102. id_token?: StringNullableWithAggregatesFilter<"Account"> | string | null
  18103. session_state?: StringNullableWithAggregatesFilter<"Account"> | string | null
  18104. refresh_token_expires_in?: IntNullableWithAggregatesFilter<"Account"> | number | null
  18105. }
  18106. export type SessionWhereInput = {
  18107. AND?: SessionWhereInput | SessionWhereInput[]
  18108. OR?: SessionWhereInput[]
  18109. NOT?: SessionWhereInput | SessionWhereInput[]
  18110. id?: StringFilter<"Session"> | string
  18111. sessionToken?: StringFilter<"Session"> | string
  18112. userId?: StringFilter<"Session"> | string
  18113. expires?: DateTimeFilter<"Session"> | Date | string
  18114. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  18115. }
  18116. export type SessionOrderByWithRelationInput = {
  18117. id?: SortOrder
  18118. sessionToken?: SortOrder
  18119. userId?: SortOrder
  18120. expires?: SortOrder
  18121. user?: UserOrderByWithRelationInput
  18122. }
  18123. export type SessionWhereUniqueInput = Prisma.AtLeast<{
  18124. id?: string
  18125. sessionToken?: string
  18126. AND?: SessionWhereInput | SessionWhereInput[]
  18127. OR?: SessionWhereInput[]
  18128. NOT?: SessionWhereInput | SessionWhereInput[]
  18129. userId?: StringFilter<"Session"> | string
  18130. expires?: DateTimeFilter<"Session"> | Date | string
  18131. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  18132. }, "id" | "sessionToken">
  18133. export type SessionOrderByWithAggregationInput = {
  18134. id?: SortOrder
  18135. sessionToken?: SortOrder
  18136. userId?: SortOrder
  18137. expires?: SortOrder
  18138. _count?: SessionCountOrderByAggregateInput
  18139. _max?: SessionMaxOrderByAggregateInput
  18140. _min?: SessionMinOrderByAggregateInput
  18141. }
  18142. export type SessionScalarWhereWithAggregatesInput = {
  18143. AND?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  18144. OR?: SessionScalarWhereWithAggregatesInput[]
  18145. NOT?: SessionScalarWhereWithAggregatesInput | SessionScalarWhereWithAggregatesInput[]
  18146. id?: StringWithAggregatesFilter<"Session"> | string
  18147. sessionToken?: StringWithAggregatesFilter<"Session"> | string
  18148. userId?: StringWithAggregatesFilter<"Session"> | string
  18149. expires?: DateTimeWithAggregatesFilter<"Session"> | Date | string
  18150. }
  18151. export type UserWhereInput = {
  18152. AND?: UserWhereInput | UserWhereInput[]
  18153. OR?: UserWhereInput[]
  18154. NOT?: UserWhereInput | UserWhereInput[]
  18155. id?: StringFilter<"User"> | string
  18156. name?: StringNullableFilter<"User"> | string | null
  18157. email?: StringNullableFilter<"User"> | string | null
  18158. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  18159. password?: StringNullableFilter<"User"> | string | null
  18160. legalTermsAcceptedAt?: DateTimeNullableFilter<"User"> | Date | string | null
  18161. image?: StringNullableFilter<"User"> | string | null
  18162. accounts?: AccountListRelationFilter
  18163. sessions?: SessionListRelationFilter
  18164. posts?: PostListRelationFilter
  18165. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  18166. feedbacks?: AppFeedbackListRelationFilter
  18167. }
  18168. export type UserOrderByWithRelationInput = {
  18169. id?: SortOrder
  18170. name?: SortOrderInput | SortOrder
  18171. email?: SortOrderInput | SortOrder
  18172. emailVerified?: SortOrderInput | SortOrder
  18173. password?: SortOrderInput | SortOrder
  18174. legalTermsAcceptedAt?: SortOrderInput | SortOrder
  18175. image?: SortOrderInput | SortOrder
  18176. accounts?: AccountOrderByRelationAggregateInput
  18177. sessions?: SessionOrderByRelationAggregateInput
  18178. posts?: PostOrderByRelationAggregateInput
  18179. workspace?: WorkspaceOrderByWithRelationInput
  18180. feedbacks?: AppFeedbackOrderByRelationAggregateInput
  18181. }
  18182. export type UserWhereUniqueInput = Prisma.AtLeast<{
  18183. id?: string
  18184. email?: string
  18185. AND?: UserWhereInput | UserWhereInput[]
  18186. OR?: UserWhereInput[]
  18187. NOT?: UserWhereInput | UserWhereInput[]
  18188. name?: StringNullableFilter<"User"> | string | null
  18189. emailVerified?: DateTimeNullableFilter<"User"> | Date | string | null
  18190. password?: StringNullableFilter<"User"> | string | null
  18191. legalTermsAcceptedAt?: DateTimeNullableFilter<"User"> | Date | string | null
  18192. image?: StringNullableFilter<"User"> | string | null
  18193. accounts?: AccountListRelationFilter
  18194. sessions?: SessionListRelationFilter
  18195. posts?: PostListRelationFilter
  18196. workspace?: XOR<WorkspaceNullableScalarRelationFilter, WorkspaceWhereInput> | null
  18197. feedbacks?: AppFeedbackListRelationFilter
  18198. }, "id" | "email">
  18199. export type UserOrderByWithAggregationInput = {
  18200. id?: SortOrder
  18201. name?: SortOrderInput | SortOrder
  18202. email?: SortOrderInput | SortOrder
  18203. emailVerified?: SortOrderInput | SortOrder
  18204. password?: SortOrderInput | SortOrder
  18205. legalTermsAcceptedAt?: SortOrderInput | SortOrder
  18206. image?: SortOrderInput | SortOrder
  18207. _count?: UserCountOrderByAggregateInput
  18208. _max?: UserMaxOrderByAggregateInput
  18209. _min?: UserMinOrderByAggregateInput
  18210. }
  18211. export type UserScalarWhereWithAggregatesInput = {
  18212. AND?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  18213. OR?: UserScalarWhereWithAggregatesInput[]
  18214. NOT?: UserScalarWhereWithAggregatesInput | UserScalarWhereWithAggregatesInput[]
  18215. id?: StringWithAggregatesFilter<"User"> | string
  18216. name?: StringNullableWithAggregatesFilter<"User"> | string | null
  18217. email?: StringNullableWithAggregatesFilter<"User"> | string | null
  18218. emailVerified?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
  18219. password?: StringNullableWithAggregatesFilter<"User"> | string | null
  18220. legalTermsAcceptedAt?: DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
  18221. image?: StringNullableWithAggregatesFilter<"User"> | string | null
  18222. }
  18223. export type VerificationTokenWhereInput = {
  18224. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  18225. OR?: VerificationTokenWhereInput[]
  18226. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  18227. identifier?: StringFilter<"VerificationToken"> | string
  18228. token?: StringFilter<"VerificationToken"> | string
  18229. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  18230. }
  18231. export type VerificationTokenOrderByWithRelationInput = {
  18232. identifier?: SortOrder
  18233. token?: SortOrder
  18234. expires?: SortOrder
  18235. }
  18236. export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
  18237. token?: string
  18238. identifier_token?: VerificationTokenIdentifierTokenCompoundUniqueInput
  18239. AND?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  18240. OR?: VerificationTokenWhereInput[]
  18241. NOT?: VerificationTokenWhereInput | VerificationTokenWhereInput[]
  18242. identifier?: StringFilter<"VerificationToken"> | string
  18243. expires?: DateTimeFilter<"VerificationToken"> | Date | string
  18244. }, "token" | "identifier_token">
  18245. export type VerificationTokenOrderByWithAggregationInput = {
  18246. identifier?: SortOrder
  18247. token?: SortOrder
  18248. expires?: SortOrder
  18249. _count?: VerificationTokenCountOrderByAggregateInput
  18250. _max?: VerificationTokenMaxOrderByAggregateInput
  18251. _min?: VerificationTokenMinOrderByAggregateInput
  18252. }
  18253. export type VerificationTokenScalarWhereWithAggregatesInput = {
  18254. AND?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  18255. OR?: VerificationTokenScalarWhereWithAggregatesInput[]
  18256. NOT?: VerificationTokenScalarWhereWithAggregatesInput | VerificationTokenScalarWhereWithAggregatesInput[]
  18257. identifier?: StringWithAggregatesFilter<"VerificationToken"> | string
  18258. token?: StringWithAggregatesFilter<"VerificationToken"> | string
  18259. expires?: DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string
  18260. }
  18261. export type IdeaAttachmentWhereInput = {
  18262. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  18263. OR?: IdeaAttachmentWhereInput[]
  18264. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  18265. id?: StringFilter<"IdeaAttachment"> | string
  18266. ideaId?: StringFilter<"IdeaAttachment"> | string
  18267. workspaceId?: StringFilter<"IdeaAttachment"> | string
  18268. filename?: StringFilter<"IdeaAttachment"> | string
  18269. contentType?: StringFilter<"IdeaAttachment"> | string
  18270. size?: IntFilter<"IdeaAttachment"> | number
  18271. url?: StringFilter<"IdeaAttachment"> | string
  18272. blobPath?: StringFilter<"IdeaAttachment"> | string
  18273. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  18274. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  18275. }
  18276. export type IdeaAttachmentOrderByWithRelationInput = {
  18277. id?: SortOrder
  18278. ideaId?: SortOrder
  18279. workspaceId?: SortOrder
  18280. filename?: SortOrder
  18281. contentType?: SortOrder
  18282. size?: SortOrder
  18283. url?: SortOrder
  18284. blobPath?: SortOrder
  18285. createdAt?: SortOrder
  18286. idea?: IdeaOrderByWithRelationInput
  18287. }
  18288. export type IdeaAttachmentWhereUniqueInput = Prisma.AtLeast<{
  18289. id?: string
  18290. AND?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  18291. OR?: IdeaAttachmentWhereInput[]
  18292. NOT?: IdeaAttachmentWhereInput | IdeaAttachmentWhereInput[]
  18293. ideaId?: StringFilter<"IdeaAttachment"> | string
  18294. workspaceId?: StringFilter<"IdeaAttachment"> | string
  18295. filename?: StringFilter<"IdeaAttachment"> | string
  18296. contentType?: StringFilter<"IdeaAttachment"> | string
  18297. size?: IntFilter<"IdeaAttachment"> | number
  18298. url?: StringFilter<"IdeaAttachment"> | string
  18299. blobPath?: StringFilter<"IdeaAttachment"> | string
  18300. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  18301. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  18302. }, "id">
  18303. export type IdeaAttachmentOrderByWithAggregationInput = {
  18304. id?: SortOrder
  18305. ideaId?: SortOrder
  18306. workspaceId?: SortOrder
  18307. filename?: SortOrder
  18308. contentType?: SortOrder
  18309. size?: SortOrder
  18310. url?: SortOrder
  18311. blobPath?: SortOrder
  18312. createdAt?: SortOrder
  18313. _count?: IdeaAttachmentCountOrderByAggregateInput
  18314. _avg?: IdeaAttachmentAvgOrderByAggregateInput
  18315. _max?: IdeaAttachmentMaxOrderByAggregateInput
  18316. _min?: IdeaAttachmentMinOrderByAggregateInput
  18317. _sum?: IdeaAttachmentSumOrderByAggregateInput
  18318. }
  18319. export type IdeaAttachmentScalarWhereWithAggregatesInput = {
  18320. AND?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  18321. OR?: IdeaAttachmentScalarWhereWithAggregatesInput[]
  18322. NOT?: IdeaAttachmentScalarWhereWithAggregatesInput | IdeaAttachmentScalarWhereWithAggregatesInput[]
  18323. id?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  18324. ideaId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  18325. workspaceId?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  18326. filename?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  18327. contentType?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  18328. size?: IntWithAggregatesFilter<"IdeaAttachment"> | number
  18329. url?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  18330. blobPath?: StringWithAggregatesFilter<"IdeaAttachment"> | string
  18331. createdAt?: DateTimeWithAggregatesFilter<"IdeaAttachment"> | Date | string
  18332. }
  18333. export type QualificationQuestionWhereInput = {
  18334. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  18335. OR?: QualificationQuestionWhereInput[]
  18336. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  18337. id?: StringFilter<"QualificationQuestion"> | string
  18338. ideaId?: StringFilter<"QualificationQuestion"> | string
  18339. workspaceId?: StringFilter<"QualificationQuestion"> | string
  18340. questionText?: StringFilter<"QualificationQuestion"> | string
  18341. responseToken?: StringFilter<"QualificationQuestion"> | string
  18342. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  18343. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  18344. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  18345. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  18346. }
  18347. export type QualificationQuestionOrderByWithRelationInput = {
  18348. id?: SortOrder
  18349. ideaId?: SortOrder
  18350. workspaceId?: SortOrder
  18351. questionText?: SortOrder
  18352. responseToken?: SortOrder
  18353. askedAt?: SortOrder
  18354. responseText?: SortOrderInput | SortOrder
  18355. answeredAt?: SortOrderInput | SortOrder
  18356. idea?: IdeaOrderByWithRelationInput
  18357. }
  18358. export type QualificationQuestionWhereUniqueInput = Prisma.AtLeast<{
  18359. id?: string
  18360. responseToken?: string
  18361. AND?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  18362. OR?: QualificationQuestionWhereInput[]
  18363. NOT?: QualificationQuestionWhereInput | QualificationQuestionWhereInput[]
  18364. ideaId?: StringFilter<"QualificationQuestion"> | string
  18365. workspaceId?: StringFilter<"QualificationQuestion"> | string
  18366. questionText?: StringFilter<"QualificationQuestion"> | string
  18367. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  18368. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  18369. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  18370. idea?: XOR<IdeaScalarRelationFilter, IdeaWhereInput>
  18371. }, "id" | "responseToken">
  18372. export type QualificationQuestionOrderByWithAggregationInput = {
  18373. id?: SortOrder
  18374. ideaId?: SortOrder
  18375. workspaceId?: SortOrder
  18376. questionText?: SortOrder
  18377. responseToken?: SortOrder
  18378. askedAt?: SortOrder
  18379. responseText?: SortOrderInput | SortOrder
  18380. answeredAt?: SortOrderInput | SortOrder
  18381. _count?: QualificationQuestionCountOrderByAggregateInput
  18382. _max?: QualificationQuestionMaxOrderByAggregateInput
  18383. _min?: QualificationQuestionMinOrderByAggregateInput
  18384. }
  18385. export type QualificationQuestionScalarWhereWithAggregatesInput = {
  18386. AND?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  18387. OR?: QualificationQuestionScalarWhereWithAggregatesInput[]
  18388. NOT?: QualificationQuestionScalarWhereWithAggregatesInput | QualificationQuestionScalarWhereWithAggregatesInput[]
  18389. id?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  18390. ideaId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  18391. workspaceId?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  18392. questionText?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  18393. responseToken?: StringWithAggregatesFilter<"QualificationQuestion"> | string
  18394. askedAt?: DateTimeWithAggregatesFilter<"QualificationQuestion"> | Date | string
  18395. responseText?: StringNullableWithAggregatesFilter<"QualificationQuestion"> | string | null
  18396. answeredAt?: DateTimeNullableWithAggregatesFilter<"QualificationQuestion"> | Date | string | null
  18397. }
  18398. export type LibraryCaseWhereInput = {
  18399. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  18400. OR?: LibraryCaseWhereInput[]
  18401. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  18402. id?: StringFilter<"LibraryCase"> | string
  18403. sector?: StringFilter<"LibraryCase"> | string
  18404. department?: StringFilter<"LibraryCase"> | string
  18405. title?: StringFilter<"LibraryCase"> | string
  18406. description?: StringFilter<"LibraryCase"> | string
  18407. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  18408. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  18409. }
  18410. export type LibraryCaseOrderByWithRelationInput = {
  18411. id?: SortOrder
  18412. sector?: SortOrder
  18413. department?: SortOrder
  18414. title?: SortOrder
  18415. description?: SortOrder
  18416. createdAt?: SortOrder
  18417. updatedAt?: SortOrder
  18418. }
  18419. export type LibraryCaseWhereUniqueInput = Prisma.AtLeast<{
  18420. id?: string
  18421. AND?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  18422. OR?: LibraryCaseWhereInput[]
  18423. NOT?: LibraryCaseWhereInput | LibraryCaseWhereInput[]
  18424. sector?: StringFilter<"LibraryCase"> | string
  18425. department?: StringFilter<"LibraryCase"> | string
  18426. title?: StringFilter<"LibraryCase"> | string
  18427. description?: StringFilter<"LibraryCase"> | string
  18428. createdAt?: DateTimeFilter<"LibraryCase"> | Date | string
  18429. updatedAt?: DateTimeFilter<"LibraryCase"> | Date | string
  18430. }, "id">
  18431. export type LibraryCaseOrderByWithAggregationInput = {
  18432. id?: SortOrder
  18433. sector?: SortOrder
  18434. department?: SortOrder
  18435. title?: SortOrder
  18436. description?: SortOrder
  18437. createdAt?: SortOrder
  18438. updatedAt?: SortOrder
  18439. _count?: LibraryCaseCountOrderByAggregateInput
  18440. _max?: LibraryCaseMaxOrderByAggregateInput
  18441. _min?: LibraryCaseMinOrderByAggregateInput
  18442. }
  18443. export type LibraryCaseScalarWhereWithAggregatesInput = {
  18444. AND?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  18445. OR?: LibraryCaseScalarWhereWithAggregatesInput[]
  18446. NOT?: LibraryCaseScalarWhereWithAggregatesInput | LibraryCaseScalarWhereWithAggregatesInput[]
  18447. id?: StringWithAggregatesFilter<"LibraryCase"> | string
  18448. sector?: StringWithAggregatesFilter<"LibraryCase"> | string
  18449. department?: StringWithAggregatesFilter<"LibraryCase"> | string
  18450. title?: StringWithAggregatesFilter<"LibraryCase"> | string
  18451. description?: StringWithAggregatesFilter<"LibraryCase"> | string
  18452. createdAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  18453. updatedAt?: DateTimeWithAggregatesFilter<"LibraryCase"> | Date | string
  18454. }
  18455. export type AppFeedbackWhereInput = {
  18456. AND?: AppFeedbackWhereInput | AppFeedbackWhereInput[]
  18457. OR?: AppFeedbackWhereInput[]
  18458. NOT?: AppFeedbackWhereInput | AppFeedbackWhereInput[]
  18459. id?: StringFilter<"AppFeedback"> | string
  18460. userId?: StringFilter<"AppFeedback"> | string
  18461. workspaceId?: StringFilter<"AppFeedback"> | string
  18462. type?: EnumFeedbackTypeFilter<"AppFeedback"> | $Enums.FeedbackType
  18463. message?: StringFilter<"AppFeedback"> | string
  18464. createdAt?: DateTimeFilter<"AppFeedback"> | Date | string
  18465. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  18466. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  18467. }
  18468. export type AppFeedbackOrderByWithRelationInput = {
  18469. id?: SortOrder
  18470. userId?: SortOrder
  18471. workspaceId?: SortOrder
  18472. type?: SortOrder
  18473. message?: SortOrder
  18474. createdAt?: SortOrder
  18475. user?: UserOrderByWithRelationInput
  18476. workspace?: WorkspaceOrderByWithRelationInput
  18477. }
  18478. export type AppFeedbackWhereUniqueInput = Prisma.AtLeast<{
  18479. id?: string
  18480. AND?: AppFeedbackWhereInput | AppFeedbackWhereInput[]
  18481. OR?: AppFeedbackWhereInput[]
  18482. NOT?: AppFeedbackWhereInput | AppFeedbackWhereInput[]
  18483. userId?: StringFilter<"AppFeedback"> | string
  18484. workspaceId?: StringFilter<"AppFeedback"> | string
  18485. type?: EnumFeedbackTypeFilter<"AppFeedback"> | $Enums.FeedbackType
  18486. message?: StringFilter<"AppFeedback"> | string
  18487. createdAt?: DateTimeFilter<"AppFeedback"> | Date | string
  18488. user?: XOR<UserScalarRelationFilter, UserWhereInput>
  18489. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  18490. }, "id">
  18491. export type AppFeedbackOrderByWithAggregationInput = {
  18492. id?: SortOrder
  18493. userId?: SortOrder
  18494. workspaceId?: SortOrder
  18495. type?: SortOrder
  18496. message?: SortOrder
  18497. createdAt?: SortOrder
  18498. _count?: AppFeedbackCountOrderByAggregateInput
  18499. _max?: AppFeedbackMaxOrderByAggregateInput
  18500. _min?: AppFeedbackMinOrderByAggregateInput
  18501. }
  18502. export type AppFeedbackScalarWhereWithAggregatesInput = {
  18503. AND?: AppFeedbackScalarWhereWithAggregatesInput | AppFeedbackScalarWhereWithAggregatesInput[]
  18504. OR?: AppFeedbackScalarWhereWithAggregatesInput[]
  18505. NOT?: AppFeedbackScalarWhereWithAggregatesInput | AppFeedbackScalarWhereWithAggregatesInput[]
  18506. id?: StringWithAggregatesFilter<"AppFeedback"> | string
  18507. userId?: StringWithAggregatesFilter<"AppFeedback"> | string
  18508. workspaceId?: StringWithAggregatesFilter<"AppFeedback"> | string
  18509. type?: EnumFeedbackTypeWithAggregatesFilter<"AppFeedback"> | $Enums.FeedbackType
  18510. message?: StringWithAggregatesFilter<"AppFeedback"> | string
  18511. createdAt?: DateTimeWithAggregatesFilter<"AppFeedback"> | Date | string
  18512. }
  18513. export type ShareLinkWhereInput = {
  18514. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  18515. OR?: ShareLinkWhereInput[]
  18516. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  18517. id?: StringFilter<"ShareLink"> | string
  18518. workspaceId?: StringFilter<"ShareLink"> | string
  18519. token?: StringFilter<"ShareLink"> | string
  18520. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  18521. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  18522. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  18523. }
  18524. export type ShareLinkOrderByWithRelationInput = {
  18525. id?: SortOrder
  18526. workspaceId?: SortOrder
  18527. token?: SortOrder
  18528. expiresAt?: SortOrderInput | SortOrder
  18529. createdAt?: SortOrder
  18530. workspace?: WorkspaceOrderByWithRelationInput
  18531. }
  18532. export type ShareLinkWhereUniqueInput = Prisma.AtLeast<{
  18533. id?: string
  18534. workspaceId?: string
  18535. token?: string
  18536. AND?: ShareLinkWhereInput | ShareLinkWhereInput[]
  18537. OR?: ShareLinkWhereInput[]
  18538. NOT?: ShareLinkWhereInput | ShareLinkWhereInput[]
  18539. expiresAt?: DateTimeNullableFilter<"ShareLink"> | Date | string | null
  18540. createdAt?: DateTimeFilter<"ShareLink"> | Date | string
  18541. workspace?: XOR<WorkspaceScalarRelationFilter, WorkspaceWhereInput>
  18542. }, "id" | "workspaceId" | "token">
  18543. export type ShareLinkOrderByWithAggregationInput = {
  18544. id?: SortOrder
  18545. workspaceId?: SortOrder
  18546. token?: SortOrder
  18547. expiresAt?: SortOrderInput | SortOrder
  18548. createdAt?: SortOrder
  18549. _count?: ShareLinkCountOrderByAggregateInput
  18550. _max?: ShareLinkMaxOrderByAggregateInput
  18551. _min?: ShareLinkMinOrderByAggregateInput
  18552. }
  18553. export type ShareLinkScalarWhereWithAggregatesInput = {
  18554. AND?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  18555. OR?: ShareLinkScalarWhereWithAggregatesInput[]
  18556. NOT?: ShareLinkScalarWhereWithAggregatesInput | ShareLinkScalarWhereWithAggregatesInput[]
  18557. id?: StringWithAggregatesFilter<"ShareLink"> | string
  18558. workspaceId?: StringWithAggregatesFilter<"ShareLink"> | string
  18559. token?: StringWithAggregatesFilter<"ShareLink"> | string
  18560. expiresAt?: DateTimeNullableWithAggregatesFilter<"ShareLink"> | Date | string | null
  18561. createdAt?: DateTimeWithAggregatesFilter<"ShareLink"> | Date | string
  18562. }
  18563. export type WorkspaceCreateInput = {
  18564. id?: string
  18565. name: string
  18566. slug: string
  18567. sector?: string | null
  18568. companySize?: number | null
  18569. contactEmail?: string | null
  18570. tier?: $Enums.WorkspaceTier
  18571. llmCallsThisMonth?: number
  18572. llmCallsResetAt?: Date | string
  18573. autoRelanceEnabled?: boolean
  18574. exportsThisMonth?: number
  18575. exportsResetAt?: Date | string
  18576. lastVisitedAt?: Date | string | null
  18577. onboardingDismissed?: boolean
  18578. proModeAvailable?: boolean
  18579. createdAt?: Date | string
  18580. updatedAt?: Date | string
  18581. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  18582. feedbacks?: AppFeedbackCreateNestedManyWithoutWorkspaceInput
  18583. owner: UserCreateNestedOneWithoutWorkspaceInput
  18584. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  18585. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  18586. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  18587. }
  18588. export type WorkspaceUncheckedCreateInput = {
  18589. id?: string
  18590. name: string
  18591. slug: string
  18592. sector?: string | null
  18593. companySize?: number | null
  18594. contactEmail?: string | null
  18595. tier?: $Enums.WorkspaceTier
  18596. llmCallsThisMonth?: number
  18597. llmCallsResetAt?: Date | string
  18598. autoRelanceEnabled?: boolean
  18599. exportsThisMonth?: number
  18600. exportsResetAt?: Date | string
  18601. lastVisitedAt?: Date | string | null
  18602. onboardingDismissed?: boolean
  18603. proModeAvailable?: boolean
  18604. createdAt?: Date | string
  18605. updatedAt?: Date | string
  18606. ownerId: string
  18607. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  18608. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutWorkspaceInput
  18609. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  18610. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  18611. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  18612. }
  18613. export type WorkspaceUpdateInput = {
  18614. id?: StringFieldUpdateOperationsInput | string
  18615. name?: StringFieldUpdateOperationsInput | string
  18616. slug?: StringFieldUpdateOperationsInput | string
  18617. sector?: NullableStringFieldUpdateOperationsInput | string | null
  18618. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  18619. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  18620. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  18621. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  18622. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18623. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  18624. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  18625. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18626. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18627. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  18628. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  18629. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18630. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18631. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  18632. feedbacks?: AppFeedbackUpdateManyWithoutWorkspaceNestedInput
  18633. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  18634. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  18635. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  18636. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  18637. }
  18638. export type WorkspaceUncheckedUpdateInput = {
  18639. id?: StringFieldUpdateOperationsInput | string
  18640. name?: StringFieldUpdateOperationsInput | string
  18641. slug?: StringFieldUpdateOperationsInput | string
  18642. sector?: NullableStringFieldUpdateOperationsInput | string | null
  18643. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  18644. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  18645. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  18646. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  18647. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18648. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  18649. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  18650. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18651. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18652. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  18653. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  18654. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18655. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18656. ownerId?: StringFieldUpdateOperationsInput | string
  18657. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  18658. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutWorkspaceNestedInput
  18659. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  18660. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  18661. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  18662. }
  18663. export type WorkspaceCreateManyInput = {
  18664. id?: string
  18665. name: string
  18666. slug: string
  18667. sector?: string | null
  18668. companySize?: number | null
  18669. contactEmail?: string | null
  18670. tier?: $Enums.WorkspaceTier
  18671. llmCallsThisMonth?: number
  18672. llmCallsResetAt?: Date | string
  18673. autoRelanceEnabled?: boolean
  18674. exportsThisMonth?: number
  18675. exportsResetAt?: Date | string
  18676. lastVisitedAt?: Date | string | null
  18677. onboardingDismissed?: boolean
  18678. proModeAvailable?: boolean
  18679. createdAt?: Date | string
  18680. updatedAt?: Date | string
  18681. ownerId: string
  18682. }
  18683. export type WorkspaceUpdateManyMutationInput = {
  18684. id?: StringFieldUpdateOperationsInput | string
  18685. name?: StringFieldUpdateOperationsInput | string
  18686. slug?: StringFieldUpdateOperationsInput | string
  18687. sector?: NullableStringFieldUpdateOperationsInput | string | null
  18688. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  18689. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  18690. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  18691. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  18692. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18693. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  18694. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  18695. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18696. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18697. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  18698. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  18699. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18700. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18701. }
  18702. export type WorkspaceUncheckedUpdateManyInput = {
  18703. id?: StringFieldUpdateOperationsInput | string
  18704. name?: StringFieldUpdateOperationsInput | string
  18705. slug?: StringFieldUpdateOperationsInput | string
  18706. sector?: NullableStringFieldUpdateOperationsInput | string | null
  18707. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  18708. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  18709. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  18710. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  18711. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18712. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  18713. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  18714. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18715. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18716. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  18717. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  18718. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18719. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18720. ownerId?: StringFieldUpdateOperationsInput | string
  18721. }
  18722. export type ManualRelanceLogCreateInput = {
  18723. id?: string
  18724. subject: string
  18725. recipientCount: number
  18726. sentCount: number
  18727. failedCount?: number
  18728. sentAt?: Date | string
  18729. workspace: WorkspaceCreateNestedOneWithoutManualRelanceLogsInput
  18730. }
  18731. export type ManualRelanceLogUncheckedCreateInput = {
  18732. id?: string
  18733. workspaceId: string
  18734. subject: string
  18735. recipientCount: number
  18736. sentCount: number
  18737. failedCount?: number
  18738. sentAt?: Date | string
  18739. }
  18740. export type ManualRelanceLogUpdateInput = {
  18741. id?: StringFieldUpdateOperationsInput | string
  18742. subject?: StringFieldUpdateOperationsInput | string
  18743. recipientCount?: IntFieldUpdateOperationsInput | number
  18744. sentCount?: IntFieldUpdateOperationsInput | number
  18745. failedCount?: IntFieldUpdateOperationsInput | number
  18746. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18747. workspace?: WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput
  18748. }
  18749. export type ManualRelanceLogUncheckedUpdateInput = {
  18750. id?: StringFieldUpdateOperationsInput | string
  18751. workspaceId?: StringFieldUpdateOperationsInput | string
  18752. subject?: StringFieldUpdateOperationsInput | string
  18753. recipientCount?: IntFieldUpdateOperationsInput | number
  18754. sentCount?: IntFieldUpdateOperationsInput | number
  18755. failedCount?: IntFieldUpdateOperationsInput | number
  18756. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18757. }
  18758. export type ManualRelanceLogCreateManyInput = {
  18759. id?: string
  18760. workspaceId: string
  18761. subject: string
  18762. recipientCount: number
  18763. sentCount: number
  18764. failedCount?: number
  18765. sentAt?: Date | string
  18766. }
  18767. export type ManualRelanceLogUpdateManyMutationInput = {
  18768. id?: StringFieldUpdateOperationsInput | string
  18769. subject?: StringFieldUpdateOperationsInput | string
  18770. recipientCount?: IntFieldUpdateOperationsInput | number
  18771. sentCount?: IntFieldUpdateOperationsInput | number
  18772. failedCount?: IntFieldUpdateOperationsInput | number
  18773. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18774. }
  18775. export type ManualRelanceLogUncheckedUpdateManyInput = {
  18776. id?: StringFieldUpdateOperationsInput | string
  18777. workspaceId?: StringFieldUpdateOperationsInput | string
  18778. subject?: StringFieldUpdateOperationsInput | string
  18779. recipientCount?: IntFieldUpdateOperationsInput | number
  18780. sentCount?: IntFieldUpdateOperationsInput | number
  18781. failedCount?: IntFieldUpdateOperationsInput | number
  18782. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18783. }
  18784. export type ContributorCreateInput = {
  18785. id?: string
  18786. email: string
  18787. service?: string | null
  18788. status?: $Enums.ContributorStatus
  18789. invitedAt?: Date | string
  18790. lastRemindedAt?: Date | string | null
  18791. createdAt?: Date | string
  18792. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  18793. ideas?: IdeaCreateNestedManyWithoutContributorInput
  18794. }
  18795. export type ContributorUncheckedCreateInput = {
  18796. id?: string
  18797. workspaceId: string
  18798. email: string
  18799. service?: string | null
  18800. status?: $Enums.ContributorStatus
  18801. invitedAt?: Date | string
  18802. lastRemindedAt?: Date | string | null
  18803. createdAt?: Date | string
  18804. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  18805. }
  18806. export type ContributorUpdateInput = {
  18807. id?: StringFieldUpdateOperationsInput | string
  18808. email?: StringFieldUpdateOperationsInput | string
  18809. service?: NullableStringFieldUpdateOperationsInput | string | null
  18810. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  18811. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18812. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18813. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18814. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  18815. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  18816. }
  18817. export type ContributorUncheckedUpdateInput = {
  18818. id?: StringFieldUpdateOperationsInput | string
  18819. workspaceId?: StringFieldUpdateOperationsInput | string
  18820. email?: StringFieldUpdateOperationsInput | string
  18821. service?: NullableStringFieldUpdateOperationsInput | string | null
  18822. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  18823. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18824. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18825. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18826. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  18827. }
  18828. export type ContributorCreateManyInput = {
  18829. id?: string
  18830. workspaceId: string
  18831. email: string
  18832. service?: string | null
  18833. status?: $Enums.ContributorStatus
  18834. invitedAt?: Date | string
  18835. lastRemindedAt?: Date | string | null
  18836. createdAt?: Date | string
  18837. }
  18838. export type ContributorUpdateManyMutationInput = {
  18839. id?: StringFieldUpdateOperationsInput | string
  18840. email?: StringFieldUpdateOperationsInput | string
  18841. service?: NullableStringFieldUpdateOperationsInput | string | null
  18842. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  18843. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18844. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18845. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18846. }
  18847. export type ContributorUncheckedUpdateManyInput = {
  18848. id?: StringFieldUpdateOperationsInput | string
  18849. workspaceId?: StringFieldUpdateOperationsInput | string
  18850. email?: StringFieldUpdateOperationsInput | string
  18851. service?: NullableStringFieldUpdateOperationsInput | string | null
  18852. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  18853. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18854. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18855. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18856. }
  18857. export type IdeaCreateInput = {
  18858. id?: string
  18859. contributorEmail: string
  18860. department: string
  18861. problemDescription: string
  18862. estimatedImpact: $Enums.ImpactLevel
  18863. frequency: $Enums.Frequency
  18864. optionalWhoAffected?: string | null
  18865. optionalAlreadyTried?: string | null
  18866. optionalSuccessLooksLike?: string | null
  18867. status?: $Enums.IdeaStatus
  18868. llmTitle?: string | null
  18869. llmDomain?: string | null
  18870. llmAiType?: string | null
  18871. llmExplanation?: string | null
  18872. llmScoreImpact?: number | null
  18873. llmScoreFeasibility?: number | null
  18874. llmScoreUrgency?: number | null
  18875. llmEnrichedAt?: Date | string | null
  18876. llmEnrichFailed?: boolean
  18877. manualScoreImpact?: number | null
  18878. manualScoreFeasibility?: number | null
  18879. manualScoreUrgency?: number | null
  18880. priorityOrder?: number | null
  18881. emailMessageId?: string | null
  18882. createdAt?: Date | string
  18883. updatedAt?: Date | string
  18884. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  18885. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  18886. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  18887. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  18888. }
  18889. export type IdeaUncheckedCreateInput = {
  18890. id?: string
  18891. workspaceId: string
  18892. contributorEmail: string
  18893. contributorId?: string | null
  18894. department: string
  18895. problemDescription: string
  18896. estimatedImpact: $Enums.ImpactLevel
  18897. frequency: $Enums.Frequency
  18898. optionalWhoAffected?: string | null
  18899. optionalAlreadyTried?: string | null
  18900. optionalSuccessLooksLike?: string | null
  18901. status?: $Enums.IdeaStatus
  18902. llmTitle?: string | null
  18903. llmDomain?: string | null
  18904. llmAiType?: string | null
  18905. llmExplanation?: string | null
  18906. llmScoreImpact?: number | null
  18907. llmScoreFeasibility?: number | null
  18908. llmScoreUrgency?: number | null
  18909. llmEnrichedAt?: Date | string | null
  18910. llmEnrichFailed?: boolean
  18911. manualScoreImpact?: number | null
  18912. manualScoreFeasibility?: number | null
  18913. manualScoreUrgency?: number | null
  18914. priorityOrder?: number | null
  18915. emailMessageId?: string | null
  18916. createdAt?: Date | string
  18917. updatedAt?: Date | string
  18918. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  18919. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  18920. }
  18921. export type IdeaUpdateInput = {
  18922. id?: StringFieldUpdateOperationsInput | string
  18923. contributorEmail?: StringFieldUpdateOperationsInput | string
  18924. department?: StringFieldUpdateOperationsInput | string
  18925. problemDescription?: StringFieldUpdateOperationsInput | string
  18926. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  18927. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  18928. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  18929. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  18930. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  18931. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  18932. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  18933. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  18934. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  18935. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  18936. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  18937. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  18938. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  18939. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18940. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  18941. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  18942. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  18943. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  18944. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  18945. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  18946. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18947. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18948. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  18949. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  18950. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  18951. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  18952. }
  18953. export type IdeaUncheckedUpdateInput = {
  18954. id?: StringFieldUpdateOperationsInput | string
  18955. workspaceId?: StringFieldUpdateOperationsInput | string
  18956. contributorEmail?: StringFieldUpdateOperationsInput | string
  18957. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  18958. department?: StringFieldUpdateOperationsInput | string
  18959. problemDescription?: StringFieldUpdateOperationsInput | string
  18960. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  18961. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  18962. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  18963. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  18964. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  18965. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  18966. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  18967. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  18968. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  18969. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  18970. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  18971. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  18972. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  18973. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  18974. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  18975. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  18976. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  18977. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  18978. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  18979. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  18980. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18981. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  18982. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  18983. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  18984. }
  18985. export type IdeaCreateManyInput = {
  18986. id?: string
  18987. workspaceId: string
  18988. contributorEmail: string
  18989. contributorId?: string | null
  18990. department: string
  18991. problemDescription: string
  18992. estimatedImpact: $Enums.ImpactLevel
  18993. frequency: $Enums.Frequency
  18994. optionalWhoAffected?: string | null
  18995. optionalAlreadyTried?: string | null
  18996. optionalSuccessLooksLike?: string | null
  18997. status?: $Enums.IdeaStatus
  18998. llmTitle?: string | null
  18999. llmDomain?: string | null
  19000. llmAiType?: string | null
  19001. llmExplanation?: string | null
  19002. llmScoreImpact?: number | null
  19003. llmScoreFeasibility?: number | null
  19004. llmScoreUrgency?: number | null
  19005. llmEnrichedAt?: Date | string | null
  19006. llmEnrichFailed?: boolean
  19007. manualScoreImpact?: number | null
  19008. manualScoreFeasibility?: number | null
  19009. manualScoreUrgency?: number | null
  19010. priorityOrder?: number | null
  19011. emailMessageId?: string | null
  19012. createdAt?: Date | string
  19013. updatedAt?: Date | string
  19014. }
  19015. export type IdeaUpdateManyMutationInput = {
  19016. id?: StringFieldUpdateOperationsInput | string
  19017. contributorEmail?: StringFieldUpdateOperationsInput | string
  19018. department?: StringFieldUpdateOperationsInput | string
  19019. problemDescription?: StringFieldUpdateOperationsInput | string
  19020. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  19021. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  19022. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  19023. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  19024. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  19025. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  19026. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  19027. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  19028. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  19029. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  19030. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  19031. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  19032. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  19033. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19034. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  19035. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  19036. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  19037. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  19038. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  19039. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  19040. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19041. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19042. }
  19043. export type IdeaUncheckedUpdateManyInput = {
  19044. id?: StringFieldUpdateOperationsInput | string
  19045. workspaceId?: StringFieldUpdateOperationsInput | string
  19046. contributorEmail?: StringFieldUpdateOperationsInput | string
  19047. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  19048. department?: StringFieldUpdateOperationsInput | string
  19049. problemDescription?: StringFieldUpdateOperationsInput | string
  19050. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  19051. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  19052. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  19053. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  19054. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  19055. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  19056. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  19057. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  19058. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  19059. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  19060. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  19061. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  19062. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  19063. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19064. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  19065. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  19066. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  19067. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  19068. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  19069. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  19070. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19071. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19072. }
  19073. export type PostCreateInput = {
  19074. name: string
  19075. createdAt?: Date | string
  19076. updatedAt?: Date | string
  19077. createdBy: UserCreateNestedOneWithoutPostsInput
  19078. }
  19079. export type PostUncheckedCreateInput = {
  19080. id?: number
  19081. name: string
  19082. createdAt?: Date | string
  19083. updatedAt?: Date | string
  19084. createdById: string
  19085. }
  19086. export type PostUpdateInput = {
  19087. name?: StringFieldUpdateOperationsInput | string
  19088. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19089. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19090. createdBy?: UserUpdateOneRequiredWithoutPostsNestedInput
  19091. }
  19092. export type PostUncheckedUpdateInput = {
  19093. id?: IntFieldUpdateOperationsInput | number
  19094. name?: StringFieldUpdateOperationsInput | string
  19095. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19096. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19097. createdById?: StringFieldUpdateOperationsInput | string
  19098. }
  19099. export type PostCreateManyInput = {
  19100. id?: number
  19101. name: string
  19102. createdAt?: Date | string
  19103. updatedAt?: Date | string
  19104. createdById: string
  19105. }
  19106. export type PostUpdateManyMutationInput = {
  19107. name?: StringFieldUpdateOperationsInput | string
  19108. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19109. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19110. }
  19111. export type PostUncheckedUpdateManyInput = {
  19112. id?: IntFieldUpdateOperationsInput | number
  19113. name?: StringFieldUpdateOperationsInput | string
  19114. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19115. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19116. createdById?: StringFieldUpdateOperationsInput | string
  19117. }
  19118. export type AccountCreateInput = {
  19119. id?: string
  19120. type: string
  19121. provider: string
  19122. providerAccountId: string
  19123. refresh_token?: string | null
  19124. access_token?: string | null
  19125. expires_at?: number | null
  19126. token_type?: string | null
  19127. scope?: string | null
  19128. id_token?: string | null
  19129. session_state?: string | null
  19130. refresh_token_expires_in?: number | null
  19131. user: UserCreateNestedOneWithoutAccountsInput
  19132. }
  19133. export type AccountUncheckedCreateInput = {
  19134. id?: string
  19135. userId: string
  19136. type: string
  19137. provider: string
  19138. providerAccountId: string
  19139. refresh_token?: string | null
  19140. access_token?: string | null
  19141. expires_at?: number | null
  19142. token_type?: string | null
  19143. scope?: string | null
  19144. id_token?: string | null
  19145. session_state?: string | null
  19146. refresh_token_expires_in?: number | null
  19147. }
  19148. export type AccountUpdateInput = {
  19149. id?: StringFieldUpdateOperationsInput | string
  19150. type?: StringFieldUpdateOperationsInput | string
  19151. provider?: StringFieldUpdateOperationsInput | string
  19152. providerAccountId?: StringFieldUpdateOperationsInput | string
  19153. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  19154. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  19155. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  19156. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  19157. scope?: NullableStringFieldUpdateOperationsInput | string | null
  19158. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  19159. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  19160. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  19161. user?: UserUpdateOneRequiredWithoutAccountsNestedInput
  19162. }
  19163. export type AccountUncheckedUpdateInput = {
  19164. id?: StringFieldUpdateOperationsInput | string
  19165. userId?: StringFieldUpdateOperationsInput | string
  19166. type?: StringFieldUpdateOperationsInput | string
  19167. provider?: StringFieldUpdateOperationsInput | string
  19168. providerAccountId?: StringFieldUpdateOperationsInput | string
  19169. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  19170. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  19171. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  19172. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  19173. scope?: NullableStringFieldUpdateOperationsInput | string | null
  19174. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  19175. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  19176. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  19177. }
  19178. export type AccountCreateManyInput = {
  19179. id?: string
  19180. userId: string
  19181. type: string
  19182. provider: string
  19183. providerAccountId: string
  19184. refresh_token?: string | null
  19185. access_token?: string | null
  19186. expires_at?: number | null
  19187. token_type?: string | null
  19188. scope?: string | null
  19189. id_token?: string | null
  19190. session_state?: string | null
  19191. refresh_token_expires_in?: number | null
  19192. }
  19193. export type AccountUpdateManyMutationInput = {
  19194. id?: StringFieldUpdateOperationsInput | string
  19195. type?: StringFieldUpdateOperationsInput | string
  19196. provider?: StringFieldUpdateOperationsInput | string
  19197. providerAccountId?: StringFieldUpdateOperationsInput | string
  19198. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  19199. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  19200. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  19201. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  19202. scope?: NullableStringFieldUpdateOperationsInput | string | null
  19203. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  19204. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  19205. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  19206. }
  19207. export type AccountUncheckedUpdateManyInput = {
  19208. id?: StringFieldUpdateOperationsInput | string
  19209. userId?: StringFieldUpdateOperationsInput | string
  19210. type?: StringFieldUpdateOperationsInput | string
  19211. provider?: StringFieldUpdateOperationsInput | string
  19212. providerAccountId?: StringFieldUpdateOperationsInput | string
  19213. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  19214. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  19215. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  19216. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  19217. scope?: NullableStringFieldUpdateOperationsInput | string | null
  19218. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  19219. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  19220. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  19221. }
  19222. export type SessionCreateInput = {
  19223. id?: string
  19224. sessionToken: string
  19225. expires: Date | string
  19226. user: UserCreateNestedOneWithoutSessionsInput
  19227. }
  19228. export type SessionUncheckedCreateInput = {
  19229. id?: string
  19230. sessionToken: string
  19231. userId: string
  19232. expires: Date | string
  19233. }
  19234. export type SessionUpdateInput = {
  19235. id?: StringFieldUpdateOperationsInput | string
  19236. sessionToken?: StringFieldUpdateOperationsInput | string
  19237. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19238. user?: UserUpdateOneRequiredWithoutSessionsNestedInput
  19239. }
  19240. export type SessionUncheckedUpdateInput = {
  19241. id?: StringFieldUpdateOperationsInput | string
  19242. sessionToken?: StringFieldUpdateOperationsInput | string
  19243. userId?: StringFieldUpdateOperationsInput | string
  19244. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19245. }
  19246. export type SessionCreateManyInput = {
  19247. id?: string
  19248. sessionToken: string
  19249. userId: string
  19250. expires: Date | string
  19251. }
  19252. export type SessionUpdateManyMutationInput = {
  19253. id?: StringFieldUpdateOperationsInput | string
  19254. sessionToken?: StringFieldUpdateOperationsInput | string
  19255. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19256. }
  19257. export type SessionUncheckedUpdateManyInput = {
  19258. id?: StringFieldUpdateOperationsInput | string
  19259. sessionToken?: StringFieldUpdateOperationsInput | string
  19260. userId?: StringFieldUpdateOperationsInput | string
  19261. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19262. }
  19263. export type UserCreateInput = {
  19264. id?: string
  19265. name?: string | null
  19266. email?: string | null
  19267. emailVerified?: Date | string | null
  19268. password?: string | null
  19269. legalTermsAcceptedAt?: Date | string | null
  19270. image?: string | null
  19271. accounts?: AccountCreateNestedManyWithoutUserInput
  19272. sessions?: SessionCreateNestedManyWithoutUserInput
  19273. posts?: PostCreateNestedManyWithoutCreatedByInput
  19274. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  19275. feedbacks?: AppFeedbackCreateNestedManyWithoutUserInput
  19276. }
  19277. export type UserUncheckedCreateInput = {
  19278. id?: string
  19279. name?: string | null
  19280. email?: string | null
  19281. emailVerified?: Date | string | null
  19282. password?: string | null
  19283. legalTermsAcceptedAt?: Date | string | null
  19284. image?: string | null
  19285. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  19286. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  19287. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  19288. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  19289. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutUserInput
  19290. }
  19291. export type UserUpdateInput = {
  19292. id?: StringFieldUpdateOperationsInput | string
  19293. name?: NullableStringFieldUpdateOperationsInput | string | null
  19294. email?: NullableStringFieldUpdateOperationsInput | string | null
  19295. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19296. password?: NullableStringFieldUpdateOperationsInput | string | null
  19297. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19298. image?: NullableStringFieldUpdateOperationsInput | string | null
  19299. accounts?: AccountUpdateManyWithoutUserNestedInput
  19300. sessions?: SessionUpdateManyWithoutUserNestedInput
  19301. posts?: PostUpdateManyWithoutCreatedByNestedInput
  19302. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  19303. feedbacks?: AppFeedbackUpdateManyWithoutUserNestedInput
  19304. }
  19305. export type UserUncheckedUpdateInput = {
  19306. id?: StringFieldUpdateOperationsInput | string
  19307. name?: NullableStringFieldUpdateOperationsInput | string | null
  19308. email?: NullableStringFieldUpdateOperationsInput | string | null
  19309. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19310. password?: NullableStringFieldUpdateOperationsInput | string | null
  19311. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19312. image?: NullableStringFieldUpdateOperationsInput | string | null
  19313. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  19314. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  19315. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  19316. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  19317. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutUserNestedInput
  19318. }
  19319. export type UserCreateManyInput = {
  19320. id?: string
  19321. name?: string | null
  19322. email?: string | null
  19323. emailVerified?: Date | string | null
  19324. password?: string | null
  19325. legalTermsAcceptedAt?: Date | string | null
  19326. image?: string | null
  19327. }
  19328. export type UserUpdateManyMutationInput = {
  19329. id?: StringFieldUpdateOperationsInput | string
  19330. name?: NullableStringFieldUpdateOperationsInput | string | null
  19331. email?: NullableStringFieldUpdateOperationsInput | string | null
  19332. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19333. password?: NullableStringFieldUpdateOperationsInput | string | null
  19334. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19335. image?: NullableStringFieldUpdateOperationsInput | string | null
  19336. }
  19337. export type UserUncheckedUpdateManyInput = {
  19338. id?: StringFieldUpdateOperationsInput | string
  19339. name?: NullableStringFieldUpdateOperationsInput | string | null
  19340. email?: NullableStringFieldUpdateOperationsInput | string | null
  19341. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19342. password?: NullableStringFieldUpdateOperationsInput | string | null
  19343. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19344. image?: NullableStringFieldUpdateOperationsInput | string | null
  19345. }
  19346. export type VerificationTokenCreateInput = {
  19347. identifier: string
  19348. token: string
  19349. expires: Date | string
  19350. }
  19351. export type VerificationTokenUncheckedCreateInput = {
  19352. identifier: string
  19353. token: string
  19354. expires: Date | string
  19355. }
  19356. export type VerificationTokenUpdateInput = {
  19357. identifier?: StringFieldUpdateOperationsInput | string
  19358. token?: StringFieldUpdateOperationsInput | string
  19359. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19360. }
  19361. export type VerificationTokenUncheckedUpdateInput = {
  19362. identifier?: StringFieldUpdateOperationsInput | string
  19363. token?: StringFieldUpdateOperationsInput | string
  19364. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19365. }
  19366. export type VerificationTokenCreateManyInput = {
  19367. identifier: string
  19368. token: string
  19369. expires: Date | string
  19370. }
  19371. export type VerificationTokenUpdateManyMutationInput = {
  19372. identifier?: StringFieldUpdateOperationsInput | string
  19373. token?: StringFieldUpdateOperationsInput | string
  19374. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19375. }
  19376. export type VerificationTokenUncheckedUpdateManyInput = {
  19377. identifier?: StringFieldUpdateOperationsInput | string
  19378. token?: StringFieldUpdateOperationsInput | string
  19379. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  19380. }
  19381. export type IdeaAttachmentCreateInput = {
  19382. id?: string
  19383. workspaceId: string
  19384. filename: string
  19385. contentType: string
  19386. size: number
  19387. url: string
  19388. blobPath: string
  19389. createdAt?: Date | string
  19390. idea: IdeaCreateNestedOneWithoutAttachmentsInput
  19391. }
  19392. export type IdeaAttachmentUncheckedCreateInput = {
  19393. id?: string
  19394. ideaId: string
  19395. workspaceId: string
  19396. filename: string
  19397. contentType: string
  19398. size: number
  19399. url: string
  19400. blobPath: string
  19401. createdAt?: Date | string
  19402. }
  19403. export type IdeaAttachmentUpdateInput = {
  19404. id?: StringFieldUpdateOperationsInput | string
  19405. workspaceId?: StringFieldUpdateOperationsInput | string
  19406. filename?: StringFieldUpdateOperationsInput | string
  19407. contentType?: StringFieldUpdateOperationsInput | string
  19408. size?: IntFieldUpdateOperationsInput | number
  19409. url?: StringFieldUpdateOperationsInput | string
  19410. blobPath?: StringFieldUpdateOperationsInput | string
  19411. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19412. idea?: IdeaUpdateOneRequiredWithoutAttachmentsNestedInput
  19413. }
  19414. export type IdeaAttachmentUncheckedUpdateInput = {
  19415. id?: StringFieldUpdateOperationsInput | string
  19416. ideaId?: StringFieldUpdateOperationsInput | string
  19417. workspaceId?: StringFieldUpdateOperationsInput | string
  19418. filename?: StringFieldUpdateOperationsInput | string
  19419. contentType?: StringFieldUpdateOperationsInput | string
  19420. size?: IntFieldUpdateOperationsInput | number
  19421. url?: StringFieldUpdateOperationsInput | string
  19422. blobPath?: StringFieldUpdateOperationsInput | string
  19423. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19424. }
  19425. export type IdeaAttachmentCreateManyInput = {
  19426. id?: string
  19427. ideaId: string
  19428. workspaceId: string
  19429. filename: string
  19430. contentType: string
  19431. size: number
  19432. url: string
  19433. blobPath: string
  19434. createdAt?: Date | string
  19435. }
  19436. export type IdeaAttachmentUpdateManyMutationInput = {
  19437. id?: StringFieldUpdateOperationsInput | string
  19438. workspaceId?: StringFieldUpdateOperationsInput | string
  19439. filename?: StringFieldUpdateOperationsInput | string
  19440. contentType?: StringFieldUpdateOperationsInput | string
  19441. size?: IntFieldUpdateOperationsInput | number
  19442. url?: StringFieldUpdateOperationsInput | string
  19443. blobPath?: StringFieldUpdateOperationsInput | string
  19444. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19445. }
  19446. export type IdeaAttachmentUncheckedUpdateManyInput = {
  19447. id?: StringFieldUpdateOperationsInput | string
  19448. ideaId?: StringFieldUpdateOperationsInput | string
  19449. workspaceId?: StringFieldUpdateOperationsInput | string
  19450. filename?: StringFieldUpdateOperationsInput | string
  19451. contentType?: StringFieldUpdateOperationsInput | string
  19452. size?: IntFieldUpdateOperationsInput | number
  19453. url?: StringFieldUpdateOperationsInput | string
  19454. blobPath?: StringFieldUpdateOperationsInput | string
  19455. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19456. }
  19457. export type QualificationQuestionCreateInput = {
  19458. id?: string
  19459. workspaceId: string
  19460. questionText: string
  19461. responseToken?: string
  19462. askedAt?: Date | string
  19463. responseText?: string | null
  19464. answeredAt?: Date | string | null
  19465. idea: IdeaCreateNestedOneWithoutQualificationQuestionsInput
  19466. }
  19467. export type QualificationQuestionUncheckedCreateInput = {
  19468. id?: string
  19469. ideaId: string
  19470. workspaceId: string
  19471. questionText: string
  19472. responseToken?: string
  19473. askedAt?: Date | string
  19474. responseText?: string | null
  19475. answeredAt?: Date | string | null
  19476. }
  19477. export type QualificationQuestionUpdateInput = {
  19478. id?: StringFieldUpdateOperationsInput | string
  19479. workspaceId?: StringFieldUpdateOperationsInput | string
  19480. questionText?: StringFieldUpdateOperationsInput | string
  19481. responseToken?: StringFieldUpdateOperationsInput | string
  19482. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19483. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  19484. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19485. idea?: IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput
  19486. }
  19487. export type QualificationQuestionUncheckedUpdateInput = {
  19488. id?: StringFieldUpdateOperationsInput | string
  19489. ideaId?: StringFieldUpdateOperationsInput | string
  19490. workspaceId?: StringFieldUpdateOperationsInput | string
  19491. questionText?: StringFieldUpdateOperationsInput | string
  19492. responseToken?: StringFieldUpdateOperationsInput | string
  19493. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19494. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  19495. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19496. }
  19497. export type QualificationQuestionCreateManyInput = {
  19498. id?: string
  19499. ideaId: string
  19500. workspaceId: string
  19501. questionText: string
  19502. responseToken?: string
  19503. askedAt?: Date | string
  19504. responseText?: string | null
  19505. answeredAt?: Date | string | null
  19506. }
  19507. export type QualificationQuestionUpdateManyMutationInput = {
  19508. id?: StringFieldUpdateOperationsInput | string
  19509. workspaceId?: StringFieldUpdateOperationsInput | string
  19510. questionText?: StringFieldUpdateOperationsInput | string
  19511. responseToken?: StringFieldUpdateOperationsInput | string
  19512. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19513. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  19514. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19515. }
  19516. export type QualificationQuestionUncheckedUpdateManyInput = {
  19517. id?: StringFieldUpdateOperationsInput | string
  19518. ideaId?: StringFieldUpdateOperationsInput | string
  19519. workspaceId?: StringFieldUpdateOperationsInput | string
  19520. questionText?: StringFieldUpdateOperationsInput | string
  19521. responseToken?: StringFieldUpdateOperationsInput | string
  19522. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19523. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  19524. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19525. }
  19526. export type LibraryCaseCreateInput = {
  19527. id?: string
  19528. sector: string
  19529. department: string
  19530. title: string
  19531. description: string
  19532. createdAt?: Date | string
  19533. updatedAt?: Date | string
  19534. }
  19535. export type LibraryCaseUncheckedCreateInput = {
  19536. id?: string
  19537. sector: string
  19538. department: string
  19539. title: string
  19540. description: string
  19541. createdAt?: Date | string
  19542. updatedAt?: Date | string
  19543. }
  19544. export type LibraryCaseUpdateInput = {
  19545. id?: StringFieldUpdateOperationsInput | string
  19546. sector?: StringFieldUpdateOperationsInput | string
  19547. department?: StringFieldUpdateOperationsInput | string
  19548. title?: StringFieldUpdateOperationsInput | string
  19549. description?: StringFieldUpdateOperationsInput | string
  19550. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19551. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19552. }
  19553. export type LibraryCaseUncheckedUpdateInput = {
  19554. id?: StringFieldUpdateOperationsInput | string
  19555. sector?: StringFieldUpdateOperationsInput | string
  19556. department?: StringFieldUpdateOperationsInput | string
  19557. title?: StringFieldUpdateOperationsInput | string
  19558. description?: StringFieldUpdateOperationsInput | string
  19559. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19560. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19561. }
  19562. export type LibraryCaseCreateManyInput = {
  19563. id?: string
  19564. sector: string
  19565. department: string
  19566. title: string
  19567. description: string
  19568. createdAt?: Date | string
  19569. updatedAt?: Date | string
  19570. }
  19571. export type LibraryCaseUpdateManyMutationInput = {
  19572. id?: StringFieldUpdateOperationsInput | string
  19573. sector?: StringFieldUpdateOperationsInput | string
  19574. department?: StringFieldUpdateOperationsInput | string
  19575. title?: StringFieldUpdateOperationsInput | string
  19576. description?: StringFieldUpdateOperationsInput | string
  19577. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19578. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19579. }
  19580. export type LibraryCaseUncheckedUpdateManyInput = {
  19581. id?: StringFieldUpdateOperationsInput | string
  19582. sector?: StringFieldUpdateOperationsInput | string
  19583. department?: StringFieldUpdateOperationsInput | string
  19584. title?: StringFieldUpdateOperationsInput | string
  19585. description?: StringFieldUpdateOperationsInput | string
  19586. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19587. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19588. }
  19589. export type AppFeedbackCreateInput = {
  19590. id?: string
  19591. type: $Enums.FeedbackType
  19592. message: string
  19593. createdAt?: Date | string
  19594. user: UserCreateNestedOneWithoutFeedbacksInput
  19595. workspace: WorkspaceCreateNestedOneWithoutFeedbacksInput
  19596. }
  19597. export type AppFeedbackUncheckedCreateInput = {
  19598. id?: string
  19599. userId: string
  19600. workspaceId: string
  19601. type: $Enums.FeedbackType
  19602. message: string
  19603. createdAt?: Date | string
  19604. }
  19605. export type AppFeedbackUpdateInput = {
  19606. id?: StringFieldUpdateOperationsInput | string
  19607. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  19608. message?: StringFieldUpdateOperationsInput | string
  19609. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19610. user?: UserUpdateOneRequiredWithoutFeedbacksNestedInput
  19611. workspace?: WorkspaceUpdateOneRequiredWithoutFeedbacksNestedInput
  19612. }
  19613. export type AppFeedbackUncheckedUpdateInput = {
  19614. id?: StringFieldUpdateOperationsInput | string
  19615. userId?: StringFieldUpdateOperationsInput | string
  19616. workspaceId?: StringFieldUpdateOperationsInput | string
  19617. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  19618. message?: StringFieldUpdateOperationsInput | string
  19619. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19620. }
  19621. export type AppFeedbackCreateManyInput = {
  19622. id?: string
  19623. userId: string
  19624. workspaceId: string
  19625. type: $Enums.FeedbackType
  19626. message: string
  19627. createdAt?: Date | string
  19628. }
  19629. export type AppFeedbackUpdateManyMutationInput = {
  19630. id?: StringFieldUpdateOperationsInput | string
  19631. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  19632. message?: StringFieldUpdateOperationsInput | string
  19633. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19634. }
  19635. export type AppFeedbackUncheckedUpdateManyInput = {
  19636. id?: StringFieldUpdateOperationsInput | string
  19637. userId?: StringFieldUpdateOperationsInput | string
  19638. workspaceId?: StringFieldUpdateOperationsInput | string
  19639. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  19640. message?: StringFieldUpdateOperationsInput | string
  19641. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19642. }
  19643. export type ShareLinkCreateInput = {
  19644. id?: string
  19645. token?: string
  19646. expiresAt?: Date | string | null
  19647. createdAt?: Date | string
  19648. workspace: WorkspaceCreateNestedOneWithoutShareLinkInput
  19649. }
  19650. export type ShareLinkUncheckedCreateInput = {
  19651. id?: string
  19652. workspaceId: string
  19653. token?: string
  19654. expiresAt?: Date | string | null
  19655. createdAt?: Date | string
  19656. }
  19657. export type ShareLinkUpdateInput = {
  19658. id?: StringFieldUpdateOperationsInput | string
  19659. token?: StringFieldUpdateOperationsInput | string
  19660. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19661. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19662. workspace?: WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput
  19663. }
  19664. export type ShareLinkUncheckedUpdateInput = {
  19665. id?: StringFieldUpdateOperationsInput | string
  19666. workspaceId?: StringFieldUpdateOperationsInput | string
  19667. token?: StringFieldUpdateOperationsInput | string
  19668. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19669. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19670. }
  19671. export type ShareLinkCreateManyInput = {
  19672. id?: string
  19673. workspaceId: string
  19674. token?: string
  19675. expiresAt?: Date | string | null
  19676. createdAt?: Date | string
  19677. }
  19678. export type ShareLinkUpdateManyMutationInput = {
  19679. id?: StringFieldUpdateOperationsInput | string
  19680. token?: StringFieldUpdateOperationsInput | string
  19681. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19682. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19683. }
  19684. export type ShareLinkUncheckedUpdateManyInput = {
  19685. id?: StringFieldUpdateOperationsInput | string
  19686. workspaceId?: StringFieldUpdateOperationsInput | string
  19687. token?: StringFieldUpdateOperationsInput | string
  19688. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  19689. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  19690. }
  19691. export type StringFilter<$PrismaModel = never> = {
  19692. equals?: string | StringFieldRefInput<$PrismaModel>
  19693. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19694. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19695. lt?: string | StringFieldRefInput<$PrismaModel>
  19696. lte?: string | StringFieldRefInput<$PrismaModel>
  19697. gt?: string | StringFieldRefInput<$PrismaModel>
  19698. gte?: string | StringFieldRefInput<$PrismaModel>
  19699. contains?: string | StringFieldRefInput<$PrismaModel>
  19700. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19701. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19702. mode?: QueryMode
  19703. not?: NestedStringFilter<$PrismaModel> | string
  19704. }
  19705. export type StringNullableFilter<$PrismaModel = never> = {
  19706. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19707. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19708. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19709. lt?: string | StringFieldRefInput<$PrismaModel>
  19710. lte?: string | StringFieldRefInput<$PrismaModel>
  19711. gt?: string | StringFieldRefInput<$PrismaModel>
  19712. gte?: string | StringFieldRefInput<$PrismaModel>
  19713. contains?: string | StringFieldRefInput<$PrismaModel>
  19714. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19715. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19716. mode?: QueryMode
  19717. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  19718. }
  19719. export type IntNullableFilter<$PrismaModel = never> = {
  19720. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19721. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19722. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19723. lt?: number | IntFieldRefInput<$PrismaModel>
  19724. lte?: number | IntFieldRefInput<$PrismaModel>
  19725. gt?: number | IntFieldRefInput<$PrismaModel>
  19726. gte?: number | IntFieldRefInput<$PrismaModel>
  19727. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  19728. }
  19729. export type EnumWorkspaceTierFilter<$PrismaModel = never> = {
  19730. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19731. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19732. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19733. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  19734. }
  19735. export type IntFilter<$PrismaModel = never> = {
  19736. equals?: number | IntFieldRefInput<$PrismaModel>
  19737. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19738. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19739. lt?: number | IntFieldRefInput<$PrismaModel>
  19740. lte?: number | IntFieldRefInput<$PrismaModel>
  19741. gt?: number | IntFieldRefInput<$PrismaModel>
  19742. gte?: number | IntFieldRefInput<$PrismaModel>
  19743. not?: NestedIntFilter<$PrismaModel> | number
  19744. }
  19745. export type DateTimeFilter<$PrismaModel = never> = {
  19746. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19747. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19748. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19749. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19750. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19751. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19752. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19753. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  19754. }
  19755. export type BoolFilter<$PrismaModel = never> = {
  19756. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19757. not?: NestedBoolFilter<$PrismaModel> | boolean
  19758. }
  19759. export type DateTimeNullableFilter<$PrismaModel = never> = {
  19760. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19761. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19762. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19763. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19764. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19765. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19766. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19767. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  19768. }
  19769. export type ShareLinkNullableScalarRelationFilter = {
  19770. is?: ShareLinkWhereInput | null
  19771. isNot?: ShareLinkWhereInput | null
  19772. }
  19773. export type AppFeedbackListRelationFilter = {
  19774. every?: AppFeedbackWhereInput
  19775. some?: AppFeedbackWhereInput
  19776. none?: AppFeedbackWhereInput
  19777. }
  19778. export type UserScalarRelationFilter = {
  19779. is?: UserWhereInput
  19780. isNot?: UserWhereInput
  19781. }
  19782. export type ContributorListRelationFilter = {
  19783. every?: ContributorWhereInput
  19784. some?: ContributorWhereInput
  19785. none?: ContributorWhereInput
  19786. }
  19787. export type IdeaListRelationFilter = {
  19788. every?: IdeaWhereInput
  19789. some?: IdeaWhereInput
  19790. none?: IdeaWhereInput
  19791. }
  19792. export type ManualRelanceLogListRelationFilter = {
  19793. every?: ManualRelanceLogWhereInput
  19794. some?: ManualRelanceLogWhereInput
  19795. none?: ManualRelanceLogWhereInput
  19796. }
  19797. export type SortOrderInput = {
  19798. sort: SortOrder
  19799. nulls?: NullsOrder
  19800. }
  19801. export type AppFeedbackOrderByRelationAggregateInput = {
  19802. _count?: SortOrder
  19803. }
  19804. export type ContributorOrderByRelationAggregateInput = {
  19805. _count?: SortOrder
  19806. }
  19807. export type IdeaOrderByRelationAggregateInput = {
  19808. _count?: SortOrder
  19809. }
  19810. export type ManualRelanceLogOrderByRelationAggregateInput = {
  19811. _count?: SortOrder
  19812. }
  19813. export type WorkspaceCountOrderByAggregateInput = {
  19814. id?: SortOrder
  19815. name?: SortOrder
  19816. slug?: SortOrder
  19817. sector?: SortOrder
  19818. companySize?: SortOrder
  19819. contactEmail?: SortOrder
  19820. tier?: SortOrder
  19821. llmCallsThisMonth?: SortOrder
  19822. llmCallsResetAt?: SortOrder
  19823. autoRelanceEnabled?: SortOrder
  19824. exportsThisMonth?: SortOrder
  19825. exportsResetAt?: SortOrder
  19826. lastVisitedAt?: SortOrder
  19827. onboardingDismissed?: SortOrder
  19828. proModeAvailable?: SortOrder
  19829. createdAt?: SortOrder
  19830. updatedAt?: SortOrder
  19831. ownerId?: SortOrder
  19832. }
  19833. export type WorkspaceAvgOrderByAggregateInput = {
  19834. companySize?: SortOrder
  19835. llmCallsThisMonth?: SortOrder
  19836. exportsThisMonth?: SortOrder
  19837. }
  19838. export type WorkspaceMaxOrderByAggregateInput = {
  19839. id?: SortOrder
  19840. name?: SortOrder
  19841. slug?: SortOrder
  19842. sector?: SortOrder
  19843. companySize?: SortOrder
  19844. contactEmail?: SortOrder
  19845. tier?: SortOrder
  19846. llmCallsThisMonth?: SortOrder
  19847. llmCallsResetAt?: SortOrder
  19848. autoRelanceEnabled?: SortOrder
  19849. exportsThisMonth?: SortOrder
  19850. exportsResetAt?: SortOrder
  19851. lastVisitedAt?: SortOrder
  19852. onboardingDismissed?: SortOrder
  19853. proModeAvailable?: SortOrder
  19854. createdAt?: SortOrder
  19855. updatedAt?: SortOrder
  19856. ownerId?: SortOrder
  19857. }
  19858. export type WorkspaceMinOrderByAggregateInput = {
  19859. id?: SortOrder
  19860. name?: SortOrder
  19861. slug?: SortOrder
  19862. sector?: SortOrder
  19863. companySize?: SortOrder
  19864. contactEmail?: SortOrder
  19865. tier?: SortOrder
  19866. llmCallsThisMonth?: SortOrder
  19867. llmCallsResetAt?: SortOrder
  19868. autoRelanceEnabled?: SortOrder
  19869. exportsThisMonth?: SortOrder
  19870. exportsResetAt?: SortOrder
  19871. lastVisitedAt?: SortOrder
  19872. onboardingDismissed?: SortOrder
  19873. proModeAvailable?: SortOrder
  19874. createdAt?: SortOrder
  19875. updatedAt?: SortOrder
  19876. ownerId?: SortOrder
  19877. }
  19878. export type WorkspaceSumOrderByAggregateInput = {
  19879. companySize?: SortOrder
  19880. llmCallsThisMonth?: SortOrder
  19881. exportsThisMonth?: SortOrder
  19882. }
  19883. export type StringWithAggregatesFilter<$PrismaModel = never> = {
  19884. equals?: string | StringFieldRefInput<$PrismaModel>
  19885. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  19886. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  19887. lt?: string | StringFieldRefInput<$PrismaModel>
  19888. lte?: string | StringFieldRefInput<$PrismaModel>
  19889. gt?: string | StringFieldRefInput<$PrismaModel>
  19890. gte?: string | StringFieldRefInput<$PrismaModel>
  19891. contains?: string | StringFieldRefInput<$PrismaModel>
  19892. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19893. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19894. mode?: QueryMode
  19895. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  19896. _count?: NestedIntFilter<$PrismaModel>
  19897. _min?: NestedStringFilter<$PrismaModel>
  19898. _max?: NestedStringFilter<$PrismaModel>
  19899. }
  19900. export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
  19901. equals?: string | StringFieldRefInput<$PrismaModel> | null
  19902. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19903. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  19904. lt?: string | StringFieldRefInput<$PrismaModel>
  19905. lte?: string | StringFieldRefInput<$PrismaModel>
  19906. gt?: string | StringFieldRefInput<$PrismaModel>
  19907. gte?: string | StringFieldRefInput<$PrismaModel>
  19908. contains?: string | StringFieldRefInput<$PrismaModel>
  19909. startsWith?: string | StringFieldRefInput<$PrismaModel>
  19910. endsWith?: string | StringFieldRefInput<$PrismaModel>
  19911. mode?: QueryMode
  19912. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  19913. _count?: NestedIntNullableFilter<$PrismaModel>
  19914. _min?: NestedStringNullableFilter<$PrismaModel>
  19915. _max?: NestedStringNullableFilter<$PrismaModel>
  19916. }
  19917. export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
  19918. equals?: number | IntFieldRefInput<$PrismaModel> | null
  19919. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19920. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  19921. lt?: number | IntFieldRefInput<$PrismaModel>
  19922. lte?: number | IntFieldRefInput<$PrismaModel>
  19923. gt?: number | IntFieldRefInput<$PrismaModel>
  19924. gte?: number | IntFieldRefInput<$PrismaModel>
  19925. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  19926. _count?: NestedIntNullableFilter<$PrismaModel>
  19927. _avg?: NestedFloatNullableFilter<$PrismaModel>
  19928. _sum?: NestedIntNullableFilter<$PrismaModel>
  19929. _min?: NestedIntNullableFilter<$PrismaModel>
  19930. _max?: NestedIntNullableFilter<$PrismaModel>
  19931. }
  19932. export type EnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  19933. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  19934. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19935. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  19936. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  19937. _count?: NestedIntFilter<$PrismaModel>
  19938. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19939. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  19940. }
  19941. export type IntWithAggregatesFilter<$PrismaModel = never> = {
  19942. equals?: number | IntFieldRefInput<$PrismaModel>
  19943. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  19944. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  19945. lt?: number | IntFieldRefInput<$PrismaModel>
  19946. lte?: number | IntFieldRefInput<$PrismaModel>
  19947. gt?: number | IntFieldRefInput<$PrismaModel>
  19948. gte?: number | IntFieldRefInput<$PrismaModel>
  19949. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  19950. _count?: NestedIntFilter<$PrismaModel>
  19951. _avg?: NestedFloatFilter<$PrismaModel>
  19952. _sum?: NestedIntFilter<$PrismaModel>
  19953. _min?: NestedIntFilter<$PrismaModel>
  19954. _max?: NestedIntFilter<$PrismaModel>
  19955. }
  19956. export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
  19957. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19958. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19959. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  19960. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19961. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19962. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19963. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19964. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  19965. _count?: NestedIntFilter<$PrismaModel>
  19966. _min?: NestedDateTimeFilter<$PrismaModel>
  19967. _max?: NestedDateTimeFilter<$PrismaModel>
  19968. }
  19969. export type BoolWithAggregatesFilter<$PrismaModel = never> = {
  19970. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  19971. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  19972. _count?: NestedIntFilter<$PrismaModel>
  19973. _min?: NestedBoolFilter<$PrismaModel>
  19974. _max?: NestedBoolFilter<$PrismaModel>
  19975. }
  19976. export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  19977. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  19978. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19979. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  19980. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19981. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19982. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19983. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  19984. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  19985. _count?: NestedIntNullableFilter<$PrismaModel>
  19986. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  19987. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  19988. }
  19989. export type WorkspaceScalarRelationFilter = {
  19990. is?: WorkspaceWhereInput
  19991. isNot?: WorkspaceWhereInput
  19992. }
  19993. export type ManualRelanceLogCountOrderByAggregateInput = {
  19994. id?: SortOrder
  19995. workspaceId?: SortOrder
  19996. subject?: SortOrder
  19997. recipientCount?: SortOrder
  19998. sentCount?: SortOrder
  19999. failedCount?: SortOrder
  20000. sentAt?: SortOrder
  20001. }
  20002. export type ManualRelanceLogAvgOrderByAggregateInput = {
  20003. recipientCount?: SortOrder
  20004. sentCount?: SortOrder
  20005. failedCount?: SortOrder
  20006. }
  20007. export type ManualRelanceLogMaxOrderByAggregateInput = {
  20008. id?: SortOrder
  20009. workspaceId?: SortOrder
  20010. subject?: SortOrder
  20011. recipientCount?: SortOrder
  20012. sentCount?: SortOrder
  20013. failedCount?: SortOrder
  20014. sentAt?: SortOrder
  20015. }
  20016. export type ManualRelanceLogMinOrderByAggregateInput = {
  20017. id?: SortOrder
  20018. workspaceId?: SortOrder
  20019. subject?: SortOrder
  20020. recipientCount?: SortOrder
  20021. sentCount?: SortOrder
  20022. failedCount?: SortOrder
  20023. sentAt?: SortOrder
  20024. }
  20025. export type ManualRelanceLogSumOrderByAggregateInput = {
  20026. recipientCount?: SortOrder
  20027. sentCount?: SortOrder
  20028. failedCount?: SortOrder
  20029. }
  20030. export type EnumContributorStatusFilter<$PrismaModel = never> = {
  20031. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  20032. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  20033. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  20034. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  20035. }
  20036. export type ContributorWorkspaceIdEmailCompoundUniqueInput = {
  20037. workspaceId: string
  20038. email: string
  20039. }
  20040. export type ContributorCountOrderByAggregateInput = {
  20041. id?: SortOrder
  20042. workspaceId?: SortOrder
  20043. email?: SortOrder
  20044. service?: SortOrder
  20045. status?: SortOrder
  20046. invitedAt?: SortOrder
  20047. lastRemindedAt?: SortOrder
  20048. createdAt?: SortOrder
  20049. }
  20050. export type ContributorMaxOrderByAggregateInput = {
  20051. id?: SortOrder
  20052. workspaceId?: SortOrder
  20053. email?: SortOrder
  20054. service?: SortOrder
  20055. status?: SortOrder
  20056. invitedAt?: SortOrder
  20057. lastRemindedAt?: SortOrder
  20058. createdAt?: SortOrder
  20059. }
  20060. export type ContributorMinOrderByAggregateInput = {
  20061. id?: SortOrder
  20062. workspaceId?: SortOrder
  20063. email?: SortOrder
  20064. service?: SortOrder
  20065. status?: SortOrder
  20066. invitedAt?: SortOrder
  20067. lastRemindedAt?: SortOrder
  20068. createdAt?: SortOrder
  20069. }
  20070. export type EnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  20071. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  20072. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  20073. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  20074. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  20075. _count?: NestedIntFilter<$PrismaModel>
  20076. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  20077. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  20078. }
  20079. export type EnumImpactLevelFilter<$PrismaModel = never> = {
  20080. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  20081. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  20082. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  20083. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  20084. }
  20085. export type EnumFrequencyFilter<$PrismaModel = never> = {
  20086. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  20087. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  20088. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  20089. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  20090. }
  20091. export type EnumIdeaStatusFilter<$PrismaModel = never> = {
  20092. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  20093. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  20094. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  20095. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  20096. }
  20097. export type ContributorNullableScalarRelationFilter = {
  20098. is?: ContributorWhereInput | null
  20099. isNot?: ContributorWhereInput | null
  20100. }
  20101. export type IdeaAttachmentListRelationFilter = {
  20102. every?: IdeaAttachmentWhereInput
  20103. some?: IdeaAttachmentWhereInput
  20104. none?: IdeaAttachmentWhereInput
  20105. }
  20106. export type QualificationQuestionListRelationFilter = {
  20107. every?: QualificationQuestionWhereInput
  20108. some?: QualificationQuestionWhereInput
  20109. none?: QualificationQuestionWhereInput
  20110. }
  20111. export type IdeaAttachmentOrderByRelationAggregateInput = {
  20112. _count?: SortOrder
  20113. }
  20114. export type QualificationQuestionOrderByRelationAggregateInput = {
  20115. _count?: SortOrder
  20116. }
  20117. export type IdeaCountOrderByAggregateInput = {
  20118. id?: SortOrder
  20119. workspaceId?: SortOrder
  20120. contributorEmail?: SortOrder
  20121. contributorId?: SortOrder
  20122. department?: SortOrder
  20123. problemDescription?: SortOrder
  20124. estimatedImpact?: SortOrder
  20125. frequency?: SortOrder
  20126. optionalWhoAffected?: SortOrder
  20127. optionalAlreadyTried?: SortOrder
  20128. optionalSuccessLooksLike?: SortOrder
  20129. status?: SortOrder
  20130. llmTitle?: SortOrder
  20131. llmDomain?: SortOrder
  20132. llmAiType?: SortOrder
  20133. llmExplanation?: SortOrder
  20134. llmScoreImpact?: SortOrder
  20135. llmScoreFeasibility?: SortOrder
  20136. llmScoreUrgency?: SortOrder
  20137. llmEnrichedAt?: SortOrder
  20138. llmEnrichFailed?: SortOrder
  20139. manualScoreImpact?: SortOrder
  20140. manualScoreFeasibility?: SortOrder
  20141. manualScoreUrgency?: SortOrder
  20142. priorityOrder?: SortOrder
  20143. emailMessageId?: SortOrder
  20144. createdAt?: SortOrder
  20145. updatedAt?: SortOrder
  20146. }
  20147. export type IdeaAvgOrderByAggregateInput = {
  20148. llmScoreImpact?: SortOrder
  20149. llmScoreFeasibility?: SortOrder
  20150. llmScoreUrgency?: SortOrder
  20151. manualScoreImpact?: SortOrder
  20152. manualScoreFeasibility?: SortOrder
  20153. manualScoreUrgency?: SortOrder
  20154. priorityOrder?: SortOrder
  20155. }
  20156. export type IdeaMaxOrderByAggregateInput = {
  20157. id?: SortOrder
  20158. workspaceId?: SortOrder
  20159. contributorEmail?: SortOrder
  20160. contributorId?: SortOrder
  20161. department?: SortOrder
  20162. problemDescription?: SortOrder
  20163. estimatedImpact?: SortOrder
  20164. frequency?: SortOrder
  20165. optionalWhoAffected?: SortOrder
  20166. optionalAlreadyTried?: SortOrder
  20167. optionalSuccessLooksLike?: SortOrder
  20168. status?: SortOrder
  20169. llmTitle?: SortOrder
  20170. llmDomain?: SortOrder
  20171. llmAiType?: SortOrder
  20172. llmExplanation?: SortOrder
  20173. llmScoreImpact?: SortOrder
  20174. llmScoreFeasibility?: SortOrder
  20175. llmScoreUrgency?: SortOrder
  20176. llmEnrichedAt?: SortOrder
  20177. llmEnrichFailed?: SortOrder
  20178. manualScoreImpact?: SortOrder
  20179. manualScoreFeasibility?: SortOrder
  20180. manualScoreUrgency?: SortOrder
  20181. priorityOrder?: SortOrder
  20182. emailMessageId?: SortOrder
  20183. createdAt?: SortOrder
  20184. updatedAt?: SortOrder
  20185. }
  20186. export type IdeaMinOrderByAggregateInput = {
  20187. id?: SortOrder
  20188. workspaceId?: SortOrder
  20189. contributorEmail?: SortOrder
  20190. contributorId?: SortOrder
  20191. department?: SortOrder
  20192. problemDescription?: SortOrder
  20193. estimatedImpact?: SortOrder
  20194. frequency?: SortOrder
  20195. optionalWhoAffected?: SortOrder
  20196. optionalAlreadyTried?: SortOrder
  20197. optionalSuccessLooksLike?: SortOrder
  20198. status?: SortOrder
  20199. llmTitle?: SortOrder
  20200. llmDomain?: SortOrder
  20201. llmAiType?: SortOrder
  20202. llmExplanation?: SortOrder
  20203. llmScoreImpact?: SortOrder
  20204. llmScoreFeasibility?: SortOrder
  20205. llmScoreUrgency?: SortOrder
  20206. llmEnrichedAt?: SortOrder
  20207. llmEnrichFailed?: SortOrder
  20208. manualScoreImpact?: SortOrder
  20209. manualScoreFeasibility?: SortOrder
  20210. manualScoreUrgency?: SortOrder
  20211. priorityOrder?: SortOrder
  20212. emailMessageId?: SortOrder
  20213. createdAt?: SortOrder
  20214. updatedAt?: SortOrder
  20215. }
  20216. export type IdeaSumOrderByAggregateInput = {
  20217. llmScoreImpact?: SortOrder
  20218. llmScoreFeasibility?: SortOrder
  20219. llmScoreUrgency?: SortOrder
  20220. manualScoreImpact?: SortOrder
  20221. manualScoreFeasibility?: SortOrder
  20222. manualScoreUrgency?: SortOrder
  20223. priorityOrder?: SortOrder
  20224. }
  20225. export type EnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  20226. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  20227. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  20228. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  20229. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  20230. _count?: NestedIntFilter<$PrismaModel>
  20231. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  20232. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  20233. }
  20234. export type EnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  20235. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  20236. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  20237. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  20238. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  20239. _count?: NestedIntFilter<$PrismaModel>
  20240. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  20241. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  20242. }
  20243. export type EnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  20244. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  20245. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  20246. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  20247. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  20248. _count?: NestedIntFilter<$PrismaModel>
  20249. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  20250. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  20251. }
  20252. export type PostCountOrderByAggregateInput = {
  20253. id?: SortOrder
  20254. name?: SortOrder
  20255. createdAt?: SortOrder
  20256. updatedAt?: SortOrder
  20257. createdById?: SortOrder
  20258. }
  20259. export type PostAvgOrderByAggregateInput = {
  20260. id?: SortOrder
  20261. }
  20262. export type PostMaxOrderByAggregateInput = {
  20263. id?: SortOrder
  20264. name?: SortOrder
  20265. createdAt?: SortOrder
  20266. updatedAt?: SortOrder
  20267. createdById?: SortOrder
  20268. }
  20269. export type PostMinOrderByAggregateInput = {
  20270. id?: SortOrder
  20271. name?: SortOrder
  20272. createdAt?: SortOrder
  20273. updatedAt?: SortOrder
  20274. createdById?: SortOrder
  20275. }
  20276. export type PostSumOrderByAggregateInput = {
  20277. id?: SortOrder
  20278. }
  20279. export type AccountProviderProviderAccountIdCompoundUniqueInput = {
  20280. provider: string
  20281. providerAccountId: string
  20282. }
  20283. export type AccountCountOrderByAggregateInput = {
  20284. id?: SortOrder
  20285. userId?: SortOrder
  20286. type?: SortOrder
  20287. provider?: SortOrder
  20288. providerAccountId?: SortOrder
  20289. refresh_token?: SortOrder
  20290. access_token?: SortOrder
  20291. expires_at?: SortOrder
  20292. token_type?: SortOrder
  20293. scope?: SortOrder
  20294. id_token?: SortOrder
  20295. session_state?: SortOrder
  20296. refresh_token_expires_in?: SortOrder
  20297. }
  20298. export type AccountAvgOrderByAggregateInput = {
  20299. expires_at?: SortOrder
  20300. refresh_token_expires_in?: SortOrder
  20301. }
  20302. export type AccountMaxOrderByAggregateInput = {
  20303. id?: SortOrder
  20304. userId?: SortOrder
  20305. type?: SortOrder
  20306. provider?: SortOrder
  20307. providerAccountId?: SortOrder
  20308. refresh_token?: SortOrder
  20309. access_token?: SortOrder
  20310. expires_at?: SortOrder
  20311. token_type?: SortOrder
  20312. scope?: SortOrder
  20313. id_token?: SortOrder
  20314. session_state?: SortOrder
  20315. refresh_token_expires_in?: SortOrder
  20316. }
  20317. export type AccountMinOrderByAggregateInput = {
  20318. id?: SortOrder
  20319. userId?: SortOrder
  20320. type?: SortOrder
  20321. provider?: SortOrder
  20322. providerAccountId?: SortOrder
  20323. refresh_token?: SortOrder
  20324. access_token?: SortOrder
  20325. expires_at?: SortOrder
  20326. token_type?: SortOrder
  20327. scope?: SortOrder
  20328. id_token?: SortOrder
  20329. session_state?: SortOrder
  20330. refresh_token_expires_in?: SortOrder
  20331. }
  20332. export type AccountSumOrderByAggregateInput = {
  20333. expires_at?: SortOrder
  20334. refresh_token_expires_in?: SortOrder
  20335. }
  20336. export type SessionCountOrderByAggregateInput = {
  20337. id?: SortOrder
  20338. sessionToken?: SortOrder
  20339. userId?: SortOrder
  20340. expires?: SortOrder
  20341. }
  20342. export type SessionMaxOrderByAggregateInput = {
  20343. id?: SortOrder
  20344. sessionToken?: SortOrder
  20345. userId?: SortOrder
  20346. expires?: SortOrder
  20347. }
  20348. export type SessionMinOrderByAggregateInput = {
  20349. id?: SortOrder
  20350. sessionToken?: SortOrder
  20351. userId?: SortOrder
  20352. expires?: SortOrder
  20353. }
  20354. export type AccountListRelationFilter = {
  20355. every?: AccountWhereInput
  20356. some?: AccountWhereInput
  20357. none?: AccountWhereInput
  20358. }
  20359. export type SessionListRelationFilter = {
  20360. every?: SessionWhereInput
  20361. some?: SessionWhereInput
  20362. none?: SessionWhereInput
  20363. }
  20364. export type PostListRelationFilter = {
  20365. every?: PostWhereInput
  20366. some?: PostWhereInput
  20367. none?: PostWhereInput
  20368. }
  20369. export type WorkspaceNullableScalarRelationFilter = {
  20370. is?: WorkspaceWhereInput | null
  20371. isNot?: WorkspaceWhereInput | null
  20372. }
  20373. export type AccountOrderByRelationAggregateInput = {
  20374. _count?: SortOrder
  20375. }
  20376. export type SessionOrderByRelationAggregateInput = {
  20377. _count?: SortOrder
  20378. }
  20379. export type PostOrderByRelationAggregateInput = {
  20380. _count?: SortOrder
  20381. }
  20382. export type UserCountOrderByAggregateInput = {
  20383. id?: SortOrder
  20384. name?: SortOrder
  20385. email?: SortOrder
  20386. emailVerified?: SortOrder
  20387. password?: SortOrder
  20388. legalTermsAcceptedAt?: SortOrder
  20389. image?: SortOrder
  20390. }
  20391. export type UserMaxOrderByAggregateInput = {
  20392. id?: SortOrder
  20393. name?: SortOrder
  20394. email?: SortOrder
  20395. emailVerified?: SortOrder
  20396. password?: SortOrder
  20397. legalTermsAcceptedAt?: SortOrder
  20398. image?: SortOrder
  20399. }
  20400. export type UserMinOrderByAggregateInput = {
  20401. id?: SortOrder
  20402. name?: SortOrder
  20403. email?: SortOrder
  20404. emailVerified?: SortOrder
  20405. password?: SortOrder
  20406. legalTermsAcceptedAt?: SortOrder
  20407. image?: SortOrder
  20408. }
  20409. export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
  20410. identifier: string
  20411. token: string
  20412. }
  20413. export type VerificationTokenCountOrderByAggregateInput = {
  20414. identifier?: SortOrder
  20415. token?: SortOrder
  20416. expires?: SortOrder
  20417. }
  20418. export type VerificationTokenMaxOrderByAggregateInput = {
  20419. identifier?: SortOrder
  20420. token?: SortOrder
  20421. expires?: SortOrder
  20422. }
  20423. export type VerificationTokenMinOrderByAggregateInput = {
  20424. identifier?: SortOrder
  20425. token?: SortOrder
  20426. expires?: SortOrder
  20427. }
  20428. export type IdeaScalarRelationFilter = {
  20429. is?: IdeaWhereInput
  20430. isNot?: IdeaWhereInput
  20431. }
  20432. export type IdeaAttachmentCountOrderByAggregateInput = {
  20433. id?: SortOrder
  20434. ideaId?: SortOrder
  20435. workspaceId?: SortOrder
  20436. filename?: SortOrder
  20437. contentType?: SortOrder
  20438. size?: SortOrder
  20439. url?: SortOrder
  20440. blobPath?: SortOrder
  20441. createdAt?: SortOrder
  20442. }
  20443. export type IdeaAttachmentAvgOrderByAggregateInput = {
  20444. size?: SortOrder
  20445. }
  20446. export type IdeaAttachmentMaxOrderByAggregateInput = {
  20447. id?: SortOrder
  20448. ideaId?: SortOrder
  20449. workspaceId?: SortOrder
  20450. filename?: SortOrder
  20451. contentType?: SortOrder
  20452. size?: SortOrder
  20453. url?: SortOrder
  20454. blobPath?: SortOrder
  20455. createdAt?: SortOrder
  20456. }
  20457. export type IdeaAttachmentMinOrderByAggregateInput = {
  20458. id?: SortOrder
  20459. ideaId?: SortOrder
  20460. workspaceId?: SortOrder
  20461. filename?: SortOrder
  20462. contentType?: SortOrder
  20463. size?: SortOrder
  20464. url?: SortOrder
  20465. blobPath?: SortOrder
  20466. createdAt?: SortOrder
  20467. }
  20468. export type IdeaAttachmentSumOrderByAggregateInput = {
  20469. size?: SortOrder
  20470. }
  20471. export type QualificationQuestionCountOrderByAggregateInput = {
  20472. id?: SortOrder
  20473. ideaId?: SortOrder
  20474. workspaceId?: SortOrder
  20475. questionText?: SortOrder
  20476. responseToken?: SortOrder
  20477. askedAt?: SortOrder
  20478. responseText?: SortOrder
  20479. answeredAt?: SortOrder
  20480. }
  20481. export type QualificationQuestionMaxOrderByAggregateInput = {
  20482. id?: SortOrder
  20483. ideaId?: SortOrder
  20484. workspaceId?: SortOrder
  20485. questionText?: SortOrder
  20486. responseToken?: SortOrder
  20487. askedAt?: SortOrder
  20488. responseText?: SortOrder
  20489. answeredAt?: SortOrder
  20490. }
  20491. export type QualificationQuestionMinOrderByAggregateInput = {
  20492. id?: SortOrder
  20493. ideaId?: SortOrder
  20494. workspaceId?: SortOrder
  20495. questionText?: SortOrder
  20496. responseToken?: SortOrder
  20497. askedAt?: SortOrder
  20498. responseText?: SortOrder
  20499. answeredAt?: SortOrder
  20500. }
  20501. export type LibraryCaseCountOrderByAggregateInput = {
  20502. id?: SortOrder
  20503. sector?: SortOrder
  20504. department?: SortOrder
  20505. title?: SortOrder
  20506. description?: SortOrder
  20507. createdAt?: SortOrder
  20508. updatedAt?: SortOrder
  20509. }
  20510. export type LibraryCaseMaxOrderByAggregateInput = {
  20511. id?: SortOrder
  20512. sector?: SortOrder
  20513. department?: SortOrder
  20514. title?: SortOrder
  20515. description?: SortOrder
  20516. createdAt?: SortOrder
  20517. updatedAt?: SortOrder
  20518. }
  20519. export type LibraryCaseMinOrderByAggregateInput = {
  20520. id?: SortOrder
  20521. sector?: SortOrder
  20522. department?: SortOrder
  20523. title?: SortOrder
  20524. description?: SortOrder
  20525. createdAt?: SortOrder
  20526. updatedAt?: SortOrder
  20527. }
  20528. export type EnumFeedbackTypeFilter<$PrismaModel = never> = {
  20529. equals?: $Enums.FeedbackType | EnumFeedbackTypeFieldRefInput<$PrismaModel>
  20530. in?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  20531. notIn?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  20532. not?: NestedEnumFeedbackTypeFilter<$PrismaModel> | $Enums.FeedbackType
  20533. }
  20534. export type AppFeedbackCountOrderByAggregateInput = {
  20535. id?: SortOrder
  20536. userId?: SortOrder
  20537. workspaceId?: SortOrder
  20538. type?: SortOrder
  20539. message?: SortOrder
  20540. createdAt?: SortOrder
  20541. }
  20542. export type AppFeedbackMaxOrderByAggregateInput = {
  20543. id?: SortOrder
  20544. userId?: SortOrder
  20545. workspaceId?: SortOrder
  20546. type?: SortOrder
  20547. message?: SortOrder
  20548. createdAt?: SortOrder
  20549. }
  20550. export type AppFeedbackMinOrderByAggregateInput = {
  20551. id?: SortOrder
  20552. userId?: SortOrder
  20553. workspaceId?: SortOrder
  20554. type?: SortOrder
  20555. message?: SortOrder
  20556. createdAt?: SortOrder
  20557. }
  20558. export type EnumFeedbackTypeWithAggregatesFilter<$PrismaModel = never> = {
  20559. equals?: $Enums.FeedbackType | EnumFeedbackTypeFieldRefInput<$PrismaModel>
  20560. in?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  20561. notIn?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  20562. not?: NestedEnumFeedbackTypeWithAggregatesFilter<$PrismaModel> | $Enums.FeedbackType
  20563. _count?: NestedIntFilter<$PrismaModel>
  20564. _min?: NestedEnumFeedbackTypeFilter<$PrismaModel>
  20565. _max?: NestedEnumFeedbackTypeFilter<$PrismaModel>
  20566. }
  20567. export type ShareLinkCountOrderByAggregateInput = {
  20568. id?: SortOrder
  20569. workspaceId?: SortOrder
  20570. token?: SortOrder
  20571. expiresAt?: SortOrder
  20572. createdAt?: SortOrder
  20573. }
  20574. export type ShareLinkMaxOrderByAggregateInput = {
  20575. id?: SortOrder
  20576. workspaceId?: SortOrder
  20577. token?: SortOrder
  20578. expiresAt?: SortOrder
  20579. createdAt?: SortOrder
  20580. }
  20581. export type ShareLinkMinOrderByAggregateInput = {
  20582. id?: SortOrder
  20583. workspaceId?: SortOrder
  20584. token?: SortOrder
  20585. expiresAt?: SortOrder
  20586. createdAt?: SortOrder
  20587. }
  20588. export type ShareLinkCreateNestedOneWithoutWorkspaceInput = {
  20589. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20590. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  20591. connect?: ShareLinkWhereUniqueInput
  20592. }
  20593. export type AppFeedbackCreateNestedManyWithoutWorkspaceInput = {
  20594. create?: XOR<AppFeedbackCreateWithoutWorkspaceInput, AppFeedbackUncheckedCreateWithoutWorkspaceInput> | AppFeedbackCreateWithoutWorkspaceInput[] | AppFeedbackUncheckedCreateWithoutWorkspaceInput[]
  20595. connectOrCreate?: AppFeedbackCreateOrConnectWithoutWorkspaceInput | AppFeedbackCreateOrConnectWithoutWorkspaceInput[]
  20596. createMany?: AppFeedbackCreateManyWorkspaceInputEnvelope
  20597. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20598. }
  20599. export type UserCreateNestedOneWithoutWorkspaceInput = {
  20600. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  20601. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  20602. connect?: UserWhereUniqueInput
  20603. }
  20604. export type ContributorCreateNestedManyWithoutWorkspaceInput = {
  20605. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  20606. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  20607. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  20608. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20609. }
  20610. export type IdeaCreateNestedManyWithoutWorkspaceInput = {
  20611. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  20612. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  20613. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  20614. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20615. }
  20616. export type ManualRelanceLogCreateNestedManyWithoutWorkspaceInput = {
  20617. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  20618. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  20619. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  20620. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20621. }
  20622. export type ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput = {
  20623. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20624. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  20625. connect?: ShareLinkWhereUniqueInput
  20626. }
  20627. export type AppFeedbackUncheckedCreateNestedManyWithoutWorkspaceInput = {
  20628. create?: XOR<AppFeedbackCreateWithoutWorkspaceInput, AppFeedbackUncheckedCreateWithoutWorkspaceInput> | AppFeedbackCreateWithoutWorkspaceInput[] | AppFeedbackUncheckedCreateWithoutWorkspaceInput[]
  20629. connectOrCreate?: AppFeedbackCreateOrConnectWithoutWorkspaceInput | AppFeedbackCreateOrConnectWithoutWorkspaceInput[]
  20630. createMany?: AppFeedbackCreateManyWorkspaceInputEnvelope
  20631. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20632. }
  20633. export type ContributorUncheckedCreateNestedManyWithoutWorkspaceInput = {
  20634. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  20635. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  20636. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  20637. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20638. }
  20639. export type IdeaUncheckedCreateNestedManyWithoutWorkspaceInput = {
  20640. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  20641. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  20642. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  20643. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20644. }
  20645. export type ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput = {
  20646. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  20647. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  20648. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  20649. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20650. }
  20651. export type StringFieldUpdateOperationsInput = {
  20652. set?: string
  20653. }
  20654. export type NullableStringFieldUpdateOperationsInput = {
  20655. set?: string | null
  20656. }
  20657. export type NullableIntFieldUpdateOperationsInput = {
  20658. set?: number | null
  20659. increment?: number
  20660. decrement?: number
  20661. multiply?: number
  20662. divide?: number
  20663. }
  20664. export type EnumWorkspaceTierFieldUpdateOperationsInput = {
  20665. set?: $Enums.WorkspaceTier
  20666. }
  20667. export type IntFieldUpdateOperationsInput = {
  20668. set?: number
  20669. increment?: number
  20670. decrement?: number
  20671. multiply?: number
  20672. divide?: number
  20673. }
  20674. export type DateTimeFieldUpdateOperationsInput = {
  20675. set?: Date | string
  20676. }
  20677. export type BoolFieldUpdateOperationsInput = {
  20678. set?: boolean
  20679. }
  20680. export type NullableDateTimeFieldUpdateOperationsInput = {
  20681. set?: Date | string | null
  20682. }
  20683. export type ShareLinkUpdateOneWithoutWorkspaceNestedInput = {
  20684. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20685. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  20686. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  20687. disconnect?: ShareLinkWhereInput | boolean
  20688. delete?: ShareLinkWhereInput | boolean
  20689. connect?: ShareLinkWhereUniqueInput
  20690. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  20691. }
  20692. export type AppFeedbackUpdateManyWithoutWorkspaceNestedInput = {
  20693. create?: XOR<AppFeedbackCreateWithoutWorkspaceInput, AppFeedbackUncheckedCreateWithoutWorkspaceInput> | AppFeedbackCreateWithoutWorkspaceInput[] | AppFeedbackUncheckedCreateWithoutWorkspaceInput[]
  20694. connectOrCreate?: AppFeedbackCreateOrConnectWithoutWorkspaceInput | AppFeedbackCreateOrConnectWithoutWorkspaceInput[]
  20695. upsert?: AppFeedbackUpsertWithWhereUniqueWithoutWorkspaceInput | AppFeedbackUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20696. createMany?: AppFeedbackCreateManyWorkspaceInputEnvelope
  20697. set?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20698. disconnect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20699. delete?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20700. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20701. update?: AppFeedbackUpdateWithWhereUniqueWithoutWorkspaceInput | AppFeedbackUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20702. updateMany?: AppFeedbackUpdateManyWithWhereWithoutWorkspaceInput | AppFeedbackUpdateManyWithWhereWithoutWorkspaceInput[]
  20703. deleteMany?: AppFeedbackScalarWhereInput | AppFeedbackScalarWhereInput[]
  20704. }
  20705. export type UserUpdateOneRequiredWithoutWorkspaceNestedInput = {
  20706. create?: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  20707. connectOrCreate?: UserCreateOrConnectWithoutWorkspaceInput
  20708. upsert?: UserUpsertWithoutWorkspaceInput
  20709. connect?: UserWhereUniqueInput
  20710. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutWorkspaceInput, UserUpdateWithoutWorkspaceInput>, UserUncheckedUpdateWithoutWorkspaceInput>
  20711. }
  20712. export type ContributorUpdateManyWithoutWorkspaceNestedInput = {
  20713. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  20714. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  20715. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20716. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  20717. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20718. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20719. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20720. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20721. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20722. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  20723. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20724. }
  20725. export type IdeaUpdateManyWithoutWorkspaceNestedInput = {
  20726. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  20727. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  20728. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20729. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  20730. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20731. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20732. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20733. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20734. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20735. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  20736. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20737. }
  20738. export type ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput = {
  20739. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  20740. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  20741. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20742. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  20743. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20744. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20745. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20746. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20747. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20748. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  20749. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20750. }
  20751. export type ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput = {
  20752. create?: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  20753. connectOrCreate?: ShareLinkCreateOrConnectWithoutWorkspaceInput
  20754. upsert?: ShareLinkUpsertWithoutWorkspaceInput
  20755. disconnect?: ShareLinkWhereInput | boolean
  20756. delete?: ShareLinkWhereInput | boolean
  20757. connect?: ShareLinkWhereUniqueInput
  20758. update?: XOR<XOR<ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput, ShareLinkUpdateWithoutWorkspaceInput>, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  20759. }
  20760. export type AppFeedbackUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  20761. create?: XOR<AppFeedbackCreateWithoutWorkspaceInput, AppFeedbackUncheckedCreateWithoutWorkspaceInput> | AppFeedbackCreateWithoutWorkspaceInput[] | AppFeedbackUncheckedCreateWithoutWorkspaceInput[]
  20762. connectOrCreate?: AppFeedbackCreateOrConnectWithoutWorkspaceInput | AppFeedbackCreateOrConnectWithoutWorkspaceInput[]
  20763. upsert?: AppFeedbackUpsertWithWhereUniqueWithoutWorkspaceInput | AppFeedbackUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20764. createMany?: AppFeedbackCreateManyWorkspaceInputEnvelope
  20765. set?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20766. disconnect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20767. delete?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20768. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  20769. update?: AppFeedbackUpdateWithWhereUniqueWithoutWorkspaceInput | AppFeedbackUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20770. updateMany?: AppFeedbackUpdateManyWithWhereWithoutWorkspaceInput | AppFeedbackUpdateManyWithWhereWithoutWorkspaceInput[]
  20771. deleteMany?: AppFeedbackScalarWhereInput | AppFeedbackScalarWhereInput[]
  20772. }
  20773. export type ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  20774. create?: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput> | ContributorCreateWithoutWorkspaceInput[] | ContributorUncheckedCreateWithoutWorkspaceInput[]
  20775. connectOrCreate?: ContributorCreateOrConnectWithoutWorkspaceInput | ContributorCreateOrConnectWithoutWorkspaceInput[]
  20776. upsert?: ContributorUpsertWithWhereUniqueWithoutWorkspaceInput | ContributorUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20777. createMany?: ContributorCreateManyWorkspaceInputEnvelope
  20778. set?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20779. disconnect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20780. delete?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20781. connect?: ContributorWhereUniqueInput | ContributorWhereUniqueInput[]
  20782. update?: ContributorUpdateWithWhereUniqueWithoutWorkspaceInput | ContributorUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20783. updateMany?: ContributorUpdateManyWithWhereWithoutWorkspaceInput | ContributorUpdateManyWithWhereWithoutWorkspaceInput[]
  20784. deleteMany?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  20785. }
  20786. export type IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  20787. create?: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput> | IdeaCreateWithoutWorkspaceInput[] | IdeaUncheckedCreateWithoutWorkspaceInput[]
  20788. connectOrCreate?: IdeaCreateOrConnectWithoutWorkspaceInput | IdeaCreateOrConnectWithoutWorkspaceInput[]
  20789. upsert?: IdeaUpsertWithWhereUniqueWithoutWorkspaceInput | IdeaUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20790. createMany?: IdeaCreateManyWorkspaceInputEnvelope
  20791. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20792. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20793. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20794. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20795. update?: IdeaUpdateWithWhereUniqueWithoutWorkspaceInput | IdeaUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20796. updateMany?: IdeaUpdateManyWithWhereWithoutWorkspaceInput | IdeaUpdateManyWithWhereWithoutWorkspaceInput[]
  20797. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20798. }
  20799. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput = {
  20800. create?: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput> | ManualRelanceLogCreateWithoutWorkspaceInput[] | ManualRelanceLogUncheckedCreateWithoutWorkspaceInput[]
  20801. connectOrCreate?: ManualRelanceLogCreateOrConnectWithoutWorkspaceInput | ManualRelanceLogCreateOrConnectWithoutWorkspaceInput[]
  20802. upsert?: ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
  20803. createMany?: ManualRelanceLogCreateManyWorkspaceInputEnvelope
  20804. set?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20805. disconnect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20806. delete?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20807. connect?: ManualRelanceLogWhereUniqueInput | ManualRelanceLogWhereUniqueInput[]
  20808. update?: ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput | ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
  20809. updateMany?: ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput | ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput[]
  20810. deleteMany?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  20811. }
  20812. export type WorkspaceCreateNestedOneWithoutManualRelanceLogsInput = {
  20813. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20814. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  20815. connect?: WorkspaceWhereUniqueInput
  20816. }
  20817. export type WorkspaceUpdateOneRequiredWithoutManualRelanceLogsNestedInput = {
  20818. create?: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  20819. connectOrCreate?: WorkspaceCreateOrConnectWithoutManualRelanceLogsInput
  20820. upsert?: WorkspaceUpsertWithoutManualRelanceLogsInput
  20821. connect?: WorkspaceWhereUniqueInput
  20822. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput, WorkspaceUpdateWithoutManualRelanceLogsInput>, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  20823. }
  20824. export type WorkspaceCreateNestedOneWithoutContributorsInput = {
  20825. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20826. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  20827. connect?: WorkspaceWhereUniqueInput
  20828. }
  20829. export type IdeaCreateNestedManyWithoutContributorInput = {
  20830. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  20831. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  20832. createMany?: IdeaCreateManyContributorInputEnvelope
  20833. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20834. }
  20835. export type IdeaUncheckedCreateNestedManyWithoutContributorInput = {
  20836. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  20837. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  20838. createMany?: IdeaCreateManyContributorInputEnvelope
  20839. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20840. }
  20841. export type EnumContributorStatusFieldUpdateOperationsInput = {
  20842. set?: $Enums.ContributorStatus
  20843. }
  20844. export type WorkspaceUpdateOneRequiredWithoutContributorsNestedInput = {
  20845. create?: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  20846. connectOrCreate?: WorkspaceCreateOrConnectWithoutContributorsInput
  20847. upsert?: WorkspaceUpsertWithoutContributorsInput
  20848. connect?: WorkspaceWhereUniqueInput
  20849. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutContributorsInput, WorkspaceUpdateWithoutContributorsInput>, WorkspaceUncheckedUpdateWithoutContributorsInput>
  20850. }
  20851. export type IdeaUpdateManyWithoutContributorNestedInput = {
  20852. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  20853. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  20854. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  20855. createMany?: IdeaCreateManyContributorInputEnvelope
  20856. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20857. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20858. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20859. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20860. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  20861. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  20862. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20863. }
  20864. export type IdeaUncheckedUpdateManyWithoutContributorNestedInput = {
  20865. create?: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput> | IdeaCreateWithoutContributorInput[] | IdeaUncheckedCreateWithoutContributorInput[]
  20866. connectOrCreate?: IdeaCreateOrConnectWithoutContributorInput | IdeaCreateOrConnectWithoutContributorInput[]
  20867. upsert?: IdeaUpsertWithWhereUniqueWithoutContributorInput | IdeaUpsertWithWhereUniqueWithoutContributorInput[]
  20868. createMany?: IdeaCreateManyContributorInputEnvelope
  20869. set?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20870. disconnect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20871. delete?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20872. connect?: IdeaWhereUniqueInput | IdeaWhereUniqueInput[]
  20873. update?: IdeaUpdateWithWhereUniqueWithoutContributorInput | IdeaUpdateWithWhereUniqueWithoutContributorInput[]
  20874. updateMany?: IdeaUpdateManyWithWhereWithoutContributorInput | IdeaUpdateManyWithWhereWithoutContributorInput[]
  20875. deleteMany?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  20876. }
  20877. export type WorkspaceCreateNestedOneWithoutIdeasInput = {
  20878. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20879. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  20880. connect?: WorkspaceWhereUniqueInput
  20881. }
  20882. export type ContributorCreateNestedOneWithoutIdeasInput = {
  20883. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20884. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  20885. connect?: ContributorWhereUniqueInput
  20886. }
  20887. export type IdeaAttachmentCreateNestedManyWithoutIdeaInput = {
  20888. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  20889. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  20890. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  20891. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20892. }
  20893. export type QualificationQuestionCreateNestedManyWithoutIdeaInput = {
  20894. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  20895. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  20896. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  20897. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20898. }
  20899. export type IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput = {
  20900. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  20901. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  20902. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  20903. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20904. }
  20905. export type QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput = {
  20906. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  20907. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  20908. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  20909. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20910. }
  20911. export type EnumImpactLevelFieldUpdateOperationsInput = {
  20912. set?: $Enums.ImpactLevel
  20913. }
  20914. export type EnumFrequencyFieldUpdateOperationsInput = {
  20915. set?: $Enums.Frequency
  20916. }
  20917. export type EnumIdeaStatusFieldUpdateOperationsInput = {
  20918. set?: $Enums.IdeaStatus
  20919. }
  20920. export type WorkspaceUpdateOneRequiredWithoutIdeasNestedInput = {
  20921. create?: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  20922. connectOrCreate?: WorkspaceCreateOrConnectWithoutIdeasInput
  20923. upsert?: WorkspaceUpsertWithoutIdeasInput
  20924. connect?: WorkspaceWhereUniqueInput
  20925. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutIdeasInput, WorkspaceUpdateWithoutIdeasInput>, WorkspaceUncheckedUpdateWithoutIdeasInput>
  20926. }
  20927. export type ContributorUpdateOneWithoutIdeasNestedInput = {
  20928. create?: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  20929. connectOrCreate?: ContributorCreateOrConnectWithoutIdeasInput
  20930. upsert?: ContributorUpsertWithoutIdeasInput
  20931. disconnect?: ContributorWhereInput | boolean
  20932. delete?: ContributorWhereInput | boolean
  20933. connect?: ContributorWhereUniqueInput
  20934. update?: XOR<XOR<ContributorUpdateToOneWithWhereWithoutIdeasInput, ContributorUpdateWithoutIdeasInput>, ContributorUncheckedUpdateWithoutIdeasInput>
  20935. }
  20936. export type IdeaAttachmentUpdateManyWithoutIdeaNestedInput = {
  20937. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  20938. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  20939. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  20940. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  20941. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20942. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20943. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20944. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20945. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  20946. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  20947. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20948. }
  20949. export type QualificationQuestionUpdateManyWithoutIdeaNestedInput = {
  20950. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  20951. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  20952. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  20953. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  20954. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20955. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20956. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20957. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20958. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  20959. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  20960. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20961. }
  20962. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput = {
  20963. create?: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput> | IdeaAttachmentCreateWithoutIdeaInput[] | IdeaAttachmentUncheckedCreateWithoutIdeaInput[]
  20964. connectOrCreate?: IdeaAttachmentCreateOrConnectWithoutIdeaInput | IdeaAttachmentCreateOrConnectWithoutIdeaInput[]
  20965. upsert?: IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput[]
  20966. createMany?: IdeaAttachmentCreateManyIdeaInputEnvelope
  20967. set?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20968. disconnect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20969. delete?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20970. connect?: IdeaAttachmentWhereUniqueInput | IdeaAttachmentWhereUniqueInput[]
  20971. update?: IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput | IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput[]
  20972. updateMany?: IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput | IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput[]
  20973. deleteMany?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  20974. }
  20975. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput = {
  20976. create?: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput> | QualificationQuestionCreateWithoutIdeaInput[] | QualificationQuestionUncheckedCreateWithoutIdeaInput[]
  20977. connectOrCreate?: QualificationQuestionCreateOrConnectWithoutIdeaInput | QualificationQuestionCreateOrConnectWithoutIdeaInput[]
  20978. upsert?: QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput[]
  20979. createMany?: QualificationQuestionCreateManyIdeaInputEnvelope
  20980. set?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20981. disconnect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20982. delete?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20983. connect?: QualificationQuestionWhereUniqueInput | QualificationQuestionWhereUniqueInput[]
  20984. update?: QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput | QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput[]
  20985. updateMany?: QualificationQuestionUpdateManyWithWhereWithoutIdeaInput | QualificationQuestionUpdateManyWithWhereWithoutIdeaInput[]
  20986. deleteMany?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  20987. }
  20988. export type UserCreateNestedOneWithoutPostsInput = {
  20989. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20990. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  20991. connect?: UserWhereUniqueInput
  20992. }
  20993. export type UserUpdateOneRequiredWithoutPostsNestedInput = {
  20994. create?: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  20995. connectOrCreate?: UserCreateOrConnectWithoutPostsInput
  20996. upsert?: UserUpsertWithoutPostsInput
  20997. connect?: UserWhereUniqueInput
  20998. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutPostsInput, UserUpdateWithoutPostsInput>, UserUncheckedUpdateWithoutPostsInput>
  20999. }
  21000. export type UserCreateNestedOneWithoutAccountsInput = {
  21001. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  21002. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  21003. connect?: UserWhereUniqueInput
  21004. }
  21005. export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
  21006. create?: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  21007. connectOrCreate?: UserCreateOrConnectWithoutAccountsInput
  21008. upsert?: UserUpsertWithoutAccountsInput
  21009. connect?: UserWhereUniqueInput
  21010. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutAccountsInput, UserUpdateWithoutAccountsInput>, UserUncheckedUpdateWithoutAccountsInput>
  21011. }
  21012. export type UserCreateNestedOneWithoutSessionsInput = {
  21013. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  21014. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  21015. connect?: UserWhereUniqueInput
  21016. }
  21017. export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
  21018. create?: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  21019. connectOrCreate?: UserCreateOrConnectWithoutSessionsInput
  21020. upsert?: UserUpsertWithoutSessionsInput
  21021. connect?: UserWhereUniqueInput
  21022. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutSessionsInput, UserUpdateWithoutSessionsInput>, UserUncheckedUpdateWithoutSessionsInput>
  21023. }
  21024. export type AccountCreateNestedManyWithoutUserInput = {
  21025. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  21026. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  21027. createMany?: AccountCreateManyUserInputEnvelope
  21028. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21029. }
  21030. export type SessionCreateNestedManyWithoutUserInput = {
  21031. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  21032. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  21033. createMany?: SessionCreateManyUserInputEnvelope
  21034. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21035. }
  21036. export type PostCreateNestedManyWithoutCreatedByInput = {
  21037. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  21038. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  21039. createMany?: PostCreateManyCreatedByInputEnvelope
  21040. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21041. }
  21042. export type WorkspaceCreateNestedOneWithoutOwnerInput = {
  21043. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21044. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  21045. connect?: WorkspaceWhereUniqueInput
  21046. }
  21047. export type AppFeedbackCreateNestedManyWithoutUserInput = {
  21048. create?: XOR<AppFeedbackCreateWithoutUserInput, AppFeedbackUncheckedCreateWithoutUserInput> | AppFeedbackCreateWithoutUserInput[] | AppFeedbackUncheckedCreateWithoutUserInput[]
  21049. connectOrCreate?: AppFeedbackCreateOrConnectWithoutUserInput | AppFeedbackCreateOrConnectWithoutUserInput[]
  21050. createMany?: AppFeedbackCreateManyUserInputEnvelope
  21051. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21052. }
  21053. export type AccountUncheckedCreateNestedManyWithoutUserInput = {
  21054. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  21055. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  21056. createMany?: AccountCreateManyUserInputEnvelope
  21057. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21058. }
  21059. export type SessionUncheckedCreateNestedManyWithoutUserInput = {
  21060. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  21061. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  21062. createMany?: SessionCreateManyUserInputEnvelope
  21063. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21064. }
  21065. export type PostUncheckedCreateNestedManyWithoutCreatedByInput = {
  21066. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  21067. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  21068. createMany?: PostCreateManyCreatedByInputEnvelope
  21069. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21070. }
  21071. export type WorkspaceUncheckedCreateNestedOneWithoutOwnerInput = {
  21072. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21073. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  21074. connect?: WorkspaceWhereUniqueInput
  21075. }
  21076. export type AppFeedbackUncheckedCreateNestedManyWithoutUserInput = {
  21077. create?: XOR<AppFeedbackCreateWithoutUserInput, AppFeedbackUncheckedCreateWithoutUserInput> | AppFeedbackCreateWithoutUserInput[] | AppFeedbackUncheckedCreateWithoutUserInput[]
  21078. connectOrCreate?: AppFeedbackCreateOrConnectWithoutUserInput | AppFeedbackCreateOrConnectWithoutUserInput[]
  21079. createMany?: AppFeedbackCreateManyUserInputEnvelope
  21080. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21081. }
  21082. export type AccountUpdateManyWithoutUserNestedInput = {
  21083. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  21084. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  21085. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  21086. createMany?: AccountCreateManyUserInputEnvelope
  21087. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21088. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21089. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21090. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21091. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  21092. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  21093. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  21094. }
  21095. export type SessionUpdateManyWithoutUserNestedInput = {
  21096. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  21097. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  21098. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  21099. createMany?: SessionCreateManyUserInputEnvelope
  21100. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21101. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21102. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21103. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21104. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  21105. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  21106. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21107. }
  21108. export type PostUpdateManyWithoutCreatedByNestedInput = {
  21109. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  21110. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  21111. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  21112. createMany?: PostCreateManyCreatedByInputEnvelope
  21113. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21114. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21115. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21116. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21117. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  21118. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  21119. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  21120. }
  21121. export type WorkspaceUpdateOneWithoutOwnerNestedInput = {
  21122. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21123. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  21124. upsert?: WorkspaceUpsertWithoutOwnerInput
  21125. disconnect?: WorkspaceWhereInput | boolean
  21126. delete?: WorkspaceWhereInput | boolean
  21127. connect?: WorkspaceWhereUniqueInput
  21128. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21129. }
  21130. export type AppFeedbackUpdateManyWithoutUserNestedInput = {
  21131. create?: XOR<AppFeedbackCreateWithoutUserInput, AppFeedbackUncheckedCreateWithoutUserInput> | AppFeedbackCreateWithoutUserInput[] | AppFeedbackUncheckedCreateWithoutUserInput[]
  21132. connectOrCreate?: AppFeedbackCreateOrConnectWithoutUserInput | AppFeedbackCreateOrConnectWithoutUserInput[]
  21133. upsert?: AppFeedbackUpsertWithWhereUniqueWithoutUserInput | AppFeedbackUpsertWithWhereUniqueWithoutUserInput[]
  21134. createMany?: AppFeedbackCreateManyUserInputEnvelope
  21135. set?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21136. disconnect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21137. delete?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21138. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21139. update?: AppFeedbackUpdateWithWhereUniqueWithoutUserInput | AppFeedbackUpdateWithWhereUniqueWithoutUserInput[]
  21140. updateMany?: AppFeedbackUpdateManyWithWhereWithoutUserInput | AppFeedbackUpdateManyWithWhereWithoutUserInput[]
  21141. deleteMany?: AppFeedbackScalarWhereInput | AppFeedbackScalarWhereInput[]
  21142. }
  21143. export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
  21144. create?: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput> | AccountCreateWithoutUserInput[] | AccountUncheckedCreateWithoutUserInput[]
  21145. connectOrCreate?: AccountCreateOrConnectWithoutUserInput | AccountCreateOrConnectWithoutUserInput[]
  21146. upsert?: AccountUpsertWithWhereUniqueWithoutUserInput | AccountUpsertWithWhereUniqueWithoutUserInput[]
  21147. createMany?: AccountCreateManyUserInputEnvelope
  21148. set?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21149. disconnect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21150. delete?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21151. connect?: AccountWhereUniqueInput | AccountWhereUniqueInput[]
  21152. update?: AccountUpdateWithWhereUniqueWithoutUserInput | AccountUpdateWithWhereUniqueWithoutUserInput[]
  21153. updateMany?: AccountUpdateManyWithWhereWithoutUserInput | AccountUpdateManyWithWhereWithoutUserInput[]
  21154. deleteMany?: AccountScalarWhereInput | AccountScalarWhereInput[]
  21155. }
  21156. export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
  21157. create?: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput> | SessionCreateWithoutUserInput[] | SessionUncheckedCreateWithoutUserInput[]
  21158. connectOrCreate?: SessionCreateOrConnectWithoutUserInput | SessionCreateOrConnectWithoutUserInput[]
  21159. upsert?: SessionUpsertWithWhereUniqueWithoutUserInput | SessionUpsertWithWhereUniqueWithoutUserInput[]
  21160. createMany?: SessionCreateManyUserInputEnvelope
  21161. set?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21162. disconnect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21163. delete?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21164. connect?: SessionWhereUniqueInput | SessionWhereUniqueInput[]
  21165. update?: SessionUpdateWithWhereUniqueWithoutUserInput | SessionUpdateWithWhereUniqueWithoutUserInput[]
  21166. updateMany?: SessionUpdateManyWithWhereWithoutUserInput | SessionUpdateManyWithWhereWithoutUserInput[]
  21167. deleteMany?: SessionScalarWhereInput | SessionScalarWhereInput[]
  21168. }
  21169. export type PostUncheckedUpdateManyWithoutCreatedByNestedInput = {
  21170. create?: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput> | PostCreateWithoutCreatedByInput[] | PostUncheckedCreateWithoutCreatedByInput[]
  21171. connectOrCreate?: PostCreateOrConnectWithoutCreatedByInput | PostCreateOrConnectWithoutCreatedByInput[]
  21172. upsert?: PostUpsertWithWhereUniqueWithoutCreatedByInput | PostUpsertWithWhereUniqueWithoutCreatedByInput[]
  21173. createMany?: PostCreateManyCreatedByInputEnvelope
  21174. set?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21175. disconnect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21176. delete?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21177. connect?: PostWhereUniqueInput | PostWhereUniqueInput[]
  21178. update?: PostUpdateWithWhereUniqueWithoutCreatedByInput | PostUpdateWithWhereUniqueWithoutCreatedByInput[]
  21179. updateMany?: PostUpdateManyWithWhereWithoutCreatedByInput | PostUpdateManyWithWhereWithoutCreatedByInput[]
  21180. deleteMany?: PostScalarWhereInput | PostScalarWhereInput[]
  21181. }
  21182. export type WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput = {
  21183. create?: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  21184. connectOrCreate?: WorkspaceCreateOrConnectWithoutOwnerInput
  21185. upsert?: WorkspaceUpsertWithoutOwnerInput
  21186. disconnect?: WorkspaceWhereInput | boolean
  21187. delete?: WorkspaceWhereInput | boolean
  21188. connect?: WorkspaceWhereUniqueInput
  21189. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutOwnerInput, WorkspaceUpdateWithoutOwnerInput>, WorkspaceUncheckedUpdateWithoutOwnerInput>
  21190. }
  21191. export type AppFeedbackUncheckedUpdateManyWithoutUserNestedInput = {
  21192. create?: XOR<AppFeedbackCreateWithoutUserInput, AppFeedbackUncheckedCreateWithoutUserInput> | AppFeedbackCreateWithoutUserInput[] | AppFeedbackUncheckedCreateWithoutUserInput[]
  21193. connectOrCreate?: AppFeedbackCreateOrConnectWithoutUserInput | AppFeedbackCreateOrConnectWithoutUserInput[]
  21194. upsert?: AppFeedbackUpsertWithWhereUniqueWithoutUserInput | AppFeedbackUpsertWithWhereUniqueWithoutUserInput[]
  21195. createMany?: AppFeedbackCreateManyUserInputEnvelope
  21196. set?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21197. disconnect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21198. delete?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21199. connect?: AppFeedbackWhereUniqueInput | AppFeedbackWhereUniqueInput[]
  21200. update?: AppFeedbackUpdateWithWhereUniqueWithoutUserInput | AppFeedbackUpdateWithWhereUniqueWithoutUserInput[]
  21201. updateMany?: AppFeedbackUpdateManyWithWhereWithoutUserInput | AppFeedbackUpdateManyWithWhereWithoutUserInput[]
  21202. deleteMany?: AppFeedbackScalarWhereInput | AppFeedbackScalarWhereInput[]
  21203. }
  21204. export type IdeaCreateNestedOneWithoutAttachmentsInput = {
  21205. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21206. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  21207. connect?: IdeaWhereUniqueInput
  21208. }
  21209. export type IdeaUpdateOneRequiredWithoutAttachmentsNestedInput = {
  21210. create?: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  21211. connectOrCreate?: IdeaCreateOrConnectWithoutAttachmentsInput
  21212. upsert?: IdeaUpsertWithoutAttachmentsInput
  21213. connect?: IdeaWhereUniqueInput
  21214. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutAttachmentsInput, IdeaUpdateWithoutAttachmentsInput>, IdeaUncheckedUpdateWithoutAttachmentsInput>
  21215. }
  21216. export type IdeaCreateNestedOneWithoutQualificationQuestionsInput = {
  21217. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21218. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  21219. connect?: IdeaWhereUniqueInput
  21220. }
  21221. export type IdeaUpdateOneRequiredWithoutQualificationQuestionsNestedInput = {
  21222. create?: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  21223. connectOrCreate?: IdeaCreateOrConnectWithoutQualificationQuestionsInput
  21224. upsert?: IdeaUpsertWithoutQualificationQuestionsInput
  21225. connect?: IdeaWhereUniqueInput
  21226. update?: XOR<XOR<IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput, IdeaUpdateWithoutQualificationQuestionsInput>, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  21227. }
  21228. export type UserCreateNestedOneWithoutFeedbacksInput = {
  21229. create?: XOR<UserCreateWithoutFeedbacksInput, UserUncheckedCreateWithoutFeedbacksInput>
  21230. connectOrCreate?: UserCreateOrConnectWithoutFeedbacksInput
  21231. connect?: UserWhereUniqueInput
  21232. }
  21233. export type WorkspaceCreateNestedOneWithoutFeedbacksInput = {
  21234. create?: XOR<WorkspaceCreateWithoutFeedbacksInput, WorkspaceUncheckedCreateWithoutFeedbacksInput>
  21235. connectOrCreate?: WorkspaceCreateOrConnectWithoutFeedbacksInput
  21236. connect?: WorkspaceWhereUniqueInput
  21237. }
  21238. export type EnumFeedbackTypeFieldUpdateOperationsInput = {
  21239. set?: $Enums.FeedbackType
  21240. }
  21241. export type UserUpdateOneRequiredWithoutFeedbacksNestedInput = {
  21242. create?: XOR<UserCreateWithoutFeedbacksInput, UserUncheckedCreateWithoutFeedbacksInput>
  21243. connectOrCreate?: UserCreateOrConnectWithoutFeedbacksInput
  21244. upsert?: UserUpsertWithoutFeedbacksInput
  21245. connect?: UserWhereUniqueInput
  21246. update?: XOR<XOR<UserUpdateToOneWithWhereWithoutFeedbacksInput, UserUpdateWithoutFeedbacksInput>, UserUncheckedUpdateWithoutFeedbacksInput>
  21247. }
  21248. export type WorkspaceUpdateOneRequiredWithoutFeedbacksNestedInput = {
  21249. create?: XOR<WorkspaceCreateWithoutFeedbacksInput, WorkspaceUncheckedCreateWithoutFeedbacksInput>
  21250. connectOrCreate?: WorkspaceCreateOrConnectWithoutFeedbacksInput
  21251. upsert?: WorkspaceUpsertWithoutFeedbacksInput
  21252. connect?: WorkspaceWhereUniqueInput
  21253. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutFeedbacksInput, WorkspaceUpdateWithoutFeedbacksInput>, WorkspaceUncheckedUpdateWithoutFeedbacksInput>
  21254. }
  21255. export type WorkspaceCreateNestedOneWithoutShareLinkInput = {
  21256. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21257. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  21258. connect?: WorkspaceWhereUniqueInput
  21259. }
  21260. export type WorkspaceUpdateOneRequiredWithoutShareLinkNestedInput = {
  21261. create?: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  21262. connectOrCreate?: WorkspaceCreateOrConnectWithoutShareLinkInput
  21263. upsert?: WorkspaceUpsertWithoutShareLinkInput
  21264. connect?: WorkspaceWhereUniqueInput
  21265. update?: XOR<XOR<WorkspaceUpdateToOneWithWhereWithoutShareLinkInput, WorkspaceUpdateWithoutShareLinkInput>, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  21266. }
  21267. export type NestedStringFilter<$PrismaModel = never> = {
  21268. equals?: string | StringFieldRefInput<$PrismaModel>
  21269. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  21270. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  21271. lt?: string | StringFieldRefInput<$PrismaModel>
  21272. lte?: string | StringFieldRefInput<$PrismaModel>
  21273. gt?: string | StringFieldRefInput<$PrismaModel>
  21274. gte?: string | StringFieldRefInput<$PrismaModel>
  21275. contains?: string | StringFieldRefInput<$PrismaModel>
  21276. startsWith?: string | StringFieldRefInput<$PrismaModel>
  21277. endsWith?: string | StringFieldRefInput<$PrismaModel>
  21278. not?: NestedStringFilter<$PrismaModel> | string
  21279. }
  21280. export type NestedStringNullableFilter<$PrismaModel = never> = {
  21281. equals?: string | StringFieldRefInput<$PrismaModel> | null
  21282. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  21283. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  21284. lt?: string | StringFieldRefInput<$PrismaModel>
  21285. lte?: string | StringFieldRefInput<$PrismaModel>
  21286. gt?: string | StringFieldRefInput<$PrismaModel>
  21287. gte?: string | StringFieldRefInput<$PrismaModel>
  21288. contains?: string | StringFieldRefInput<$PrismaModel>
  21289. startsWith?: string | StringFieldRefInput<$PrismaModel>
  21290. endsWith?: string | StringFieldRefInput<$PrismaModel>
  21291. not?: NestedStringNullableFilter<$PrismaModel> | string | null
  21292. }
  21293. export type NestedIntNullableFilter<$PrismaModel = never> = {
  21294. equals?: number | IntFieldRefInput<$PrismaModel> | null
  21295. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  21296. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  21297. lt?: number | IntFieldRefInput<$PrismaModel>
  21298. lte?: number | IntFieldRefInput<$PrismaModel>
  21299. gt?: number | IntFieldRefInput<$PrismaModel>
  21300. gte?: number | IntFieldRefInput<$PrismaModel>
  21301. not?: NestedIntNullableFilter<$PrismaModel> | number | null
  21302. }
  21303. export type NestedEnumWorkspaceTierFilter<$PrismaModel = never> = {
  21304. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  21305. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  21306. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  21307. not?: NestedEnumWorkspaceTierFilter<$PrismaModel> | $Enums.WorkspaceTier
  21308. }
  21309. export type NestedIntFilter<$PrismaModel = never> = {
  21310. equals?: number | IntFieldRefInput<$PrismaModel>
  21311. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  21312. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  21313. lt?: number | IntFieldRefInput<$PrismaModel>
  21314. lte?: number | IntFieldRefInput<$PrismaModel>
  21315. gt?: number | IntFieldRefInput<$PrismaModel>
  21316. gte?: number | IntFieldRefInput<$PrismaModel>
  21317. not?: NestedIntFilter<$PrismaModel> | number
  21318. }
  21319. export type NestedDateTimeFilter<$PrismaModel = never> = {
  21320. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21321. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  21322. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  21323. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21324. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21325. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21326. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21327. not?: NestedDateTimeFilter<$PrismaModel> | Date | string
  21328. }
  21329. export type NestedBoolFilter<$PrismaModel = never> = {
  21330. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  21331. not?: NestedBoolFilter<$PrismaModel> | boolean
  21332. }
  21333. export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
  21334. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  21335. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  21336. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  21337. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21338. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21339. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21340. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21341. not?: NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null
  21342. }
  21343. export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
  21344. equals?: string | StringFieldRefInput<$PrismaModel>
  21345. in?: string[] | ListStringFieldRefInput<$PrismaModel>
  21346. notIn?: string[] | ListStringFieldRefInput<$PrismaModel>
  21347. lt?: string | StringFieldRefInput<$PrismaModel>
  21348. lte?: string | StringFieldRefInput<$PrismaModel>
  21349. gt?: string | StringFieldRefInput<$PrismaModel>
  21350. gte?: string | StringFieldRefInput<$PrismaModel>
  21351. contains?: string | StringFieldRefInput<$PrismaModel>
  21352. startsWith?: string | StringFieldRefInput<$PrismaModel>
  21353. endsWith?: string | StringFieldRefInput<$PrismaModel>
  21354. not?: NestedStringWithAggregatesFilter<$PrismaModel> | string
  21355. _count?: NestedIntFilter<$PrismaModel>
  21356. _min?: NestedStringFilter<$PrismaModel>
  21357. _max?: NestedStringFilter<$PrismaModel>
  21358. }
  21359. export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
  21360. equals?: string | StringFieldRefInput<$PrismaModel> | null
  21361. in?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  21362. notIn?: string[] | ListStringFieldRefInput<$PrismaModel> | null
  21363. lt?: string | StringFieldRefInput<$PrismaModel>
  21364. lte?: string | StringFieldRefInput<$PrismaModel>
  21365. gt?: string | StringFieldRefInput<$PrismaModel>
  21366. gte?: string | StringFieldRefInput<$PrismaModel>
  21367. contains?: string | StringFieldRefInput<$PrismaModel>
  21368. startsWith?: string | StringFieldRefInput<$PrismaModel>
  21369. endsWith?: string | StringFieldRefInput<$PrismaModel>
  21370. not?: NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null
  21371. _count?: NestedIntNullableFilter<$PrismaModel>
  21372. _min?: NestedStringNullableFilter<$PrismaModel>
  21373. _max?: NestedStringNullableFilter<$PrismaModel>
  21374. }
  21375. export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
  21376. equals?: number | IntFieldRefInput<$PrismaModel> | null
  21377. in?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  21378. notIn?: number[] | ListIntFieldRefInput<$PrismaModel> | null
  21379. lt?: number | IntFieldRefInput<$PrismaModel>
  21380. lte?: number | IntFieldRefInput<$PrismaModel>
  21381. gt?: number | IntFieldRefInput<$PrismaModel>
  21382. gte?: number | IntFieldRefInput<$PrismaModel>
  21383. not?: NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null
  21384. _count?: NestedIntNullableFilter<$PrismaModel>
  21385. _avg?: NestedFloatNullableFilter<$PrismaModel>
  21386. _sum?: NestedIntNullableFilter<$PrismaModel>
  21387. _min?: NestedIntNullableFilter<$PrismaModel>
  21388. _max?: NestedIntNullableFilter<$PrismaModel>
  21389. }
  21390. export type NestedFloatNullableFilter<$PrismaModel = never> = {
  21391. equals?: number | FloatFieldRefInput<$PrismaModel> | null
  21392. in?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  21393. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel> | null
  21394. lt?: number | FloatFieldRefInput<$PrismaModel>
  21395. lte?: number | FloatFieldRefInput<$PrismaModel>
  21396. gt?: number | FloatFieldRefInput<$PrismaModel>
  21397. gte?: number | FloatFieldRefInput<$PrismaModel>
  21398. not?: NestedFloatNullableFilter<$PrismaModel> | number | null
  21399. }
  21400. export type NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel = never> = {
  21401. equals?: $Enums.WorkspaceTier | EnumWorkspaceTierFieldRefInput<$PrismaModel>
  21402. in?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  21403. notIn?: $Enums.WorkspaceTier[] | ListEnumWorkspaceTierFieldRefInput<$PrismaModel>
  21404. not?: NestedEnumWorkspaceTierWithAggregatesFilter<$PrismaModel> | $Enums.WorkspaceTier
  21405. _count?: NestedIntFilter<$PrismaModel>
  21406. _min?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  21407. _max?: NestedEnumWorkspaceTierFilter<$PrismaModel>
  21408. }
  21409. export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
  21410. equals?: number | IntFieldRefInput<$PrismaModel>
  21411. in?: number[] | ListIntFieldRefInput<$PrismaModel>
  21412. notIn?: number[] | ListIntFieldRefInput<$PrismaModel>
  21413. lt?: number | IntFieldRefInput<$PrismaModel>
  21414. lte?: number | IntFieldRefInput<$PrismaModel>
  21415. gt?: number | IntFieldRefInput<$PrismaModel>
  21416. gte?: number | IntFieldRefInput<$PrismaModel>
  21417. not?: NestedIntWithAggregatesFilter<$PrismaModel> | number
  21418. _count?: NestedIntFilter<$PrismaModel>
  21419. _avg?: NestedFloatFilter<$PrismaModel>
  21420. _sum?: NestedIntFilter<$PrismaModel>
  21421. _min?: NestedIntFilter<$PrismaModel>
  21422. _max?: NestedIntFilter<$PrismaModel>
  21423. }
  21424. export type NestedFloatFilter<$PrismaModel = never> = {
  21425. equals?: number | FloatFieldRefInput<$PrismaModel>
  21426. in?: number[] | ListFloatFieldRefInput<$PrismaModel>
  21427. notIn?: number[] | ListFloatFieldRefInput<$PrismaModel>
  21428. lt?: number | FloatFieldRefInput<$PrismaModel>
  21429. lte?: number | FloatFieldRefInput<$PrismaModel>
  21430. gt?: number | FloatFieldRefInput<$PrismaModel>
  21431. gte?: number | FloatFieldRefInput<$PrismaModel>
  21432. not?: NestedFloatFilter<$PrismaModel> | number
  21433. }
  21434. export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
  21435. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21436. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  21437. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel>
  21438. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21439. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21440. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21441. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21442. not?: NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string
  21443. _count?: NestedIntFilter<$PrismaModel>
  21444. _min?: NestedDateTimeFilter<$PrismaModel>
  21445. _max?: NestedDateTimeFilter<$PrismaModel>
  21446. }
  21447. export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
  21448. equals?: boolean | BooleanFieldRefInput<$PrismaModel>
  21449. not?: NestedBoolWithAggregatesFilter<$PrismaModel> | boolean
  21450. _count?: NestedIntFilter<$PrismaModel>
  21451. _min?: NestedBoolFilter<$PrismaModel>
  21452. _max?: NestedBoolFilter<$PrismaModel>
  21453. }
  21454. export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
  21455. equals?: Date | string | DateTimeFieldRefInput<$PrismaModel> | null
  21456. in?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  21457. notIn?: Date[] | string[] | ListDateTimeFieldRefInput<$PrismaModel> | null
  21458. lt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21459. lte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21460. gt?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21461. gte?: Date | string | DateTimeFieldRefInput<$PrismaModel>
  21462. not?: NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null
  21463. _count?: NestedIntNullableFilter<$PrismaModel>
  21464. _min?: NestedDateTimeNullableFilter<$PrismaModel>
  21465. _max?: NestedDateTimeNullableFilter<$PrismaModel>
  21466. }
  21467. export type NestedEnumContributorStatusFilter<$PrismaModel = never> = {
  21468. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  21469. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  21470. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  21471. not?: NestedEnumContributorStatusFilter<$PrismaModel> | $Enums.ContributorStatus
  21472. }
  21473. export type NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel = never> = {
  21474. equals?: $Enums.ContributorStatus | EnumContributorStatusFieldRefInput<$PrismaModel>
  21475. in?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  21476. notIn?: $Enums.ContributorStatus[] | ListEnumContributorStatusFieldRefInput<$PrismaModel>
  21477. not?: NestedEnumContributorStatusWithAggregatesFilter<$PrismaModel> | $Enums.ContributorStatus
  21478. _count?: NestedIntFilter<$PrismaModel>
  21479. _min?: NestedEnumContributorStatusFilter<$PrismaModel>
  21480. _max?: NestedEnumContributorStatusFilter<$PrismaModel>
  21481. }
  21482. export type NestedEnumImpactLevelFilter<$PrismaModel = never> = {
  21483. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  21484. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  21485. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  21486. not?: NestedEnumImpactLevelFilter<$PrismaModel> | $Enums.ImpactLevel
  21487. }
  21488. export type NestedEnumFrequencyFilter<$PrismaModel = never> = {
  21489. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  21490. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  21491. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  21492. not?: NestedEnumFrequencyFilter<$PrismaModel> | $Enums.Frequency
  21493. }
  21494. export type NestedEnumIdeaStatusFilter<$PrismaModel = never> = {
  21495. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  21496. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  21497. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  21498. not?: NestedEnumIdeaStatusFilter<$PrismaModel> | $Enums.IdeaStatus
  21499. }
  21500. export type NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel = never> = {
  21501. equals?: $Enums.ImpactLevel | EnumImpactLevelFieldRefInput<$PrismaModel>
  21502. in?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  21503. notIn?: $Enums.ImpactLevel[] | ListEnumImpactLevelFieldRefInput<$PrismaModel>
  21504. not?: NestedEnumImpactLevelWithAggregatesFilter<$PrismaModel> | $Enums.ImpactLevel
  21505. _count?: NestedIntFilter<$PrismaModel>
  21506. _min?: NestedEnumImpactLevelFilter<$PrismaModel>
  21507. _max?: NestedEnumImpactLevelFilter<$PrismaModel>
  21508. }
  21509. export type NestedEnumFrequencyWithAggregatesFilter<$PrismaModel = never> = {
  21510. equals?: $Enums.Frequency | EnumFrequencyFieldRefInput<$PrismaModel>
  21511. in?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  21512. notIn?: $Enums.Frequency[] | ListEnumFrequencyFieldRefInput<$PrismaModel>
  21513. not?: NestedEnumFrequencyWithAggregatesFilter<$PrismaModel> | $Enums.Frequency
  21514. _count?: NestedIntFilter<$PrismaModel>
  21515. _min?: NestedEnumFrequencyFilter<$PrismaModel>
  21516. _max?: NestedEnumFrequencyFilter<$PrismaModel>
  21517. }
  21518. export type NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel = never> = {
  21519. equals?: $Enums.IdeaStatus | EnumIdeaStatusFieldRefInput<$PrismaModel>
  21520. in?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  21521. notIn?: $Enums.IdeaStatus[] | ListEnumIdeaStatusFieldRefInput<$PrismaModel>
  21522. not?: NestedEnumIdeaStatusWithAggregatesFilter<$PrismaModel> | $Enums.IdeaStatus
  21523. _count?: NestedIntFilter<$PrismaModel>
  21524. _min?: NestedEnumIdeaStatusFilter<$PrismaModel>
  21525. _max?: NestedEnumIdeaStatusFilter<$PrismaModel>
  21526. }
  21527. export type NestedEnumFeedbackTypeFilter<$PrismaModel = never> = {
  21528. equals?: $Enums.FeedbackType | EnumFeedbackTypeFieldRefInput<$PrismaModel>
  21529. in?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  21530. notIn?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  21531. not?: NestedEnumFeedbackTypeFilter<$PrismaModel> | $Enums.FeedbackType
  21532. }
  21533. export type NestedEnumFeedbackTypeWithAggregatesFilter<$PrismaModel = never> = {
  21534. equals?: $Enums.FeedbackType | EnumFeedbackTypeFieldRefInput<$PrismaModel>
  21535. in?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  21536. notIn?: $Enums.FeedbackType[] | ListEnumFeedbackTypeFieldRefInput<$PrismaModel>
  21537. not?: NestedEnumFeedbackTypeWithAggregatesFilter<$PrismaModel> | $Enums.FeedbackType
  21538. _count?: NestedIntFilter<$PrismaModel>
  21539. _min?: NestedEnumFeedbackTypeFilter<$PrismaModel>
  21540. _max?: NestedEnumFeedbackTypeFilter<$PrismaModel>
  21541. }
  21542. export type ShareLinkCreateWithoutWorkspaceInput = {
  21543. id?: string
  21544. token?: string
  21545. expiresAt?: Date | string | null
  21546. createdAt?: Date | string
  21547. }
  21548. export type ShareLinkUncheckedCreateWithoutWorkspaceInput = {
  21549. id?: string
  21550. token?: string
  21551. expiresAt?: Date | string | null
  21552. createdAt?: Date | string
  21553. }
  21554. export type ShareLinkCreateOrConnectWithoutWorkspaceInput = {
  21555. where: ShareLinkWhereUniqueInput
  21556. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  21557. }
  21558. export type AppFeedbackCreateWithoutWorkspaceInput = {
  21559. id?: string
  21560. type: $Enums.FeedbackType
  21561. message: string
  21562. createdAt?: Date | string
  21563. user: UserCreateNestedOneWithoutFeedbacksInput
  21564. }
  21565. export type AppFeedbackUncheckedCreateWithoutWorkspaceInput = {
  21566. id?: string
  21567. userId: string
  21568. type: $Enums.FeedbackType
  21569. message: string
  21570. createdAt?: Date | string
  21571. }
  21572. export type AppFeedbackCreateOrConnectWithoutWorkspaceInput = {
  21573. where: AppFeedbackWhereUniqueInput
  21574. create: XOR<AppFeedbackCreateWithoutWorkspaceInput, AppFeedbackUncheckedCreateWithoutWorkspaceInput>
  21575. }
  21576. export type AppFeedbackCreateManyWorkspaceInputEnvelope = {
  21577. data: AppFeedbackCreateManyWorkspaceInput | AppFeedbackCreateManyWorkspaceInput[]
  21578. skipDuplicates?: boolean
  21579. }
  21580. export type UserCreateWithoutWorkspaceInput = {
  21581. id?: string
  21582. name?: string | null
  21583. email?: string | null
  21584. emailVerified?: Date | string | null
  21585. password?: string | null
  21586. legalTermsAcceptedAt?: Date | string | null
  21587. image?: string | null
  21588. accounts?: AccountCreateNestedManyWithoutUserInput
  21589. sessions?: SessionCreateNestedManyWithoutUserInput
  21590. posts?: PostCreateNestedManyWithoutCreatedByInput
  21591. feedbacks?: AppFeedbackCreateNestedManyWithoutUserInput
  21592. }
  21593. export type UserUncheckedCreateWithoutWorkspaceInput = {
  21594. id?: string
  21595. name?: string | null
  21596. email?: string | null
  21597. emailVerified?: Date | string | null
  21598. password?: string | null
  21599. legalTermsAcceptedAt?: Date | string | null
  21600. image?: string | null
  21601. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  21602. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  21603. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  21604. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutUserInput
  21605. }
  21606. export type UserCreateOrConnectWithoutWorkspaceInput = {
  21607. where: UserWhereUniqueInput
  21608. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  21609. }
  21610. export type ContributorCreateWithoutWorkspaceInput = {
  21611. id?: string
  21612. email: string
  21613. service?: string | null
  21614. status?: $Enums.ContributorStatus
  21615. invitedAt?: Date | string
  21616. lastRemindedAt?: Date | string | null
  21617. createdAt?: Date | string
  21618. ideas?: IdeaCreateNestedManyWithoutContributorInput
  21619. }
  21620. export type ContributorUncheckedCreateWithoutWorkspaceInput = {
  21621. id?: string
  21622. email: string
  21623. service?: string | null
  21624. status?: $Enums.ContributorStatus
  21625. invitedAt?: Date | string
  21626. lastRemindedAt?: Date | string | null
  21627. createdAt?: Date | string
  21628. ideas?: IdeaUncheckedCreateNestedManyWithoutContributorInput
  21629. }
  21630. export type ContributorCreateOrConnectWithoutWorkspaceInput = {
  21631. where: ContributorWhereUniqueInput
  21632. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  21633. }
  21634. export type ContributorCreateManyWorkspaceInputEnvelope = {
  21635. data: ContributorCreateManyWorkspaceInput | ContributorCreateManyWorkspaceInput[]
  21636. skipDuplicates?: boolean
  21637. }
  21638. export type IdeaCreateWithoutWorkspaceInput = {
  21639. id?: string
  21640. contributorEmail: string
  21641. department: string
  21642. problemDescription: string
  21643. estimatedImpact: $Enums.ImpactLevel
  21644. frequency: $Enums.Frequency
  21645. optionalWhoAffected?: string | null
  21646. optionalAlreadyTried?: string | null
  21647. optionalSuccessLooksLike?: string | null
  21648. status?: $Enums.IdeaStatus
  21649. llmTitle?: string | null
  21650. llmDomain?: string | null
  21651. llmAiType?: string | null
  21652. llmExplanation?: string | null
  21653. llmScoreImpact?: number | null
  21654. llmScoreFeasibility?: number | null
  21655. llmScoreUrgency?: number | null
  21656. llmEnrichedAt?: Date | string | null
  21657. llmEnrichFailed?: boolean
  21658. manualScoreImpact?: number | null
  21659. manualScoreFeasibility?: number | null
  21660. manualScoreUrgency?: number | null
  21661. priorityOrder?: number | null
  21662. emailMessageId?: string | null
  21663. createdAt?: Date | string
  21664. updatedAt?: Date | string
  21665. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  21666. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  21667. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  21668. }
  21669. export type IdeaUncheckedCreateWithoutWorkspaceInput = {
  21670. id?: string
  21671. contributorEmail: string
  21672. contributorId?: string | null
  21673. department: string
  21674. problemDescription: string
  21675. estimatedImpact: $Enums.ImpactLevel
  21676. frequency: $Enums.Frequency
  21677. optionalWhoAffected?: string | null
  21678. optionalAlreadyTried?: string | null
  21679. optionalSuccessLooksLike?: string | null
  21680. status?: $Enums.IdeaStatus
  21681. llmTitle?: string | null
  21682. llmDomain?: string | null
  21683. llmAiType?: string | null
  21684. llmExplanation?: string | null
  21685. llmScoreImpact?: number | null
  21686. llmScoreFeasibility?: number | null
  21687. llmScoreUrgency?: number | null
  21688. llmEnrichedAt?: Date | string | null
  21689. llmEnrichFailed?: boolean
  21690. manualScoreImpact?: number | null
  21691. manualScoreFeasibility?: number | null
  21692. manualScoreUrgency?: number | null
  21693. priorityOrder?: number | null
  21694. emailMessageId?: string | null
  21695. createdAt?: Date | string
  21696. updatedAt?: Date | string
  21697. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  21698. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  21699. }
  21700. export type IdeaCreateOrConnectWithoutWorkspaceInput = {
  21701. where: IdeaWhereUniqueInput
  21702. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  21703. }
  21704. export type IdeaCreateManyWorkspaceInputEnvelope = {
  21705. data: IdeaCreateManyWorkspaceInput | IdeaCreateManyWorkspaceInput[]
  21706. skipDuplicates?: boolean
  21707. }
  21708. export type ManualRelanceLogCreateWithoutWorkspaceInput = {
  21709. id?: string
  21710. subject: string
  21711. recipientCount: number
  21712. sentCount: number
  21713. failedCount?: number
  21714. sentAt?: Date | string
  21715. }
  21716. export type ManualRelanceLogUncheckedCreateWithoutWorkspaceInput = {
  21717. id?: string
  21718. subject: string
  21719. recipientCount: number
  21720. sentCount: number
  21721. failedCount?: number
  21722. sentAt?: Date | string
  21723. }
  21724. export type ManualRelanceLogCreateOrConnectWithoutWorkspaceInput = {
  21725. where: ManualRelanceLogWhereUniqueInput
  21726. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  21727. }
  21728. export type ManualRelanceLogCreateManyWorkspaceInputEnvelope = {
  21729. data: ManualRelanceLogCreateManyWorkspaceInput | ManualRelanceLogCreateManyWorkspaceInput[]
  21730. skipDuplicates?: boolean
  21731. }
  21732. export type ShareLinkUpsertWithoutWorkspaceInput = {
  21733. update: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  21734. create: XOR<ShareLinkCreateWithoutWorkspaceInput, ShareLinkUncheckedCreateWithoutWorkspaceInput>
  21735. where?: ShareLinkWhereInput
  21736. }
  21737. export type ShareLinkUpdateToOneWithWhereWithoutWorkspaceInput = {
  21738. where?: ShareLinkWhereInput
  21739. data: XOR<ShareLinkUpdateWithoutWorkspaceInput, ShareLinkUncheckedUpdateWithoutWorkspaceInput>
  21740. }
  21741. export type ShareLinkUpdateWithoutWorkspaceInput = {
  21742. id?: StringFieldUpdateOperationsInput | string
  21743. token?: StringFieldUpdateOperationsInput | string
  21744. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21745. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21746. }
  21747. export type ShareLinkUncheckedUpdateWithoutWorkspaceInput = {
  21748. id?: StringFieldUpdateOperationsInput | string
  21749. token?: StringFieldUpdateOperationsInput | string
  21750. expiresAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21751. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21752. }
  21753. export type AppFeedbackUpsertWithWhereUniqueWithoutWorkspaceInput = {
  21754. where: AppFeedbackWhereUniqueInput
  21755. update: XOR<AppFeedbackUpdateWithoutWorkspaceInput, AppFeedbackUncheckedUpdateWithoutWorkspaceInput>
  21756. create: XOR<AppFeedbackCreateWithoutWorkspaceInput, AppFeedbackUncheckedCreateWithoutWorkspaceInput>
  21757. }
  21758. export type AppFeedbackUpdateWithWhereUniqueWithoutWorkspaceInput = {
  21759. where: AppFeedbackWhereUniqueInput
  21760. data: XOR<AppFeedbackUpdateWithoutWorkspaceInput, AppFeedbackUncheckedUpdateWithoutWorkspaceInput>
  21761. }
  21762. export type AppFeedbackUpdateManyWithWhereWithoutWorkspaceInput = {
  21763. where: AppFeedbackScalarWhereInput
  21764. data: XOR<AppFeedbackUpdateManyMutationInput, AppFeedbackUncheckedUpdateManyWithoutWorkspaceInput>
  21765. }
  21766. export type AppFeedbackScalarWhereInput = {
  21767. AND?: AppFeedbackScalarWhereInput | AppFeedbackScalarWhereInput[]
  21768. OR?: AppFeedbackScalarWhereInput[]
  21769. NOT?: AppFeedbackScalarWhereInput | AppFeedbackScalarWhereInput[]
  21770. id?: StringFilter<"AppFeedback"> | string
  21771. userId?: StringFilter<"AppFeedback"> | string
  21772. workspaceId?: StringFilter<"AppFeedback"> | string
  21773. type?: EnumFeedbackTypeFilter<"AppFeedback"> | $Enums.FeedbackType
  21774. message?: StringFilter<"AppFeedback"> | string
  21775. createdAt?: DateTimeFilter<"AppFeedback"> | Date | string
  21776. }
  21777. export type UserUpsertWithoutWorkspaceInput = {
  21778. update: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  21779. create: XOR<UserCreateWithoutWorkspaceInput, UserUncheckedCreateWithoutWorkspaceInput>
  21780. where?: UserWhereInput
  21781. }
  21782. export type UserUpdateToOneWithWhereWithoutWorkspaceInput = {
  21783. where?: UserWhereInput
  21784. data: XOR<UserUpdateWithoutWorkspaceInput, UserUncheckedUpdateWithoutWorkspaceInput>
  21785. }
  21786. export type UserUpdateWithoutWorkspaceInput = {
  21787. id?: StringFieldUpdateOperationsInput | string
  21788. name?: NullableStringFieldUpdateOperationsInput | string | null
  21789. email?: NullableStringFieldUpdateOperationsInput | string | null
  21790. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21791. password?: NullableStringFieldUpdateOperationsInput | string | null
  21792. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21793. image?: NullableStringFieldUpdateOperationsInput | string | null
  21794. accounts?: AccountUpdateManyWithoutUserNestedInput
  21795. sessions?: SessionUpdateManyWithoutUserNestedInput
  21796. posts?: PostUpdateManyWithoutCreatedByNestedInput
  21797. feedbacks?: AppFeedbackUpdateManyWithoutUserNestedInput
  21798. }
  21799. export type UserUncheckedUpdateWithoutWorkspaceInput = {
  21800. id?: StringFieldUpdateOperationsInput | string
  21801. name?: NullableStringFieldUpdateOperationsInput | string | null
  21802. email?: NullableStringFieldUpdateOperationsInput | string | null
  21803. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21804. password?: NullableStringFieldUpdateOperationsInput | string | null
  21805. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21806. image?: NullableStringFieldUpdateOperationsInput | string | null
  21807. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  21808. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  21809. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  21810. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutUserNestedInput
  21811. }
  21812. export type ContributorUpsertWithWhereUniqueWithoutWorkspaceInput = {
  21813. where: ContributorWhereUniqueInput
  21814. update: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  21815. create: XOR<ContributorCreateWithoutWorkspaceInput, ContributorUncheckedCreateWithoutWorkspaceInput>
  21816. }
  21817. export type ContributorUpdateWithWhereUniqueWithoutWorkspaceInput = {
  21818. where: ContributorWhereUniqueInput
  21819. data: XOR<ContributorUpdateWithoutWorkspaceInput, ContributorUncheckedUpdateWithoutWorkspaceInput>
  21820. }
  21821. export type ContributorUpdateManyWithWhereWithoutWorkspaceInput = {
  21822. where: ContributorScalarWhereInput
  21823. data: XOR<ContributorUpdateManyMutationInput, ContributorUncheckedUpdateManyWithoutWorkspaceInput>
  21824. }
  21825. export type ContributorScalarWhereInput = {
  21826. AND?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  21827. OR?: ContributorScalarWhereInput[]
  21828. NOT?: ContributorScalarWhereInput | ContributorScalarWhereInput[]
  21829. id?: StringFilter<"Contributor"> | string
  21830. workspaceId?: StringFilter<"Contributor"> | string
  21831. email?: StringFilter<"Contributor"> | string
  21832. service?: StringNullableFilter<"Contributor"> | string | null
  21833. status?: EnumContributorStatusFilter<"Contributor"> | $Enums.ContributorStatus
  21834. invitedAt?: DateTimeFilter<"Contributor"> | Date | string
  21835. lastRemindedAt?: DateTimeNullableFilter<"Contributor"> | Date | string | null
  21836. createdAt?: DateTimeFilter<"Contributor"> | Date | string
  21837. }
  21838. export type IdeaUpsertWithWhereUniqueWithoutWorkspaceInput = {
  21839. where: IdeaWhereUniqueInput
  21840. update: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  21841. create: XOR<IdeaCreateWithoutWorkspaceInput, IdeaUncheckedCreateWithoutWorkspaceInput>
  21842. }
  21843. export type IdeaUpdateWithWhereUniqueWithoutWorkspaceInput = {
  21844. where: IdeaWhereUniqueInput
  21845. data: XOR<IdeaUpdateWithoutWorkspaceInput, IdeaUncheckedUpdateWithoutWorkspaceInput>
  21846. }
  21847. export type IdeaUpdateManyWithWhereWithoutWorkspaceInput = {
  21848. where: IdeaScalarWhereInput
  21849. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutWorkspaceInput>
  21850. }
  21851. export type IdeaScalarWhereInput = {
  21852. AND?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  21853. OR?: IdeaScalarWhereInput[]
  21854. NOT?: IdeaScalarWhereInput | IdeaScalarWhereInput[]
  21855. id?: StringFilter<"Idea"> | string
  21856. workspaceId?: StringFilter<"Idea"> | string
  21857. contributorEmail?: StringFilter<"Idea"> | string
  21858. contributorId?: StringNullableFilter<"Idea"> | string | null
  21859. department?: StringFilter<"Idea"> | string
  21860. problemDescription?: StringFilter<"Idea"> | string
  21861. estimatedImpact?: EnumImpactLevelFilter<"Idea"> | $Enums.ImpactLevel
  21862. frequency?: EnumFrequencyFilter<"Idea"> | $Enums.Frequency
  21863. optionalWhoAffected?: StringNullableFilter<"Idea"> | string | null
  21864. optionalAlreadyTried?: StringNullableFilter<"Idea"> | string | null
  21865. optionalSuccessLooksLike?: StringNullableFilter<"Idea"> | string | null
  21866. status?: EnumIdeaStatusFilter<"Idea"> | $Enums.IdeaStatus
  21867. llmTitle?: StringNullableFilter<"Idea"> | string | null
  21868. llmDomain?: StringNullableFilter<"Idea"> | string | null
  21869. llmAiType?: StringNullableFilter<"Idea"> | string | null
  21870. llmExplanation?: StringNullableFilter<"Idea"> | string | null
  21871. llmScoreImpact?: IntNullableFilter<"Idea"> | number | null
  21872. llmScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  21873. llmScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  21874. llmEnrichedAt?: DateTimeNullableFilter<"Idea"> | Date | string | null
  21875. llmEnrichFailed?: BoolFilter<"Idea"> | boolean
  21876. manualScoreImpact?: IntNullableFilter<"Idea"> | number | null
  21877. manualScoreFeasibility?: IntNullableFilter<"Idea"> | number | null
  21878. manualScoreUrgency?: IntNullableFilter<"Idea"> | number | null
  21879. priorityOrder?: IntNullableFilter<"Idea"> | number | null
  21880. emailMessageId?: StringNullableFilter<"Idea"> | string | null
  21881. createdAt?: DateTimeFilter<"Idea"> | Date | string
  21882. updatedAt?: DateTimeFilter<"Idea"> | Date | string
  21883. }
  21884. export type ManualRelanceLogUpsertWithWhereUniqueWithoutWorkspaceInput = {
  21885. where: ManualRelanceLogWhereUniqueInput
  21886. update: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  21887. create: XOR<ManualRelanceLogCreateWithoutWorkspaceInput, ManualRelanceLogUncheckedCreateWithoutWorkspaceInput>
  21888. }
  21889. export type ManualRelanceLogUpdateWithWhereUniqueWithoutWorkspaceInput = {
  21890. where: ManualRelanceLogWhereUniqueInput
  21891. data: XOR<ManualRelanceLogUpdateWithoutWorkspaceInput, ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput>
  21892. }
  21893. export type ManualRelanceLogUpdateManyWithWhereWithoutWorkspaceInput = {
  21894. where: ManualRelanceLogScalarWhereInput
  21895. data: XOR<ManualRelanceLogUpdateManyMutationInput, ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput>
  21896. }
  21897. export type ManualRelanceLogScalarWhereInput = {
  21898. AND?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  21899. OR?: ManualRelanceLogScalarWhereInput[]
  21900. NOT?: ManualRelanceLogScalarWhereInput | ManualRelanceLogScalarWhereInput[]
  21901. id?: StringFilter<"ManualRelanceLog"> | string
  21902. workspaceId?: StringFilter<"ManualRelanceLog"> | string
  21903. subject?: StringFilter<"ManualRelanceLog"> | string
  21904. recipientCount?: IntFilter<"ManualRelanceLog"> | number
  21905. sentCount?: IntFilter<"ManualRelanceLog"> | number
  21906. failedCount?: IntFilter<"ManualRelanceLog"> | number
  21907. sentAt?: DateTimeFilter<"ManualRelanceLog"> | Date | string
  21908. }
  21909. export type WorkspaceCreateWithoutManualRelanceLogsInput = {
  21910. id?: string
  21911. name: string
  21912. slug: string
  21913. sector?: string | null
  21914. companySize?: number | null
  21915. contactEmail?: string | null
  21916. tier?: $Enums.WorkspaceTier
  21917. llmCallsThisMonth?: number
  21918. llmCallsResetAt?: Date | string
  21919. autoRelanceEnabled?: boolean
  21920. exportsThisMonth?: number
  21921. exportsResetAt?: Date | string
  21922. lastVisitedAt?: Date | string | null
  21923. onboardingDismissed?: boolean
  21924. proModeAvailable?: boolean
  21925. createdAt?: Date | string
  21926. updatedAt?: Date | string
  21927. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  21928. feedbacks?: AppFeedbackCreateNestedManyWithoutWorkspaceInput
  21929. owner: UserCreateNestedOneWithoutWorkspaceInput
  21930. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  21931. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  21932. }
  21933. export type WorkspaceUncheckedCreateWithoutManualRelanceLogsInput = {
  21934. id?: string
  21935. name: string
  21936. slug: string
  21937. sector?: string | null
  21938. companySize?: number | null
  21939. contactEmail?: string | null
  21940. tier?: $Enums.WorkspaceTier
  21941. llmCallsThisMonth?: number
  21942. llmCallsResetAt?: Date | string
  21943. autoRelanceEnabled?: boolean
  21944. exportsThisMonth?: number
  21945. exportsResetAt?: Date | string
  21946. lastVisitedAt?: Date | string | null
  21947. onboardingDismissed?: boolean
  21948. proModeAvailable?: boolean
  21949. createdAt?: Date | string
  21950. updatedAt?: Date | string
  21951. ownerId: string
  21952. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  21953. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutWorkspaceInput
  21954. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  21955. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  21956. }
  21957. export type WorkspaceCreateOrConnectWithoutManualRelanceLogsInput = {
  21958. where: WorkspaceWhereUniqueInput
  21959. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  21960. }
  21961. export type WorkspaceUpsertWithoutManualRelanceLogsInput = {
  21962. update: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  21963. create: XOR<WorkspaceCreateWithoutManualRelanceLogsInput, WorkspaceUncheckedCreateWithoutManualRelanceLogsInput>
  21964. where?: WorkspaceWhereInput
  21965. }
  21966. export type WorkspaceUpdateToOneWithWhereWithoutManualRelanceLogsInput = {
  21967. where?: WorkspaceWhereInput
  21968. data: XOR<WorkspaceUpdateWithoutManualRelanceLogsInput, WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput>
  21969. }
  21970. export type WorkspaceUpdateWithoutManualRelanceLogsInput = {
  21971. id?: StringFieldUpdateOperationsInput | string
  21972. name?: StringFieldUpdateOperationsInput | string
  21973. slug?: StringFieldUpdateOperationsInput | string
  21974. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21975. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  21976. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  21977. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  21978. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  21979. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21980. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  21981. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  21982. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21983. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  21984. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  21985. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  21986. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21987. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  21988. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  21989. feedbacks?: AppFeedbackUpdateManyWithoutWorkspaceNestedInput
  21990. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  21991. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  21992. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  21993. }
  21994. export type WorkspaceUncheckedUpdateWithoutManualRelanceLogsInput = {
  21995. id?: StringFieldUpdateOperationsInput | string
  21996. name?: StringFieldUpdateOperationsInput | string
  21997. slug?: StringFieldUpdateOperationsInput | string
  21998. sector?: NullableStringFieldUpdateOperationsInput | string | null
  21999. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  22000. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  22001. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  22002. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  22003. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22004. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  22005. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  22006. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22007. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22008. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  22009. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  22010. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22011. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22012. ownerId?: StringFieldUpdateOperationsInput | string
  22013. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  22014. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutWorkspaceNestedInput
  22015. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  22016. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  22017. }
  22018. export type WorkspaceCreateWithoutContributorsInput = {
  22019. id?: string
  22020. name: string
  22021. slug: string
  22022. sector?: string | null
  22023. companySize?: number | null
  22024. contactEmail?: string | null
  22025. tier?: $Enums.WorkspaceTier
  22026. llmCallsThisMonth?: number
  22027. llmCallsResetAt?: Date | string
  22028. autoRelanceEnabled?: boolean
  22029. exportsThisMonth?: number
  22030. exportsResetAt?: Date | string
  22031. lastVisitedAt?: Date | string | null
  22032. onboardingDismissed?: boolean
  22033. proModeAvailable?: boolean
  22034. createdAt?: Date | string
  22035. updatedAt?: Date | string
  22036. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  22037. feedbacks?: AppFeedbackCreateNestedManyWithoutWorkspaceInput
  22038. owner: UserCreateNestedOneWithoutWorkspaceInput
  22039. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  22040. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  22041. }
  22042. export type WorkspaceUncheckedCreateWithoutContributorsInput = {
  22043. id?: string
  22044. name: string
  22045. slug: string
  22046. sector?: string | null
  22047. companySize?: number | null
  22048. contactEmail?: string | null
  22049. tier?: $Enums.WorkspaceTier
  22050. llmCallsThisMonth?: number
  22051. llmCallsResetAt?: Date | string
  22052. autoRelanceEnabled?: boolean
  22053. exportsThisMonth?: number
  22054. exportsResetAt?: Date | string
  22055. lastVisitedAt?: Date | string | null
  22056. onboardingDismissed?: boolean
  22057. proModeAvailable?: boolean
  22058. createdAt?: Date | string
  22059. updatedAt?: Date | string
  22060. ownerId: string
  22061. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  22062. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutWorkspaceInput
  22063. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  22064. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  22065. }
  22066. export type WorkspaceCreateOrConnectWithoutContributorsInput = {
  22067. where: WorkspaceWhereUniqueInput
  22068. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  22069. }
  22070. export type IdeaCreateWithoutContributorInput = {
  22071. id?: string
  22072. contributorEmail: string
  22073. department: string
  22074. problemDescription: string
  22075. estimatedImpact: $Enums.ImpactLevel
  22076. frequency: $Enums.Frequency
  22077. optionalWhoAffected?: string | null
  22078. optionalAlreadyTried?: string | null
  22079. optionalSuccessLooksLike?: string | null
  22080. status?: $Enums.IdeaStatus
  22081. llmTitle?: string | null
  22082. llmDomain?: string | null
  22083. llmAiType?: string | null
  22084. llmExplanation?: string | null
  22085. llmScoreImpact?: number | null
  22086. llmScoreFeasibility?: number | null
  22087. llmScoreUrgency?: number | null
  22088. llmEnrichedAt?: Date | string | null
  22089. llmEnrichFailed?: boolean
  22090. manualScoreImpact?: number | null
  22091. manualScoreFeasibility?: number | null
  22092. manualScoreUrgency?: number | null
  22093. priorityOrder?: number | null
  22094. emailMessageId?: string | null
  22095. createdAt?: Date | string
  22096. updatedAt?: Date | string
  22097. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  22098. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  22099. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  22100. }
  22101. export type IdeaUncheckedCreateWithoutContributorInput = {
  22102. id?: string
  22103. workspaceId: string
  22104. contributorEmail: string
  22105. department: string
  22106. problemDescription: string
  22107. estimatedImpact: $Enums.ImpactLevel
  22108. frequency: $Enums.Frequency
  22109. optionalWhoAffected?: string | null
  22110. optionalAlreadyTried?: string | null
  22111. optionalSuccessLooksLike?: string | null
  22112. status?: $Enums.IdeaStatus
  22113. llmTitle?: string | null
  22114. llmDomain?: string | null
  22115. llmAiType?: string | null
  22116. llmExplanation?: string | null
  22117. llmScoreImpact?: number | null
  22118. llmScoreFeasibility?: number | null
  22119. llmScoreUrgency?: number | null
  22120. llmEnrichedAt?: Date | string | null
  22121. llmEnrichFailed?: boolean
  22122. manualScoreImpact?: number | null
  22123. manualScoreFeasibility?: number | null
  22124. manualScoreUrgency?: number | null
  22125. priorityOrder?: number | null
  22126. emailMessageId?: string | null
  22127. createdAt?: Date | string
  22128. updatedAt?: Date | string
  22129. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  22130. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  22131. }
  22132. export type IdeaCreateOrConnectWithoutContributorInput = {
  22133. where: IdeaWhereUniqueInput
  22134. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  22135. }
  22136. export type IdeaCreateManyContributorInputEnvelope = {
  22137. data: IdeaCreateManyContributorInput | IdeaCreateManyContributorInput[]
  22138. skipDuplicates?: boolean
  22139. }
  22140. export type WorkspaceUpsertWithoutContributorsInput = {
  22141. update: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  22142. create: XOR<WorkspaceCreateWithoutContributorsInput, WorkspaceUncheckedCreateWithoutContributorsInput>
  22143. where?: WorkspaceWhereInput
  22144. }
  22145. export type WorkspaceUpdateToOneWithWhereWithoutContributorsInput = {
  22146. where?: WorkspaceWhereInput
  22147. data: XOR<WorkspaceUpdateWithoutContributorsInput, WorkspaceUncheckedUpdateWithoutContributorsInput>
  22148. }
  22149. export type WorkspaceUpdateWithoutContributorsInput = {
  22150. id?: StringFieldUpdateOperationsInput | string
  22151. name?: StringFieldUpdateOperationsInput | string
  22152. slug?: StringFieldUpdateOperationsInput | string
  22153. sector?: NullableStringFieldUpdateOperationsInput | string | null
  22154. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  22155. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  22156. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  22157. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  22158. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22159. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  22160. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  22161. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22162. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22163. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  22164. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  22165. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22166. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22167. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  22168. feedbacks?: AppFeedbackUpdateManyWithoutWorkspaceNestedInput
  22169. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  22170. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  22171. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  22172. }
  22173. export type WorkspaceUncheckedUpdateWithoutContributorsInput = {
  22174. id?: StringFieldUpdateOperationsInput | string
  22175. name?: StringFieldUpdateOperationsInput | string
  22176. slug?: StringFieldUpdateOperationsInput | string
  22177. sector?: NullableStringFieldUpdateOperationsInput | string | null
  22178. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  22179. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  22180. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  22181. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  22182. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22183. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  22184. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  22185. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22186. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22187. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  22188. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  22189. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22190. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22191. ownerId?: StringFieldUpdateOperationsInput | string
  22192. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  22193. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutWorkspaceNestedInput
  22194. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  22195. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  22196. }
  22197. export type IdeaUpsertWithWhereUniqueWithoutContributorInput = {
  22198. where: IdeaWhereUniqueInput
  22199. update: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  22200. create: XOR<IdeaCreateWithoutContributorInput, IdeaUncheckedCreateWithoutContributorInput>
  22201. }
  22202. export type IdeaUpdateWithWhereUniqueWithoutContributorInput = {
  22203. where: IdeaWhereUniqueInput
  22204. data: XOR<IdeaUpdateWithoutContributorInput, IdeaUncheckedUpdateWithoutContributorInput>
  22205. }
  22206. export type IdeaUpdateManyWithWhereWithoutContributorInput = {
  22207. where: IdeaScalarWhereInput
  22208. data: XOR<IdeaUpdateManyMutationInput, IdeaUncheckedUpdateManyWithoutContributorInput>
  22209. }
  22210. export type WorkspaceCreateWithoutIdeasInput = {
  22211. id?: string
  22212. name: string
  22213. slug: string
  22214. sector?: string | null
  22215. companySize?: number | null
  22216. contactEmail?: string | null
  22217. tier?: $Enums.WorkspaceTier
  22218. llmCallsThisMonth?: number
  22219. llmCallsResetAt?: Date | string
  22220. autoRelanceEnabled?: boolean
  22221. exportsThisMonth?: number
  22222. exportsResetAt?: Date | string
  22223. lastVisitedAt?: Date | string | null
  22224. onboardingDismissed?: boolean
  22225. proModeAvailable?: boolean
  22226. createdAt?: Date | string
  22227. updatedAt?: Date | string
  22228. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  22229. feedbacks?: AppFeedbackCreateNestedManyWithoutWorkspaceInput
  22230. owner: UserCreateNestedOneWithoutWorkspaceInput
  22231. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  22232. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  22233. }
  22234. export type WorkspaceUncheckedCreateWithoutIdeasInput = {
  22235. id?: string
  22236. name: string
  22237. slug: string
  22238. sector?: string | null
  22239. companySize?: number | null
  22240. contactEmail?: string | null
  22241. tier?: $Enums.WorkspaceTier
  22242. llmCallsThisMonth?: number
  22243. llmCallsResetAt?: Date | string
  22244. autoRelanceEnabled?: boolean
  22245. exportsThisMonth?: number
  22246. exportsResetAt?: Date | string
  22247. lastVisitedAt?: Date | string | null
  22248. onboardingDismissed?: boolean
  22249. proModeAvailable?: boolean
  22250. createdAt?: Date | string
  22251. updatedAt?: Date | string
  22252. ownerId: string
  22253. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  22254. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutWorkspaceInput
  22255. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  22256. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  22257. }
  22258. export type WorkspaceCreateOrConnectWithoutIdeasInput = {
  22259. where: WorkspaceWhereUniqueInput
  22260. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  22261. }
  22262. export type ContributorCreateWithoutIdeasInput = {
  22263. id?: string
  22264. email: string
  22265. service?: string | null
  22266. status?: $Enums.ContributorStatus
  22267. invitedAt?: Date | string
  22268. lastRemindedAt?: Date | string | null
  22269. createdAt?: Date | string
  22270. workspace: WorkspaceCreateNestedOneWithoutContributorsInput
  22271. }
  22272. export type ContributorUncheckedCreateWithoutIdeasInput = {
  22273. id?: string
  22274. workspaceId: string
  22275. email: string
  22276. service?: string | null
  22277. status?: $Enums.ContributorStatus
  22278. invitedAt?: Date | string
  22279. lastRemindedAt?: Date | string | null
  22280. createdAt?: Date | string
  22281. }
  22282. export type ContributorCreateOrConnectWithoutIdeasInput = {
  22283. where: ContributorWhereUniqueInput
  22284. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  22285. }
  22286. export type IdeaAttachmentCreateWithoutIdeaInput = {
  22287. id?: string
  22288. workspaceId: string
  22289. filename: string
  22290. contentType: string
  22291. size: number
  22292. url: string
  22293. blobPath: string
  22294. createdAt?: Date | string
  22295. }
  22296. export type IdeaAttachmentUncheckedCreateWithoutIdeaInput = {
  22297. id?: string
  22298. workspaceId: string
  22299. filename: string
  22300. contentType: string
  22301. size: number
  22302. url: string
  22303. blobPath: string
  22304. createdAt?: Date | string
  22305. }
  22306. export type IdeaAttachmentCreateOrConnectWithoutIdeaInput = {
  22307. where: IdeaAttachmentWhereUniqueInput
  22308. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  22309. }
  22310. export type IdeaAttachmentCreateManyIdeaInputEnvelope = {
  22311. data: IdeaAttachmentCreateManyIdeaInput | IdeaAttachmentCreateManyIdeaInput[]
  22312. skipDuplicates?: boolean
  22313. }
  22314. export type QualificationQuestionCreateWithoutIdeaInput = {
  22315. id?: string
  22316. workspaceId: string
  22317. questionText: string
  22318. responseToken?: string
  22319. askedAt?: Date | string
  22320. responseText?: string | null
  22321. answeredAt?: Date | string | null
  22322. }
  22323. export type QualificationQuestionUncheckedCreateWithoutIdeaInput = {
  22324. id?: string
  22325. workspaceId: string
  22326. questionText: string
  22327. responseToken?: string
  22328. askedAt?: Date | string
  22329. responseText?: string | null
  22330. answeredAt?: Date | string | null
  22331. }
  22332. export type QualificationQuestionCreateOrConnectWithoutIdeaInput = {
  22333. where: QualificationQuestionWhereUniqueInput
  22334. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  22335. }
  22336. export type QualificationQuestionCreateManyIdeaInputEnvelope = {
  22337. data: QualificationQuestionCreateManyIdeaInput | QualificationQuestionCreateManyIdeaInput[]
  22338. skipDuplicates?: boolean
  22339. }
  22340. export type WorkspaceUpsertWithoutIdeasInput = {
  22341. update: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  22342. create: XOR<WorkspaceCreateWithoutIdeasInput, WorkspaceUncheckedCreateWithoutIdeasInput>
  22343. where?: WorkspaceWhereInput
  22344. }
  22345. export type WorkspaceUpdateToOneWithWhereWithoutIdeasInput = {
  22346. where?: WorkspaceWhereInput
  22347. data: XOR<WorkspaceUpdateWithoutIdeasInput, WorkspaceUncheckedUpdateWithoutIdeasInput>
  22348. }
  22349. export type WorkspaceUpdateWithoutIdeasInput = {
  22350. id?: StringFieldUpdateOperationsInput | string
  22351. name?: StringFieldUpdateOperationsInput | string
  22352. slug?: StringFieldUpdateOperationsInput | string
  22353. sector?: NullableStringFieldUpdateOperationsInput | string | null
  22354. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  22355. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  22356. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  22357. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  22358. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22359. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  22360. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  22361. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22362. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22363. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  22364. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  22365. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22366. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22367. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  22368. feedbacks?: AppFeedbackUpdateManyWithoutWorkspaceNestedInput
  22369. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  22370. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  22371. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  22372. }
  22373. export type WorkspaceUncheckedUpdateWithoutIdeasInput = {
  22374. id?: StringFieldUpdateOperationsInput | string
  22375. name?: StringFieldUpdateOperationsInput | string
  22376. slug?: StringFieldUpdateOperationsInput | string
  22377. sector?: NullableStringFieldUpdateOperationsInput | string | null
  22378. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  22379. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  22380. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  22381. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  22382. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22383. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  22384. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  22385. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22386. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22387. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  22388. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  22389. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22390. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22391. ownerId?: StringFieldUpdateOperationsInput | string
  22392. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  22393. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutWorkspaceNestedInput
  22394. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  22395. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  22396. }
  22397. export type ContributorUpsertWithoutIdeasInput = {
  22398. update: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  22399. create: XOR<ContributorCreateWithoutIdeasInput, ContributorUncheckedCreateWithoutIdeasInput>
  22400. where?: ContributorWhereInput
  22401. }
  22402. export type ContributorUpdateToOneWithWhereWithoutIdeasInput = {
  22403. where?: ContributorWhereInput
  22404. data: XOR<ContributorUpdateWithoutIdeasInput, ContributorUncheckedUpdateWithoutIdeasInput>
  22405. }
  22406. export type ContributorUpdateWithoutIdeasInput = {
  22407. id?: StringFieldUpdateOperationsInput | string
  22408. email?: StringFieldUpdateOperationsInput | string
  22409. service?: NullableStringFieldUpdateOperationsInput | string | null
  22410. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  22411. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22412. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22413. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22414. workspace?: WorkspaceUpdateOneRequiredWithoutContributorsNestedInput
  22415. }
  22416. export type ContributorUncheckedUpdateWithoutIdeasInput = {
  22417. id?: StringFieldUpdateOperationsInput | string
  22418. workspaceId?: StringFieldUpdateOperationsInput | string
  22419. email?: StringFieldUpdateOperationsInput | string
  22420. service?: NullableStringFieldUpdateOperationsInput | string | null
  22421. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  22422. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22423. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22424. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22425. }
  22426. export type IdeaAttachmentUpsertWithWhereUniqueWithoutIdeaInput = {
  22427. where: IdeaAttachmentWhereUniqueInput
  22428. update: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  22429. create: XOR<IdeaAttachmentCreateWithoutIdeaInput, IdeaAttachmentUncheckedCreateWithoutIdeaInput>
  22430. }
  22431. export type IdeaAttachmentUpdateWithWhereUniqueWithoutIdeaInput = {
  22432. where: IdeaAttachmentWhereUniqueInput
  22433. data: XOR<IdeaAttachmentUpdateWithoutIdeaInput, IdeaAttachmentUncheckedUpdateWithoutIdeaInput>
  22434. }
  22435. export type IdeaAttachmentUpdateManyWithWhereWithoutIdeaInput = {
  22436. where: IdeaAttachmentScalarWhereInput
  22437. data: XOR<IdeaAttachmentUpdateManyMutationInput, IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput>
  22438. }
  22439. export type IdeaAttachmentScalarWhereInput = {
  22440. AND?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  22441. OR?: IdeaAttachmentScalarWhereInput[]
  22442. NOT?: IdeaAttachmentScalarWhereInput | IdeaAttachmentScalarWhereInput[]
  22443. id?: StringFilter<"IdeaAttachment"> | string
  22444. ideaId?: StringFilter<"IdeaAttachment"> | string
  22445. workspaceId?: StringFilter<"IdeaAttachment"> | string
  22446. filename?: StringFilter<"IdeaAttachment"> | string
  22447. contentType?: StringFilter<"IdeaAttachment"> | string
  22448. size?: IntFilter<"IdeaAttachment"> | number
  22449. url?: StringFilter<"IdeaAttachment"> | string
  22450. blobPath?: StringFilter<"IdeaAttachment"> | string
  22451. createdAt?: DateTimeFilter<"IdeaAttachment"> | Date | string
  22452. }
  22453. export type QualificationQuestionUpsertWithWhereUniqueWithoutIdeaInput = {
  22454. where: QualificationQuestionWhereUniqueInput
  22455. update: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  22456. create: XOR<QualificationQuestionCreateWithoutIdeaInput, QualificationQuestionUncheckedCreateWithoutIdeaInput>
  22457. }
  22458. export type QualificationQuestionUpdateWithWhereUniqueWithoutIdeaInput = {
  22459. where: QualificationQuestionWhereUniqueInput
  22460. data: XOR<QualificationQuestionUpdateWithoutIdeaInput, QualificationQuestionUncheckedUpdateWithoutIdeaInput>
  22461. }
  22462. export type QualificationQuestionUpdateManyWithWhereWithoutIdeaInput = {
  22463. where: QualificationQuestionScalarWhereInput
  22464. data: XOR<QualificationQuestionUpdateManyMutationInput, QualificationQuestionUncheckedUpdateManyWithoutIdeaInput>
  22465. }
  22466. export type QualificationQuestionScalarWhereInput = {
  22467. AND?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  22468. OR?: QualificationQuestionScalarWhereInput[]
  22469. NOT?: QualificationQuestionScalarWhereInput | QualificationQuestionScalarWhereInput[]
  22470. id?: StringFilter<"QualificationQuestion"> | string
  22471. ideaId?: StringFilter<"QualificationQuestion"> | string
  22472. workspaceId?: StringFilter<"QualificationQuestion"> | string
  22473. questionText?: StringFilter<"QualificationQuestion"> | string
  22474. responseToken?: StringFilter<"QualificationQuestion"> | string
  22475. askedAt?: DateTimeFilter<"QualificationQuestion"> | Date | string
  22476. responseText?: StringNullableFilter<"QualificationQuestion"> | string | null
  22477. answeredAt?: DateTimeNullableFilter<"QualificationQuestion"> | Date | string | null
  22478. }
  22479. export type UserCreateWithoutPostsInput = {
  22480. id?: string
  22481. name?: string | null
  22482. email?: string | null
  22483. emailVerified?: Date | string | null
  22484. password?: string | null
  22485. legalTermsAcceptedAt?: Date | string | null
  22486. image?: string | null
  22487. accounts?: AccountCreateNestedManyWithoutUserInput
  22488. sessions?: SessionCreateNestedManyWithoutUserInput
  22489. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  22490. feedbacks?: AppFeedbackCreateNestedManyWithoutUserInput
  22491. }
  22492. export type UserUncheckedCreateWithoutPostsInput = {
  22493. id?: string
  22494. name?: string | null
  22495. email?: string | null
  22496. emailVerified?: Date | string | null
  22497. password?: string | null
  22498. legalTermsAcceptedAt?: Date | string | null
  22499. image?: string | null
  22500. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  22501. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  22502. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  22503. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutUserInput
  22504. }
  22505. export type UserCreateOrConnectWithoutPostsInput = {
  22506. where: UserWhereUniqueInput
  22507. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  22508. }
  22509. export type UserUpsertWithoutPostsInput = {
  22510. update: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  22511. create: XOR<UserCreateWithoutPostsInput, UserUncheckedCreateWithoutPostsInput>
  22512. where?: UserWhereInput
  22513. }
  22514. export type UserUpdateToOneWithWhereWithoutPostsInput = {
  22515. where?: UserWhereInput
  22516. data: XOR<UserUpdateWithoutPostsInput, UserUncheckedUpdateWithoutPostsInput>
  22517. }
  22518. export type UserUpdateWithoutPostsInput = {
  22519. id?: StringFieldUpdateOperationsInput | string
  22520. name?: NullableStringFieldUpdateOperationsInput | string | null
  22521. email?: NullableStringFieldUpdateOperationsInput | string | null
  22522. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22523. password?: NullableStringFieldUpdateOperationsInput | string | null
  22524. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22525. image?: NullableStringFieldUpdateOperationsInput | string | null
  22526. accounts?: AccountUpdateManyWithoutUserNestedInput
  22527. sessions?: SessionUpdateManyWithoutUserNestedInput
  22528. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  22529. feedbacks?: AppFeedbackUpdateManyWithoutUserNestedInput
  22530. }
  22531. export type UserUncheckedUpdateWithoutPostsInput = {
  22532. id?: StringFieldUpdateOperationsInput | string
  22533. name?: NullableStringFieldUpdateOperationsInput | string | null
  22534. email?: NullableStringFieldUpdateOperationsInput | string | null
  22535. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22536. password?: NullableStringFieldUpdateOperationsInput | string | null
  22537. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22538. image?: NullableStringFieldUpdateOperationsInput | string | null
  22539. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  22540. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  22541. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  22542. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutUserNestedInput
  22543. }
  22544. export type UserCreateWithoutAccountsInput = {
  22545. id?: string
  22546. name?: string | null
  22547. email?: string | null
  22548. emailVerified?: Date | string | null
  22549. password?: string | null
  22550. legalTermsAcceptedAt?: Date | string | null
  22551. image?: string | null
  22552. sessions?: SessionCreateNestedManyWithoutUserInput
  22553. posts?: PostCreateNestedManyWithoutCreatedByInput
  22554. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  22555. feedbacks?: AppFeedbackCreateNestedManyWithoutUserInput
  22556. }
  22557. export type UserUncheckedCreateWithoutAccountsInput = {
  22558. id?: string
  22559. name?: string | null
  22560. email?: string | null
  22561. emailVerified?: Date | string | null
  22562. password?: string | null
  22563. legalTermsAcceptedAt?: Date | string | null
  22564. image?: string | null
  22565. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  22566. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  22567. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  22568. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutUserInput
  22569. }
  22570. export type UserCreateOrConnectWithoutAccountsInput = {
  22571. where: UserWhereUniqueInput
  22572. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  22573. }
  22574. export type UserUpsertWithoutAccountsInput = {
  22575. update: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  22576. create: XOR<UserCreateWithoutAccountsInput, UserUncheckedCreateWithoutAccountsInput>
  22577. where?: UserWhereInput
  22578. }
  22579. export type UserUpdateToOneWithWhereWithoutAccountsInput = {
  22580. where?: UserWhereInput
  22581. data: XOR<UserUpdateWithoutAccountsInput, UserUncheckedUpdateWithoutAccountsInput>
  22582. }
  22583. export type UserUpdateWithoutAccountsInput = {
  22584. id?: StringFieldUpdateOperationsInput | string
  22585. name?: NullableStringFieldUpdateOperationsInput | string | null
  22586. email?: NullableStringFieldUpdateOperationsInput | string | null
  22587. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22588. password?: NullableStringFieldUpdateOperationsInput | string | null
  22589. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22590. image?: NullableStringFieldUpdateOperationsInput | string | null
  22591. sessions?: SessionUpdateManyWithoutUserNestedInput
  22592. posts?: PostUpdateManyWithoutCreatedByNestedInput
  22593. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  22594. feedbacks?: AppFeedbackUpdateManyWithoutUserNestedInput
  22595. }
  22596. export type UserUncheckedUpdateWithoutAccountsInput = {
  22597. id?: StringFieldUpdateOperationsInput | string
  22598. name?: NullableStringFieldUpdateOperationsInput | string | null
  22599. email?: NullableStringFieldUpdateOperationsInput | string | null
  22600. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22601. password?: NullableStringFieldUpdateOperationsInput | string | null
  22602. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22603. image?: NullableStringFieldUpdateOperationsInput | string | null
  22604. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  22605. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  22606. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  22607. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutUserNestedInput
  22608. }
  22609. export type UserCreateWithoutSessionsInput = {
  22610. id?: string
  22611. name?: string | null
  22612. email?: string | null
  22613. emailVerified?: Date | string | null
  22614. password?: string | null
  22615. legalTermsAcceptedAt?: Date | string | null
  22616. image?: string | null
  22617. accounts?: AccountCreateNestedManyWithoutUserInput
  22618. posts?: PostCreateNestedManyWithoutCreatedByInput
  22619. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  22620. feedbacks?: AppFeedbackCreateNestedManyWithoutUserInput
  22621. }
  22622. export type UserUncheckedCreateWithoutSessionsInput = {
  22623. id?: string
  22624. name?: string | null
  22625. email?: string | null
  22626. emailVerified?: Date | string | null
  22627. password?: string | null
  22628. legalTermsAcceptedAt?: Date | string | null
  22629. image?: string | null
  22630. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  22631. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  22632. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  22633. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutUserInput
  22634. }
  22635. export type UserCreateOrConnectWithoutSessionsInput = {
  22636. where: UserWhereUniqueInput
  22637. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  22638. }
  22639. export type UserUpsertWithoutSessionsInput = {
  22640. update: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  22641. create: XOR<UserCreateWithoutSessionsInput, UserUncheckedCreateWithoutSessionsInput>
  22642. where?: UserWhereInput
  22643. }
  22644. export type UserUpdateToOneWithWhereWithoutSessionsInput = {
  22645. where?: UserWhereInput
  22646. data: XOR<UserUpdateWithoutSessionsInput, UserUncheckedUpdateWithoutSessionsInput>
  22647. }
  22648. export type UserUpdateWithoutSessionsInput = {
  22649. id?: StringFieldUpdateOperationsInput | string
  22650. name?: NullableStringFieldUpdateOperationsInput | string | null
  22651. email?: NullableStringFieldUpdateOperationsInput | string | null
  22652. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22653. password?: NullableStringFieldUpdateOperationsInput | string | null
  22654. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22655. image?: NullableStringFieldUpdateOperationsInput | string | null
  22656. accounts?: AccountUpdateManyWithoutUserNestedInput
  22657. posts?: PostUpdateManyWithoutCreatedByNestedInput
  22658. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  22659. feedbacks?: AppFeedbackUpdateManyWithoutUserNestedInput
  22660. }
  22661. export type UserUncheckedUpdateWithoutSessionsInput = {
  22662. id?: StringFieldUpdateOperationsInput | string
  22663. name?: NullableStringFieldUpdateOperationsInput | string | null
  22664. email?: NullableStringFieldUpdateOperationsInput | string | null
  22665. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22666. password?: NullableStringFieldUpdateOperationsInput | string | null
  22667. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22668. image?: NullableStringFieldUpdateOperationsInput | string | null
  22669. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  22670. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  22671. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  22672. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutUserNestedInput
  22673. }
  22674. export type AccountCreateWithoutUserInput = {
  22675. id?: string
  22676. type: string
  22677. provider: string
  22678. providerAccountId: string
  22679. refresh_token?: string | null
  22680. access_token?: string | null
  22681. expires_at?: number | null
  22682. token_type?: string | null
  22683. scope?: string | null
  22684. id_token?: string | null
  22685. session_state?: string | null
  22686. refresh_token_expires_in?: number | null
  22687. }
  22688. export type AccountUncheckedCreateWithoutUserInput = {
  22689. id?: string
  22690. type: string
  22691. provider: string
  22692. providerAccountId: string
  22693. refresh_token?: string | null
  22694. access_token?: string | null
  22695. expires_at?: number | null
  22696. token_type?: string | null
  22697. scope?: string | null
  22698. id_token?: string | null
  22699. session_state?: string | null
  22700. refresh_token_expires_in?: number | null
  22701. }
  22702. export type AccountCreateOrConnectWithoutUserInput = {
  22703. where: AccountWhereUniqueInput
  22704. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  22705. }
  22706. export type AccountCreateManyUserInputEnvelope = {
  22707. data: AccountCreateManyUserInput | AccountCreateManyUserInput[]
  22708. skipDuplicates?: boolean
  22709. }
  22710. export type SessionCreateWithoutUserInput = {
  22711. id?: string
  22712. sessionToken: string
  22713. expires: Date | string
  22714. }
  22715. export type SessionUncheckedCreateWithoutUserInput = {
  22716. id?: string
  22717. sessionToken: string
  22718. expires: Date | string
  22719. }
  22720. export type SessionCreateOrConnectWithoutUserInput = {
  22721. where: SessionWhereUniqueInput
  22722. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  22723. }
  22724. export type SessionCreateManyUserInputEnvelope = {
  22725. data: SessionCreateManyUserInput | SessionCreateManyUserInput[]
  22726. skipDuplicates?: boolean
  22727. }
  22728. export type PostCreateWithoutCreatedByInput = {
  22729. name: string
  22730. createdAt?: Date | string
  22731. updatedAt?: Date | string
  22732. }
  22733. export type PostUncheckedCreateWithoutCreatedByInput = {
  22734. id?: number
  22735. name: string
  22736. createdAt?: Date | string
  22737. updatedAt?: Date | string
  22738. }
  22739. export type PostCreateOrConnectWithoutCreatedByInput = {
  22740. where: PostWhereUniqueInput
  22741. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  22742. }
  22743. export type PostCreateManyCreatedByInputEnvelope = {
  22744. data: PostCreateManyCreatedByInput | PostCreateManyCreatedByInput[]
  22745. skipDuplicates?: boolean
  22746. }
  22747. export type WorkspaceCreateWithoutOwnerInput = {
  22748. id?: string
  22749. name: string
  22750. slug: string
  22751. sector?: string | null
  22752. companySize?: number | null
  22753. contactEmail?: string | null
  22754. tier?: $Enums.WorkspaceTier
  22755. llmCallsThisMonth?: number
  22756. llmCallsResetAt?: Date | string
  22757. autoRelanceEnabled?: boolean
  22758. exportsThisMonth?: number
  22759. exportsResetAt?: Date | string
  22760. lastVisitedAt?: Date | string | null
  22761. onboardingDismissed?: boolean
  22762. proModeAvailable?: boolean
  22763. createdAt?: Date | string
  22764. updatedAt?: Date | string
  22765. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  22766. feedbacks?: AppFeedbackCreateNestedManyWithoutWorkspaceInput
  22767. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  22768. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  22769. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  22770. }
  22771. export type WorkspaceUncheckedCreateWithoutOwnerInput = {
  22772. id?: string
  22773. name: string
  22774. slug: string
  22775. sector?: string | null
  22776. companySize?: number | null
  22777. contactEmail?: string | null
  22778. tier?: $Enums.WorkspaceTier
  22779. llmCallsThisMonth?: number
  22780. llmCallsResetAt?: Date | string
  22781. autoRelanceEnabled?: boolean
  22782. exportsThisMonth?: number
  22783. exportsResetAt?: Date | string
  22784. lastVisitedAt?: Date | string | null
  22785. onboardingDismissed?: boolean
  22786. proModeAvailable?: boolean
  22787. createdAt?: Date | string
  22788. updatedAt?: Date | string
  22789. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  22790. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutWorkspaceInput
  22791. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  22792. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  22793. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  22794. }
  22795. export type WorkspaceCreateOrConnectWithoutOwnerInput = {
  22796. where: WorkspaceWhereUniqueInput
  22797. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  22798. }
  22799. export type AppFeedbackCreateWithoutUserInput = {
  22800. id?: string
  22801. type: $Enums.FeedbackType
  22802. message: string
  22803. createdAt?: Date | string
  22804. workspace: WorkspaceCreateNestedOneWithoutFeedbacksInput
  22805. }
  22806. export type AppFeedbackUncheckedCreateWithoutUserInput = {
  22807. id?: string
  22808. workspaceId: string
  22809. type: $Enums.FeedbackType
  22810. message: string
  22811. createdAt?: Date | string
  22812. }
  22813. export type AppFeedbackCreateOrConnectWithoutUserInput = {
  22814. where: AppFeedbackWhereUniqueInput
  22815. create: XOR<AppFeedbackCreateWithoutUserInput, AppFeedbackUncheckedCreateWithoutUserInput>
  22816. }
  22817. export type AppFeedbackCreateManyUserInputEnvelope = {
  22818. data: AppFeedbackCreateManyUserInput | AppFeedbackCreateManyUserInput[]
  22819. skipDuplicates?: boolean
  22820. }
  22821. export type AccountUpsertWithWhereUniqueWithoutUserInput = {
  22822. where: AccountWhereUniqueInput
  22823. update: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  22824. create: XOR<AccountCreateWithoutUserInput, AccountUncheckedCreateWithoutUserInput>
  22825. }
  22826. export type AccountUpdateWithWhereUniqueWithoutUserInput = {
  22827. where: AccountWhereUniqueInput
  22828. data: XOR<AccountUpdateWithoutUserInput, AccountUncheckedUpdateWithoutUserInput>
  22829. }
  22830. export type AccountUpdateManyWithWhereWithoutUserInput = {
  22831. where: AccountScalarWhereInput
  22832. data: XOR<AccountUpdateManyMutationInput, AccountUncheckedUpdateManyWithoutUserInput>
  22833. }
  22834. export type AccountScalarWhereInput = {
  22835. AND?: AccountScalarWhereInput | AccountScalarWhereInput[]
  22836. OR?: AccountScalarWhereInput[]
  22837. NOT?: AccountScalarWhereInput | AccountScalarWhereInput[]
  22838. id?: StringFilter<"Account"> | string
  22839. userId?: StringFilter<"Account"> | string
  22840. type?: StringFilter<"Account"> | string
  22841. provider?: StringFilter<"Account"> | string
  22842. providerAccountId?: StringFilter<"Account"> | string
  22843. refresh_token?: StringNullableFilter<"Account"> | string | null
  22844. access_token?: StringNullableFilter<"Account"> | string | null
  22845. expires_at?: IntNullableFilter<"Account"> | number | null
  22846. token_type?: StringNullableFilter<"Account"> | string | null
  22847. scope?: StringNullableFilter<"Account"> | string | null
  22848. id_token?: StringNullableFilter<"Account"> | string | null
  22849. session_state?: StringNullableFilter<"Account"> | string | null
  22850. refresh_token_expires_in?: IntNullableFilter<"Account"> | number | null
  22851. }
  22852. export type SessionUpsertWithWhereUniqueWithoutUserInput = {
  22853. where: SessionWhereUniqueInput
  22854. update: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  22855. create: XOR<SessionCreateWithoutUserInput, SessionUncheckedCreateWithoutUserInput>
  22856. }
  22857. export type SessionUpdateWithWhereUniqueWithoutUserInput = {
  22858. where: SessionWhereUniqueInput
  22859. data: XOR<SessionUpdateWithoutUserInput, SessionUncheckedUpdateWithoutUserInput>
  22860. }
  22861. export type SessionUpdateManyWithWhereWithoutUserInput = {
  22862. where: SessionScalarWhereInput
  22863. data: XOR<SessionUpdateManyMutationInput, SessionUncheckedUpdateManyWithoutUserInput>
  22864. }
  22865. export type SessionScalarWhereInput = {
  22866. AND?: SessionScalarWhereInput | SessionScalarWhereInput[]
  22867. OR?: SessionScalarWhereInput[]
  22868. NOT?: SessionScalarWhereInput | SessionScalarWhereInput[]
  22869. id?: StringFilter<"Session"> | string
  22870. sessionToken?: StringFilter<"Session"> | string
  22871. userId?: StringFilter<"Session"> | string
  22872. expires?: DateTimeFilter<"Session"> | Date | string
  22873. }
  22874. export type PostUpsertWithWhereUniqueWithoutCreatedByInput = {
  22875. where: PostWhereUniqueInput
  22876. update: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  22877. create: XOR<PostCreateWithoutCreatedByInput, PostUncheckedCreateWithoutCreatedByInput>
  22878. }
  22879. export type PostUpdateWithWhereUniqueWithoutCreatedByInput = {
  22880. where: PostWhereUniqueInput
  22881. data: XOR<PostUpdateWithoutCreatedByInput, PostUncheckedUpdateWithoutCreatedByInput>
  22882. }
  22883. export type PostUpdateManyWithWhereWithoutCreatedByInput = {
  22884. where: PostScalarWhereInput
  22885. data: XOR<PostUpdateManyMutationInput, PostUncheckedUpdateManyWithoutCreatedByInput>
  22886. }
  22887. export type PostScalarWhereInput = {
  22888. AND?: PostScalarWhereInput | PostScalarWhereInput[]
  22889. OR?: PostScalarWhereInput[]
  22890. NOT?: PostScalarWhereInput | PostScalarWhereInput[]
  22891. id?: IntFilter<"Post"> | number
  22892. name?: StringFilter<"Post"> | string
  22893. createdAt?: DateTimeFilter<"Post"> | Date | string
  22894. updatedAt?: DateTimeFilter<"Post"> | Date | string
  22895. createdById?: StringFilter<"Post"> | string
  22896. }
  22897. export type WorkspaceUpsertWithoutOwnerInput = {
  22898. update: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  22899. create: XOR<WorkspaceCreateWithoutOwnerInput, WorkspaceUncheckedCreateWithoutOwnerInput>
  22900. where?: WorkspaceWhereInput
  22901. }
  22902. export type WorkspaceUpdateToOneWithWhereWithoutOwnerInput = {
  22903. where?: WorkspaceWhereInput
  22904. data: XOR<WorkspaceUpdateWithoutOwnerInput, WorkspaceUncheckedUpdateWithoutOwnerInput>
  22905. }
  22906. export type WorkspaceUpdateWithoutOwnerInput = {
  22907. id?: StringFieldUpdateOperationsInput | string
  22908. name?: StringFieldUpdateOperationsInput | string
  22909. slug?: StringFieldUpdateOperationsInput | string
  22910. sector?: NullableStringFieldUpdateOperationsInput | string | null
  22911. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  22912. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  22913. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  22914. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  22915. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22916. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  22917. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  22918. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22919. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22920. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  22921. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  22922. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22923. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22924. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  22925. feedbacks?: AppFeedbackUpdateManyWithoutWorkspaceNestedInput
  22926. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  22927. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  22928. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  22929. }
  22930. export type WorkspaceUncheckedUpdateWithoutOwnerInput = {
  22931. id?: StringFieldUpdateOperationsInput | string
  22932. name?: StringFieldUpdateOperationsInput | string
  22933. slug?: StringFieldUpdateOperationsInput | string
  22934. sector?: NullableStringFieldUpdateOperationsInput | string | null
  22935. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  22936. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  22937. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  22938. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  22939. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22940. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  22941. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  22942. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22943. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  22944. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  22945. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  22946. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22947. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  22948. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  22949. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutWorkspaceNestedInput
  22950. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  22951. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  22952. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  22953. }
  22954. export type AppFeedbackUpsertWithWhereUniqueWithoutUserInput = {
  22955. where: AppFeedbackWhereUniqueInput
  22956. update: XOR<AppFeedbackUpdateWithoutUserInput, AppFeedbackUncheckedUpdateWithoutUserInput>
  22957. create: XOR<AppFeedbackCreateWithoutUserInput, AppFeedbackUncheckedCreateWithoutUserInput>
  22958. }
  22959. export type AppFeedbackUpdateWithWhereUniqueWithoutUserInput = {
  22960. where: AppFeedbackWhereUniqueInput
  22961. data: XOR<AppFeedbackUpdateWithoutUserInput, AppFeedbackUncheckedUpdateWithoutUserInput>
  22962. }
  22963. export type AppFeedbackUpdateManyWithWhereWithoutUserInput = {
  22964. where: AppFeedbackScalarWhereInput
  22965. data: XOR<AppFeedbackUpdateManyMutationInput, AppFeedbackUncheckedUpdateManyWithoutUserInput>
  22966. }
  22967. export type IdeaCreateWithoutAttachmentsInput = {
  22968. id?: string
  22969. contributorEmail: string
  22970. department: string
  22971. problemDescription: string
  22972. estimatedImpact: $Enums.ImpactLevel
  22973. frequency: $Enums.Frequency
  22974. optionalWhoAffected?: string | null
  22975. optionalAlreadyTried?: string | null
  22976. optionalSuccessLooksLike?: string | null
  22977. status?: $Enums.IdeaStatus
  22978. llmTitle?: string | null
  22979. llmDomain?: string | null
  22980. llmAiType?: string | null
  22981. llmExplanation?: string | null
  22982. llmScoreImpact?: number | null
  22983. llmScoreFeasibility?: number | null
  22984. llmScoreUrgency?: number | null
  22985. llmEnrichedAt?: Date | string | null
  22986. llmEnrichFailed?: boolean
  22987. manualScoreImpact?: number | null
  22988. manualScoreFeasibility?: number | null
  22989. manualScoreUrgency?: number | null
  22990. priorityOrder?: number | null
  22991. emailMessageId?: string | null
  22992. createdAt?: Date | string
  22993. updatedAt?: Date | string
  22994. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  22995. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  22996. qualificationQuestions?: QualificationQuestionCreateNestedManyWithoutIdeaInput
  22997. }
  22998. export type IdeaUncheckedCreateWithoutAttachmentsInput = {
  22999. id?: string
  23000. workspaceId: string
  23001. contributorEmail: string
  23002. contributorId?: string | null
  23003. department: string
  23004. problemDescription: string
  23005. estimatedImpact: $Enums.ImpactLevel
  23006. frequency: $Enums.Frequency
  23007. optionalWhoAffected?: string | null
  23008. optionalAlreadyTried?: string | null
  23009. optionalSuccessLooksLike?: string | null
  23010. status?: $Enums.IdeaStatus
  23011. llmTitle?: string | null
  23012. llmDomain?: string | null
  23013. llmAiType?: string | null
  23014. llmExplanation?: string | null
  23015. llmScoreImpact?: number | null
  23016. llmScoreFeasibility?: number | null
  23017. llmScoreUrgency?: number | null
  23018. llmEnrichedAt?: Date | string | null
  23019. llmEnrichFailed?: boolean
  23020. manualScoreImpact?: number | null
  23021. manualScoreFeasibility?: number | null
  23022. manualScoreUrgency?: number | null
  23023. priorityOrder?: number | null
  23024. emailMessageId?: string | null
  23025. createdAt?: Date | string
  23026. updatedAt?: Date | string
  23027. qualificationQuestions?: QualificationQuestionUncheckedCreateNestedManyWithoutIdeaInput
  23028. }
  23029. export type IdeaCreateOrConnectWithoutAttachmentsInput = {
  23030. where: IdeaWhereUniqueInput
  23031. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  23032. }
  23033. export type IdeaUpsertWithoutAttachmentsInput = {
  23034. update: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  23035. create: XOR<IdeaCreateWithoutAttachmentsInput, IdeaUncheckedCreateWithoutAttachmentsInput>
  23036. where?: IdeaWhereInput
  23037. }
  23038. export type IdeaUpdateToOneWithWhereWithoutAttachmentsInput = {
  23039. where?: IdeaWhereInput
  23040. data: XOR<IdeaUpdateWithoutAttachmentsInput, IdeaUncheckedUpdateWithoutAttachmentsInput>
  23041. }
  23042. export type IdeaUpdateWithoutAttachmentsInput = {
  23043. id?: StringFieldUpdateOperationsInput | string
  23044. contributorEmail?: StringFieldUpdateOperationsInput | string
  23045. department?: StringFieldUpdateOperationsInput | string
  23046. problemDescription?: StringFieldUpdateOperationsInput | string
  23047. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23048. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23049. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23050. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23051. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23052. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23053. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23054. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23055. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23056. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23057. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23058. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23059. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23060. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23061. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23062. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23063. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23064. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23065. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23066. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23067. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23068. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23069. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  23070. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  23071. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  23072. }
  23073. export type IdeaUncheckedUpdateWithoutAttachmentsInput = {
  23074. id?: StringFieldUpdateOperationsInput | string
  23075. workspaceId?: StringFieldUpdateOperationsInput | string
  23076. contributorEmail?: StringFieldUpdateOperationsInput | string
  23077. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  23078. department?: StringFieldUpdateOperationsInput | string
  23079. problemDescription?: StringFieldUpdateOperationsInput | string
  23080. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23081. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23082. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23083. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23084. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23085. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23086. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23087. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23088. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23089. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23090. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23091. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23092. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23093. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23094. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23095. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23096. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23097. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23098. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23099. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23100. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23101. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23102. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  23103. }
  23104. export type IdeaCreateWithoutQualificationQuestionsInput = {
  23105. id?: string
  23106. contributorEmail: string
  23107. department: string
  23108. problemDescription: string
  23109. estimatedImpact: $Enums.ImpactLevel
  23110. frequency: $Enums.Frequency
  23111. optionalWhoAffected?: string | null
  23112. optionalAlreadyTried?: string | null
  23113. optionalSuccessLooksLike?: string | null
  23114. status?: $Enums.IdeaStatus
  23115. llmTitle?: string | null
  23116. llmDomain?: string | null
  23117. llmAiType?: string | null
  23118. llmExplanation?: string | null
  23119. llmScoreImpact?: number | null
  23120. llmScoreFeasibility?: number | null
  23121. llmScoreUrgency?: number | null
  23122. llmEnrichedAt?: Date | string | null
  23123. llmEnrichFailed?: boolean
  23124. manualScoreImpact?: number | null
  23125. manualScoreFeasibility?: number | null
  23126. manualScoreUrgency?: number | null
  23127. priorityOrder?: number | null
  23128. emailMessageId?: string | null
  23129. createdAt?: Date | string
  23130. updatedAt?: Date | string
  23131. workspace: WorkspaceCreateNestedOneWithoutIdeasInput
  23132. contributor?: ContributorCreateNestedOneWithoutIdeasInput
  23133. attachments?: IdeaAttachmentCreateNestedManyWithoutIdeaInput
  23134. }
  23135. export type IdeaUncheckedCreateWithoutQualificationQuestionsInput = {
  23136. id?: string
  23137. workspaceId: string
  23138. contributorEmail: string
  23139. contributorId?: string | null
  23140. department: string
  23141. problemDescription: string
  23142. estimatedImpact: $Enums.ImpactLevel
  23143. frequency: $Enums.Frequency
  23144. optionalWhoAffected?: string | null
  23145. optionalAlreadyTried?: string | null
  23146. optionalSuccessLooksLike?: string | null
  23147. status?: $Enums.IdeaStatus
  23148. llmTitle?: string | null
  23149. llmDomain?: string | null
  23150. llmAiType?: string | null
  23151. llmExplanation?: string | null
  23152. llmScoreImpact?: number | null
  23153. llmScoreFeasibility?: number | null
  23154. llmScoreUrgency?: number | null
  23155. llmEnrichedAt?: Date | string | null
  23156. llmEnrichFailed?: boolean
  23157. manualScoreImpact?: number | null
  23158. manualScoreFeasibility?: number | null
  23159. manualScoreUrgency?: number | null
  23160. priorityOrder?: number | null
  23161. emailMessageId?: string | null
  23162. createdAt?: Date | string
  23163. updatedAt?: Date | string
  23164. attachments?: IdeaAttachmentUncheckedCreateNestedManyWithoutIdeaInput
  23165. }
  23166. export type IdeaCreateOrConnectWithoutQualificationQuestionsInput = {
  23167. where: IdeaWhereUniqueInput
  23168. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  23169. }
  23170. export type IdeaUpsertWithoutQualificationQuestionsInput = {
  23171. update: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  23172. create: XOR<IdeaCreateWithoutQualificationQuestionsInput, IdeaUncheckedCreateWithoutQualificationQuestionsInput>
  23173. where?: IdeaWhereInput
  23174. }
  23175. export type IdeaUpdateToOneWithWhereWithoutQualificationQuestionsInput = {
  23176. where?: IdeaWhereInput
  23177. data: XOR<IdeaUpdateWithoutQualificationQuestionsInput, IdeaUncheckedUpdateWithoutQualificationQuestionsInput>
  23178. }
  23179. export type IdeaUpdateWithoutQualificationQuestionsInput = {
  23180. id?: StringFieldUpdateOperationsInput | string
  23181. contributorEmail?: StringFieldUpdateOperationsInput | string
  23182. department?: StringFieldUpdateOperationsInput | string
  23183. problemDescription?: StringFieldUpdateOperationsInput | string
  23184. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23185. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23186. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23187. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23188. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23189. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23190. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23191. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23192. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23193. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23194. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23195. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23196. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23197. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23198. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23199. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23200. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23201. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23202. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23203. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23204. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23205. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23206. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  23207. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  23208. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  23209. }
  23210. export type IdeaUncheckedUpdateWithoutQualificationQuestionsInput = {
  23211. id?: StringFieldUpdateOperationsInput | string
  23212. workspaceId?: StringFieldUpdateOperationsInput | string
  23213. contributorEmail?: StringFieldUpdateOperationsInput | string
  23214. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  23215. department?: StringFieldUpdateOperationsInput | string
  23216. problemDescription?: StringFieldUpdateOperationsInput | string
  23217. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23218. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23219. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23220. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23221. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23222. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23223. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23224. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23225. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23226. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23227. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23228. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23229. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23230. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23231. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23232. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23233. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23234. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23235. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23236. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23237. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23238. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23239. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  23240. }
  23241. export type UserCreateWithoutFeedbacksInput = {
  23242. id?: string
  23243. name?: string | null
  23244. email?: string | null
  23245. emailVerified?: Date | string | null
  23246. password?: string | null
  23247. legalTermsAcceptedAt?: Date | string | null
  23248. image?: string | null
  23249. accounts?: AccountCreateNestedManyWithoutUserInput
  23250. sessions?: SessionCreateNestedManyWithoutUserInput
  23251. posts?: PostCreateNestedManyWithoutCreatedByInput
  23252. workspace?: WorkspaceCreateNestedOneWithoutOwnerInput
  23253. }
  23254. export type UserUncheckedCreateWithoutFeedbacksInput = {
  23255. id?: string
  23256. name?: string | null
  23257. email?: string | null
  23258. emailVerified?: Date | string | null
  23259. password?: string | null
  23260. legalTermsAcceptedAt?: Date | string | null
  23261. image?: string | null
  23262. accounts?: AccountUncheckedCreateNestedManyWithoutUserInput
  23263. sessions?: SessionUncheckedCreateNestedManyWithoutUserInput
  23264. posts?: PostUncheckedCreateNestedManyWithoutCreatedByInput
  23265. workspace?: WorkspaceUncheckedCreateNestedOneWithoutOwnerInput
  23266. }
  23267. export type UserCreateOrConnectWithoutFeedbacksInput = {
  23268. where: UserWhereUniqueInput
  23269. create: XOR<UserCreateWithoutFeedbacksInput, UserUncheckedCreateWithoutFeedbacksInput>
  23270. }
  23271. export type WorkspaceCreateWithoutFeedbacksInput = {
  23272. id?: string
  23273. name: string
  23274. slug: string
  23275. sector?: string | null
  23276. companySize?: number | null
  23277. contactEmail?: string | null
  23278. tier?: $Enums.WorkspaceTier
  23279. llmCallsThisMonth?: number
  23280. llmCallsResetAt?: Date | string
  23281. autoRelanceEnabled?: boolean
  23282. exportsThisMonth?: number
  23283. exportsResetAt?: Date | string
  23284. lastVisitedAt?: Date | string | null
  23285. onboardingDismissed?: boolean
  23286. proModeAvailable?: boolean
  23287. createdAt?: Date | string
  23288. updatedAt?: Date | string
  23289. shareLink?: ShareLinkCreateNestedOneWithoutWorkspaceInput
  23290. owner: UserCreateNestedOneWithoutWorkspaceInput
  23291. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  23292. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  23293. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  23294. }
  23295. export type WorkspaceUncheckedCreateWithoutFeedbacksInput = {
  23296. id?: string
  23297. name: string
  23298. slug: string
  23299. sector?: string | null
  23300. companySize?: number | null
  23301. contactEmail?: string | null
  23302. tier?: $Enums.WorkspaceTier
  23303. llmCallsThisMonth?: number
  23304. llmCallsResetAt?: Date | string
  23305. autoRelanceEnabled?: boolean
  23306. exportsThisMonth?: number
  23307. exportsResetAt?: Date | string
  23308. lastVisitedAt?: Date | string | null
  23309. onboardingDismissed?: boolean
  23310. proModeAvailable?: boolean
  23311. createdAt?: Date | string
  23312. updatedAt?: Date | string
  23313. ownerId: string
  23314. shareLink?: ShareLinkUncheckedCreateNestedOneWithoutWorkspaceInput
  23315. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  23316. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  23317. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  23318. }
  23319. export type WorkspaceCreateOrConnectWithoutFeedbacksInput = {
  23320. where: WorkspaceWhereUniqueInput
  23321. create: XOR<WorkspaceCreateWithoutFeedbacksInput, WorkspaceUncheckedCreateWithoutFeedbacksInput>
  23322. }
  23323. export type UserUpsertWithoutFeedbacksInput = {
  23324. update: XOR<UserUpdateWithoutFeedbacksInput, UserUncheckedUpdateWithoutFeedbacksInput>
  23325. create: XOR<UserCreateWithoutFeedbacksInput, UserUncheckedCreateWithoutFeedbacksInput>
  23326. where?: UserWhereInput
  23327. }
  23328. export type UserUpdateToOneWithWhereWithoutFeedbacksInput = {
  23329. where?: UserWhereInput
  23330. data: XOR<UserUpdateWithoutFeedbacksInput, UserUncheckedUpdateWithoutFeedbacksInput>
  23331. }
  23332. export type UserUpdateWithoutFeedbacksInput = {
  23333. id?: StringFieldUpdateOperationsInput | string
  23334. name?: NullableStringFieldUpdateOperationsInput | string | null
  23335. email?: NullableStringFieldUpdateOperationsInput | string | null
  23336. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23337. password?: NullableStringFieldUpdateOperationsInput | string | null
  23338. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23339. image?: NullableStringFieldUpdateOperationsInput | string | null
  23340. accounts?: AccountUpdateManyWithoutUserNestedInput
  23341. sessions?: SessionUpdateManyWithoutUserNestedInput
  23342. posts?: PostUpdateManyWithoutCreatedByNestedInput
  23343. workspace?: WorkspaceUpdateOneWithoutOwnerNestedInput
  23344. }
  23345. export type UserUncheckedUpdateWithoutFeedbacksInput = {
  23346. id?: StringFieldUpdateOperationsInput | string
  23347. name?: NullableStringFieldUpdateOperationsInput | string | null
  23348. email?: NullableStringFieldUpdateOperationsInput | string | null
  23349. emailVerified?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23350. password?: NullableStringFieldUpdateOperationsInput | string | null
  23351. legalTermsAcceptedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23352. image?: NullableStringFieldUpdateOperationsInput | string | null
  23353. accounts?: AccountUncheckedUpdateManyWithoutUserNestedInput
  23354. sessions?: SessionUncheckedUpdateManyWithoutUserNestedInput
  23355. posts?: PostUncheckedUpdateManyWithoutCreatedByNestedInput
  23356. workspace?: WorkspaceUncheckedUpdateOneWithoutOwnerNestedInput
  23357. }
  23358. export type WorkspaceUpsertWithoutFeedbacksInput = {
  23359. update: XOR<WorkspaceUpdateWithoutFeedbacksInput, WorkspaceUncheckedUpdateWithoutFeedbacksInput>
  23360. create: XOR<WorkspaceCreateWithoutFeedbacksInput, WorkspaceUncheckedCreateWithoutFeedbacksInput>
  23361. where?: WorkspaceWhereInput
  23362. }
  23363. export type WorkspaceUpdateToOneWithWhereWithoutFeedbacksInput = {
  23364. where?: WorkspaceWhereInput
  23365. data: XOR<WorkspaceUpdateWithoutFeedbacksInput, WorkspaceUncheckedUpdateWithoutFeedbacksInput>
  23366. }
  23367. export type WorkspaceUpdateWithoutFeedbacksInput = {
  23368. id?: StringFieldUpdateOperationsInput | string
  23369. name?: StringFieldUpdateOperationsInput | string
  23370. slug?: StringFieldUpdateOperationsInput | string
  23371. sector?: NullableStringFieldUpdateOperationsInput | string | null
  23372. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  23373. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  23374. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  23375. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  23376. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23377. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  23378. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  23379. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23380. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23381. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  23382. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  23383. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23384. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23385. shareLink?: ShareLinkUpdateOneWithoutWorkspaceNestedInput
  23386. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  23387. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  23388. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  23389. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  23390. }
  23391. export type WorkspaceUncheckedUpdateWithoutFeedbacksInput = {
  23392. id?: StringFieldUpdateOperationsInput | string
  23393. name?: StringFieldUpdateOperationsInput | string
  23394. slug?: StringFieldUpdateOperationsInput | string
  23395. sector?: NullableStringFieldUpdateOperationsInput | string | null
  23396. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  23397. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  23398. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  23399. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  23400. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23401. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  23402. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  23403. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23404. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23405. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  23406. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  23407. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23408. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23409. ownerId?: StringFieldUpdateOperationsInput | string
  23410. shareLink?: ShareLinkUncheckedUpdateOneWithoutWorkspaceNestedInput
  23411. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  23412. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  23413. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  23414. }
  23415. export type WorkspaceCreateWithoutShareLinkInput = {
  23416. id?: string
  23417. name: string
  23418. slug: string
  23419. sector?: string | null
  23420. companySize?: number | null
  23421. contactEmail?: string | null
  23422. tier?: $Enums.WorkspaceTier
  23423. llmCallsThisMonth?: number
  23424. llmCallsResetAt?: Date | string
  23425. autoRelanceEnabled?: boolean
  23426. exportsThisMonth?: number
  23427. exportsResetAt?: Date | string
  23428. lastVisitedAt?: Date | string | null
  23429. onboardingDismissed?: boolean
  23430. proModeAvailable?: boolean
  23431. createdAt?: Date | string
  23432. updatedAt?: Date | string
  23433. feedbacks?: AppFeedbackCreateNestedManyWithoutWorkspaceInput
  23434. owner: UserCreateNestedOneWithoutWorkspaceInput
  23435. contributors?: ContributorCreateNestedManyWithoutWorkspaceInput
  23436. ideas?: IdeaCreateNestedManyWithoutWorkspaceInput
  23437. manualRelanceLogs?: ManualRelanceLogCreateNestedManyWithoutWorkspaceInput
  23438. }
  23439. export type WorkspaceUncheckedCreateWithoutShareLinkInput = {
  23440. id?: string
  23441. name: string
  23442. slug: string
  23443. sector?: string | null
  23444. companySize?: number | null
  23445. contactEmail?: string | null
  23446. tier?: $Enums.WorkspaceTier
  23447. llmCallsThisMonth?: number
  23448. llmCallsResetAt?: Date | string
  23449. autoRelanceEnabled?: boolean
  23450. exportsThisMonth?: number
  23451. exportsResetAt?: Date | string
  23452. lastVisitedAt?: Date | string | null
  23453. onboardingDismissed?: boolean
  23454. proModeAvailable?: boolean
  23455. createdAt?: Date | string
  23456. updatedAt?: Date | string
  23457. ownerId: string
  23458. feedbacks?: AppFeedbackUncheckedCreateNestedManyWithoutWorkspaceInput
  23459. contributors?: ContributorUncheckedCreateNestedManyWithoutWorkspaceInput
  23460. ideas?: IdeaUncheckedCreateNestedManyWithoutWorkspaceInput
  23461. manualRelanceLogs?: ManualRelanceLogUncheckedCreateNestedManyWithoutWorkspaceInput
  23462. }
  23463. export type WorkspaceCreateOrConnectWithoutShareLinkInput = {
  23464. where: WorkspaceWhereUniqueInput
  23465. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  23466. }
  23467. export type WorkspaceUpsertWithoutShareLinkInput = {
  23468. update: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  23469. create: XOR<WorkspaceCreateWithoutShareLinkInput, WorkspaceUncheckedCreateWithoutShareLinkInput>
  23470. where?: WorkspaceWhereInput
  23471. }
  23472. export type WorkspaceUpdateToOneWithWhereWithoutShareLinkInput = {
  23473. where?: WorkspaceWhereInput
  23474. data: XOR<WorkspaceUpdateWithoutShareLinkInput, WorkspaceUncheckedUpdateWithoutShareLinkInput>
  23475. }
  23476. export type WorkspaceUpdateWithoutShareLinkInput = {
  23477. id?: StringFieldUpdateOperationsInput | string
  23478. name?: StringFieldUpdateOperationsInput | string
  23479. slug?: StringFieldUpdateOperationsInput | string
  23480. sector?: NullableStringFieldUpdateOperationsInput | string | null
  23481. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  23482. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  23483. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  23484. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  23485. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23486. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  23487. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  23488. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23489. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23490. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  23491. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  23492. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23493. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23494. feedbacks?: AppFeedbackUpdateManyWithoutWorkspaceNestedInput
  23495. owner?: UserUpdateOneRequiredWithoutWorkspaceNestedInput
  23496. contributors?: ContributorUpdateManyWithoutWorkspaceNestedInput
  23497. ideas?: IdeaUpdateManyWithoutWorkspaceNestedInput
  23498. manualRelanceLogs?: ManualRelanceLogUpdateManyWithoutWorkspaceNestedInput
  23499. }
  23500. export type WorkspaceUncheckedUpdateWithoutShareLinkInput = {
  23501. id?: StringFieldUpdateOperationsInput | string
  23502. name?: StringFieldUpdateOperationsInput | string
  23503. slug?: StringFieldUpdateOperationsInput | string
  23504. sector?: NullableStringFieldUpdateOperationsInput | string | null
  23505. companySize?: NullableIntFieldUpdateOperationsInput | number | null
  23506. contactEmail?: NullableStringFieldUpdateOperationsInput | string | null
  23507. tier?: EnumWorkspaceTierFieldUpdateOperationsInput | $Enums.WorkspaceTier
  23508. llmCallsThisMonth?: IntFieldUpdateOperationsInput | number
  23509. llmCallsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23510. autoRelanceEnabled?: BoolFieldUpdateOperationsInput | boolean
  23511. exportsThisMonth?: IntFieldUpdateOperationsInput | number
  23512. exportsResetAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23513. lastVisitedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23514. onboardingDismissed?: BoolFieldUpdateOperationsInput | boolean
  23515. proModeAvailable?: BoolFieldUpdateOperationsInput | boolean
  23516. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23517. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23518. ownerId?: StringFieldUpdateOperationsInput | string
  23519. feedbacks?: AppFeedbackUncheckedUpdateManyWithoutWorkspaceNestedInput
  23520. contributors?: ContributorUncheckedUpdateManyWithoutWorkspaceNestedInput
  23521. ideas?: IdeaUncheckedUpdateManyWithoutWorkspaceNestedInput
  23522. manualRelanceLogs?: ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceNestedInput
  23523. }
  23524. export type AppFeedbackCreateManyWorkspaceInput = {
  23525. id?: string
  23526. userId: string
  23527. type: $Enums.FeedbackType
  23528. message: string
  23529. createdAt?: Date | string
  23530. }
  23531. export type ContributorCreateManyWorkspaceInput = {
  23532. id?: string
  23533. email: string
  23534. service?: string | null
  23535. status?: $Enums.ContributorStatus
  23536. invitedAt?: Date | string
  23537. lastRemindedAt?: Date | string | null
  23538. createdAt?: Date | string
  23539. }
  23540. export type IdeaCreateManyWorkspaceInput = {
  23541. id?: string
  23542. contributorEmail: string
  23543. contributorId?: string | null
  23544. department: string
  23545. problemDescription: string
  23546. estimatedImpact: $Enums.ImpactLevel
  23547. frequency: $Enums.Frequency
  23548. optionalWhoAffected?: string | null
  23549. optionalAlreadyTried?: string | null
  23550. optionalSuccessLooksLike?: string | null
  23551. status?: $Enums.IdeaStatus
  23552. llmTitle?: string | null
  23553. llmDomain?: string | null
  23554. llmAiType?: string | null
  23555. llmExplanation?: string | null
  23556. llmScoreImpact?: number | null
  23557. llmScoreFeasibility?: number | null
  23558. llmScoreUrgency?: number | null
  23559. llmEnrichedAt?: Date | string | null
  23560. llmEnrichFailed?: boolean
  23561. manualScoreImpact?: number | null
  23562. manualScoreFeasibility?: number | null
  23563. manualScoreUrgency?: number | null
  23564. priorityOrder?: number | null
  23565. emailMessageId?: string | null
  23566. createdAt?: Date | string
  23567. updatedAt?: Date | string
  23568. }
  23569. export type ManualRelanceLogCreateManyWorkspaceInput = {
  23570. id?: string
  23571. subject: string
  23572. recipientCount: number
  23573. sentCount: number
  23574. failedCount?: number
  23575. sentAt?: Date | string
  23576. }
  23577. export type AppFeedbackUpdateWithoutWorkspaceInput = {
  23578. id?: StringFieldUpdateOperationsInput | string
  23579. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  23580. message?: StringFieldUpdateOperationsInput | string
  23581. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23582. user?: UserUpdateOneRequiredWithoutFeedbacksNestedInput
  23583. }
  23584. export type AppFeedbackUncheckedUpdateWithoutWorkspaceInput = {
  23585. id?: StringFieldUpdateOperationsInput | string
  23586. userId?: StringFieldUpdateOperationsInput | string
  23587. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  23588. message?: StringFieldUpdateOperationsInput | string
  23589. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23590. }
  23591. export type AppFeedbackUncheckedUpdateManyWithoutWorkspaceInput = {
  23592. id?: StringFieldUpdateOperationsInput | string
  23593. userId?: StringFieldUpdateOperationsInput | string
  23594. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  23595. message?: StringFieldUpdateOperationsInput | string
  23596. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23597. }
  23598. export type ContributorUpdateWithoutWorkspaceInput = {
  23599. id?: StringFieldUpdateOperationsInput | string
  23600. email?: StringFieldUpdateOperationsInput | string
  23601. service?: NullableStringFieldUpdateOperationsInput | string | null
  23602. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  23603. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23604. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23605. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23606. ideas?: IdeaUpdateManyWithoutContributorNestedInput
  23607. }
  23608. export type ContributorUncheckedUpdateWithoutWorkspaceInput = {
  23609. id?: StringFieldUpdateOperationsInput | string
  23610. email?: StringFieldUpdateOperationsInput | string
  23611. service?: NullableStringFieldUpdateOperationsInput | string | null
  23612. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  23613. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23614. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23615. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23616. ideas?: IdeaUncheckedUpdateManyWithoutContributorNestedInput
  23617. }
  23618. export type ContributorUncheckedUpdateManyWithoutWorkspaceInput = {
  23619. id?: StringFieldUpdateOperationsInput | string
  23620. email?: StringFieldUpdateOperationsInput | string
  23621. service?: NullableStringFieldUpdateOperationsInput | string | null
  23622. status?: EnumContributorStatusFieldUpdateOperationsInput | $Enums.ContributorStatus
  23623. invitedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23624. lastRemindedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23625. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23626. }
  23627. export type IdeaUpdateWithoutWorkspaceInput = {
  23628. id?: StringFieldUpdateOperationsInput | string
  23629. contributorEmail?: StringFieldUpdateOperationsInput | string
  23630. department?: StringFieldUpdateOperationsInput | string
  23631. problemDescription?: StringFieldUpdateOperationsInput | string
  23632. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23633. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23634. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23635. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23636. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23637. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23638. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23639. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23640. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23641. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23642. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23643. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23644. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23645. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23646. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23647. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23648. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23649. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23650. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23651. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23652. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23653. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23654. contributor?: ContributorUpdateOneWithoutIdeasNestedInput
  23655. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  23656. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  23657. }
  23658. export type IdeaUncheckedUpdateWithoutWorkspaceInput = {
  23659. id?: StringFieldUpdateOperationsInput | string
  23660. contributorEmail?: StringFieldUpdateOperationsInput | string
  23661. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  23662. department?: StringFieldUpdateOperationsInput | string
  23663. problemDescription?: StringFieldUpdateOperationsInput | string
  23664. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23665. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23666. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23667. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23668. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23669. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23670. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23671. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23672. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23673. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23674. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23675. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23676. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23677. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23678. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23679. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23680. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23681. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23682. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23683. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23684. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23685. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23686. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  23687. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  23688. }
  23689. export type IdeaUncheckedUpdateManyWithoutWorkspaceInput = {
  23690. id?: StringFieldUpdateOperationsInput | string
  23691. contributorEmail?: StringFieldUpdateOperationsInput | string
  23692. contributorId?: NullableStringFieldUpdateOperationsInput | string | null
  23693. department?: StringFieldUpdateOperationsInput | string
  23694. problemDescription?: StringFieldUpdateOperationsInput | string
  23695. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23696. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23697. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23698. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23699. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23700. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23701. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23702. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23703. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23704. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23705. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23706. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23707. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23708. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23709. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23710. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23711. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23712. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23713. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23714. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23715. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23716. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23717. }
  23718. export type ManualRelanceLogUpdateWithoutWorkspaceInput = {
  23719. id?: StringFieldUpdateOperationsInput | string
  23720. subject?: StringFieldUpdateOperationsInput | string
  23721. recipientCount?: IntFieldUpdateOperationsInput | number
  23722. sentCount?: IntFieldUpdateOperationsInput | number
  23723. failedCount?: IntFieldUpdateOperationsInput | number
  23724. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23725. }
  23726. export type ManualRelanceLogUncheckedUpdateWithoutWorkspaceInput = {
  23727. id?: StringFieldUpdateOperationsInput | string
  23728. subject?: StringFieldUpdateOperationsInput | string
  23729. recipientCount?: IntFieldUpdateOperationsInput | number
  23730. sentCount?: IntFieldUpdateOperationsInput | number
  23731. failedCount?: IntFieldUpdateOperationsInput | number
  23732. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23733. }
  23734. export type ManualRelanceLogUncheckedUpdateManyWithoutWorkspaceInput = {
  23735. id?: StringFieldUpdateOperationsInput | string
  23736. subject?: StringFieldUpdateOperationsInput | string
  23737. recipientCount?: IntFieldUpdateOperationsInput | number
  23738. sentCount?: IntFieldUpdateOperationsInput | number
  23739. failedCount?: IntFieldUpdateOperationsInput | number
  23740. sentAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23741. }
  23742. export type IdeaCreateManyContributorInput = {
  23743. id?: string
  23744. workspaceId: string
  23745. contributorEmail: string
  23746. department: string
  23747. problemDescription: string
  23748. estimatedImpact: $Enums.ImpactLevel
  23749. frequency: $Enums.Frequency
  23750. optionalWhoAffected?: string | null
  23751. optionalAlreadyTried?: string | null
  23752. optionalSuccessLooksLike?: string | null
  23753. status?: $Enums.IdeaStatus
  23754. llmTitle?: string | null
  23755. llmDomain?: string | null
  23756. llmAiType?: string | null
  23757. llmExplanation?: string | null
  23758. llmScoreImpact?: number | null
  23759. llmScoreFeasibility?: number | null
  23760. llmScoreUrgency?: number | null
  23761. llmEnrichedAt?: Date | string | null
  23762. llmEnrichFailed?: boolean
  23763. manualScoreImpact?: number | null
  23764. manualScoreFeasibility?: number | null
  23765. manualScoreUrgency?: number | null
  23766. priorityOrder?: number | null
  23767. emailMessageId?: string | null
  23768. createdAt?: Date | string
  23769. updatedAt?: Date | string
  23770. }
  23771. export type IdeaUpdateWithoutContributorInput = {
  23772. id?: StringFieldUpdateOperationsInput | string
  23773. contributorEmail?: StringFieldUpdateOperationsInput | string
  23774. department?: StringFieldUpdateOperationsInput | string
  23775. problemDescription?: StringFieldUpdateOperationsInput | string
  23776. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23777. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23778. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23779. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23780. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23781. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23782. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23783. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23784. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23785. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23786. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23787. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23788. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23789. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23790. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23791. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23792. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23793. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23794. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23795. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23796. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23797. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23798. workspace?: WorkspaceUpdateOneRequiredWithoutIdeasNestedInput
  23799. attachments?: IdeaAttachmentUpdateManyWithoutIdeaNestedInput
  23800. qualificationQuestions?: QualificationQuestionUpdateManyWithoutIdeaNestedInput
  23801. }
  23802. export type IdeaUncheckedUpdateWithoutContributorInput = {
  23803. id?: StringFieldUpdateOperationsInput | string
  23804. workspaceId?: StringFieldUpdateOperationsInput | string
  23805. contributorEmail?: StringFieldUpdateOperationsInput | string
  23806. department?: StringFieldUpdateOperationsInput | string
  23807. problemDescription?: StringFieldUpdateOperationsInput | string
  23808. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23809. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23810. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23811. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23812. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23813. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23814. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23815. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23816. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23817. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23818. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23819. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23820. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23821. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23822. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23823. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23824. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23825. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23826. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23827. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23828. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23829. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23830. attachments?: IdeaAttachmentUncheckedUpdateManyWithoutIdeaNestedInput
  23831. qualificationQuestions?: QualificationQuestionUncheckedUpdateManyWithoutIdeaNestedInput
  23832. }
  23833. export type IdeaUncheckedUpdateManyWithoutContributorInput = {
  23834. id?: StringFieldUpdateOperationsInput | string
  23835. workspaceId?: StringFieldUpdateOperationsInput | string
  23836. contributorEmail?: StringFieldUpdateOperationsInput | string
  23837. department?: StringFieldUpdateOperationsInput | string
  23838. problemDescription?: StringFieldUpdateOperationsInput | string
  23839. estimatedImpact?: EnumImpactLevelFieldUpdateOperationsInput | $Enums.ImpactLevel
  23840. frequency?: EnumFrequencyFieldUpdateOperationsInput | $Enums.Frequency
  23841. optionalWhoAffected?: NullableStringFieldUpdateOperationsInput | string | null
  23842. optionalAlreadyTried?: NullableStringFieldUpdateOperationsInput | string | null
  23843. optionalSuccessLooksLike?: NullableStringFieldUpdateOperationsInput | string | null
  23844. status?: EnumIdeaStatusFieldUpdateOperationsInput | $Enums.IdeaStatus
  23845. llmTitle?: NullableStringFieldUpdateOperationsInput | string | null
  23846. llmDomain?: NullableStringFieldUpdateOperationsInput | string | null
  23847. llmAiType?: NullableStringFieldUpdateOperationsInput | string | null
  23848. llmExplanation?: NullableStringFieldUpdateOperationsInput | string | null
  23849. llmScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23850. llmScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23851. llmScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23852. llmEnrichedAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23853. llmEnrichFailed?: BoolFieldUpdateOperationsInput | boolean
  23854. manualScoreImpact?: NullableIntFieldUpdateOperationsInput | number | null
  23855. manualScoreFeasibility?: NullableIntFieldUpdateOperationsInput | number | null
  23856. manualScoreUrgency?: NullableIntFieldUpdateOperationsInput | number | null
  23857. priorityOrder?: NullableIntFieldUpdateOperationsInput | number | null
  23858. emailMessageId?: NullableStringFieldUpdateOperationsInput | string | null
  23859. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23860. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23861. }
  23862. export type IdeaAttachmentCreateManyIdeaInput = {
  23863. id?: string
  23864. workspaceId: string
  23865. filename: string
  23866. contentType: string
  23867. size: number
  23868. url: string
  23869. blobPath: string
  23870. createdAt?: Date | string
  23871. }
  23872. export type QualificationQuestionCreateManyIdeaInput = {
  23873. id?: string
  23874. workspaceId: string
  23875. questionText: string
  23876. responseToken?: string
  23877. askedAt?: Date | string
  23878. responseText?: string | null
  23879. answeredAt?: Date | string | null
  23880. }
  23881. export type IdeaAttachmentUpdateWithoutIdeaInput = {
  23882. id?: StringFieldUpdateOperationsInput | string
  23883. workspaceId?: StringFieldUpdateOperationsInput | string
  23884. filename?: StringFieldUpdateOperationsInput | string
  23885. contentType?: StringFieldUpdateOperationsInput | string
  23886. size?: IntFieldUpdateOperationsInput | number
  23887. url?: StringFieldUpdateOperationsInput | string
  23888. blobPath?: StringFieldUpdateOperationsInput | string
  23889. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23890. }
  23891. export type IdeaAttachmentUncheckedUpdateWithoutIdeaInput = {
  23892. id?: StringFieldUpdateOperationsInput | string
  23893. workspaceId?: StringFieldUpdateOperationsInput | string
  23894. filename?: StringFieldUpdateOperationsInput | string
  23895. contentType?: StringFieldUpdateOperationsInput | string
  23896. size?: IntFieldUpdateOperationsInput | number
  23897. url?: StringFieldUpdateOperationsInput | string
  23898. blobPath?: StringFieldUpdateOperationsInput | string
  23899. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23900. }
  23901. export type IdeaAttachmentUncheckedUpdateManyWithoutIdeaInput = {
  23902. id?: StringFieldUpdateOperationsInput | string
  23903. workspaceId?: StringFieldUpdateOperationsInput | string
  23904. filename?: StringFieldUpdateOperationsInput | string
  23905. contentType?: StringFieldUpdateOperationsInput | string
  23906. size?: IntFieldUpdateOperationsInput | number
  23907. url?: StringFieldUpdateOperationsInput | string
  23908. blobPath?: StringFieldUpdateOperationsInput | string
  23909. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23910. }
  23911. export type QualificationQuestionUpdateWithoutIdeaInput = {
  23912. id?: StringFieldUpdateOperationsInput | string
  23913. workspaceId?: StringFieldUpdateOperationsInput | string
  23914. questionText?: StringFieldUpdateOperationsInput | string
  23915. responseToken?: StringFieldUpdateOperationsInput | string
  23916. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23917. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  23918. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23919. }
  23920. export type QualificationQuestionUncheckedUpdateWithoutIdeaInput = {
  23921. id?: StringFieldUpdateOperationsInput | string
  23922. workspaceId?: StringFieldUpdateOperationsInput | string
  23923. questionText?: StringFieldUpdateOperationsInput | string
  23924. responseToken?: StringFieldUpdateOperationsInput | string
  23925. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23926. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  23927. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23928. }
  23929. export type QualificationQuestionUncheckedUpdateManyWithoutIdeaInput = {
  23930. id?: StringFieldUpdateOperationsInput | string
  23931. workspaceId?: StringFieldUpdateOperationsInput | string
  23932. questionText?: StringFieldUpdateOperationsInput | string
  23933. responseToken?: StringFieldUpdateOperationsInput | string
  23934. askedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  23935. responseText?: NullableStringFieldUpdateOperationsInput | string | null
  23936. answeredAt?: NullableDateTimeFieldUpdateOperationsInput | Date | string | null
  23937. }
  23938. export type AccountCreateManyUserInput = {
  23939. id?: string
  23940. type: string
  23941. provider: string
  23942. providerAccountId: string
  23943. refresh_token?: string | null
  23944. access_token?: string | null
  23945. expires_at?: number | null
  23946. token_type?: string | null
  23947. scope?: string | null
  23948. id_token?: string | null
  23949. session_state?: string | null
  23950. refresh_token_expires_in?: number | null
  23951. }
  23952. export type SessionCreateManyUserInput = {
  23953. id?: string
  23954. sessionToken: string
  23955. expires: Date | string
  23956. }
  23957. export type PostCreateManyCreatedByInput = {
  23958. id?: number
  23959. name: string
  23960. createdAt?: Date | string
  23961. updatedAt?: Date | string
  23962. }
  23963. export type AppFeedbackCreateManyUserInput = {
  23964. id?: string
  23965. workspaceId: string
  23966. type: $Enums.FeedbackType
  23967. message: string
  23968. createdAt?: Date | string
  23969. }
  23970. export type AccountUpdateWithoutUserInput = {
  23971. id?: StringFieldUpdateOperationsInput | string
  23972. type?: StringFieldUpdateOperationsInput | string
  23973. provider?: StringFieldUpdateOperationsInput | string
  23974. providerAccountId?: StringFieldUpdateOperationsInput | string
  23975. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  23976. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  23977. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  23978. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  23979. scope?: NullableStringFieldUpdateOperationsInput | string | null
  23980. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  23981. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  23982. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  23983. }
  23984. export type AccountUncheckedUpdateWithoutUserInput = {
  23985. id?: StringFieldUpdateOperationsInput | string
  23986. type?: StringFieldUpdateOperationsInput | string
  23987. provider?: StringFieldUpdateOperationsInput | string
  23988. providerAccountId?: StringFieldUpdateOperationsInput | string
  23989. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  23990. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  23991. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  23992. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  23993. scope?: NullableStringFieldUpdateOperationsInput | string | null
  23994. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  23995. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  23996. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  23997. }
  23998. export type AccountUncheckedUpdateManyWithoutUserInput = {
  23999. id?: StringFieldUpdateOperationsInput | string
  24000. type?: StringFieldUpdateOperationsInput | string
  24001. provider?: StringFieldUpdateOperationsInput | string
  24002. providerAccountId?: StringFieldUpdateOperationsInput | string
  24003. refresh_token?: NullableStringFieldUpdateOperationsInput | string | null
  24004. access_token?: NullableStringFieldUpdateOperationsInput | string | null
  24005. expires_at?: NullableIntFieldUpdateOperationsInput | number | null
  24006. token_type?: NullableStringFieldUpdateOperationsInput | string | null
  24007. scope?: NullableStringFieldUpdateOperationsInput | string | null
  24008. id_token?: NullableStringFieldUpdateOperationsInput | string | null
  24009. session_state?: NullableStringFieldUpdateOperationsInput | string | null
  24010. refresh_token_expires_in?: NullableIntFieldUpdateOperationsInput | number | null
  24011. }
  24012. export type SessionUpdateWithoutUserInput = {
  24013. id?: StringFieldUpdateOperationsInput | string
  24014. sessionToken?: StringFieldUpdateOperationsInput | string
  24015. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  24016. }
  24017. export type SessionUncheckedUpdateWithoutUserInput = {
  24018. id?: StringFieldUpdateOperationsInput | string
  24019. sessionToken?: StringFieldUpdateOperationsInput | string
  24020. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  24021. }
  24022. export type SessionUncheckedUpdateManyWithoutUserInput = {
  24023. id?: StringFieldUpdateOperationsInput | string
  24024. sessionToken?: StringFieldUpdateOperationsInput | string
  24025. expires?: DateTimeFieldUpdateOperationsInput | Date | string
  24026. }
  24027. export type PostUpdateWithoutCreatedByInput = {
  24028. name?: StringFieldUpdateOperationsInput | string
  24029. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24030. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24031. }
  24032. export type PostUncheckedUpdateWithoutCreatedByInput = {
  24033. id?: IntFieldUpdateOperationsInput | number
  24034. name?: StringFieldUpdateOperationsInput | string
  24035. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24036. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24037. }
  24038. export type PostUncheckedUpdateManyWithoutCreatedByInput = {
  24039. id?: IntFieldUpdateOperationsInput | number
  24040. name?: StringFieldUpdateOperationsInput | string
  24041. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24042. updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24043. }
  24044. export type AppFeedbackUpdateWithoutUserInput = {
  24045. id?: StringFieldUpdateOperationsInput | string
  24046. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  24047. message?: StringFieldUpdateOperationsInput | string
  24048. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24049. workspace?: WorkspaceUpdateOneRequiredWithoutFeedbacksNestedInput
  24050. }
  24051. export type AppFeedbackUncheckedUpdateWithoutUserInput = {
  24052. id?: StringFieldUpdateOperationsInput | string
  24053. workspaceId?: StringFieldUpdateOperationsInput | string
  24054. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  24055. message?: StringFieldUpdateOperationsInput | string
  24056. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24057. }
  24058. export type AppFeedbackUncheckedUpdateManyWithoutUserInput = {
  24059. id?: StringFieldUpdateOperationsInput | string
  24060. workspaceId?: StringFieldUpdateOperationsInput | string
  24061. type?: EnumFeedbackTypeFieldUpdateOperationsInput | $Enums.FeedbackType
  24062. message?: StringFieldUpdateOperationsInput | string
  24063. createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
  24064. }
  24065. /**
  24066. * Batch Payload for updateMany & deleteMany & createMany
  24067. */
  24068. export type BatchPayload = {
  24069. count: number
  24070. }
  24071. /**
  24072. * DMMF
  24073. */
  24074. export const dmmf: runtime.BaseDMMF
  24075. }