generated-types.ts 113 KB

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