generated-types.ts 214 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448
  1. /* tslint:disable */
  2. import { GraphQLResolveInfo } from 'graphql';
  3. export type Resolver<Result, Parent = any, Context = any, Args = any> = (
  4. parent: Parent,
  5. args: Args,
  6. context: Context,
  7. info: GraphQLResolveInfo,
  8. ) => Promise<Result> | Result;
  9. export type SubscriptionResolver<Result, Parent = any, Context = any, Args = any> = {
  10. subscribe<R = Result, P = Parent>(
  11. parent: P,
  12. args: Args,
  13. context: Context,
  14. info: GraphQLResolveInfo,
  15. ): AsyncIterator<R | Result>;
  16. resolve?<R = Result, P = Parent>(
  17. parent: P,
  18. args: Args,
  19. context: Context,
  20. info: GraphQLResolveInfo,
  21. ): R | Result | Promise<R | Result>;
  22. };
  23. export type DateTime = any;
  24. export type Json = any;
  25. export type Upload = any;
  26. export interface PaginatedList {
  27. items: Node[];
  28. totalItems: number;
  29. }
  30. export interface Node {
  31. id: string;
  32. }
  33. export interface Query {
  34. administrators: AdministratorList;
  35. administrator?: Administrator | null;
  36. assets: AssetList;
  37. asset?: Asset | null;
  38. me?: CurrentUser | null;
  39. channels: Channel[];
  40. channel?: Channel | null;
  41. activeChannel: Channel;
  42. config: Config;
  43. countries: CountryList;
  44. country?: Country | null;
  45. availableCountries: Country[];
  46. customerGroups: CustomerGroup[];
  47. customerGroup?: CustomerGroup | null;
  48. customers: CustomerList;
  49. customer?: Customer | null;
  50. activeCustomer?: Customer | null;
  51. facets: FacetList;
  52. facet?: Facet | null;
  53. globalSettings: GlobalSettings;
  54. order?: Order | null;
  55. activeOrder?: Order | null;
  56. orderByCode?: Order | null;
  57. nextOrderStates: string[];
  58. orders: OrderList;
  59. eligibleShippingMethods: ShippingMethodQuote[];
  60. paymentMethods: PaymentMethodList;
  61. paymentMethod?: PaymentMethod | null;
  62. productCategories: ProductCategoryList;
  63. productCategory?: ProductCategory | null;
  64. productOptionGroups: ProductOptionGroup[];
  65. productOptionGroup?: ProductOptionGroup | null;
  66. products: ProductList;
  67. product?: Product | null;
  68. promotion?: Promotion | null;
  69. promotions: PromotionList;
  70. adjustmentOperations: AdjustmentOperations;
  71. roles: RoleList;
  72. role?: Role | null;
  73. search: SearchResponse;
  74. shippingMethods: ShippingMethodList;
  75. shippingMethod?: ShippingMethod | null;
  76. shippingEligibilityCheckers: AdjustmentOperation[];
  77. shippingCalculators: AdjustmentOperation[];
  78. taxCategories: TaxCategory[];
  79. taxCategory?: TaxCategory | null;
  80. taxRates: TaxRateList;
  81. taxRate?: TaxRate | null;
  82. zones: Zone[];
  83. zone?: Zone | null;
  84. temp__?: boolean | null;
  85. networkStatus: NetworkStatus;
  86. userStatus: UserStatus;
  87. uiState: UiState;
  88. }
  89. export interface AdministratorList extends PaginatedList {
  90. items: Administrator[];
  91. totalItems: number;
  92. }
  93. export interface Administrator extends Node {
  94. id: string;
  95. createdAt: DateTime;
  96. updatedAt: DateTime;
  97. firstName: string;
  98. lastName: string;
  99. emailAddress: string;
  100. user: User;
  101. }
  102. export interface User extends Node {
  103. id: string;
  104. createdAt: DateTime;
  105. updatedAt: DateTime;
  106. identifier: string;
  107. passwordHash: string;
  108. verified: boolean;
  109. roles: Role[];
  110. lastLogin?: string | null;
  111. customFields?: Json | null;
  112. }
  113. export interface Role extends Node {
  114. id: string;
  115. createdAt: DateTime;
  116. updatedAt: DateTime;
  117. code: string;
  118. description: string;
  119. permissions: Permission[];
  120. channels: Channel[];
  121. }
  122. export interface Channel extends Node {
  123. id: string;
  124. createdAt: DateTime;
  125. updatedAt: DateTime;
  126. code: string;
  127. token: string;
  128. defaultTaxZone?: Zone | null;
  129. defaultShippingZone?: Zone | null;
  130. defaultLanguageCode: LanguageCode;
  131. currencyCode: CurrencyCode;
  132. pricesIncludeTax: boolean;
  133. }
  134. export interface Zone extends Node {
  135. id: string;
  136. createdAt: DateTime;
  137. updatedAt: DateTime;
  138. name: string;
  139. members: Country[];
  140. }
  141. export interface Country extends Node {
  142. id: string;
  143. languageCode: LanguageCode;
  144. code: string;
  145. name: string;
  146. enabled: boolean;
  147. translations: CountryTranslation[];
  148. }
  149. export interface CountryTranslation {
  150. id: string;
  151. createdAt: DateTime;
  152. updatedAt: DateTime;
  153. languageCode: LanguageCode;
  154. name: string;
  155. }
  156. export interface AssetList extends PaginatedList {
  157. items: Asset[];
  158. totalItems: number;
  159. }
  160. export interface Asset extends Node {
  161. id: string;
  162. name: string;
  163. type: AssetType;
  164. fileSize: number;
  165. mimeType: string;
  166. source: string;
  167. preview: string;
  168. }
  169. export interface CurrentUser {
  170. id: string;
  171. identifier: string;
  172. channelTokens: string[];
  173. }
  174. export interface Config {
  175. customFields?: Json | null;
  176. }
  177. export interface CountryList extends PaginatedList {
  178. items: Country[];
  179. totalItems: number;
  180. }
  181. export interface CustomerGroup extends Node {
  182. id: string;
  183. createdAt: DateTime;
  184. updatedAt: DateTime;
  185. name: string;
  186. }
  187. export interface CustomerList extends PaginatedList {
  188. items: Customer[];
  189. totalItems: number;
  190. }
  191. export interface Customer extends Node {
  192. id: string;
  193. createdAt: DateTime;
  194. updatedAt: DateTime;
  195. title?: string | null;
  196. firstName: string;
  197. lastName: string;
  198. phoneNumber?: string | null;
  199. emailAddress: string;
  200. addresses?: Address[] | null;
  201. orders: OrderList;
  202. user?: User | null;
  203. customFields?: Json | null;
  204. }
  205. export interface Address extends Node {
  206. id: string;
  207. createdAt: DateTime;
  208. updatedAt: DateTime;
  209. fullName?: string | null;
  210. company?: string | null;
  211. streetLine1: string;
  212. streetLine2?: string | null;
  213. city?: string | null;
  214. province?: string | null;
  215. postalCode?: string | null;
  216. country: Country;
  217. phoneNumber?: string | null;
  218. defaultShippingAddress?: boolean | null;
  219. defaultBillingAddress?: boolean | null;
  220. customFields?: Json | null;
  221. }
  222. export interface OrderList extends PaginatedList {
  223. items: Order[];
  224. totalItems: number;
  225. }
  226. export interface Order extends Node {
  227. id: string;
  228. createdAt: DateTime;
  229. updatedAt: DateTime;
  230. code: string;
  231. state: string;
  232. active: boolean;
  233. customer?: Customer | null;
  234. shippingAddress?: ShippingAddress | null;
  235. billingAddress?: BillingAddress | null;
  236. lines: OrderLine[];
  237. adjustments: Adjustment[];
  238. payments?: Payment[] | null;
  239. subTotalBeforeTax: number;
  240. subTotal: number;
  241. currencyCode: CurrencyCode;
  242. shipping: number;
  243. shippingMethod?: ShippingMethod | null;
  244. totalBeforeTax: number;
  245. total: number;
  246. }
  247. export interface ShippingAddress {
  248. fullName?: string | null;
  249. company?: string | null;
  250. streetLine1?: string | null;
  251. streetLine2?: string | null;
  252. city?: string | null;
  253. province?: string | null;
  254. postalCode?: string | null;
  255. country?: string | null;
  256. countryCode?: string | null;
  257. phoneNumber?: string | null;
  258. }
  259. export interface BillingAddress {
  260. fullName?: string | null;
  261. company?: string | null;
  262. streetLine1?: string | null;
  263. streetLine2?: string | null;
  264. city?: string | null;
  265. province?: string | null;
  266. postalCode?: string | null;
  267. country?: string | null;
  268. countryCode?: string | null;
  269. phoneNumber?: string | null;
  270. }
  271. export interface OrderLine extends Node {
  272. id: string;
  273. createdAt: DateTime;
  274. updatedAt: DateTime;
  275. productVariant: ProductVariant;
  276. featuredAsset?: Asset | null;
  277. unitPrice: number;
  278. unitPriceWithTax: number;
  279. quantity: number;
  280. items: OrderItem[];
  281. totalPrice: number;
  282. adjustments: Adjustment[];
  283. order: Order;
  284. }
  285. export interface ProductVariant extends Node {
  286. id: string;
  287. createdAt: DateTime;
  288. updatedAt: DateTime;
  289. languageCode: LanguageCode;
  290. sku: string;
  291. name: string;
  292. featuredAsset?: Asset | null;
  293. assets: Asset[];
  294. price: number;
  295. currencyCode: CurrencyCode;
  296. priceIncludesTax: boolean;
  297. priceWithTax: number;
  298. taxRateApplied: TaxRate;
  299. taxCategory: TaxCategory;
  300. options: ProductOption[];
  301. facetValues: FacetValue[];
  302. translations: ProductVariantTranslation[];
  303. customFields?: Json | null;
  304. }
  305. export interface TaxRate extends Node {
  306. id: string;
  307. createdAt: DateTime;
  308. updatedAt: DateTime;
  309. name: string;
  310. enabled: boolean;
  311. value: number;
  312. category: TaxCategory;
  313. zone: Zone;
  314. customerGroup?: CustomerGroup | null;
  315. }
  316. export interface TaxCategory extends Node {
  317. id: string;
  318. createdAt: DateTime;
  319. updatedAt: DateTime;
  320. name: string;
  321. }
  322. export interface ProductOption extends Node {
  323. id: string;
  324. createdAt: DateTime;
  325. updatedAt: DateTime;
  326. languageCode?: LanguageCode | null;
  327. code?: string | null;
  328. name?: string | null;
  329. translations: ProductOptionTranslation[];
  330. customFields?: Json | null;
  331. }
  332. export interface ProductOptionTranslation {
  333. id: string;
  334. createdAt: DateTime;
  335. updatedAt: DateTime;
  336. languageCode: LanguageCode;
  337. name: string;
  338. }
  339. export interface FacetValue extends Node {
  340. id: string;
  341. createdAt: DateTime;
  342. updatedAt: DateTime;
  343. languageCode: LanguageCode;
  344. facet: Facet;
  345. name: string;
  346. code: string;
  347. translations: FacetValueTranslation[];
  348. customFields?: Json | null;
  349. }
  350. export interface Facet extends Node {
  351. id: string;
  352. createdAt: DateTime;
  353. updatedAt: DateTime;
  354. languageCode: LanguageCode;
  355. name: string;
  356. code: string;
  357. values: FacetValue[];
  358. translations: FacetTranslation[];
  359. customFields?: Json | null;
  360. }
  361. export interface FacetTranslation {
  362. id: string;
  363. createdAt: DateTime;
  364. updatedAt: DateTime;
  365. languageCode: LanguageCode;
  366. name: string;
  367. }
  368. export interface FacetValueTranslation {
  369. id: string;
  370. createdAt: DateTime;
  371. updatedAt: DateTime;
  372. languageCode: LanguageCode;
  373. name: string;
  374. }
  375. export interface ProductVariantTranslation {
  376. id: string;
  377. createdAt: DateTime;
  378. updatedAt: DateTime;
  379. languageCode: LanguageCode;
  380. name: string;
  381. }
  382. export interface OrderItem extends Node {
  383. id: string;
  384. createdAt: DateTime;
  385. updatedAt: DateTime;
  386. unitPrice: number;
  387. unitPriceWithTax: number;
  388. unitPriceIncludesTax: boolean;
  389. taxRate: number;
  390. adjustments: Adjustment[];
  391. }
  392. export interface Adjustment {
  393. adjustmentSource: string;
  394. type: AdjustmentType;
  395. description: string;
  396. amount: number;
  397. }
  398. export interface Payment extends Node {
  399. id: string;
  400. createdAt: DateTime;
  401. updatedAt: DateTime;
  402. method: string;
  403. amount: number;
  404. state: string;
  405. transactionId?: string | null;
  406. metadata?: Json | null;
  407. }
  408. export interface ShippingMethod extends Node {
  409. id: string;
  410. createdAt: DateTime;
  411. updatedAt: DateTime;
  412. code: string;
  413. description: string;
  414. checker: AdjustmentOperation;
  415. calculator: AdjustmentOperation;
  416. }
  417. export interface AdjustmentOperation {
  418. code: string;
  419. args: ConfigArg[];
  420. description: string;
  421. }
  422. export interface ConfigArg {
  423. name: string;
  424. type: string;
  425. value?: string | null;
  426. }
  427. export interface FacetList extends PaginatedList {
  428. items: Facet[];
  429. totalItems: number;
  430. }
  431. export interface GlobalSettings {
  432. id: string;
  433. createdAt: DateTime;
  434. updatedAt: DateTime;
  435. availableLanguages: LanguageCode[];
  436. serverConfig: ServerConfig;
  437. customFields?: GlobalSettingsCustomFields | null;
  438. }
  439. export interface ServerConfig {
  440. customFields?: Json | null;
  441. }
  442. export interface GlobalSettingsCustomFields {
  443. royalMailId?: string | null;
  444. }
  445. export interface ShippingMethodQuote {
  446. id: string;
  447. price: number;
  448. description: string;
  449. }
  450. export interface PaymentMethodList extends PaginatedList {
  451. items: PaymentMethod[];
  452. totalItems: number;
  453. }
  454. export interface PaymentMethod extends Node {
  455. id: string;
  456. createdAt: DateTime;
  457. updatedAt: DateTime;
  458. code: string;
  459. enabled: boolean;
  460. configArgs: ConfigArg[];
  461. }
  462. export interface ProductCategoryList extends PaginatedList {
  463. items: ProductCategory[];
  464. totalItems: number;
  465. }
  466. export interface ProductCategory extends Node {
  467. id: string;
  468. createdAt: DateTime;
  469. updatedAt: DateTime;
  470. languageCode?: LanguageCode | null;
  471. name: string;
  472. position: number;
  473. description: string;
  474. featuredAsset?: Asset | null;
  475. assets: Asset[];
  476. parent: ProductCategory;
  477. children?: ProductCategory[] | null;
  478. facetValues: FacetValue[];
  479. descendantFacetValues: FacetValue[];
  480. translations: ProductCategoryTranslation[];
  481. customFields?: Json | null;
  482. }
  483. export interface ProductCategoryTranslation {
  484. id: string;
  485. createdAt: DateTime;
  486. updatedAt: DateTime;
  487. languageCode: LanguageCode;
  488. name: string;
  489. description: string;
  490. }
  491. export interface ProductOptionGroup extends Node {
  492. id: string;
  493. createdAt: DateTime;
  494. updatedAt: DateTime;
  495. languageCode: LanguageCode;
  496. code: string;
  497. name: string;
  498. options: ProductOption[];
  499. translations: ProductOptionGroupTranslation[];
  500. customFields?: Json | null;
  501. }
  502. export interface ProductOptionGroupTranslation {
  503. id: string;
  504. createdAt: DateTime;
  505. updatedAt: DateTime;
  506. languageCode: LanguageCode;
  507. name: string;
  508. }
  509. export interface ProductList extends PaginatedList {
  510. items: Product[];
  511. totalItems: number;
  512. }
  513. export interface Product extends Node {
  514. id: string;
  515. createdAt: DateTime;
  516. updatedAt: DateTime;
  517. languageCode: LanguageCode;
  518. name: string;
  519. slug: string;
  520. description: string;
  521. featuredAsset?: Asset | null;
  522. assets: Asset[];
  523. variants: ProductVariant[];
  524. optionGroups: ProductOptionGroup[];
  525. facetValues: FacetValue[];
  526. translations: ProductTranslation[];
  527. customFields?: Json | null;
  528. }
  529. export interface ProductTranslation {
  530. id: string;
  531. createdAt: DateTime;
  532. updatedAt: DateTime;
  533. languageCode: LanguageCode;
  534. name: string;
  535. slug: string;
  536. description: string;
  537. }
  538. export interface Promotion extends Node {
  539. id: string;
  540. createdAt: DateTime;
  541. updatedAt: DateTime;
  542. name: string;
  543. enabled: boolean;
  544. conditions: AdjustmentOperation[];
  545. actions: AdjustmentOperation[];
  546. }
  547. export interface PromotionList extends PaginatedList {
  548. items: Promotion[];
  549. totalItems: number;
  550. }
  551. export interface AdjustmentOperations {
  552. conditions: AdjustmentOperation[];
  553. actions: AdjustmentOperation[];
  554. }
  555. export interface RoleList extends PaginatedList {
  556. items: Role[];
  557. totalItems: number;
  558. }
  559. export interface SearchResponse {
  560. items: SearchResult[];
  561. totalItems: number;
  562. facetValues: FacetValue[];
  563. }
  564. export interface SearchResult {
  565. sku: string;
  566. productId: string;
  567. productName: string;
  568. productPreview: string;
  569. productVariantId: string;
  570. productVariantName: string;
  571. productVariantPreview: string;
  572. description: string;
  573. facetIds: string[];
  574. facetValueIds: string[];
  575. score: number;
  576. }
  577. export interface ShippingMethodList extends PaginatedList {
  578. items: ShippingMethod[];
  579. totalItems: number;
  580. }
  581. export interface TaxRateList extends PaginatedList {
  582. items: TaxRate[];
  583. totalItems: number;
  584. }
  585. export interface NetworkStatus {
  586. inFlightRequests: number;
  587. }
  588. export interface UserStatus {
  589. username: string;
  590. isLoggedIn: boolean;
  591. loginTime: string;
  592. }
  593. export interface UiState {
  594. language: LanguageCode;
  595. }
  596. export interface Mutation {
  597. createAdministrator: Administrator;
  598. updateAdministrator: Administrator;
  599. assignRoleToAdministrator: Administrator;
  600. createAssets: Asset[];
  601. login: LoginResult;
  602. logout: boolean;
  603. registerCustomerAccount: boolean;
  604. verifyCustomerAccount: LoginResult;
  605. refreshCustomerVerification: boolean;
  606. createChannel: Channel;
  607. updateChannel: Channel;
  608. createCountry: Country;
  609. updateCountry: Country;
  610. deleteCountry: DeletionResponse;
  611. createCustomerGroup: CustomerGroup;
  612. updateCustomerGroup: CustomerGroup;
  613. addCustomersToGroup: CustomerGroup;
  614. removeCustomersFromGroup: CustomerGroup;
  615. createCustomer: Customer;
  616. updateCustomer: Customer;
  617. deleteCustomer: DeletionResponse;
  618. createCustomerAddress: Address;
  619. updateCustomerAddress: Address;
  620. createFacet: Facet;
  621. updateFacet: Facet;
  622. deleteFacet: DeletionResponse;
  623. createFacetValues: FacetValue[];
  624. updateFacetValues: FacetValue[];
  625. deleteFacetValues: DeletionResponse[];
  626. updateGlobalSettings: GlobalSettings;
  627. importProducts?: ImportInfo | null;
  628. addItemToOrder?: Order | null;
  629. removeItemFromOrder?: Order | null;
  630. adjustItemQuantity?: Order | null;
  631. transitionOrderToState?: Order | null;
  632. setOrderShippingAddress?: Order | null;
  633. setOrderShippingMethod?: Order | null;
  634. addPaymentToOrder?: Order | null;
  635. setCustomerForOrder?: Order | null;
  636. updatePaymentMethod: PaymentMethod;
  637. createProductCategory: ProductCategory;
  638. updateProductCategory: ProductCategory;
  639. moveProductCategory: ProductCategory;
  640. createProductOptionGroup: ProductOptionGroup;
  641. updateProductOptionGroup: ProductOptionGroup;
  642. createProduct: Product;
  643. updateProduct: Product;
  644. deleteProduct: DeletionResponse;
  645. addOptionGroupToProduct: Product;
  646. removeOptionGroupFromProduct: Product;
  647. generateVariantsForProduct: Product;
  648. updateProductVariants: (ProductVariant | null)[];
  649. createPromotion: Promotion;
  650. updatePromotion: Promotion;
  651. deletePromotion: DeletionResponse;
  652. createRole: Role;
  653. updateRole: Role;
  654. reindex: SearchReindexResponse;
  655. createShippingMethod: ShippingMethod;
  656. updateShippingMethod: ShippingMethod;
  657. createTaxCategory: TaxCategory;
  658. updateTaxCategory: TaxCategory;
  659. createTaxRate: TaxRate;
  660. updateTaxRate: TaxRate;
  661. createZone: Zone;
  662. updateZone: Zone;
  663. deleteZone: DeletionResponse;
  664. addMembersToZone: Zone;
  665. removeMembersFromZone: Zone;
  666. requestStarted: number;
  667. requestCompleted: number;
  668. setAsLoggedIn: UserStatus;
  669. setAsLoggedOut: UserStatus;
  670. setUiLanguage?: LanguageCode | null;
  671. }
  672. export interface LoginResult {
  673. user: CurrentUser;
  674. }
  675. export interface DeletionResponse {
  676. result: DeletionResult;
  677. message?: string | null;
  678. }
  679. export interface ImportInfo {
  680. errors?: string[] | null;
  681. processed: number;
  682. imported: number;
  683. }
  684. export interface SearchReindexResponse {
  685. success: boolean;
  686. }
  687. export interface AdministratorListOptions {
  688. take?: number | null;
  689. skip?: number | null;
  690. sort?: AdministratorSortParameter | null;
  691. filter?: AdministratorFilterParameter | null;
  692. }
  693. export interface AdministratorSortParameter {
  694. id?: SortOrder | null;
  695. createdAt?: SortOrder | null;
  696. updatedAt?: SortOrder | null;
  697. firstName?: SortOrder | null;
  698. lastName?: SortOrder | null;
  699. emailAddress?: SortOrder | null;
  700. }
  701. export interface AdministratorFilterParameter {
  702. firstName?: StringOperators | null;
  703. lastName?: StringOperators | null;
  704. emailAddress?: StringOperators | null;
  705. createdAt?: DateOperators | null;
  706. updatedAt?: DateOperators | null;
  707. }
  708. export interface StringOperators {
  709. eq?: string | null;
  710. contains?: string | null;
  711. }
  712. export interface DateOperators {
  713. eq?: DateTime | null;
  714. before?: DateTime | null;
  715. after?: DateTime | null;
  716. between?: DateRange | null;
  717. }
  718. export interface DateRange {
  719. start: DateTime;
  720. end: DateTime;
  721. }
  722. export interface AssetListOptions {
  723. take?: number | null;
  724. skip?: number | null;
  725. sort?: AssetSortParameter | null;
  726. filter?: AssetFilterParameter | null;
  727. }
  728. export interface AssetSortParameter {
  729. id?: SortOrder | null;
  730. createdAt?: SortOrder | null;
  731. updatedAt?: SortOrder | null;
  732. name?: SortOrder | null;
  733. description?: SortOrder | null;
  734. }
  735. export interface AssetFilterParameter {
  736. name?: StringOperators | null;
  737. description?: StringOperators | null;
  738. type?: StringOperators | null;
  739. createdAt?: DateOperators | null;
  740. updatedAt?: DateOperators | null;
  741. }
  742. export interface CountryListOptions {
  743. take?: number | null;
  744. skip?: number | null;
  745. sort?: CountrySortParameter | null;
  746. filter?: CountryFilterParameter | null;
  747. }
  748. export interface CountrySortParameter {
  749. id?: SortOrder | null;
  750. createdAt?: SortOrder | null;
  751. updatedAt?: SortOrder | null;
  752. code?: SortOrder | null;
  753. name?: SortOrder | null;
  754. enabled?: SortOrder | null;
  755. }
  756. export interface CountryFilterParameter {
  757. code?: StringOperators | null;
  758. name?: StringOperators | null;
  759. enabled?: BooleanOperators | null;
  760. createdAt?: DateOperators | null;
  761. updatedAt?: DateOperators | null;
  762. }
  763. export interface BooleanOperators {
  764. eq?: boolean | null;
  765. }
  766. export interface CustomerListOptions {
  767. take?: number | null;
  768. skip?: number | null;
  769. sort?: CustomerSortParameter | null;
  770. filter?: CustomerFilterParameter | null;
  771. }
  772. export interface CustomerSortParameter {
  773. id?: SortOrder | null;
  774. createdAt?: SortOrder | null;
  775. updatedAt?: SortOrder | null;
  776. firstName?: SortOrder | null;
  777. lastName?: SortOrder | null;
  778. phoneNumber?: SortOrder | null;
  779. emailAddress?: SortOrder | null;
  780. }
  781. export interface CustomerFilterParameter {
  782. firstName?: StringOperators | null;
  783. lastName?: StringOperators | null;
  784. phoneNumber?: StringOperators | null;
  785. emailAddress?: StringOperators | null;
  786. createdAt?: DateOperators | null;
  787. updatedAt?: DateOperators | null;
  788. }
  789. export interface OrderListOptions {
  790. take?: number | null;
  791. skip?: number | null;
  792. sort?: OrderSortParameter | null;
  793. filter?: OrderFilterParameter | null;
  794. }
  795. export interface OrderSortParameter {
  796. id?: SortOrder | null;
  797. createdAt?: SortOrder | null;
  798. updatedAt?: SortOrder | null;
  799. code?: SortOrder | null;
  800. }
  801. export interface OrderFilterParameter {
  802. code?: StringOperators | null;
  803. createdAt?: DateOperators | null;
  804. updatedAt?: DateOperators | null;
  805. }
  806. export interface FacetListOptions {
  807. take?: number | null;
  808. skip?: number | null;
  809. sort?: FacetSortParameter | null;
  810. filter?: FacetFilterParameter | null;
  811. }
  812. export interface FacetSortParameter {
  813. id?: SortOrder | null;
  814. createdAt?: SortOrder | null;
  815. updatedAt?: SortOrder | null;
  816. name?: SortOrder | null;
  817. code?: SortOrder | null;
  818. }
  819. export interface FacetFilterParameter {
  820. name?: StringOperators | null;
  821. code?: StringOperators | null;
  822. createdAt?: DateOperators | null;
  823. updatedAt?: DateOperators | null;
  824. }
  825. export interface PaymentMethodListOptions {
  826. take?: number | null;
  827. skip?: number | null;
  828. sort?: PaymentMethodSortParameter | null;
  829. filter?: PaymentMethodFilterParameter | null;
  830. }
  831. export interface PaymentMethodSortParameter {
  832. id?: SortOrder | null;
  833. createdAt?: SortOrder | null;
  834. updatedAt?: SortOrder | null;
  835. code?: SortOrder | null;
  836. }
  837. export interface PaymentMethodFilterParameter {
  838. code?: StringOperators | null;
  839. createdAt?: DateOperators | null;
  840. updatedAt?: DateOperators | null;
  841. }
  842. export interface ProductCategoryListOptions {
  843. take?: number | null;
  844. skip?: number | null;
  845. sort?: ProductCategorySortParameter | null;
  846. filter?: ProductCategoryFilterParameter | null;
  847. }
  848. export interface ProductCategorySortParameter {
  849. id?: SortOrder | null;
  850. createdAt?: SortOrder | null;
  851. updatedAt?: SortOrder | null;
  852. name?: SortOrder | null;
  853. description?: SortOrder | null;
  854. }
  855. export interface ProductCategoryFilterParameter {
  856. name?: StringOperators | null;
  857. description?: StringOperators | null;
  858. createdAt?: DateOperators | null;
  859. updatedAt?: DateOperators | null;
  860. }
  861. export interface ProductListOptions {
  862. take?: number | null;
  863. skip?: number | null;
  864. sort?: ProductSortParameter | null;
  865. filter?: ProductFilterParameter | null;
  866. categoryId?: string | null;
  867. }
  868. export interface ProductSortParameter {
  869. id?: SortOrder | null;
  870. createdAt?: SortOrder | null;
  871. updatedAt?: SortOrder | null;
  872. name?: SortOrder | null;
  873. slug?: SortOrder | null;
  874. description?: SortOrder | null;
  875. image?: SortOrder | null;
  876. }
  877. export interface ProductFilterParameter {
  878. name?: StringOperators | null;
  879. slug?: StringOperators | null;
  880. description?: StringOperators | null;
  881. createdAt?: DateOperators | null;
  882. updatedAt?: DateOperators | null;
  883. }
  884. export interface PromotionListOptions {
  885. take?: number | null;
  886. skip?: number | null;
  887. sort?: PromotionSortParameter | null;
  888. filter?: PromotionFilterParameter | null;
  889. }
  890. export interface PromotionSortParameter {
  891. id?: SortOrder | null;
  892. createdAt?: SortOrder | null;
  893. updatedAt?: SortOrder | null;
  894. name?: SortOrder | null;
  895. }
  896. export interface PromotionFilterParameter {
  897. name?: StringOperators | null;
  898. createdAt?: DateOperators | null;
  899. updatedAt?: DateOperators | null;
  900. type?: StringOperators | null;
  901. }
  902. export interface RoleListOptions {
  903. take?: number | null;
  904. skip?: number | null;
  905. sort?: RoleSortParameter | null;
  906. filter?: RoleFilterParameter | null;
  907. }
  908. export interface RoleSortParameter {
  909. id?: SortOrder | null;
  910. createdAt?: SortOrder | null;
  911. updatedAt?: SortOrder | null;
  912. code?: SortOrder | null;
  913. description?: SortOrder | null;
  914. }
  915. export interface RoleFilterParameter {
  916. code?: StringOperators | null;
  917. description?: StringOperators | null;
  918. createdAt?: DateOperators | null;
  919. updatedAt?: DateOperators | null;
  920. }
  921. export interface SearchInput {
  922. term?: string | null;
  923. facetIds?: string[] | null;
  924. groupByProduct?: boolean | null;
  925. take?: number | null;
  926. skip?: number | null;
  927. }
  928. export interface ShippingMethodListOptions {
  929. take?: number | null;
  930. skip?: number | null;
  931. sort?: ShippingMethodSortParameter | null;
  932. filter?: ShippingMethodFilterParameter | null;
  933. }
  934. export interface ShippingMethodSortParameter {
  935. id?: SortOrder | null;
  936. createdAt?: SortOrder | null;
  937. updatedAt?: SortOrder | null;
  938. code?: SortOrder | null;
  939. description?: SortOrder | null;
  940. }
  941. export interface ShippingMethodFilterParameter {
  942. code?: StringOperators | null;
  943. description?: StringOperators | null;
  944. createdAt?: DateOperators | null;
  945. updatedAt?: DateOperators | null;
  946. }
  947. export interface TaxRateListOptions {
  948. take?: number | null;
  949. skip?: number | null;
  950. sort?: TaxRateSortParameter | null;
  951. filter?: TaxRateFilterParameter | null;
  952. }
  953. export interface TaxRateSortParameter {
  954. id?: SortOrder | null;
  955. createdAt?: SortOrder | null;
  956. updatedAt?: SortOrder | null;
  957. name?: SortOrder | null;
  958. enabled?: SortOrder | null;
  959. }
  960. export interface TaxRateFilterParameter {
  961. code?: StringOperators | null;
  962. name?: StringOperators | null;
  963. enabled?: BooleanOperators | null;
  964. createdAt?: DateOperators | null;
  965. updatedAt?: DateOperators | null;
  966. }
  967. export interface CreateAdministratorInput {
  968. firstName: string;
  969. lastName: string;
  970. emailAddress: string;
  971. password: string;
  972. roleIds: string[];
  973. }
  974. export interface UpdateAdministratorInput {
  975. id: string;
  976. firstName?: string | null;
  977. lastName?: string | null;
  978. emailAddress?: string | null;
  979. password?: string | null;
  980. roleIds?: string[] | null;
  981. }
  982. export interface CreateAssetInput {
  983. file: Upload;
  984. }
  985. export interface RegisterCustomerInput {
  986. emailAddress: string;
  987. title?: string | null;
  988. firstName?: string | null;
  989. lastName?: string | null;
  990. }
  991. export interface CreateChannelInput {
  992. code: string;
  993. token: string;
  994. defaultLanguageCode: LanguageCode;
  995. pricesIncludeTax: boolean;
  996. currencyCode: CurrencyCode;
  997. defaultTaxZoneId?: string | null;
  998. defaultShippingZoneId?: string | null;
  999. }
  1000. export interface UpdateChannelInput {
  1001. id: string;
  1002. code?: string | null;
  1003. token?: string | null;
  1004. defaultLanguageCode?: LanguageCode | null;
  1005. pricesIncludeTax?: boolean | null;
  1006. currencyCode?: CurrencyCode | null;
  1007. defaultTaxZoneId?: string | null;
  1008. defaultShippingZoneId?: string | null;
  1009. }
  1010. export interface CreateCountryInput {
  1011. code: string;
  1012. translations: CountryTranslationInput[];
  1013. enabled: boolean;
  1014. }
  1015. export interface CountryTranslationInput {
  1016. id?: string | null;
  1017. languageCode: LanguageCode;
  1018. name?: string | null;
  1019. }
  1020. export interface UpdateCountryInput {
  1021. id: string;
  1022. code?: string | null;
  1023. translations?: CountryTranslationInput[] | null;
  1024. enabled?: boolean | null;
  1025. }
  1026. export interface CreateCustomerGroupInput {
  1027. name: string;
  1028. customerIds?: string[] | null;
  1029. }
  1030. export interface UpdateCustomerGroupInput {
  1031. id: string;
  1032. name?: string | null;
  1033. }
  1034. export interface CreateCustomerInput {
  1035. title?: string | null;
  1036. firstName: string;
  1037. lastName: string;
  1038. phoneNumber?: string | null;
  1039. emailAddress: string;
  1040. customFields?: Json | null;
  1041. }
  1042. export interface UpdateCustomerInput {
  1043. id: string;
  1044. title?: string | null;
  1045. firstName?: string | null;
  1046. lastName?: string | null;
  1047. phoneNumber?: string | null;
  1048. emailAddress?: string | null;
  1049. customFields?: Json | null;
  1050. }
  1051. export interface CreateAddressInput {
  1052. fullName?: string | null;
  1053. company?: string | null;
  1054. streetLine1: string;
  1055. streetLine2?: string | null;
  1056. city?: string | null;
  1057. province?: string | null;
  1058. postalCode?: string | null;
  1059. countryCode: string;
  1060. phoneNumber?: string | null;
  1061. defaultShippingAddress?: boolean | null;
  1062. defaultBillingAddress?: boolean | null;
  1063. customFields?: Json | null;
  1064. }
  1065. export interface UpdateAddressInput {
  1066. id: string;
  1067. fullName?: string | null;
  1068. company?: string | null;
  1069. streetLine1?: string | null;
  1070. streetLine2?: string | null;
  1071. city?: string | null;
  1072. province?: string | null;
  1073. postalCode?: string | null;
  1074. countryCode?: string | null;
  1075. phoneNumber?: string | null;
  1076. defaultShippingAddress?: boolean | null;
  1077. defaultBillingAddress?: boolean | null;
  1078. customFields?: Json | null;
  1079. }
  1080. export interface CreateFacetInput {
  1081. code: string;
  1082. translations: FacetTranslationInput[];
  1083. values?: CreateFacetValueWithFacetInput[] | null;
  1084. customFields?: Json | null;
  1085. }
  1086. export interface FacetTranslationInput {
  1087. id?: string | null;
  1088. languageCode: LanguageCode;
  1089. name?: string | null;
  1090. customFields?: Json | null;
  1091. }
  1092. export interface CreateFacetValueWithFacetInput {
  1093. code: string;
  1094. translations: FacetValueTranslationInput[];
  1095. }
  1096. export interface FacetValueTranslationInput {
  1097. id?: string | null;
  1098. languageCode: LanguageCode;
  1099. name?: string | null;
  1100. customFields?: Json | null;
  1101. }
  1102. export interface UpdateFacetInput {
  1103. id: string;
  1104. code?: string | null;
  1105. translations?: FacetTranslationInput[] | null;
  1106. customFields?: Json | null;
  1107. }
  1108. export interface CreateFacetValueInput {
  1109. facetId: string;
  1110. code: string;
  1111. translations: FacetValueTranslationInput[];
  1112. customFields?: Json | null;
  1113. }
  1114. export interface UpdateFacetValueInput {
  1115. id: string;
  1116. code?: string | null;
  1117. translations?: FacetValueTranslationInput[] | null;
  1118. customFields?: Json | null;
  1119. }
  1120. export interface UpdateGlobalSettingsInput {
  1121. availableLanguages?: LanguageCode[] | null;
  1122. customFields?: UpdateGlobalSettingsCustomFieldsInput | null;
  1123. }
  1124. export interface UpdateGlobalSettingsCustomFieldsInput {
  1125. royalMailId?: string | null;
  1126. }
  1127. export interface PaymentInput {
  1128. method: string;
  1129. metadata: Json;
  1130. }
  1131. export interface UpdatePaymentMethodInput {
  1132. id: string;
  1133. code?: string | null;
  1134. enabled?: boolean | null;
  1135. configArgs?: ConfigArgInput[] | null;
  1136. }
  1137. export interface ConfigArgInput {
  1138. name: string;
  1139. value: string;
  1140. }
  1141. export interface CreateProductCategoryInput {
  1142. featuredAssetId?: string | null;
  1143. assetIds?: string[] | null;
  1144. parentId?: string | null;
  1145. facetValueIds?: string[] | null;
  1146. translations: ProductCategoryTranslationInput[];
  1147. customFields?: Json | null;
  1148. }
  1149. export interface ProductCategoryTranslationInput {
  1150. id?: string | null;
  1151. languageCode: LanguageCode;
  1152. name?: string | null;
  1153. description?: string | null;
  1154. customFields?: Json | null;
  1155. }
  1156. export interface UpdateProductCategoryInput {
  1157. id: string;
  1158. featuredAssetId?: string | null;
  1159. parentId?: string | null;
  1160. assetIds?: string[] | null;
  1161. facetValueIds?: string[] | null;
  1162. translations: ProductCategoryTranslationInput[];
  1163. customFields?: Json | null;
  1164. }
  1165. export interface MoveProductCategoryInput {
  1166. categoryId: string;
  1167. parentId: string;
  1168. index: number;
  1169. }
  1170. export interface CreateProductOptionGroupInput {
  1171. code: string;
  1172. translations: ProductOptionGroupTranslationInput[];
  1173. options: CreateProductOptionInput[];
  1174. customFields?: Json | null;
  1175. }
  1176. export interface ProductOptionGroupTranslationInput {
  1177. id?: string | null;
  1178. languageCode: LanguageCode;
  1179. name?: string | null;
  1180. customFields?: Json | null;
  1181. }
  1182. export interface CreateProductOptionInput {
  1183. code: string;
  1184. translations: ProductOptionGroupTranslationInput[];
  1185. customFields?: Json | null;
  1186. }
  1187. export interface UpdateProductOptionGroupInput {
  1188. id: string;
  1189. code?: string | null;
  1190. translations?: ProductOptionGroupTranslationInput[] | null;
  1191. customFields?: Json | null;
  1192. }
  1193. export interface CreateProductInput {
  1194. featuredAssetId?: string | null;
  1195. assetIds?: string[] | null;
  1196. facetValueIds?: string[] | null;
  1197. translations: ProductTranslationInput[];
  1198. customFields?: Json | null;
  1199. }
  1200. export interface ProductTranslationInput {
  1201. id?: string | null;
  1202. languageCode: LanguageCode;
  1203. name?: string | null;
  1204. slug?: string | null;
  1205. description?: string | null;
  1206. customFields?: Json | null;
  1207. }
  1208. export interface UpdateProductInput {
  1209. id: string;
  1210. featuredAssetId?: string | null;
  1211. assetIds?: string[] | null;
  1212. facetValueIds?: string[] | null;
  1213. translations?: ProductTranslationInput[] | null;
  1214. customFields?: Json | null;
  1215. }
  1216. export interface UpdateProductVariantInput {
  1217. id: string;
  1218. translations?: ProductVariantTranslationInput[] | null;
  1219. facetValueIds?: string[] | null;
  1220. sku?: string | null;
  1221. taxCategoryId?: string | null;
  1222. price?: number | null;
  1223. featuredAssetId?: string | null;
  1224. assetIds?: string[] | null;
  1225. customFields?: Json | null;
  1226. }
  1227. export interface ProductVariantTranslationInput {
  1228. id?: string | null;
  1229. languageCode: LanguageCode;
  1230. name?: string | null;
  1231. customFields?: Json | null;
  1232. }
  1233. export interface CreatePromotionInput {
  1234. name: string;
  1235. enabled: boolean;
  1236. conditions: AdjustmentOperationInput[];
  1237. actions: AdjustmentOperationInput[];
  1238. }
  1239. export interface AdjustmentOperationInput {
  1240. code: string;
  1241. arguments: ConfigArgInput[];
  1242. }
  1243. export interface UpdatePromotionInput {
  1244. id: string;
  1245. name?: string | null;
  1246. enabled?: boolean | null;
  1247. conditions?: AdjustmentOperationInput[] | null;
  1248. actions?: AdjustmentOperationInput[] | null;
  1249. }
  1250. export interface CreateRoleInput {
  1251. code: string;
  1252. description: string;
  1253. permissions: Permission[];
  1254. }
  1255. export interface UpdateRoleInput {
  1256. id: string;
  1257. code?: string | null;
  1258. description?: string | null;
  1259. permissions?: Permission[] | null;
  1260. }
  1261. export interface CreateShippingMethodInput {
  1262. code: string;
  1263. description: string;
  1264. checker: AdjustmentOperationInput;
  1265. calculator: AdjustmentOperationInput;
  1266. }
  1267. export interface UpdateShippingMethodInput {
  1268. id: string;
  1269. code?: string | null;
  1270. description?: string | null;
  1271. checker?: AdjustmentOperationInput | null;
  1272. calculator?: AdjustmentOperationInput | null;
  1273. }
  1274. export interface CreateTaxCategoryInput {
  1275. name: string;
  1276. }
  1277. export interface UpdateTaxCategoryInput {
  1278. id: string;
  1279. name?: string | null;
  1280. }
  1281. export interface CreateTaxRateInput {
  1282. name: string;
  1283. enabled: boolean;
  1284. value: number;
  1285. categoryId: string;
  1286. zoneId: string;
  1287. customerGroupId?: string | null;
  1288. }
  1289. export interface UpdateTaxRateInput {
  1290. id: string;
  1291. name?: string | null;
  1292. value?: number | null;
  1293. enabled?: boolean | null;
  1294. categoryId?: string | null;
  1295. zoneId?: string | null;
  1296. customerGroupId?: string | null;
  1297. }
  1298. export interface CreateZoneInput {
  1299. name: string;
  1300. memberIds?: string[] | null;
  1301. }
  1302. export interface UpdateZoneInput {
  1303. id: string;
  1304. name?: string | null;
  1305. }
  1306. export interface CreateProductVariantInput {
  1307. translations: ProductVariantTranslationInput[];
  1308. facetValueIds?: string[] | null;
  1309. sku: string;
  1310. price?: number | null;
  1311. taxCategoryId: string;
  1312. optionIds?: string[] | null;
  1313. featuredAssetId?: string | null;
  1314. assetIds?: string[] | null;
  1315. customFields?: Json | null;
  1316. }
  1317. export interface NumberOperators {
  1318. eq?: number | null;
  1319. lt?: number | null;
  1320. lte?: number | null;
  1321. gt?: number | null;
  1322. gte?: number | null;
  1323. between?: NumberRange | null;
  1324. }
  1325. export interface NumberRange {
  1326. start: number;
  1327. end: number;
  1328. }
  1329. export interface ProductOptionTranslationInput {
  1330. id?: string | null;
  1331. languageCode: LanguageCode;
  1332. name?: string | null;
  1333. customFields?: Json | null;
  1334. }
  1335. export interface AdministratorsQueryArgs {
  1336. options?: AdministratorListOptions | null;
  1337. }
  1338. export interface AdministratorQueryArgs {
  1339. id: string;
  1340. }
  1341. export interface AssetsQueryArgs {
  1342. options?: AssetListOptions | null;
  1343. }
  1344. export interface AssetQueryArgs {
  1345. id: string;
  1346. }
  1347. export interface ChannelQueryArgs {
  1348. id: string;
  1349. }
  1350. export interface CountriesQueryArgs {
  1351. options?: CountryListOptions | null;
  1352. }
  1353. export interface CountryQueryArgs {
  1354. id: string;
  1355. }
  1356. export interface CustomerGroupQueryArgs {
  1357. id: string;
  1358. }
  1359. export interface CustomersQueryArgs {
  1360. options?: CustomerListOptions | null;
  1361. }
  1362. export interface CustomerQueryArgs {
  1363. id: string;
  1364. }
  1365. export interface FacetsQueryArgs {
  1366. languageCode?: LanguageCode | null;
  1367. options?: FacetListOptions | null;
  1368. }
  1369. export interface FacetQueryArgs {
  1370. id: string;
  1371. languageCode?: LanguageCode | null;
  1372. }
  1373. export interface OrderQueryArgs {
  1374. id: string;
  1375. }
  1376. export interface OrderByCodeQueryArgs {
  1377. code: string;
  1378. }
  1379. export interface OrdersQueryArgs {
  1380. options?: OrderListOptions | null;
  1381. }
  1382. export interface PaymentMethodsQueryArgs {
  1383. options?: PaymentMethodListOptions | null;
  1384. }
  1385. export interface PaymentMethodQueryArgs {
  1386. id: string;
  1387. }
  1388. export interface ProductCategoriesQueryArgs {
  1389. languageCode?: LanguageCode | null;
  1390. options?: ProductCategoryListOptions | null;
  1391. }
  1392. export interface ProductCategoryQueryArgs {
  1393. id: string;
  1394. languageCode?: LanguageCode | null;
  1395. }
  1396. export interface ProductOptionGroupsQueryArgs {
  1397. languageCode?: LanguageCode | null;
  1398. filterTerm?: string | null;
  1399. }
  1400. export interface ProductOptionGroupQueryArgs {
  1401. id: string;
  1402. languageCode?: LanguageCode | null;
  1403. }
  1404. export interface ProductsQueryArgs {
  1405. languageCode?: LanguageCode | null;
  1406. options?: ProductListOptions | null;
  1407. }
  1408. export interface ProductQueryArgs {
  1409. id: string;
  1410. languageCode?: LanguageCode | null;
  1411. }
  1412. export interface PromotionQueryArgs {
  1413. id: string;
  1414. }
  1415. export interface PromotionsQueryArgs {
  1416. options?: PromotionListOptions | null;
  1417. }
  1418. export interface RolesQueryArgs {
  1419. options?: RoleListOptions | null;
  1420. }
  1421. export interface RoleQueryArgs {
  1422. id: string;
  1423. }
  1424. export interface SearchQueryArgs {
  1425. input: SearchInput;
  1426. }
  1427. export interface ShippingMethodsQueryArgs {
  1428. options?: ShippingMethodListOptions | null;
  1429. }
  1430. export interface ShippingMethodQueryArgs {
  1431. id: string;
  1432. }
  1433. export interface TaxCategoryQueryArgs {
  1434. id: string;
  1435. }
  1436. export interface TaxRatesQueryArgs {
  1437. options?: TaxRateListOptions | null;
  1438. }
  1439. export interface TaxRateQueryArgs {
  1440. id: string;
  1441. }
  1442. export interface ZoneQueryArgs {
  1443. id: string;
  1444. }
  1445. export interface OrdersCustomerArgs {
  1446. options?: OrderListOptions | null;
  1447. }
  1448. export interface CreateAdministratorMutationArgs {
  1449. input: CreateAdministratorInput;
  1450. }
  1451. export interface UpdateAdministratorMutationArgs {
  1452. input: UpdateAdministratorInput;
  1453. }
  1454. export interface AssignRoleToAdministratorMutationArgs {
  1455. administratorId: string;
  1456. roleId: string;
  1457. }
  1458. export interface CreateAssetsMutationArgs {
  1459. input: CreateAssetInput[];
  1460. }
  1461. export interface LoginMutationArgs {
  1462. username: string;
  1463. password: string;
  1464. rememberMe?: boolean | null;
  1465. }
  1466. export interface RegisterCustomerAccountMutationArgs {
  1467. input: RegisterCustomerInput;
  1468. }
  1469. export interface VerifyCustomerAccountMutationArgs {
  1470. token: string;
  1471. password: string;
  1472. }
  1473. export interface RefreshCustomerVerificationMutationArgs {
  1474. emailAddress: string;
  1475. }
  1476. export interface CreateChannelMutationArgs {
  1477. input: CreateChannelInput;
  1478. }
  1479. export interface UpdateChannelMutationArgs {
  1480. input: UpdateChannelInput;
  1481. }
  1482. export interface CreateCountryMutationArgs {
  1483. input: CreateCountryInput;
  1484. }
  1485. export interface UpdateCountryMutationArgs {
  1486. input: UpdateCountryInput;
  1487. }
  1488. export interface DeleteCountryMutationArgs {
  1489. id: string;
  1490. }
  1491. export interface CreateCustomerGroupMutationArgs {
  1492. input: CreateCustomerGroupInput;
  1493. }
  1494. export interface UpdateCustomerGroupMutationArgs {
  1495. input: UpdateCustomerGroupInput;
  1496. }
  1497. export interface AddCustomersToGroupMutationArgs {
  1498. customerGroupId: string;
  1499. customerIds: string[];
  1500. }
  1501. export interface RemoveCustomersFromGroupMutationArgs {
  1502. customerGroupId: string;
  1503. customerIds: string[];
  1504. }
  1505. export interface CreateCustomerMutationArgs {
  1506. input: CreateCustomerInput;
  1507. password?: string | null;
  1508. }
  1509. export interface UpdateCustomerMutationArgs {
  1510. input: UpdateCustomerInput;
  1511. }
  1512. export interface DeleteCustomerMutationArgs {
  1513. id: string;
  1514. }
  1515. export interface CreateCustomerAddressMutationArgs {
  1516. customerId: string;
  1517. input: CreateAddressInput;
  1518. }
  1519. export interface UpdateCustomerAddressMutationArgs {
  1520. input: UpdateAddressInput;
  1521. }
  1522. export interface CreateFacetMutationArgs {
  1523. input: CreateFacetInput;
  1524. }
  1525. export interface UpdateFacetMutationArgs {
  1526. input: UpdateFacetInput;
  1527. }
  1528. export interface DeleteFacetMutationArgs {
  1529. id: string;
  1530. force?: boolean | null;
  1531. }
  1532. export interface CreateFacetValuesMutationArgs {
  1533. input: CreateFacetValueInput[];
  1534. }
  1535. export interface UpdateFacetValuesMutationArgs {
  1536. input: UpdateFacetValueInput[];
  1537. }
  1538. export interface DeleteFacetValuesMutationArgs {
  1539. ids: string[];
  1540. force?: boolean | null;
  1541. }
  1542. export interface UpdateGlobalSettingsMutationArgs {
  1543. input: UpdateGlobalSettingsInput;
  1544. }
  1545. export interface ImportProductsMutationArgs {
  1546. csvFile: Upload;
  1547. }
  1548. export interface AddItemToOrderMutationArgs {
  1549. productVariantId: string;
  1550. quantity: number;
  1551. }
  1552. export interface RemoveItemFromOrderMutationArgs {
  1553. orderItemId: string;
  1554. }
  1555. export interface AdjustItemQuantityMutationArgs {
  1556. orderItemId: string;
  1557. quantity: number;
  1558. }
  1559. export interface TransitionOrderToStateMutationArgs {
  1560. state: string;
  1561. }
  1562. export interface SetOrderShippingAddressMutationArgs {
  1563. input: CreateAddressInput;
  1564. }
  1565. export interface SetOrderShippingMethodMutationArgs {
  1566. shippingMethodId: string;
  1567. }
  1568. export interface AddPaymentToOrderMutationArgs {
  1569. input: PaymentInput;
  1570. }
  1571. export interface SetCustomerForOrderMutationArgs {
  1572. input: CreateCustomerInput;
  1573. }
  1574. export interface UpdatePaymentMethodMutationArgs {
  1575. input: UpdatePaymentMethodInput;
  1576. }
  1577. export interface CreateProductCategoryMutationArgs {
  1578. input: CreateProductCategoryInput;
  1579. }
  1580. export interface UpdateProductCategoryMutationArgs {
  1581. input: UpdateProductCategoryInput;
  1582. }
  1583. export interface MoveProductCategoryMutationArgs {
  1584. input: MoveProductCategoryInput;
  1585. }
  1586. export interface CreateProductOptionGroupMutationArgs {
  1587. input: CreateProductOptionGroupInput;
  1588. }
  1589. export interface UpdateProductOptionGroupMutationArgs {
  1590. input: UpdateProductOptionGroupInput;
  1591. }
  1592. export interface CreateProductMutationArgs {
  1593. input: CreateProductInput;
  1594. }
  1595. export interface UpdateProductMutationArgs {
  1596. input: UpdateProductInput;
  1597. }
  1598. export interface DeleteProductMutationArgs {
  1599. id: string;
  1600. }
  1601. export interface AddOptionGroupToProductMutationArgs {
  1602. productId: string;
  1603. optionGroupId: string;
  1604. }
  1605. export interface RemoveOptionGroupFromProductMutationArgs {
  1606. productId: string;
  1607. optionGroupId: string;
  1608. }
  1609. export interface GenerateVariantsForProductMutationArgs {
  1610. productId: string;
  1611. defaultTaxCategoryId?: string | null;
  1612. defaultPrice?: number | null;
  1613. defaultSku?: string | null;
  1614. }
  1615. export interface UpdateProductVariantsMutationArgs {
  1616. input: UpdateProductVariantInput[];
  1617. }
  1618. export interface CreatePromotionMutationArgs {
  1619. input: CreatePromotionInput;
  1620. }
  1621. export interface UpdatePromotionMutationArgs {
  1622. input: UpdatePromotionInput;
  1623. }
  1624. export interface DeletePromotionMutationArgs {
  1625. id: string;
  1626. }
  1627. export interface CreateRoleMutationArgs {
  1628. input: CreateRoleInput;
  1629. }
  1630. export interface UpdateRoleMutationArgs {
  1631. input: UpdateRoleInput;
  1632. }
  1633. export interface CreateShippingMethodMutationArgs {
  1634. input: CreateShippingMethodInput;
  1635. }
  1636. export interface UpdateShippingMethodMutationArgs {
  1637. input: UpdateShippingMethodInput;
  1638. }
  1639. export interface CreateTaxCategoryMutationArgs {
  1640. input: CreateTaxCategoryInput;
  1641. }
  1642. export interface UpdateTaxCategoryMutationArgs {
  1643. input: UpdateTaxCategoryInput;
  1644. }
  1645. export interface CreateTaxRateMutationArgs {
  1646. input: CreateTaxRateInput;
  1647. }
  1648. export interface UpdateTaxRateMutationArgs {
  1649. input: UpdateTaxRateInput;
  1650. }
  1651. export interface CreateZoneMutationArgs {
  1652. input: CreateZoneInput;
  1653. }
  1654. export interface UpdateZoneMutationArgs {
  1655. input: UpdateZoneInput;
  1656. }
  1657. export interface DeleteZoneMutationArgs {
  1658. id: string;
  1659. }
  1660. export interface AddMembersToZoneMutationArgs {
  1661. zoneId: string;
  1662. memberIds: string[];
  1663. }
  1664. export interface RemoveMembersFromZoneMutationArgs {
  1665. zoneId: string;
  1666. memberIds: string[];
  1667. }
  1668. export interface SetAsLoggedInMutationArgs {
  1669. username: string;
  1670. loginTime: string;
  1671. }
  1672. export interface SetUiLanguageMutationArgs {
  1673. languageCode?: LanguageCode | null;
  1674. }
  1675. export enum SortOrder {
  1676. ASC = 'ASC',
  1677. DESC = 'DESC',
  1678. }
  1679. export enum Permission {
  1680. Authenticated = 'Authenticated',
  1681. SuperAdmin = 'SuperAdmin',
  1682. Owner = 'Owner',
  1683. Public = 'Public',
  1684. CreateCatalog = 'CreateCatalog',
  1685. ReadCatalog = 'ReadCatalog',
  1686. UpdateCatalog = 'UpdateCatalog',
  1687. DeleteCatalog = 'DeleteCatalog',
  1688. CreateCustomer = 'CreateCustomer',
  1689. ReadCustomer = 'ReadCustomer',
  1690. UpdateCustomer = 'UpdateCustomer',
  1691. DeleteCustomer = 'DeleteCustomer',
  1692. CreateAdministrator = 'CreateAdministrator',
  1693. ReadAdministrator = 'ReadAdministrator',
  1694. UpdateAdministrator = 'UpdateAdministrator',
  1695. DeleteAdministrator = 'DeleteAdministrator',
  1696. CreateOrder = 'CreateOrder',
  1697. ReadOrder = 'ReadOrder',
  1698. UpdateOrder = 'UpdateOrder',
  1699. DeleteOrder = 'DeleteOrder',
  1700. CreateSettings = 'CreateSettings',
  1701. ReadSettings = 'ReadSettings',
  1702. UpdateSettings = 'UpdateSettings',
  1703. DeleteSettings = 'DeleteSettings',
  1704. }
  1705. export enum LanguageCode {
  1706. aa = 'aa',
  1707. ab = 'ab',
  1708. af = 'af',
  1709. ak = 'ak',
  1710. sq = 'sq',
  1711. am = 'am',
  1712. ar = 'ar',
  1713. an = 'an',
  1714. hy = 'hy',
  1715. as = 'as',
  1716. av = 'av',
  1717. ae = 'ae',
  1718. ay = 'ay',
  1719. az = 'az',
  1720. ba = 'ba',
  1721. bm = 'bm',
  1722. eu = 'eu',
  1723. be = 'be',
  1724. bn = 'bn',
  1725. bh = 'bh',
  1726. bi = 'bi',
  1727. bs = 'bs',
  1728. br = 'br',
  1729. bg = 'bg',
  1730. my = 'my',
  1731. ca = 'ca',
  1732. ch = 'ch',
  1733. ce = 'ce',
  1734. zh = 'zh',
  1735. cu = 'cu',
  1736. cv = 'cv',
  1737. kw = 'kw',
  1738. co = 'co',
  1739. cr = 'cr',
  1740. cs = 'cs',
  1741. da = 'da',
  1742. dv = 'dv',
  1743. nl = 'nl',
  1744. dz = 'dz',
  1745. en = 'en',
  1746. eo = 'eo',
  1747. et = 'et',
  1748. ee = 'ee',
  1749. fo = 'fo',
  1750. fj = 'fj',
  1751. fi = 'fi',
  1752. fr = 'fr',
  1753. fy = 'fy',
  1754. ff = 'ff',
  1755. ka = 'ka',
  1756. de = 'de',
  1757. gd = 'gd',
  1758. ga = 'ga',
  1759. gl = 'gl',
  1760. gv = 'gv',
  1761. el = 'el',
  1762. gn = 'gn',
  1763. gu = 'gu',
  1764. ht = 'ht',
  1765. ha = 'ha',
  1766. he = 'he',
  1767. hz = 'hz',
  1768. hi = 'hi',
  1769. ho = 'ho',
  1770. hr = 'hr',
  1771. hu = 'hu',
  1772. ig = 'ig',
  1773. is = 'is',
  1774. io = 'io',
  1775. ii = 'ii',
  1776. iu = 'iu',
  1777. ie = 'ie',
  1778. ia = 'ia',
  1779. id = 'id',
  1780. ik = 'ik',
  1781. it = 'it',
  1782. jv = 'jv',
  1783. ja = 'ja',
  1784. kl = 'kl',
  1785. kn = 'kn',
  1786. ks = 'ks',
  1787. kr = 'kr',
  1788. kk = 'kk',
  1789. km = 'km',
  1790. ki = 'ki',
  1791. rw = 'rw',
  1792. ky = 'ky',
  1793. kv = 'kv',
  1794. kg = 'kg',
  1795. ko = 'ko',
  1796. kj = 'kj',
  1797. ku = 'ku',
  1798. lo = 'lo',
  1799. la = 'la',
  1800. lv = 'lv',
  1801. li = 'li',
  1802. ln = 'ln',
  1803. lt = 'lt',
  1804. lb = 'lb',
  1805. lu = 'lu',
  1806. lg = 'lg',
  1807. mk = 'mk',
  1808. mh = 'mh',
  1809. ml = 'ml',
  1810. mi = 'mi',
  1811. mr = 'mr',
  1812. ms = 'ms',
  1813. mg = 'mg',
  1814. mt = 'mt',
  1815. mn = 'mn',
  1816. na = 'na',
  1817. nv = 'nv',
  1818. nr = 'nr',
  1819. nd = 'nd',
  1820. ng = 'ng',
  1821. ne = 'ne',
  1822. nn = 'nn',
  1823. nb = 'nb',
  1824. no = 'no',
  1825. ny = 'ny',
  1826. oc = 'oc',
  1827. oj = 'oj',
  1828. or = 'or',
  1829. om = 'om',
  1830. os = 'os',
  1831. pa = 'pa',
  1832. fa = 'fa',
  1833. pi = 'pi',
  1834. pl = 'pl',
  1835. pt = 'pt',
  1836. ps = 'ps',
  1837. qu = 'qu',
  1838. rm = 'rm',
  1839. ro = 'ro',
  1840. rn = 'rn',
  1841. ru = 'ru',
  1842. sg = 'sg',
  1843. sa = 'sa',
  1844. si = 'si',
  1845. sk = 'sk',
  1846. sl = 'sl',
  1847. se = 'se',
  1848. sm = 'sm',
  1849. sn = 'sn',
  1850. sd = 'sd',
  1851. so = 'so',
  1852. st = 'st',
  1853. es = 'es',
  1854. sc = 'sc',
  1855. sr = 'sr',
  1856. ss = 'ss',
  1857. su = 'su',
  1858. sw = 'sw',
  1859. sv = 'sv',
  1860. ty = 'ty',
  1861. ta = 'ta',
  1862. tt = 'tt',
  1863. te = 'te',
  1864. tg = 'tg',
  1865. tl = 'tl',
  1866. th = 'th',
  1867. bo = 'bo',
  1868. ti = 'ti',
  1869. to = 'to',
  1870. tn = 'tn',
  1871. ts = 'ts',
  1872. tk = 'tk',
  1873. tr = 'tr',
  1874. tw = 'tw',
  1875. ug = 'ug',
  1876. uk = 'uk',
  1877. ur = 'ur',
  1878. uz = 'uz',
  1879. ve = 've',
  1880. vi = 'vi',
  1881. vo = 'vo',
  1882. cy = 'cy',
  1883. wa = 'wa',
  1884. wo = 'wo',
  1885. xh = 'xh',
  1886. yi = 'yi',
  1887. yo = 'yo',
  1888. za = 'za',
  1889. zu = 'zu',
  1890. }
  1891. export enum CurrencyCode {
  1892. AED = 'AED',
  1893. AFN = 'AFN',
  1894. ALL = 'ALL',
  1895. AMD = 'AMD',
  1896. ANG = 'ANG',
  1897. AOA = 'AOA',
  1898. ARS = 'ARS',
  1899. AUD = 'AUD',
  1900. AWG = 'AWG',
  1901. AZN = 'AZN',
  1902. BAM = 'BAM',
  1903. BBD = 'BBD',
  1904. BDT = 'BDT',
  1905. BGN = 'BGN',
  1906. BHD = 'BHD',
  1907. BIF = 'BIF',
  1908. BMD = 'BMD',
  1909. BND = 'BND',
  1910. BOB = 'BOB',
  1911. BRL = 'BRL',
  1912. BSD = 'BSD',
  1913. BTN = 'BTN',
  1914. BWP = 'BWP',
  1915. BYN = 'BYN',
  1916. BZD = 'BZD',
  1917. CAD = 'CAD',
  1918. CHE = 'CHE',
  1919. CHW = 'CHW',
  1920. CLP = 'CLP',
  1921. CNY = 'CNY',
  1922. COP = 'COP',
  1923. CRC = 'CRC',
  1924. CUC = 'CUC',
  1925. CUP = 'CUP',
  1926. CVE = 'CVE',
  1927. CZK = 'CZK',
  1928. DJF = 'DJF',
  1929. DKK = 'DKK',
  1930. DOP = 'DOP',
  1931. DZD = 'DZD',
  1932. EGP = 'EGP',
  1933. ERN = 'ERN',
  1934. ETB = 'ETB',
  1935. EUR = 'EUR',
  1936. FJD = 'FJD',
  1937. FKP = 'FKP',
  1938. GBP = 'GBP',
  1939. GEL = 'GEL',
  1940. GHS = 'GHS',
  1941. GIP = 'GIP',
  1942. GMD = 'GMD',
  1943. GNF = 'GNF',
  1944. GTQ = 'GTQ',
  1945. GYD = 'GYD',
  1946. HKD = 'HKD',
  1947. HNL = 'HNL',
  1948. HRK = 'HRK',
  1949. HTG = 'HTG',
  1950. HUF = 'HUF',
  1951. IDR = 'IDR',
  1952. ILS = 'ILS',
  1953. INR = 'INR',
  1954. IQD = 'IQD',
  1955. IRR = 'IRR',
  1956. ISK = 'ISK',
  1957. JMD = 'JMD',
  1958. JOD = 'JOD',
  1959. JPY = 'JPY',
  1960. KES = 'KES',
  1961. KGS = 'KGS',
  1962. KHR = 'KHR',
  1963. KMF = 'KMF',
  1964. KPW = 'KPW',
  1965. KRW = 'KRW',
  1966. KWD = 'KWD',
  1967. KYD = 'KYD',
  1968. KZT = 'KZT',
  1969. LAK = 'LAK',
  1970. LBP = 'LBP',
  1971. LKR = 'LKR',
  1972. LRD = 'LRD',
  1973. LSL = 'LSL',
  1974. LYD = 'LYD',
  1975. MAD = 'MAD',
  1976. MDL = 'MDL',
  1977. MGA = 'MGA',
  1978. MKD = 'MKD',
  1979. MMK = 'MMK',
  1980. MNT = 'MNT',
  1981. MOP = 'MOP',
  1982. MRU = 'MRU',
  1983. MUR = 'MUR',
  1984. MVR = 'MVR',
  1985. MWK = 'MWK',
  1986. MXN = 'MXN',
  1987. MYR = 'MYR',
  1988. MZN = 'MZN',
  1989. NAD = 'NAD',
  1990. NGN = 'NGN',
  1991. NIO = 'NIO',
  1992. NOK = 'NOK',
  1993. NPR = 'NPR',
  1994. NZD = 'NZD',
  1995. OMR = 'OMR',
  1996. PAB = 'PAB',
  1997. PEN = 'PEN',
  1998. PGK = 'PGK',
  1999. PHP = 'PHP',
  2000. PKR = 'PKR',
  2001. PLN = 'PLN',
  2002. PYG = 'PYG',
  2003. QAR = 'QAR',
  2004. RON = 'RON',
  2005. RSD = 'RSD',
  2006. RUB = 'RUB',
  2007. RWF = 'RWF',
  2008. SAR = 'SAR',
  2009. SBD = 'SBD',
  2010. SCR = 'SCR',
  2011. SDG = 'SDG',
  2012. SEK = 'SEK',
  2013. SGD = 'SGD',
  2014. SHP = 'SHP',
  2015. SLL = 'SLL',
  2016. SOS = 'SOS',
  2017. SRD = 'SRD',
  2018. SSP = 'SSP',
  2019. STN = 'STN',
  2020. SVC = 'SVC',
  2021. SYP = 'SYP',
  2022. SZL = 'SZL',
  2023. THB = 'THB',
  2024. TJS = 'TJS',
  2025. TMT = 'TMT',
  2026. TND = 'TND',
  2027. TOP = 'TOP',
  2028. TRY = 'TRY',
  2029. TTD = 'TTD',
  2030. TWD = 'TWD',
  2031. TZS = 'TZS',
  2032. UAH = 'UAH',
  2033. UGX = 'UGX',
  2034. USD = 'USD',
  2035. UYU = 'UYU',
  2036. UZS = 'UZS',
  2037. VES = 'VES',
  2038. VND = 'VND',
  2039. VUV = 'VUV',
  2040. WST = 'WST',
  2041. XAF = 'XAF',
  2042. XCD = 'XCD',
  2043. XOF = 'XOF',
  2044. XPF = 'XPF',
  2045. YER = 'YER',
  2046. ZAR = 'ZAR',
  2047. ZMW = 'ZMW',
  2048. ZWL = 'ZWL',
  2049. }
  2050. export enum AssetType {
  2051. IMAGE = 'IMAGE',
  2052. VIDEO = 'VIDEO',
  2053. BINARY = 'BINARY',
  2054. }
  2055. export enum AdjustmentType {
  2056. TAX = 'TAX',
  2057. PROMOTION = 'PROMOTION',
  2058. SHIPPING = 'SHIPPING',
  2059. REFUND = 'REFUND',
  2060. TAX_REFUND = 'TAX_REFUND',
  2061. PROMOTION_REFUND = 'PROMOTION_REFUND',
  2062. SHIPPING_REFUND = 'SHIPPING_REFUND',
  2063. }
  2064. export enum DeletionResult {
  2065. DELETED = 'DELETED',
  2066. NOT_DELETED = 'NOT_DELETED',
  2067. }
  2068. export namespace QueryResolvers {
  2069. export interface Resolvers<Context = any> {
  2070. administrators?: AdministratorsResolver<AdministratorList, any, Context>;
  2071. administrator?: AdministratorResolver<Administrator | null, any, Context>;
  2072. assets?: AssetsResolver<AssetList, any, Context>;
  2073. asset?: AssetResolver<Asset | null, any, Context>;
  2074. me?: MeResolver<CurrentUser | null, any, Context>;
  2075. channels?: ChannelsResolver<Channel[], any, Context>;
  2076. channel?: ChannelResolver<Channel | null, any, Context>;
  2077. activeChannel?: ActiveChannelResolver<Channel, any, Context>;
  2078. config?: ConfigResolver<Config, any, Context>;
  2079. countries?: CountriesResolver<CountryList, any, Context>;
  2080. country?: CountryResolver<Country | null, any, Context>;
  2081. availableCountries?: AvailableCountriesResolver<Country[], any, Context>;
  2082. customerGroups?: CustomerGroupsResolver<CustomerGroup[], any, Context>;
  2083. customerGroup?: CustomerGroupResolver<CustomerGroup | null, any, Context>;
  2084. customers?: CustomersResolver<CustomerList, any, Context>;
  2085. customer?: CustomerResolver<Customer | null, any, Context>;
  2086. activeCustomer?: ActiveCustomerResolver<Customer | null, any, Context>;
  2087. facets?: FacetsResolver<FacetList, any, Context>;
  2088. facet?: FacetResolver<Facet | null, any, Context>;
  2089. globalSettings?: GlobalSettingsResolver<GlobalSettings, any, Context>;
  2090. order?: OrderResolver<Order | null, any, Context>;
  2091. activeOrder?: ActiveOrderResolver<Order | null, any, Context>;
  2092. orderByCode?: OrderByCodeResolver<Order | null, any, Context>;
  2093. nextOrderStates?: NextOrderStatesResolver<string[], any, Context>;
  2094. orders?: OrdersResolver<OrderList, any, Context>;
  2095. eligibleShippingMethods?: EligibleShippingMethodsResolver<ShippingMethodQuote[], any, Context>;
  2096. paymentMethods?: PaymentMethodsResolver<PaymentMethodList, any, Context>;
  2097. paymentMethod?: PaymentMethodResolver<PaymentMethod | null, any, Context>;
  2098. productCategories?: ProductCategoriesResolver<ProductCategoryList, any, Context>;
  2099. productCategory?: ProductCategoryResolver<ProductCategory | null, any, Context>;
  2100. productOptionGroups?: ProductOptionGroupsResolver<ProductOptionGroup[], any, Context>;
  2101. productOptionGroup?: ProductOptionGroupResolver<ProductOptionGroup | null, any, Context>;
  2102. products?: ProductsResolver<ProductList, any, Context>;
  2103. product?: ProductResolver<Product | null, any, Context>;
  2104. promotion?: PromotionResolver<Promotion | null, any, Context>;
  2105. promotions?: PromotionsResolver<PromotionList, any, Context>;
  2106. adjustmentOperations?: AdjustmentOperationsResolver<AdjustmentOperations, any, Context>;
  2107. roles?: RolesResolver<RoleList, any, Context>;
  2108. role?: RoleResolver<Role | null, any, Context>;
  2109. search?: SearchResolver<SearchResponse, any, Context>;
  2110. shippingMethods?: ShippingMethodsResolver<ShippingMethodList, any, Context>;
  2111. shippingMethod?: ShippingMethodResolver<ShippingMethod | null, any, Context>;
  2112. shippingEligibilityCheckers?: ShippingEligibilityCheckersResolver<
  2113. AdjustmentOperation[],
  2114. any,
  2115. Context
  2116. >;
  2117. shippingCalculators?: ShippingCalculatorsResolver<AdjustmentOperation[], any, Context>;
  2118. taxCategories?: TaxCategoriesResolver<TaxCategory[], any, Context>;
  2119. taxCategory?: TaxCategoryResolver<TaxCategory | null, any, Context>;
  2120. taxRates?: TaxRatesResolver<TaxRateList, any, Context>;
  2121. taxRate?: TaxRateResolver<TaxRate | null, any, Context>;
  2122. zones?: ZonesResolver<Zone[], any, Context>;
  2123. zone?: ZoneResolver<Zone | null, any, Context>;
  2124. temp__?: TempResolver<boolean | null, any, Context>;
  2125. networkStatus?: NetworkStatusResolver<NetworkStatus, any, Context>;
  2126. userStatus?: UserStatusResolver<UserStatus, any, Context>;
  2127. uiState?: UiStateResolver<UiState, any, Context>;
  2128. }
  2129. export type AdministratorsResolver<R = AdministratorList, Parent = any, Context = any> = Resolver<
  2130. R,
  2131. Parent,
  2132. Context,
  2133. AdministratorsArgs
  2134. >;
  2135. export interface AdministratorsArgs {
  2136. options?: AdministratorListOptions | null;
  2137. }
  2138. export type AdministratorResolver<R = Administrator | null, Parent = any, Context = any> = Resolver<
  2139. R,
  2140. Parent,
  2141. Context,
  2142. AdministratorArgs
  2143. >;
  2144. export interface AdministratorArgs {
  2145. id: string;
  2146. }
  2147. export type AssetsResolver<R = AssetList, Parent = any, Context = any> = Resolver<
  2148. R,
  2149. Parent,
  2150. Context,
  2151. AssetsArgs
  2152. >;
  2153. export interface AssetsArgs {
  2154. options?: AssetListOptions | null;
  2155. }
  2156. export type AssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  2157. R,
  2158. Parent,
  2159. Context,
  2160. AssetArgs
  2161. >;
  2162. export interface AssetArgs {
  2163. id: string;
  2164. }
  2165. export type MeResolver<R = CurrentUser | null, Parent = any, Context = any> = Resolver<
  2166. R,
  2167. Parent,
  2168. Context
  2169. >;
  2170. export type ChannelsResolver<R = Channel[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2171. export type ChannelResolver<R = Channel | null, Parent = any, Context = any> = Resolver<
  2172. R,
  2173. Parent,
  2174. Context,
  2175. ChannelArgs
  2176. >;
  2177. export interface ChannelArgs {
  2178. id: string;
  2179. }
  2180. export type ActiveChannelResolver<R = Channel, Parent = any, Context = any> = Resolver<
  2181. R,
  2182. Parent,
  2183. Context
  2184. >;
  2185. export type ConfigResolver<R = Config, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2186. export type CountriesResolver<R = CountryList, Parent = any, Context = any> = Resolver<
  2187. R,
  2188. Parent,
  2189. Context,
  2190. CountriesArgs
  2191. >;
  2192. export interface CountriesArgs {
  2193. options?: CountryListOptions | null;
  2194. }
  2195. export type CountryResolver<R = Country | null, Parent = any, Context = any> = Resolver<
  2196. R,
  2197. Parent,
  2198. Context,
  2199. CountryArgs
  2200. >;
  2201. export interface CountryArgs {
  2202. id: string;
  2203. }
  2204. export type AvailableCountriesResolver<R = Country[], Parent = any, Context = any> = Resolver<
  2205. R,
  2206. Parent,
  2207. Context
  2208. >;
  2209. export type CustomerGroupsResolver<R = CustomerGroup[], Parent = any, Context = any> = Resolver<
  2210. R,
  2211. Parent,
  2212. Context
  2213. >;
  2214. export type CustomerGroupResolver<R = CustomerGroup | null, Parent = any, Context = any> = Resolver<
  2215. R,
  2216. Parent,
  2217. Context,
  2218. CustomerGroupArgs
  2219. >;
  2220. export interface CustomerGroupArgs {
  2221. id: string;
  2222. }
  2223. export type CustomersResolver<R = CustomerList, Parent = any, Context = any> = Resolver<
  2224. R,
  2225. Parent,
  2226. Context,
  2227. CustomersArgs
  2228. >;
  2229. export interface CustomersArgs {
  2230. options?: CustomerListOptions | null;
  2231. }
  2232. export type CustomerResolver<R = Customer | null, Parent = any, Context = any> = Resolver<
  2233. R,
  2234. Parent,
  2235. Context,
  2236. CustomerArgs
  2237. >;
  2238. export interface CustomerArgs {
  2239. id: string;
  2240. }
  2241. export type ActiveCustomerResolver<R = Customer | null, Parent = any, Context = any> = Resolver<
  2242. R,
  2243. Parent,
  2244. Context
  2245. >;
  2246. export type FacetsResolver<R = FacetList, Parent = any, Context = any> = Resolver<
  2247. R,
  2248. Parent,
  2249. Context,
  2250. FacetsArgs
  2251. >;
  2252. export interface FacetsArgs {
  2253. languageCode?: LanguageCode | null;
  2254. options?: FacetListOptions | null;
  2255. }
  2256. export type FacetResolver<R = Facet | null, Parent = any, Context = any> = Resolver<
  2257. R,
  2258. Parent,
  2259. Context,
  2260. FacetArgs
  2261. >;
  2262. export interface FacetArgs {
  2263. id: string;
  2264. languageCode?: LanguageCode | null;
  2265. }
  2266. export type GlobalSettingsResolver<R = GlobalSettings, Parent = any, Context = any> = Resolver<
  2267. R,
  2268. Parent,
  2269. Context
  2270. >;
  2271. export type OrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  2272. R,
  2273. Parent,
  2274. Context,
  2275. OrderArgs
  2276. >;
  2277. export interface OrderArgs {
  2278. id: string;
  2279. }
  2280. export type ActiveOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  2281. R,
  2282. Parent,
  2283. Context
  2284. >;
  2285. export type OrderByCodeResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  2286. R,
  2287. Parent,
  2288. Context,
  2289. OrderByCodeArgs
  2290. >;
  2291. export interface OrderByCodeArgs {
  2292. code: string;
  2293. }
  2294. export type NextOrderStatesResolver<R = string[], Parent = any, Context = any> = Resolver<
  2295. R,
  2296. Parent,
  2297. Context
  2298. >;
  2299. export type OrdersResolver<R = OrderList, Parent = any, Context = any> = Resolver<
  2300. R,
  2301. Parent,
  2302. Context,
  2303. OrdersArgs
  2304. >;
  2305. export interface OrdersArgs {
  2306. options?: OrderListOptions | null;
  2307. }
  2308. export type EligibleShippingMethodsResolver<
  2309. R = ShippingMethodQuote[],
  2310. Parent = any,
  2311. Context = any
  2312. > = Resolver<R, Parent, Context>;
  2313. export type PaymentMethodsResolver<R = PaymentMethodList, Parent = any, Context = any> = Resolver<
  2314. R,
  2315. Parent,
  2316. Context,
  2317. PaymentMethodsArgs
  2318. >;
  2319. export interface PaymentMethodsArgs {
  2320. options?: PaymentMethodListOptions | null;
  2321. }
  2322. export type PaymentMethodResolver<R = PaymentMethod | null, Parent = any, Context = any> = Resolver<
  2323. R,
  2324. Parent,
  2325. Context,
  2326. PaymentMethodArgs
  2327. >;
  2328. export interface PaymentMethodArgs {
  2329. id: string;
  2330. }
  2331. export type ProductCategoriesResolver<R = ProductCategoryList, Parent = any, Context = any> = Resolver<
  2332. R,
  2333. Parent,
  2334. Context,
  2335. ProductCategoriesArgs
  2336. >;
  2337. export interface ProductCategoriesArgs {
  2338. languageCode?: LanguageCode | null;
  2339. options?: ProductCategoryListOptions | null;
  2340. }
  2341. export type ProductCategoryResolver<R = ProductCategory | null, Parent = any, Context = any> = Resolver<
  2342. R,
  2343. Parent,
  2344. Context,
  2345. ProductCategoryArgs
  2346. >;
  2347. export interface ProductCategoryArgs {
  2348. id: string;
  2349. languageCode?: LanguageCode | null;
  2350. }
  2351. export type ProductOptionGroupsResolver<R = ProductOptionGroup[], Parent = any, Context = any> = Resolver<
  2352. R,
  2353. Parent,
  2354. Context,
  2355. ProductOptionGroupsArgs
  2356. >;
  2357. export interface ProductOptionGroupsArgs {
  2358. languageCode?: LanguageCode | null;
  2359. filterTerm?: string | null;
  2360. }
  2361. export type ProductOptionGroupResolver<
  2362. R = ProductOptionGroup | null,
  2363. Parent = any,
  2364. Context = any
  2365. > = Resolver<R, Parent, Context, ProductOptionGroupArgs>;
  2366. export interface ProductOptionGroupArgs {
  2367. id: string;
  2368. languageCode?: LanguageCode | null;
  2369. }
  2370. export type ProductsResolver<R = ProductList, Parent = any, Context = any> = Resolver<
  2371. R,
  2372. Parent,
  2373. Context,
  2374. ProductsArgs
  2375. >;
  2376. export interface ProductsArgs {
  2377. languageCode?: LanguageCode | null;
  2378. options?: ProductListOptions | null;
  2379. }
  2380. export type ProductResolver<R = Product | null, Parent = any, Context = any> = Resolver<
  2381. R,
  2382. Parent,
  2383. Context,
  2384. ProductArgs
  2385. >;
  2386. export interface ProductArgs {
  2387. id: string;
  2388. languageCode?: LanguageCode | null;
  2389. }
  2390. export type PromotionResolver<R = Promotion | null, Parent = any, Context = any> = Resolver<
  2391. R,
  2392. Parent,
  2393. Context,
  2394. PromotionArgs
  2395. >;
  2396. export interface PromotionArgs {
  2397. id: string;
  2398. }
  2399. export type PromotionsResolver<R = PromotionList, Parent = any, Context = any> = Resolver<
  2400. R,
  2401. Parent,
  2402. Context,
  2403. PromotionsArgs
  2404. >;
  2405. export interface PromotionsArgs {
  2406. options?: PromotionListOptions | null;
  2407. }
  2408. export type AdjustmentOperationsResolver<
  2409. R = AdjustmentOperations,
  2410. Parent = any,
  2411. Context = any
  2412. > = Resolver<R, Parent, Context>;
  2413. export type RolesResolver<R = RoleList, Parent = any, Context = any> = Resolver<
  2414. R,
  2415. Parent,
  2416. Context,
  2417. RolesArgs
  2418. >;
  2419. export interface RolesArgs {
  2420. options?: RoleListOptions | null;
  2421. }
  2422. export type RoleResolver<R = Role | null, Parent = any, Context = any> = Resolver<
  2423. R,
  2424. Parent,
  2425. Context,
  2426. RoleArgs
  2427. >;
  2428. export interface RoleArgs {
  2429. id: string;
  2430. }
  2431. export type SearchResolver<R = SearchResponse, Parent = any, Context = any> = Resolver<
  2432. R,
  2433. Parent,
  2434. Context,
  2435. SearchArgs
  2436. >;
  2437. export interface SearchArgs {
  2438. input: SearchInput;
  2439. }
  2440. export type ShippingMethodsResolver<R = ShippingMethodList, Parent = any, Context = any> = Resolver<
  2441. R,
  2442. Parent,
  2443. Context,
  2444. ShippingMethodsArgs
  2445. >;
  2446. export interface ShippingMethodsArgs {
  2447. options?: ShippingMethodListOptions | null;
  2448. }
  2449. export type ShippingMethodResolver<R = ShippingMethod | null, Parent = any, Context = any> = Resolver<
  2450. R,
  2451. Parent,
  2452. Context,
  2453. ShippingMethodArgs
  2454. >;
  2455. export interface ShippingMethodArgs {
  2456. id: string;
  2457. }
  2458. export type ShippingEligibilityCheckersResolver<
  2459. R = AdjustmentOperation[],
  2460. Parent = any,
  2461. Context = any
  2462. > = Resolver<R, Parent, Context>;
  2463. export type ShippingCalculatorsResolver<
  2464. R = AdjustmentOperation[],
  2465. Parent = any,
  2466. Context = any
  2467. > = Resolver<R, Parent, Context>;
  2468. export type TaxCategoriesResolver<R = TaxCategory[], Parent = any, Context = any> = Resolver<
  2469. R,
  2470. Parent,
  2471. Context
  2472. >;
  2473. export type TaxCategoryResolver<R = TaxCategory | null, Parent = any, Context = any> = Resolver<
  2474. R,
  2475. Parent,
  2476. Context,
  2477. TaxCategoryArgs
  2478. >;
  2479. export interface TaxCategoryArgs {
  2480. id: string;
  2481. }
  2482. export type TaxRatesResolver<R = TaxRateList, Parent = any, Context = any> = Resolver<
  2483. R,
  2484. Parent,
  2485. Context,
  2486. TaxRatesArgs
  2487. >;
  2488. export interface TaxRatesArgs {
  2489. options?: TaxRateListOptions | null;
  2490. }
  2491. export type TaxRateResolver<R = TaxRate | null, Parent = any, Context = any> = Resolver<
  2492. R,
  2493. Parent,
  2494. Context,
  2495. TaxRateArgs
  2496. >;
  2497. export interface TaxRateArgs {
  2498. id: string;
  2499. }
  2500. export type ZonesResolver<R = Zone[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2501. export type ZoneResolver<R = Zone | null, Parent = any, Context = any> = Resolver<
  2502. R,
  2503. Parent,
  2504. Context,
  2505. ZoneArgs
  2506. >;
  2507. export interface ZoneArgs {
  2508. id: string;
  2509. }
  2510. export type TempResolver<R = boolean | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2511. export type NetworkStatusResolver<R = NetworkStatus, Parent = any, Context = any> = Resolver<
  2512. R,
  2513. Parent,
  2514. Context
  2515. >;
  2516. export type UserStatusResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
  2517. R,
  2518. Parent,
  2519. Context
  2520. >;
  2521. export type UiStateResolver<R = UiState, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2522. }
  2523. export namespace AdministratorListResolvers {
  2524. export interface Resolvers<Context = any> {
  2525. items?: ItemsResolver<Administrator[], any, Context>;
  2526. totalItems?: TotalItemsResolver<number, any, Context>;
  2527. }
  2528. export type ItemsResolver<R = Administrator[], Parent = any, Context = any> = Resolver<
  2529. R,
  2530. Parent,
  2531. Context
  2532. >;
  2533. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2534. }
  2535. export namespace AdministratorResolvers {
  2536. export interface Resolvers<Context = any> {
  2537. id?: IdResolver<string, any, Context>;
  2538. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2539. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2540. firstName?: FirstNameResolver<string, any, Context>;
  2541. lastName?: LastNameResolver<string, any, Context>;
  2542. emailAddress?: EmailAddressResolver<string, any, Context>;
  2543. user?: UserResolver<User, any, Context>;
  2544. }
  2545. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2546. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2547. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2548. export type FirstNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2549. export type LastNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2550. export type EmailAddressResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2551. export type UserResolver<R = User, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2552. }
  2553. export namespace UserResolvers {
  2554. export interface Resolvers<Context = any> {
  2555. id?: IdResolver<string, any, Context>;
  2556. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2557. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2558. identifier?: IdentifierResolver<string, any, Context>;
  2559. passwordHash?: PasswordHashResolver<string, any, Context>;
  2560. verified?: VerifiedResolver<boolean, any, Context>;
  2561. roles?: RolesResolver<Role[], any, Context>;
  2562. lastLogin?: LastLoginResolver<string | null, any, Context>;
  2563. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2564. }
  2565. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2566. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2567. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2568. export type IdentifierResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2569. export type PasswordHashResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2570. export type VerifiedResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2571. export type RolesResolver<R = Role[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2572. export type LastLoginResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2573. R,
  2574. Parent,
  2575. Context
  2576. >;
  2577. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2578. R,
  2579. Parent,
  2580. Context
  2581. >;
  2582. }
  2583. export namespace RoleResolvers {
  2584. export interface Resolvers<Context = any> {
  2585. id?: IdResolver<string, any, Context>;
  2586. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2587. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2588. code?: CodeResolver<string, any, Context>;
  2589. description?: DescriptionResolver<string, any, Context>;
  2590. permissions?: PermissionsResolver<Permission[], any, Context>;
  2591. channels?: ChannelsResolver<Channel[], any, Context>;
  2592. }
  2593. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2594. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2595. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2596. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2597. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2598. export type PermissionsResolver<R = Permission[], Parent = any, Context = any> = Resolver<
  2599. R,
  2600. Parent,
  2601. Context
  2602. >;
  2603. export type ChannelsResolver<R = Channel[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2604. }
  2605. export namespace ChannelResolvers {
  2606. export interface Resolvers<Context = any> {
  2607. id?: IdResolver<string, any, Context>;
  2608. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2609. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2610. code?: CodeResolver<string, any, Context>;
  2611. token?: TokenResolver<string, any, Context>;
  2612. defaultTaxZone?: DefaultTaxZoneResolver<Zone | null, any, Context>;
  2613. defaultShippingZone?: DefaultShippingZoneResolver<Zone | null, any, Context>;
  2614. defaultLanguageCode?: DefaultLanguageCodeResolver<LanguageCode, any, Context>;
  2615. currencyCode?: CurrencyCodeResolver<CurrencyCode, any, Context>;
  2616. pricesIncludeTax?: PricesIncludeTaxResolver<boolean, any, Context>;
  2617. }
  2618. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2619. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2620. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2621. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2622. export type TokenResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2623. export type DefaultTaxZoneResolver<R = Zone | null, Parent = any, Context = any> = Resolver<
  2624. R,
  2625. Parent,
  2626. Context
  2627. >;
  2628. export type DefaultShippingZoneResolver<R = Zone | null, Parent = any, Context = any> = Resolver<
  2629. R,
  2630. Parent,
  2631. Context
  2632. >;
  2633. export type DefaultLanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2634. R,
  2635. Parent,
  2636. Context
  2637. >;
  2638. export type CurrencyCodeResolver<R = CurrencyCode, Parent = any, Context = any> = Resolver<
  2639. R,
  2640. Parent,
  2641. Context
  2642. >;
  2643. export type PricesIncludeTaxResolver<R = boolean, Parent = any, Context = any> = Resolver<
  2644. R,
  2645. Parent,
  2646. Context
  2647. >;
  2648. }
  2649. export namespace ZoneResolvers {
  2650. export interface Resolvers<Context = any> {
  2651. id?: IdResolver<string, any, Context>;
  2652. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2653. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2654. name?: NameResolver<string, any, Context>;
  2655. members?: MembersResolver<Country[], any, Context>;
  2656. }
  2657. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2658. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2659. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2660. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2661. export type MembersResolver<R = Country[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2662. }
  2663. export namespace CountryResolvers {
  2664. export interface Resolvers<Context = any> {
  2665. id?: IdResolver<string, any, Context>;
  2666. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2667. code?: CodeResolver<string, any, Context>;
  2668. name?: NameResolver<string, any, Context>;
  2669. enabled?: EnabledResolver<boolean, any, Context>;
  2670. translations?: TranslationsResolver<CountryTranslation[], any, Context>;
  2671. }
  2672. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2673. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2674. R,
  2675. Parent,
  2676. Context
  2677. >;
  2678. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2679. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2680. export type EnabledResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2681. export type TranslationsResolver<R = CountryTranslation[], Parent = any, Context = any> = Resolver<
  2682. R,
  2683. Parent,
  2684. Context
  2685. >;
  2686. }
  2687. export namespace CountryTranslationResolvers {
  2688. export interface Resolvers<Context = any> {
  2689. id?: IdResolver<string, any, Context>;
  2690. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2691. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2692. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2693. name?: NameResolver<string, any, Context>;
  2694. }
  2695. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2696. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2697. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2698. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2699. R,
  2700. Parent,
  2701. Context
  2702. >;
  2703. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2704. }
  2705. export namespace AssetListResolvers {
  2706. export interface Resolvers<Context = any> {
  2707. items?: ItemsResolver<Asset[], any, Context>;
  2708. totalItems?: TotalItemsResolver<number, any, Context>;
  2709. }
  2710. export type ItemsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2711. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2712. }
  2713. export namespace AssetResolvers {
  2714. export interface Resolvers<Context = any> {
  2715. id?: IdResolver<string, any, Context>;
  2716. name?: NameResolver<string, any, Context>;
  2717. type?: TypeResolver<AssetType, any, Context>;
  2718. fileSize?: FileSizeResolver<number, any, Context>;
  2719. mimeType?: MimeTypeResolver<string, any, Context>;
  2720. source?: SourceResolver<string, any, Context>;
  2721. preview?: PreviewResolver<string, any, Context>;
  2722. }
  2723. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2724. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2725. export type TypeResolver<R = AssetType, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2726. export type FileSizeResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2727. export type MimeTypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2728. export type SourceResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2729. export type PreviewResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2730. }
  2731. export namespace CurrentUserResolvers {
  2732. export interface Resolvers<Context = any> {
  2733. id?: IdResolver<string, any, Context>;
  2734. identifier?: IdentifierResolver<string, any, Context>;
  2735. channelTokens?: ChannelTokensResolver<string[], any, Context>;
  2736. }
  2737. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2738. export type IdentifierResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2739. export type ChannelTokensResolver<R = string[], Parent = any, Context = any> = Resolver<
  2740. R,
  2741. Parent,
  2742. Context
  2743. >;
  2744. }
  2745. export namespace ConfigResolvers {
  2746. export interface Resolvers<Context = any> {
  2747. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2748. }
  2749. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2750. R,
  2751. Parent,
  2752. Context
  2753. >;
  2754. }
  2755. export namespace CountryListResolvers {
  2756. export interface Resolvers<Context = any> {
  2757. items?: ItemsResolver<Country[], any, Context>;
  2758. totalItems?: TotalItemsResolver<number, any, Context>;
  2759. }
  2760. export type ItemsResolver<R = Country[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2761. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2762. }
  2763. export namespace CustomerGroupResolvers {
  2764. export interface Resolvers<Context = any> {
  2765. id?: IdResolver<string, any, Context>;
  2766. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2767. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2768. name?: NameResolver<string, any, Context>;
  2769. }
  2770. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2771. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2772. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2773. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2774. }
  2775. export namespace CustomerListResolvers {
  2776. export interface Resolvers<Context = any> {
  2777. items?: ItemsResolver<Customer[], any, Context>;
  2778. totalItems?: TotalItemsResolver<number, any, Context>;
  2779. }
  2780. export type ItemsResolver<R = Customer[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2781. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2782. }
  2783. export namespace CustomerResolvers {
  2784. export interface Resolvers<Context = any> {
  2785. id?: IdResolver<string, any, Context>;
  2786. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2787. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2788. title?: TitleResolver<string | null, any, Context>;
  2789. firstName?: FirstNameResolver<string, any, Context>;
  2790. lastName?: LastNameResolver<string, any, Context>;
  2791. phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
  2792. emailAddress?: EmailAddressResolver<string, any, Context>;
  2793. addresses?: AddressesResolver<Address[] | null, any, Context>;
  2794. orders?: OrdersResolver<OrderList, any, Context>;
  2795. user?: UserResolver<User | null, any, Context>;
  2796. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2797. }
  2798. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2799. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2800. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2801. export type TitleResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2802. export type FirstNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2803. export type LastNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2804. export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2805. R,
  2806. Parent,
  2807. Context
  2808. >;
  2809. export type EmailAddressResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2810. export type AddressesResolver<R = Address[] | null, Parent = any, Context = any> = Resolver<
  2811. R,
  2812. Parent,
  2813. Context
  2814. >;
  2815. export type OrdersResolver<R = OrderList, Parent = any, Context = any> = Resolver<
  2816. R,
  2817. Parent,
  2818. Context,
  2819. OrdersArgs
  2820. >;
  2821. export interface OrdersArgs {
  2822. options?: OrderListOptions | null;
  2823. }
  2824. export type UserResolver<R = User | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2825. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2826. R,
  2827. Parent,
  2828. Context
  2829. >;
  2830. }
  2831. export namespace AddressResolvers {
  2832. export interface Resolvers<Context = any> {
  2833. id?: IdResolver<string, any, Context>;
  2834. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2835. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2836. fullName?: FullNameResolver<string | null, any, Context>;
  2837. company?: CompanyResolver<string | null, any, Context>;
  2838. streetLine1?: StreetLine1Resolver<string, any, Context>;
  2839. streetLine2?: StreetLine2Resolver<string | null, any, Context>;
  2840. city?: CityResolver<string | null, any, Context>;
  2841. province?: ProvinceResolver<string | null, any, Context>;
  2842. postalCode?: PostalCodeResolver<string | null, any, Context>;
  2843. country?: CountryResolver<Country, any, Context>;
  2844. phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
  2845. defaultShippingAddress?: DefaultShippingAddressResolver<boolean | null, any, Context>;
  2846. defaultBillingAddress?: DefaultBillingAddressResolver<boolean | null, any, Context>;
  2847. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2848. }
  2849. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2850. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2851. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2852. export type FullNameResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2853. R,
  2854. Parent,
  2855. Context
  2856. >;
  2857. export type CompanyResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2858. R,
  2859. Parent,
  2860. Context
  2861. >;
  2862. export type StreetLine1Resolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2863. export type StreetLine2Resolver<R = string | null, Parent = any, Context = any> = Resolver<
  2864. R,
  2865. Parent,
  2866. Context
  2867. >;
  2868. export type CityResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2869. export type ProvinceResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2870. R,
  2871. Parent,
  2872. Context
  2873. >;
  2874. export type PostalCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2875. R,
  2876. Parent,
  2877. Context
  2878. >;
  2879. export type CountryResolver<R = Country, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2880. export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2881. R,
  2882. Parent,
  2883. Context
  2884. >;
  2885. export type DefaultShippingAddressResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
  2886. R,
  2887. Parent,
  2888. Context
  2889. >;
  2890. export type DefaultBillingAddressResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
  2891. R,
  2892. Parent,
  2893. Context
  2894. >;
  2895. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2896. R,
  2897. Parent,
  2898. Context
  2899. >;
  2900. }
  2901. export namespace OrderListResolvers {
  2902. export interface Resolvers<Context = any> {
  2903. items?: ItemsResolver<Order[], any, Context>;
  2904. totalItems?: TotalItemsResolver<number, any, Context>;
  2905. }
  2906. export type ItemsResolver<R = Order[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2907. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2908. }
  2909. export namespace OrderResolvers {
  2910. export interface Resolvers<Context = any> {
  2911. id?: IdResolver<string, any, Context>;
  2912. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2913. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2914. code?: CodeResolver<string, any, Context>;
  2915. state?: StateResolver<string, any, Context>;
  2916. active?: ActiveResolver<boolean, any, Context>;
  2917. customer?: CustomerResolver<Customer | null, any, Context>;
  2918. shippingAddress?: ShippingAddressResolver<ShippingAddress | null, any, Context>;
  2919. billingAddress?: BillingAddressResolver<BillingAddress | null, any, Context>;
  2920. lines?: LinesResolver<OrderLine[], any, Context>;
  2921. adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
  2922. payments?: PaymentsResolver<Payment[] | null, any, Context>;
  2923. subTotalBeforeTax?: SubTotalBeforeTaxResolver<number, any, Context>;
  2924. subTotal?: SubTotalResolver<number, any, Context>;
  2925. currencyCode?: CurrencyCodeResolver<CurrencyCode, any, Context>;
  2926. shipping?: ShippingResolver<number, any, Context>;
  2927. shippingMethod?: ShippingMethodResolver<ShippingMethod | null, any, Context>;
  2928. totalBeforeTax?: TotalBeforeTaxResolver<number, any, Context>;
  2929. total?: TotalResolver<number, any, Context>;
  2930. }
  2931. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2932. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2933. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2934. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2935. export type StateResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2936. export type ActiveResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2937. export type CustomerResolver<R = Customer | null, Parent = any, Context = any> = Resolver<
  2938. R,
  2939. Parent,
  2940. Context
  2941. >;
  2942. export type ShippingAddressResolver<R = ShippingAddress | null, Parent = any, Context = any> = Resolver<
  2943. R,
  2944. Parent,
  2945. Context
  2946. >;
  2947. export type BillingAddressResolver<R = BillingAddress | null, Parent = any, Context = any> = Resolver<
  2948. R,
  2949. Parent,
  2950. Context
  2951. >;
  2952. export type LinesResolver<R = OrderLine[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2953. export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
  2954. R,
  2955. Parent,
  2956. Context
  2957. >;
  2958. export type PaymentsResolver<R = Payment[] | null, Parent = any, Context = any> = Resolver<
  2959. R,
  2960. Parent,
  2961. Context
  2962. >;
  2963. export type SubTotalBeforeTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  2964. R,
  2965. Parent,
  2966. Context
  2967. >;
  2968. export type SubTotalResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2969. export type CurrencyCodeResolver<R = CurrencyCode, Parent = any, Context = any> = Resolver<
  2970. R,
  2971. Parent,
  2972. Context
  2973. >;
  2974. export type ShippingResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2975. export type ShippingMethodResolver<R = ShippingMethod | null, Parent = any, Context = any> = Resolver<
  2976. R,
  2977. Parent,
  2978. Context
  2979. >;
  2980. export type TotalBeforeTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  2981. R,
  2982. Parent,
  2983. Context
  2984. >;
  2985. export type TotalResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2986. }
  2987. export namespace ShippingAddressResolvers {
  2988. export interface Resolvers<Context = any> {
  2989. fullName?: FullNameResolver<string | null, any, Context>;
  2990. company?: CompanyResolver<string | null, any, Context>;
  2991. streetLine1?: StreetLine1Resolver<string | null, any, Context>;
  2992. streetLine2?: StreetLine2Resolver<string | null, any, Context>;
  2993. city?: CityResolver<string | null, any, Context>;
  2994. province?: ProvinceResolver<string | null, any, Context>;
  2995. postalCode?: PostalCodeResolver<string | null, any, Context>;
  2996. country?: CountryResolver<string | null, any, Context>;
  2997. countryCode?: CountryCodeResolver<string | null, any, Context>;
  2998. phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
  2999. }
  3000. export type FullNameResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3001. R,
  3002. Parent,
  3003. Context
  3004. >;
  3005. export type CompanyResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3006. R,
  3007. Parent,
  3008. Context
  3009. >;
  3010. export type StreetLine1Resolver<R = string | null, Parent = any, Context = any> = Resolver<
  3011. R,
  3012. Parent,
  3013. Context
  3014. >;
  3015. export type StreetLine2Resolver<R = string | null, Parent = any, Context = any> = Resolver<
  3016. R,
  3017. Parent,
  3018. Context
  3019. >;
  3020. export type CityResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3021. export type ProvinceResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3022. R,
  3023. Parent,
  3024. Context
  3025. >;
  3026. export type PostalCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3027. R,
  3028. Parent,
  3029. Context
  3030. >;
  3031. export type CountryResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3032. R,
  3033. Parent,
  3034. Context
  3035. >;
  3036. export type CountryCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3037. R,
  3038. Parent,
  3039. Context
  3040. >;
  3041. export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3042. R,
  3043. Parent,
  3044. Context
  3045. >;
  3046. }
  3047. export namespace BillingAddressResolvers {
  3048. export interface Resolvers<Context = any> {
  3049. fullName?: FullNameResolver<string | null, any, Context>;
  3050. company?: CompanyResolver<string | null, any, Context>;
  3051. streetLine1?: StreetLine1Resolver<string | null, any, Context>;
  3052. streetLine2?: StreetLine2Resolver<string | null, any, Context>;
  3053. city?: CityResolver<string | null, any, Context>;
  3054. province?: ProvinceResolver<string | null, any, Context>;
  3055. postalCode?: PostalCodeResolver<string | null, any, Context>;
  3056. country?: CountryResolver<string | null, any, Context>;
  3057. countryCode?: CountryCodeResolver<string | null, any, Context>;
  3058. phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
  3059. }
  3060. export type FullNameResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3061. R,
  3062. Parent,
  3063. Context
  3064. >;
  3065. export type CompanyResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3066. R,
  3067. Parent,
  3068. Context
  3069. >;
  3070. export type StreetLine1Resolver<R = string | null, Parent = any, Context = any> = Resolver<
  3071. R,
  3072. Parent,
  3073. Context
  3074. >;
  3075. export type StreetLine2Resolver<R = string | null, Parent = any, Context = any> = Resolver<
  3076. R,
  3077. Parent,
  3078. Context
  3079. >;
  3080. export type CityResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3081. export type ProvinceResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3082. R,
  3083. Parent,
  3084. Context
  3085. >;
  3086. export type PostalCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3087. R,
  3088. Parent,
  3089. Context
  3090. >;
  3091. export type CountryResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3092. R,
  3093. Parent,
  3094. Context
  3095. >;
  3096. export type CountryCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3097. R,
  3098. Parent,
  3099. Context
  3100. >;
  3101. export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3102. R,
  3103. Parent,
  3104. Context
  3105. >;
  3106. }
  3107. export namespace OrderLineResolvers {
  3108. export interface Resolvers<Context = any> {
  3109. id?: IdResolver<string, any, Context>;
  3110. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3111. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3112. productVariant?: ProductVariantResolver<ProductVariant, any, Context>;
  3113. featuredAsset?: FeaturedAssetResolver<Asset | null, any, Context>;
  3114. unitPrice?: UnitPriceResolver<number, any, Context>;
  3115. unitPriceWithTax?: UnitPriceWithTaxResolver<number, any, Context>;
  3116. quantity?: QuantityResolver<number, any, Context>;
  3117. items?: ItemsResolver<OrderItem[], any, Context>;
  3118. totalPrice?: TotalPriceResolver<number, any, Context>;
  3119. adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
  3120. order?: OrderResolver<Order, any, Context>;
  3121. }
  3122. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3123. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3124. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3125. export type ProductVariantResolver<R = ProductVariant, Parent = any, Context = any> = Resolver<
  3126. R,
  3127. Parent,
  3128. Context
  3129. >;
  3130. export type FeaturedAssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  3131. R,
  3132. Parent,
  3133. Context
  3134. >;
  3135. export type UnitPriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3136. export type UnitPriceWithTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  3137. R,
  3138. Parent,
  3139. Context
  3140. >;
  3141. export type QuantityResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3142. export type ItemsResolver<R = OrderItem[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3143. export type TotalPriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3144. export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
  3145. R,
  3146. Parent,
  3147. Context
  3148. >;
  3149. export type OrderResolver<R = Order, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3150. }
  3151. export namespace ProductVariantResolvers {
  3152. export interface Resolvers<Context = any> {
  3153. id?: IdResolver<string, any, Context>;
  3154. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3155. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3156. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3157. sku?: SkuResolver<string, any, Context>;
  3158. name?: NameResolver<string, any, Context>;
  3159. featuredAsset?: FeaturedAssetResolver<Asset | null, any, Context>;
  3160. assets?: AssetsResolver<Asset[], any, Context>;
  3161. price?: PriceResolver<number, any, Context>;
  3162. currencyCode?: CurrencyCodeResolver<CurrencyCode, any, Context>;
  3163. priceIncludesTax?: PriceIncludesTaxResolver<boolean, any, Context>;
  3164. priceWithTax?: PriceWithTaxResolver<number, any, Context>;
  3165. taxRateApplied?: TaxRateAppliedResolver<TaxRate, any, Context>;
  3166. taxCategory?: TaxCategoryResolver<TaxCategory, any, Context>;
  3167. options?: OptionsResolver<ProductOption[], any, Context>;
  3168. facetValues?: FacetValuesResolver<FacetValue[], any, Context>;
  3169. translations?: TranslationsResolver<ProductVariantTranslation[], any, Context>;
  3170. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3171. }
  3172. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3173. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3174. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3175. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3176. R,
  3177. Parent,
  3178. Context
  3179. >;
  3180. export type SkuResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3181. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3182. export type FeaturedAssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  3183. R,
  3184. Parent,
  3185. Context
  3186. >;
  3187. export type AssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3188. export type PriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3189. export type CurrencyCodeResolver<R = CurrencyCode, Parent = any, Context = any> = Resolver<
  3190. R,
  3191. Parent,
  3192. Context
  3193. >;
  3194. export type PriceIncludesTaxResolver<R = boolean, Parent = any, Context = any> = Resolver<
  3195. R,
  3196. Parent,
  3197. Context
  3198. >;
  3199. export type PriceWithTaxResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3200. export type TaxRateAppliedResolver<R = TaxRate, Parent = any, Context = any> = Resolver<
  3201. R,
  3202. Parent,
  3203. Context
  3204. >;
  3205. export type TaxCategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<
  3206. R,
  3207. Parent,
  3208. Context
  3209. >;
  3210. export type OptionsResolver<R = ProductOption[], Parent = any, Context = any> = Resolver<
  3211. R,
  3212. Parent,
  3213. Context
  3214. >;
  3215. export type FacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  3216. R,
  3217. Parent,
  3218. Context
  3219. >;
  3220. export type TranslationsResolver<R = ProductVariantTranslation[], Parent = any, Context = any> = Resolver<
  3221. R,
  3222. Parent,
  3223. Context
  3224. >;
  3225. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3226. R,
  3227. Parent,
  3228. Context
  3229. >;
  3230. }
  3231. export namespace TaxRateResolvers {
  3232. export interface Resolvers<Context = any> {
  3233. id?: IdResolver<string, any, Context>;
  3234. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3235. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3236. name?: NameResolver<string, any, Context>;
  3237. enabled?: EnabledResolver<boolean, any, Context>;
  3238. value?: ValueResolver<number, any, Context>;
  3239. category?: CategoryResolver<TaxCategory, any, Context>;
  3240. zone?: ZoneResolver<Zone, any, Context>;
  3241. customerGroup?: CustomerGroupResolver<CustomerGroup | null, any, Context>;
  3242. }
  3243. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3244. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3245. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3246. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3247. export type EnabledResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3248. export type ValueResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3249. export type CategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3250. export type ZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3251. export type CustomerGroupResolver<R = CustomerGroup | null, Parent = any, Context = any> = Resolver<
  3252. R,
  3253. Parent,
  3254. Context
  3255. >;
  3256. }
  3257. export namespace TaxCategoryResolvers {
  3258. export interface Resolvers<Context = any> {
  3259. id?: IdResolver<string, any, Context>;
  3260. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3261. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3262. name?: NameResolver<string, any, Context>;
  3263. }
  3264. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3265. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3266. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3267. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3268. }
  3269. export namespace ProductOptionResolvers {
  3270. export interface Resolvers<Context = any> {
  3271. id?: IdResolver<string, any, Context>;
  3272. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3273. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3274. languageCode?: LanguageCodeResolver<LanguageCode | null, any, Context>;
  3275. code?: CodeResolver<string | null, any, Context>;
  3276. name?: NameResolver<string | null, any, Context>;
  3277. translations?: TranslationsResolver<ProductOptionTranslation[], any, Context>;
  3278. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3279. }
  3280. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3281. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3282. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3283. export type LanguageCodeResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
  3284. R,
  3285. Parent,
  3286. Context
  3287. >;
  3288. export type CodeResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3289. export type NameResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3290. export type TranslationsResolver<R = ProductOptionTranslation[], Parent = any, Context = any> = Resolver<
  3291. R,
  3292. Parent,
  3293. Context
  3294. >;
  3295. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3296. R,
  3297. Parent,
  3298. Context
  3299. >;
  3300. }
  3301. export namespace ProductOptionTranslationResolvers {
  3302. export interface Resolvers<Context = any> {
  3303. id?: IdResolver<string, any, Context>;
  3304. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3305. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3306. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3307. name?: NameResolver<string, any, Context>;
  3308. }
  3309. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3310. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3311. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3312. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3313. R,
  3314. Parent,
  3315. Context
  3316. >;
  3317. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3318. }
  3319. export namespace FacetValueResolvers {
  3320. export interface Resolvers<Context = any> {
  3321. id?: IdResolver<string, any, Context>;
  3322. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3323. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3324. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3325. facet?: FacetResolver<Facet, any, Context>;
  3326. name?: NameResolver<string, any, Context>;
  3327. code?: CodeResolver<string, any, Context>;
  3328. translations?: TranslationsResolver<FacetValueTranslation[], any, Context>;
  3329. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3330. }
  3331. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3332. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3333. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3334. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3335. R,
  3336. Parent,
  3337. Context
  3338. >;
  3339. export type FacetResolver<R = Facet, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3340. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3341. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3342. export type TranslationsResolver<R = FacetValueTranslation[], Parent = any, Context = any> = Resolver<
  3343. R,
  3344. Parent,
  3345. Context
  3346. >;
  3347. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3348. R,
  3349. Parent,
  3350. Context
  3351. >;
  3352. }
  3353. export namespace FacetResolvers {
  3354. export interface Resolvers<Context = any> {
  3355. id?: IdResolver<string, any, Context>;
  3356. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3357. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3358. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3359. name?: NameResolver<string, any, Context>;
  3360. code?: CodeResolver<string, any, Context>;
  3361. values?: ValuesResolver<FacetValue[], any, Context>;
  3362. translations?: TranslationsResolver<FacetTranslation[], any, Context>;
  3363. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3364. }
  3365. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3366. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3367. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3368. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3369. R,
  3370. Parent,
  3371. Context
  3372. >;
  3373. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3374. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3375. export type ValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3376. export type TranslationsResolver<R = FacetTranslation[], Parent = any, Context = any> = Resolver<
  3377. R,
  3378. Parent,
  3379. Context
  3380. >;
  3381. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3382. R,
  3383. Parent,
  3384. Context
  3385. >;
  3386. }
  3387. export namespace FacetTranslationResolvers {
  3388. export interface Resolvers<Context = any> {
  3389. id?: IdResolver<string, any, Context>;
  3390. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3391. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3392. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3393. name?: NameResolver<string, any, Context>;
  3394. }
  3395. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3396. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3397. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3398. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3399. R,
  3400. Parent,
  3401. Context
  3402. >;
  3403. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3404. }
  3405. export namespace FacetValueTranslationResolvers {
  3406. export interface Resolvers<Context = any> {
  3407. id?: IdResolver<string, any, Context>;
  3408. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3409. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3410. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3411. name?: NameResolver<string, any, Context>;
  3412. }
  3413. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3414. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3415. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3416. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3417. R,
  3418. Parent,
  3419. Context
  3420. >;
  3421. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3422. }
  3423. export namespace ProductVariantTranslationResolvers {
  3424. export interface Resolvers<Context = any> {
  3425. id?: IdResolver<string, any, Context>;
  3426. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3427. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3428. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3429. name?: NameResolver<string, any, Context>;
  3430. }
  3431. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3432. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3433. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3434. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3435. R,
  3436. Parent,
  3437. Context
  3438. >;
  3439. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3440. }
  3441. export namespace OrderItemResolvers {
  3442. export interface Resolvers<Context = any> {
  3443. id?: IdResolver<string, any, Context>;
  3444. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3445. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3446. unitPrice?: UnitPriceResolver<number, any, Context>;
  3447. unitPriceWithTax?: UnitPriceWithTaxResolver<number, any, Context>;
  3448. unitPriceIncludesTax?: UnitPriceIncludesTaxResolver<boolean, any, Context>;
  3449. taxRate?: TaxRateResolver<number, any, Context>;
  3450. adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
  3451. }
  3452. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3453. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3454. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3455. export type UnitPriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3456. export type UnitPriceWithTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  3457. R,
  3458. Parent,
  3459. Context
  3460. >;
  3461. export type UnitPriceIncludesTaxResolver<R = boolean, Parent = any, Context = any> = Resolver<
  3462. R,
  3463. Parent,
  3464. Context
  3465. >;
  3466. export type TaxRateResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3467. export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
  3468. R,
  3469. Parent,
  3470. Context
  3471. >;
  3472. }
  3473. export namespace AdjustmentResolvers {
  3474. export interface Resolvers<Context = any> {
  3475. adjustmentSource?: AdjustmentSourceResolver<string, any, Context>;
  3476. type?: TypeResolver<AdjustmentType, any, Context>;
  3477. description?: DescriptionResolver<string, any, Context>;
  3478. amount?: AmountResolver<number, any, Context>;
  3479. }
  3480. export type AdjustmentSourceResolver<R = string, Parent = any, Context = any> = Resolver<
  3481. R,
  3482. Parent,
  3483. Context
  3484. >;
  3485. export type TypeResolver<R = AdjustmentType, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3486. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3487. export type AmountResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3488. }
  3489. export namespace PaymentResolvers {
  3490. export interface Resolvers<Context = any> {
  3491. id?: IdResolver<string, any, Context>;
  3492. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3493. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3494. method?: MethodResolver<string, any, Context>;
  3495. amount?: AmountResolver<number, any, Context>;
  3496. state?: StateResolver<string, any, Context>;
  3497. transactionId?: TransactionIdResolver<string | null, any, Context>;
  3498. metadata?: MetadataResolver<Json | null, any, Context>;
  3499. }
  3500. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3501. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3502. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3503. export type MethodResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3504. export type AmountResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3505. export type StateResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3506. export type TransactionIdResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3507. R,
  3508. Parent,
  3509. Context
  3510. >;
  3511. export type MetadataResolver<R = Json | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3512. }
  3513. export namespace ShippingMethodResolvers {
  3514. export interface Resolvers<Context = any> {
  3515. id?: IdResolver<string, any, Context>;
  3516. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3517. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3518. code?: CodeResolver<string, any, Context>;
  3519. description?: DescriptionResolver<string, any, Context>;
  3520. checker?: CheckerResolver<AdjustmentOperation, any, Context>;
  3521. calculator?: CalculatorResolver<AdjustmentOperation, any, Context>;
  3522. }
  3523. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3524. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3525. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3526. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3527. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3528. export type CheckerResolver<R = AdjustmentOperation, Parent = any, Context = any> = Resolver<
  3529. R,
  3530. Parent,
  3531. Context
  3532. >;
  3533. export type CalculatorResolver<R = AdjustmentOperation, Parent = any, Context = any> = Resolver<
  3534. R,
  3535. Parent,
  3536. Context
  3537. >;
  3538. }
  3539. export namespace AdjustmentOperationResolvers {
  3540. export interface Resolvers<Context = any> {
  3541. code?: CodeResolver<string, any, Context>;
  3542. args?: ArgsResolver<ConfigArg[], any, Context>;
  3543. description?: DescriptionResolver<string, any, Context>;
  3544. }
  3545. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3546. export type ArgsResolver<R = ConfigArg[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3547. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3548. }
  3549. export namespace ConfigArgResolvers {
  3550. export interface Resolvers<Context = any> {
  3551. name?: NameResolver<string, any, Context>;
  3552. type?: TypeResolver<string, any, Context>;
  3553. value?: ValueResolver<string | null, any, Context>;
  3554. }
  3555. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3556. export type TypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3557. export type ValueResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3558. }
  3559. export namespace FacetListResolvers {
  3560. export interface Resolvers<Context = any> {
  3561. items?: ItemsResolver<Facet[], any, Context>;
  3562. totalItems?: TotalItemsResolver<number, any, Context>;
  3563. }
  3564. export type ItemsResolver<R = Facet[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3565. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3566. }
  3567. export namespace GlobalSettingsResolvers {
  3568. export interface Resolvers<Context = any> {
  3569. id?: IdResolver<string, any, Context>;
  3570. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3571. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3572. availableLanguages?: AvailableLanguagesResolver<LanguageCode[], any, Context>;
  3573. serverConfig?: ServerConfigResolver<ServerConfig, any, Context>;
  3574. customFields?: CustomFieldsResolver<GlobalSettingsCustomFields | null, any, Context>;
  3575. }
  3576. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3577. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3578. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3579. export type AvailableLanguagesResolver<R = LanguageCode[], Parent = any, Context = any> = Resolver<
  3580. R,
  3581. Parent,
  3582. Context
  3583. >;
  3584. export type ServerConfigResolver<R = ServerConfig, Parent = any, Context = any> = Resolver<
  3585. R,
  3586. Parent,
  3587. Context
  3588. >;
  3589. export type CustomFieldsResolver<
  3590. R = GlobalSettingsCustomFields | null,
  3591. Parent = any,
  3592. Context = any
  3593. > = Resolver<R, Parent, Context>;
  3594. }
  3595. export namespace ServerConfigResolvers {
  3596. export interface Resolvers<Context = any> {
  3597. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3598. }
  3599. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3600. R,
  3601. Parent,
  3602. Context
  3603. >;
  3604. }
  3605. export namespace GlobalSettingsCustomFieldsResolvers {
  3606. export interface Resolvers<Context = any> {
  3607. royalMailId?: RoyalMailIdResolver<string | null, any, Context>;
  3608. }
  3609. export type RoyalMailIdResolver<R = string | null, Parent = any, Context = any> = Resolver<
  3610. R,
  3611. Parent,
  3612. Context
  3613. >;
  3614. }
  3615. export namespace ShippingMethodQuoteResolvers {
  3616. export interface Resolvers<Context = any> {
  3617. id?: IdResolver<string, any, Context>;
  3618. price?: PriceResolver<number, any, Context>;
  3619. description?: DescriptionResolver<string, any, Context>;
  3620. }
  3621. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3622. export type PriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3623. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3624. }
  3625. export namespace PaymentMethodListResolvers {
  3626. export interface Resolvers<Context = any> {
  3627. items?: ItemsResolver<PaymentMethod[], any, Context>;
  3628. totalItems?: TotalItemsResolver<number, any, Context>;
  3629. }
  3630. export type ItemsResolver<R = PaymentMethod[], Parent = any, Context = any> = Resolver<
  3631. R,
  3632. Parent,
  3633. Context
  3634. >;
  3635. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3636. }
  3637. export namespace PaymentMethodResolvers {
  3638. export interface Resolvers<Context = any> {
  3639. id?: IdResolver<string, any, Context>;
  3640. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3641. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3642. code?: CodeResolver<string, any, Context>;
  3643. enabled?: EnabledResolver<boolean, any, Context>;
  3644. configArgs?: ConfigArgsResolver<ConfigArg[], any, Context>;
  3645. }
  3646. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3647. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3648. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3649. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3650. export type EnabledResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3651. export type ConfigArgsResolver<R = ConfigArg[], Parent = any, Context = any> = Resolver<
  3652. R,
  3653. Parent,
  3654. Context
  3655. >;
  3656. }
  3657. export namespace ProductCategoryListResolvers {
  3658. export interface Resolvers<Context = any> {
  3659. items?: ItemsResolver<ProductCategory[], any, Context>;
  3660. totalItems?: TotalItemsResolver<number, any, Context>;
  3661. }
  3662. export type ItemsResolver<R = ProductCategory[], Parent = any, Context = any> = Resolver<
  3663. R,
  3664. Parent,
  3665. Context
  3666. >;
  3667. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3668. }
  3669. export namespace ProductCategoryResolvers {
  3670. export interface Resolvers<Context = any> {
  3671. id?: IdResolver<string, any, Context>;
  3672. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3673. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3674. languageCode?: LanguageCodeResolver<LanguageCode | null, any, Context>;
  3675. name?: NameResolver<string, any, Context>;
  3676. position?: PositionResolver<number, any, Context>;
  3677. description?: DescriptionResolver<string, any, Context>;
  3678. featuredAsset?: FeaturedAssetResolver<Asset | null, any, Context>;
  3679. assets?: AssetsResolver<Asset[], any, Context>;
  3680. parent?: ParentResolver<ProductCategory, any, Context>;
  3681. children?: ChildrenResolver<ProductCategory[] | null, any, Context>;
  3682. facetValues?: FacetValuesResolver<FacetValue[], any, Context>;
  3683. descendantFacetValues?: DescendantFacetValuesResolver<FacetValue[], any, Context>;
  3684. translations?: TranslationsResolver<ProductCategoryTranslation[], any, Context>;
  3685. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3686. }
  3687. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3688. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3689. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3690. export type LanguageCodeResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
  3691. R,
  3692. Parent,
  3693. Context
  3694. >;
  3695. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3696. export type PositionResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3697. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3698. export type FeaturedAssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  3699. R,
  3700. Parent,
  3701. Context
  3702. >;
  3703. export type AssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3704. export type ParentResolver<R = ProductCategory, Parent = any, Context = any> = Resolver<
  3705. R,
  3706. Parent,
  3707. Context
  3708. >;
  3709. export type ChildrenResolver<R = ProductCategory[] | null, Parent = any, Context = any> = Resolver<
  3710. R,
  3711. Parent,
  3712. Context
  3713. >;
  3714. export type FacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  3715. R,
  3716. Parent,
  3717. Context
  3718. >;
  3719. export type DescendantFacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  3720. R,
  3721. Parent,
  3722. Context
  3723. >;
  3724. export type TranslationsResolver<
  3725. R = ProductCategoryTranslation[],
  3726. Parent = any,
  3727. Context = any
  3728. > = Resolver<R, Parent, Context>;
  3729. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3730. R,
  3731. Parent,
  3732. Context
  3733. >;
  3734. }
  3735. export namespace ProductCategoryTranslationResolvers {
  3736. export interface Resolvers<Context = any> {
  3737. id?: IdResolver<string, any, Context>;
  3738. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3739. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3740. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3741. name?: NameResolver<string, any, Context>;
  3742. description?: DescriptionResolver<string, any, Context>;
  3743. }
  3744. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3745. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3746. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3747. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3748. R,
  3749. Parent,
  3750. Context
  3751. >;
  3752. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3753. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3754. }
  3755. export namespace ProductOptionGroupResolvers {
  3756. export interface Resolvers<Context = any> {
  3757. id?: IdResolver<string, any, Context>;
  3758. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3759. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3760. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3761. code?: CodeResolver<string, any, Context>;
  3762. name?: NameResolver<string, any, Context>;
  3763. options?: OptionsResolver<ProductOption[], any, Context>;
  3764. translations?: TranslationsResolver<ProductOptionGroupTranslation[], any, Context>;
  3765. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3766. }
  3767. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3768. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3769. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3770. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3771. R,
  3772. Parent,
  3773. Context
  3774. >;
  3775. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3776. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3777. export type OptionsResolver<R = ProductOption[], Parent = any, Context = any> = Resolver<
  3778. R,
  3779. Parent,
  3780. Context
  3781. >;
  3782. export type TranslationsResolver<
  3783. R = ProductOptionGroupTranslation[],
  3784. Parent = any,
  3785. Context = any
  3786. > = Resolver<R, Parent, Context>;
  3787. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3788. R,
  3789. Parent,
  3790. Context
  3791. >;
  3792. }
  3793. export namespace ProductOptionGroupTranslationResolvers {
  3794. export interface Resolvers<Context = any> {
  3795. id?: IdResolver<string, any, Context>;
  3796. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3797. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3798. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3799. name?: NameResolver<string, any, Context>;
  3800. }
  3801. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3802. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3803. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3804. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3805. R,
  3806. Parent,
  3807. Context
  3808. >;
  3809. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3810. }
  3811. export namespace ProductListResolvers {
  3812. export interface Resolvers<Context = any> {
  3813. items?: ItemsResolver<Product[], any, Context>;
  3814. totalItems?: TotalItemsResolver<number, any, Context>;
  3815. }
  3816. export type ItemsResolver<R = Product[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3817. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3818. }
  3819. export namespace ProductResolvers {
  3820. export interface Resolvers<Context = any> {
  3821. id?: IdResolver<string, any, Context>;
  3822. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3823. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3824. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3825. name?: NameResolver<string, any, Context>;
  3826. slug?: SlugResolver<string, any, Context>;
  3827. description?: DescriptionResolver<string, any, Context>;
  3828. featuredAsset?: FeaturedAssetResolver<Asset | null, any, Context>;
  3829. assets?: AssetsResolver<Asset[], any, Context>;
  3830. variants?: VariantsResolver<ProductVariant[], any, Context>;
  3831. optionGroups?: OptionGroupsResolver<ProductOptionGroup[], any, Context>;
  3832. facetValues?: FacetValuesResolver<FacetValue[], any, Context>;
  3833. translations?: TranslationsResolver<ProductTranslation[], any, Context>;
  3834. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  3835. }
  3836. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3837. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3838. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3839. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3840. R,
  3841. Parent,
  3842. Context
  3843. >;
  3844. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3845. export type SlugResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3846. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3847. export type FeaturedAssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  3848. R,
  3849. Parent,
  3850. Context
  3851. >;
  3852. export type AssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3853. export type VariantsResolver<R = ProductVariant[], Parent = any, Context = any> = Resolver<
  3854. R,
  3855. Parent,
  3856. Context
  3857. >;
  3858. export type OptionGroupsResolver<R = ProductOptionGroup[], Parent = any, Context = any> = Resolver<
  3859. R,
  3860. Parent,
  3861. Context
  3862. >;
  3863. export type FacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  3864. R,
  3865. Parent,
  3866. Context
  3867. >;
  3868. export type TranslationsResolver<R = ProductTranslation[], Parent = any, Context = any> = Resolver<
  3869. R,
  3870. Parent,
  3871. Context
  3872. >;
  3873. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  3874. R,
  3875. Parent,
  3876. Context
  3877. >;
  3878. }
  3879. export namespace ProductTranslationResolvers {
  3880. export interface Resolvers<Context = any> {
  3881. id?: IdResolver<string, any, Context>;
  3882. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3883. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3884. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  3885. name?: NameResolver<string, any, Context>;
  3886. slug?: SlugResolver<string, any, Context>;
  3887. description?: DescriptionResolver<string, any, Context>;
  3888. }
  3889. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3890. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3891. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3892. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  3893. R,
  3894. Parent,
  3895. Context
  3896. >;
  3897. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3898. export type SlugResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3899. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3900. }
  3901. export namespace PromotionResolvers {
  3902. export interface Resolvers<Context = any> {
  3903. id?: IdResolver<string, any, Context>;
  3904. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  3905. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  3906. name?: NameResolver<string, any, Context>;
  3907. enabled?: EnabledResolver<boolean, any, Context>;
  3908. conditions?: ConditionsResolver<AdjustmentOperation[], any, Context>;
  3909. actions?: ActionsResolver<AdjustmentOperation[], any, Context>;
  3910. }
  3911. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3912. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3913. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3914. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3915. export type EnabledResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3916. export type ConditionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  3917. R,
  3918. Parent,
  3919. Context
  3920. >;
  3921. export type ActionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  3922. R,
  3923. Parent,
  3924. Context
  3925. >;
  3926. }
  3927. export namespace PromotionListResolvers {
  3928. export interface Resolvers<Context = any> {
  3929. items?: ItemsResolver<Promotion[], any, Context>;
  3930. totalItems?: TotalItemsResolver<number, any, Context>;
  3931. }
  3932. export type ItemsResolver<R = Promotion[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3933. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3934. }
  3935. export namespace AdjustmentOperationsResolvers {
  3936. export interface Resolvers<Context = any> {
  3937. conditions?: ConditionsResolver<AdjustmentOperation[], any, Context>;
  3938. actions?: ActionsResolver<AdjustmentOperation[], any, Context>;
  3939. }
  3940. export type ConditionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  3941. R,
  3942. Parent,
  3943. Context
  3944. >;
  3945. export type ActionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  3946. R,
  3947. Parent,
  3948. Context
  3949. >;
  3950. }
  3951. export namespace RoleListResolvers {
  3952. export interface Resolvers<Context = any> {
  3953. items?: ItemsResolver<Role[], any, Context>;
  3954. totalItems?: TotalItemsResolver<number, any, Context>;
  3955. }
  3956. export type ItemsResolver<R = Role[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3957. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3958. }
  3959. export namespace SearchResponseResolvers {
  3960. export interface Resolvers<Context = any> {
  3961. items?: ItemsResolver<SearchResult[], any, Context>;
  3962. totalItems?: TotalItemsResolver<number, any, Context>;
  3963. facetValues?: FacetValuesResolver<FacetValue[], any, Context>;
  3964. }
  3965. export type ItemsResolver<R = SearchResult[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3966. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3967. export type FacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  3968. R,
  3969. Parent,
  3970. Context
  3971. >;
  3972. }
  3973. export namespace SearchResultResolvers {
  3974. export interface Resolvers<Context = any> {
  3975. sku?: SkuResolver<string, any, Context>;
  3976. productId?: ProductIdResolver<string, any, Context>;
  3977. productName?: ProductNameResolver<string, any, Context>;
  3978. productPreview?: ProductPreviewResolver<string, any, Context>;
  3979. productVariantId?: ProductVariantIdResolver<string, any, Context>;
  3980. productVariantName?: ProductVariantNameResolver<string, any, Context>;
  3981. productVariantPreview?: ProductVariantPreviewResolver<string, any, Context>;
  3982. description?: DescriptionResolver<string, any, Context>;
  3983. facetIds?: FacetIdsResolver<string[], any, Context>;
  3984. facetValueIds?: FacetValueIdsResolver<string[], any, Context>;
  3985. score?: ScoreResolver<number, any, Context>;
  3986. }
  3987. export type SkuResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3988. export type ProductIdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3989. export type ProductNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3990. export type ProductPreviewResolver<R = string, Parent = any, Context = any> = Resolver<
  3991. R,
  3992. Parent,
  3993. Context
  3994. >;
  3995. export type ProductVariantIdResolver<R = string, Parent = any, Context = any> = Resolver<
  3996. R,
  3997. Parent,
  3998. Context
  3999. >;
  4000. export type ProductVariantNameResolver<R = string, Parent = any, Context = any> = Resolver<
  4001. R,
  4002. Parent,
  4003. Context
  4004. >;
  4005. export type ProductVariantPreviewResolver<R = string, Parent = any, Context = any> = Resolver<
  4006. R,
  4007. Parent,
  4008. Context
  4009. >;
  4010. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4011. export type FacetIdsResolver<R = string[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4012. export type FacetValueIdsResolver<R = string[], Parent = any, Context = any> = Resolver<
  4013. R,
  4014. Parent,
  4015. Context
  4016. >;
  4017. export type ScoreResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4018. }
  4019. export namespace ShippingMethodListResolvers {
  4020. export interface Resolvers<Context = any> {
  4021. items?: ItemsResolver<ShippingMethod[], any, Context>;
  4022. totalItems?: TotalItemsResolver<number, any, Context>;
  4023. }
  4024. export type ItemsResolver<R = ShippingMethod[], Parent = any, Context = any> = Resolver<
  4025. R,
  4026. Parent,
  4027. Context
  4028. >;
  4029. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4030. }
  4031. export namespace TaxRateListResolvers {
  4032. export interface Resolvers<Context = any> {
  4033. items?: ItemsResolver<TaxRate[], any, Context>;
  4034. totalItems?: TotalItemsResolver<number, any, Context>;
  4035. }
  4036. export type ItemsResolver<R = TaxRate[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4037. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4038. }
  4039. export namespace NetworkStatusResolvers {
  4040. export interface Resolvers<Context = any> {
  4041. inFlightRequests?: InFlightRequestsResolver<number, any, Context>;
  4042. }
  4043. export type InFlightRequestsResolver<R = number, Parent = any, Context = any> = Resolver<
  4044. R,
  4045. Parent,
  4046. Context
  4047. >;
  4048. }
  4049. export namespace UserStatusResolvers {
  4050. export interface Resolvers<Context = any> {
  4051. username?: UsernameResolver<string, any, Context>;
  4052. isLoggedIn?: IsLoggedInResolver<boolean, any, Context>;
  4053. loginTime?: LoginTimeResolver<string, any, Context>;
  4054. }
  4055. export type UsernameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4056. export type IsLoggedInResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4057. export type LoginTimeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4058. }
  4059. export namespace UiStateResolvers {
  4060. export interface Resolvers<Context = any> {
  4061. language?: LanguageResolver<LanguageCode, any, Context>;
  4062. }
  4063. export type LanguageResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  4064. R,
  4065. Parent,
  4066. Context
  4067. >;
  4068. }
  4069. export namespace MutationResolvers {
  4070. export interface Resolvers<Context = any> {
  4071. createAdministrator?: CreateAdministratorResolver<Administrator, any, Context>;
  4072. updateAdministrator?: UpdateAdministratorResolver<Administrator, any, Context>;
  4073. assignRoleToAdministrator?: AssignRoleToAdministratorResolver<Administrator, any, Context>;
  4074. createAssets?: CreateAssetsResolver<Asset[], any, Context>;
  4075. login?: LoginResolver<LoginResult, any, Context>;
  4076. logout?: LogoutResolver<boolean, any, Context>;
  4077. registerCustomerAccount?: RegisterCustomerAccountResolver<boolean, any, Context>;
  4078. verifyCustomerAccount?: VerifyCustomerAccountResolver<LoginResult, any, Context>;
  4079. refreshCustomerVerification?: RefreshCustomerVerificationResolver<boolean, any, Context>;
  4080. createChannel?: CreateChannelResolver<Channel, any, Context>;
  4081. updateChannel?: UpdateChannelResolver<Channel, any, Context>;
  4082. createCountry?: CreateCountryResolver<Country, any, Context>;
  4083. updateCountry?: UpdateCountryResolver<Country, any, Context>;
  4084. deleteCountry?: DeleteCountryResolver<DeletionResponse, any, Context>;
  4085. createCustomerGroup?: CreateCustomerGroupResolver<CustomerGroup, any, Context>;
  4086. updateCustomerGroup?: UpdateCustomerGroupResolver<CustomerGroup, any, Context>;
  4087. addCustomersToGroup?: AddCustomersToGroupResolver<CustomerGroup, any, Context>;
  4088. removeCustomersFromGroup?: RemoveCustomersFromGroupResolver<CustomerGroup, any, Context>;
  4089. createCustomer?: CreateCustomerResolver<Customer, any, Context>;
  4090. updateCustomer?: UpdateCustomerResolver<Customer, any, Context>;
  4091. deleteCustomer?: DeleteCustomerResolver<DeletionResponse, any, Context>;
  4092. createCustomerAddress?: CreateCustomerAddressResolver<Address, any, Context>;
  4093. updateCustomerAddress?: UpdateCustomerAddressResolver<Address, any, Context>;
  4094. createFacet?: CreateFacetResolver<Facet, any, Context>;
  4095. updateFacet?: UpdateFacetResolver<Facet, any, Context>;
  4096. deleteFacet?: DeleteFacetResolver<DeletionResponse, any, Context>;
  4097. createFacetValues?: CreateFacetValuesResolver<FacetValue[], any, Context>;
  4098. updateFacetValues?: UpdateFacetValuesResolver<FacetValue[], any, Context>;
  4099. deleteFacetValues?: DeleteFacetValuesResolver<DeletionResponse[], any, Context>;
  4100. updateGlobalSettings?: UpdateGlobalSettingsResolver<GlobalSettings, any, Context>;
  4101. importProducts?: ImportProductsResolver<ImportInfo | null, any, Context>;
  4102. addItemToOrder?: AddItemToOrderResolver<Order | null, any, Context>;
  4103. removeItemFromOrder?: RemoveItemFromOrderResolver<Order | null, any, Context>;
  4104. adjustItemQuantity?: AdjustItemQuantityResolver<Order | null, any, Context>;
  4105. transitionOrderToState?: TransitionOrderToStateResolver<Order | null, any, Context>;
  4106. setOrderShippingAddress?: SetOrderShippingAddressResolver<Order | null, any, Context>;
  4107. setOrderShippingMethod?: SetOrderShippingMethodResolver<Order | null, any, Context>;
  4108. addPaymentToOrder?: AddPaymentToOrderResolver<Order | null, any, Context>;
  4109. setCustomerForOrder?: SetCustomerForOrderResolver<Order | null, any, Context>;
  4110. updatePaymentMethod?: UpdatePaymentMethodResolver<PaymentMethod, any, Context>;
  4111. createProductCategory?: CreateProductCategoryResolver<ProductCategory, any, Context>;
  4112. updateProductCategory?: UpdateProductCategoryResolver<ProductCategory, any, Context>;
  4113. moveProductCategory?: MoveProductCategoryResolver<ProductCategory, any, Context>;
  4114. createProductOptionGroup?: CreateProductOptionGroupResolver<ProductOptionGroup, any, Context>;
  4115. updateProductOptionGroup?: UpdateProductOptionGroupResolver<ProductOptionGroup, any, Context>;
  4116. createProduct?: CreateProductResolver<Product, any, Context>;
  4117. updateProduct?: UpdateProductResolver<Product, any, Context>;
  4118. deleteProduct?: DeleteProductResolver<DeletionResponse, any, Context>;
  4119. addOptionGroupToProduct?: AddOptionGroupToProductResolver<Product, any, Context>;
  4120. removeOptionGroupFromProduct?: RemoveOptionGroupFromProductResolver<Product, any, Context>;
  4121. generateVariantsForProduct?: GenerateVariantsForProductResolver<Product, any, Context>;
  4122. updateProductVariants?: UpdateProductVariantsResolver<(ProductVariant | null)[], any, Context>;
  4123. createPromotion?: CreatePromotionResolver<Promotion, any, Context>;
  4124. updatePromotion?: UpdatePromotionResolver<Promotion, any, Context>;
  4125. deletePromotion?: DeletePromotionResolver<DeletionResponse, any, Context>;
  4126. createRole?: CreateRoleResolver<Role, any, Context>;
  4127. updateRole?: UpdateRoleResolver<Role, any, Context>;
  4128. reindex?: ReindexResolver<SearchReindexResponse, any, Context>;
  4129. createShippingMethod?: CreateShippingMethodResolver<ShippingMethod, any, Context>;
  4130. updateShippingMethod?: UpdateShippingMethodResolver<ShippingMethod, any, Context>;
  4131. createTaxCategory?: CreateTaxCategoryResolver<TaxCategory, any, Context>;
  4132. updateTaxCategory?: UpdateTaxCategoryResolver<TaxCategory, any, Context>;
  4133. createTaxRate?: CreateTaxRateResolver<TaxRate, any, Context>;
  4134. updateTaxRate?: UpdateTaxRateResolver<TaxRate, any, Context>;
  4135. createZone?: CreateZoneResolver<Zone, any, Context>;
  4136. updateZone?: UpdateZoneResolver<Zone, any, Context>;
  4137. deleteZone?: DeleteZoneResolver<DeletionResponse, any, Context>;
  4138. addMembersToZone?: AddMembersToZoneResolver<Zone, any, Context>;
  4139. removeMembersFromZone?: RemoveMembersFromZoneResolver<Zone, any, Context>;
  4140. requestStarted?: RequestStartedResolver<number, any, Context>;
  4141. requestCompleted?: RequestCompletedResolver<number, any, Context>;
  4142. setAsLoggedIn?: SetAsLoggedInResolver<UserStatus, any, Context>;
  4143. setAsLoggedOut?: SetAsLoggedOutResolver<UserStatus, any, Context>;
  4144. setUiLanguage?: SetUiLanguageResolver<LanguageCode | null, any, Context>;
  4145. }
  4146. export type CreateAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
  4147. R,
  4148. Parent,
  4149. Context,
  4150. CreateAdministratorArgs
  4151. >;
  4152. export interface CreateAdministratorArgs {
  4153. input: CreateAdministratorInput;
  4154. }
  4155. export type UpdateAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
  4156. R,
  4157. Parent,
  4158. Context,
  4159. UpdateAdministratorArgs
  4160. >;
  4161. export interface UpdateAdministratorArgs {
  4162. input: UpdateAdministratorInput;
  4163. }
  4164. export type AssignRoleToAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
  4165. R,
  4166. Parent,
  4167. Context,
  4168. AssignRoleToAdministratorArgs
  4169. >;
  4170. export interface AssignRoleToAdministratorArgs {
  4171. administratorId: string;
  4172. roleId: string;
  4173. }
  4174. export type CreateAssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<
  4175. R,
  4176. Parent,
  4177. Context,
  4178. CreateAssetsArgs
  4179. >;
  4180. export interface CreateAssetsArgs {
  4181. input: CreateAssetInput[];
  4182. }
  4183. export type LoginResolver<R = LoginResult, Parent = any, Context = any> = Resolver<
  4184. R,
  4185. Parent,
  4186. Context,
  4187. LoginArgs
  4188. >;
  4189. export interface LoginArgs {
  4190. username: string;
  4191. password: string;
  4192. rememberMe?: boolean | null;
  4193. }
  4194. export type LogoutResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4195. export type RegisterCustomerAccountResolver<R = boolean, Parent = any, Context = any> = Resolver<
  4196. R,
  4197. Parent,
  4198. Context,
  4199. RegisterCustomerAccountArgs
  4200. >;
  4201. export interface RegisterCustomerAccountArgs {
  4202. input: RegisterCustomerInput;
  4203. }
  4204. export type VerifyCustomerAccountResolver<R = LoginResult, Parent = any, Context = any> = Resolver<
  4205. R,
  4206. Parent,
  4207. Context,
  4208. VerifyCustomerAccountArgs
  4209. >;
  4210. export interface VerifyCustomerAccountArgs {
  4211. token: string;
  4212. password: string;
  4213. }
  4214. export type RefreshCustomerVerificationResolver<R = boolean, Parent = any, Context = any> = Resolver<
  4215. R,
  4216. Parent,
  4217. Context,
  4218. RefreshCustomerVerificationArgs
  4219. >;
  4220. export interface RefreshCustomerVerificationArgs {
  4221. emailAddress: string;
  4222. }
  4223. export type CreateChannelResolver<R = Channel, Parent = any, Context = any> = Resolver<
  4224. R,
  4225. Parent,
  4226. Context,
  4227. CreateChannelArgs
  4228. >;
  4229. export interface CreateChannelArgs {
  4230. input: CreateChannelInput;
  4231. }
  4232. export type UpdateChannelResolver<R = Channel, Parent = any, Context = any> = Resolver<
  4233. R,
  4234. Parent,
  4235. Context,
  4236. UpdateChannelArgs
  4237. >;
  4238. export interface UpdateChannelArgs {
  4239. input: UpdateChannelInput;
  4240. }
  4241. export type CreateCountryResolver<R = Country, Parent = any, Context = any> = Resolver<
  4242. R,
  4243. Parent,
  4244. Context,
  4245. CreateCountryArgs
  4246. >;
  4247. export interface CreateCountryArgs {
  4248. input: CreateCountryInput;
  4249. }
  4250. export type UpdateCountryResolver<R = Country, Parent = any, Context = any> = Resolver<
  4251. R,
  4252. Parent,
  4253. Context,
  4254. UpdateCountryArgs
  4255. >;
  4256. export interface UpdateCountryArgs {
  4257. input: UpdateCountryInput;
  4258. }
  4259. export type DeleteCountryResolver<R = DeletionResponse, Parent = any, Context = any> = Resolver<
  4260. R,
  4261. Parent,
  4262. Context,
  4263. DeleteCountryArgs
  4264. >;
  4265. export interface DeleteCountryArgs {
  4266. id: string;
  4267. }
  4268. export type CreateCustomerGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  4269. R,
  4270. Parent,
  4271. Context,
  4272. CreateCustomerGroupArgs
  4273. >;
  4274. export interface CreateCustomerGroupArgs {
  4275. input: CreateCustomerGroupInput;
  4276. }
  4277. export type UpdateCustomerGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  4278. R,
  4279. Parent,
  4280. Context,
  4281. UpdateCustomerGroupArgs
  4282. >;
  4283. export interface UpdateCustomerGroupArgs {
  4284. input: UpdateCustomerGroupInput;
  4285. }
  4286. export type AddCustomersToGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  4287. R,
  4288. Parent,
  4289. Context,
  4290. AddCustomersToGroupArgs
  4291. >;
  4292. export interface AddCustomersToGroupArgs {
  4293. customerGroupId: string;
  4294. customerIds: string[];
  4295. }
  4296. export type RemoveCustomersFromGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  4297. R,
  4298. Parent,
  4299. Context,
  4300. RemoveCustomersFromGroupArgs
  4301. >;
  4302. export interface RemoveCustomersFromGroupArgs {
  4303. customerGroupId: string;
  4304. customerIds: string[];
  4305. }
  4306. export type CreateCustomerResolver<R = Customer, Parent = any, Context = any> = Resolver<
  4307. R,
  4308. Parent,
  4309. Context,
  4310. CreateCustomerArgs
  4311. >;
  4312. export interface CreateCustomerArgs {
  4313. input: CreateCustomerInput;
  4314. password?: string | null;
  4315. }
  4316. export type UpdateCustomerResolver<R = Customer, Parent = any, Context = any> = Resolver<
  4317. R,
  4318. Parent,
  4319. Context,
  4320. UpdateCustomerArgs
  4321. >;
  4322. export interface UpdateCustomerArgs {
  4323. input: UpdateCustomerInput;
  4324. }
  4325. export type DeleteCustomerResolver<R = DeletionResponse, Parent = any, Context = any> = Resolver<
  4326. R,
  4327. Parent,
  4328. Context,
  4329. DeleteCustomerArgs
  4330. >;
  4331. export interface DeleteCustomerArgs {
  4332. id: string;
  4333. }
  4334. export type CreateCustomerAddressResolver<R = Address, Parent = any, Context = any> = Resolver<
  4335. R,
  4336. Parent,
  4337. Context,
  4338. CreateCustomerAddressArgs
  4339. >;
  4340. export interface CreateCustomerAddressArgs {
  4341. customerId: string;
  4342. input: CreateAddressInput;
  4343. }
  4344. export type UpdateCustomerAddressResolver<R = Address, Parent = any, Context = any> = Resolver<
  4345. R,
  4346. Parent,
  4347. Context,
  4348. UpdateCustomerAddressArgs
  4349. >;
  4350. export interface UpdateCustomerAddressArgs {
  4351. input: UpdateAddressInput;
  4352. }
  4353. export type CreateFacetResolver<R = Facet, Parent = any, Context = any> = Resolver<
  4354. R,
  4355. Parent,
  4356. Context,
  4357. CreateFacetArgs
  4358. >;
  4359. export interface CreateFacetArgs {
  4360. input: CreateFacetInput;
  4361. }
  4362. export type UpdateFacetResolver<R = Facet, Parent = any, Context = any> = Resolver<
  4363. R,
  4364. Parent,
  4365. Context,
  4366. UpdateFacetArgs
  4367. >;
  4368. export interface UpdateFacetArgs {
  4369. input: UpdateFacetInput;
  4370. }
  4371. export type DeleteFacetResolver<R = DeletionResponse, Parent = any, Context = any> = Resolver<
  4372. R,
  4373. Parent,
  4374. Context,
  4375. DeleteFacetArgs
  4376. >;
  4377. export interface DeleteFacetArgs {
  4378. id: string;
  4379. force?: boolean | null;
  4380. }
  4381. export type CreateFacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  4382. R,
  4383. Parent,
  4384. Context,
  4385. CreateFacetValuesArgs
  4386. >;
  4387. export interface CreateFacetValuesArgs {
  4388. input: CreateFacetValueInput[];
  4389. }
  4390. export type UpdateFacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  4391. R,
  4392. Parent,
  4393. Context,
  4394. UpdateFacetValuesArgs
  4395. >;
  4396. export interface UpdateFacetValuesArgs {
  4397. input: UpdateFacetValueInput[];
  4398. }
  4399. export type DeleteFacetValuesResolver<R = DeletionResponse[], Parent = any, Context = any> = Resolver<
  4400. R,
  4401. Parent,
  4402. Context,
  4403. DeleteFacetValuesArgs
  4404. >;
  4405. export interface DeleteFacetValuesArgs {
  4406. ids: string[];
  4407. force?: boolean | null;
  4408. }
  4409. export type UpdateGlobalSettingsResolver<R = GlobalSettings, Parent = any, Context = any> = Resolver<
  4410. R,
  4411. Parent,
  4412. Context,
  4413. UpdateGlobalSettingsArgs
  4414. >;
  4415. export interface UpdateGlobalSettingsArgs {
  4416. input: UpdateGlobalSettingsInput;
  4417. }
  4418. export type ImportProductsResolver<R = ImportInfo | null, Parent = any, Context = any> = Resolver<
  4419. R,
  4420. Parent,
  4421. Context,
  4422. ImportProductsArgs
  4423. >;
  4424. export interface ImportProductsArgs {
  4425. csvFile: Upload;
  4426. }
  4427. export type AddItemToOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4428. R,
  4429. Parent,
  4430. Context,
  4431. AddItemToOrderArgs
  4432. >;
  4433. export interface AddItemToOrderArgs {
  4434. productVariantId: string;
  4435. quantity: number;
  4436. }
  4437. export type RemoveItemFromOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4438. R,
  4439. Parent,
  4440. Context,
  4441. RemoveItemFromOrderArgs
  4442. >;
  4443. export interface RemoveItemFromOrderArgs {
  4444. orderItemId: string;
  4445. }
  4446. export type AdjustItemQuantityResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4447. R,
  4448. Parent,
  4449. Context,
  4450. AdjustItemQuantityArgs
  4451. >;
  4452. export interface AdjustItemQuantityArgs {
  4453. orderItemId: string;
  4454. quantity: number;
  4455. }
  4456. export type TransitionOrderToStateResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4457. R,
  4458. Parent,
  4459. Context,
  4460. TransitionOrderToStateArgs
  4461. >;
  4462. export interface TransitionOrderToStateArgs {
  4463. state: string;
  4464. }
  4465. export type SetOrderShippingAddressResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4466. R,
  4467. Parent,
  4468. Context,
  4469. SetOrderShippingAddressArgs
  4470. >;
  4471. export interface SetOrderShippingAddressArgs {
  4472. input: CreateAddressInput;
  4473. }
  4474. export type SetOrderShippingMethodResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4475. R,
  4476. Parent,
  4477. Context,
  4478. SetOrderShippingMethodArgs
  4479. >;
  4480. export interface SetOrderShippingMethodArgs {
  4481. shippingMethodId: string;
  4482. }
  4483. export type AddPaymentToOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4484. R,
  4485. Parent,
  4486. Context,
  4487. AddPaymentToOrderArgs
  4488. >;
  4489. export interface AddPaymentToOrderArgs {
  4490. input: PaymentInput;
  4491. }
  4492. export type SetCustomerForOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  4493. R,
  4494. Parent,
  4495. Context,
  4496. SetCustomerForOrderArgs
  4497. >;
  4498. export interface SetCustomerForOrderArgs {
  4499. input: CreateCustomerInput;
  4500. }
  4501. export type UpdatePaymentMethodResolver<R = PaymentMethod, Parent = any, Context = any> = Resolver<
  4502. R,
  4503. Parent,
  4504. Context,
  4505. UpdatePaymentMethodArgs
  4506. >;
  4507. export interface UpdatePaymentMethodArgs {
  4508. input: UpdatePaymentMethodInput;
  4509. }
  4510. export type CreateProductCategoryResolver<R = ProductCategory, Parent = any, Context = any> = Resolver<
  4511. R,
  4512. Parent,
  4513. Context,
  4514. CreateProductCategoryArgs
  4515. >;
  4516. export interface CreateProductCategoryArgs {
  4517. input: CreateProductCategoryInput;
  4518. }
  4519. export type UpdateProductCategoryResolver<R = ProductCategory, Parent = any, Context = any> = Resolver<
  4520. R,
  4521. Parent,
  4522. Context,
  4523. UpdateProductCategoryArgs
  4524. >;
  4525. export interface UpdateProductCategoryArgs {
  4526. input: UpdateProductCategoryInput;
  4527. }
  4528. export type MoveProductCategoryResolver<R = ProductCategory, Parent = any, Context = any> = Resolver<
  4529. R,
  4530. Parent,
  4531. Context,
  4532. MoveProductCategoryArgs
  4533. >;
  4534. export interface MoveProductCategoryArgs {
  4535. input: MoveProductCategoryInput;
  4536. }
  4537. export type CreateProductOptionGroupResolver<
  4538. R = ProductOptionGroup,
  4539. Parent = any,
  4540. Context = any
  4541. > = Resolver<R, Parent, Context, CreateProductOptionGroupArgs>;
  4542. export interface CreateProductOptionGroupArgs {
  4543. input: CreateProductOptionGroupInput;
  4544. }
  4545. export type UpdateProductOptionGroupResolver<
  4546. R = ProductOptionGroup,
  4547. Parent = any,
  4548. Context = any
  4549. > = Resolver<R, Parent, Context, UpdateProductOptionGroupArgs>;
  4550. export interface UpdateProductOptionGroupArgs {
  4551. input: UpdateProductOptionGroupInput;
  4552. }
  4553. export type CreateProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  4554. R,
  4555. Parent,
  4556. Context,
  4557. CreateProductArgs
  4558. >;
  4559. export interface CreateProductArgs {
  4560. input: CreateProductInput;
  4561. }
  4562. export type UpdateProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  4563. R,
  4564. Parent,
  4565. Context,
  4566. UpdateProductArgs
  4567. >;
  4568. export interface UpdateProductArgs {
  4569. input: UpdateProductInput;
  4570. }
  4571. export type DeleteProductResolver<R = DeletionResponse, Parent = any, Context = any> = Resolver<
  4572. R,
  4573. Parent,
  4574. Context,
  4575. DeleteProductArgs
  4576. >;
  4577. export interface DeleteProductArgs {
  4578. id: string;
  4579. }
  4580. export type AddOptionGroupToProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  4581. R,
  4582. Parent,
  4583. Context,
  4584. AddOptionGroupToProductArgs
  4585. >;
  4586. export interface AddOptionGroupToProductArgs {
  4587. productId: string;
  4588. optionGroupId: string;
  4589. }
  4590. export type RemoveOptionGroupFromProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  4591. R,
  4592. Parent,
  4593. Context,
  4594. RemoveOptionGroupFromProductArgs
  4595. >;
  4596. export interface RemoveOptionGroupFromProductArgs {
  4597. productId: string;
  4598. optionGroupId: string;
  4599. }
  4600. export type GenerateVariantsForProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  4601. R,
  4602. Parent,
  4603. Context,
  4604. GenerateVariantsForProductArgs
  4605. >;
  4606. export interface GenerateVariantsForProductArgs {
  4607. productId: string;
  4608. defaultTaxCategoryId?: string | null;
  4609. defaultPrice?: number | null;
  4610. defaultSku?: string | null;
  4611. }
  4612. export type UpdateProductVariantsResolver<
  4613. R = (ProductVariant | null)[],
  4614. Parent = any,
  4615. Context = any
  4616. > = Resolver<R, Parent, Context, UpdateProductVariantsArgs>;
  4617. export interface UpdateProductVariantsArgs {
  4618. input: UpdateProductVariantInput[];
  4619. }
  4620. export type CreatePromotionResolver<R = Promotion, Parent = any, Context = any> = Resolver<
  4621. R,
  4622. Parent,
  4623. Context,
  4624. CreatePromotionArgs
  4625. >;
  4626. export interface CreatePromotionArgs {
  4627. input: CreatePromotionInput;
  4628. }
  4629. export type UpdatePromotionResolver<R = Promotion, Parent = any, Context = any> = Resolver<
  4630. R,
  4631. Parent,
  4632. Context,
  4633. UpdatePromotionArgs
  4634. >;
  4635. export interface UpdatePromotionArgs {
  4636. input: UpdatePromotionInput;
  4637. }
  4638. export type DeletePromotionResolver<R = DeletionResponse, Parent = any, Context = any> = Resolver<
  4639. R,
  4640. Parent,
  4641. Context,
  4642. DeletePromotionArgs
  4643. >;
  4644. export interface DeletePromotionArgs {
  4645. id: string;
  4646. }
  4647. export type CreateRoleResolver<R = Role, Parent = any, Context = any> = Resolver<
  4648. R,
  4649. Parent,
  4650. Context,
  4651. CreateRoleArgs
  4652. >;
  4653. export interface CreateRoleArgs {
  4654. input: CreateRoleInput;
  4655. }
  4656. export type UpdateRoleResolver<R = Role, Parent = any, Context = any> = Resolver<
  4657. R,
  4658. Parent,
  4659. Context,
  4660. UpdateRoleArgs
  4661. >;
  4662. export interface UpdateRoleArgs {
  4663. input: UpdateRoleInput;
  4664. }
  4665. export type ReindexResolver<R = SearchReindexResponse, Parent = any, Context = any> = Resolver<
  4666. R,
  4667. Parent,
  4668. Context
  4669. >;
  4670. export type CreateShippingMethodResolver<R = ShippingMethod, Parent = any, Context = any> = Resolver<
  4671. R,
  4672. Parent,
  4673. Context,
  4674. CreateShippingMethodArgs
  4675. >;
  4676. export interface CreateShippingMethodArgs {
  4677. input: CreateShippingMethodInput;
  4678. }
  4679. export type UpdateShippingMethodResolver<R = ShippingMethod, Parent = any, Context = any> = Resolver<
  4680. R,
  4681. Parent,
  4682. Context,
  4683. UpdateShippingMethodArgs
  4684. >;
  4685. export interface UpdateShippingMethodArgs {
  4686. input: UpdateShippingMethodInput;
  4687. }
  4688. export type CreateTaxCategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<
  4689. R,
  4690. Parent,
  4691. Context,
  4692. CreateTaxCategoryArgs
  4693. >;
  4694. export interface CreateTaxCategoryArgs {
  4695. input: CreateTaxCategoryInput;
  4696. }
  4697. export type UpdateTaxCategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<
  4698. R,
  4699. Parent,
  4700. Context,
  4701. UpdateTaxCategoryArgs
  4702. >;
  4703. export interface UpdateTaxCategoryArgs {
  4704. input: UpdateTaxCategoryInput;
  4705. }
  4706. export type CreateTaxRateResolver<R = TaxRate, Parent = any, Context = any> = Resolver<
  4707. R,
  4708. Parent,
  4709. Context,
  4710. CreateTaxRateArgs
  4711. >;
  4712. export interface CreateTaxRateArgs {
  4713. input: CreateTaxRateInput;
  4714. }
  4715. export type UpdateTaxRateResolver<R = TaxRate, Parent = any, Context = any> = Resolver<
  4716. R,
  4717. Parent,
  4718. Context,
  4719. UpdateTaxRateArgs
  4720. >;
  4721. export interface UpdateTaxRateArgs {
  4722. input: UpdateTaxRateInput;
  4723. }
  4724. export type CreateZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  4725. R,
  4726. Parent,
  4727. Context,
  4728. CreateZoneArgs
  4729. >;
  4730. export interface CreateZoneArgs {
  4731. input: CreateZoneInput;
  4732. }
  4733. export type UpdateZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  4734. R,
  4735. Parent,
  4736. Context,
  4737. UpdateZoneArgs
  4738. >;
  4739. export interface UpdateZoneArgs {
  4740. input: UpdateZoneInput;
  4741. }
  4742. export type DeleteZoneResolver<R = DeletionResponse, Parent = any, Context = any> = Resolver<
  4743. R,
  4744. Parent,
  4745. Context,
  4746. DeleteZoneArgs
  4747. >;
  4748. export interface DeleteZoneArgs {
  4749. id: string;
  4750. }
  4751. export type AddMembersToZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  4752. R,
  4753. Parent,
  4754. Context,
  4755. AddMembersToZoneArgs
  4756. >;
  4757. export interface AddMembersToZoneArgs {
  4758. zoneId: string;
  4759. memberIds: string[];
  4760. }
  4761. export type RemoveMembersFromZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  4762. R,
  4763. Parent,
  4764. Context,
  4765. RemoveMembersFromZoneArgs
  4766. >;
  4767. export interface RemoveMembersFromZoneArgs {
  4768. zoneId: string;
  4769. memberIds: string[];
  4770. }
  4771. export type RequestStartedResolver<R = number, Parent = any, Context = any> = Resolver<
  4772. R,
  4773. Parent,
  4774. Context
  4775. >;
  4776. export type RequestCompletedResolver<R = number, Parent = any, Context = any> = Resolver<
  4777. R,
  4778. Parent,
  4779. Context
  4780. >;
  4781. export type SetAsLoggedInResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
  4782. R,
  4783. Parent,
  4784. Context,
  4785. SetAsLoggedInArgs
  4786. >;
  4787. export interface SetAsLoggedInArgs {
  4788. username: string;
  4789. loginTime: string;
  4790. }
  4791. export type SetAsLoggedOutResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
  4792. R,
  4793. Parent,
  4794. Context
  4795. >;
  4796. export type SetUiLanguageResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
  4797. R,
  4798. Parent,
  4799. Context,
  4800. SetUiLanguageArgs
  4801. >;
  4802. export interface SetUiLanguageArgs {
  4803. languageCode?: LanguageCode | null;
  4804. }
  4805. }
  4806. export namespace LoginResultResolvers {
  4807. export interface Resolvers<Context = any> {
  4808. user?: UserResolver<CurrentUser, any, Context>;
  4809. }
  4810. export type UserResolver<R = CurrentUser, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4811. }
  4812. export namespace DeletionResponseResolvers {
  4813. export interface Resolvers<Context = any> {
  4814. result?: ResultResolver<DeletionResult, any, Context>;
  4815. message?: MessageResolver<string | null, any, Context>;
  4816. }
  4817. export type ResultResolver<R = DeletionResult, Parent = any, Context = any> = Resolver<
  4818. R,
  4819. Parent,
  4820. Context
  4821. >;
  4822. export type MessageResolver<R = string | null, Parent = any, Context = any> = Resolver<
  4823. R,
  4824. Parent,
  4825. Context
  4826. >;
  4827. }
  4828. export namespace ImportInfoResolvers {
  4829. export interface Resolvers<Context = any> {
  4830. errors?: ErrorsResolver<string[] | null, any, Context>;
  4831. processed?: ProcessedResolver<number, any, Context>;
  4832. imported?: ImportedResolver<number, any, Context>;
  4833. }
  4834. export type ErrorsResolver<R = string[] | null, Parent = any, Context = any> = Resolver<
  4835. R,
  4836. Parent,
  4837. Context
  4838. >;
  4839. export type ProcessedResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4840. export type ImportedResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4841. }
  4842. export namespace SearchReindexResponseResolvers {
  4843. export interface Resolvers<Context = any> {
  4844. success?: SuccessResolver<boolean, any, Context>;
  4845. }
  4846. export type SuccessResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  4847. }
  4848. export namespace GetAdministrators {
  4849. export type Variables = {
  4850. options?: AdministratorListOptions | null;
  4851. };
  4852. export type Query = {
  4853. __typename?: 'Query';
  4854. administrators: Administrators;
  4855. };
  4856. export type Administrators = {
  4857. __typename?: 'AdministratorList';
  4858. items: Items[];
  4859. totalItems: number;
  4860. };
  4861. export type Items = Administrator.Fragment;
  4862. }
  4863. export namespace GetAdministrator {
  4864. export type Variables = {
  4865. id: string;
  4866. };
  4867. export type Query = {
  4868. __typename?: 'Query';
  4869. administrator?: Administrator | null;
  4870. };
  4871. export type Administrator = Administrator.Fragment;
  4872. }
  4873. export namespace CreateAdministrator {
  4874. export type Variables = {
  4875. input: CreateAdministratorInput;
  4876. };
  4877. export type Mutation = {
  4878. __typename?: 'Mutation';
  4879. createAdministrator: CreateAdministrator;
  4880. };
  4881. export type CreateAdministrator = Administrator.Fragment;
  4882. }
  4883. export namespace UpdateAdministrator {
  4884. export type Variables = {
  4885. input: UpdateAdministratorInput;
  4886. };
  4887. export type Mutation = {
  4888. __typename?: 'Mutation';
  4889. updateAdministrator: UpdateAdministrator;
  4890. };
  4891. export type UpdateAdministrator = Administrator.Fragment;
  4892. }
  4893. export namespace GetRoles {
  4894. export type Variables = {
  4895. options?: RoleListOptions | null;
  4896. };
  4897. export type Query = {
  4898. __typename?: 'Query';
  4899. roles: Roles;
  4900. };
  4901. export type Roles = {
  4902. __typename?: 'RoleList';
  4903. items: Items[];
  4904. totalItems: number;
  4905. };
  4906. export type Items = Role.Fragment;
  4907. }
  4908. export namespace GetRole {
  4909. export type Variables = {
  4910. id: string;
  4911. };
  4912. export type Query = {
  4913. __typename?: 'Query';
  4914. role?: Role | null;
  4915. };
  4916. export type Role = Role.Fragment;
  4917. }
  4918. export namespace CreateRole {
  4919. export type Variables = {
  4920. input: CreateRoleInput;
  4921. };
  4922. export type Mutation = {
  4923. __typename?: 'Mutation';
  4924. createRole: CreateRole;
  4925. };
  4926. export type CreateRole = Role.Fragment;
  4927. }
  4928. export namespace UpdateRole {
  4929. export type Variables = {
  4930. input: UpdateRoleInput;
  4931. };
  4932. export type Mutation = {
  4933. __typename?: 'Mutation';
  4934. updateRole: UpdateRole;
  4935. };
  4936. export type UpdateRole = Role.Fragment;
  4937. }
  4938. export namespace AssignRoleToAdministrator {
  4939. export type Variables = {
  4940. administratorId: string;
  4941. roleId: string;
  4942. };
  4943. export type Mutation = {
  4944. __typename?: 'Mutation';
  4945. assignRoleToAdministrator: AssignRoleToAdministrator;
  4946. };
  4947. export type AssignRoleToAdministrator = Administrator.Fragment;
  4948. }
  4949. export namespace AttemptLogin {
  4950. export type Variables = {
  4951. username: string;
  4952. password: string;
  4953. rememberMe: boolean;
  4954. };
  4955. export type Mutation = {
  4956. __typename?: 'Mutation';
  4957. login: Login;
  4958. };
  4959. export type Login = {
  4960. __typename?: 'LoginResult';
  4961. user: User;
  4962. };
  4963. export type User = CurrentUser.Fragment;
  4964. }
  4965. export namespace LogOut {
  4966. export type Variables = {};
  4967. export type Mutation = {
  4968. __typename?: 'Mutation';
  4969. logout: boolean;
  4970. };
  4971. }
  4972. export namespace GetCurrentUser {
  4973. export type Variables = {};
  4974. export type Query = {
  4975. __typename?: 'Query';
  4976. me?: Me | null;
  4977. };
  4978. export type Me = CurrentUser.Fragment;
  4979. }
  4980. export namespace RequestStarted {
  4981. export type Variables = {};
  4982. export type Mutation = {
  4983. __typename?: 'Mutation';
  4984. requestStarted: number;
  4985. };
  4986. }
  4987. export namespace RequestCompleted {
  4988. export type Variables = {};
  4989. export type Mutation = {
  4990. __typename?: 'Mutation';
  4991. requestCompleted: number;
  4992. };
  4993. }
  4994. export namespace SetAsLoggedIn {
  4995. export type Variables = {
  4996. username: string;
  4997. loginTime: string;
  4998. };
  4999. export type Mutation = {
  5000. __typename?: 'Mutation';
  5001. setAsLoggedIn: SetAsLoggedIn;
  5002. };
  5003. export type SetAsLoggedIn = {
  5004. __typename?: 'UserStatus';
  5005. username: string;
  5006. isLoggedIn: boolean;
  5007. loginTime: string;
  5008. };
  5009. }
  5010. export namespace SetAsLoggedOut {
  5011. export type Variables = {};
  5012. export type Mutation = {
  5013. __typename?: 'Mutation';
  5014. setAsLoggedOut: SetAsLoggedOut;
  5015. };
  5016. export type SetAsLoggedOut = {
  5017. __typename?: 'UserStatus';
  5018. username: string;
  5019. isLoggedIn: boolean;
  5020. loginTime: string;
  5021. };
  5022. }
  5023. export namespace SetUiLanguage {
  5024. export type Variables = {
  5025. languageCode: LanguageCode;
  5026. };
  5027. export type Mutation = {
  5028. __typename?: 'Mutation';
  5029. setUiLanguage?: LanguageCode | null;
  5030. };
  5031. }
  5032. export namespace GetNetworkStatus {
  5033. export type Variables = {};
  5034. export type Query = {
  5035. __typename?: 'Query';
  5036. networkStatus: NetworkStatus;
  5037. };
  5038. export type NetworkStatus = {
  5039. __typename?: 'NetworkStatus';
  5040. inFlightRequests: number;
  5041. };
  5042. }
  5043. export namespace GetUserStatus {
  5044. export type Variables = {};
  5045. export type Query = {
  5046. __typename?: 'Query';
  5047. userStatus: UserStatus;
  5048. };
  5049. export type UserStatus = {
  5050. __typename?: 'UserStatus';
  5051. username: string;
  5052. isLoggedIn: boolean;
  5053. loginTime: string;
  5054. };
  5055. }
  5056. export namespace GetUiState {
  5057. export type Variables = {};
  5058. export type Query = {
  5059. __typename?: 'Query';
  5060. uiState: UiState;
  5061. };
  5062. export type UiState = {
  5063. __typename?: 'UiState';
  5064. language: LanguageCode;
  5065. };
  5066. }
  5067. export namespace GetCustomerList {
  5068. export type Variables = {
  5069. options?: CustomerListOptions | null;
  5070. };
  5071. export type Query = {
  5072. __typename?: 'Query';
  5073. customers: Customers;
  5074. };
  5075. export type Customers = {
  5076. __typename?: 'CustomerList';
  5077. items: Items[];
  5078. totalItems: number;
  5079. };
  5080. export type Items = {
  5081. __typename?: 'Customer';
  5082. id: string;
  5083. title?: string | null;
  5084. firstName: string;
  5085. lastName: string;
  5086. emailAddress: string;
  5087. user?: User | null;
  5088. };
  5089. export type User = {
  5090. __typename?: 'User';
  5091. id: string;
  5092. verified: boolean;
  5093. };
  5094. }
  5095. export namespace GetCustomer {
  5096. export type Variables = {
  5097. id: string;
  5098. orderListOptions?: OrderListOptions | null;
  5099. };
  5100. export type Query = {
  5101. __typename?: 'Query';
  5102. customer?: Customer | null;
  5103. };
  5104. export type Customer = {
  5105. __typename?: 'Customer';
  5106. orders: Orders;
  5107. } & Customer.Fragment;
  5108. export type Orders = {
  5109. __typename?: 'OrderList';
  5110. items: Items[];
  5111. totalItems: number;
  5112. };
  5113. export type Items = {
  5114. __typename?: 'Order';
  5115. id: string;
  5116. code: string;
  5117. state: string;
  5118. total: number;
  5119. currencyCode: CurrencyCode;
  5120. updatedAt: DateTime;
  5121. };
  5122. }
  5123. export namespace CreateCustomer {
  5124. export type Variables = {
  5125. input: CreateCustomerInput;
  5126. password?: string | null;
  5127. };
  5128. export type Mutation = {
  5129. __typename?: 'Mutation';
  5130. createCustomer: CreateCustomer;
  5131. };
  5132. export type CreateCustomer = Customer.Fragment;
  5133. }
  5134. export namespace UpdateCustomer {
  5135. export type Variables = {
  5136. input: UpdateCustomerInput;
  5137. };
  5138. export type Mutation = {
  5139. __typename?: 'Mutation';
  5140. updateCustomer: UpdateCustomer;
  5141. };
  5142. export type UpdateCustomer = Customer.Fragment;
  5143. }
  5144. export namespace CreateCustomerAddress {
  5145. export type Variables = {
  5146. customerId: string;
  5147. input: CreateAddressInput;
  5148. };
  5149. export type Mutation = {
  5150. __typename?: 'Mutation';
  5151. createCustomerAddress: CreateCustomerAddress;
  5152. };
  5153. export type CreateCustomerAddress = Address.Fragment;
  5154. }
  5155. export namespace UpdateCustomerAddress {
  5156. export type Variables = {
  5157. input: UpdateAddressInput;
  5158. };
  5159. export type Mutation = {
  5160. __typename?: 'Mutation';
  5161. updateCustomerAddress: UpdateCustomerAddress;
  5162. };
  5163. export type UpdateCustomerAddress = Address.Fragment;
  5164. }
  5165. export namespace CreateFacet {
  5166. export type Variables = {
  5167. input: CreateFacetInput;
  5168. };
  5169. export type Mutation = {
  5170. __typename?: 'Mutation';
  5171. createFacet: CreateFacet;
  5172. };
  5173. export type CreateFacet = FacetWithValues.Fragment;
  5174. }
  5175. export namespace UpdateFacet {
  5176. export type Variables = {
  5177. input: UpdateFacetInput;
  5178. };
  5179. export type Mutation = {
  5180. __typename?: 'Mutation';
  5181. updateFacet: UpdateFacet;
  5182. };
  5183. export type UpdateFacet = FacetWithValues.Fragment;
  5184. }
  5185. export namespace DeleteFacet {
  5186. export type Variables = {
  5187. id: string;
  5188. force?: boolean | null;
  5189. };
  5190. export type Mutation = {
  5191. __typename?: 'Mutation';
  5192. deleteFacet: DeleteFacet;
  5193. };
  5194. export type DeleteFacet = {
  5195. __typename?: 'DeletionResponse';
  5196. result: DeletionResult;
  5197. message?: string | null;
  5198. };
  5199. }
  5200. export namespace CreateFacetValues {
  5201. export type Variables = {
  5202. input: CreateFacetValueInput[];
  5203. };
  5204. export type Mutation = {
  5205. __typename?: 'Mutation';
  5206. createFacetValues: CreateFacetValues[];
  5207. };
  5208. export type CreateFacetValues = FacetValue.Fragment;
  5209. }
  5210. export namespace UpdateFacetValues {
  5211. export type Variables = {
  5212. input: UpdateFacetValueInput[];
  5213. };
  5214. export type Mutation = {
  5215. __typename?: 'Mutation';
  5216. updateFacetValues: UpdateFacetValues[];
  5217. };
  5218. export type UpdateFacetValues = FacetValue.Fragment;
  5219. }
  5220. export namespace DeleteFacetValues {
  5221. export type Variables = {
  5222. ids: string[];
  5223. force?: boolean | null;
  5224. };
  5225. export type Mutation = {
  5226. __typename?: 'Mutation';
  5227. deleteFacetValues: DeleteFacetValues[];
  5228. };
  5229. export type DeleteFacetValues = {
  5230. __typename?: 'DeletionResponse';
  5231. result: DeletionResult;
  5232. message?: string | null;
  5233. };
  5234. }
  5235. export namespace GetFacetList {
  5236. export type Variables = {
  5237. options?: FacetListOptions | null;
  5238. languageCode?: LanguageCode | null;
  5239. };
  5240. export type Query = {
  5241. __typename?: 'Query';
  5242. facets: Facets;
  5243. };
  5244. export type Facets = {
  5245. __typename?: 'FacetList';
  5246. items: Items[];
  5247. totalItems: number;
  5248. };
  5249. export type Items = FacetWithValues.Fragment;
  5250. }
  5251. export namespace GetFacetWithValues {
  5252. export type Variables = {
  5253. id: string;
  5254. languageCode?: LanguageCode | null;
  5255. };
  5256. export type Query = {
  5257. __typename?: 'Query';
  5258. facet?: Facet | null;
  5259. };
  5260. export type Facet = FacetWithValues.Fragment;
  5261. }
  5262. export namespace GetOrderList {
  5263. export type Variables = {
  5264. options?: OrderListOptions | null;
  5265. };
  5266. export type Query = {
  5267. __typename?: 'Query';
  5268. orders: Orders;
  5269. };
  5270. export type Orders = {
  5271. __typename?: 'OrderList';
  5272. items: Items[];
  5273. totalItems: number;
  5274. };
  5275. export type Items = Order.Fragment;
  5276. }
  5277. export namespace GetOrder {
  5278. export type Variables = {
  5279. id: string;
  5280. };
  5281. export type Query = {
  5282. __typename?: 'Query';
  5283. order?: Order | null;
  5284. };
  5285. export type Order = OrderWithLines.Fragment;
  5286. }
  5287. export namespace UpdateProduct {
  5288. export type Variables = {
  5289. input: UpdateProductInput;
  5290. };
  5291. export type Mutation = {
  5292. __typename?: 'Mutation';
  5293. updateProduct: UpdateProduct;
  5294. };
  5295. export type UpdateProduct = ProductWithVariants.Fragment;
  5296. }
  5297. export namespace CreateProduct {
  5298. export type Variables = {
  5299. input: CreateProductInput;
  5300. };
  5301. export type Mutation = {
  5302. __typename?: 'Mutation';
  5303. createProduct: CreateProduct;
  5304. };
  5305. export type CreateProduct = ProductWithVariants.Fragment;
  5306. }
  5307. export namespace DeleteProduct {
  5308. export type Variables = {
  5309. id: string;
  5310. };
  5311. export type Mutation = {
  5312. __typename?: 'Mutation';
  5313. deleteProduct: DeleteProduct;
  5314. };
  5315. export type DeleteProduct = {
  5316. __typename?: 'DeletionResponse';
  5317. result: DeletionResult;
  5318. message?: string | null;
  5319. };
  5320. }
  5321. export namespace GenerateProductVariants {
  5322. export type Variables = {
  5323. productId: string;
  5324. defaultTaxCategoryId?: string | null;
  5325. defaultPrice?: number | null;
  5326. defaultSku?: string | null;
  5327. };
  5328. export type Mutation = {
  5329. __typename?: 'Mutation';
  5330. generateVariantsForProduct: GenerateVariantsForProduct;
  5331. };
  5332. export type GenerateVariantsForProduct = ProductWithVariants.Fragment;
  5333. }
  5334. export namespace UpdateProductVariants {
  5335. export type Variables = {
  5336. input: UpdateProductVariantInput[];
  5337. };
  5338. export type Mutation = {
  5339. __typename?: 'Mutation';
  5340. updateProductVariants: (UpdateProductVariants | null)[];
  5341. };
  5342. export type UpdateProductVariants = ProductVariant.Fragment;
  5343. }
  5344. export namespace CreateProductOptionGroup {
  5345. export type Variables = {
  5346. input: CreateProductOptionGroupInput;
  5347. };
  5348. export type Mutation = {
  5349. __typename?: 'Mutation';
  5350. createProductOptionGroup: CreateProductOptionGroup;
  5351. };
  5352. export type CreateProductOptionGroup = ProductOptionGroup.Fragment;
  5353. }
  5354. export namespace AddOptionGroupToProduct {
  5355. export type Variables = {
  5356. productId: string;
  5357. optionGroupId: string;
  5358. };
  5359. export type Mutation = {
  5360. __typename?: 'Mutation';
  5361. addOptionGroupToProduct: AddOptionGroupToProduct;
  5362. };
  5363. export type AddOptionGroupToProduct = {
  5364. __typename?: 'Product';
  5365. id: string;
  5366. optionGroups: OptionGroups[];
  5367. };
  5368. export type OptionGroups = {
  5369. __typename?: 'ProductOptionGroup';
  5370. id: string;
  5371. code: string;
  5372. options: Options[];
  5373. };
  5374. export type Options = {
  5375. __typename?: 'ProductOption';
  5376. id: string;
  5377. code?: string | null;
  5378. };
  5379. }
  5380. export namespace RemoveOptionGroupFromProduct {
  5381. export type Variables = {
  5382. productId: string;
  5383. optionGroupId: string;
  5384. };
  5385. export type Mutation = {
  5386. __typename?: 'Mutation';
  5387. removeOptionGroupFromProduct: RemoveOptionGroupFromProduct;
  5388. };
  5389. export type RemoveOptionGroupFromProduct = {
  5390. __typename?: 'Product';
  5391. id: string;
  5392. optionGroups: OptionGroups[];
  5393. };
  5394. export type OptionGroups = {
  5395. __typename?: 'ProductOptionGroup';
  5396. id: string;
  5397. code: string;
  5398. options: Options[];
  5399. };
  5400. export type Options = {
  5401. __typename?: 'ProductOption';
  5402. id: string;
  5403. code?: string | null;
  5404. };
  5405. }
  5406. export namespace GetProductWithVariants {
  5407. export type Variables = {
  5408. id: string;
  5409. languageCode?: LanguageCode | null;
  5410. };
  5411. export type Query = {
  5412. __typename?: 'Query';
  5413. product?: Product | null;
  5414. };
  5415. export type Product = ProductWithVariants.Fragment;
  5416. }
  5417. export namespace GetProductList {
  5418. export type Variables = {
  5419. options?: ProductListOptions | null;
  5420. languageCode?: LanguageCode | null;
  5421. };
  5422. export type Query = {
  5423. __typename?: 'Query';
  5424. products: Products;
  5425. };
  5426. export type Products = {
  5427. __typename?: 'ProductList';
  5428. items: Items[];
  5429. totalItems: number;
  5430. };
  5431. export type Items = {
  5432. __typename?: 'Product';
  5433. id: string;
  5434. languageCode: LanguageCode;
  5435. name: string;
  5436. slug: string;
  5437. featuredAsset?: FeaturedAsset | null;
  5438. };
  5439. export type FeaturedAsset = {
  5440. __typename?: 'Asset';
  5441. id: string;
  5442. preview: string;
  5443. };
  5444. }
  5445. export namespace GetProductOptionGroups {
  5446. export type Variables = {
  5447. filterTerm?: string | null;
  5448. languageCode?: LanguageCode | null;
  5449. };
  5450. export type Query = {
  5451. __typename?: 'Query';
  5452. productOptionGroups: ProductOptionGroups[];
  5453. };
  5454. export type ProductOptionGroups = {
  5455. __typename?: 'ProductOptionGroup';
  5456. id: string;
  5457. languageCode: LanguageCode;
  5458. code: string;
  5459. name: string;
  5460. options: Options[];
  5461. };
  5462. export type Options = {
  5463. __typename?: 'ProductOption';
  5464. id: string;
  5465. languageCode?: LanguageCode | null;
  5466. code?: string | null;
  5467. name?: string | null;
  5468. };
  5469. }
  5470. export namespace GetAssetList {
  5471. export type Variables = {
  5472. options?: AssetListOptions | null;
  5473. };
  5474. export type Query = {
  5475. __typename?: 'Query';
  5476. assets: Assets;
  5477. };
  5478. export type Assets = {
  5479. __typename?: 'AssetList';
  5480. items: Items[];
  5481. totalItems: number;
  5482. };
  5483. export type Items = Asset.Fragment;
  5484. }
  5485. export namespace CreateAssets {
  5486. export type Variables = {
  5487. input: CreateAssetInput[];
  5488. };
  5489. export type Mutation = {
  5490. __typename?: 'Mutation';
  5491. createAssets: CreateAssets[];
  5492. };
  5493. export type CreateAssets = Asset.Fragment;
  5494. }
  5495. export namespace GetProductCategoryList {
  5496. export type Variables = {
  5497. options?: ProductCategoryListOptions | null;
  5498. languageCode?: LanguageCode | null;
  5499. };
  5500. export type Query = {
  5501. __typename?: 'Query';
  5502. productCategories: ProductCategories;
  5503. };
  5504. export type ProductCategories = {
  5505. __typename?: 'ProductCategoryList';
  5506. items: Items[];
  5507. totalItems: number;
  5508. };
  5509. export type Items = {
  5510. __typename?: 'ProductCategory';
  5511. id: string;
  5512. name: string;
  5513. description: string;
  5514. featuredAsset?: FeaturedAsset | null;
  5515. facetValues: FacetValues[];
  5516. parent: Parent;
  5517. };
  5518. export type FeaturedAsset = Asset.Fragment;
  5519. export type FacetValues = {
  5520. __typename?: 'FacetValue';
  5521. id: string;
  5522. code: string;
  5523. name: string;
  5524. facet: Facet;
  5525. };
  5526. export type Facet = {
  5527. __typename?: 'Facet';
  5528. id: string;
  5529. name: string;
  5530. };
  5531. export type Parent = {
  5532. __typename?: 'ProductCategory';
  5533. id: string;
  5534. };
  5535. }
  5536. export namespace GetProductCategory {
  5537. export type Variables = {
  5538. id: string;
  5539. languageCode?: LanguageCode | null;
  5540. };
  5541. export type Query = {
  5542. __typename?: 'Query';
  5543. productCategory?: ProductCategory | null;
  5544. };
  5545. export type ProductCategory = ProductCategory.Fragment;
  5546. }
  5547. export namespace CreateProductCategory {
  5548. export type Variables = {
  5549. input: CreateProductCategoryInput;
  5550. };
  5551. export type Mutation = {
  5552. __typename?: 'Mutation';
  5553. createProductCategory: CreateProductCategory;
  5554. };
  5555. export type CreateProductCategory = ProductCategory.Fragment;
  5556. }
  5557. export namespace UpdateProductCategory {
  5558. export type Variables = {
  5559. input: UpdateProductCategoryInput;
  5560. };
  5561. export type Mutation = {
  5562. __typename?: 'Mutation';
  5563. updateProductCategory: UpdateProductCategory;
  5564. };
  5565. export type UpdateProductCategory = ProductCategory.Fragment;
  5566. }
  5567. export namespace MoveProductCategory {
  5568. export type Variables = {
  5569. input: MoveProductCategoryInput;
  5570. };
  5571. export type Mutation = {
  5572. __typename?: 'Mutation';
  5573. moveProductCategory: MoveProductCategory;
  5574. };
  5575. export type MoveProductCategory = ProductCategory.Fragment;
  5576. }
  5577. export namespace SearchProducts {
  5578. export type Variables = {
  5579. input: SearchInput;
  5580. };
  5581. export type Query = {
  5582. __typename?: 'Query';
  5583. search: Search;
  5584. };
  5585. export type Search = {
  5586. __typename?: 'SearchResponse';
  5587. totalItems: number;
  5588. items: Items[];
  5589. };
  5590. export type Items = {
  5591. __typename?: 'SearchResult';
  5592. productId: string;
  5593. productName: string;
  5594. productPreview: string;
  5595. productVariantId: string;
  5596. productVariantName: string;
  5597. productVariantPreview: string;
  5598. sku: string;
  5599. };
  5600. }
  5601. export namespace GetPromotionList {
  5602. export type Variables = {
  5603. options?: PromotionListOptions | null;
  5604. };
  5605. export type Query = {
  5606. __typename?: 'Query';
  5607. promotions: Promotions;
  5608. };
  5609. export type Promotions = {
  5610. __typename?: 'PromotionList';
  5611. items: Items[];
  5612. totalItems: number;
  5613. };
  5614. export type Items = Promotion.Fragment;
  5615. }
  5616. export namespace GetPromotion {
  5617. export type Variables = {
  5618. id: string;
  5619. };
  5620. export type Query = {
  5621. __typename?: 'Query';
  5622. promotion?: Promotion | null;
  5623. };
  5624. export type Promotion = Promotion.Fragment;
  5625. }
  5626. export namespace GetAdjustmentOperations {
  5627. export type Variables = {};
  5628. export type Query = {
  5629. __typename?: 'Query';
  5630. adjustmentOperations: AdjustmentOperations;
  5631. };
  5632. export type AdjustmentOperations = {
  5633. __typename?: 'AdjustmentOperations';
  5634. actions: Actions[];
  5635. conditions: Conditions[];
  5636. };
  5637. export type Actions = AdjustmentOperation.Fragment;
  5638. export type Conditions = AdjustmentOperation.Fragment;
  5639. }
  5640. export namespace CreatePromotion {
  5641. export type Variables = {
  5642. input: CreatePromotionInput;
  5643. };
  5644. export type Mutation = {
  5645. __typename?: 'Mutation';
  5646. createPromotion: CreatePromotion;
  5647. };
  5648. export type CreatePromotion = Promotion.Fragment;
  5649. }
  5650. export namespace UpdatePromotion {
  5651. export type Variables = {
  5652. input: UpdatePromotionInput;
  5653. };
  5654. export type Mutation = {
  5655. __typename?: 'Mutation';
  5656. updatePromotion: UpdatePromotion;
  5657. };
  5658. export type UpdatePromotion = Promotion.Fragment;
  5659. }
  5660. export namespace GetCountryList {
  5661. export type Variables = {
  5662. options?: CountryListOptions | null;
  5663. };
  5664. export type Query = {
  5665. __typename?: 'Query';
  5666. countries: Countries;
  5667. };
  5668. export type Countries = {
  5669. __typename?: 'CountryList';
  5670. items: Items[];
  5671. totalItems: number;
  5672. };
  5673. export type Items = {
  5674. __typename?: 'Country';
  5675. id: string;
  5676. code: string;
  5677. name: string;
  5678. enabled: boolean;
  5679. };
  5680. }
  5681. export namespace GetAvailableCountries {
  5682. export type Variables = {};
  5683. export type Query = {
  5684. __typename?: 'Query';
  5685. availableCountries: AvailableCountries[];
  5686. };
  5687. export type AvailableCountries = {
  5688. __typename?: 'Country';
  5689. id: string;
  5690. code: string;
  5691. name: string;
  5692. enabled: boolean;
  5693. };
  5694. }
  5695. export namespace GetCountry {
  5696. export type Variables = {
  5697. id: string;
  5698. };
  5699. export type Query = {
  5700. __typename?: 'Query';
  5701. country?: Country | null;
  5702. };
  5703. export type Country = Country.Fragment;
  5704. }
  5705. export namespace CreateCountry {
  5706. export type Variables = {
  5707. input: CreateCountryInput;
  5708. };
  5709. export type Mutation = {
  5710. __typename?: 'Mutation';
  5711. createCountry: CreateCountry;
  5712. };
  5713. export type CreateCountry = Country.Fragment;
  5714. }
  5715. export namespace UpdateCountry {
  5716. export type Variables = {
  5717. input: UpdateCountryInput;
  5718. };
  5719. export type Mutation = {
  5720. __typename?: 'Mutation';
  5721. updateCountry: UpdateCountry;
  5722. };
  5723. export type UpdateCountry = Country.Fragment;
  5724. }
  5725. export namespace GetZones {
  5726. export type Variables = {};
  5727. export type Query = {
  5728. __typename?: 'Query';
  5729. zones: Zones[];
  5730. };
  5731. export type Zones = {
  5732. __typename?: 'Zone';
  5733. id: string;
  5734. name: string;
  5735. members: Members[];
  5736. };
  5737. export type Members = {
  5738. __typename?: 'Country';
  5739. id: string;
  5740. name: string;
  5741. code: string;
  5742. };
  5743. }
  5744. export namespace GetZone {
  5745. export type Variables = {
  5746. id: string;
  5747. };
  5748. export type Query = {
  5749. __typename?: 'Query';
  5750. zone?: Zone | null;
  5751. };
  5752. export type Zone = Zone.Fragment;
  5753. }
  5754. export namespace CreateZone {
  5755. export type Variables = {
  5756. input: CreateZoneInput;
  5757. };
  5758. export type Mutation = {
  5759. __typename?: 'Mutation';
  5760. createZone: CreateZone;
  5761. };
  5762. export type CreateZone = Zone.Fragment;
  5763. }
  5764. export namespace UpdateZone {
  5765. export type Variables = {
  5766. input: UpdateZoneInput;
  5767. };
  5768. export type Mutation = {
  5769. __typename?: 'Mutation';
  5770. updateZone: UpdateZone;
  5771. };
  5772. export type UpdateZone = Zone.Fragment;
  5773. }
  5774. export namespace AddMembersToZone {
  5775. export type Variables = {
  5776. zoneId: string;
  5777. memberIds: string[];
  5778. };
  5779. export type Mutation = {
  5780. __typename?: 'Mutation';
  5781. addMembersToZone: AddMembersToZone;
  5782. };
  5783. export type AddMembersToZone = Zone.Fragment;
  5784. }
  5785. export namespace RemoveMembersFromZone {
  5786. export type Variables = {
  5787. zoneId: string;
  5788. memberIds: string[];
  5789. };
  5790. export type Mutation = {
  5791. __typename?: 'Mutation';
  5792. removeMembersFromZone: RemoveMembersFromZone;
  5793. };
  5794. export type RemoveMembersFromZone = Zone.Fragment;
  5795. }
  5796. export namespace GetTaxCategories {
  5797. export type Variables = {};
  5798. export type Query = {
  5799. __typename?: 'Query';
  5800. taxCategories: TaxCategories[];
  5801. };
  5802. export type TaxCategories = TaxCategory.Fragment;
  5803. }
  5804. export namespace GetTaxCategory {
  5805. export type Variables = {
  5806. id: string;
  5807. };
  5808. export type Query = {
  5809. __typename?: 'Query';
  5810. taxCategory?: TaxCategory | null;
  5811. };
  5812. export type TaxCategory = TaxCategory.Fragment;
  5813. }
  5814. export namespace CreateTaxCategory {
  5815. export type Variables = {
  5816. input: CreateTaxCategoryInput;
  5817. };
  5818. export type Mutation = {
  5819. __typename?: 'Mutation';
  5820. createTaxCategory: CreateTaxCategory;
  5821. };
  5822. export type CreateTaxCategory = TaxCategory.Fragment;
  5823. }
  5824. export namespace UpdateTaxCategory {
  5825. export type Variables = {
  5826. input: UpdateTaxCategoryInput;
  5827. };
  5828. export type Mutation = {
  5829. __typename?: 'Mutation';
  5830. updateTaxCategory: UpdateTaxCategory;
  5831. };
  5832. export type UpdateTaxCategory = TaxCategory.Fragment;
  5833. }
  5834. export namespace GetTaxRateList {
  5835. export type Variables = {
  5836. options?: TaxRateListOptions | null;
  5837. };
  5838. export type Query = {
  5839. __typename?: 'Query';
  5840. taxRates: TaxRates;
  5841. };
  5842. export type TaxRates = {
  5843. __typename?: 'TaxRateList';
  5844. items: Items[];
  5845. totalItems: number;
  5846. };
  5847. export type Items = TaxRate.Fragment;
  5848. }
  5849. export namespace GetTaxRate {
  5850. export type Variables = {
  5851. id: string;
  5852. };
  5853. export type Query = {
  5854. __typename?: 'Query';
  5855. taxRate?: TaxRate | null;
  5856. };
  5857. export type TaxRate = TaxRate.Fragment;
  5858. }
  5859. export namespace CreateTaxRate {
  5860. export type Variables = {
  5861. input: CreateTaxRateInput;
  5862. };
  5863. export type Mutation = {
  5864. __typename?: 'Mutation';
  5865. createTaxRate: CreateTaxRate;
  5866. };
  5867. export type CreateTaxRate = TaxRate.Fragment;
  5868. }
  5869. export namespace UpdateTaxRate {
  5870. export type Variables = {
  5871. input: UpdateTaxRateInput;
  5872. };
  5873. export type Mutation = {
  5874. __typename?: 'Mutation';
  5875. updateTaxRate: UpdateTaxRate;
  5876. };
  5877. export type UpdateTaxRate = TaxRate.Fragment;
  5878. }
  5879. export namespace GetChannels {
  5880. export type Variables = {};
  5881. export type Query = {
  5882. __typename?: 'Query';
  5883. channels: Channels[];
  5884. };
  5885. export type Channels = Channel.Fragment;
  5886. }
  5887. export namespace GetChannel {
  5888. export type Variables = {
  5889. id: string;
  5890. };
  5891. export type Query = {
  5892. __typename?: 'Query';
  5893. channel?: Channel | null;
  5894. };
  5895. export type Channel = Channel.Fragment;
  5896. }
  5897. export namespace GetActiveChannel {
  5898. export type Variables = {};
  5899. export type Query = {
  5900. __typename?: 'Query';
  5901. activeChannel: ActiveChannel;
  5902. };
  5903. export type ActiveChannel = Channel.Fragment;
  5904. }
  5905. export namespace CreateChannel {
  5906. export type Variables = {
  5907. input: CreateChannelInput;
  5908. };
  5909. export type Mutation = {
  5910. __typename?: 'Mutation';
  5911. createChannel: CreateChannel;
  5912. };
  5913. export type CreateChannel = Channel.Fragment;
  5914. }
  5915. export namespace UpdateChannel {
  5916. export type Variables = {
  5917. input: UpdateChannelInput;
  5918. };
  5919. export type Mutation = {
  5920. __typename?: 'Mutation';
  5921. updateChannel: UpdateChannel;
  5922. };
  5923. export type UpdateChannel = Channel.Fragment;
  5924. }
  5925. export namespace GetPaymentMethodList {
  5926. export type Variables = {
  5927. options: PaymentMethodListOptions;
  5928. };
  5929. export type Query = {
  5930. __typename?: 'Query';
  5931. paymentMethods: PaymentMethods;
  5932. };
  5933. export type PaymentMethods = {
  5934. __typename?: 'PaymentMethodList';
  5935. items: Items[];
  5936. totalItems: number;
  5937. };
  5938. export type Items = PaymentMethod.Fragment;
  5939. }
  5940. export namespace GetPaymentMethod {
  5941. export type Variables = {
  5942. id: string;
  5943. };
  5944. export type Query = {
  5945. __typename?: 'Query';
  5946. paymentMethod?: PaymentMethod | null;
  5947. };
  5948. export type PaymentMethod = PaymentMethod.Fragment;
  5949. }
  5950. export namespace UpdatePaymentMethod {
  5951. export type Variables = {
  5952. input: UpdatePaymentMethodInput;
  5953. };
  5954. export type Mutation = {
  5955. __typename?: 'Mutation';
  5956. updatePaymentMethod: UpdatePaymentMethod;
  5957. };
  5958. export type UpdatePaymentMethod = PaymentMethod.Fragment;
  5959. }
  5960. export namespace GetGlobalSettings {
  5961. export type Variables = {};
  5962. export type Query = {
  5963. __typename?: 'Query';
  5964. globalSettings: GlobalSettings;
  5965. };
  5966. export type GlobalSettings = GlobalSettings.Fragment;
  5967. }
  5968. export namespace UpdateGlobalSettings {
  5969. export type Variables = {
  5970. input: UpdateGlobalSettingsInput;
  5971. };
  5972. export type Mutation = {
  5973. __typename?: 'Mutation';
  5974. updateGlobalSettings: UpdateGlobalSettings;
  5975. };
  5976. export type UpdateGlobalSettings = GlobalSettings.Fragment;
  5977. }
  5978. export namespace GetServerConfig {
  5979. export type Variables = {};
  5980. export type Query = {
  5981. __typename?: 'Query';
  5982. globalSettings: GlobalSettings;
  5983. };
  5984. export type GlobalSettings = {
  5985. __typename?: 'GlobalSettings';
  5986. serverConfig: ServerConfig;
  5987. };
  5988. export type ServerConfig = {
  5989. __typename?: 'ServerConfig';
  5990. customFields?: Json | null;
  5991. };
  5992. }
  5993. export namespace GetShippingMethodList {
  5994. export type Variables = {
  5995. options?: ShippingMethodListOptions | null;
  5996. };
  5997. export type Query = {
  5998. __typename?: 'Query';
  5999. shippingMethods: ShippingMethods;
  6000. };
  6001. export type ShippingMethods = {
  6002. __typename?: 'ShippingMethodList';
  6003. items: Items[];
  6004. totalItems: number;
  6005. };
  6006. export type Items = ShippingMethod.Fragment;
  6007. }
  6008. export namespace GetShippingMethod {
  6009. export type Variables = {
  6010. id: string;
  6011. };
  6012. export type Query = {
  6013. __typename?: 'Query';
  6014. shippingMethod?: ShippingMethod | null;
  6015. };
  6016. export type ShippingMethod = ShippingMethod.Fragment;
  6017. }
  6018. export namespace GetShippingMethodOperations {
  6019. export type Variables = {};
  6020. export type Query = {
  6021. __typename?: 'Query';
  6022. shippingEligibilityCheckers: ShippingEligibilityCheckers[];
  6023. shippingCalculators: ShippingCalculators[];
  6024. };
  6025. export type ShippingEligibilityCheckers = AdjustmentOperation.Fragment;
  6026. export type ShippingCalculators = AdjustmentOperation.Fragment;
  6027. }
  6028. export namespace CreateShippingMethod {
  6029. export type Variables = {
  6030. input: CreateShippingMethodInput;
  6031. };
  6032. export type Mutation = {
  6033. __typename?: 'Mutation';
  6034. createShippingMethod: CreateShippingMethod;
  6035. };
  6036. export type CreateShippingMethod = ShippingMethod.Fragment;
  6037. }
  6038. export namespace UpdateShippingMethod {
  6039. export type Variables = {
  6040. input: UpdateShippingMethodInput;
  6041. };
  6042. export type Mutation = {
  6043. __typename?: 'Mutation';
  6044. updateShippingMethod: UpdateShippingMethod;
  6045. };
  6046. export type UpdateShippingMethod = ShippingMethod.Fragment;
  6047. }
  6048. export namespace Administrator {
  6049. export type Fragment = {
  6050. __typename?: 'Administrator';
  6051. id: string;
  6052. firstName: string;
  6053. lastName: string;
  6054. emailAddress: string;
  6055. user: User;
  6056. };
  6057. export type User = {
  6058. __typename?: 'User';
  6059. id: string;
  6060. identifier: string;
  6061. lastLogin?: string | null;
  6062. roles: Roles[];
  6063. };
  6064. export type Roles = {
  6065. __typename?: 'Role';
  6066. id: string;
  6067. code: string;
  6068. description: string;
  6069. permissions: Permission[];
  6070. };
  6071. }
  6072. export namespace Role {
  6073. export type Fragment = {
  6074. __typename?: 'Role';
  6075. id: string;
  6076. code: string;
  6077. description: string;
  6078. permissions: Permission[];
  6079. channels: Channels[];
  6080. };
  6081. export type Channels = {
  6082. __typename?: 'Channel';
  6083. id: string;
  6084. code: string;
  6085. token: string;
  6086. };
  6087. }
  6088. export namespace CurrentUser {
  6089. export type Fragment = {
  6090. __typename?: 'CurrentUser';
  6091. id: string;
  6092. identifier: string;
  6093. channelTokens: string[];
  6094. };
  6095. }
  6096. export namespace Address {
  6097. export type Fragment = {
  6098. __typename?: 'Address';
  6099. id: string;
  6100. fullName?: string | null;
  6101. company?: string | null;
  6102. streetLine1: string;
  6103. streetLine2?: string | null;
  6104. city?: string | null;
  6105. province?: string | null;
  6106. postalCode?: string | null;
  6107. country: Country;
  6108. phoneNumber?: string | null;
  6109. defaultShippingAddress?: boolean | null;
  6110. defaultBillingAddress?: boolean | null;
  6111. };
  6112. export type Country = {
  6113. __typename?: 'Country';
  6114. id: string;
  6115. code: string;
  6116. name: string;
  6117. };
  6118. }
  6119. export namespace Customer {
  6120. export type Fragment = {
  6121. __typename?: 'Customer';
  6122. id: string;
  6123. title?: string | null;
  6124. firstName: string;
  6125. lastName: string;
  6126. phoneNumber?: string | null;
  6127. emailAddress: string;
  6128. user?: User | null;
  6129. addresses?: Addresses[] | null;
  6130. };
  6131. export type User = {
  6132. __typename?: 'User';
  6133. id: string;
  6134. identifier: string;
  6135. verified: boolean;
  6136. lastLogin?: string | null;
  6137. };
  6138. export type Addresses = Address.Fragment;
  6139. }
  6140. export namespace FacetValue {
  6141. export type Fragment = {
  6142. __typename?: 'FacetValue';
  6143. id: string;
  6144. languageCode: LanguageCode;
  6145. code: string;
  6146. name: string;
  6147. translations: Translations[];
  6148. facet: Facet;
  6149. };
  6150. export type Translations = {
  6151. __typename?: 'FacetValueTranslation';
  6152. id: string;
  6153. languageCode: LanguageCode;
  6154. name: string;
  6155. };
  6156. export type Facet = {
  6157. __typename?: 'Facet';
  6158. id: string;
  6159. name: string;
  6160. };
  6161. }
  6162. export namespace FacetWithValues {
  6163. export type Fragment = {
  6164. __typename?: 'Facet';
  6165. id: string;
  6166. languageCode: LanguageCode;
  6167. code: string;
  6168. name: string;
  6169. translations: Translations[];
  6170. values: Values[];
  6171. };
  6172. export type Translations = {
  6173. __typename?: 'FacetTranslation';
  6174. id: string;
  6175. languageCode: LanguageCode;
  6176. name: string;
  6177. };
  6178. export type Values = FacetValue.Fragment;
  6179. }
  6180. export namespace Adjustment {
  6181. export type Fragment = {
  6182. __typename?: 'Adjustment';
  6183. adjustmentSource: string;
  6184. amount: number;
  6185. description: string;
  6186. type: AdjustmentType;
  6187. };
  6188. }
  6189. export namespace ShippingAddress {
  6190. export type Fragment = {
  6191. __typename?: 'ShippingAddress';
  6192. fullName?: string | null;
  6193. company?: string | null;
  6194. streetLine1?: string | null;
  6195. streetLine2?: string | null;
  6196. city?: string | null;
  6197. province?: string | null;
  6198. postalCode?: string | null;
  6199. country?: string | null;
  6200. phoneNumber?: string | null;
  6201. };
  6202. }
  6203. export namespace Order {
  6204. export type Fragment = {
  6205. __typename?: 'Order';
  6206. id: string;
  6207. createdAt: DateTime;
  6208. updatedAt: DateTime;
  6209. code: string;
  6210. state: string;
  6211. total: number;
  6212. currencyCode: CurrencyCode;
  6213. customer?: Customer | null;
  6214. };
  6215. export type Customer = {
  6216. __typename?: 'Customer';
  6217. id: string;
  6218. firstName: string;
  6219. lastName: string;
  6220. };
  6221. }
  6222. export namespace OrderWithLines {
  6223. export type Fragment = {
  6224. __typename?: 'Order';
  6225. id: string;
  6226. createdAt: DateTime;
  6227. updatedAt: DateTime;
  6228. code: string;
  6229. state: string;
  6230. active: boolean;
  6231. customer?: Customer | null;
  6232. lines: Lines[];
  6233. adjustments: Adjustments[];
  6234. subTotal: number;
  6235. subTotalBeforeTax: number;
  6236. totalBeforeTax: number;
  6237. currencyCode: CurrencyCode;
  6238. shipping: number;
  6239. shippingMethod?: ShippingMethod | null;
  6240. shippingAddress?: ShippingAddress | null;
  6241. payments?: Payments[] | null;
  6242. total: number;
  6243. };
  6244. export type Customer = {
  6245. __typename?: 'Customer';
  6246. id: string;
  6247. firstName: string;
  6248. lastName: string;
  6249. };
  6250. export type Lines = {
  6251. __typename?: 'OrderLine';
  6252. id: string;
  6253. featuredAsset?: FeaturedAsset | null;
  6254. productVariant: ProductVariant;
  6255. unitPrice: number;
  6256. unitPriceWithTax: number;
  6257. quantity: number;
  6258. items: Items[];
  6259. totalPrice: number;
  6260. };
  6261. export type FeaturedAsset = {
  6262. __typename?: 'Asset';
  6263. preview: string;
  6264. };
  6265. export type ProductVariant = {
  6266. __typename?: 'ProductVariant';
  6267. id: string;
  6268. name: string;
  6269. sku: string;
  6270. };
  6271. export type Items = {
  6272. __typename?: 'OrderItem';
  6273. id: string;
  6274. unitPrice: number;
  6275. unitPriceIncludesTax: boolean;
  6276. unitPriceWithTax: number;
  6277. taxRate: number;
  6278. };
  6279. export type Adjustments = Adjustment.Fragment;
  6280. export type ShippingMethod = {
  6281. __typename?: 'ShippingMethod';
  6282. id: string;
  6283. code: string;
  6284. description: string;
  6285. };
  6286. export type ShippingAddress = ShippingAddress.Fragment;
  6287. export type Payments = {
  6288. __typename?: 'Payment';
  6289. id: string;
  6290. transactionId?: string | null;
  6291. amount: number;
  6292. method: string;
  6293. state: string;
  6294. metadata?: Json | null;
  6295. };
  6296. }
  6297. export namespace Asset {
  6298. export type Fragment = {
  6299. __typename?: 'Asset';
  6300. id: string;
  6301. name: string;
  6302. fileSize: number;
  6303. mimeType: string;
  6304. type: AssetType;
  6305. preview: string;
  6306. source: string;
  6307. };
  6308. }
  6309. export namespace ProductVariant {
  6310. export type Fragment = {
  6311. __typename?: 'ProductVariant';
  6312. id: string;
  6313. languageCode: LanguageCode;
  6314. name: string;
  6315. price: number;
  6316. currencyCode: CurrencyCode;
  6317. priceIncludesTax: boolean;
  6318. priceWithTax: number;
  6319. taxRateApplied: TaxRateApplied;
  6320. taxCategory: TaxCategory;
  6321. sku: string;
  6322. options: Options[];
  6323. facetValues: FacetValues[];
  6324. featuredAsset?: FeaturedAsset | null;
  6325. assets: Assets[];
  6326. translations: Translations[];
  6327. };
  6328. export type TaxRateApplied = {
  6329. __typename?: 'TaxRate';
  6330. id: string;
  6331. name: string;
  6332. value: number;
  6333. };
  6334. export type TaxCategory = {
  6335. __typename?: 'TaxCategory';
  6336. id: string;
  6337. name: string;
  6338. };
  6339. export type Options = {
  6340. __typename?: 'ProductOption';
  6341. id: string;
  6342. code?: string | null;
  6343. languageCode?: LanguageCode | null;
  6344. name?: string | null;
  6345. };
  6346. export type FacetValues = {
  6347. __typename?: 'FacetValue';
  6348. id: string;
  6349. code: string;
  6350. name: string;
  6351. facet: Facet;
  6352. };
  6353. export type Facet = {
  6354. __typename?: 'Facet';
  6355. id: string;
  6356. name: string;
  6357. };
  6358. export type FeaturedAsset = Asset.Fragment;
  6359. export type Assets = Asset.Fragment;
  6360. export type Translations = {
  6361. __typename?: 'ProductVariantTranslation';
  6362. id: string;
  6363. languageCode: LanguageCode;
  6364. name: string;
  6365. };
  6366. }
  6367. export namespace ProductWithVariants {
  6368. export type Fragment = {
  6369. __typename?: 'Product';
  6370. id: string;
  6371. languageCode: LanguageCode;
  6372. name: string;
  6373. slug: string;
  6374. description: string;
  6375. featuredAsset?: FeaturedAsset | null;
  6376. assets: Assets[];
  6377. translations: Translations[];
  6378. optionGroups: OptionGroups[];
  6379. variants: Variants[];
  6380. facetValues: FacetValues[];
  6381. };
  6382. export type FeaturedAsset = Asset.Fragment;
  6383. export type Assets = Asset.Fragment;
  6384. export type Translations = {
  6385. __typename?: 'ProductTranslation';
  6386. languageCode: LanguageCode;
  6387. name: string;
  6388. slug: string;
  6389. description: string;
  6390. };
  6391. export type OptionGroups = {
  6392. __typename?: 'ProductOptionGroup';
  6393. id: string;
  6394. languageCode: LanguageCode;
  6395. code: string;
  6396. name: string;
  6397. };
  6398. export type Variants = ProductVariant.Fragment;
  6399. export type FacetValues = {
  6400. __typename?: 'FacetValue';
  6401. id: string;
  6402. code: string;
  6403. name: string;
  6404. facet: Facet;
  6405. };
  6406. export type Facet = {
  6407. __typename?: 'Facet';
  6408. id: string;
  6409. name: string;
  6410. };
  6411. }
  6412. export namespace ProductOptionGroup {
  6413. export type Fragment = {
  6414. __typename?: 'ProductOptionGroup';
  6415. id: string;
  6416. languageCode: LanguageCode;
  6417. code: string;
  6418. name: string;
  6419. translations: Translations[];
  6420. options: Options[];
  6421. };
  6422. export type Translations = {
  6423. __typename?: 'ProductOptionGroupTranslation';
  6424. name: string;
  6425. };
  6426. export type Options = {
  6427. __typename?: 'ProductOption';
  6428. id: string;
  6429. languageCode?: LanguageCode | null;
  6430. name?: string | null;
  6431. code?: string | null;
  6432. translations: _Translations[];
  6433. };
  6434. export type _Translations = {
  6435. __typename?: 'ProductOptionTranslation';
  6436. name: string;
  6437. };
  6438. }
  6439. export namespace ProductCategory {
  6440. export type Fragment = {
  6441. __typename?: 'ProductCategory';
  6442. id: string;
  6443. name: string;
  6444. description: string;
  6445. languageCode?: LanguageCode | null;
  6446. featuredAsset?: FeaturedAsset | null;
  6447. assets: Assets[];
  6448. facetValues: FacetValues[];
  6449. translations: Translations[];
  6450. parent: Parent;
  6451. children?: Children[] | null;
  6452. };
  6453. export type FeaturedAsset = Asset.Fragment;
  6454. export type Assets = Asset.Fragment;
  6455. export type FacetValues = {
  6456. __typename?: 'FacetValue';
  6457. id: string;
  6458. name: string;
  6459. code: string;
  6460. };
  6461. export type Translations = {
  6462. __typename?: 'ProductCategoryTranslation';
  6463. id: string;
  6464. languageCode: LanguageCode;
  6465. name: string;
  6466. description: string;
  6467. };
  6468. export type Parent = {
  6469. __typename?: 'ProductCategory';
  6470. id: string;
  6471. name: string;
  6472. };
  6473. export type Children = {
  6474. __typename?: 'ProductCategory';
  6475. id: string;
  6476. name: string;
  6477. };
  6478. }
  6479. export namespace AdjustmentOperation {
  6480. export type Fragment = {
  6481. __typename?: 'AdjustmentOperation';
  6482. args: Args[];
  6483. code: string;
  6484. description: string;
  6485. };
  6486. export type Args = {
  6487. __typename?: 'ConfigArg';
  6488. name: string;
  6489. type: string;
  6490. value?: string | null;
  6491. };
  6492. }
  6493. export namespace Promotion {
  6494. export type Fragment = {
  6495. __typename?: 'Promotion';
  6496. id: string;
  6497. createdAt: DateTime;
  6498. updatedAt: DateTime;
  6499. name: string;
  6500. enabled: boolean;
  6501. conditions: Conditions[];
  6502. actions: Actions[];
  6503. };
  6504. export type Conditions = AdjustmentOperation.Fragment;
  6505. export type Actions = AdjustmentOperation.Fragment;
  6506. }
  6507. export namespace Country {
  6508. export type Fragment = {
  6509. __typename?: 'Country';
  6510. id: string;
  6511. code: string;
  6512. name: string;
  6513. enabled: boolean;
  6514. translations: Translations[];
  6515. };
  6516. export type Translations = {
  6517. __typename?: 'CountryTranslation';
  6518. id: string;
  6519. languageCode: LanguageCode;
  6520. name: string;
  6521. };
  6522. }
  6523. export namespace Zone {
  6524. export type Fragment = {
  6525. __typename?: 'Zone';
  6526. id: string;
  6527. name: string;
  6528. members: Members[];
  6529. };
  6530. export type Members = Country.Fragment;
  6531. }
  6532. export namespace TaxCategory {
  6533. export type Fragment = {
  6534. __typename?: 'TaxCategory';
  6535. id: string;
  6536. name: string;
  6537. };
  6538. }
  6539. export namespace TaxRate {
  6540. export type Fragment = {
  6541. __typename?: 'TaxRate';
  6542. id: string;
  6543. name: string;
  6544. enabled: boolean;
  6545. value: number;
  6546. category: Category;
  6547. zone: Zone;
  6548. customerGroup?: CustomerGroup | null;
  6549. };
  6550. export type Category = {
  6551. __typename?: 'TaxCategory';
  6552. id: string;
  6553. name: string;
  6554. };
  6555. export type Zone = {
  6556. __typename?: 'Zone';
  6557. id: string;
  6558. name: string;
  6559. };
  6560. export type CustomerGroup = {
  6561. __typename?: 'CustomerGroup';
  6562. id: string;
  6563. name: string;
  6564. };
  6565. }
  6566. export namespace Channel {
  6567. export type Fragment = {
  6568. __typename?: 'Channel';
  6569. id: string;
  6570. code: string;
  6571. token: string;
  6572. pricesIncludeTax: boolean;
  6573. currencyCode: CurrencyCode;
  6574. defaultLanguageCode: LanguageCode;
  6575. defaultShippingZone?: DefaultShippingZone | null;
  6576. defaultTaxZone?: DefaultTaxZone | null;
  6577. };
  6578. export type DefaultShippingZone = {
  6579. __typename?: 'Zone';
  6580. id: string;
  6581. name: string;
  6582. };
  6583. export type DefaultTaxZone = {
  6584. __typename?: 'Zone';
  6585. id: string;
  6586. name: string;
  6587. };
  6588. }
  6589. export namespace PaymentMethod {
  6590. export type Fragment = {
  6591. __typename?: 'PaymentMethod';
  6592. id: string;
  6593. code: string;
  6594. enabled: boolean;
  6595. configArgs: ConfigArgs[];
  6596. };
  6597. export type ConfigArgs = {
  6598. __typename?: 'ConfigArg';
  6599. name: string;
  6600. type: string;
  6601. value?: string | null;
  6602. };
  6603. }
  6604. export namespace GlobalSettings {
  6605. export type Fragment = {
  6606. __typename?: 'GlobalSettings';
  6607. availableLanguages: LanguageCode[];
  6608. };
  6609. }
  6610. export namespace ShippingMethod {
  6611. export type Fragment = {
  6612. __typename?: 'ShippingMethod';
  6613. id: string;
  6614. createdAt: DateTime;
  6615. updatedAt: DateTime;
  6616. code: string;
  6617. description: string;
  6618. checker: Checker;
  6619. calculator: Calculator;
  6620. };
  6621. export type Checker = AdjustmentOperation.Fragment;
  6622. export type Calculator = AdjustmentOperation.Fragment;
  6623. }