generated-types.ts 149 KB

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