generated-types.ts 113 KB

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