generated-types.ts 212 KB

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