generated-types.ts 161 KB

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