generated-types.ts 113 KB

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