generated-types.ts 213 KB

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