generated-types.ts 164 KB

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