generated-types.ts 125 KB

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