generated-types.ts 215 KB

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