generated-types.ts 103 KB

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