generated-types.ts 167 KB

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