generated-types.ts 159 KB

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