generated-types.ts 143 KB

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