generated-types.ts 143 KB

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