generated-types.ts 142 KB

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