generated-types.ts 149 KB

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