generated-types.ts 150 KB

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