generated-types.ts 153 KB

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