generated-types.ts 169 KB

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