1
0

generated-types.ts 113 KB

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