generated-types.ts 148 KB

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