generated-types.ts 202 KB

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