generated-types.ts 202 KB

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