generated-types.ts 169 KB

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