generated-types.ts 146 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095
  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. CreateAdjustmentSource = 'CreateAdjustmentSource',
  1275. ReadAdjustmentSource = 'ReadAdjustmentSource',
  1276. UpdateAdjustmentSource = 'UpdateAdjustmentSource',
  1277. DeleteAdjustmentSource = 'DeleteAdjustmentSource',
  1278. CreateSettings = 'CreateSettings',
  1279. ReadSettings = 'ReadSettings',
  1280. UpdateSettings = 'UpdateSettings',
  1281. DeleteSettings = 'DeleteSettings',
  1282. }
  1283. export enum LanguageCode {
  1284. aa = 'aa',
  1285. ab = 'ab',
  1286. af = 'af',
  1287. ak = 'ak',
  1288. sq = 'sq',
  1289. am = 'am',
  1290. ar = 'ar',
  1291. an = 'an',
  1292. hy = 'hy',
  1293. as = 'as',
  1294. av = 'av',
  1295. ae = 'ae',
  1296. ay = 'ay',
  1297. az = 'az',
  1298. ba = 'ba',
  1299. bm = 'bm',
  1300. eu = 'eu',
  1301. be = 'be',
  1302. bn = 'bn',
  1303. bh = 'bh',
  1304. bi = 'bi',
  1305. bs = 'bs',
  1306. br = 'br',
  1307. bg = 'bg',
  1308. my = 'my',
  1309. ca = 'ca',
  1310. ch = 'ch',
  1311. ce = 'ce',
  1312. zh = 'zh',
  1313. cu = 'cu',
  1314. cv = 'cv',
  1315. kw = 'kw',
  1316. co = 'co',
  1317. cr = 'cr',
  1318. cs = 'cs',
  1319. da = 'da',
  1320. dv = 'dv',
  1321. nl = 'nl',
  1322. dz = 'dz',
  1323. en = 'en',
  1324. eo = 'eo',
  1325. et = 'et',
  1326. ee = 'ee',
  1327. fo = 'fo',
  1328. fj = 'fj',
  1329. fi = 'fi',
  1330. fr = 'fr',
  1331. fy = 'fy',
  1332. ff = 'ff',
  1333. ka = 'ka',
  1334. de = 'de',
  1335. gd = 'gd',
  1336. ga = 'ga',
  1337. gl = 'gl',
  1338. gv = 'gv',
  1339. el = 'el',
  1340. gn = 'gn',
  1341. gu = 'gu',
  1342. ht = 'ht',
  1343. ha = 'ha',
  1344. he = 'he',
  1345. hz = 'hz',
  1346. hi = 'hi',
  1347. ho = 'ho',
  1348. hr = 'hr',
  1349. hu = 'hu',
  1350. ig = 'ig',
  1351. is = 'is',
  1352. io = 'io',
  1353. ii = 'ii',
  1354. iu = 'iu',
  1355. ie = 'ie',
  1356. ia = 'ia',
  1357. id = 'id',
  1358. ik = 'ik',
  1359. it = 'it',
  1360. jv = 'jv',
  1361. ja = 'ja',
  1362. kl = 'kl',
  1363. kn = 'kn',
  1364. ks = 'ks',
  1365. kr = 'kr',
  1366. kk = 'kk',
  1367. km = 'km',
  1368. ki = 'ki',
  1369. rw = 'rw',
  1370. ky = 'ky',
  1371. kv = 'kv',
  1372. kg = 'kg',
  1373. ko = 'ko',
  1374. kj = 'kj',
  1375. ku = 'ku',
  1376. lo = 'lo',
  1377. la = 'la',
  1378. lv = 'lv',
  1379. li = 'li',
  1380. ln = 'ln',
  1381. lt = 'lt',
  1382. lb = 'lb',
  1383. lu = 'lu',
  1384. lg = 'lg',
  1385. mk = 'mk',
  1386. mh = 'mh',
  1387. ml = 'ml',
  1388. mi = 'mi',
  1389. mr = 'mr',
  1390. ms = 'ms',
  1391. mg = 'mg',
  1392. mt = 'mt',
  1393. mn = 'mn',
  1394. na = 'na',
  1395. nv = 'nv',
  1396. nr = 'nr',
  1397. nd = 'nd',
  1398. ng = 'ng',
  1399. ne = 'ne',
  1400. nn = 'nn',
  1401. nb = 'nb',
  1402. no = 'no',
  1403. ny = 'ny',
  1404. oc = 'oc',
  1405. oj = 'oj',
  1406. or = 'or',
  1407. om = 'om',
  1408. os = 'os',
  1409. pa = 'pa',
  1410. fa = 'fa',
  1411. pi = 'pi',
  1412. pl = 'pl',
  1413. pt = 'pt',
  1414. ps = 'ps',
  1415. qu = 'qu',
  1416. rm = 'rm',
  1417. ro = 'ro',
  1418. rn = 'rn',
  1419. ru = 'ru',
  1420. sg = 'sg',
  1421. sa = 'sa',
  1422. si = 'si',
  1423. sk = 'sk',
  1424. sl = 'sl',
  1425. se = 'se',
  1426. sm = 'sm',
  1427. sn = 'sn',
  1428. sd = 'sd',
  1429. so = 'so',
  1430. st = 'st',
  1431. es = 'es',
  1432. sc = 'sc',
  1433. sr = 'sr',
  1434. ss = 'ss',
  1435. su = 'su',
  1436. sw = 'sw',
  1437. sv = 'sv',
  1438. ty = 'ty',
  1439. ta = 'ta',
  1440. tt = 'tt',
  1441. te = 'te',
  1442. tg = 'tg',
  1443. tl = 'tl',
  1444. th = 'th',
  1445. bo = 'bo',
  1446. ti = 'ti',
  1447. to = 'to',
  1448. tn = 'tn',
  1449. ts = 'ts',
  1450. tk = 'tk',
  1451. tr = 'tr',
  1452. tw = 'tw',
  1453. ug = 'ug',
  1454. uk = 'uk',
  1455. ur = 'ur',
  1456. uz = 'uz',
  1457. ve = 've',
  1458. vi = 'vi',
  1459. vo = 'vo',
  1460. cy = 'cy',
  1461. wa = 'wa',
  1462. wo = 'wo',
  1463. xh = 'xh',
  1464. yi = 'yi',
  1465. yo = 'yo',
  1466. za = 'za',
  1467. zu = 'zu',
  1468. }
  1469. export enum AssetType {
  1470. IMAGE = 'IMAGE',
  1471. VIDEO = 'VIDEO',
  1472. BINARY = 'BINARY',
  1473. }
  1474. export enum AdjustmentType {
  1475. TAX = 'TAX',
  1476. PROMOTION = 'PROMOTION',
  1477. REFUND = 'REFUND',
  1478. TAX_REFUND = 'TAX_REFUND',
  1479. PROMOTION_REFUND = 'PROMOTION_REFUND',
  1480. }
  1481. export namespace QueryResolvers {
  1482. export interface Resolvers<Context = any> {
  1483. administrators?: AdministratorsResolver<AdministratorList, any, Context>;
  1484. administrator?: AdministratorResolver<Administrator | null, any, Context>;
  1485. assets?: AssetsResolver<AssetList, any, Context>;
  1486. asset?: AssetResolver<Asset | null, any, Context>;
  1487. me?: MeResolver<CurrentUser | null, any, Context>;
  1488. channels?: ChannelsResolver<Channel[], any, Context>;
  1489. channel?: ChannelResolver<Channel | null, any, Context>;
  1490. activeChannel?: ActiveChannelResolver<Channel, any, Context>;
  1491. config?: ConfigResolver<Config, any, Context>;
  1492. countries?: CountriesResolver<CountryList, any, Context>;
  1493. country?: CountryResolver<Country | null, any, Context>;
  1494. customerGroups?: CustomerGroupsResolver<CustomerGroup[], any, Context>;
  1495. customerGroup?: CustomerGroupResolver<CustomerGroup | null, any, Context>;
  1496. customers?: CustomersResolver<CustomerList, any, Context>;
  1497. customer?: CustomerResolver<Customer | null, any, Context>;
  1498. facets?: FacetsResolver<FacetList, any, Context>;
  1499. facet?: FacetResolver<Facet | null, any, Context>;
  1500. order?: OrderResolver<Order | null, any, Context>;
  1501. activeOrder?: ActiveOrderResolver<Order | null, any, Context>;
  1502. orders?: OrdersResolver<OrderList, any, Context>;
  1503. productOptionGroups?: ProductOptionGroupsResolver<ProductOptionGroup[], any, Context>;
  1504. productOptionGroup?: ProductOptionGroupResolver<ProductOptionGroup | null, any, Context>;
  1505. products?: ProductsResolver<ProductList, any, Context>;
  1506. product?: ProductResolver<Product | null, any, Context>;
  1507. promotion?: PromotionResolver<Promotion | null, any, Context>;
  1508. promotions?: PromotionsResolver<PromotionList, any, Context>;
  1509. adjustmentOperations?: AdjustmentOperationsResolver<AdjustmentOperations, any, Context>;
  1510. roles?: RolesResolver<RoleList, any, Context>;
  1511. role?: RoleResolver<Role | null, any, Context>;
  1512. taxCategories?: TaxCategoriesResolver<TaxCategory[], any, Context>;
  1513. taxCategory?: TaxCategoryResolver<TaxCategory | null, any, Context>;
  1514. taxRates?: TaxRatesResolver<TaxRateList, any, Context>;
  1515. taxRate?: TaxRateResolver<TaxRate | null, any, Context>;
  1516. zones?: ZonesResolver<Zone[], any, Context>;
  1517. zone?: ZoneResolver<Zone | null, any, Context>;
  1518. networkStatus?: NetworkStatusResolver<NetworkStatus, any, Context>;
  1519. userStatus?: UserStatusResolver<UserStatus, any, Context>;
  1520. uiState?: UiStateResolver<UiState, any, Context>;
  1521. }
  1522. export type AdministratorsResolver<R = AdministratorList, Parent = any, Context = any> = Resolver<
  1523. R,
  1524. Parent,
  1525. Context,
  1526. AdministratorsArgs
  1527. >;
  1528. export interface AdministratorsArgs {
  1529. options?: AdministratorListOptions | null;
  1530. }
  1531. export type AdministratorResolver<R = Administrator | null, Parent = any, Context = any> = Resolver<
  1532. R,
  1533. Parent,
  1534. Context,
  1535. AdministratorArgs
  1536. >;
  1537. export interface AdministratorArgs {
  1538. id: string;
  1539. }
  1540. export type AssetsResolver<R = AssetList, Parent = any, Context = any> = Resolver<
  1541. R,
  1542. Parent,
  1543. Context,
  1544. AssetsArgs
  1545. >;
  1546. export interface AssetsArgs {
  1547. options?: AssetListOptions | null;
  1548. }
  1549. export type AssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  1550. R,
  1551. Parent,
  1552. Context,
  1553. AssetArgs
  1554. >;
  1555. export interface AssetArgs {
  1556. id: string;
  1557. }
  1558. export type MeResolver<R = CurrentUser | null, Parent = any, Context = any> = Resolver<
  1559. R,
  1560. Parent,
  1561. Context
  1562. >;
  1563. export type ChannelsResolver<R = Channel[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1564. export type ChannelResolver<R = Channel | null, Parent = any, Context = any> = Resolver<
  1565. R,
  1566. Parent,
  1567. Context,
  1568. ChannelArgs
  1569. >;
  1570. export interface ChannelArgs {
  1571. id: string;
  1572. }
  1573. export type ActiveChannelResolver<R = Channel, Parent = any, Context = any> = Resolver<
  1574. R,
  1575. Parent,
  1576. Context
  1577. >;
  1578. export type ConfigResolver<R = Config, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1579. export type CountriesResolver<R = CountryList, Parent = any, Context = any> = Resolver<
  1580. R,
  1581. Parent,
  1582. Context,
  1583. CountriesArgs
  1584. >;
  1585. export interface CountriesArgs {
  1586. options?: CountryListOptions | null;
  1587. }
  1588. export type CountryResolver<R = Country | null, Parent = any, Context = any> = Resolver<
  1589. R,
  1590. Parent,
  1591. Context,
  1592. CountryArgs
  1593. >;
  1594. export interface CountryArgs {
  1595. id: string;
  1596. }
  1597. export type CustomerGroupsResolver<R = CustomerGroup[], Parent = any, Context = any> = Resolver<
  1598. R,
  1599. Parent,
  1600. Context
  1601. >;
  1602. export type CustomerGroupResolver<R = CustomerGroup | null, Parent = any, Context = any> = Resolver<
  1603. R,
  1604. Parent,
  1605. Context,
  1606. CustomerGroupArgs
  1607. >;
  1608. export interface CustomerGroupArgs {
  1609. id: string;
  1610. }
  1611. export type CustomersResolver<R = CustomerList, Parent = any, Context = any> = Resolver<
  1612. R,
  1613. Parent,
  1614. Context,
  1615. CustomersArgs
  1616. >;
  1617. export interface CustomersArgs {
  1618. options?: CustomerListOptions | null;
  1619. }
  1620. export type CustomerResolver<R = Customer | null, Parent = any, Context = any> = Resolver<
  1621. R,
  1622. Parent,
  1623. Context,
  1624. CustomerArgs
  1625. >;
  1626. export interface CustomerArgs {
  1627. id: string;
  1628. }
  1629. export type FacetsResolver<R = FacetList, Parent = any, Context = any> = Resolver<
  1630. R,
  1631. Parent,
  1632. Context,
  1633. FacetsArgs
  1634. >;
  1635. export interface FacetsArgs {
  1636. languageCode?: LanguageCode | null;
  1637. options?: FacetListOptions | null;
  1638. }
  1639. export type FacetResolver<R = Facet | null, Parent = any, Context = any> = Resolver<
  1640. R,
  1641. Parent,
  1642. Context,
  1643. FacetArgs
  1644. >;
  1645. export interface FacetArgs {
  1646. id: string;
  1647. languageCode?: LanguageCode | null;
  1648. }
  1649. export type OrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  1650. R,
  1651. Parent,
  1652. Context,
  1653. OrderArgs
  1654. >;
  1655. export interface OrderArgs {
  1656. id: string;
  1657. }
  1658. export type ActiveOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  1659. R,
  1660. Parent,
  1661. Context
  1662. >;
  1663. export type OrdersResolver<R = OrderList, Parent = any, Context = any> = Resolver<
  1664. R,
  1665. Parent,
  1666. Context,
  1667. OrdersArgs
  1668. >;
  1669. export interface OrdersArgs {
  1670. options?: OrderListOptions | null;
  1671. }
  1672. export type ProductOptionGroupsResolver<R = ProductOptionGroup[], Parent = any, Context = any> = Resolver<
  1673. R,
  1674. Parent,
  1675. Context,
  1676. ProductOptionGroupsArgs
  1677. >;
  1678. export interface ProductOptionGroupsArgs {
  1679. languageCode?: LanguageCode | null;
  1680. filterTerm?: string | null;
  1681. }
  1682. export type ProductOptionGroupResolver<
  1683. R = ProductOptionGroup | null,
  1684. Parent = any,
  1685. Context = any
  1686. > = Resolver<R, Parent, Context, ProductOptionGroupArgs>;
  1687. export interface ProductOptionGroupArgs {
  1688. id: string;
  1689. languageCode?: LanguageCode | null;
  1690. }
  1691. export type ProductsResolver<R = ProductList, Parent = any, Context = any> = Resolver<
  1692. R,
  1693. Parent,
  1694. Context,
  1695. ProductsArgs
  1696. >;
  1697. export interface ProductsArgs {
  1698. languageCode?: LanguageCode | null;
  1699. options?: ProductListOptions | null;
  1700. }
  1701. export type ProductResolver<R = Product | null, Parent = any, Context = any> = Resolver<
  1702. R,
  1703. Parent,
  1704. Context,
  1705. ProductArgs
  1706. >;
  1707. export interface ProductArgs {
  1708. id: string;
  1709. languageCode?: LanguageCode | null;
  1710. }
  1711. export type PromotionResolver<R = Promotion | null, Parent = any, Context = any> = Resolver<
  1712. R,
  1713. Parent,
  1714. Context,
  1715. PromotionArgs
  1716. >;
  1717. export interface PromotionArgs {
  1718. id: string;
  1719. }
  1720. export type PromotionsResolver<R = PromotionList, Parent = any, Context = any> = Resolver<
  1721. R,
  1722. Parent,
  1723. Context,
  1724. PromotionsArgs
  1725. >;
  1726. export interface PromotionsArgs {
  1727. options?: PromotionListOptions | null;
  1728. }
  1729. export type AdjustmentOperationsResolver<
  1730. R = AdjustmentOperations,
  1731. Parent = any,
  1732. Context = any
  1733. > = Resolver<R, Parent, Context>;
  1734. export type RolesResolver<R = RoleList, Parent = any, Context = any> = Resolver<
  1735. R,
  1736. Parent,
  1737. Context,
  1738. RolesArgs
  1739. >;
  1740. export interface RolesArgs {
  1741. options?: RoleListOptions | null;
  1742. }
  1743. export type RoleResolver<R = Role | null, Parent = any, Context = any> = Resolver<
  1744. R,
  1745. Parent,
  1746. Context,
  1747. RoleArgs
  1748. >;
  1749. export interface RoleArgs {
  1750. id: string;
  1751. }
  1752. export type TaxCategoriesResolver<R = TaxCategory[], Parent = any, Context = any> = Resolver<
  1753. R,
  1754. Parent,
  1755. Context
  1756. >;
  1757. export type TaxCategoryResolver<R = TaxCategory | null, Parent = any, Context = any> = Resolver<
  1758. R,
  1759. Parent,
  1760. Context,
  1761. TaxCategoryArgs
  1762. >;
  1763. export interface TaxCategoryArgs {
  1764. id: string;
  1765. }
  1766. export type TaxRatesResolver<R = TaxRateList, Parent = any, Context = any> = Resolver<
  1767. R,
  1768. Parent,
  1769. Context,
  1770. TaxRatesArgs
  1771. >;
  1772. export interface TaxRatesArgs {
  1773. options?: TaxRateListOptions | null;
  1774. }
  1775. export type TaxRateResolver<R = TaxRate | null, Parent = any, Context = any> = Resolver<
  1776. R,
  1777. Parent,
  1778. Context,
  1779. TaxRateArgs
  1780. >;
  1781. export interface TaxRateArgs {
  1782. id: string;
  1783. }
  1784. export type ZonesResolver<R = Zone[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1785. export type ZoneResolver<R = Zone | null, Parent = any, Context = any> = Resolver<
  1786. R,
  1787. Parent,
  1788. Context,
  1789. ZoneArgs
  1790. >;
  1791. export interface ZoneArgs {
  1792. id: string;
  1793. }
  1794. export type NetworkStatusResolver<R = NetworkStatus, Parent = any, Context = any> = Resolver<
  1795. R,
  1796. Parent,
  1797. Context
  1798. >;
  1799. export type UserStatusResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
  1800. R,
  1801. Parent,
  1802. Context
  1803. >;
  1804. export type UiStateResolver<R = UiState, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1805. }
  1806. export namespace AdministratorListResolvers {
  1807. export interface Resolvers<Context = any> {
  1808. items?: ItemsResolver<Administrator[], any, Context>;
  1809. totalItems?: TotalItemsResolver<number, any, Context>;
  1810. }
  1811. export type ItemsResolver<R = Administrator[], Parent = any, Context = any> = Resolver<
  1812. R,
  1813. Parent,
  1814. Context
  1815. >;
  1816. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1817. }
  1818. export namespace AdministratorResolvers {
  1819. export interface Resolvers<Context = any> {
  1820. id?: IdResolver<string, any, Context>;
  1821. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  1822. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  1823. firstName?: FirstNameResolver<string, any, Context>;
  1824. lastName?: LastNameResolver<string, any, Context>;
  1825. emailAddress?: EmailAddressResolver<string, any, Context>;
  1826. user?: UserResolver<User, any, Context>;
  1827. }
  1828. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1829. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1830. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1831. export type FirstNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1832. export type LastNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1833. export type EmailAddressResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1834. export type UserResolver<R = User, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1835. }
  1836. export namespace UserResolvers {
  1837. export interface Resolvers<Context = any> {
  1838. id?: IdResolver<string, any, Context>;
  1839. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  1840. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  1841. identifier?: IdentifierResolver<string, any, Context>;
  1842. passwordHash?: PasswordHashResolver<string, any, Context>;
  1843. roles?: RolesResolver<Role[], any, Context>;
  1844. lastLogin?: LastLoginResolver<string | null, any, Context>;
  1845. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  1846. }
  1847. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1848. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1849. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1850. export type IdentifierResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1851. export type PasswordHashResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1852. export type RolesResolver<R = Role[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1853. export type LastLoginResolver<R = string | null, Parent = any, Context = any> = Resolver<
  1854. R,
  1855. Parent,
  1856. Context
  1857. >;
  1858. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  1859. R,
  1860. Parent,
  1861. Context
  1862. >;
  1863. }
  1864. export namespace RoleResolvers {
  1865. export interface Resolvers<Context = any> {
  1866. id?: IdResolver<string, any, Context>;
  1867. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  1868. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  1869. code?: CodeResolver<string, any, Context>;
  1870. description?: DescriptionResolver<string, any, Context>;
  1871. permissions?: PermissionsResolver<Permission[], any, Context>;
  1872. channels?: ChannelsResolver<Channel[], any, Context>;
  1873. }
  1874. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1875. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1876. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1877. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1878. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1879. export type PermissionsResolver<R = Permission[], Parent = any, Context = any> = Resolver<
  1880. R,
  1881. Parent,
  1882. Context
  1883. >;
  1884. export type ChannelsResolver<R = Channel[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1885. }
  1886. export namespace ChannelResolvers {
  1887. export interface Resolvers<Context = any> {
  1888. id?: IdResolver<string, any, Context>;
  1889. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  1890. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  1891. code?: CodeResolver<string, any, Context>;
  1892. token?: TokenResolver<string, any, Context>;
  1893. defaultTaxZone?: DefaultTaxZoneResolver<Zone | null, any, Context>;
  1894. defaultShippingZone?: DefaultShippingZoneResolver<Zone | null, any, Context>;
  1895. defaultLanguageCode?: DefaultLanguageCodeResolver<LanguageCode, any, Context>;
  1896. pricesIncludeTax?: PricesIncludeTaxResolver<boolean, any, Context>;
  1897. }
  1898. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1899. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1900. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1901. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1902. export type TokenResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1903. export type DefaultTaxZoneResolver<R = Zone | null, Parent = any, Context = any> = Resolver<
  1904. R,
  1905. Parent,
  1906. Context
  1907. >;
  1908. export type DefaultShippingZoneResolver<R = Zone | null, Parent = any, Context = any> = Resolver<
  1909. R,
  1910. Parent,
  1911. Context
  1912. >;
  1913. export type DefaultLanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  1914. R,
  1915. Parent,
  1916. Context
  1917. >;
  1918. export type PricesIncludeTaxResolver<R = boolean, Parent = any, Context = any> = Resolver<
  1919. R,
  1920. Parent,
  1921. Context
  1922. >;
  1923. }
  1924. export namespace ZoneResolvers {
  1925. export interface Resolvers<Context = any> {
  1926. id?: IdResolver<string, any, Context>;
  1927. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  1928. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  1929. name?: NameResolver<string, any, Context>;
  1930. members?: MembersResolver<Country[], any, Context>;
  1931. }
  1932. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1933. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1934. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1935. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1936. export type MembersResolver<R = Country[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1937. }
  1938. export namespace CountryResolvers {
  1939. export interface Resolvers<Context = any> {
  1940. id?: IdResolver<string, any, Context>;
  1941. code?: CodeResolver<string, any, Context>;
  1942. name?: NameResolver<string, any, Context>;
  1943. enabled?: EnabledResolver<boolean, any, Context>;
  1944. }
  1945. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1946. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1947. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1948. export type EnabledResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1949. }
  1950. export namespace AssetListResolvers {
  1951. export interface Resolvers<Context = any> {
  1952. items?: ItemsResolver<Asset[], any, Context>;
  1953. totalItems?: TotalItemsResolver<number, any, Context>;
  1954. }
  1955. export type ItemsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1956. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1957. }
  1958. export namespace AssetResolvers {
  1959. export interface Resolvers<Context = any> {
  1960. id?: IdResolver<string, any, Context>;
  1961. name?: NameResolver<string, any, Context>;
  1962. type?: TypeResolver<AssetType, any, Context>;
  1963. fileSize?: FileSizeResolver<number, any, Context>;
  1964. mimeType?: MimeTypeResolver<string, any, Context>;
  1965. source?: SourceResolver<string, any, Context>;
  1966. preview?: PreviewResolver<string, any, Context>;
  1967. }
  1968. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1969. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1970. export type TypeResolver<R = AssetType, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1971. export type FileSizeResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1972. export type MimeTypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1973. export type SourceResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1974. export type PreviewResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1975. }
  1976. export namespace CurrentUserResolvers {
  1977. export interface Resolvers<Context = any> {
  1978. id?: IdResolver<string, any, Context>;
  1979. identifier?: IdentifierResolver<string, any, Context>;
  1980. channelTokens?: ChannelTokensResolver<string[], any, Context>;
  1981. }
  1982. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1983. export type IdentifierResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  1984. export type ChannelTokensResolver<R = string[], Parent = any, Context = any> = Resolver<
  1985. R,
  1986. Parent,
  1987. Context
  1988. >;
  1989. }
  1990. export namespace ConfigResolvers {
  1991. export interface Resolvers<Context = any> {
  1992. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  1993. }
  1994. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  1995. R,
  1996. Parent,
  1997. Context
  1998. >;
  1999. }
  2000. export namespace CountryListResolvers {
  2001. export interface Resolvers<Context = any> {
  2002. items?: ItemsResolver<Country[], any, Context>;
  2003. totalItems?: TotalItemsResolver<number, any, Context>;
  2004. }
  2005. export type ItemsResolver<R = Country[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2006. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2007. }
  2008. export namespace CustomerGroupResolvers {
  2009. export interface Resolvers<Context = any> {
  2010. id?: IdResolver<string, any, Context>;
  2011. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2012. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2013. name?: NameResolver<string, any, Context>;
  2014. }
  2015. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2016. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2017. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2018. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2019. }
  2020. export namespace CustomerListResolvers {
  2021. export interface Resolvers<Context = any> {
  2022. items?: ItemsResolver<Customer[], any, Context>;
  2023. totalItems?: TotalItemsResolver<number, any, Context>;
  2024. }
  2025. export type ItemsResolver<R = Customer[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2026. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2027. }
  2028. export namespace CustomerResolvers {
  2029. export interface Resolvers<Context = any> {
  2030. id?: IdResolver<string, any, Context>;
  2031. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2032. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2033. firstName?: FirstNameResolver<string, any, Context>;
  2034. lastName?: LastNameResolver<string, any, Context>;
  2035. phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
  2036. emailAddress?: EmailAddressResolver<string, any, Context>;
  2037. addresses?: AddressesResolver<Address[] | null, any, Context>;
  2038. user?: UserResolver<User | null, any, Context>;
  2039. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2040. }
  2041. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2042. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2043. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2044. export type FirstNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2045. export type LastNameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2046. export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2047. R,
  2048. Parent,
  2049. Context
  2050. >;
  2051. export type EmailAddressResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2052. export type AddressesResolver<R = Address[] | null, Parent = any, Context = any> = Resolver<
  2053. R,
  2054. Parent,
  2055. Context
  2056. >;
  2057. export type UserResolver<R = User | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2058. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2059. R,
  2060. Parent,
  2061. Context
  2062. >;
  2063. }
  2064. export namespace AddressResolvers {
  2065. export interface Resolvers<Context = any> {
  2066. id?: IdResolver<string, any, Context>;
  2067. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2068. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2069. fullName?: FullNameResolver<string | null, any, Context>;
  2070. company?: CompanyResolver<string | null, any, Context>;
  2071. streetLine1?: StreetLine1Resolver<string | null, any, Context>;
  2072. streetLine2?: StreetLine2Resolver<string | null, any, Context>;
  2073. city?: CityResolver<string | null, any, Context>;
  2074. province?: ProvinceResolver<string | null, any, Context>;
  2075. postalCode?: PostalCodeResolver<string | null, any, Context>;
  2076. country?: CountryResolver<string | null, any, Context>;
  2077. phoneNumber?: PhoneNumberResolver<string | null, any, Context>;
  2078. defaultShippingAddress?: DefaultShippingAddressResolver<boolean | null, any, Context>;
  2079. defaultBillingAddress?: DefaultBillingAddressResolver<boolean | null, any, Context>;
  2080. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2081. }
  2082. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2083. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2084. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2085. export type FullNameResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2086. R,
  2087. Parent,
  2088. Context
  2089. >;
  2090. export type CompanyResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2091. R,
  2092. Parent,
  2093. Context
  2094. >;
  2095. export type StreetLine1Resolver<R = string | null, Parent = any, Context = any> = Resolver<
  2096. R,
  2097. Parent,
  2098. Context
  2099. >;
  2100. export type StreetLine2Resolver<R = string | null, Parent = any, Context = any> = Resolver<
  2101. R,
  2102. Parent,
  2103. Context
  2104. >;
  2105. export type CityResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2106. export type ProvinceResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2107. R,
  2108. Parent,
  2109. Context
  2110. >;
  2111. export type PostalCodeResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2112. R,
  2113. Parent,
  2114. Context
  2115. >;
  2116. export type CountryResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2117. R,
  2118. Parent,
  2119. Context
  2120. >;
  2121. export type PhoneNumberResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2122. R,
  2123. Parent,
  2124. Context
  2125. >;
  2126. export type DefaultShippingAddressResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
  2127. R,
  2128. Parent,
  2129. Context
  2130. >;
  2131. export type DefaultBillingAddressResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
  2132. R,
  2133. Parent,
  2134. Context
  2135. >;
  2136. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2137. R,
  2138. Parent,
  2139. Context
  2140. >;
  2141. }
  2142. export namespace FacetListResolvers {
  2143. export interface Resolvers<Context = any> {
  2144. items?: ItemsResolver<Facet[], any, Context>;
  2145. totalItems?: TotalItemsResolver<number, any, Context>;
  2146. }
  2147. export type ItemsResolver<R = Facet[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2148. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2149. }
  2150. export namespace FacetResolvers {
  2151. export interface Resolvers<Context = any> {
  2152. id?: IdResolver<string, any, Context>;
  2153. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2154. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2155. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2156. name?: NameResolver<string, any, Context>;
  2157. code?: CodeResolver<string, any, Context>;
  2158. values?: ValuesResolver<FacetValue[], any, Context>;
  2159. translations?: TranslationsResolver<FacetTranslation[], any, Context>;
  2160. customFields?: CustomFieldsResolver<FacetCustomFields | null, any, Context>;
  2161. }
  2162. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2163. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2164. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2165. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2166. R,
  2167. Parent,
  2168. Context
  2169. >;
  2170. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2171. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2172. export type ValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2173. export type TranslationsResolver<R = FacetTranslation[], Parent = any, Context = any> = Resolver<
  2174. R,
  2175. Parent,
  2176. Context
  2177. >;
  2178. export type CustomFieldsResolver<R = FacetCustomFields | null, Parent = any, Context = any> = Resolver<
  2179. R,
  2180. Parent,
  2181. Context
  2182. >;
  2183. }
  2184. export namespace FacetValueResolvers {
  2185. export interface Resolvers<Context = any> {
  2186. id?: IdResolver<string, any, Context>;
  2187. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2188. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2189. languageCode?: LanguageCodeResolver<LanguageCode | null, any, Context>;
  2190. name?: NameResolver<string, any, Context>;
  2191. code?: CodeResolver<string, any, Context>;
  2192. translations?: TranslationsResolver<FacetValueTranslation[], any, Context>;
  2193. customFields?: CustomFieldsResolver<FacetValueCustomFields | null, any, Context>;
  2194. }
  2195. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2196. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2197. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2198. export type LanguageCodeResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
  2199. R,
  2200. Parent,
  2201. Context
  2202. >;
  2203. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2204. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2205. export type TranslationsResolver<R = FacetValueTranslation[], Parent = any, Context = any> = Resolver<
  2206. R,
  2207. Parent,
  2208. Context
  2209. >;
  2210. export type CustomFieldsResolver<
  2211. R = FacetValueCustomFields | null,
  2212. Parent = any,
  2213. Context = any
  2214. > = Resolver<R, Parent, Context>;
  2215. }
  2216. export namespace FacetValueTranslationResolvers {
  2217. export interface Resolvers<Context = any> {
  2218. id?: IdResolver<string, any, Context>;
  2219. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2220. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2221. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2222. name?: NameResolver<string, any, Context>;
  2223. }
  2224. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2225. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2226. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2227. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2228. R,
  2229. Parent,
  2230. Context
  2231. >;
  2232. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2233. }
  2234. export namespace FacetValueCustomFieldsResolvers {
  2235. export interface Resolvers<Context = any> {
  2236. link?: LinkResolver<string | null, any, Context>;
  2237. available?: AvailableResolver<boolean | null, any, Context>;
  2238. }
  2239. export type LinkResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2240. export type AvailableResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
  2241. R,
  2242. Parent,
  2243. Context
  2244. >;
  2245. }
  2246. export namespace FacetTranslationResolvers {
  2247. export interface Resolvers<Context = any> {
  2248. id?: IdResolver<string, any, Context>;
  2249. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2250. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2251. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2252. name?: NameResolver<string, any, Context>;
  2253. }
  2254. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2255. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2256. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2257. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2258. R,
  2259. Parent,
  2260. Context
  2261. >;
  2262. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2263. }
  2264. export namespace FacetCustomFieldsResolvers {
  2265. export interface Resolvers<Context = any> {
  2266. searchable?: SearchableResolver<boolean | null, any, Context>;
  2267. }
  2268. export type SearchableResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
  2269. R,
  2270. Parent,
  2271. Context
  2272. >;
  2273. }
  2274. export namespace OrderResolvers {
  2275. export interface Resolvers<Context = any> {
  2276. id?: IdResolver<string, any, Context>;
  2277. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2278. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2279. code?: CodeResolver<string, any, Context>;
  2280. customer?: CustomerResolver<Customer | null, any, Context>;
  2281. lines?: LinesResolver<OrderLine[], any, Context>;
  2282. adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
  2283. subTotalBeforeTax?: SubTotalBeforeTaxResolver<number, any, Context>;
  2284. subTotal?: SubTotalResolver<number, any, Context>;
  2285. totalBeforeTax?: TotalBeforeTaxResolver<number, any, Context>;
  2286. total?: TotalResolver<number, any, Context>;
  2287. }
  2288. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2289. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2290. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2291. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2292. export type CustomerResolver<R = Customer | null, Parent = any, Context = any> = Resolver<
  2293. R,
  2294. Parent,
  2295. Context
  2296. >;
  2297. export type LinesResolver<R = OrderLine[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2298. export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
  2299. R,
  2300. Parent,
  2301. Context
  2302. >;
  2303. export type SubTotalBeforeTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  2304. R,
  2305. Parent,
  2306. Context
  2307. >;
  2308. export type SubTotalResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2309. export type TotalBeforeTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  2310. R,
  2311. Parent,
  2312. Context
  2313. >;
  2314. export type TotalResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2315. }
  2316. export namespace OrderLineResolvers {
  2317. export interface Resolvers<Context = any> {
  2318. id?: IdResolver<string, any, Context>;
  2319. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2320. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2321. productVariant?: ProductVariantResolver<ProductVariant, any, Context>;
  2322. featuredAsset?: FeaturedAssetResolver<Asset | null, any, Context>;
  2323. unitPrice?: UnitPriceResolver<number, any, Context>;
  2324. unitPriceWithTax?: UnitPriceWithTaxResolver<number, any, Context>;
  2325. quantity?: QuantityResolver<number, any, Context>;
  2326. items?: ItemsResolver<OrderItem[], any, Context>;
  2327. totalPrice?: TotalPriceResolver<number, any, Context>;
  2328. adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
  2329. order?: OrderResolver<Order, any, Context>;
  2330. }
  2331. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2332. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2333. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2334. export type ProductVariantResolver<R = ProductVariant, Parent = any, Context = any> = Resolver<
  2335. R,
  2336. Parent,
  2337. Context
  2338. >;
  2339. export type FeaturedAssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  2340. R,
  2341. Parent,
  2342. Context
  2343. >;
  2344. export type UnitPriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2345. export type UnitPriceWithTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  2346. R,
  2347. Parent,
  2348. Context
  2349. >;
  2350. export type QuantityResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2351. export type ItemsResolver<R = OrderItem[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2352. export type TotalPriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2353. export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
  2354. R,
  2355. Parent,
  2356. Context
  2357. >;
  2358. export type OrderResolver<R = Order, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2359. }
  2360. export namespace ProductVariantResolvers {
  2361. export interface Resolvers<Context = any> {
  2362. id?: IdResolver<string, any, Context>;
  2363. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2364. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2365. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2366. sku?: SkuResolver<string, any, Context>;
  2367. name?: NameResolver<string, any, Context>;
  2368. price?: PriceResolver<number, any, Context>;
  2369. priceIncludesTax?: PriceIncludesTaxResolver<boolean, any, Context>;
  2370. priceWithTax?: PriceWithTaxResolver<number, any, Context>;
  2371. taxRateApplied?: TaxRateAppliedResolver<TaxRate, any, Context>;
  2372. taxCategory?: TaxCategoryResolver<TaxCategory, any, Context>;
  2373. options?: OptionsResolver<ProductOption[], any, Context>;
  2374. facetValues?: FacetValuesResolver<FacetValue[], any, Context>;
  2375. translations?: TranslationsResolver<ProductVariantTranslation[], any, Context>;
  2376. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2377. }
  2378. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2379. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2380. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2381. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2382. R,
  2383. Parent,
  2384. Context
  2385. >;
  2386. export type SkuResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2387. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2388. export type PriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2389. export type PriceIncludesTaxResolver<R = boolean, Parent = any, Context = any> = Resolver<
  2390. R,
  2391. Parent,
  2392. Context
  2393. >;
  2394. export type PriceWithTaxResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2395. export type TaxRateAppliedResolver<R = TaxRate, Parent = any, Context = any> = Resolver<
  2396. R,
  2397. Parent,
  2398. Context
  2399. >;
  2400. export type TaxCategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<
  2401. R,
  2402. Parent,
  2403. Context
  2404. >;
  2405. export type OptionsResolver<R = ProductOption[], Parent = any, Context = any> = Resolver<
  2406. R,
  2407. Parent,
  2408. Context
  2409. >;
  2410. export type FacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  2411. R,
  2412. Parent,
  2413. Context
  2414. >;
  2415. export type TranslationsResolver<R = ProductVariantTranslation[], Parent = any, Context = any> = Resolver<
  2416. R,
  2417. Parent,
  2418. Context
  2419. >;
  2420. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2421. R,
  2422. Parent,
  2423. Context
  2424. >;
  2425. }
  2426. export namespace TaxRateResolvers {
  2427. export interface Resolvers<Context = any> {
  2428. id?: IdResolver<string, any, Context>;
  2429. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2430. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2431. name?: NameResolver<string, any, Context>;
  2432. enabled?: EnabledResolver<boolean, any, Context>;
  2433. value?: ValueResolver<number, any, Context>;
  2434. category?: CategoryResolver<TaxCategory, any, Context>;
  2435. zone?: ZoneResolver<Zone, any, Context>;
  2436. customerGroup?: CustomerGroupResolver<CustomerGroup | null, any, Context>;
  2437. }
  2438. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2439. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2440. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2441. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2442. export type EnabledResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2443. export type ValueResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2444. export type CategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2445. export type ZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2446. export type CustomerGroupResolver<R = CustomerGroup | null, Parent = any, Context = any> = Resolver<
  2447. R,
  2448. Parent,
  2449. Context
  2450. >;
  2451. }
  2452. export namespace TaxCategoryResolvers {
  2453. export interface Resolvers<Context = any> {
  2454. id?: IdResolver<string, any, Context>;
  2455. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2456. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2457. name?: NameResolver<string, any, Context>;
  2458. }
  2459. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2460. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2461. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2462. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2463. }
  2464. export namespace ProductOptionResolvers {
  2465. export interface Resolvers<Context = any> {
  2466. id?: IdResolver<string, any, Context>;
  2467. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2468. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2469. languageCode?: LanguageCodeResolver<LanguageCode | null, any, Context>;
  2470. code?: CodeResolver<string | null, any, Context>;
  2471. name?: NameResolver<string | null, any, Context>;
  2472. translations?: TranslationsResolver<ProductOptionTranslation[], any, Context>;
  2473. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2474. }
  2475. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2476. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2477. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2478. export type LanguageCodeResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
  2479. R,
  2480. Parent,
  2481. Context
  2482. >;
  2483. export type CodeResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2484. export type NameResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2485. export type TranslationsResolver<R = ProductOptionTranslation[], Parent = any, Context = any> = Resolver<
  2486. R,
  2487. Parent,
  2488. Context
  2489. >;
  2490. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2491. R,
  2492. Parent,
  2493. Context
  2494. >;
  2495. }
  2496. export namespace ProductOptionTranslationResolvers {
  2497. export interface Resolvers<Context = any> {
  2498. id?: IdResolver<string, any, Context>;
  2499. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2500. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2501. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2502. name?: NameResolver<string, any, Context>;
  2503. }
  2504. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2505. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2506. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2507. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2508. R,
  2509. Parent,
  2510. Context
  2511. >;
  2512. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2513. }
  2514. export namespace ProductVariantTranslationResolvers {
  2515. export interface Resolvers<Context = any> {
  2516. id?: IdResolver<string, any, Context>;
  2517. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2518. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2519. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2520. name?: NameResolver<string, any, Context>;
  2521. }
  2522. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2523. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2524. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2525. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2526. R,
  2527. Parent,
  2528. Context
  2529. >;
  2530. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2531. }
  2532. export namespace OrderItemResolvers {
  2533. export interface Resolvers<Context = any> {
  2534. id?: IdResolver<string, any, Context>;
  2535. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2536. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2537. unitPrice?: UnitPriceResolver<number, any, Context>;
  2538. unitPriceWithTax?: UnitPriceWithTaxResolver<number, any, Context>;
  2539. unitPriceIncludesTax?: UnitPriceIncludesTaxResolver<boolean, any, Context>;
  2540. taxRate?: TaxRateResolver<number, any, Context>;
  2541. adjustments?: AdjustmentsResolver<Adjustment[], any, Context>;
  2542. }
  2543. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2544. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2545. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2546. export type UnitPriceResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2547. export type UnitPriceWithTaxResolver<R = number, Parent = any, Context = any> = Resolver<
  2548. R,
  2549. Parent,
  2550. Context
  2551. >;
  2552. export type UnitPriceIncludesTaxResolver<R = boolean, Parent = any, Context = any> = Resolver<
  2553. R,
  2554. Parent,
  2555. Context
  2556. >;
  2557. export type TaxRateResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2558. export type AdjustmentsResolver<R = Adjustment[], Parent = any, Context = any> = Resolver<
  2559. R,
  2560. Parent,
  2561. Context
  2562. >;
  2563. }
  2564. export namespace AdjustmentResolvers {
  2565. export interface Resolvers<Context = any> {
  2566. adjustmentSource?: AdjustmentSourceResolver<string, any, Context>;
  2567. type?: TypeResolver<AdjustmentType, any, Context>;
  2568. description?: DescriptionResolver<string, any, Context>;
  2569. amount?: AmountResolver<number, any, Context>;
  2570. }
  2571. export type AdjustmentSourceResolver<R = string, Parent = any, Context = any> = Resolver<
  2572. R,
  2573. Parent,
  2574. Context
  2575. >;
  2576. export type TypeResolver<R = AdjustmentType, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2577. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2578. export type AmountResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2579. }
  2580. export namespace OrderListResolvers {
  2581. export interface Resolvers<Context = any> {
  2582. items?: ItemsResolver<Order[], any, Context>;
  2583. totalItems?: TotalItemsResolver<number, any, Context>;
  2584. }
  2585. export type ItemsResolver<R = Order[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2586. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2587. }
  2588. export namespace ProductOptionGroupResolvers {
  2589. export interface Resolvers<Context = any> {
  2590. id?: IdResolver<string, any, Context>;
  2591. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2592. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2593. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2594. code?: CodeResolver<string, any, Context>;
  2595. name?: NameResolver<string, any, Context>;
  2596. options?: OptionsResolver<ProductOption[], any, Context>;
  2597. translations?: TranslationsResolver<ProductOptionGroupTranslation[], any, Context>;
  2598. customFields?: CustomFieldsResolver<Json | null, any, Context>;
  2599. }
  2600. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2601. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2602. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2603. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2604. R,
  2605. Parent,
  2606. Context
  2607. >;
  2608. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2609. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2610. export type OptionsResolver<R = ProductOption[], Parent = any, Context = any> = Resolver<
  2611. R,
  2612. Parent,
  2613. Context
  2614. >;
  2615. export type TranslationsResolver<
  2616. R = ProductOptionGroupTranslation[],
  2617. Parent = any,
  2618. Context = any
  2619. > = Resolver<R, Parent, Context>;
  2620. export type CustomFieldsResolver<R = Json | null, Parent = any, Context = any> = Resolver<
  2621. R,
  2622. Parent,
  2623. Context
  2624. >;
  2625. }
  2626. export namespace ProductOptionGroupTranslationResolvers {
  2627. export interface Resolvers<Context = any> {
  2628. id?: IdResolver<string, any, Context>;
  2629. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2630. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2631. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2632. name?: NameResolver<string, any, Context>;
  2633. }
  2634. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2635. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2636. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2637. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2638. R,
  2639. Parent,
  2640. Context
  2641. >;
  2642. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2643. }
  2644. export namespace ProductListResolvers {
  2645. export interface Resolvers<Context = any> {
  2646. items?: ItemsResolver<Product[], any, Context>;
  2647. totalItems?: TotalItemsResolver<number, any, Context>;
  2648. }
  2649. export type ItemsResolver<R = Product[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2650. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2651. }
  2652. export namespace ProductResolvers {
  2653. export interface Resolvers<Context = any> {
  2654. id?: IdResolver<string, any, Context>;
  2655. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2656. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2657. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2658. name?: NameResolver<string, any, Context>;
  2659. slug?: SlugResolver<string, any, Context>;
  2660. description?: DescriptionResolver<string, any, Context>;
  2661. featuredAsset?: FeaturedAssetResolver<Asset | null, any, Context>;
  2662. assets?: AssetsResolver<Asset[], any, Context>;
  2663. variants?: VariantsResolver<ProductVariant[], any, Context>;
  2664. optionGroups?: OptionGroupsResolver<ProductOptionGroup[], any, Context>;
  2665. translations?: TranslationsResolver<ProductTranslation[], any, Context>;
  2666. customFields?: CustomFieldsResolver<ProductCustomFields | null, any, Context>;
  2667. }
  2668. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2669. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2670. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2671. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2672. R,
  2673. Parent,
  2674. Context
  2675. >;
  2676. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2677. export type SlugResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2678. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2679. export type FeaturedAssetResolver<R = Asset | null, Parent = any, Context = any> = Resolver<
  2680. R,
  2681. Parent,
  2682. Context
  2683. >;
  2684. export type AssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2685. export type VariantsResolver<R = ProductVariant[], Parent = any, Context = any> = Resolver<
  2686. R,
  2687. Parent,
  2688. Context
  2689. >;
  2690. export type OptionGroupsResolver<R = ProductOptionGroup[], Parent = any, Context = any> = Resolver<
  2691. R,
  2692. Parent,
  2693. Context
  2694. >;
  2695. export type TranslationsResolver<R = ProductTranslation[], Parent = any, Context = any> = Resolver<
  2696. R,
  2697. Parent,
  2698. Context
  2699. >;
  2700. export type CustomFieldsResolver<R = ProductCustomFields | null, Parent = any, Context = any> = Resolver<
  2701. R,
  2702. Parent,
  2703. Context
  2704. >;
  2705. }
  2706. export namespace ProductTranslationResolvers {
  2707. export interface Resolvers<Context = any> {
  2708. id?: IdResolver<string, any, Context>;
  2709. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2710. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2711. languageCode?: LanguageCodeResolver<LanguageCode, any, Context>;
  2712. name?: NameResolver<string, any, Context>;
  2713. slug?: SlugResolver<string, any, Context>;
  2714. description?: DescriptionResolver<string, any, Context>;
  2715. customFields?: CustomFieldsResolver<ProductTranslationCustomFields | null, any, Context>;
  2716. }
  2717. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2718. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2719. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2720. export type LanguageCodeResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2721. R,
  2722. Parent,
  2723. Context
  2724. >;
  2725. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2726. export type SlugResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2727. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2728. export type CustomFieldsResolver<
  2729. R = ProductTranslationCustomFields | null,
  2730. Parent = any,
  2731. Context = any
  2732. > = Resolver<R, Parent, Context>;
  2733. }
  2734. export namespace ProductTranslationCustomFieldsResolvers {
  2735. export interface Resolvers<Context = any> {
  2736. nickname?: NicknameResolver<string | null, any, Context>;
  2737. }
  2738. export type NicknameResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2739. R,
  2740. Parent,
  2741. Context
  2742. >;
  2743. }
  2744. export namespace ProductCustomFieldsResolvers {
  2745. export interface Resolvers<Context = any> {
  2746. infoUrl?: InfoUrlResolver<string | null, any, Context>;
  2747. downloadable?: DownloadableResolver<boolean | null, any, Context>;
  2748. nickname?: NicknameResolver<string | null, any, Context>;
  2749. }
  2750. export type InfoUrlResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2751. R,
  2752. Parent,
  2753. Context
  2754. >;
  2755. export type DownloadableResolver<R = boolean | null, Parent = any, Context = any> = Resolver<
  2756. R,
  2757. Parent,
  2758. Context
  2759. >;
  2760. export type NicknameResolver<R = string | null, Parent = any, Context = any> = Resolver<
  2761. R,
  2762. Parent,
  2763. Context
  2764. >;
  2765. }
  2766. export namespace PromotionResolvers {
  2767. export interface Resolvers<Context = any> {
  2768. id?: IdResolver<string, any, Context>;
  2769. createdAt?: CreatedAtResolver<DateTime, any, Context>;
  2770. updatedAt?: UpdatedAtResolver<DateTime, any, Context>;
  2771. name?: NameResolver<string, any, Context>;
  2772. enabled?: EnabledResolver<boolean, any, Context>;
  2773. conditions?: ConditionsResolver<AdjustmentOperation[], any, Context>;
  2774. actions?: ActionsResolver<AdjustmentOperation[], any, Context>;
  2775. }
  2776. export type IdResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2777. export type CreatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2778. export type UpdatedAtResolver<R = DateTime, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2779. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2780. export type EnabledResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2781. export type ConditionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  2782. R,
  2783. Parent,
  2784. Context
  2785. >;
  2786. export type ActionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  2787. R,
  2788. Parent,
  2789. Context
  2790. >;
  2791. }
  2792. export namespace AdjustmentOperationResolvers {
  2793. export interface Resolvers<Context = any> {
  2794. code?: CodeResolver<string, any, Context>;
  2795. args?: ArgsResolver<AdjustmentArg[], any, Context>;
  2796. description?: DescriptionResolver<string, any, Context>;
  2797. }
  2798. export type CodeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2799. export type ArgsResolver<R = AdjustmentArg[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2800. export type DescriptionResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2801. }
  2802. export namespace AdjustmentArgResolvers {
  2803. export interface Resolvers<Context = any> {
  2804. name?: NameResolver<string, any, Context>;
  2805. type?: TypeResolver<string, any, Context>;
  2806. value?: ValueResolver<string | null, any, Context>;
  2807. }
  2808. export type NameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2809. export type TypeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2810. export type ValueResolver<R = string | null, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2811. }
  2812. export namespace PromotionListResolvers {
  2813. export interface Resolvers<Context = any> {
  2814. items?: ItemsResolver<Promotion[], any, Context>;
  2815. totalItems?: TotalItemsResolver<number, any, Context>;
  2816. }
  2817. export type ItemsResolver<R = Promotion[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2818. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2819. }
  2820. export namespace AdjustmentOperationsResolvers {
  2821. export interface Resolvers<Context = any> {
  2822. conditions?: ConditionsResolver<AdjustmentOperation[], any, Context>;
  2823. actions?: ActionsResolver<AdjustmentOperation[], any, Context>;
  2824. }
  2825. export type ConditionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  2826. R,
  2827. Parent,
  2828. Context
  2829. >;
  2830. export type ActionsResolver<R = AdjustmentOperation[], Parent = any, Context = any> = Resolver<
  2831. R,
  2832. Parent,
  2833. Context
  2834. >;
  2835. }
  2836. export namespace RoleListResolvers {
  2837. export interface Resolvers<Context = any> {
  2838. items?: ItemsResolver<Role[], any, Context>;
  2839. totalItems?: TotalItemsResolver<number, any, Context>;
  2840. }
  2841. export type ItemsResolver<R = Role[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2842. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2843. }
  2844. export namespace TaxRateListResolvers {
  2845. export interface Resolvers<Context = any> {
  2846. items?: ItemsResolver<TaxRate[], any, Context>;
  2847. totalItems?: TotalItemsResolver<number, any, Context>;
  2848. }
  2849. export type ItemsResolver<R = TaxRate[], Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2850. export type TotalItemsResolver<R = number, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2851. }
  2852. export namespace NetworkStatusResolvers {
  2853. export interface Resolvers<Context = any> {
  2854. inFlightRequests?: InFlightRequestsResolver<number, any, Context>;
  2855. }
  2856. export type InFlightRequestsResolver<R = number, Parent = any, Context = any> = Resolver<
  2857. R,
  2858. Parent,
  2859. Context
  2860. >;
  2861. }
  2862. export namespace UserStatusResolvers {
  2863. export interface Resolvers<Context = any> {
  2864. username?: UsernameResolver<string, any, Context>;
  2865. isLoggedIn?: IsLoggedInResolver<boolean, any, Context>;
  2866. loginTime?: LoginTimeResolver<string, any, Context>;
  2867. }
  2868. export type UsernameResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2869. export type IsLoggedInResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2870. export type LoginTimeResolver<R = string, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2871. }
  2872. export namespace UiStateResolvers {
  2873. export interface Resolvers<Context = any> {
  2874. language?: LanguageResolver<LanguageCode, any, Context>;
  2875. }
  2876. export type LanguageResolver<R = LanguageCode, Parent = any, Context = any> = Resolver<
  2877. R,
  2878. Parent,
  2879. Context
  2880. >;
  2881. }
  2882. export namespace MutationResolvers {
  2883. export interface Resolvers<Context = any> {
  2884. createAdministrator?: CreateAdministratorResolver<Administrator, any, Context>;
  2885. updateAdministrator?: UpdateAdministratorResolver<Administrator, any, Context>;
  2886. assignRoleToAdministrator?: AssignRoleToAdministratorResolver<Administrator, any, Context>;
  2887. createAssets?: CreateAssetsResolver<Asset[], any, Context>;
  2888. login?: LoginResolver<LoginResult, any, Context>;
  2889. logout?: LogoutResolver<boolean, any, Context>;
  2890. createChannel?: CreateChannelResolver<Channel, any, Context>;
  2891. updateChannel?: UpdateChannelResolver<Channel, any, Context>;
  2892. createCountry?: CreateCountryResolver<Country, any, Context>;
  2893. updateCountry?: UpdateCountryResolver<Country, any, Context>;
  2894. createCustomerGroup?: CreateCustomerGroupResolver<CustomerGroup, any, Context>;
  2895. updateCustomerGroup?: UpdateCustomerGroupResolver<CustomerGroup, any, Context>;
  2896. addCustomersToGroup?: AddCustomersToGroupResolver<CustomerGroup, any, Context>;
  2897. removeCustomersFromGroup?: RemoveCustomersFromGroupResolver<CustomerGroup, any, Context>;
  2898. createCustomer?: CreateCustomerResolver<Customer, any, Context>;
  2899. createCustomerAddress?: CreateCustomerAddressResolver<Address, any, Context>;
  2900. createFacet?: CreateFacetResolver<Facet, any, Context>;
  2901. updateFacet?: UpdateFacetResolver<Facet, any, Context>;
  2902. createFacetValues?: CreateFacetValuesResolver<FacetValue[], any, Context>;
  2903. updateFacetValues?: UpdateFacetValuesResolver<FacetValue[], any, Context>;
  2904. addItemToOrder?: AddItemToOrderResolver<Order | null, any, Context>;
  2905. removeItemFromOrder?: RemoveItemFromOrderResolver<Order | null, any, Context>;
  2906. adjustItemQuantity?: AdjustItemQuantityResolver<Order | null, any, Context>;
  2907. createProductOptionGroup?: CreateProductOptionGroupResolver<ProductOptionGroup, any, Context>;
  2908. updateProductOptionGroup?: UpdateProductOptionGroupResolver<ProductOptionGroup, any, Context>;
  2909. createProduct?: CreateProductResolver<Product, any, Context>;
  2910. updateProduct?: UpdateProductResolver<Product, any, Context>;
  2911. addOptionGroupToProduct?: AddOptionGroupToProductResolver<Product, any, Context>;
  2912. removeOptionGroupFromProduct?: RemoveOptionGroupFromProductResolver<Product, any, Context>;
  2913. generateVariantsForProduct?: GenerateVariantsForProductResolver<Product, any, Context>;
  2914. updateProductVariants?: UpdateProductVariantsResolver<(ProductVariant | null)[], any, Context>;
  2915. applyFacetValuesToProductVariants?: ApplyFacetValuesToProductVariantsResolver<
  2916. ProductVariant[],
  2917. any,
  2918. Context
  2919. >;
  2920. createPromotion?: CreatePromotionResolver<Promotion, any, Context>;
  2921. updatePromotion?: UpdatePromotionResolver<Promotion, any, Context>;
  2922. createRole?: CreateRoleResolver<Role, any, Context>;
  2923. updateRole?: UpdateRoleResolver<Role, any, Context>;
  2924. createTaxCategory?: CreateTaxCategoryResolver<TaxCategory, any, Context>;
  2925. updateTaxCategory?: UpdateTaxCategoryResolver<TaxCategory, any, Context>;
  2926. createTaxRate?: CreateTaxRateResolver<TaxRate, any, Context>;
  2927. updateTaxRate?: UpdateTaxRateResolver<TaxRate, any, Context>;
  2928. createZone?: CreateZoneResolver<Zone, any, Context>;
  2929. updateZone?: UpdateZoneResolver<Zone, any, Context>;
  2930. addMembersToZone?: AddMembersToZoneResolver<Zone, any, Context>;
  2931. removeMembersFromZone?: RemoveMembersFromZoneResolver<Zone, any, Context>;
  2932. requestStarted?: RequestStartedResolver<number, any, Context>;
  2933. requestCompleted?: RequestCompletedResolver<number, any, Context>;
  2934. setAsLoggedIn?: SetAsLoggedInResolver<UserStatus, any, Context>;
  2935. setAsLoggedOut?: SetAsLoggedOutResolver<UserStatus, any, Context>;
  2936. setUiLanguage?: SetUiLanguageResolver<LanguageCode | null, any, Context>;
  2937. }
  2938. export type CreateAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
  2939. R,
  2940. Parent,
  2941. Context,
  2942. CreateAdministratorArgs
  2943. >;
  2944. export interface CreateAdministratorArgs {
  2945. input: CreateAdministratorInput;
  2946. }
  2947. export type UpdateAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
  2948. R,
  2949. Parent,
  2950. Context,
  2951. UpdateAdministratorArgs
  2952. >;
  2953. export interface UpdateAdministratorArgs {
  2954. input: UpdateAdministratorInput;
  2955. }
  2956. export type AssignRoleToAdministratorResolver<R = Administrator, Parent = any, Context = any> = Resolver<
  2957. R,
  2958. Parent,
  2959. Context,
  2960. AssignRoleToAdministratorArgs
  2961. >;
  2962. export interface AssignRoleToAdministratorArgs {
  2963. administratorId: string;
  2964. roleId: string;
  2965. }
  2966. export type CreateAssetsResolver<R = Asset[], Parent = any, Context = any> = Resolver<
  2967. R,
  2968. Parent,
  2969. Context,
  2970. CreateAssetsArgs
  2971. >;
  2972. export interface CreateAssetsArgs {
  2973. input: CreateAssetInput[];
  2974. }
  2975. export type LoginResolver<R = LoginResult, Parent = any, Context = any> = Resolver<
  2976. R,
  2977. Parent,
  2978. Context,
  2979. LoginArgs
  2980. >;
  2981. export interface LoginArgs {
  2982. username: string;
  2983. password: string;
  2984. rememberMe?: boolean | null;
  2985. }
  2986. export type LogoutResolver<R = boolean, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  2987. export type CreateChannelResolver<R = Channel, Parent = any, Context = any> = Resolver<
  2988. R,
  2989. Parent,
  2990. Context,
  2991. CreateChannelArgs
  2992. >;
  2993. export interface CreateChannelArgs {
  2994. input: CreateChannelInput;
  2995. }
  2996. export type UpdateChannelResolver<R = Channel, Parent = any, Context = any> = Resolver<
  2997. R,
  2998. Parent,
  2999. Context,
  3000. UpdateChannelArgs
  3001. >;
  3002. export interface UpdateChannelArgs {
  3003. input: UpdateChannelInput;
  3004. }
  3005. export type CreateCountryResolver<R = Country, Parent = any, Context = any> = Resolver<
  3006. R,
  3007. Parent,
  3008. Context,
  3009. CreateCountryArgs
  3010. >;
  3011. export interface CreateCountryArgs {
  3012. input: CreateCountryInput;
  3013. }
  3014. export type UpdateCountryResolver<R = Country, Parent = any, Context = any> = Resolver<
  3015. R,
  3016. Parent,
  3017. Context,
  3018. UpdateCountryArgs
  3019. >;
  3020. export interface UpdateCountryArgs {
  3021. input: UpdateCountryInput;
  3022. }
  3023. export type CreateCustomerGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  3024. R,
  3025. Parent,
  3026. Context,
  3027. CreateCustomerGroupArgs
  3028. >;
  3029. export interface CreateCustomerGroupArgs {
  3030. input: CreateCustomerGroupInput;
  3031. }
  3032. export type UpdateCustomerGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  3033. R,
  3034. Parent,
  3035. Context,
  3036. UpdateCustomerGroupArgs
  3037. >;
  3038. export interface UpdateCustomerGroupArgs {
  3039. input: UpdateCustomerGroupInput;
  3040. }
  3041. export type AddCustomersToGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  3042. R,
  3043. Parent,
  3044. Context,
  3045. AddCustomersToGroupArgs
  3046. >;
  3047. export interface AddCustomersToGroupArgs {
  3048. customerGroupId: string;
  3049. customerIds: string[];
  3050. }
  3051. export type RemoveCustomersFromGroupResolver<R = CustomerGroup, Parent = any, Context = any> = Resolver<
  3052. R,
  3053. Parent,
  3054. Context,
  3055. RemoveCustomersFromGroupArgs
  3056. >;
  3057. export interface RemoveCustomersFromGroupArgs {
  3058. customerGroupId: string;
  3059. customerIds: string[];
  3060. }
  3061. export type CreateCustomerResolver<R = Customer, Parent = any, Context = any> = Resolver<
  3062. R,
  3063. Parent,
  3064. Context,
  3065. CreateCustomerArgs
  3066. >;
  3067. export interface CreateCustomerArgs {
  3068. input: CreateCustomerInput;
  3069. password?: string | null;
  3070. }
  3071. export type CreateCustomerAddressResolver<R = Address, Parent = any, Context = any> = Resolver<
  3072. R,
  3073. Parent,
  3074. Context,
  3075. CreateCustomerAddressArgs
  3076. >;
  3077. export interface CreateCustomerAddressArgs {
  3078. customerId: string;
  3079. input: CreateAddressInput;
  3080. }
  3081. export type CreateFacetResolver<R = Facet, Parent = any, Context = any> = Resolver<
  3082. R,
  3083. Parent,
  3084. Context,
  3085. CreateFacetArgs
  3086. >;
  3087. export interface CreateFacetArgs {
  3088. input: CreateFacetInput;
  3089. }
  3090. export type UpdateFacetResolver<R = Facet, Parent = any, Context = any> = Resolver<
  3091. R,
  3092. Parent,
  3093. Context,
  3094. UpdateFacetArgs
  3095. >;
  3096. export interface UpdateFacetArgs {
  3097. input: UpdateFacetInput;
  3098. }
  3099. export type CreateFacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  3100. R,
  3101. Parent,
  3102. Context,
  3103. CreateFacetValuesArgs
  3104. >;
  3105. export interface CreateFacetValuesArgs {
  3106. input: CreateFacetValueInput[];
  3107. }
  3108. export type UpdateFacetValuesResolver<R = FacetValue[], Parent = any, Context = any> = Resolver<
  3109. R,
  3110. Parent,
  3111. Context,
  3112. UpdateFacetValuesArgs
  3113. >;
  3114. export interface UpdateFacetValuesArgs {
  3115. input: UpdateFacetValueInput[];
  3116. }
  3117. export type AddItemToOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  3118. R,
  3119. Parent,
  3120. Context,
  3121. AddItemToOrderArgs
  3122. >;
  3123. export interface AddItemToOrderArgs {
  3124. productVariantId: string;
  3125. quantity: number;
  3126. }
  3127. export type RemoveItemFromOrderResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  3128. R,
  3129. Parent,
  3130. Context,
  3131. RemoveItemFromOrderArgs
  3132. >;
  3133. export interface RemoveItemFromOrderArgs {
  3134. orderItemId: string;
  3135. }
  3136. export type AdjustItemQuantityResolver<R = Order | null, Parent = any, Context = any> = Resolver<
  3137. R,
  3138. Parent,
  3139. Context,
  3140. AdjustItemQuantityArgs
  3141. >;
  3142. export interface AdjustItemQuantityArgs {
  3143. orderItemId: string;
  3144. quantity: number;
  3145. }
  3146. export type CreateProductOptionGroupResolver<
  3147. R = ProductOptionGroup,
  3148. Parent = any,
  3149. Context = any
  3150. > = Resolver<R, Parent, Context, CreateProductOptionGroupArgs>;
  3151. export interface CreateProductOptionGroupArgs {
  3152. input: CreateProductOptionGroupInput;
  3153. }
  3154. export type UpdateProductOptionGroupResolver<
  3155. R = ProductOptionGroup,
  3156. Parent = any,
  3157. Context = any
  3158. > = Resolver<R, Parent, Context, UpdateProductOptionGroupArgs>;
  3159. export interface UpdateProductOptionGroupArgs {
  3160. input: UpdateProductOptionGroupInput;
  3161. }
  3162. export type CreateProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  3163. R,
  3164. Parent,
  3165. Context,
  3166. CreateProductArgs
  3167. >;
  3168. export interface CreateProductArgs {
  3169. input: CreateProductInput;
  3170. }
  3171. export type UpdateProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  3172. R,
  3173. Parent,
  3174. Context,
  3175. UpdateProductArgs
  3176. >;
  3177. export interface UpdateProductArgs {
  3178. input: UpdateProductInput;
  3179. }
  3180. export type AddOptionGroupToProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  3181. R,
  3182. Parent,
  3183. Context,
  3184. AddOptionGroupToProductArgs
  3185. >;
  3186. export interface AddOptionGroupToProductArgs {
  3187. productId: string;
  3188. optionGroupId: string;
  3189. }
  3190. export type RemoveOptionGroupFromProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  3191. R,
  3192. Parent,
  3193. Context,
  3194. RemoveOptionGroupFromProductArgs
  3195. >;
  3196. export interface RemoveOptionGroupFromProductArgs {
  3197. productId: string;
  3198. optionGroupId: string;
  3199. }
  3200. export type GenerateVariantsForProductResolver<R = Product, Parent = any, Context = any> = Resolver<
  3201. R,
  3202. Parent,
  3203. Context,
  3204. GenerateVariantsForProductArgs
  3205. >;
  3206. export interface GenerateVariantsForProductArgs {
  3207. productId: string;
  3208. defaultTaxCategoryId?: string | null;
  3209. defaultPrice?: number | null;
  3210. defaultSku?: string | null;
  3211. }
  3212. export type UpdateProductVariantsResolver<
  3213. R = (ProductVariant | null)[],
  3214. Parent = any,
  3215. Context = any
  3216. > = Resolver<R, Parent, Context, UpdateProductVariantsArgs>;
  3217. export interface UpdateProductVariantsArgs {
  3218. input: UpdateProductVariantInput[];
  3219. }
  3220. export type ApplyFacetValuesToProductVariantsResolver<
  3221. R = ProductVariant[],
  3222. Parent = any,
  3223. Context = any
  3224. > = Resolver<R, Parent, Context, ApplyFacetValuesToProductVariantsArgs>;
  3225. export interface ApplyFacetValuesToProductVariantsArgs {
  3226. facetValueIds: string[];
  3227. productVariantIds: string[];
  3228. }
  3229. export type CreatePromotionResolver<R = Promotion, Parent = any, Context = any> = Resolver<
  3230. R,
  3231. Parent,
  3232. Context,
  3233. CreatePromotionArgs
  3234. >;
  3235. export interface CreatePromotionArgs {
  3236. input: CreatePromotionInput;
  3237. }
  3238. export type UpdatePromotionResolver<R = Promotion, Parent = any, Context = any> = Resolver<
  3239. R,
  3240. Parent,
  3241. Context,
  3242. UpdatePromotionArgs
  3243. >;
  3244. export interface UpdatePromotionArgs {
  3245. input: UpdatePromotionInput;
  3246. }
  3247. export type CreateRoleResolver<R = Role, Parent = any, Context = any> = Resolver<
  3248. R,
  3249. Parent,
  3250. Context,
  3251. CreateRoleArgs
  3252. >;
  3253. export interface CreateRoleArgs {
  3254. input: CreateRoleInput;
  3255. }
  3256. export type UpdateRoleResolver<R = Role, Parent = any, Context = any> = Resolver<
  3257. R,
  3258. Parent,
  3259. Context,
  3260. UpdateRoleArgs
  3261. >;
  3262. export interface UpdateRoleArgs {
  3263. input: UpdateRoleInput;
  3264. }
  3265. export type CreateTaxCategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<
  3266. R,
  3267. Parent,
  3268. Context,
  3269. CreateTaxCategoryArgs
  3270. >;
  3271. export interface CreateTaxCategoryArgs {
  3272. input: CreateTaxCategoryInput;
  3273. }
  3274. export type UpdateTaxCategoryResolver<R = TaxCategory, Parent = any, Context = any> = Resolver<
  3275. R,
  3276. Parent,
  3277. Context,
  3278. UpdateTaxCategoryArgs
  3279. >;
  3280. export interface UpdateTaxCategoryArgs {
  3281. input: UpdateTaxCategoryInput;
  3282. }
  3283. export type CreateTaxRateResolver<R = TaxRate, Parent = any, Context = any> = Resolver<
  3284. R,
  3285. Parent,
  3286. Context,
  3287. CreateTaxRateArgs
  3288. >;
  3289. export interface CreateTaxRateArgs {
  3290. input: CreateTaxRateInput;
  3291. }
  3292. export type UpdateTaxRateResolver<R = TaxRate, Parent = any, Context = any> = Resolver<
  3293. R,
  3294. Parent,
  3295. Context,
  3296. UpdateTaxRateArgs
  3297. >;
  3298. export interface UpdateTaxRateArgs {
  3299. input: UpdateTaxRateInput;
  3300. }
  3301. export type CreateZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  3302. R,
  3303. Parent,
  3304. Context,
  3305. CreateZoneArgs
  3306. >;
  3307. export interface CreateZoneArgs {
  3308. input: CreateZoneInput;
  3309. }
  3310. export type UpdateZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  3311. R,
  3312. Parent,
  3313. Context,
  3314. UpdateZoneArgs
  3315. >;
  3316. export interface UpdateZoneArgs {
  3317. input: UpdateZoneInput;
  3318. }
  3319. export type AddMembersToZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  3320. R,
  3321. Parent,
  3322. Context,
  3323. AddMembersToZoneArgs
  3324. >;
  3325. export interface AddMembersToZoneArgs {
  3326. zoneId: string;
  3327. memberIds: string[];
  3328. }
  3329. export type RemoveMembersFromZoneResolver<R = Zone, Parent = any, Context = any> = Resolver<
  3330. R,
  3331. Parent,
  3332. Context,
  3333. RemoveMembersFromZoneArgs
  3334. >;
  3335. export interface RemoveMembersFromZoneArgs {
  3336. zoneId: string;
  3337. memberIds: string[];
  3338. }
  3339. export type RequestStartedResolver<R = number, Parent = any, Context = any> = Resolver<
  3340. R,
  3341. Parent,
  3342. Context
  3343. >;
  3344. export type RequestCompletedResolver<R = number, Parent = any, Context = any> = Resolver<
  3345. R,
  3346. Parent,
  3347. Context
  3348. >;
  3349. export type SetAsLoggedInResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
  3350. R,
  3351. Parent,
  3352. Context,
  3353. SetAsLoggedInArgs
  3354. >;
  3355. export interface SetAsLoggedInArgs {
  3356. username: string;
  3357. loginTime: string;
  3358. }
  3359. export type SetAsLoggedOutResolver<R = UserStatus, Parent = any, Context = any> = Resolver<
  3360. R,
  3361. Parent,
  3362. Context
  3363. >;
  3364. export type SetUiLanguageResolver<R = LanguageCode | null, Parent = any, Context = any> = Resolver<
  3365. R,
  3366. Parent,
  3367. Context,
  3368. SetUiLanguageArgs
  3369. >;
  3370. export interface SetUiLanguageArgs {
  3371. languageCode?: LanguageCode | null;
  3372. }
  3373. }
  3374. export namespace LoginResultResolvers {
  3375. export interface Resolvers<Context = any> {
  3376. user?: UserResolver<CurrentUser, any, Context>;
  3377. }
  3378. export type UserResolver<R = CurrentUser, Parent = any, Context = any> = Resolver<R, Parent, Context>;
  3379. }
  3380. export namespace GetAdministrators {
  3381. export type Variables = {
  3382. options?: AdministratorListOptions | null;
  3383. };
  3384. export type Query = {
  3385. __typename?: 'Query';
  3386. administrators: Administrators;
  3387. };
  3388. export type Administrators = {
  3389. __typename?: 'AdministratorList';
  3390. items: Items[];
  3391. totalItems: number;
  3392. };
  3393. export type Items = Administrator.Fragment;
  3394. }
  3395. export namespace GetAdministrator {
  3396. export type Variables = {
  3397. id: string;
  3398. };
  3399. export type Query = {
  3400. __typename?: 'Query';
  3401. administrator?: Administrator | null;
  3402. };
  3403. export type Administrator = Administrator.Fragment;
  3404. }
  3405. export namespace CreateAdministrator {
  3406. export type Variables = {
  3407. input: CreateAdministratorInput;
  3408. };
  3409. export type Mutation = {
  3410. __typename?: 'Mutation';
  3411. createAdministrator: CreateAdministrator;
  3412. };
  3413. export type CreateAdministrator = Administrator.Fragment;
  3414. }
  3415. export namespace UpdateAdministrator {
  3416. export type Variables = {
  3417. input: UpdateAdministratorInput;
  3418. };
  3419. export type Mutation = {
  3420. __typename?: 'Mutation';
  3421. updateAdministrator: UpdateAdministrator;
  3422. };
  3423. export type UpdateAdministrator = Administrator.Fragment;
  3424. }
  3425. export namespace GetRoles {
  3426. export type Variables = {
  3427. options?: RoleListOptions | null;
  3428. };
  3429. export type Query = {
  3430. __typename?: 'Query';
  3431. roles: Roles;
  3432. };
  3433. export type Roles = {
  3434. __typename?: 'RoleList';
  3435. items: Items[];
  3436. totalItems: number;
  3437. };
  3438. export type Items = Role.Fragment;
  3439. }
  3440. export namespace GetRole {
  3441. export type Variables = {
  3442. id: string;
  3443. };
  3444. export type Query = {
  3445. __typename?: 'Query';
  3446. role?: Role | null;
  3447. };
  3448. export type Role = Role.Fragment;
  3449. }
  3450. export namespace CreateRole {
  3451. export type Variables = {
  3452. input: CreateRoleInput;
  3453. };
  3454. export type Mutation = {
  3455. __typename?: 'Mutation';
  3456. createRole: CreateRole;
  3457. };
  3458. export type CreateRole = Role.Fragment;
  3459. }
  3460. export namespace UpdateRole {
  3461. export type Variables = {
  3462. input: UpdateRoleInput;
  3463. };
  3464. export type Mutation = {
  3465. __typename?: 'Mutation';
  3466. updateRole: UpdateRole;
  3467. };
  3468. export type UpdateRole = Role.Fragment;
  3469. }
  3470. export namespace AssignRoleToAdministrator {
  3471. export type Variables = {
  3472. administratorId: string;
  3473. roleId: string;
  3474. };
  3475. export type Mutation = {
  3476. __typename?: 'Mutation';
  3477. assignRoleToAdministrator: AssignRoleToAdministrator;
  3478. };
  3479. export type AssignRoleToAdministrator = Administrator.Fragment;
  3480. }
  3481. export namespace AttemptLogin {
  3482. export type Variables = {
  3483. username: string;
  3484. password: string;
  3485. rememberMe: boolean;
  3486. };
  3487. export type Mutation = {
  3488. __typename?: 'Mutation';
  3489. login: Login;
  3490. };
  3491. export type Login = {
  3492. __typename?: 'LoginResult';
  3493. user: User;
  3494. };
  3495. export type User = CurrentUser.Fragment;
  3496. }
  3497. export namespace LogOut {
  3498. export type Variables = {};
  3499. export type Mutation = {
  3500. __typename?: 'Mutation';
  3501. logout: boolean;
  3502. };
  3503. }
  3504. export namespace GetCurrentUser {
  3505. export type Variables = {};
  3506. export type Query = {
  3507. __typename?: 'Query';
  3508. me?: Me | null;
  3509. };
  3510. export type Me = CurrentUser.Fragment;
  3511. }
  3512. export namespace RequestStarted {
  3513. export type Variables = {};
  3514. export type Mutation = {
  3515. __typename?: 'Mutation';
  3516. requestStarted: number;
  3517. };
  3518. }
  3519. export namespace RequestCompleted {
  3520. export type Variables = {};
  3521. export type Mutation = {
  3522. __typename?: 'Mutation';
  3523. requestCompleted: number;
  3524. };
  3525. }
  3526. export namespace SetAsLoggedIn {
  3527. export type Variables = {
  3528. username: string;
  3529. loginTime: string;
  3530. };
  3531. export type Mutation = {
  3532. __typename?: 'Mutation';
  3533. setAsLoggedIn: SetAsLoggedIn;
  3534. };
  3535. export type SetAsLoggedIn = {
  3536. __typename?: 'UserStatus';
  3537. username: string;
  3538. isLoggedIn: boolean;
  3539. loginTime: string;
  3540. };
  3541. }
  3542. export namespace SetAsLoggedOut {
  3543. export type Variables = {};
  3544. export type Mutation = {
  3545. __typename?: 'Mutation';
  3546. setAsLoggedOut: SetAsLoggedOut;
  3547. };
  3548. export type SetAsLoggedOut = {
  3549. __typename?: 'UserStatus';
  3550. username: string;
  3551. isLoggedIn: boolean;
  3552. loginTime: string;
  3553. };
  3554. }
  3555. export namespace SetUiLanguage {
  3556. export type Variables = {
  3557. languageCode: LanguageCode;
  3558. };
  3559. export type Mutation = {
  3560. __typename?: 'Mutation';
  3561. setUiLanguage?: LanguageCode | null;
  3562. };
  3563. }
  3564. export namespace GetNetworkStatus {
  3565. export type Variables = {};
  3566. export type Query = {
  3567. __typename?: 'Query';
  3568. networkStatus: NetworkStatus;
  3569. };
  3570. export type NetworkStatus = {
  3571. __typename?: 'NetworkStatus';
  3572. inFlightRequests: number;
  3573. };
  3574. }
  3575. export namespace GetUserStatus {
  3576. export type Variables = {};
  3577. export type Query = {
  3578. __typename?: 'Query';
  3579. userStatus: UserStatus;
  3580. };
  3581. export type UserStatus = {
  3582. __typename?: 'UserStatus';
  3583. username: string;
  3584. isLoggedIn: boolean;
  3585. loginTime: string;
  3586. };
  3587. }
  3588. export namespace GetUiState {
  3589. export type Variables = {};
  3590. export type Query = {
  3591. __typename?: 'Query';
  3592. uiState: UiState;
  3593. };
  3594. export type UiState = {
  3595. __typename?: 'UiState';
  3596. language: LanguageCode;
  3597. };
  3598. }
  3599. export namespace GetServerConfig {
  3600. export type Variables = {};
  3601. export type Query = {
  3602. __typename?: 'Query';
  3603. config: Config;
  3604. };
  3605. export type Config = {
  3606. __typename?: 'Config';
  3607. customFields?: Json | null;
  3608. };
  3609. }
  3610. export namespace CreateFacet {
  3611. export type Variables = {
  3612. input: CreateFacetInput;
  3613. };
  3614. export type Mutation = {
  3615. __typename?: 'Mutation';
  3616. createFacet: CreateFacet;
  3617. };
  3618. export type CreateFacet = FacetWithValues.Fragment;
  3619. }
  3620. export namespace UpdateFacet {
  3621. export type Variables = {
  3622. input: UpdateFacetInput;
  3623. };
  3624. export type Mutation = {
  3625. __typename?: 'Mutation';
  3626. updateFacet: UpdateFacet;
  3627. };
  3628. export type UpdateFacet = FacetWithValues.Fragment;
  3629. }
  3630. export namespace CreateFacetValues {
  3631. export type Variables = {
  3632. input: CreateFacetValueInput[];
  3633. };
  3634. export type Mutation = {
  3635. __typename?: 'Mutation';
  3636. createFacetValues: CreateFacetValues[];
  3637. };
  3638. export type CreateFacetValues = FacetValue.Fragment;
  3639. }
  3640. export namespace UpdateFacetValues {
  3641. export type Variables = {
  3642. input: UpdateFacetValueInput[];
  3643. };
  3644. export type Mutation = {
  3645. __typename?: 'Mutation';
  3646. updateFacetValues: UpdateFacetValues[];
  3647. };
  3648. export type UpdateFacetValues = FacetValue.Fragment;
  3649. }
  3650. export namespace GetFacetList {
  3651. export type Variables = {
  3652. options?: FacetListOptions | null;
  3653. languageCode?: LanguageCode | null;
  3654. };
  3655. export type Query = {
  3656. __typename?: 'Query';
  3657. facets: Facets;
  3658. };
  3659. export type Facets = {
  3660. __typename?: 'FacetList';
  3661. items: Items[];
  3662. totalItems: number;
  3663. };
  3664. export type Items = FacetWithValues.Fragment;
  3665. }
  3666. export namespace GetFacetWithValues {
  3667. export type Variables = {
  3668. id: string;
  3669. languageCode?: LanguageCode | null;
  3670. };
  3671. export type Query = {
  3672. __typename?: 'Query';
  3673. facet?: Facet | null;
  3674. };
  3675. export type Facet = FacetWithValues.Fragment;
  3676. }
  3677. export namespace GetOrderList {
  3678. export type Variables = {
  3679. options?: OrderListOptions | null;
  3680. };
  3681. export type Query = {
  3682. __typename?: 'Query';
  3683. orders: Orders;
  3684. };
  3685. export type Orders = {
  3686. __typename?: 'OrderList';
  3687. items: Items[];
  3688. totalItems: number;
  3689. };
  3690. export type Items = Order.Fragment;
  3691. }
  3692. export namespace UpdateProduct {
  3693. export type Variables = {
  3694. input: UpdateProductInput;
  3695. };
  3696. export type Mutation = {
  3697. __typename?: 'Mutation';
  3698. updateProduct: UpdateProduct;
  3699. };
  3700. export type UpdateProduct = ProductWithVariants.Fragment;
  3701. }
  3702. export namespace CreateProduct {
  3703. export type Variables = {
  3704. input: CreateProductInput;
  3705. };
  3706. export type Mutation = {
  3707. __typename?: 'Mutation';
  3708. createProduct: CreateProduct;
  3709. };
  3710. export type CreateProduct = ProductWithVariants.Fragment;
  3711. }
  3712. export namespace GenerateProductVariants {
  3713. export type Variables = {
  3714. productId: string;
  3715. defaultTaxCategoryId?: string | null;
  3716. defaultPrice?: number | null;
  3717. defaultSku?: string | null;
  3718. };
  3719. export type Mutation = {
  3720. __typename?: 'Mutation';
  3721. generateVariantsForProduct: GenerateVariantsForProduct;
  3722. };
  3723. export type GenerateVariantsForProduct = ProductWithVariants.Fragment;
  3724. }
  3725. export namespace UpdateProductVariants {
  3726. export type Variables = {
  3727. input: UpdateProductVariantInput[];
  3728. };
  3729. export type Mutation = {
  3730. __typename?: 'Mutation';
  3731. updateProductVariants: (UpdateProductVariants | null)[];
  3732. };
  3733. export type UpdateProductVariants = ProductVariant.Fragment;
  3734. }
  3735. export namespace CreateProductOptionGroup {
  3736. export type Variables = {
  3737. input: CreateProductOptionGroupInput;
  3738. };
  3739. export type Mutation = {
  3740. __typename?: 'Mutation';
  3741. createProductOptionGroup: CreateProductOptionGroup;
  3742. };
  3743. export type CreateProductOptionGroup = ProductOptionGroup.Fragment;
  3744. }
  3745. export namespace AddOptionGroupToProduct {
  3746. export type Variables = {
  3747. productId: string;
  3748. optionGroupId: string;
  3749. };
  3750. export type Mutation = {
  3751. __typename?: 'Mutation';
  3752. addOptionGroupToProduct: AddOptionGroupToProduct;
  3753. };
  3754. export type AddOptionGroupToProduct = {
  3755. __typename?: 'Product';
  3756. id: string;
  3757. optionGroups: OptionGroups[];
  3758. };
  3759. export type OptionGroups = {
  3760. __typename?: 'ProductOptionGroup';
  3761. id: string;
  3762. code: string;
  3763. options: Options[];
  3764. };
  3765. export type Options = {
  3766. __typename?: 'ProductOption';
  3767. id: string;
  3768. code?: string | null;
  3769. };
  3770. }
  3771. export namespace RemoveOptionGroupFromProduct {
  3772. export type Variables = {
  3773. productId: string;
  3774. optionGroupId: string;
  3775. };
  3776. export type Mutation = {
  3777. __typename?: 'Mutation';
  3778. removeOptionGroupFromProduct: RemoveOptionGroupFromProduct;
  3779. };
  3780. export type RemoveOptionGroupFromProduct = {
  3781. __typename?: 'Product';
  3782. id: string;
  3783. optionGroups: OptionGroups[];
  3784. };
  3785. export type OptionGroups = {
  3786. __typename?: 'ProductOptionGroup';
  3787. id: string;
  3788. code: string;
  3789. options: Options[];
  3790. };
  3791. export type Options = {
  3792. __typename?: 'ProductOption';
  3793. id: string;
  3794. code?: string | null;
  3795. };
  3796. }
  3797. export namespace ApplyFacetValuesToProductVariants {
  3798. export type Variables = {
  3799. facetValueIds: string[];
  3800. productVariantIds: string[];
  3801. };
  3802. export type Mutation = {
  3803. __typename?: 'Mutation';
  3804. applyFacetValuesToProductVariants: ApplyFacetValuesToProductVariants[];
  3805. };
  3806. export type ApplyFacetValuesToProductVariants = ProductVariant.Fragment;
  3807. }
  3808. export namespace GetProductWithVariants {
  3809. export type Variables = {
  3810. id: string;
  3811. languageCode?: LanguageCode | null;
  3812. };
  3813. export type Query = {
  3814. __typename?: 'Query';
  3815. product?: Product | null;
  3816. };
  3817. export type Product = ProductWithVariants.Fragment;
  3818. }
  3819. export namespace GetProductList {
  3820. export type Variables = {
  3821. options?: ProductListOptions | null;
  3822. languageCode?: LanguageCode | null;
  3823. };
  3824. export type Query = {
  3825. __typename?: 'Query';
  3826. products: Products;
  3827. };
  3828. export type Products = {
  3829. __typename?: 'ProductList';
  3830. items: Items[];
  3831. totalItems: number;
  3832. };
  3833. export type Items = {
  3834. __typename?: 'Product';
  3835. id: string;
  3836. languageCode: LanguageCode;
  3837. name: string;
  3838. slug: string;
  3839. description: string;
  3840. };
  3841. }
  3842. export namespace GetProductOptionGroups {
  3843. export type Variables = {
  3844. filterTerm?: string | null;
  3845. languageCode?: LanguageCode | null;
  3846. };
  3847. export type Query = {
  3848. __typename?: 'Query';
  3849. productOptionGroups: ProductOptionGroups[];
  3850. };
  3851. export type ProductOptionGroups = {
  3852. __typename?: 'ProductOptionGroup';
  3853. id: string;
  3854. languageCode: LanguageCode;
  3855. code: string;
  3856. name: string;
  3857. options: Options[];
  3858. };
  3859. export type Options = {
  3860. __typename?: 'ProductOption';
  3861. id: string;
  3862. languageCode?: LanguageCode | null;
  3863. code?: string | null;
  3864. name?: string | null;
  3865. };
  3866. }
  3867. export namespace GetAssetList {
  3868. export type Variables = {
  3869. options?: AssetListOptions | null;
  3870. };
  3871. export type Query = {
  3872. __typename?: 'Query';
  3873. assets: Assets;
  3874. };
  3875. export type Assets = {
  3876. __typename?: 'AssetList';
  3877. items: Items[];
  3878. totalItems: number;
  3879. };
  3880. export type Items = Asset.Fragment;
  3881. }
  3882. export namespace CreateAssets {
  3883. export type Variables = {
  3884. input: CreateAssetInput[];
  3885. };
  3886. export type Mutation = {
  3887. __typename?: 'Mutation';
  3888. createAssets: CreateAssets[];
  3889. };
  3890. export type CreateAssets = Asset.Fragment;
  3891. }
  3892. export namespace GetPromotionList {
  3893. export type Variables = {
  3894. options?: PromotionListOptions | null;
  3895. };
  3896. export type Query = {
  3897. __typename?: 'Query';
  3898. promotions: Promotions;
  3899. };
  3900. export type Promotions = {
  3901. __typename?: 'PromotionList';
  3902. items: Items[];
  3903. totalItems: number;
  3904. };
  3905. export type Items = Promotion.Fragment;
  3906. }
  3907. export namespace GetPromotion {
  3908. export type Variables = {
  3909. id: string;
  3910. };
  3911. export type Query = {
  3912. __typename?: 'Query';
  3913. promotion?: Promotion | null;
  3914. };
  3915. export type Promotion = Promotion.Fragment;
  3916. }
  3917. export namespace GetAdjustmentOperations {
  3918. export type Variables = {};
  3919. export type Query = {
  3920. __typename?: 'Query';
  3921. adjustmentOperations: AdjustmentOperations;
  3922. };
  3923. export type AdjustmentOperations = {
  3924. __typename?: 'AdjustmentOperations';
  3925. actions: Actions[];
  3926. conditions: Conditions[];
  3927. };
  3928. export type Actions = AdjustmentOperation.Fragment;
  3929. export type Conditions = AdjustmentOperation.Fragment;
  3930. }
  3931. export namespace CreatePromotion {
  3932. export type Variables = {
  3933. input: CreatePromotionInput;
  3934. };
  3935. export type Mutation = {
  3936. __typename?: 'Mutation';
  3937. createPromotion: CreatePromotion;
  3938. };
  3939. export type CreatePromotion = Promotion.Fragment;
  3940. }
  3941. export namespace UpdatePromotion {
  3942. export type Variables = {
  3943. input: UpdatePromotionInput;
  3944. };
  3945. export type Mutation = {
  3946. __typename?: 'Mutation';
  3947. updatePromotion: UpdatePromotion;
  3948. };
  3949. export type UpdatePromotion = Promotion.Fragment;
  3950. }
  3951. export namespace GetCountryList {
  3952. export type Variables = {
  3953. options?: CountryListOptions | null;
  3954. };
  3955. export type Query = {
  3956. __typename?: 'Query';
  3957. countries: Countries;
  3958. };
  3959. export type Countries = {
  3960. __typename?: 'CountryList';
  3961. items: Items[];
  3962. totalItems: number;
  3963. };
  3964. export type Items = Country.Fragment;
  3965. }
  3966. export namespace GetCountry {
  3967. export type Variables = {
  3968. id: string;
  3969. };
  3970. export type Query = {
  3971. __typename?: 'Query';
  3972. country?: Country | null;
  3973. };
  3974. export type Country = Country.Fragment;
  3975. }
  3976. export namespace CreateCountry {
  3977. export type Variables = {
  3978. input: CreateCountryInput;
  3979. };
  3980. export type Mutation = {
  3981. __typename?: 'Mutation';
  3982. createCountry: CreateCountry;
  3983. };
  3984. export type CreateCountry = Country.Fragment;
  3985. }
  3986. export namespace UpdateCountry {
  3987. export type Variables = {
  3988. input: UpdateCountryInput;
  3989. };
  3990. export type Mutation = {
  3991. __typename?: 'Mutation';
  3992. updateCountry: UpdateCountry;
  3993. };
  3994. export type UpdateCountry = Country.Fragment;
  3995. }
  3996. export namespace GetZones {
  3997. export type Variables = {};
  3998. export type Query = {
  3999. __typename?: 'Query';
  4000. zones: Zones[];
  4001. };
  4002. export type Zones = Zone.Fragment;
  4003. }
  4004. export namespace GetZone {
  4005. export type Variables = {
  4006. id: string;
  4007. };
  4008. export type Query = {
  4009. __typename?: 'Query';
  4010. zone?: Zone | null;
  4011. };
  4012. export type Zone = Zone.Fragment;
  4013. }
  4014. export namespace CreateZone {
  4015. export type Variables = {
  4016. input: CreateZoneInput;
  4017. };
  4018. export type Mutation = {
  4019. __typename?: 'Mutation';
  4020. createZone: CreateZone;
  4021. };
  4022. export type CreateZone = Zone.Fragment;
  4023. }
  4024. export namespace UpdateZone {
  4025. export type Variables = {
  4026. input: UpdateZoneInput;
  4027. };
  4028. export type Mutation = {
  4029. __typename?: 'Mutation';
  4030. updateZone: UpdateZone;
  4031. };
  4032. export type UpdateZone = Zone.Fragment;
  4033. }
  4034. export namespace AddMembersToZone {
  4035. export type Variables = {
  4036. zoneId: string;
  4037. memberIds: string[];
  4038. };
  4039. export type Mutation = {
  4040. __typename?: 'Mutation';
  4041. addMembersToZone: AddMembersToZone;
  4042. };
  4043. export type AddMembersToZone = Zone.Fragment;
  4044. }
  4045. export namespace RemoveMembersFromZone {
  4046. export type Variables = {
  4047. zoneId: string;
  4048. memberIds: string[];
  4049. };
  4050. export type Mutation = {
  4051. __typename?: 'Mutation';
  4052. removeMembersFromZone: RemoveMembersFromZone;
  4053. };
  4054. export type RemoveMembersFromZone = Zone.Fragment;
  4055. }
  4056. export namespace GetTaxCategories {
  4057. export type Variables = {};
  4058. export type Query = {
  4059. __typename?: 'Query';
  4060. taxCategories: TaxCategories[];
  4061. };
  4062. export type TaxCategories = TaxCategory.Fragment;
  4063. }
  4064. export namespace GetTaxCategory {
  4065. export type Variables = {
  4066. id: string;
  4067. };
  4068. export type Query = {
  4069. __typename?: 'Query';
  4070. taxCategory?: TaxCategory | null;
  4071. };
  4072. export type TaxCategory = TaxCategory.Fragment;
  4073. }
  4074. export namespace CreateTaxCategory {
  4075. export type Variables = {
  4076. input: CreateTaxCategoryInput;
  4077. };
  4078. export type Mutation = {
  4079. __typename?: 'Mutation';
  4080. createTaxCategory: CreateTaxCategory;
  4081. };
  4082. export type CreateTaxCategory = TaxCategory.Fragment;
  4083. }
  4084. export namespace UpdateTaxCategory {
  4085. export type Variables = {
  4086. input: UpdateTaxCategoryInput;
  4087. };
  4088. export type Mutation = {
  4089. __typename?: 'Mutation';
  4090. updateTaxCategory: UpdateTaxCategory;
  4091. };
  4092. export type UpdateTaxCategory = TaxCategory.Fragment;
  4093. }
  4094. export namespace GetTaxRateList {
  4095. export type Variables = {
  4096. options?: TaxRateListOptions | null;
  4097. };
  4098. export type Query = {
  4099. __typename?: 'Query';
  4100. taxRates: TaxRates;
  4101. };
  4102. export type TaxRates = {
  4103. __typename?: 'TaxRateList';
  4104. items: Items[];
  4105. totalItems: number;
  4106. };
  4107. export type Items = TaxRate.Fragment;
  4108. }
  4109. export namespace GetTaxRate {
  4110. export type Variables = {
  4111. id: string;
  4112. };
  4113. export type Query = {
  4114. __typename?: 'Query';
  4115. taxRate?: TaxRate | null;
  4116. };
  4117. export type TaxRate = TaxRate.Fragment;
  4118. }
  4119. export namespace CreateTaxRate {
  4120. export type Variables = {
  4121. input: CreateTaxRateInput;
  4122. };
  4123. export type Mutation = {
  4124. __typename?: 'Mutation';
  4125. createTaxRate: CreateTaxRate;
  4126. };
  4127. export type CreateTaxRate = TaxRate.Fragment;
  4128. }
  4129. export namespace UpdateTaxRate {
  4130. export type Variables = {
  4131. input: UpdateTaxRateInput;
  4132. };
  4133. export type Mutation = {
  4134. __typename?: 'Mutation';
  4135. updateTaxRate: UpdateTaxRate;
  4136. };
  4137. export type UpdateTaxRate = TaxRate.Fragment;
  4138. }
  4139. export namespace GetChannels {
  4140. export type Variables = {};
  4141. export type Query = {
  4142. __typename?: 'Query';
  4143. channels: Channels[];
  4144. };
  4145. export type Channels = Channel.Fragment;
  4146. }
  4147. export namespace GetChannel {
  4148. export type Variables = {
  4149. id: string;
  4150. };
  4151. export type Query = {
  4152. __typename?: 'Query';
  4153. channel?: Channel | null;
  4154. };
  4155. export type Channel = Channel.Fragment;
  4156. }
  4157. export namespace GetActiveChannel {
  4158. export type Variables = {};
  4159. export type Query = {
  4160. __typename?: 'Query';
  4161. activeChannel: ActiveChannel;
  4162. };
  4163. export type ActiveChannel = Channel.Fragment;
  4164. }
  4165. export namespace CreateChannel {
  4166. export type Variables = {
  4167. input: CreateChannelInput;
  4168. };
  4169. export type Mutation = {
  4170. __typename?: 'Mutation';
  4171. createChannel: CreateChannel;
  4172. };
  4173. export type CreateChannel = Channel.Fragment;
  4174. }
  4175. export namespace UpdateChannel {
  4176. export type Variables = {
  4177. input: UpdateChannelInput;
  4178. };
  4179. export type Mutation = {
  4180. __typename?: 'Mutation';
  4181. updateChannel: UpdateChannel;
  4182. };
  4183. export type UpdateChannel = Channel.Fragment;
  4184. }
  4185. export namespace Administrator {
  4186. export type Fragment = {
  4187. __typename?: 'Administrator';
  4188. id: string;
  4189. firstName: string;
  4190. lastName: string;
  4191. emailAddress: string;
  4192. user: User;
  4193. };
  4194. export type User = {
  4195. __typename?: 'User';
  4196. id: string;
  4197. identifier: string;
  4198. lastLogin?: string | null;
  4199. roles: Roles[];
  4200. };
  4201. export type Roles = {
  4202. __typename?: 'Role';
  4203. id: string;
  4204. code: string;
  4205. description: string;
  4206. permissions: Permission[];
  4207. };
  4208. }
  4209. export namespace Role {
  4210. export type Fragment = {
  4211. __typename?: 'Role';
  4212. id: string;
  4213. code: string;
  4214. description: string;
  4215. permissions: Permission[];
  4216. channels: Channels[];
  4217. };
  4218. export type Channels = {
  4219. __typename?: 'Channel';
  4220. id: string;
  4221. code: string;
  4222. token: string;
  4223. };
  4224. }
  4225. export namespace CurrentUser {
  4226. export type Fragment = {
  4227. __typename?: 'CurrentUser';
  4228. id: string;
  4229. identifier: string;
  4230. channelTokens: string[];
  4231. };
  4232. }
  4233. export namespace FacetValue {
  4234. export type Fragment = {
  4235. __typename?: 'FacetValue';
  4236. id: string;
  4237. languageCode?: LanguageCode | null;
  4238. code: string;
  4239. name: string;
  4240. translations: Translations[];
  4241. };
  4242. export type Translations = {
  4243. __typename?: 'FacetValueTranslation';
  4244. id: string;
  4245. languageCode: LanguageCode;
  4246. name: string;
  4247. };
  4248. }
  4249. export namespace FacetWithValues {
  4250. export type Fragment = {
  4251. __typename?: 'Facet';
  4252. id: string;
  4253. languageCode: LanguageCode;
  4254. code: string;
  4255. name: string;
  4256. translations: Translations[];
  4257. values: Values[];
  4258. };
  4259. export type Translations = {
  4260. __typename?: 'FacetTranslation';
  4261. id: string;
  4262. languageCode: LanguageCode;
  4263. name: string;
  4264. };
  4265. export type Values = FacetValue.Fragment;
  4266. }
  4267. export namespace Order {
  4268. export type Fragment = {
  4269. __typename?: 'Order';
  4270. id: string;
  4271. createdAt: DateTime;
  4272. updatedAt: DateTime;
  4273. code: string;
  4274. customer?: Customer | null;
  4275. };
  4276. export type Customer = {
  4277. __typename?: 'Customer';
  4278. firstName: string;
  4279. lastName: string;
  4280. };
  4281. }
  4282. export namespace Asset {
  4283. export type Fragment = {
  4284. __typename?: 'Asset';
  4285. id: string;
  4286. name: string;
  4287. fileSize: number;
  4288. mimeType: string;
  4289. type: AssetType;
  4290. preview: string;
  4291. source: string;
  4292. };
  4293. }
  4294. export namespace ProductVariant {
  4295. export type Fragment = {
  4296. __typename?: 'ProductVariant';
  4297. id: string;
  4298. languageCode: LanguageCode;
  4299. name: string;
  4300. price: number;
  4301. priceIncludesTax: boolean;
  4302. priceWithTax: number;
  4303. taxRateApplied: TaxRateApplied;
  4304. taxCategory: TaxCategory;
  4305. sku: string;
  4306. options: Options[];
  4307. facetValues: FacetValues[];
  4308. translations: Translations[];
  4309. };
  4310. export type TaxRateApplied = {
  4311. __typename?: 'TaxRate';
  4312. id: string;
  4313. name: string;
  4314. value: number;
  4315. };
  4316. export type TaxCategory = {
  4317. __typename?: 'TaxCategory';
  4318. id: string;
  4319. name: string;
  4320. };
  4321. export type Options = {
  4322. __typename?: 'ProductOption';
  4323. id: string;
  4324. code?: string | null;
  4325. languageCode?: LanguageCode | null;
  4326. name?: string | null;
  4327. };
  4328. export type FacetValues = {
  4329. __typename?: 'FacetValue';
  4330. id: string;
  4331. code: string;
  4332. name: string;
  4333. };
  4334. export type Translations = {
  4335. __typename?: 'ProductVariantTranslation';
  4336. id: string;
  4337. languageCode: LanguageCode;
  4338. name: string;
  4339. };
  4340. }
  4341. export namespace ProductWithVariants {
  4342. export type Fragment = {
  4343. __typename?: 'Product';
  4344. id: string;
  4345. languageCode: LanguageCode;
  4346. name: string;
  4347. slug: string;
  4348. description: string;
  4349. featuredAsset?: FeaturedAsset | null;
  4350. assets: Assets[];
  4351. translations: Translations[];
  4352. optionGroups: OptionGroups[];
  4353. variants: Variants[];
  4354. };
  4355. export type FeaturedAsset = Asset.Fragment;
  4356. export type Assets = Asset.Fragment;
  4357. export type Translations = {
  4358. __typename?: 'ProductTranslation';
  4359. languageCode: LanguageCode;
  4360. name: string;
  4361. slug: string;
  4362. description: string;
  4363. };
  4364. export type OptionGroups = {
  4365. __typename?: 'ProductOptionGroup';
  4366. id: string;
  4367. languageCode: LanguageCode;
  4368. code: string;
  4369. name: string;
  4370. };
  4371. export type Variants = ProductVariant.Fragment;
  4372. }
  4373. export namespace ProductOptionGroup {
  4374. export type Fragment = {
  4375. __typename?: 'ProductOptionGroup';
  4376. id: string;
  4377. languageCode: LanguageCode;
  4378. code: string;
  4379. name: string;
  4380. translations: Translations[];
  4381. options: Options[];
  4382. };
  4383. export type Translations = {
  4384. __typename?: 'ProductOptionGroupTranslation';
  4385. name: string;
  4386. };
  4387. export type Options = {
  4388. __typename?: 'ProductOption';
  4389. id: string;
  4390. languageCode?: LanguageCode | null;
  4391. name?: string | null;
  4392. code?: string | null;
  4393. translations: _Translations[];
  4394. };
  4395. export type _Translations = {
  4396. __typename?: 'ProductOptionTranslation';
  4397. name: string;
  4398. };
  4399. }
  4400. export namespace AdjustmentOperation {
  4401. export type Fragment = {
  4402. __typename?: 'AdjustmentOperation';
  4403. args: Args[];
  4404. code: string;
  4405. description: string;
  4406. };
  4407. export type Args = {
  4408. __typename?: 'AdjustmentArg';
  4409. name: string;
  4410. type: string;
  4411. value?: string | null;
  4412. };
  4413. }
  4414. export namespace Promotion {
  4415. export type Fragment = {
  4416. __typename?: 'Promotion';
  4417. id: string;
  4418. createdAt: DateTime;
  4419. updatedAt: DateTime;
  4420. name: string;
  4421. enabled: boolean;
  4422. conditions: Conditions[];
  4423. actions: Actions[];
  4424. };
  4425. export type Conditions = AdjustmentOperation.Fragment;
  4426. export type Actions = AdjustmentOperation.Fragment;
  4427. }
  4428. export namespace Country {
  4429. export type Fragment = {
  4430. __typename?: 'Country';
  4431. id: string;
  4432. code: string;
  4433. name: string;
  4434. enabled: boolean;
  4435. };
  4436. }
  4437. export namespace Zone {
  4438. export type Fragment = {
  4439. __typename?: 'Zone';
  4440. id: string;
  4441. name: string;
  4442. members: Members[];
  4443. };
  4444. export type Members = Country.Fragment;
  4445. }
  4446. export namespace TaxCategory {
  4447. export type Fragment = {
  4448. __typename?: 'TaxCategory';
  4449. id: string;
  4450. name: string;
  4451. };
  4452. }
  4453. export namespace TaxRate {
  4454. export type Fragment = {
  4455. __typename?: 'TaxRate';
  4456. id: string;
  4457. name: string;
  4458. enabled: boolean;
  4459. value: number;
  4460. category: Category;
  4461. zone: Zone;
  4462. customerGroup?: CustomerGroup | null;
  4463. };
  4464. export type Category = {
  4465. __typename?: 'TaxCategory';
  4466. id: string;
  4467. name: string;
  4468. };
  4469. export type Zone = {
  4470. __typename?: 'Zone';
  4471. id: string;
  4472. name: string;
  4473. };
  4474. export type CustomerGroup = {
  4475. __typename?: 'CustomerGroup';
  4476. id: string;
  4477. name: string;
  4478. };
  4479. }
  4480. export namespace Channel {
  4481. export type Fragment = {
  4482. __typename?: 'Channel';
  4483. id: string;
  4484. code: string;
  4485. token: string;
  4486. pricesIncludeTax: boolean;
  4487. defaultLanguageCode: LanguageCode;
  4488. defaultShippingZone?: DefaultShippingZone | null;
  4489. defaultTaxZone?: DefaultTaxZone | null;
  4490. };
  4491. export type DefaultShippingZone = {
  4492. __typename?: 'Zone';
  4493. id: string;
  4494. name: string;
  4495. };
  4496. export type DefaultTaxZone = {
  4497. __typename?: 'Zone';
  4498. id: string;
  4499. name: string;
  4500. };
  4501. }