generated-types.ts 113 KB

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