generated-types.ts 138 KB

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