generated-types.ts 202 KB

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