generated-types.ts 154 KB

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