generated-types.ts 120 KB

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