generated-types.ts 130 KB

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