generated-types.ts 115 KB

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