generated-types.ts 145 KB

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