generated-types.ts 102 KB

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