generated-types.ts 106 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204
  1. // tslint:disable
  2. export type Maybe<T> = T;
  3. export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
  4. /** All built-in and custom scalars, mapped to their actual values */
  5. export type Scalars = {
  6. ID: string | number;
  7. String: string;
  8. Boolean: boolean;
  9. Int: number;
  10. Float: number;
  11. /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
  12. JSON: any;
  13. /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */
  14. DateTime: any;
  15. /** The `Upload` scalar type represents a file upload. */
  16. Upload: any;
  17. };
  18. export type Query = {
  19. __typename?: 'Query';
  20. administrators: AdministratorList;
  21. administrator?: Maybe<Administrator>;
  22. /** Get a list of Assets */
  23. assets: AssetList;
  24. /** Get a single Asset by id */
  25. asset?: Maybe<Asset>;
  26. me?: Maybe<CurrentUser>;
  27. channels: Array<Channel>;
  28. channel?: Maybe<Channel>;
  29. activeChannel: Channel;
  30. collections: CollectionList;
  31. /** Get a Collection either by id or slug. If neither id nor slug is speicified, an error will result. */
  32. collection?: Maybe<Collection>;
  33. collectionFilters: Array<ConfigurableOperationDefinition>;
  34. countries: CountryList;
  35. country?: Maybe<Country>;
  36. customerGroups: CustomerGroupList;
  37. customerGroup?: Maybe<CustomerGroup>;
  38. customers: CustomerList;
  39. customer?: Maybe<Customer>;
  40. facets: FacetList;
  41. facet?: Maybe<Facet>;
  42. globalSettings: GlobalSettings;
  43. job?: Maybe<Job>;
  44. jobs: JobList;
  45. jobsById: Array<Job>;
  46. jobQueues: Array<JobQueue>;
  47. order?: Maybe<Order>;
  48. orders: OrderList;
  49. paymentMethods: PaymentMethodList;
  50. paymentMethod?: Maybe<PaymentMethod>;
  51. productOptionGroups: Array<ProductOptionGroup>;
  52. productOptionGroup?: Maybe<ProductOptionGroup>;
  53. search: SearchResponse;
  54. products: ProductList;
  55. /** Get a Product either by id or slug. If neither id nor slug is speicified, an error will result. */
  56. product?: Maybe<Product>;
  57. /** Get a ProductVariant by id */
  58. productVariant?: Maybe<ProductVariant>;
  59. promotion?: Maybe<Promotion>;
  60. promotions: PromotionList;
  61. promotionConditions: Array<ConfigurableOperationDefinition>;
  62. promotionActions: Array<ConfigurableOperationDefinition>;
  63. roles: RoleList;
  64. role?: Maybe<Role>;
  65. shippingMethods: ShippingMethodList;
  66. shippingMethod?: Maybe<ShippingMethod>;
  67. shippingEligibilityCheckers: Array<ConfigurableOperationDefinition>;
  68. shippingCalculators: Array<ConfigurableOperationDefinition>;
  69. testShippingMethod: TestShippingMethodResult;
  70. testEligibleShippingMethods: Array<ShippingMethodQuote>;
  71. taxCategories: Array<TaxCategory>;
  72. taxCategory?: Maybe<TaxCategory>;
  73. taxRates: TaxRateList;
  74. taxRate?: Maybe<TaxRate>;
  75. zones: Array<Zone>;
  76. zone?: Maybe<Zone>;
  77. };
  78. export type QueryAdministratorsArgs = {
  79. options?: Maybe<AdministratorListOptions>;
  80. };
  81. export type QueryAdministratorArgs = {
  82. id: Scalars['ID'];
  83. };
  84. export type QueryAssetsArgs = {
  85. options?: Maybe<AssetListOptions>;
  86. };
  87. export type QueryAssetArgs = {
  88. id: Scalars['ID'];
  89. };
  90. export type QueryChannelArgs = {
  91. id: Scalars['ID'];
  92. };
  93. export type QueryCollectionsArgs = {
  94. options?: Maybe<CollectionListOptions>;
  95. };
  96. export type QueryCollectionArgs = {
  97. id?: Maybe<Scalars['ID']>;
  98. slug?: Maybe<Scalars['String']>;
  99. };
  100. export type QueryCountriesArgs = {
  101. options?: Maybe<CountryListOptions>;
  102. };
  103. export type QueryCountryArgs = {
  104. id: Scalars['ID'];
  105. };
  106. export type QueryCustomerGroupsArgs = {
  107. options?: Maybe<CustomerGroupListOptions>;
  108. };
  109. export type QueryCustomerGroupArgs = {
  110. id: Scalars['ID'];
  111. };
  112. export type QueryCustomersArgs = {
  113. options?: Maybe<CustomerListOptions>;
  114. };
  115. export type QueryCustomerArgs = {
  116. id: Scalars['ID'];
  117. };
  118. export type QueryFacetsArgs = {
  119. options?: Maybe<FacetListOptions>;
  120. };
  121. export type QueryFacetArgs = {
  122. id: Scalars['ID'];
  123. };
  124. export type QueryJobArgs = {
  125. jobId: Scalars['ID'];
  126. };
  127. export type QueryJobsArgs = {
  128. options?: Maybe<JobListOptions>;
  129. };
  130. export type QueryJobsByIdArgs = {
  131. jobIds: Array<Scalars['ID']>;
  132. };
  133. export type QueryOrderArgs = {
  134. id: Scalars['ID'];
  135. };
  136. export type QueryOrdersArgs = {
  137. options?: Maybe<OrderListOptions>;
  138. };
  139. export type QueryPaymentMethodsArgs = {
  140. options?: Maybe<PaymentMethodListOptions>;
  141. };
  142. export type QueryPaymentMethodArgs = {
  143. id: Scalars['ID'];
  144. };
  145. export type QueryProductOptionGroupsArgs = {
  146. filterTerm?: Maybe<Scalars['String']>;
  147. };
  148. export type QueryProductOptionGroupArgs = {
  149. id: Scalars['ID'];
  150. };
  151. export type QuerySearchArgs = {
  152. input: SearchInput;
  153. };
  154. export type QueryProductsArgs = {
  155. options?: Maybe<ProductListOptions>;
  156. };
  157. export type QueryProductArgs = {
  158. id?: Maybe<Scalars['ID']>;
  159. slug?: Maybe<Scalars['String']>;
  160. };
  161. export type QueryProductVariantArgs = {
  162. id: Scalars['ID'];
  163. };
  164. export type QueryPromotionArgs = {
  165. id: Scalars['ID'];
  166. };
  167. export type QueryPromotionsArgs = {
  168. options?: Maybe<PromotionListOptions>;
  169. };
  170. export type QueryRolesArgs = {
  171. options?: Maybe<RoleListOptions>;
  172. };
  173. export type QueryRoleArgs = {
  174. id: Scalars['ID'];
  175. };
  176. export type QueryShippingMethodsArgs = {
  177. options?: Maybe<ShippingMethodListOptions>;
  178. };
  179. export type QueryShippingMethodArgs = {
  180. id: Scalars['ID'];
  181. };
  182. export type QueryTestShippingMethodArgs = {
  183. input: TestShippingMethodInput;
  184. };
  185. export type QueryTestEligibleShippingMethodsArgs = {
  186. input: TestEligibleShippingMethodsInput;
  187. };
  188. export type QueryTaxCategoryArgs = {
  189. id: Scalars['ID'];
  190. };
  191. export type QueryTaxRatesArgs = {
  192. options?: Maybe<TaxRateListOptions>;
  193. };
  194. export type QueryTaxRateArgs = {
  195. id: Scalars['ID'];
  196. };
  197. export type QueryZoneArgs = {
  198. id: Scalars['ID'];
  199. };
  200. export type Mutation = {
  201. __typename?: 'Mutation';
  202. /** Create a new Administrator */
  203. createAdministrator: Administrator;
  204. /** Update an existing Administrator */
  205. updateAdministrator: Administrator;
  206. /** Delete an Administrator */
  207. deleteAdministrator: DeletionResponse;
  208. /** Assign a Role to an Administrator */
  209. assignRoleToAdministrator: Administrator;
  210. /** Create a new Asset */
  211. createAssets: Array<CreateAssetResult>;
  212. /** Update an existing Asset */
  213. updateAsset: Asset;
  214. /** Delete an Asset */
  215. deleteAsset: DeletionResponse;
  216. /** Delete multiple Assets */
  217. deleteAssets: DeletionResponse;
  218. /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
  219. login: NativeAuthenticationResult;
  220. /** Authenticates the user using a named authentication strategy */
  221. authenticate: AuthenticationResult;
  222. logout: Success;
  223. /** Create a new Channel */
  224. createChannel: CreateChannelResult;
  225. /** Update an existing Channel */
  226. updateChannel: UpdateChannelResult;
  227. /** Delete a Channel */
  228. deleteChannel: DeletionResponse;
  229. /** Create a new Collection */
  230. createCollection: Collection;
  231. /** Update an existing Collection */
  232. updateCollection: Collection;
  233. /** Delete a Collection and all of its descendants */
  234. deleteCollection: DeletionResponse;
  235. /** Move a Collection to a different parent or index */
  236. moveCollection: Collection;
  237. /** Create a new Country */
  238. createCountry: Country;
  239. /** Update an existing Country */
  240. updateCountry: Country;
  241. /** Delete a Country */
  242. deleteCountry: DeletionResponse;
  243. /** Create a new CustomerGroup */
  244. createCustomerGroup: CustomerGroup;
  245. /** Update an existing CustomerGroup */
  246. updateCustomerGroup: CustomerGroup;
  247. /** Delete a CustomerGroup */
  248. deleteCustomerGroup: DeletionResponse;
  249. /** Add Customers to a CustomerGroup */
  250. addCustomersToGroup: CustomerGroup;
  251. /** Remove Customers from a CustomerGroup */
  252. removeCustomersFromGroup: CustomerGroup;
  253. /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */
  254. createCustomer: CreateCustomerResult;
  255. /** Update an existing Customer */
  256. updateCustomer: UpdateCustomerResult;
  257. /** Delete a Customer */
  258. deleteCustomer: DeletionResponse;
  259. /** Create a new Address and associate it with the Customer specified by customerId */
  260. createCustomerAddress: Address;
  261. /** Update an existing Address */
  262. updateCustomerAddress: Address;
  263. /** Update an existing Address */
  264. deleteCustomerAddress: Success;
  265. addNoteToCustomer: Customer;
  266. updateCustomerNote: HistoryEntry;
  267. deleteCustomerNote: DeletionResponse;
  268. /** Create a new Facet */
  269. createFacet: Facet;
  270. /** Update an existing Facet */
  271. updateFacet: Facet;
  272. /** Delete an existing Facet */
  273. deleteFacet: DeletionResponse;
  274. /** Create one or more FacetValues */
  275. createFacetValues: Array<FacetValue>;
  276. /** Update one or more FacetValues */
  277. updateFacetValues: Array<FacetValue>;
  278. /** Delete one or more FacetValues */
  279. deleteFacetValues: Array<DeletionResponse>;
  280. updateGlobalSettings: UpdateGlobalSettingsResult;
  281. importProducts?: Maybe<ImportInfo>;
  282. /** Remove all settled jobs in the given queues olfer than the given date. Returns the number of jobs deleted. */
  283. removeSettledJobs: Scalars['Int'];
  284. settlePayment: SettlePaymentResult;
  285. addFulfillmentToOrder: AddFulfillmentToOrderResult;
  286. cancelOrder: CancelOrderResult;
  287. refundOrder: RefundOrderResult;
  288. settleRefund: SettleRefundResult;
  289. addNoteToOrder: Order;
  290. updateOrderNote: HistoryEntry;
  291. deleteOrderNote: DeletionResponse;
  292. transitionOrderToState?: Maybe<TransitionOrderToStateResult>;
  293. transitionFulfillmentToState: TransitionFulfillmentToStateResult;
  294. setOrderCustomFields?: Maybe<Order>;
  295. /** Update an existing PaymentMethod */
  296. updatePaymentMethod: PaymentMethod;
  297. /** Create a new ProductOptionGroup */
  298. createProductOptionGroup: ProductOptionGroup;
  299. /** Update an existing ProductOptionGroup */
  300. updateProductOptionGroup: ProductOptionGroup;
  301. /** Create a new ProductOption within a ProductOptionGroup */
  302. createProductOption: ProductOption;
  303. /** Create a new ProductOption within a ProductOptionGroup */
  304. updateProductOption: ProductOption;
  305. reindex: Job;
  306. /** Create a new Product */
  307. createProduct: Product;
  308. /** Update an existing Product */
  309. updateProduct: Product;
  310. /** Delete a Product */
  311. deleteProduct: DeletionResponse;
  312. /** Add an OptionGroup to a Product */
  313. addOptionGroupToProduct: Product;
  314. /** Remove an OptionGroup from a Product */
  315. removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult;
  316. /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */
  317. createProductVariants: Array<Maybe<ProductVariant>>;
  318. /** Update existing ProductVariants */
  319. updateProductVariants: Array<Maybe<ProductVariant>>;
  320. /** Delete a ProductVariant */
  321. deleteProductVariant: DeletionResponse;
  322. /** Assigns Products to the specified Channel */
  323. assignProductsToChannel: Array<Product>;
  324. /** Removes Products from the specified Channel */
  325. removeProductsFromChannel: Array<Product>;
  326. createPromotion: CreatePromotionResult;
  327. updatePromotion: UpdatePromotionResult;
  328. deletePromotion: DeletionResponse;
  329. /** Create a new Role */
  330. createRole: Role;
  331. /** Update an existing Role */
  332. updateRole: Role;
  333. /** Delete an existing Role */
  334. deleteRole: DeletionResponse;
  335. /** Create a new ShippingMethod */
  336. createShippingMethod: ShippingMethod;
  337. /** Update an existing ShippingMethod */
  338. updateShippingMethod: ShippingMethod;
  339. /** Delete a ShippingMethod */
  340. deleteShippingMethod: DeletionResponse;
  341. /** Create a new TaxCategory */
  342. createTaxCategory: TaxCategory;
  343. /** Update an existing TaxCategory */
  344. updateTaxCategory: TaxCategory;
  345. /** Deletes a TaxCategory */
  346. deleteTaxCategory: DeletionResponse;
  347. /** Create a new TaxRate */
  348. createTaxRate: TaxRate;
  349. /** Update an existing TaxRate */
  350. updateTaxRate: TaxRate;
  351. /** Delete a TaxRate */
  352. deleteTaxRate: DeletionResponse;
  353. /** Create a new Zone */
  354. createZone: Zone;
  355. /** Update an existing Zone */
  356. updateZone: Zone;
  357. /** Delete a Zone */
  358. deleteZone: DeletionResponse;
  359. /** Add members to a Zone */
  360. addMembersToZone: Zone;
  361. /** Remove members from a Zone */
  362. removeMembersFromZone: Zone;
  363. };
  364. export type MutationCreateAdministratorArgs = {
  365. input: CreateAdministratorInput;
  366. };
  367. export type MutationUpdateAdministratorArgs = {
  368. input: UpdateAdministratorInput;
  369. };
  370. export type MutationDeleteAdministratorArgs = {
  371. id: Scalars['ID'];
  372. };
  373. export type MutationAssignRoleToAdministratorArgs = {
  374. administratorId: Scalars['ID'];
  375. roleId: Scalars['ID'];
  376. };
  377. export type MutationCreateAssetsArgs = {
  378. input: Array<CreateAssetInput>;
  379. };
  380. export type MutationUpdateAssetArgs = {
  381. input: UpdateAssetInput;
  382. };
  383. export type MutationDeleteAssetArgs = {
  384. id: Scalars['ID'];
  385. force?: Maybe<Scalars['Boolean']>;
  386. };
  387. export type MutationDeleteAssetsArgs = {
  388. ids: Array<Scalars['ID']>;
  389. force?: Maybe<Scalars['Boolean']>;
  390. };
  391. export type MutationLoginArgs = {
  392. username: Scalars['String'];
  393. password: Scalars['String'];
  394. rememberMe?: Maybe<Scalars['Boolean']>;
  395. };
  396. export type MutationAuthenticateArgs = {
  397. input: AuthenticationInput;
  398. rememberMe?: Maybe<Scalars['Boolean']>;
  399. };
  400. export type MutationCreateChannelArgs = {
  401. input: CreateChannelInput;
  402. };
  403. export type MutationUpdateChannelArgs = {
  404. input: UpdateChannelInput;
  405. };
  406. export type MutationDeleteChannelArgs = {
  407. id: Scalars['ID'];
  408. };
  409. export type MutationCreateCollectionArgs = {
  410. input: CreateCollectionInput;
  411. };
  412. export type MutationUpdateCollectionArgs = {
  413. input: UpdateCollectionInput;
  414. };
  415. export type MutationDeleteCollectionArgs = {
  416. id: Scalars['ID'];
  417. };
  418. export type MutationMoveCollectionArgs = {
  419. input: MoveCollectionInput;
  420. };
  421. export type MutationCreateCountryArgs = {
  422. input: CreateCountryInput;
  423. };
  424. export type MutationUpdateCountryArgs = {
  425. input: UpdateCountryInput;
  426. };
  427. export type MutationDeleteCountryArgs = {
  428. id: Scalars['ID'];
  429. };
  430. export type MutationCreateCustomerGroupArgs = {
  431. input: CreateCustomerGroupInput;
  432. };
  433. export type MutationUpdateCustomerGroupArgs = {
  434. input: UpdateCustomerGroupInput;
  435. };
  436. export type MutationDeleteCustomerGroupArgs = {
  437. id: Scalars['ID'];
  438. };
  439. export type MutationAddCustomersToGroupArgs = {
  440. customerGroupId: Scalars['ID'];
  441. customerIds: Array<Scalars['ID']>;
  442. };
  443. export type MutationRemoveCustomersFromGroupArgs = {
  444. customerGroupId: Scalars['ID'];
  445. customerIds: Array<Scalars['ID']>;
  446. };
  447. export type MutationCreateCustomerArgs = {
  448. input: CreateCustomerInput;
  449. password?: Maybe<Scalars['String']>;
  450. };
  451. export type MutationUpdateCustomerArgs = {
  452. input: UpdateCustomerInput;
  453. };
  454. export type MutationDeleteCustomerArgs = {
  455. id: Scalars['ID'];
  456. };
  457. export type MutationCreateCustomerAddressArgs = {
  458. customerId: Scalars['ID'];
  459. input: CreateAddressInput;
  460. };
  461. export type MutationUpdateCustomerAddressArgs = {
  462. input: UpdateAddressInput;
  463. };
  464. export type MutationDeleteCustomerAddressArgs = {
  465. id: Scalars['ID'];
  466. };
  467. export type MutationAddNoteToCustomerArgs = {
  468. input: AddNoteToCustomerInput;
  469. };
  470. export type MutationUpdateCustomerNoteArgs = {
  471. input: UpdateCustomerNoteInput;
  472. };
  473. export type MutationDeleteCustomerNoteArgs = {
  474. id: Scalars['ID'];
  475. };
  476. export type MutationCreateFacetArgs = {
  477. input: CreateFacetInput;
  478. };
  479. export type MutationUpdateFacetArgs = {
  480. input: UpdateFacetInput;
  481. };
  482. export type MutationDeleteFacetArgs = {
  483. id: Scalars['ID'];
  484. force?: Maybe<Scalars['Boolean']>;
  485. };
  486. export type MutationCreateFacetValuesArgs = {
  487. input: Array<CreateFacetValueInput>;
  488. };
  489. export type MutationUpdateFacetValuesArgs = {
  490. input: Array<UpdateFacetValueInput>;
  491. };
  492. export type MutationDeleteFacetValuesArgs = {
  493. ids: Array<Scalars['ID']>;
  494. force?: Maybe<Scalars['Boolean']>;
  495. };
  496. export type MutationUpdateGlobalSettingsArgs = {
  497. input: UpdateGlobalSettingsInput;
  498. };
  499. export type MutationImportProductsArgs = {
  500. csvFile: Scalars['Upload'];
  501. };
  502. export type MutationRemoveSettledJobsArgs = {
  503. queueNames?: Maybe<Array<Scalars['String']>>;
  504. olderThan?: Maybe<Scalars['DateTime']>;
  505. };
  506. export type MutationSettlePaymentArgs = {
  507. id: Scalars['ID'];
  508. };
  509. export type MutationAddFulfillmentToOrderArgs = {
  510. input: FulfillOrderInput;
  511. };
  512. export type MutationCancelOrderArgs = {
  513. input: CancelOrderInput;
  514. };
  515. export type MutationRefundOrderArgs = {
  516. input: RefundOrderInput;
  517. };
  518. export type MutationSettleRefundArgs = {
  519. input: SettleRefundInput;
  520. };
  521. export type MutationAddNoteToOrderArgs = {
  522. input: AddNoteToOrderInput;
  523. };
  524. export type MutationUpdateOrderNoteArgs = {
  525. input: UpdateOrderNoteInput;
  526. };
  527. export type MutationDeleteOrderNoteArgs = {
  528. id: Scalars['ID'];
  529. };
  530. export type MutationTransitionOrderToStateArgs = {
  531. id: Scalars['ID'];
  532. state: Scalars['String'];
  533. };
  534. export type MutationTransitionFulfillmentToStateArgs = {
  535. id: Scalars['ID'];
  536. state: Scalars['String'];
  537. };
  538. export type MutationSetOrderCustomFieldsArgs = {
  539. input: UpdateOrderInput;
  540. };
  541. export type MutationUpdatePaymentMethodArgs = {
  542. input: UpdatePaymentMethodInput;
  543. };
  544. export type MutationCreateProductOptionGroupArgs = {
  545. input: CreateProductOptionGroupInput;
  546. };
  547. export type MutationUpdateProductOptionGroupArgs = {
  548. input: UpdateProductOptionGroupInput;
  549. };
  550. export type MutationCreateProductOptionArgs = {
  551. input: CreateProductOptionInput;
  552. };
  553. export type MutationUpdateProductOptionArgs = {
  554. input: UpdateProductOptionInput;
  555. };
  556. export type MutationCreateProductArgs = {
  557. input: CreateProductInput;
  558. };
  559. export type MutationUpdateProductArgs = {
  560. input: UpdateProductInput;
  561. };
  562. export type MutationDeleteProductArgs = {
  563. id: Scalars['ID'];
  564. };
  565. export type MutationAddOptionGroupToProductArgs = {
  566. productId: Scalars['ID'];
  567. optionGroupId: Scalars['ID'];
  568. };
  569. export type MutationRemoveOptionGroupFromProductArgs = {
  570. productId: Scalars['ID'];
  571. optionGroupId: Scalars['ID'];
  572. };
  573. export type MutationCreateProductVariantsArgs = {
  574. input: Array<CreateProductVariantInput>;
  575. };
  576. export type MutationUpdateProductVariantsArgs = {
  577. input: Array<UpdateProductVariantInput>;
  578. };
  579. export type MutationDeleteProductVariantArgs = {
  580. id: Scalars['ID'];
  581. };
  582. export type MutationAssignProductsToChannelArgs = {
  583. input: AssignProductsToChannelInput;
  584. };
  585. export type MutationRemoveProductsFromChannelArgs = {
  586. input: RemoveProductsFromChannelInput;
  587. };
  588. export type MutationCreatePromotionArgs = {
  589. input: CreatePromotionInput;
  590. };
  591. export type MutationUpdatePromotionArgs = {
  592. input: UpdatePromotionInput;
  593. };
  594. export type MutationDeletePromotionArgs = {
  595. id: Scalars['ID'];
  596. };
  597. export type MutationCreateRoleArgs = {
  598. input: CreateRoleInput;
  599. };
  600. export type MutationUpdateRoleArgs = {
  601. input: UpdateRoleInput;
  602. };
  603. export type MutationDeleteRoleArgs = {
  604. id: Scalars['ID'];
  605. };
  606. export type MutationCreateShippingMethodArgs = {
  607. input: CreateShippingMethodInput;
  608. };
  609. export type MutationUpdateShippingMethodArgs = {
  610. input: UpdateShippingMethodInput;
  611. };
  612. export type MutationDeleteShippingMethodArgs = {
  613. id: Scalars['ID'];
  614. };
  615. export type MutationCreateTaxCategoryArgs = {
  616. input: CreateTaxCategoryInput;
  617. };
  618. export type MutationUpdateTaxCategoryArgs = {
  619. input: UpdateTaxCategoryInput;
  620. };
  621. export type MutationDeleteTaxCategoryArgs = {
  622. id: Scalars['ID'];
  623. };
  624. export type MutationCreateTaxRateArgs = {
  625. input: CreateTaxRateInput;
  626. };
  627. export type MutationUpdateTaxRateArgs = {
  628. input: UpdateTaxRateInput;
  629. };
  630. export type MutationDeleteTaxRateArgs = {
  631. id: Scalars['ID'];
  632. };
  633. export type MutationCreateZoneArgs = {
  634. input: CreateZoneInput;
  635. };
  636. export type MutationUpdateZoneArgs = {
  637. input: UpdateZoneInput;
  638. };
  639. export type MutationDeleteZoneArgs = {
  640. id: Scalars['ID'];
  641. };
  642. export type MutationAddMembersToZoneArgs = {
  643. zoneId: Scalars['ID'];
  644. memberIds: Array<Scalars['ID']>;
  645. };
  646. export type MutationRemoveMembersFromZoneArgs = {
  647. zoneId: Scalars['ID'];
  648. memberIds: Array<Scalars['ID']>;
  649. };
  650. export type CreateAdministratorInput = {
  651. firstName: Scalars['String'];
  652. lastName: Scalars['String'];
  653. emailAddress: Scalars['String'];
  654. password: Scalars['String'];
  655. roleIds: Array<Scalars['ID']>;
  656. };
  657. export type UpdateAdministratorInput = {
  658. id: Scalars['ID'];
  659. firstName?: Maybe<Scalars['String']>;
  660. lastName?: Maybe<Scalars['String']>;
  661. emailAddress?: Maybe<Scalars['String']>;
  662. password?: Maybe<Scalars['String']>;
  663. roleIds?: Maybe<Array<Scalars['ID']>>;
  664. };
  665. export type MimeTypeError = ErrorResult & {
  666. __typename?: 'MimeTypeError';
  667. errorCode: ErrorCode;
  668. message: Scalars['String'];
  669. fileName: Scalars['String'];
  670. mimeType: Scalars['String'];
  671. };
  672. export type CreateAssetResult = Asset | MimeTypeError;
  673. export type CreateAssetInput = {
  674. file: Scalars['Upload'];
  675. };
  676. export type CoordinateInput = {
  677. x: Scalars['Float'];
  678. y: Scalars['Float'];
  679. };
  680. export type UpdateAssetInput = {
  681. id: Scalars['ID'];
  682. name?: Maybe<Scalars['String']>;
  683. focalPoint?: Maybe<CoordinateInput>;
  684. };
  685. export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError;
  686. export type AuthenticationResult = CurrentUser | InvalidCredentialsError;
  687. export type CreateChannelInput = {
  688. code: Scalars['String'];
  689. token: Scalars['String'];
  690. defaultLanguageCode: LanguageCode;
  691. pricesIncludeTax: Scalars['Boolean'];
  692. currencyCode: CurrencyCode;
  693. defaultTaxZoneId: Scalars['ID'];
  694. defaultShippingZoneId: Scalars['ID'];
  695. };
  696. export type UpdateChannelInput = {
  697. id: Scalars['ID'];
  698. code?: Maybe<Scalars['String']>;
  699. token?: Maybe<Scalars['String']>;
  700. defaultLanguageCode?: Maybe<LanguageCode>;
  701. pricesIncludeTax?: Maybe<Scalars['Boolean']>;
  702. currencyCode?: Maybe<CurrencyCode>;
  703. defaultTaxZoneId?: Maybe<Scalars['ID']>;
  704. defaultShippingZoneId?: Maybe<Scalars['ID']>;
  705. };
  706. /** Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings */
  707. export type LanguageNotAvailableError = ErrorResult & {
  708. __typename?: 'LanguageNotAvailableError';
  709. errorCode: ErrorCode;
  710. message: Scalars['String'];
  711. languageCode: Scalars['String'];
  712. };
  713. export type CreateChannelResult = Channel | LanguageNotAvailableError;
  714. export type UpdateChannelResult = Channel | LanguageNotAvailableError;
  715. export type Collection = Node & {
  716. __typename?: 'Collection';
  717. isPrivate: Scalars['Boolean'];
  718. id: Scalars['ID'];
  719. createdAt: Scalars['DateTime'];
  720. updatedAt: Scalars['DateTime'];
  721. languageCode?: Maybe<LanguageCode>;
  722. name: Scalars['String'];
  723. slug: Scalars['String'];
  724. breadcrumbs: Array<CollectionBreadcrumb>;
  725. position: Scalars['Int'];
  726. description: Scalars['String'];
  727. featuredAsset?: Maybe<Asset>;
  728. assets: Array<Asset>;
  729. parent?: Maybe<Collection>;
  730. children?: Maybe<Array<Collection>>;
  731. filters: Array<ConfigurableOperation>;
  732. translations: Array<CollectionTranslation>;
  733. productVariants: ProductVariantList;
  734. customFields?: Maybe<Scalars['JSON']>;
  735. };
  736. export type CollectionProductVariantsArgs = {
  737. options?: Maybe<ProductVariantListOptions>;
  738. };
  739. export type MoveCollectionInput = {
  740. collectionId: Scalars['ID'];
  741. parentId: Scalars['ID'];
  742. index: Scalars['Int'];
  743. };
  744. export type CreateCollectionTranslationInput = {
  745. languageCode: LanguageCode;
  746. name: Scalars['String'];
  747. slug: Scalars['String'];
  748. description: Scalars['String'];
  749. customFields?: Maybe<Scalars['JSON']>;
  750. };
  751. export type UpdateCollectionTranslationInput = {
  752. id?: Maybe<Scalars['ID']>;
  753. languageCode: LanguageCode;
  754. name?: Maybe<Scalars['String']>;
  755. slug?: Maybe<Scalars['String']>;
  756. description?: Maybe<Scalars['String']>;
  757. customFields?: Maybe<Scalars['JSON']>;
  758. };
  759. export type CreateCollectionInput = {
  760. isPrivate?: Maybe<Scalars['Boolean']>;
  761. featuredAssetId?: Maybe<Scalars['ID']>;
  762. assetIds?: Maybe<Array<Scalars['ID']>>;
  763. parentId?: Maybe<Scalars['ID']>;
  764. filters: Array<ConfigurableOperationInput>;
  765. translations: Array<CreateCollectionTranslationInput>;
  766. customFields?: Maybe<Scalars['JSON']>;
  767. };
  768. export type UpdateCollectionInput = {
  769. id: Scalars['ID'];
  770. isPrivate?: Maybe<Scalars['Boolean']>;
  771. featuredAssetId?: Maybe<Scalars['ID']>;
  772. parentId?: Maybe<Scalars['ID']>;
  773. assetIds?: Maybe<Array<Scalars['ID']>>;
  774. filters?: Maybe<Array<ConfigurableOperationInput>>;
  775. translations?: Maybe<Array<UpdateCollectionTranslationInput>>;
  776. customFields?: Maybe<Scalars['JSON']>;
  777. };
  778. export type CountryTranslationInput = {
  779. id?: Maybe<Scalars['ID']>;
  780. languageCode: LanguageCode;
  781. name?: Maybe<Scalars['String']>;
  782. };
  783. export type CreateCountryInput = {
  784. code: Scalars['String'];
  785. translations: Array<CountryTranslationInput>;
  786. enabled: Scalars['Boolean'];
  787. };
  788. export type UpdateCountryInput = {
  789. id: Scalars['ID'];
  790. code?: Maybe<Scalars['String']>;
  791. translations?: Maybe<Array<CountryTranslationInput>>;
  792. enabled?: Maybe<Scalars['Boolean']>;
  793. };
  794. export type CustomerGroupList = PaginatedList & {
  795. __typename?: 'CustomerGroupList';
  796. items: Array<CustomerGroup>;
  797. totalItems: Scalars['Int'];
  798. };
  799. export type CreateCustomerGroupInput = {
  800. name: Scalars['String'];
  801. customerIds?: Maybe<Array<Scalars['ID']>>;
  802. };
  803. export type UpdateCustomerGroupInput = {
  804. id: Scalars['ID'];
  805. name?: Maybe<Scalars['String']>;
  806. };
  807. export type Customer = Node & {
  808. __typename?: 'Customer';
  809. groups: Array<CustomerGroup>;
  810. history: HistoryEntryList;
  811. id: Scalars['ID'];
  812. createdAt: Scalars['DateTime'];
  813. updatedAt: Scalars['DateTime'];
  814. title?: Maybe<Scalars['String']>;
  815. firstName: Scalars['String'];
  816. lastName: Scalars['String'];
  817. phoneNumber?: Maybe<Scalars['String']>;
  818. emailAddress: Scalars['String'];
  819. addresses?: Maybe<Array<Address>>;
  820. orders: OrderList;
  821. user?: Maybe<User>;
  822. customFields?: Maybe<Scalars['JSON']>;
  823. };
  824. export type CustomerHistoryArgs = {
  825. options?: Maybe<HistoryEntryListOptions>;
  826. };
  827. export type CustomerOrdersArgs = {
  828. options?: Maybe<OrderListOptions>;
  829. };
  830. export type UpdateCustomerInput = {
  831. id: Scalars['ID'];
  832. title?: Maybe<Scalars['String']>;
  833. firstName?: Maybe<Scalars['String']>;
  834. lastName?: Maybe<Scalars['String']>;
  835. phoneNumber?: Maybe<Scalars['String']>;
  836. emailAddress?: Maybe<Scalars['String']>;
  837. customFields?: Maybe<Scalars['JSON']>;
  838. };
  839. export type AddNoteToCustomerInput = {
  840. id: Scalars['ID'];
  841. note: Scalars['String'];
  842. isPublic: Scalars['Boolean'];
  843. };
  844. export type UpdateCustomerNoteInput = {
  845. noteId: Scalars['ID'];
  846. note: Scalars['String'];
  847. };
  848. export type CreateCustomerResult = Customer | EmailAddressConflictError;
  849. export type UpdateCustomerResult = Customer | EmailAddressConflictError;
  850. export type Facet = Node & {
  851. __typename?: 'Facet';
  852. isPrivate: Scalars['Boolean'];
  853. id: Scalars['ID'];
  854. createdAt: Scalars['DateTime'];
  855. updatedAt: Scalars['DateTime'];
  856. languageCode: LanguageCode;
  857. name: Scalars['String'];
  858. code: Scalars['String'];
  859. values: Array<FacetValue>;
  860. translations: Array<FacetTranslation>;
  861. customFields?: Maybe<Scalars['JSON']>;
  862. };
  863. export type FacetTranslationInput = {
  864. id?: Maybe<Scalars['ID']>;
  865. languageCode: LanguageCode;
  866. name?: Maybe<Scalars['String']>;
  867. customFields?: Maybe<Scalars['JSON']>;
  868. };
  869. export type CreateFacetInput = {
  870. code: Scalars['String'];
  871. isPrivate: Scalars['Boolean'];
  872. translations: Array<FacetTranslationInput>;
  873. values?: Maybe<Array<CreateFacetValueWithFacetInput>>;
  874. customFields?: Maybe<Scalars['JSON']>;
  875. };
  876. export type UpdateFacetInput = {
  877. id: Scalars['ID'];
  878. isPrivate?: Maybe<Scalars['Boolean']>;
  879. code?: Maybe<Scalars['String']>;
  880. translations?: Maybe<Array<FacetTranslationInput>>;
  881. customFields?: Maybe<Scalars['JSON']>;
  882. };
  883. export type FacetValueTranslationInput = {
  884. id?: Maybe<Scalars['ID']>;
  885. languageCode: LanguageCode;
  886. name?: Maybe<Scalars['String']>;
  887. customFields?: Maybe<Scalars['JSON']>;
  888. };
  889. export type CreateFacetValueWithFacetInput = {
  890. code: Scalars['String'];
  891. translations: Array<FacetValueTranslationInput>;
  892. };
  893. export type CreateFacetValueInput = {
  894. facetId: Scalars['ID'];
  895. code: Scalars['String'];
  896. translations: Array<FacetValueTranslationInput>;
  897. customFields?: Maybe<Scalars['JSON']>;
  898. };
  899. export type UpdateFacetValueInput = {
  900. id: Scalars['ID'];
  901. code?: Maybe<Scalars['String']>;
  902. translations?: Maybe<Array<FacetValueTranslationInput>>;
  903. customFields?: Maybe<Scalars['JSON']>;
  904. };
  905. export type Fulfillment = Node & {
  906. __typename?: 'Fulfillment';
  907. nextStates: Array<Scalars['String']>;
  908. id: Scalars['ID'];
  909. createdAt: Scalars['DateTime'];
  910. updatedAt: Scalars['DateTime'];
  911. orderItems: Array<OrderItem>;
  912. state: Scalars['String'];
  913. method: Scalars['String'];
  914. trackingCode?: Maybe<Scalars['String']>;
  915. customFields?: Maybe<Scalars['JSON']>;
  916. };
  917. export type UpdateGlobalSettingsInput = {
  918. availableLanguages?: Maybe<Array<LanguageCode>>;
  919. trackInventory?: Maybe<Scalars['Boolean']>;
  920. outOfStockThreshold?: Maybe<Scalars['Int']>;
  921. customFields?: Maybe<Scalars['JSON']>;
  922. };
  923. /**
  924. * Returned when the default LanguageCode of a Channel is no longer found in the `availableLanguages`
  925. * of the GlobalSettings
  926. */
  927. export type ChannelDefaultLanguageError = ErrorResult & {
  928. __typename?: 'ChannelDefaultLanguageError';
  929. errorCode: ErrorCode;
  930. message: Scalars['String'];
  931. language: Scalars['String'];
  932. channelCode: Scalars['String'];
  933. };
  934. export type UpdateGlobalSettingsResult = GlobalSettings | ChannelDefaultLanguageError;
  935. /**
  936. * @description
  937. * The state of a Job in the JobQueue
  938. *
  939. * @docsCategory common
  940. */
  941. export enum JobState {
  942. PENDING = 'PENDING',
  943. RUNNING = 'RUNNING',
  944. COMPLETED = 'COMPLETED',
  945. RETRYING = 'RETRYING',
  946. FAILED = 'FAILED'
  947. }
  948. export type JobList = PaginatedList & {
  949. __typename?: 'JobList';
  950. items: Array<Job>;
  951. totalItems: Scalars['Int'];
  952. };
  953. export type Job = Node & {
  954. __typename?: 'Job';
  955. id: Scalars['ID'];
  956. createdAt: Scalars['DateTime'];
  957. startedAt?: Maybe<Scalars['DateTime']>;
  958. settledAt?: Maybe<Scalars['DateTime']>;
  959. queueName: Scalars['String'];
  960. state: JobState;
  961. progress: Scalars['Float'];
  962. data?: Maybe<Scalars['JSON']>;
  963. result?: Maybe<Scalars['JSON']>;
  964. error?: Maybe<Scalars['JSON']>;
  965. isSettled: Scalars['Boolean'];
  966. duration: Scalars['Int'];
  967. };
  968. export type JobQueue = {
  969. __typename?: 'JobQueue';
  970. name: Scalars['String'];
  971. running: Scalars['Boolean'];
  972. };
  973. export type Order = Node & {
  974. __typename?: 'Order';
  975. nextStates: Array<Scalars['String']>;
  976. id: Scalars['ID'];
  977. createdAt: Scalars['DateTime'];
  978. updatedAt: Scalars['DateTime'];
  979. /**
  980. * The date & time that the Order was placed, i.e. the Customer
  981. * completed the checkout and the Order is no longer "active"
  982. */
  983. orderPlacedAt?: Maybe<Scalars['DateTime']>;
  984. /** A unique code for the Order */
  985. code: Scalars['String'];
  986. state: Scalars['String'];
  987. /** An order is active as long as the payment process has not been completed */
  988. active: Scalars['Boolean'];
  989. customer?: Maybe<Customer>;
  990. shippingAddress?: Maybe<OrderAddress>;
  991. billingAddress?: Maybe<OrderAddress>;
  992. lines: Array<OrderLine>;
  993. /** Order-level adjustments to the order total, such as discounts from promotions */
  994. adjustments: Array<Adjustment>;
  995. couponCodes: Array<Scalars['String']>;
  996. /** Promotions applied to the order. Only gets populated after the payment process has completed. */
  997. promotions: Array<Promotion>;
  998. payments?: Maybe<Array<Payment>>;
  999. fulfillments?: Maybe<Array<Fulfillment>>;
  1000. totalQuantity: Scalars['Int'];
  1001. subTotalBeforeTax: Scalars['Int'];
  1002. /** The subTotal is the total of the OrderLines, before order-level promotions and shipping has been applied. */
  1003. subTotal: Scalars['Int'];
  1004. currencyCode: CurrencyCode;
  1005. shipping: Scalars['Int'];
  1006. shippingWithTax: Scalars['Int'];
  1007. shippingMethod?: Maybe<ShippingMethod>;
  1008. totalBeforeTax: Scalars['Int'];
  1009. total: Scalars['Int'];
  1010. taxSummary: Array<OrderTaxSummary>;
  1011. history: HistoryEntryList;
  1012. customFields?: Maybe<Scalars['JSON']>;
  1013. };
  1014. export type OrderHistoryArgs = {
  1015. options?: Maybe<HistoryEntryListOptions>;
  1016. };
  1017. export type UpdateOrderInput = {
  1018. id: Scalars['ID'];
  1019. customFields?: Maybe<Scalars['JSON']>;
  1020. };
  1021. export type FulfillOrderInput = {
  1022. lines: Array<OrderLineInput>;
  1023. method: Scalars['String'];
  1024. trackingCode?: Maybe<Scalars['String']>;
  1025. };
  1026. export type CancelOrderInput = {
  1027. /** The id of the order to be cancelled */
  1028. orderId: Scalars['ID'];
  1029. /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */
  1030. lines?: Maybe<Array<OrderLineInput>>;
  1031. reason?: Maybe<Scalars['String']>;
  1032. };
  1033. export type RefundOrderInput = {
  1034. lines: Array<OrderLineInput>;
  1035. shipping: Scalars['Int'];
  1036. adjustment: Scalars['Int'];
  1037. paymentId: Scalars['ID'];
  1038. reason?: Maybe<Scalars['String']>;
  1039. };
  1040. export type OrderLineInput = {
  1041. orderLineId: Scalars['ID'];
  1042. quantity: Scalars['Int'];
  1043. };
  1044. export type SettleRefundInput = {
  1045. id: Scalars['ID'];
  1046. transactionId: Scalars['String'];
  1047. };
  1048. export type AddNoteToOrderInput = {
  1049. id: Scalars['ID'];
  1050. note: Scalars['String'];
  1051. isPublic: Scalars['Boolean'];
  1052. };
  1053. export type UpdateOrderNoteInput = {
  1054. noteId: Scalars['ID'];
  1055. note?: Maybe<Scalars['String']>;
  1056. isPublic?: Maybe<Scalars['Boolean']>;
  1057. };
  1058. /** Returned if the Payment settlement fails */
  1059. export type SettlePaymentError = ErrorResult & {
  1060. __typename?: 'SettlePaymentError';
  1061. errorCode: ErrorCode;
  1062. message: Scalars['String'];
  1063. paymentErrorMessage: Scalars['String'];
  1064. };
  1065. /** Returned if no OrderLines have been specified for the operation */
  1066. export type EmptyOrderLineSelectionError = ErrorResult & {
  1067. __typename?: 'EmptyOrderLineSelectionError';
  1068. errorCode: ErrorCode;
  1069. message: Scalars['String'];
  1070. };
  1071. /** Returned if the specified items are already part of a Fulfillment */
  1072. export type ItemsAlreadyFulfilledError = ErrorResult & {
  1073. __typename?: 'ItemsAlreadyFulfilledError';
  1074. errorCode: ErrorCode;
  1075. message: Scalars['String'];
  1076. };
  1077. /**
  1078. * Returned if attempting to create a Fulfillment when there is insufficient
  1079. * stockOnHand of a ProductVariant to satisfy the requested quantity.
  1080. */
  1081. export type InsufficientStockOnHandError = ErrorResult & {
  1082. __typename?: 'InsufficientStockOnHandError';
  1083. errorCode: ErrorCode;
  1084. message: Scalars['String'];
  1085. productVariantId: Scalars['ID'];
  1086. productVariantName: Scalars['String'];
  1087. stockOnHand: Scalars['Int'];
  1088. };
  1089. /** Returned if an operation has specified OrderLines from multiple Orders */
  1090. export type MultipleOrderError = ErrorResult & {
  1091. __typename?: 'MultipleOrderError';
  1092. errorCode: ErrorCode;
  1093. message: Scalars['String'];
  1094. };
  1095. /** Returned if an attempting to cancel lines from an Order which is still active */
  1096. export type CancelActiveOrderError = ErrorResult & {
  1097. __typename?: 'CancelActiveOrderError';
  1098. errorCode: ErrorCode;
  1099. message: Scalars['String'];
  1100. orderState: Scalars['String'];
  1101. };
  1102. /** Returned if an attempting to refund a Payment against OrderLines from a different Order */
  1103. export type PaymentOrderMismatchError = ErrorResult & {
  1104. __typename?: 'PaymentOrderMismatchError';
  1105. errorCode: ErrorCode;
  1106. message: Scalars['String'];
  1107. };
  1108. /** Returned if an attempting to refund an Order which is not in the expected state */
  1109. export type RefundOrderStateError = ErrorResult & {
  1110. __typename?: 'RefundOrderStateError';
  1111. errorCode: ErrorCode;
  1112. message: Scalars['String'];
  1113. orderState: Scalars['String'];
  1114. };
  1115. /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */
  1116. export type NothingToRefundError = ErrorResult & {
  1117. __typename?: 'NothingToRefundError';
  1118. errorCode: ErrorCode;
  1119. message: Scalars['String'];
  1120. };
  1121. /** Returned if an attempting to refund an OrderItem which has already been refunded */
  1122. export type AlreadyRefundedError = ErrorResult & {
  1123. __typename?: 'AlreadyRefundedError';
  1124. errorCode: ErrorCode;
  1125. message: Scalars['String'];
  1126. refundId: Scalars['ID'];
  1127. };
  1128. /** Returned if the specified quantity of an OrderLine is greater than the number of items in that line */
  1129. export type QuantityTooGreatError = ErrorResult & {
  1130. __typename?: 'QuantityTooGreatError';
  1131. errorCode: ErrorCode;
  1132. message: Scalars['String'];
  1133. };
  1134. /** Returned when there is an error in transitioning the Refund state */
  1135. export type RefundStateTransitionError = ErrorResult & {
  1136. __typename?: 'RefundStateTransitionError';
  1137. errorCode: ErrorCode;
  1138. message: Scalars['String'];
  1139. transitionError: Scalars['String'];
  1140. fromState: Scalars['String'];
  1141. toState: Scalars['String'];
  1142. };
  1143. /** Returned when there is an error in transitioning the Payment state */
  1144. export type PaymentStateTransitionError = ErrorResult & {
  1145. __typename?: 'PaymentStateTransitionError';
  1146. errorCode: ErrorCode;
  1147. message: Scalars['String'];
  1148. transitionError: Scalars['String'];
  1149. fromState: Scalars['String'];
  1150. toState: Scalars['String'];
  1151. };
  1152. /** Returned when there is an error in transitioning the Fulfillment state */
  1153. export type FulfillmentStateTransitionError = ErrorResult & {
  1154. __typename?: 'FulfillmentStateTransitionError';
  1155. errorCode: ErrorCode;
  1156. message: Scalars['String'];
  1157. transitionError: Scalars['String'];
  1158. fromState: Scalars['String'];
  1159. toState: Scalars['String'];
  1160. };
  1161. export type TransitionOrderToStateResult = Order | OrderStateTransitionError;
  1162. export type SettlePaymentResult = Payment | SettlePaymentError | PaymentStateTransitionError | OrderStateTransitionError;
  1163. export type AddFulfillmentToOrderResult = Fulfillment | EmptyOrderLineSelectionError | ItemsAlreadyFulfilledError | InsufficientStockOnHandError;
  1164. export type CancelOrderResult = Order | EmptyOrderLineSelectionError | QuantityTooGreatError | MultipleOrderError | CancelActiveOrderError | OrderStateTransitionError;
  1165. export type RefundOrderResult = Refund | QuantityTooGreatError | NothingToRefundError | OrderStateTransitionError | MultipleOrderError | PaymentOrderMismatchError | RefundOrderStateError | AlreadyRefundedError | RefundStateTransitionError;
  1166. export type SettleRefundResult = Refund | RefundStateTransitionError;
  1167. export type TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError;
  1168. export type PaymentMethodList = PaginatedList & {
  1169. __typename?: 'PaymentMethodList';
  1170. items: Array<PaymentMethod>;
  1171. totalItems: Scalars['Int'];
  1172. };
  1173. export type UpdatePaymentMethodInput = {
  1174. id: Scalars['ID'];
  1175. code?: Maybe<Scalars['String']>;
  1176. enabled?: Maybe<Scalars['Boolean']>;
  1177. configArgs?: Maybe<Array<ConfigArgInput>>;
  1178. };
  1179. export type ProductOptionGroupTranslationInput = {
  1180. id?: Maybe<Scalars['ID']>;
  1181. languageCode: LanguageCode;
  1182. name?: Maybe<Scalars['String']>;
  1183. customFields?: Maybe<Scalars['JSON']>;
  1184. };
  1185. export type CreateProductOptionGroupInput = {
  1186. code: Scalars['String'];
  1187. translations: Array<ProductOptionGroupTranslationInput>;
  1188. options: Array<CreateGroupOptionInput>;
  1189. customFields?: Maybe<Scalars['JSON']>;
  1190. };
  1191. export type UpdateProductOptionGroupInput = {
  1192. id: Scalars['ID'];
  1193. code?: Maybe<Scalars['String']>;
  1194. translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
  1195. customFields?: Maybe<Scalars['JSON']>;
  1196. };
  1197. export type ProductOptionTranslationInput = {
  1198. id?: Maybe<Scalars['ID']>;
  1199. languageCode: LanguageCode;
  1200. name?: Maybe<Scalars['String']>;
  1201. customFields?: Maybe<Scalars['JSON']>;
  1202. };
  1203. export type CreateGroupOptionInput = {
  1204. code: Scalars['String'];
  1205. translations: Array<ProductOptionGroupTranslationInput>;
  1206. };
  1207. export type CreateProductOptionInput = {
  1208. productOptionGroupId: Scalars['ID'];
  1209. code: Scalars['String'];
  1210. translations: Array<ProductOptionGroupTranslationInput>;
  1211. customFields?: Maybe<Scalars['JSON']>;
  1212. };
  1213. export type UpdateProductOptionInput = {
  1214. id: Scalars['ID'];
  1215. code?: Maybe<Scalars['String']>;
  1216. translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
  1217. customFields?: Maybe<Scalars['JSON']>;
  1218. };
  1219. export type SearchResult = {
  1220. __typename?: 'SearchResult';
  1221. enabled: Scalars['Boolean'];
  1222. /** An array of ids of the Collections in which this result appears */
  1223. channelIds: Array<Scalars['ID']>;
  1224. sku: Scalars['String'];
  1225. slug: Scalars['String'];
  1226. productId: Scalars['ID'];
  1227. productName: Scalars['String'];
  1228. /** @deprecated Use `productAsset.preview` instead */
  1229. productPreview: Scalars['String'];
  1230. productAsset?: Maybe<SearchResultAsset>;
  1231. productVariantId: Scalars['ID'];
  1232. productVariantName: Scalars['String'];
  1233. /** @deprecated Use `productVariantAsset.preview` instead */
  1234. productVariantPreview: Scalars['String'];
  1235. productVariantAsset?: Maybe<SearchResultAsset>;
  1236. price: SearchResultPrice;
  1237. priceWithTax: SearchResultPrice;
  1238. currencyCode: CurrencyCode;
  1239. description: Scalars['String'];
  1240. facetIds: Array<Scalars['ID']>;
  1241. facetValueIds: Array<Scalars['ID']>;
  1242. /** An array of ids of the Collections in which this result appears */
  1243. collectionIds: Array<Scalars['ID']>;
  1244. /** A relevence score for the result. Differs between database implementations */
  1245. score: Scalars['Float'];
  1246. };
  1247. export type Product = Node & {
  1248. __typename?: 'Product';
  1249. enabled: Scalars['Boolean'];
  1250. channels: Array<Channel>;
  1251. id: Scalars['ID'];
  1252. createdAt: Scalars['DateTime'];
  1253. updatedAt: Scalars['DateTime'];
  1254. languageCode: LanguageCode;
  1255. name: Scalars['String'];
  1256. slug: Scalars['String'];
  1257. description: Scalars['String'];
  1258. featuredAsset?: Maybe<Asset>;
  1259. assets: Array<Asset>;
  1260. variants: Array<ProductVariant>;
  1261. optionGroups: Array<ProductOptionGroup>;
  1262. facetValues: Array<FacetValue>;
  1263. translations: Array<ProductTranslation>;
  1264. collections: Array<Collection>;
  1265. customFields?: Maybe<Scalars['JSON']>;
  1266. };
  1267. export type ProductVariant = Node & {
  1268. __typename?: 'ProductVariant';
  1269. enabled: Scalars['Boolean'];
  1270. trackInventory: GlobalFlag;
  1271. stockOnHand: Scalars['Int'];
  1272. stockAllocated: Scalars['Int'];
  1273. outOfStockThreshold: Scalars['Int'];
  1274. useGlobalOutOfStockThreshold: Scalars['Boolean'];
  1275. stockMovements: StockMovementList;
  1276. id: Scalars['ID'];
  1277. product: Product;
  1278. productId: Scalars['ID'];
  1279. createdAt: Scalars['DateTime'];
  1280. updatedAt: Scalars['DateTime'];
  1281. languageCode: LanguageCode;
  1282. sku: Scalars['String'];
  1283. name: Scalars['String'];
  1284. featuredAsset?: Maybe<Asset>;
  1285. assets: Array<Asset>;
  1286. price: Scalars['Int'];
  1287. currencyCode: CurrencyCode;
  1288. priceIncludesTax: Scalars['Boolean'];
  1289. priceWithTax: Scalars['Int'];
  1290. taxRateApplied: TaxRate;
  1291. taxCategory: TaxCategory;
  1292. options: Array<ProductOption>;
  1293. facetValues: Array<FacetValue>;
  1294. translations: Array<ProductVariantTranslation>;
  1295. customFields?: Maybe<Scalars['JSON']>;
  1296. };
  1297. export type ProductVariantStockMovementsArgs = {
  1298. options?: Maybe<StockMovementListOptions>;
  1299. };
  1300. export type StockMovementListOptions = {
  1301. type?: Maybe<StockMovementType>;
  1302. skip?: Maybe<Scalars['Int']>;
  1303. take?: Maybe<Scalars['Int']>;
  1304. };
  1305. export type ProductTranslationInput = {
  1306. id?: Maybe<Scalars['ID']>;
  1307. languageCode: LanguageCode;
  1308. name?: Maybe<Scalars['String']>;
  1309. slug?: Maybe<Scalars['String']>;
  1310. description?: Maybe<Scalars['String']>;
  1311. customFields?: Maybe<Scalars['JSON']>;
  1312. };
  1313. export type CreateProductInput = {
  1314. featuredAssetId?: Maybe<Scalars['ID']>;
  1315. assetIds?: Maybe<Array<Scalars['ID']>>;
  1316. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1317. translations: Array<ProductTranslationInput>;
  1318. customFields?: Maybe<Scalars['JSON']>;
  1319. };
  1320. export type UpdateProductInput = {
  1321. id: Scalars['ID'];
  1322. enabled?: Maybe<Scalars['Boolean']>;
  1323. featuredAssetId?: Maybe<Scalars['ID']>;
  1324. assetIds?: Maybe<Array<Scalars['ID']>>;
  1325. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1326. translations?: Maybe<Array<ProductTranslationInput>>;
  1327. customFields?: Maybe<Scalars['JSON']>;
  1328. };
  1329. export type ProductVariantTranslationInput = {
  1330. id?: Maybe<Scalars['ID']>;
  1331. languageCode: LanguageCode;
  1332. name?: Maybe<Scalars['String']>;
  1333. customFields?: Maybe<Scalars['JSON']>;
  1334. };
  1335. export type CreateProductVariantOptionInput = {
  1336. optionGroupId: Scalars['ID'];
  1337. code: Scalars['String'];
  1338. translations: Array<ProductOptionTranslationInput>;
  1339. };
  1340. export type CreateProductVariantInput = {
  1341. productId: Scalars['ID'];
  1342. translations: Array<ProductVariantTranslationInput>;
  1343. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1344. sku: Scalars['String'];
  1345. price?: Maybe<Scalars['Int']>;
  1346. taxCategoryId?: Maybe<Scalars['ID']>;
  1347. optionIds?: Maybe<Array<Scalars['ID']>>;
  1348. featuredAssetId?: Maybe<Scalars['ID']>;
  1349. assetIds?: Maybe<Array<Scalars['ID']>>;
  1350. stockOnHand?: Maybe<Scalars['Int']>;
  1351. outOfStockThreshold?: Maybe<Scalars['Int']>;
  1352. useGlobalOutOfStockThreshold?: Maybe<Scalars['Boolean']>;
  1353. trackInventory?: Maybe<GlobalFlag>;
  1354. customFields?: Maybe<Scalars['JSON']>;
  1355. };
  1356. export type UpdateProductVariantInput = {
  1357. id: Scalars['ID'];
  1358. enabled?: Maybe<Scalars['Boolean']>;
  1359. translations?: Maybe<Array<ProductVariantTranslationInput>>;
  1360. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1361. sku?: Maybe<Scalars['String']>;
  1362. taxCategoryId?: Maybe<Scalars['ID']>;
  1363. price?: Maybe<Scalars['Int']>;
  1364. featuredAssetId?: Maybe<Scalars['ID']>;
  1365. assetIds?: Maybe<Array<Scalars['ID']>>;
  1366. stockOnHand?: Maybe<Scalars['Int']>;
  1367. outOfStockThreshold?: Maybe<Scalars['Int']>;
  1368. useGlobalOutOfStockThreshold?: Maybe<Scalars['Boolean']>;
  1369. trackInventory?: Maybe<GlobalFlag>;
  1370. customFields?: Maybe<Scalars['JSON']>;
  1371. };
  1372. export type AssignProductsToChannelInput = {
  1373. productIds: Array<Scalars['ID']>;
  1374. channelId: Scalars['ID'];
  1375. priceFactor?: Maybe<Scalars['Float']>;
  1376. };
  1377. export type RemoveProductsFromChannelInput = {
  1378. productIds: Array<Scalars['ID']>;
  1379. channelId: Scalars['ID'];
  1380. };
  1381. export type ProductOptionInUseError = ErrorResult & {
  1382. __typename?: 'ProductOptionInUseError';
  1383. errorCode: ErrorCode;
  1384. message: Scalars['String'];
  1385. optionGroupCode: Scalars['String'];
  1386. productVariantCount: Scalars['Int'];
  1387. };
  1388. export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError;
  1389. export type CreatePromotionInput = {
  1390. name: Scalars['String'];
  1391. enabled: Scalars['Boolean'];
  1392. startsAt?: Maybe<Scalars['DateTime']>;
  1393. endsAt?: Maybe<Scalars['DateTime']>;
  1394. couponCode?: Maybe<Scalars['String']>;
  1395. perCustomerUsageLimit?: Maybe<Scalars['Int']>;
  1396. conditions: Array<ConfigurableOperationInput>;
  1397. actions: Array<ConfigurableOperationInput>;
  1398. };
  1399. export type UpdatePromotionInput = {
  1400. id: Scalars['ID'];
  1401. name?: Maybe<Scalars['String']>;
  1402. enabled?: Maybe<Scalars['Boolean']>;
  1403. startsAt?: Maybe<Scalars['DateTime']>;
  1404. endsAt?: Maybe<Scalars['DateTime']>;
  1405. couponCode?: Maybe<Scalars['String']>;
  1406. perCustomerUsageLimit?: Maybe<Scalars['Int']>;
  1407. conditions?: Maybe<Array<ConfigurableOperationInput>>;
  1408. actions?: Maybe<Array<ConfigurableOperationInput>>;
  1409. };
  1410. /** Returned if a PromotionCondition has neither a couponCode nor any conditions set */
  1411. export type MissingConditionsError = ErrorResult & {
  1412. __typename?: 'MissingConditionsError';
  1413. errorCode: ErrorCode;
  1414. message: Scalars['String'];
  1415. };
  1416. export type CreatePromotionResult = Promotion | MissingConditionsError;
  1417. export type UpdatePromotionResult = Promotion | MissingConditionsError;
  1418. export type CreateRoleInput = {
  1419. code: Scalars['String'];
  1420. description: Scalars['String'];
  1421. permissions: Array<Permission>;
  1422. channelIds?: Maybe<Array<Scalars['ID']>>;
  1423. };
  1424. export type UpdateRoleInput = {
  1425. id: Scalars['ID'];
  1426. code?: Maybe<Scalars['String']>;
  1427. description?: Maybe<Scalars['String']>;
  1428. permissions?: Maybe<Array<Permission>>;
  1429. channelIds?: Maybe<Array<Scalars['ID']>>;
  1430. };
  1431. export type CreateShippingMethodInput = {
  1432. code: Scalars['String'];
  1433. description: Scalars['String'];
  1434. checker: ConfigurableOperationInput;
  1435. calculator: ConfigurableOperationInput;
  1436. customFields?: Maybe<Scalars['JSON']>;
  1437. };
  1438. export type UpdateShippingMethodInput = {
  1439. id: Scalars['ID'];
  1440. code?: Maybe<Scalars['String']>;
  1441. description?: Maybe<Scalars['String']>;
  1442. checker?: Maybe<ConfigurableOperationInput>;
  1443. calculator?: Maybe<ConfigurableOperationInput>;
  1444. customFields?: Maybe<Scalars['JSON']>;
  1445. };
  1446. export type TestShippingMethodInput = {
  1447. checker: ConfigurableOperationInput;
  1448. calculator: ConfigurableOperationInput;
  1449. shippingAddress: CreateAddressInput;
  1450. lines: Array<TestShippingMethodOrderLineInput>;
  1451. };
  1452. export type TestEligibleShippingMethodsInput = {
  1453. shippingAddress: CreateAddressInput;
  1454. lines: Array<TestShippingMethodOrderLineInput>;
  1455. };
  1456. export type TestShippingMethodOrderLineInput = {
  1457. productVariantId: Scalars['ID'];
  1458. quantity: Scalars['Int'];
  1459. };
  1460. export type TestShippingMethodResult = {
  1461. __typename?: 'TestShippingMethodResult';
  1462. eligible: Scalars['Boolean'];
  1463. quote?: Maybe<TestShippingMethodQuote>;
  1464. };
  1465. export type TestShippingMethodQuote = {
  1466. __typename?: 'TestShippingMethodQuote';
  1467. price: Scalars['Int'];
  1468. priceWithTax: Scalars['Int'];
  1469. description: Scalars['String'];
  1470. metadata?: Maybe<Scalars['JSON']>;
  1471. };
  1472. export type CreateTaxCategoryInput = {
  1473. name: Scalars['String'];
  1474. };
  1475. export type UpdateTaxCategoryInput = {
  1476. id: Scalars['ID'];
  1477. name?: Maybe<Scalars['String']>;
  1478. };
  1479. export type CreateTaxRateInput = {
  1480. name: Scalars['String'];
  1481. enabled: Scalars['Boolean'];
  1482. value: Scalars['Float'];
  1483. categoryId: Scalars['ID'];
  1484. zoneId: Scalars['ID'];
  1485. customerGroupId?: Maybe<Scalars['ID']>;
  1486. };
  1487. export type UpdateTaxRateInput = {
  1488. id: Scalars['ID'];
  1489. name?: Maybe<Scalars['String']>;
  1490. value?: Maybe<Scalars['Float']>;
  1491. enabled?: Maybe<Scalars['Boolean']>;
  1492. categoryId?: Maybe<Scalars['ID']>;
  1493. zoneId?: Maybe<Scalars['ID']>;
  1494. customerGroupId?: Maybe<Scalars['ID']>;
  1495. };
  1496. export type CreateZoneInput = {
  1497. name: Scalars['String'];
  1498. memberIds?: Maybe<Array<Scalars['ID']>>;
  1499. };
  1500. export type UpdateZoneInput = {
  1501. id: Scalars['ID'];
  1502. name?: Maybe<Scalars['String']>;
  1503. };
  1504. export enum GlobalFlag {
  1505. TRUE = 'TRUE',
  1506. FALSE = 'FALSE',
  1507. INHERIT = 'INHERIT'
  1508. }
  1509. export enum AdjustmentType {
  1510. TAX = 'TAX',
  1511. PROMOTION = 'PROMOTION',
  1512. SHIPPING = 'SHIPPING',
  1513. REFUND = 'REFUND',
  1514. TAX_REFUND = 'TAX_REFUND',
  1515. PROMOTION_REFUND = 'PROMOTION_REFUND',
  1516. SHIPPING_REFUND = 'SHIPPING_REFUND'
  1517. }
  1518. export type Adjustment = {
  1519. __typename?: 'Adjustment';
  1520. adjustmentSource: Scalars['String'];
  1521. type: AdjustmentType;
  1522. description: Scalars['String'];
  1523. amount: Scalars['Int'];
  1524. };
  1525. export type ConfigArg = {
  1526. __typename?: 'ConfigArg';
  1527. name: Scalars['String'];
  1528. value: Scalars['String'];
  1529. };
  1530. export type ConfigArgDefinition = {
  1531. __typename?: 'ConfigArgDefinition';
  1532. name: Scalars['String'];
  1533. type: Scalars['String'];
  1534. list: Scalars['Boolean'];
  1535. label?: Maybe<Scalars['String']>;
  1536. description?: Maybe<Scalars['String']>;
  1537. ui?: Maybe<Scalars['JSON']>;
  1538. };
  1539. export type ConfigurableOperation = {
  1540. __typename?: 'ConfigurableOperation';
  1541. code: Scalars['String'];
  1542. args: Array<ConfigArg>;
  1543. };
  1544. export type ConfigurableOperationDefinition = {
  1545. __typename?: 'ConfigurableOperationDefinition';
  1546. code: Scalars['String'];
  1547. args: Array<ConfigArgDefinition>;
  1548. description: Scalars['String'];
  1549. };
  1550. export enum DeletionResult {
  1551. /** The entity was successfully deleted */
  1552. DELETED = 'DELETED',
  1553. /** Deletion did not take place, reason given in message */
  1554. NOT_DELETED = 'NOT_DELETED'
  1555. }
  1556. /**
  1557. * @description
  1558. * Permissions for administrators and customers. Used to control access to
  1559. * GraphQL resolvers via the {@link Allow} decorator.
  1560. *
  1561. * @docsCategory common
  1562. */
  1563. export enum Permission {
  1564. /** Authenticated means simply that the user is logged in */
  1565. Authenticated = 'Authenticated',
  1566. /** SuperAdmin has unrestricted access to all operations */
  1567. SuperAdmin = 'SuperAdmin',
  1568. /** Owner means the user owns this entity, e.g. a Customer's own Order */
  1569. Owner = 'Owner',
  1570. /** Public means any unauthenticated user may perform the operation */
  1571. Public = 'Public',
  1572. /** Grants permission to create Catalog */
  1573. CreateCatalog = 'CreateCatalog',
  1574. /** Grants permission to read Catalog */
  1575. ReadCatalog = 'ReadCatalog',
  1576. /** Grants permission to update Catalog */
  1577. UpdateCatalog = 'UpdateCatalog',
  1578. /** Grants permission to delete Catalog */
  1579. DeleteCatalog = 'DeleteCatalog',
  1580. /** Grants permission to create Customer */
  1581. CreateCustomer = 'CreateCustomer',
  1582. /** Grants permission to read Customer */
  1583. ReadCustomer = 'ReadCustomer',
  1584. /** Grants permission to update Customer */
  1585. UpdateCustomer = 'UpdateCustomer',
  1586. /** Grants permission to delete Customer */
  1587. DeleteCustomer = 'DeleteCustomer',
  1588. /** Grants permission to create Administrator */
  1589. CreateAdministrator = 'CreateAdministrator',
  1590. /** Grants permission to read Administrator */
  1591. ReadAdministrator = 'ReadAdministrator',
  1592. /** Grants permission to update Administrator */
  1593. UpdateAdministrator = 'UpdateAdministrator',
  1594. /** Grants permission to delete Administrator */
  1595. DeleteAdministrator = 'DeleteAdministrator',
  1596. /** Grants permission to create Order */
  1597. CreateOrder = 'CreateOrder',
  1598. /** Grants permission to read Order */
  1599. ReadOrder = 'ReadOrder',
  1600. /** Grants permission to update Order */
  1601. UpdateOrder = 'UpdateOrder',
  1602. /** Grants permission to delete Order */
  1603. DeleteOrder = 'DeleteOrder',
  1604. /** Grants permission to create Promotion */
  1605. CreatePromotion = 'CreatePromotion',
  1606. /** Grants permission to read Promotion */
  1607. ReadPromotion = 'ReadPromotion',
  1608. /** Grants permission to update Promotion */
  1609. UpdatePromotion = 'UpdatePromotion',
  1610. /** Grants permission to delete Promotion */
  1611. DeletePromotion = 'DeletePromotion',
  1612. /** Grants permission to create Settings */
  1613. CreateSettings = 'CreateSettings',
  1614. /** Grants permission to read Settings */
  1615. ReadSettings = 'ReadSettings',
  1616. /** Grants permission to update Settings */
  1617. UpdateSettings = 'UpdateSettings',
  1618. /** Grants permission to delete Settings */
  1619. DeleteSettings = 'DeleteSettings'
  1620. }
  1621. export type DeletionResponse = {
  1622. __typename?: 'DeletionResponse';
  1623. result: DeletionResult;
  1624. message?: Maybe<Scalars['String']>;
  1625. };
  1626. export type ConfigArgInput = {
  1627. name: Scalars['String'];
  1628. value: Scalars['String'];
  1629. };
  1630. export type ConfigurableOperationInput = {
  1631. code: Scalars['String'];
  1632. arguments: Array<ConfigArgInput>;
  1633. };
  1634. export type PaginatedList = {
  1635. items: Array<Node>;
  1636. totalItems: Scalars['Int'];
  1637. };
  1638. export type Node = {
  1639. id: Scalars['ID'];
  1640. };
  1641. export enum SortOrder {
  1642. ASC = 'ASC',
  1643. DESC = 'DESC'
  1644. }
  1645. export enum ErrorCode {
  1646. UNKNOWN_ERROR = 'UNKNOWN_ERROR',
  1647. MIME_TYPE_ERROR = 'MIME_TYPE_ERROR',
  1648. LANGUAGE_NOT_AVAILABLE_ERROR = 'LANGUAGE_NOT_AVAILABLE_ERROR',
  1649. CHANNEL_DEFAULT_LANGUAGE_ERROR = 'CHANNEL_DEFAULT_LANGUAGE_ERROR',
  1650. SETTLE_PAYMENT_ERROR = 'SETTLE_PAYMENT_ERROR',
  1651. EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR',
  1652. ITEMS_ALREADY_FULFILLED_ERROR = 'ITEMS_ALREADY_FULFILLED_ERROR',
  1653. INSUFFICIENT_STOCK_ON_HAND_ERROR = 'INSUFFICIENT_STOCK_ON_HAND_ERROR',
  1654. MULTIPLE_ORDER_ERROR = 'MULTIPLE_ORDER_ERROR',
  1655. CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR',
  1656. PAYMENT_ORDER_MISMATCH_ERROR = 'PAYMENT_ORDER_MISMATCH_ERROR',
  1657. REFUND_ORDER_STATE_ERROR = 'REFUND_ORDER_STATE_ERROR',
  1658. NOTHING_TO_REFUND_ERROR = 'NOTHING_TO_REFUND_ERROR',
  1659. ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR',
  1660. QUANTITY_TOO_GREAT_ERROR = 'QUANTITY_TOO_GREAT_ERROR',
  1661. REFUND_STATE_TRANSITION_ERROR = 'REFUND_STATE_TRANSITION_ERROR',
  1662. PAYMENT_STATE_TRANSITION_ERROR = 'PAYMENT_STATE_TRANSITION_ERROR',
  1663. FULFILLMENT_STATE_TRANSITION_ERROR = 'FULFILLMENT_STATE_TRANSITION_ERROR',
  1664. PRODUCT_OPTION_IN_USE_ERROR = 'PRODUCT_OPTION_IN_USE_ERROR',
  1665. MISSING_CONDITIONS_ERROR = 'MISSING_CONDITIONS_ERROR',
  1666. NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR',
  1667. INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR',
  1668. ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR',
  1669. EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR'
  1670. }
  1671. export type ErrorResult = {
  1672. errorCode: ErrorCode;
  1673. message: Scalars['String'];
  1674. };
  1675. export type StringOperators = {
  1676. eq?: Maybe<Scalars['String']>;
  1677. contains?: Maybe<Scalars['String']>;
  1678. in?: Maybe<Array<Scalars['String']>>;
  1679. regex?: Maybe<Scalars['String']>;
  1680. };
  1681. export type BooleanOperators = {
  1682. eq?: Maybe<Scalars['Boolean']>;
  1683. };
  1684. export type NumberRange = {
  1685. start: Scalars['Float'];
  1686. end: Scalars['Float'];
  1687. };
  1688. export type NumberOperators = {
  1689. eq?: Maybe<Scalars['Float']>;
  1690. lt?: Maybe<Scalars['Float']>;
  1691. lte?: Maybe<Scalars['Float']>;
  1692. gt?: Maybe<Scalars['Float']>;
  1693. gte?: Maybe<Scalars['Float']>;
  1694. between?: Maybe<NumberRange>;
  1695. };
  1696. export type DateRange = {
  1697. start: Scalars['DateTime'];
  1698. end: Scalars['DateTime'];
  1699. };
  1700. export type DateOperators = {
  1701. eq?: Maybe<Scalars['DateTime']>;
  1702. before?: Maybe<Scalars['DateTime']>;
  1703. after?: Maybe<Scalars['DateTime']>;
  1704. between?: Maybe<DateRange>;
  1705. };
  1706. export enum LogicalOperator {
  1707. AND = 'AND',
  1708. OR = 'OR'
  1709. }
  1710. export type SearchInput = {
  1711. term?: Maybe<Scalars['String']>;
  1712. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1713. facetValueOperator?: Maybe<LogicalOperator>;
  1714. collectionId?: Maybe<Scalars['ID']>;
  1715. collectionSlug?: Maybe<Scalars['String']>;
  1716. groupByProduct?: Maybe<Scalars['Boolean']>;
  1717. take?: Maybe<Scalars['Int']>;
  1718. skip?: Maybe<Scalars['Int']>;
  1719. sort?: Maybe<SearchResultSortParameter>;
  1720. };
  1721. export type SearchResultSortParameter = {
  1722. name?: Maybe<SortOrder>;
  1723. price?: Maybe<SortOrder>;
  1724. };
  1725. export type CreateCustomerInput = {
  1726. title?: Maybe<Scalars['String']>;
  1727. firstName: Scalars['String'];
  1728. lastName: Scalars['String'];
  1729. phoneNumber?: Maybe<Scalars['String']>;
  1730. emailAddress: Scalars['String'];
  1731. customFields?: Maybe<Scalars['JSON']>;
  1732. };
  1733. export type CreateAddressInput = {
  1734. fullName?: Maybe<Scalars['String']>;
  1735. company?: Maybe<Scalars['String']>;
  1736. streetLine1: Scalars['String'];
  1737. streetLine2?: Maybe<Scalars['String']>;
  1738. city?: Maybe<Scalars['String']>;
  1739. province?: Maybe<Scalars['String']>;
  1740. postalCode?: Maybe<Scalars['String']>;
  1741. countryCode: Scalars['String'];
  1742. phoneNumber?: Maybe<Scalars['String']>;
  1743. defaultShippingAddress?: Maybe<Scalars['Boolean']>;
  1744. defaultBillingAddress?: Maybe<Scalars['Boolean']>;
  1745. customFields?: Maybe<Scalars['JSON']>;
  1746. };
  1747. export type UpdateAddressInput = {
  1748. id: Scalars['ID'];
  1749. fullName?: Maybe<Scalars['String']>;
  1750. company?: Maybe<Scalars['String']>;
  1751. streetLine1?: Maybe<Scalars['String']>;
  1752. streetLine2?: Maybe<Scalars['String']>;
  1753. city?: Maybe<Scalars['String']>;
  1754. province?: Maybe<Scalars['String']>;
  1755. postalCode?: Maybe<Scalars['String']>;
  1756. countryCode?: Maybe<Scalars['String']>;
  1757. phoneNumber?: Maybe<Scalars['String']>;
  1758. defaultShippingAddress?: Maybe<Scalars['Boolean']>;
  1759. defaultBillingAddress?: Maybe<Scalars['Boolean']>;
  1760. customFields?: Maybe<Scalars['JSON']>;
  1761. };
  1762. /** Indicates that an operation succeeded, where we do not want to return any more specific information. */
  1763. export type Success = {
  1764. __typename?: 'Success';
  1765. success: Scalars['Boolean'];
  1766. };
  1767. /** Retured when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
  1768. export type NativeAuthStrategyError = ErrorResult & {
  1769. __typename?: 'NativeAuthStrategyError';
  1770. errorCode: ErrorCode;
  1771. message: Scalars['String'];
  1772. };
  1773. /** Returned if the user authentication credentials are not valid */
  1774. export type InvalidCredentialsError = ErrorResult & {
  1775. __typename?: 'InvalidCredentialsError';
  1776. errorCode: ErrorCode;
  1777. message: Scalars['String'];
  1778. authenticationError: Scalars['String'];
  1779. };
  1780. /** Returned if there is an error in transitioning the Order state */
  1781. export type OrderStateTransitionError = ErrorResult & {
  1782. __typename?: 'OrderStateTransitionError';
  1783. errorCode: ErrorCode;
  1784. message: Scalars['String'];
  1785. transitionError: Scalars['String'];
  1786. fromState: Scalars['String'];
  1787. toState: Scalars['String'];
  1788. };
  1789. /** Retured when attemting to create a Customer with an email address already registered to an existing User. */
  1790. export type EmailAddressConflictError = ErrorResult & {
  1791. __typename?: 'EmailAddressConflictError';
  1792. errorCode: ErrorCode;
  1793. message: Scalars['String'];
  1794. };
  1795. /**
  1796. * @description
  1797. * ISO 4217 currency code
  1798. *
  1799. * @docsCategory common
  1800. */
  1801. export enum CurrencyCode {
  1802. /** United Arab Emirates dirham */
  1803. AED = 'AED',
  1804. /** Afghan afghani */
  1805. AFN = 'AFN',
  1806. /** Albanian lek */
  1807. ALL = 'ALL',
  1808. /** Armenian dram */
  1809. AMD = 'AMD',
  1810. /** Netherlands Antillean guilder */
  1811. ANG = 'ANG',
  1812. /** Angolan kwanza */
  1813. AOA = 'AOA',
  1814. /** Argentine peso */
  1815. ARS = 'ARS',
  1816. /** Australian dollar */
  1817. AUD = 'AUD',
  1818. /** Aruban florin */
  1819. AWG = 'AWG',
  1820. /** Azerbaijani manat */
  1821. AZN = 'AZN',
  1822. /** Bosnia and Herzegovina convertible mark */
  1823. BAM = 'BAM',
  1824. /** Barbados dollar */
  1825. BBD = 'BBD',
  1826. /** Bangladeshi taka */
  1827. BDT = 'BDT',
  1828. /** Bulgarian lev */
  1829. BGN = 'BGN',
  1830. /** Bahraini dinar */
  1831. BHD = 'BHD',
  1832. /** Burundian franc */
  1833. BIF = 'BIF',
  1834. /** Bermudian dollar */
  1835. BMD = 'BMD',
  1836. /** Brunei dollar */
  1837. BND = 'BND',
  1838. /** Boliviano */
  1839. BOB = 'BOB',
  1840. /** Brazilian real */
  1841. BRL = 'BRL',
  1842. /** Bahamian dollar */
  1843. BSD = 'BSD',
  1844. /** Bhutanese ngultrum */
  1845. BTN = 'BTN',
  1846. /** Botswana pula */
  1847. BWP = 'BWP',
  1848. /** Belarusian ruble */
  1849. BYN = 'BYN',
  1850. /** Belize dollar */
  1851. BZD = 'BZD',
  1852. /** Canadian dollar */
  1853. CAD = 'CAD',
  1854. /** Congolese franc */
  1855. CDF = 'CDF',
  1856. /** Swiss franc */
  1857. CHF = 'CHF',
  1858. /** Chilean peso */
  1859. CLP = 'CLP',
  1860. /** Renminbi (Chinese) yuan */
  1861. CNY = 'CNY',
  1862. /** Colombian peso */
  1863. COP = 'COP',
  1864. /** Costa Rican colon */
  1865. CRC = 'CRC',
  1866. /** Cuban convertible peso */
  1867. CUC = 'CUC',
  1868. /** Cuban peso */
  1869. CUP = 'CUP',
  1870. /** Cape Verde escudo */
  1871. CVE = 'CVE',
  1872. /** Czech koruna */
  1873. CZK = 'CZK',
  1874. /** Djiboutian franc */
  1875. DJF = 'DJF',
  1876. /** Danish krone */
  1877. DKK = 'DKK',
  1878. /** Dominican peso */
  1879. DOP = 'DOP',
  1880. /** Algerian dinar */
  1881. DZD = 'DZD',
  1882. /** Egyptian pound */
  1883. EGP = 'EGP',
  1884. /** Eritrean nakfa */
  1885. ERN = 'ERN',
  1886. /** Ethiopian birr */
  1887. ETB = 'ETB',
  1888. /** Euro */
  1889. EUR = 'EUR',
  1890. /** Fiji dollar */
  1891. FJD = 'FJD',
  1892. /** Falkland Islands pound */
  1893. FKP = 'FKP',
  1894. /** Pound sterling */
  1895. GBP = 'GBP',
  1896. /** Georgian lari */
  1897. GEL = 'GEL',
  1898. /** Ghanaian cedi */
  1899. GHS = 'GHS',
  1900. /** Gibraltar pound */
  1901. GIP = 'GIP',
  1902. /** Gambian dalasi */
  1903. GMD = 'GMD',
  1904. /** Guinean franc */
  1905. GNF = 'GNF',
  1906. /** Guatemalan quetzal */
  1907. GTQ = 'GTQ',
  1908. /** Guyanese dollar */
  1909. GYD = 'GYD',
  1910. /** Hong Kong dollar */
  1911. HKD = 'HKD',
  1912. /** Honduran lempira */
  1913. HNL = 'HNL',
  1914. /** Croatian kuna */
  1915. HRK = 'HRK',
  1916. /** Haitian gourde */
  1917. HTG = 'HTG',
  1918. /** Hungarian forint */
  1919. HUF = 'HUF',
  1920. /** Indonesian rupiah */
  1921. IDR = 'IDR',
  1922. /** Israeli new shekel */
  1923. ILS = 'ILS',
  1924. /** Indian rupee */
  1925. INR = 'INR',
  1926. /** Iraqi dinar */
  1927. IQD = 'IQD',
  1928. /** Iranian rial */
  1929. IRR = 'IRR',
  1930. /** Icelandic króna */
  1931. ISK = 'ISK',
  1932. /** Jamaican dollar */
  1933. JMD = 'JMD',
  1934. /** Jordanian dinar */
  1935. JOD = 'JOD',
  1936. /** Japanese yen */
  1937. JPY = 'JPY',
  1938. /** Kenyan shilling */
  1939. KES = 'KES',
  1940. /** Kyrgyzstani som */
  1941. KGS = 'KGS',
  1942. /** Cambodian riel */
  1943. KHR = 'KHR',
  1944. /** Comoro franc */
  1945. KMF = 'KMF',
  1946. /** North Korean won */
  1947. KPW = 'KPW',
  1948. /** South Korean won */
  1949. KRW = 'KRW',
  1950. /** Kuwaiti dinar */
  1951. KWD = 'KWD',
  1952. /** Cayman Islands dollar */
  1953. KYD = 'KYD',
  1954. /** Kazakhstani tenge */
  1955. KZT = 'KZT',
  1956. /** Lao kip */
  1957. LAK = 'LAK',
  1958. /** Lebanese pound */
  1959. LBP = 'LBP',
  1960. /** Sri Lankan rupee */
  1961. LKR = 'LKR',
  1962. /** Liberian dollar */
  1963. LRD = 'LRD',
  1964. /** Lesotho loti */
  1965. LSL = 'LSL',
  1966. /** Libyan dinar */
  1967. LYD = 'LYD',
  1968. /** Moroccan dirham */
  1969. MAD = 'MAD',
  1970. /** Moldovan leu */
  1971. MDL = 'MDL',
  1972. /** Malagasy ariary */
  1973. MGA = 'MGA',
  1974. /** Macedonian denar */
  1975. MKD = 'MKD',
  1976. /** Myanmar kyat */
  1977. MMK = 'MMK',
  1978. /** Mongolian tögrög */
  1979. MNT = 'MNT',
  1980. /** Macanese pataca */
  1981. MOP = 'MOP',
  1982. /** Mauritanian ouguiya */
  1983. MRU = 'MRU',
  1984. /** Mauritian rupee */
  1985. MUR = 'MUR',
  1986. /** Maldivian rufiyaa */
  1987. MVR = 'MVR',
  1988. /** Malawian kwacha */
  1989. MWK = 'MWK',
  1990. /** Mexican peso */
  1991. MXN = 'MXN',
  1992. /** Malaysian ringgit */
  1993. MYR = 'MYR',
  1994. /** Mozambican metical */
  1995. MZN = 'MZN',
  1996. /** Namibian dollar */
  1997. NAD = 'NAD',
  1998. /** Nigerian naira */
  1999. NGN = 'NGN',
  2000. /** Nicaraguan córdoba */
  2001. NIO = 'NIO',
  2002. /** Norwegian krone */
  2003. NOK = 'NOK',
  2004. /** Nepalese rupee */
  2005. NPR = 'NPR',
  2006. /** New Zealand dollar */
  2007. NZD = 'NZD',
  2008. /** Omani rial */
  2009. OMR = 'OMR',
  2010. /** Panamanian balboa */
  2011. PAB = 'PAB',
  2012. /** Peruvian sol */
  2013. PEN = 'PEN',
  2014. /** Papua New Guinean kina */
  2015. PGK = 'PGK',
  2016. /** Philippine peso */
  2017. PHP = 'PHP',
  2018. /** Pakistani rupee */
  2019. PKR = 'PKR',
  2020. /** Polish złoty */
  2021. PLN = 'PLN',
  2022. /** Paraguayan guaraní */
  2023. PYG = 'PYG',
  2024. /** Qatari riyal */
  2025. QAR = 'QAR',
  2026. /** Romanian leu */
  2027. RON = 'RON',
  2028. /** Serbian dinar */
  2029. RSD = 'RSD',
  2030. /** Russian ruble */
  2031. RUB = 'RUB',
  2032. /** Rwandan franc */
  2033. RWF = 'RWF',
  2034. /** Saudi riyal */
  2035. SAR = 'SAR',
  2036. /** Solomon Islands dollar */
  2037. SBD = 'SBD',
  2038. /** Seychelles rupee */
  2039. SCR = 'SCR',
  2040. /** Sudanese pound */
  2041. SDG = 'SDG',
  2042. /** Swedish krona/kronor */
  2043. SEK = 'SEK',
  2044. /** Singapore dollar */
  2045. SGD = 'SGD',
  2046. /** Saint Helena pound */
  2047. SHP = 'SHP',
  2048. /** Sierra Leonean leone */
  2049. SLL = 'SLL',
  2050. /** Somali shilling */
  2051. SOS = 'SOS',
  2052. /** Surinamese dollar */
  2053. SRD = 'SRD',
  2054. /** South Sudanese pound */
  2055. SSP = 'SSP',
  2056. /** São Tomé and Príncipe dobra */
  2057. STN = 'STN',
  2058. /** Salvadoran colón */
  2059. SVC = 'SVC',
  2060. /** Syrian pound */
  2061. SYP = 'SYP',
  2062. /** Swazi lilangeni */
  2063. SZL = 'SZL',
  2064. /** Thai baht */
  2065. THB = 'THB',
  2066. /** Tajikistani somoni */
  2067. TJS = 'TJS',
  2068. /** Turkmenistan manat */
  2069. TMT = 'TMT',
  2070. /** Tunisian dinar */
  2071. TND = 'TND',
  2072. /** Tongan paʻanga */
  2073. TOP = 'TOP',
  2074. /** Turkish lira */
  2075. TRY = 'TRY',
  2076. /** Trinidad and Tobago dollar */
  2077. TTD = 'TTD',
  2078. /** New Taiwan dollar */
  2079. TWD = 'TWD',
  2080. /** Tanzanian shilling */
  2081. TZS = 'TZS',
  2082. /** Ukrainian hryvnia */
  2083. UAH = 'UAH',
  2084. /** Ugandan shilling */
  2085. UGX = 'UGX',
  2086. /** United States dollar */
  2087. USD = 'USD',
  2088. /** Uruguayan peso */
  2089. UYU = 'UYU',
  2090. /** Uzbekistan som */
  2091. UZS = 'UZS',
  2092. /** Venezuelan bolívar soberano */
  2093. VES = 'VES',
  2094. /** Vietnamese đồng */
  2095. VND = 'VND',
  2096. /** Vanuatu vatu */
  2097. VUV = 'VUV',
  2098. /** Samoan tala */
  2099. WST = 'WST',
  2100. /** CFA franc BEAC */
  2101. XAF = 'XAF',
  2102. /** East Caribbean dollar */
  2103. XCD = 'XCD',
  2104. /** CFA franc BCEAO */
  2105. XOF = 'XOF',
  2106. /** CFP franc (franc Pacifique) */
  2107. XPF = 'XPF',
  2108. /** Yemeni rial */
  2109. YER = 'YER',
  2110. /** South African rand */
  2111. ZAR = 'ZAR',
  2112. /** Zambian kwacha */
  2113. ZMW = 'ZMW',
  2114. /** Zimbabwean dollar */
  2115. ZWL = 'ZWL'
  2116. }
  2117. export type CustomField = {
  2118. name: Scalars['String'];
  2119. type: Scalars['String'];
  2120. list: Scalars['Boolean'];
  2121. label?: Maybe<Array<LocalizedString>>;
  2122. description?: Maybe<Array<LocalizedString>>;
  2123. readonly?: Maybe<Scalars['Boolean']>;
  2124. internal?: Maybe<Scalars['Boolean']>;
  2125. };
  2126. export type StringCustomFieldConfig = CustomField & {
  2127. __typename?: 'StringCustomFieldConfig';
  2128. name: Scalars['String'];
  2129. type: Scalars['String'];
  2130. list: Scalars['Boolean'];
  2131. length?: Maybe<Scalars['Int']>;
  2132. label?: Maybe<Array<LocalizedString>>;
  2133. description?: Maybe<Array<LocalizedString>>;
  2134. readonly?: Maybe<Scalars['Boolean']>;
  2135. internal?: Maybe<Scalars['Boolean']>;
  2136. pattern?: Maybe<Scalars['String']>;
  2137. options?: Maybe<Array<StringFieldOption>>;
  2138. };
  2139. export type StringFieldOption = {
  2140. __typename?: 'StringFieldOption';
  2141. value: Scalars['String'];
  2142. label?: Maybe<Array<LocalizedString>>;
  2143. };
  2144. export type LocaleStringCustomFieldConfig = CustomField & {
  2145. __typename?: 'LocaleStringCustomFieldConfig';
  2146. name: Scalars['String'];
  2147. type: Scalars['String'];
  2148. list: Scalars['Boolean'];
  2149. length?: Maybe<Scalars['Int']>;
  2150. label?: Maybe<Array<LocalizedString>>;
  2151. description?: Maybe<Array<LocalizedString>>;
  2152. readonly?: Maybe<Scalars['Boolean']>;
  2153. internal?: Maybe<Scalars['Boolean']>;
  2154. pattern?: Maybe<Scalars['String']>;
  2155. };
  2156. export type IntCustomFieldConfig = CustomField & {
  2157. __typename?: 'IntCustomFieldConfig';
  2158. name: Scalars['String'];
  2159. type: Scalars['String'];
  2160. list: Scalars['Boolean'];
  2161. label?: Maybe<Array<LocalizedString>>;
  2162. description?: Maybe<Array<LocalizedString>>;
  2163. readonly?: Maybe<Scalars['Boolean']>;
  2164. internal?: Maybe<Scalars['Boolean']>;
  2165. min?: Maybe<Scalars['Int']>;
  2166. max?: Maybe<Scalars['Int']>;
  2167. step?: Maybe<Scalars['Int']>;
  2168. };
  2169. export type FloatCustomFieldConfig = CustomField & {
  2170. __typename?: 'FloatCustomFieldConfig';
  2171. name: Scalars['String'];
  2172. type: Scalars['String'];
  2173. list: Scalars['Boolean'];
  2174. label?: Maybe<Array<LocalizedString>>;
  2175. description?: Maybe<Array<LocalizedString>>;
  2176. readonly?: Maybe<Scalars['Boolean']>;
  2177. internal?: Maybe<Scalars['Boolean']>;
  2178. min?: Maybe<Scalars['Float']>;
  2179. max?: Maybe<Scalars['Float']>;
  2180. step?: Maybe<Scalars['Float']>;
  2181. };
  2182. export type BooleanCustomFieldConfig = CustomField & {
  2183. __typename?: 'BooleanCustomFieldConfig';
  2184. name: Scalars['String'];
  2185. type: Scalars['String'];
  2186. list: Scalars['Boolean'];
  2187. label?: Maybe<Array<LocalizedString>>;
  2188. description?: Maybe<Array<LocalizedString>>;
  2189. readonly?: Maybe<Scalars['Boolean']>;
  2190. internal?: Maybe<Scalars['Boolean']>;
  2191. };
  2192. /**
  2193. * Expects the same validation formats as the `<input type="datetime-local">` HTML element.
  2194. * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
  2195. */
  2196. export type DateTimeCustomFieldConfig = CustomField & {
  2197. __typename?: 'DateTimeCustomFieldConfig';
  2198. name: Scalars['String'];
  2199. type: Scalars['String'];
  2200. list: Scalars['Boolean'];
  2201. label?: Maybe<Array<LocalizedString>>;
  2202. description?: Maybe<Array<LocalizedString>>;
  2203. readonly?: Maybe<Scalars['Boolean']>;
  2204. internal?: Maybe<Scalars['Boolean']>;
  2205. min?: Maybe<Scalars['String']>;
  2206. max?: Maybe<Scalars['String']>;
  2207. step?: Maybe<Scalars['Int']>;
  2208. };
  2209. export type LocalizedString = {
  2210. __typename?: 'LocalizedString';
  2211. languageCode: LanguageCode;
  2212. value: Scalars['String'];
  2213. };
  2214. export type CustomFieldConfig = StringCustomFieldConfig | LocaleStringCustomFieldConfig | IntCustomFieldConfig | FloatCustomFieldConfig | BooleanCustomFieldConfig | DateTimeCustomFieldConfig;
  2215. /**
  2216. * @description
  2217. * Languages in the form of a ISO 639-1 language code with optional
  2218. * region or script modifier (e.g. de_AT). The selection available is based
  2219. * on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html)
  2220. * and includes the major spoken languages of the world and any widely-used variants.
  2221. *
  2222. * @docsCategory common
  2223. */
  2224. export enum LanguageCode {
  2225. /** Afrikaans */
  2226. af = 'af',
  2227. /** Akan */
  2228. ak = 'ak',
  2229. /** Albanian */
  2230. sq = 'sq',
  2231. /** Amharic */
  2232. am = 'am',
  2233. /** Arabic */
  2234. ar = 'ar',
  2235. /** Armenian */
  2236. hy = 'hy',
  2237. /** Assamese */
  2238. as = 'as',
  2239. /** Azerbaijani */
  2240. az = 'az',
  2241. /** Bambara */
  2242. bm = 'bm',
  2243. /** Bangla */
  2244. bn = 'bn',
  2245. /** Basque */
  2246. eu = 'eu',
  2247. /** Belarusian */
  2248. be = 'be',
  2249. /** Bosnian */
  2250. bs = 'bs',
  2251. /** Breton */
  2252. br = 'br',
  2253. /** Bulgarian */
  2254. bg = 'bg',
  2255. /** Burmese */
  2256. my = 'my',
  2257. /** Catalan */
  2258. ca = 'ca',
  2259. /** Chechen */
  2260. ce = 'ce',
  2261. /** Chinese */
  2262. zh = 'zh',
  2263. /** Simplified Chinese */
  2264. zh_Hans = 'zh_Hans',
  2265. /** Traditional Chinese */
  2266. zh_Hant = 'zh_Hant',
  2267. /** Church Slavic */
  2268. cu = 'cu',
  2269. /** Cornish */
  2270. kw = 'kw',
  2271. /** Corsican */
  2272. co = 'co',
  2273. /** Croatian */
  2274. hr = 'hr',
  2275. /** Czech */
  2276. cs = 'cs',
  2277. /** Danish */
  2278. da = 'da',
  2279. /** Dutch */
  2280. nl = 'nl',
  2281. /** Flemish */
  2282. nl_BE = 'nl_BE',
  2283. /** Dzongkha */
  2284. dz = 'dz',
  2285. /** English */
  2286. en = 'en',
  2287. /** Australian English */
  2288. en_AU = 'en_AU',
  2289. /** Canadian English */
  2290. en_CA = 'en_CA',
  2291. /** British English */
  2292. en_GB = 'en_GB',
  2293. /** American English */
  2294. en_US = 'en_US',
  2295. /** Esperanto */
  2296. eo = 'eo',
  2297. /** Estonian */
  2298. et = 'et',
  2299. /** Ewe */
  2300. ee = 'ee',
  2301. /** Faroese */
  2302. fo = 'fo',
  2303. /** Finnish */
  2304. fi = 'fi',
  2305. /** French */
  2306. fr = 'fr',
  2307. /** Canadian French */
  2308. fr_CA = 'fr_CA',
  2309. /** Swiss French */
  2310. fr_CH = 'fr_CH',
  2311. /** Fulah */
  2312. ff = 'ff',
  2313. /** Galician */
  2314. gl = 'gl',
  2315. /** Ganda */
  2316. lg = 'lg',
  2317. /** Georgian */
  2318. ka = 'ka',
  2319. /** German */
  2320. de = 'de',
  2321. /** Austrian German */
  2322. de_AT = 'de_AT',
  2323. /** Swiss High German */
  2324. de_CH = 'de_CH',
  2325. /** Greek */
  2326. el = 'el',
  2327. /** Gujarati */
  2328. gu = 'gu',
  2329. /** Haitian Creole */
  2330. ht = 'ht',
  2331. /** Hausa */
  2332. ha = 'ha',
  2333. /** Hebrew */
  2334. he = 'he',
  2335. /** Hindi */
  2336. hi = 'hi',
  2337. /** Hungarian */
  2338. hu = 'hu',
  2339. /** Icelandic */
  2340. is = 'is',
  2341. /** Igbo */
  2342. ig = 'ig',
  2343. /** Indonesian */
  2344. id = 'id',
  2345. /** Interlingua */
  2346. ia = 'ia',
  2347. /** Irish */
  2348. ga = 'ga',
  2349. /** Italian */
  2350. it = 'it',
  2351. /** Japanese */
  2352. ja = 'ja',
  2353. /** Javanese */
  2354. jv = 'jv',
  2355. /** Kalaallisut */
  2356. kl = 'kl',
  2357. /** Kannada */
  2358. kn = 'kn',
  2359. /** Kashmiri */
  2360. ks = 'ks',
  2361. /** Kazakh */
  2362. kk = 'kk',
  2363. /** Khmer */
  2364. km = 'km',
  2365. /** Kikuyu */
  2366. ki = 'ki',
  2367. /** Kinyarwanda */
  2368. rw = 'rw',
  2369. /** Korean */
  2370. ko = 'ko',
  2371. /** Kurdish */
  2372. ku = 'ku',
  2373. /** Kyrgyz */
  2374. ky = 'ky',
  2375. /** Lao */
  2376. lo = 'lo',
  2377. /** Latin */
  2378. la = 'la',
  2379. /** Latvian */
  2380. lv = 'lv',
  2381. /** Lingala */
  2382. ln = 'ln',
  2383. /** Lithuanian */
  2384. lt = 'lt',
  2385. /** Luba-Katanga */
  2386. lu = 'lu',
  2387. /** Luxembourgish */
  2388. lb = 'lb',
  2389. /** Macedonian */
  2390. mk = 'mk',
  2391. /** Malagasy */
  2392. mg = 'mg',
  2393. /** Malay */
  2394. ms = 'ms',
  2395. /** Malayalam */
  2396. ml = 'ml',
  2397. /** Maltese */
  2398. mt = 'mt',
  2399. /** Manx */
  2400. gv = 'gv',
  2401. /** Maori */
  2402. mi = 'mi',
  2403. /** Marathi */
  2404. mr = 'mr',
  2405. /** Mongolian */
  2406. mn = 'mn',
  2407. /** Nepali */
  2408. ne = 'ne',
  2409. /** North Ndebele */
  2410. nd = 'nd',
  2411. /** Northern Sami */
  2412. se = 'se',
  2413. /** Norwegian Bokmål */
  2414. nb = 'nb',
  2415. /** Norwegian Nynorsk */
  2416. nn = 'nn',
  2417. /** Nyanja */
  2418. ny = 'ny',
  2419. /** Odia */
  2420. or = 'or',
  2421. /** Oromo */
  2422. om = 'om',
  2423. /** Ossetic */
  2424. os = 'os',
  2425. /** Pashto */
  2426. ps = 'ps',
  2427. /** Persian */
  2428. fa = 'fa',
  2429. /** Dari */
  2430. fa_AF = 'fa_AF',
  2431. /** Polish */
  2432. pl = 'pl',
  2433. /** Portuguese */
  2434. pt = 'pt',
  2435. /** Brazilian Portuguese */
  2436. pt_BR = 'pt_BR',
  2437. /** European Portuguese */
  2438. pt_PT = 'pt_PT',
  2439. /** Punjabi */
  2440. pa = 'pa',
  2441. /** Quechua */
  2442. qu = 'qu',
  2443. /** Romanian */
  2444. ro = 'ro',
  2445. /** Moldavian */
  2446. ro_MD = 'ro_MD',
  2447. /** Romansh */
  2448. rm = 'rm',
  2449. /** Rundi */
  2450. rn = 'rn',
  2451. /** Russian */
  2452. ru = 'ru',
  2453. /** Samoan */
  2454. sm = 'sm',
  2455. /** Sango */
  2456. sg = 'sg',
  2457. /** Sanskrit */
  2458. sa = 'sa',
  2459. /** Scottish Gaelic */
  2460. gd = 'gd',
  2461. /** Serbian */
  2462. sr = 'sr',
  2463. /** Shona */
  2464. sn = 'sn',
  2465. /** Sichuan Yi */
  2466. ii = 'ii',
  2467. /** Sindhi */
  2468. sd = 'sd',
  2469. /** Sinhala */
  2470. si = 'si',
  2471. /** Slovak */
  2472. sk = 'sk',
  2473. /** Slovenian */
  2474. sl = 'sl',
  2475. /** Somali */
  2476. so = 'so',
  2477. /** Southern Sotho */
  2478. st = 'st',
  2479. /** Spanish */
  2480. es = 'es',
  2481. /** European Spanish */
  2482. es_ES = 'es_ES',
  2483. /** Mexican Spanish */
  2484. es_MX = 'es_MX',
  2485. /** Sundanese */
  2486. su = 'su',
  2487. /** Swahili */
  2488. sw = 'sw',
  2489. /** Congo Swahili */
  2490. sw_CD = 'sw_CD',
  2491. /** Swedish */
  2492. sv = 'sv',
  2493. /** Tajik */
  2494. tg = 'tg',
  2495. /** Tamil */
  2496. ta = 'ta',
  2497. /** Tatar */
  2498. tt = 'tt',
  2499. /** Telugu */
  2500. te = 'te',
  2501. /** Thai */
  2502. th = 'th',
  2503. /** Tibetan */
  2504. bo = 'bo',
  2505. /** Tigrinya */
  2506. ti = 'ti',
  2507. /** Tongan */
  2508. to = 'to',
  2509. /** Turkish */
  2510. tr = 'tr',
  2511. /** Turkmen */
  2512. tk = 'tk',
  2513. /** Ukrainian */
  2514. uk = 'uk',
  2515. /** Urdu */
  2516. ur = 'ur',
  2517. /** Uyghur */
  2518. ug = 'ug',
  2519. /** Uzbek */
  2520. uz = 'uz',
  2521. /** Vietnamese */
  2522. vi = 'vi',
  2523. /** Volapük */
  2524. vo = 'vo',
  2525. /** Welsh */
  2526. cy = 'cy',
  2527. /** Western Frisian */
  2528. fy = 'fy',
  2529. /** Wolof */
  2530. wo = 'wo',
  2531. /** Xhosa */
  2532. xh = 'xh',
  2533. /** Yiddish */
  2534. yi = 'yi',
  2535. /** Yoruba */
  2536. yo = 'yo',
  2537. /** Zulu */
  2538. zu = 'zu'
  2539. }
  2540. export type Address = Node & {
  2541. __typename?: 'Address';
  2542. id: Scalars['ID'];
  2543. createdAt: Scalars['DateTime'];
  2544. updatedAt: Scalars['DateTime'];
  2545. fullName?: Maybe<Scalars['String']>;
  2546. company?: Maybe<Scalars['String']>;
  2547. streetLine1: Scalars['String'];
  2548. streetLine2?: Maybe<Scalars['String']>;
  2549. city?: Maybe<Scalars['String']>;
  2550. province?: Maybe<Scalars['String']>;
  2551. postalCode?: Maybe<Scalars['String']>;
  2552. country: Country;
  2553. phoneNumber?: Maybe<Scalars['String']>;
  2554. defaultShippingAddress?: Maybe<Scalars['Boolean']>;
  2555. defaultBillingAddress?: Maybe<Scalars['Boolean']>;
  2556. customFields?: Maybe<Scalars['JSON']>;
  2557. };
  2558. export type Administrator = Node & {
  2559. __typename?: 'Administrator';
  2560. id: Scalars['ID'];
  2561. createdAt: Scalars['DateTime'];
  2562. updatedAt: Scalars['DateTime'];
  2563. firstName: Scalars['String'];
  2564. lastName: Scalars['String'];
  2565. emailAddress: Scalars['String'];
  2566. user: User;
  2567. };
  2568. export type AdministratorList = PaginatedList & {
  2569. __typename?: 'AdministratorList';
  2570. items: Array<Administrator>;
  2571. totalItems: Scalars['Int'];
  2572. };
  2573. export type Asset = Node & {
  2574. __typename?: 'Asset';
  2575. id: Scalars['ID'];
  2576. createdAt: Scalars['DateTime'];
  2577. updatedAt: Scalars['DateTime'];
  2578. name: Scalars['String'];
  2579. type: AssetType;
  2580. fileSize: Scalars['Int'];
  2581. mimeType: Scalars['String'];
  2582. width: Scalars['Int'];
  2583. height: Scalars['Int'];
  2584. source: Scalars['String'];
  2585. preview: Scalars['String'];
  2586. focalPoint?: Maybe<Coordinate>;
  2587. };
  2588. export type Coordinate = {
  2589. __typename?: 'Coordinate';
  2590. x: Scalars['Float'];
  2591. y: Scalars['Float'];
  2592. };
  2593. export type AssetList = PaginatedList & {
  2594. __typename?: 'AssetList';
  2595. items: Array<Asset>;
  2596. totalItems: Scalars['Int'];
  2597. };
  2598. export enum AssetType {
  2599. IMAGE = 'IMAGE',
  2600. VIDEO = 'VIDEO',
  2601. BINARY = 'BINARY'
  2602. }
  2603. export type CurrentUser = {
  2604. __typename?: 'CurrentUser';
  2605. id: Scalars['ID'];
  2606. identifier: Scalars['String'];
  2607. channels: Array<CurrentUserChannel>;
  2608. };
  2609. export type CurrentUserChannel = {
  2610. __typename?: 'CurrentUserChannel';
  2611. id: Scalars['ID'];
  2612. token: Scalars['String'];
  2613. code: Scalars['String'];
  2614. permissions: Array<Permission>;
  2615. };
  2616. export type Channel = Node & {
  2617. __typename?: 'Channel';
  2618. id: Scalars['ID'];
  2619. createdAt: Scalars['DateTime'];
  2620. updatedAt: Scalars['DateTime'];
  2621. code: Scalars['String'];
  2622. token: Scalars['String'];
  2623. defaultTaxZone?: Maybe<Zone>;
  2624. defaultShippingZone?: Maybe<Zone>;
  2625. defaultLanguageCode: LanguageCode;
  2626. currencyCode: CurrencyCode;
  2627. pricesIncludeTax: Scalars['Boolean'];
  2628. };
  2629. export type CollectionBreadcrumb = {
  2630. __typename?: 'CollectionBreadcrumb';
  2631. id: Scalars['ID'];
  2632. name: Scalars['String'];
  2633. slug: Scalars['String'];
  2634. };
  2635. export type CollectionTranslation = {
  2636. __typename?: 'CollectionTranslation';
  2637. id: Scalars['ID'];
  2638. createdAt: Scalars['DateTime'];
  2639. updatedAt: Scalars['DateTime'];
  2640. languageCode: LanguageCode;
  2641. name: Scalars['String'];
  2642. slug: Scalars['String'];
  2643. description: Scalars['String'];
  2644. };
  2645. export type CollectionList = PaginatedList & {
  2646. __typename?: 'CollectionList';
  2647. items: Array<Collection>;
  2648. totalItems: Scalars['Int'];
  2649. };
  2650. export type ProductVariantList = PaginatedList & {
  2651. __typename?: 'ProductVariantList';
  2652. items: Array<ProductVariant>;
  2653. totalItems: Scalars['Int'];
  2654. };
  2655. export type Country = Node & {
  2656. __typename?: 'Country';
  2657. id: Scalars['ID'];
  2658. createdAt: Scalars['DateTime'];
  2659. updatedAt: Scalars['DateTime'];
  2660. languageCode: LanguageCode;
  2661. code: Scalars['String'];
  2662. name: Scalars['String'];
  2663. enabled: Scalars['Boolean'];
  2664. translations: Array<CountryTranslation>;
  2665. };
  2666. export type CountryTranslation = {
  2667. __typename?: 'CountryTranslation';
  2668. id: Scalars['ID'];
  2669. createdAt: Scalars['DateTime'];
  2670. updatedAt: Scalars['DateTime'];
  2671. languageCode: LanguageCode;
  2672. name: Scalars['String'];
  2673. };
  2674. export type CountryList = PaginatedList & {
  2675. __typename?: 'CountryList';
  2676. items: Array<Country>;
  2677. totalItems: Scalars['Int'];
  2678. };
  2679. export type CustomerGroup = Node & {
  2680. __typename?: 'CustomerGroup';
  2681. id: Scalars['ID'];
  2682. createdAt: Scalars['DateTime'];
  2683. updatedAt: Scalars['DateTime'];
  2684. name: Scalars['String'];
  2685. customers: CustomerList;
  2686. };
  2687. export type CustomerGroupCustomersArgs = {
  2688. options?: Maybe<CustomerListOptions>;
  2689. };
  2690. export type CustomerList = PaginatedList & {
  2691. __typename?: 'CustomerList';
  2692. items: Array<Customer>;
  2693. totalItems: Scalars['Int'];
  2694. };
  2695. export type FacetValue = Node & {
  2696. __typename?: 'FacetValue';
  2697. id: Scalars['ID'];
  2698. createdAt: Scalars['DateTime'];
  2699. updatedAt: Scalars['DateTime'];
  2700. languageCode: LanguageCode;
  2701. facet: Facet;
  2702. name: Scalars['String'];
  2703. code: Scalars['String'];
  2704. translations: Array<FacetValueTranslation>;
  2705. customFields?: Maybe<Scalars['JSON']>;
  2706. };
  2707. export type FacetValueTranslation = {
  2708. __typename?: 'FacetValueTranslation';
  2709. id: Scalars['ID'];
  2710. createdAt: Scalars['DateTime'];
  2711. updatedAt: Scalars['DateTime'];
  2712. languageCode: LanguageCode;
  2713. name: Scalars['String'];
  2714. };
  2715. export type FacetTranslation = {
  2716. __typename?: 'FacetTranslation';
  2717. id: Scalars['ID'];
  2718. createdAt: Scalars['DateTime'];
  2719. updatedAt: Scalars['DateTime'];
  2720. languageCode: LanguageCode;
  2721. name: Scalars['String'];
  2722. };
  2723. export type FacetList = PaginatedList & {
  2724. __typename?: 'FacetList';
  2725. items: Array<Facet>;
  2726. totalItems: Scalars['Int'];
  2727. };
  2728. export type GlobalSettings = {
  2729. __typename?: 'GlobalSettings';
  2730. id: Scalars['ID'];
  2731. createdAt: Scalars['DateTime'];
  2732. updatedAt: Scalars['DateTime'];
  2733. availableLanguages: Array<LanguageCode>;
  2734. trackInventory: Scalars['Boolean'];
  2735. outOfStockThreshold: Scalars['Int'];
  2736. serverConfig: ServerConfig;
  2737. customFields?: Maybe<Scalars['JSON']>;
  2738. };
  2739. export type OrderProcessState = {
  2740. __typename?: 'OrderProcessState';
  2741. name: Scalars['String'];
  2742. to: Array<Scalars['String']>;
  2743. };
  2744. export type PermissionDefinition = {
  2745. __typename?: 'PermissionDefinition';
  2746. name: Scalars['String'];
  2747. description: Scalars['String'];
  2748. assignable: Scalars['Boolean'];
  2749. };
  2750. export type ServerConfig = {
  2751. __typename?: 'ServerConfig';
  2752. orderProcess: Array<OrderProcessState>;
  2753. permittedAssetTypes: Array<Scalars['String']>;
  2754. permissions: Array<PermissionDefinition>;
  2755. customFieldConfig: CustomFields;
  2756. };
  2757. export type HistoryEntry = Node & {
  2758. __typename?: 'HistoryEntry';
  2759. id: Scalars['ID'];
  2760. createdAt: Scalars['DateTime'];
  2761. updatedAt: Scalars['DateTime'];
  2762. isPublic: Scalars['Boolean'];
  2763. type: HistoryEntryType;
  2764. administrator?: Maybe<Administrator>;
  2765. data: Scalars['JSON'];
  2766. };
  2767. export enum HistoryEntryType {
  2768. CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED',
  2769. CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED',
  2770. CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED',
  2771. CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP',
  2772. CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP',
  2773. CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED',
  2774. CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED',
  2775. CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED',
  2776. CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED',
  2777. CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED',
  2778. CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED',
  2779. CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED',
  2780. CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED',
  2781. CUSTOMER_NOTE = 'CUSTOMER_NOTE',
  2782. ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION',
  2783. ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION',
  2784. ORDER_FULFILLMENT = 'ORDER_FULFILLMENT',
  2785. ORDER_CANCELLATION = 'ORDER_CANCELLATION',
  2786. ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION',
  2787. ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION',
  2788. ORDER_NOTE = 'ORDER_NOTE',
  2789. ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED',
  2790. ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED'
  2791. }
  2792. export type HistoryEntryList = PaginatedList & {
  2793. __typename?: 'HistoryEntryList';
  2794. items: Array<HistoryEntry>;
  2795. totalItems: Scalars['Int'];
  2796. };
  2797. export type ImportInfo = {
  2798. __typename?: 'ImportInfo';
  2799. errors?: Maybe<Array<Scalars['String']>>;
  2800. processed: Scalars['Int'];
  2801. imported: Scalars['Int'];
  2802. };
  2803. /**
  2804. * A summary of the taxes being applied to this order, grouped
  2805. * by taxRate.
  2806. */
  2807. export type OrderTaxSummary = {
  2808. __typename?: 'OrderTaxSummary';
  2809. /** The taxRate as a percentage */
  2810. taxRate: Scalars['Float'];
  2811. /** The total net price or OrderItems to which this taxRate applies */
  2812. taxBase: Scalars['Int'];
  2813. /** The total tax being applied to the Order at this taxRate */
  2814. taxTotal: Scalars['Int'];
  2815. };
  2816. export type OrderAddress = {
  2817. __typename?: 'OrderAddress';
  2818. fullName?: Maybe<Scalars['String']>;
  2819. company?: Maybe<Scalars['String']>;
  2820. streetLine1?: Maybe<Scalars['String']>;
  2821. streetLine2?: Maybe<Scalars['String']>;
  2822. city?: Maybe<Scalars['String']>;
  2823. province?: Maybe<Scalars['String']>;
  2824. postalCode?: Maybe<Scalars['String']>;
  2825. country?: Maybe<Scalars['String']>;
  2826. countryCode?: Maybe<Scalars['String']>;
  2827. phoneNumber?: Maybe<Scalars['String']>;
  2828. };
  2829. export type OrderList = PaginatedList & {
  2830. __typename?: 'OrderList';
  2831. items: Array<Order>;
  2832. totalItems: Scalars['Int'];
  2833. };
  2834. export type ShippingMethodQuote = {
  2835. __typename?: 'ShippingMethodQuote';
  2836. id: Scalars['ID'];
  2837. price: Scalars['Int'];
  2838. priceWithTax: Scalars['Int'];
  2839. description: Scalars['String'];
  2840. metadata?: Maybe<Scalars['JSON']>;
  2841. };
  2842. export type OrderItem = Node & {
  2843. __typename?: 'OrderItem';
  2844. id: Scalars['ID'];
  2845. createdAt: Scalars['DateTime'];
  2846. updatedAt: Scalars['DateTime'];
  2847. cancelled: Scalars['Boolean'];
  2848. /** The price of a single unit, excluding tax */
  2849. unitPrice: Scalars['Int'];
  2850. /** The price of a single unit, including tax */
  2851. unitPriceWithTax: Scalars['Int'];
  2852. /** @deprecated `unitPrice` is now always without tax */
  2853. unitPriceIncludesTax: Scalars['Boolean'];
  2854. taxRate: Scalars['Float'];
  2855. adjustments: Array<Adjustment>;
  2856. fulfillment?: Maybe<Fulfillment>;
  2857. refundId?: Maybe<Scalars['ID']>;
  2858. };
  2859. export type OrderLine = Node & {
  2860. __typename?: 'OrderLine';
  2861. id: Scalars['ID'];
  2862. createdAt: Scalars['DateTime'];
  2863. updatedAt: Scalars['DateTime'];
  2864. productVariant: ProductVariant;
  2865. featuredAsset?: Maybe<Asset>;
  2866. unitPrice: Scalars['Int'];
  2867. unitPriceWithTax: Scalars['Int'];
  2868. quantity: Scalars['Int'];
  2869. items: Array<OrderItem>;
  2870. /** @deprecated Use `linePriceWithTax` instead */
  2871. totalPrice: Scalars['Int'];
  2872. taxRate: Scalars['Float'];
  2873. /** The total price of the line excluding tax */
  2874. linePrice: Scalars['Int'];
  2875. /** The total tax on this line */
  2876. lineTax: Scalars['Int'];
  2877. /** The total price of the line including tax */
  2878. linePriceWithTax: Scalars['Int'];
  2879. adjustments: Array<Adjustment>;
  2880. order: Order;
  2881. customFields?: Maybe<Scalars['JSON']>;
  2882. };
  2883. export type Payment = Node & {
  2884. __typename?: 'Payment';
  2885. id: Scalars['ID'];
  2886. createdAt: Scalars['DateTime'];
  2887. updatedAt: Scalars['DateTime'];
  2888. method: Scalars['String'];
  2889. amount: Scalars['Int'];
  2890. state: Scalars['String'];
  2891. transactionId?: Maybe<Scalars['String']>;
  2892. errorMessage?: Maybe<Scalars['String']>;
  2893. refunds: Array<Refund>;
  2894. metadata?: Maybe<Scalars['JSON']>;
  2895. };
  2896. export type Refund = Node & {
  2897. __typename?: 'Refund';
  2898. id: Scalars['ID'];
  2899. createdAt: Scalars['DateTime'];
  2900. updatedAt: Scalars['DateTime'];
  2901. items: Scalars['Int'];
  2902. shipping: Scalars['Int'];
  2903. adjustment: Scalars['Int'];
  2904. total: Scalars['Int'];
  2905. method?: Maybe<Scalars['String']>;
  2906. state: Scalars['String'];
  2907. transactionId?: Maybe<Scalars['String']>;
  2908. reason?: Maybe<Scalars['String']>;
  2909. orderItems: Array<OrderItem>;
  2910. paymentId: Scalars['ID'];
  2911. metadata?: Maybe<Scalars['JSON']>;
  2912. };
  2913. export type PaymentMethod = Node & {
  2914. __typename?: 'PaymentMethod';
  2915. id: Scalars['ID'];
  2916. createdAt: Scalars['DateTime'];
  2917. updatedAt: Scalars['DateTime'];
  2918. code: Scalars['String'];
  2919. enabled: Scalars['Boolean'];
  2920. configArgs: Array<ConfigArg>;
  2921. definition: ConfigurableOperationDefinition;
  2922. };
  2923. export type ProductOptionGroup = Node & {
  2924. __typename?: 'ProductOptionGroup';
  2925. id: Scalars['ID'];
  2926. createdAt: Scalars['DateTime'];
  2927. updatedAt: Scalars['DateTime'];
  2928. languageCode: LanguageCode;
  2929. code: Scalars['String'];
  2930. name: Scalars['String'];
  2931. options: Array<ProductOption>;
  2932. translations: Array<ProductOptionGroupTranslation>;
  2933. customFields?: Maybe<Scalars['JSON']>;
  2934. };
  2935. export type ProductOptionGroupTranslation = {
  2936. __typename?: 'ProductOptionGroupTranslation';
  2937. id: Scalars['ID'];
  2938. createdAt: Scalars['DateTime'];
  2939. updatedAt: Scalars['DateTime'];
  2940. languageCode: LanguageCode;
  2941. name: Scalars['String'];
  2942. };
  2943. export type ProductOption = Node & {
  2944. __typename?: 'ProductOption';
  2945. id: Scalars['ID'];
  2946. createdAt: Scalars['DateTime'];
  2947. updatedAt: Scalars['DateTime'];
  2948. languageCode: LanguageCode;
  2949. code: Scalars['String'];
  2950. name: Scalars['String'];
  2951. groupId: Scalars['ID'];
  2952. group: ProductOptionGroup;
  2953. translations: Array<ProductOptionTranslation>;
  2954. customFields?: Maybe<Scalars['JSON']>;
  2955. };
  2956. export type ProductOptionTranslation = {
  2957. __typename?: 'ProductOptionTranslation';
  2958. id: Scalars['ID'];
  2959. createdAt: Scalars['DateTime'];
  2960. updatedAt: Scalars['DateTime'];
  2961. languageCode: LanguageCode;
  2962. name: Scalars['String'];
  2963. };
  2964. export type SearchReindexResponse = {
  2965. __typename?: 'SearchReindexResponse';
  2966. success: Scalars['Boolean'];
  2967. };
  2968. export type SearchResponse = {
  2969. __typename?: 'SearchResponse';
  2970. items: Array<SearchResult>;
  2971. totalItems: Scalars['Int'];
  2972. facetValues: Array<FacetValueResult>;
  2973. };
  2974. /**
  2975. * Which FacetValues are present in the products returned
  2976. * by the search, and in what quantity.
  2977. */
  2978. export type FacetValueResult = {
  2979. __typename?: 'FacetValueResult';
  2980. facetValue: FacetValue;
  2981. count: Scalars['Int'];
  2982. };
  2983. export type SearchResultAsset = {
  2984. __typename?: 'SearchResultAsset';
  2985. id: Scalars['ID'];
  2986. preview: Scalars['String'];
  2987. focalPoint?: Maybe<Coordinate>;
  2988. };
  2989. /** The price of a search result product, either as a range or as a single price */
  2990. export type SearchResultPrice = PriceRange | SinglePrice;
  2991. /** The price value where the result has a single price */
  2992. export type SinglePrice = {
  2993. __typename?: 'SinglePrice';
  2994. value: Scalars['Int'];
  2995. };
  2996. /** The price range where the result has more than one price */
  2997. export type PriceRange = {
  2998. __typename?: 'PriceRange';
  2999. min: Scalars['Int'];
  3000. max: Scalars['Int'];
  3001. };
  3002. export type ProductTranslation = {
  3003. __typename?: 'ProductTranslation';
  3004. id: Scalars['ID'];
  3005. createdAt: Scalars['DateTime'];
  3006. updatedAt: Scalars['DateTime'];
  3007. languageCode: LanguageCode;
  3008. name: Scalars['String'];
  3009. slug: Scalars['String'];
  3010. description: Scalars['String'];
  3011. };
  3012. export type ProductList = PaginatedList & {
  3013. __typename?: 'ProductList';
  3014. items: Array<Product>;
  3015. totalItems: Scalars['Int'];
  3016. };
  3017. export type ProductVariantTranslation = {
  3018. __typename?: 'ProductVariantTranslation';
  3019. id: Scalars['ID'];
  3020. createdAt: Scalars['DateTime'];
  3021. updatedAt: Scalars['DateTime'];
  3022. languageCode: LanguageCode;
  3023. name: Scalars['String'];
  3024. };
  3025. export type Promotion = Node & {
  3026. __typename?: 'Promotion';
  3027. id: Scalars['ID'];
  3028. createdAt: Scalars['DateTime'];
  3029. updatedAt: Scalars['DateTime'];
  3030. startsAt?: Maybe<Scalars['DateTime']>;
  3031. endsAt?: Maybe<Scalars['DateTime']>;
  3032. couponCode?: Maybe<Scalars['String']>;
  3033. perCustomerUsageLimit?: Maybe<Scalars['Int']>;
  3034. name: Scalars['String'];
  3035. enabled: Scalars['Boolean'];
  3036. conditions: Array<ConfigurableOperation>;
  3037. actions: Array<ConfigurableOperation>;
  3038. };
  3039. export type PromotionList = PaginatedList & {
  3040. __typename?: 'PromotionList';
  3041. items: Array<Promotion>;
  3042. totalItems: Scalars['Int'];
  3043. };
  3044. export type Role = Node & {
  3045. __typename?: 'Role';
  3046. id: Scalars['ID'];
  3047. createdAt: Scalars['DateTime'];
  3048. updatedAt: Scalars['DateTime'];
  3049. code: Scalars['String'];
  3050. description: Scalars['String'];
  3051. permissions: Array<Permission>;
  3052. channels: Array<Channel>;
  3053. };
  3054. export type RoleList = PaginatedList & {
  3055. __typename?: 'RoleList';
  3056. items: Array<Role>;
  3057. totalItems: Scalars['Int'];
  3058. };
  3059. export type ShippingMethod = Node & {
  3060. __typename?: 'ShippingMethod';
  3061. id: Scalars['ID'];
  3062. createdAt: Scalars['DateTime'];
  3063. updatedAt: Scalars['DateTime'];
  3064. code: Scalars['String'];
  3065. description: Scalars['String'];
  3066. checker: ConfigurableOperation;
  3067. calculator: ConfigurableOperation;
  3068. customFields?: Maybe<Scalars['JSON']>;
  3069. };
  3070. export type ShippingMethodList = PaginatedList & {
  3071. __typename?: 'ShippingMethodList';
  3072. items: Array<ShippingMethod>;
  3073. totalItems: Scalars['Int'];
  3074. };
  3075. export enum StockMovementType {
  3076. ADJUSTMENT = 'ADJUSTMENT',
  3077. ALLOCATION = 'ALLOCATION',
  3078. RELEASE = 'RELEASE',
  3079. SALE = 'SALE',
  3080. CANCELLATION = 'CANCELLATION',
  3081. RETURN = 'RETURN'
  3082. }
  3083. export type StockMovement = {
  3084. id: Scalars['ID'];
  3085. createdAt: Scalars['DateTime'];
  3086. updatedAt: Scalars['DateTime'];
  3087. productVariant: ProductVariant;
  3088. type: StockMovementType;
  3089. quantity: Scalars['Int'];
  3090. };
  3091. export type StockAdjustment = Node & StockMovement & {
  3092. __typename?: 'StockAdjustment';
  3093. id: Scalars['ID'];
  3094. createdAt: Scalars['DateTime'];
  3095. updatedAt: Scalars['DateTime'];
  3096. productVariant: ProductVariant;
  3097. type: StockMovementType;
  3098. quantity: Scalars['Int'];
  3099. };
  3100. export type Allocation = Node & StockMovement & {
  3101. __typename?: 'Allocation';
  3102. id: Scalars['ID'];
  3103. createdAt: Scalars['DateTime'];
  3104. updatedAt: Scalars['DateTime'];
  3105. productVariant: ProductVariant;
  3106. type: StockMovementType;
  3107. quantity: Scalars['Int'];
  3108. orderLine: OrderLine;
  3109. };
  3110. export type Sale = Node & StockMovement & {
  3111. __typename?: 'Sale';
  3112. id: Scalars['ID'];
  3113. createdAt: Scalars['DateTime'];
  3114. updatedAt: Scalars['DateTime'];
  3115. productVariant: ProductVariant;
  3116. type: StockMovementType;
  3117. quantity: Scalars['Int'];
  3118. orderItem: OrderItem;
  3119. };
  3120. export type Cancellation = Node & StockMovement & {
  3121. __typename?: 'Cancellation';
  3122. id: Scalars['ID'];
  3123. createdAt: Scalars['DateTime'];
  3124. updatedAt: Scalars['DateTime'];
  3125. productVariant: ProductVariant;
  3126. type: StockMovementType;
  3127. quantity: Scalars['Int'];
  3128. orderLine: OrderLine;
  3129. };
  3130. export type Return = Node & StockMovement & {
  3131. __typename?: 'Return';
  3132. id: Scalars['ID'];
  3133. createdAt: Scalars['DateTime'];
  3134. updatedAt: Scalars['DateTime'];
  3135. productVariant: ProductVariant;
  3136. type: StockMovementType;
  3137. quantity: Scalars['Int'];
  3138. orderItem: OrderItem;
  3139. };
  3140. export type Release = Node & StockMovement & {
  3141. __typename?: 'Release';
  3142. id: Scalars['ID'];
  3143. createdAt: Scalars['DateTime'];
  3144. updatedAt: Scalars['DateTime'];
  3145. productVariant: ProductVariant;
  3146. type: StockMovementType;
  3147. quantity: Scalars['Int'];
  3148. orderItem: OrderItem;
  3149. };
  3150. export type StockMovementItem = StockAdjustment | Allocation | Sale | Cancellation | Return | Release;
  3151. export type StockMovementList = {
  3152. __typename?: 'StockMovementList';
  3153. items: Array<StockMovementItem>;
  3154. totalItems: Scalars['Int'];
  3155. };
  3156. export type TaxCategory = Node & {
  3157. __typename?: 'TaxCategory';
  3158. id: Scalars['ID'];
  3159. createdAt: Scalars['DateTime'];
  3160. updatedAt: Scalars['DateTime'];
  3161. name: Scalars['String'];
  3162. };
  3163. export type TaxRate = Node & {
  3164. __typename?: 'TaxRate';
  3165. id: Scalars['ID'];
  3166. createdAt: Scalars['DateTime'];
  3167. updatedAt: Scalars['DateTime'];
  3168. name: Scalars['String'];
  3169. enabled: Scalars['Boolean'];
  3170. value: Scalars['Float'];
  3171. category: TaxCategory;
  3172. zone: Zone;
  3173. customerGroup?: Maybe<CustomerGroup>;
  3174. };
  3175. export type TaxRateList = PaginatedList & {
  3176. __typename?: 'TaxRateList';
  3177. items: Array<TaxRate>;
  3178. totalItems: Scalars['Int'];
  3179. };
  3180. export type User = Node & {
  3181. __typename?: 'User';
  3182. id: Scalars['ID'];
  3183. createdAt: Scalars['DateTime'];
  3184. updatedAt: Scalars['DateTime'];
  3185. identifier: Scalars['String'];
  3186. verified: Scalars['Boolean'];
  3187. roles: Array<Role>;
  3188. lastLogin?: Maybe<Scalars['DateTime']>;
  3189. authenticationMethods: Array<AuthenticationMethod>;
  3190. customFields?: Maybe<Scalars['JSON']>;
  3191. };
  3192. export type AuthenticationMethod = Node & {
  3193. __typename?: 'AuthenticationMethod';
  3194. id: Scalars['ID'];
  3195. createdAt: Scalars['DateTime'];
  3196. updatedAt: Scalars['DateTime'];
  3197. strategy: Scalars['String'];
  3198. };
  3199. export type Zone = Node & {
  3200. __typename?: 'Zone';
  3201. id: Scalars['ID'];
  3202. createdAt: Scalars['DateTime'];
  3203. updatedAt: Scalars['DateTime'];
  3204. name: Scalars['String'];
  3205. members: Array<Country>;
  3206. };
  3207. export type AdministratorListOptions = {
  3208. skip?: Maybe<Scalars['Int']>;
  3209. take?: Maybe<Scalars['Int']>;
  3210. sort?: Maybe<AdministratorSortParameter>;
  3211. filter?: Maybe<AdministratorFilterParameter>;
  3212. };
  3213. export type AssetListOptions = {
  3214. skip?: Maybe<Scalars['Int']>;
  3215. take?: Maybe<Scalars['Int']>;
  3216. sort?: Maybe<AssetSortParameter>;
  3217. filter?: Maybe<AssetFilterParameter>;
  3218. };
  3219. export type CollectionListOptions = {
  3220. skip?: Maybe<Scalars['Int']>;
  3221. take?: Maybe<Scalars['Int']>;
  3222. sort?: Maybe<CollectionSortParameter>;
  3223. filter?: Maybe<CollectionFilterParameter>;
  3224. };
  3225. export type CountryListOptions = {
  3226. skip?: Maybe<Scalars['Int']>;
  3227. take?: Maybe<Scalars['Int']>;
  3228. sort?: Maybe<CountrySortParameter>;
  3229. filter?: Maybe<CountryFilterParameter>;
  3230. };
  3231. export type CustomerGroupListOptions = {
  3232. skip?: Maybe<Scalars['Int']>;
  3233. take?: Maybe<Scalars['Int']>;
  3234. sort?: Maybe<CustomerGroupSortParameter>;
  3235. filter?: Maybe<CustomerGroupFilterParameter>;
  3236. };
  3237. export type CustomerListOptions = {
  3238. skip?: Maybe<Scalars['Int']>;
  3239. take?: Maybe<Scalars['Int']>;
  3240. sort?: Maybe<CustomerSortParameter>;
  3241. filter?: Maybe<CustomerFilterParameter>;
  3242. };
  3243. export type FacetListOptions = {
  3244. skip?: Maybe<Scalars['Int']>;
  3245. take?: Maybe<Scalars['Int']>;
  3246. sort?: Maybe<FacetSortParameter>;
  3247. filter?: Maybe<FacetFilterParameter>;
  3248. };
  3249. export type JobListOptions = {
  3250. skip?: Maybe<Scalars['Int']>;
  3251. take?: Maybe<Scalars['Int']>;
  3252. sort?: Maybe<JobSortParameter>;
  3253. filter?: Maybe<JobFilterParameter>;
  3254. };
  3255. export type OrderListOptions = {
  3256. skip?: Maybe<Scalars['Int']>;
  3257. take?: Maybe<Scalars['Int']>;
  3258. sort?: Maybe<OrderSortParameter>;
  3259. filter?: Maybe<OrderFilterParameter>;
  3260. };
  3261. export type PaymentMethodListOptions = {
  3262. skip?: Maybe<Scalars['Int']>;
  3263. take?: Maybe<Scalars['Int']>;
  3264. sort?: Maybe<PaymentMethodSortParameter>;
  3265. filter?: Maybe<PaymentMethodFilterParameter>;
  3266. };
  3267. export type ProductListOptions = {
  3268. skip?: Maybe<Scalars['Int']>;
  3269. take?: Maybe<Scalars['Int']>;
  3270. sort?: Maybe<ProductSortParameter>;
  3271. filter?: Maybe<ProductFilterParameter>;
  3272. };
  3273. export type PromotionListOptions = {
  3274. skip?: Maybe<Scalars['Int']>;
  3275. take?: Maybe<Scalars['Int']>;
  3276. sort?: Maybe<PromotionSortParameter>;
  3277. filter?: Maybe<PromotionFilterParameter>;
  3278. };
  3279. export type RoleListOptions = {
  3280. skip?: Maybe<Scalars['Int']>;
  3281. take?: Maybe<Scalars['Int']>;
  3282. sort?: Maybe<RoleSortParameter>;
  3283. filter?: Maybe<RoleFilterParameter>;
  3284. };
  3285. export type ShippingMethodListOptions = {
  3286. skip?: Maybe<Scalars['Int']>;
  3287. take?: Maybe<Scalars['Int']>;
  3288. sort?: Maybe<ShippingMethodSortParameter>;
  3289. filter?: Maybe<ShippingMethodFilterParameter>;
  3290. };
  3291. export type TaxRateListOptions = {
  3292. skip?: Maybe<Scalars['Int']>;
  3293. take?: Maybe<Scalars['Int']>;
  3294. sort?: Maybe<TaxRateSortParameter>;
  3295. filter?: Maybe<TaxRateFilterParameter>;
  3296. };
  3297. export type ProductVariantListOptions = {
  3298. skip?: Maybe<Scalars['Int']>;
  3299. take?: Maybe<Scalars['Int']>;
  3300. sort?: Maybe<ProductVariantSortParameter>;
  3301. filter?: Maybe<ProductVariantFilterParameter>;
  3302. };
  3303. export type HistoryEntryListOptions = {
  3304. skip?: Maybe<Scalars['Int']>;
  3305. take?: Maybe<Scalars['Int']>;
  3306. sort?: Maybe<HistoryEntrySortParameter>;
  3307. filter?: Maybe<HistoryEntryFilterParameter>;
  3308. };
  3309. export type AdministratorFilterParameter = {
  3310. createdAt?: Maybe<DateOperators>;
  3311. updatedAt?: Maybe<DateOperators>;
  3312. firstName?: Maybe<StringOperators>;
  3313. lastName?: Maybe<StringOperators>;
  3314. emailAddress?: Maybe<StringOperators>;
  3315. };
  3316. export type AdministratorSortParameter = {
  3317. id?: Maybe<SortOrder>;
  3318. createdAt?: Maybe<SortOrder>;
  3319. updatedAt?: Maybe<SortOrder>;
  3320. firstName?: Maybe<SortOrder>;
  3321. lastName?: Maybe<SortOrder>;
  3322. emailAddress?: Maybe<SortOrder>;
  3323. };
  3324. export type AssetFilterParameter = {
  3325. createdAt?: Maybe<DateOperators>;
  3326. updatedAt?: Maybe<DateOperators>;
  3327. name?: Maybe<StringOperators>;
  3328. type?: Maybe<StringOperators>;
  3329. fileSize?: Maybe<NumberOperators>;
  3330. mimeType?: Maybe<StringOperators>;
  3331. width?: Maybe<NumberOperators>;
  3332. height?: Maybe<NumberOperators>;
  3333. source?: Maybe<StringOperators>;
  3334. preview?: Maybe<StringOperators>;
  3335. };
  3336. export type AssetSortParameter = {
  3337. id?: Maybe<SortOrder>;
  3338. createdAt?: Maybe<SortOrder>;
  3339. updatedAt?: Maybe<SortOrder>;
  3340. name?: Maybe<SortOrder>;
  3341. fileSize?: Maybe<SortOrder>;
  3342. mimeType?: Maybe<SortOrder>;
  3343. width?: Maybe<SortOrder>;
  3344. height?: Maybe<SortOrder>;
  3345. source?: Maybe<SortOrder>;
  3346. preview?: Maybe<SortOrder>;
  3347. };
  3348. export type CollectionFilterParameter = {
  3349. isPrivate?: Maybe<BooleanOperators>;
  3350. createdAt?: Maybe<DateOperators>;
  3351. updatedAt?: Maybe<DateOperators>;
  3352. languageCode?: Maybe<StringOperators>;
  3353. name?: Maybe<StringOperators>;
  3354. slug?: Maybe<StringOperators>;
  3355. position?: Maybe<NumberOperators>;
  3356. description?: Maybe<StringOperators>;
  3357. };
  3358. export type CollectionSortParameter = {
  3359. id?: Maybe<SortOrder>;
  3360. createdAt?: Maybe<SortOrder>;
  3361. updatedAt?: Maybe<SortOrder>;
  3362. name?: Maybe<SortOrder>;
  3363. slug?: Maybe<SortOrder>;
  3364. position?: Maybe<SortOrder>;
  3365. description?: Maybe<SortOrder>;
  3366. };
  3367. export type CountryFilterParameter = {
  3368. createdAt?: Maybe<DateOperators>;
  3369. updatedAt?: Maybe<DateOperators>;
  3370. languageCode?: Maybe<StringOperators>;
  3371. code?: Maybe<StringOperators>;
  3372. name?: Maybe<StringOperators>;
  3373. enabled?: Maybe<BooleanOperators>;
  3374. };
  3375. export type CountrySortParameter = {
  3376. id?: Maybe<SortOrder>;
  3377. createdAt?: Maybe<SortOrder>;
  3378. updatedAt?: Maybe<SortOrder>;
  3379. code?: Maybe<SortOrder>;
  3380. name?: Maybe<SortOrder>;
  3381. };
  3382. export type CustomerGroupFilterParameter = {
  3383. createdAt?: Maybe<DateOperators>;
  3384. updatedAt?: Maybe<DateOperators>;
  3385. name?: Maybe<StringOperators>;
  3386. };
  3387. export type CustomerGroupSortParameter = {
  3388. id?: Maybe<SortOrder>;
  3389. createdAt?: Maybe<SortOrder>;
  3390. updatedAt?: Maybe<SortOrder>;
  3391. name?: Maybe<SortOrder>;
  3392. };
  3393. export type CustomerFilterParameter = {
  3394. createdAt?: Maybe<DateOperators>;
  3395. updatedAt?: Maybe<DateOperators>;
  3396. title?: Maybe<StringOperators>;
  3397. firstName?: Maybe<StringOperators>;
  3398. lastName?: Maybe<StringOperators>;
  3399. phoneNumber?: Maybe<StringOperators>;
  3400. emailAddress?: Maybe<StringOperators>;
  3401. };
  3402. export type CustomerSortParameter = {
  3403. id?: Maybe<SortOrder>;
  3404. createdAt?: Maybe<SortOrder>;
  3405. updatedAt?: Maybe<SortOrder>;
  3406. title?: Maybe<SortOrder>;
  3407. firstName?: Maybe<SortOrder>;
  3408. lastName?: Maybe<SortOrder>;
  3409. phoneNumber?: Maybe<SortOrder>;
  3410. emailAddress?: Maybe<SortOrder>;
  3411. };
  3412. export type FacetFilterParameter = {
  3413. isPrivate?: Maybe<BooleanOperators>;
  3414. createdAt?: Maybe<DateOperators>;
  3415. updatedAt?: Maybe<DateOperators>;
  3416. languageCode?: Maybe<StringOperators>;
  3417. name?: Maybe<StringOperators>;
  3418. code?: Maybe<StringOperators>;
  3419. };
  3420. export type FacetSortParameter = {
  3421. id?: Maybe<SortOrder>;
  3422. createdAt?: Maybe<SortOrder>;
  3423. updatedAt?: Maybe<SortOrder>;
  3424. name?: Maybe<SortOrder>;
  3425. code?: Maybe<SortOrder>;
  3426. };
  3427. export type JobFilterParameter = {
  3428. createdAt?: Maybe<DateOperators>;
  3429. startedAt?: Maybe<DateOperators>;
  3430. settledAt?: Maybe<DateOperators>;
  3431. queueName?: Maybe<StringOperators>;
  3432. state?: Maybe<StringOperators>;
  3433. progress?: Maybe<NumberOperators>;
  3434. isSettled?: Maybe<BooleanOperators>;
  3435. duration?: Maybe<NumberOperators>;
  3436. };
  3437. export type JobSortParameter = {
  3438. id?: Maybe<SortOrder>;
  3439. createdAt?: Maybe<SortOrder>;
  3440. startedAt?: Maybe<SortOrder>;
  3441. settledAt?: Maybe<SortOrder>;
  3442. queueName?: Maybe<SortOrder>;
  3443. progress?: Maybe<SortOrder>;
  3444. duration?: Maybe<SortOrder>;
  3445. };
  3446. export type OrderFilterParameter = {
  3447. createdAt?: Maybe<DateOperators>;
  3448. updatedAt?: Maybe<DateOperators>;
  3449. orderPlacedAt?: Maybe<DateOperators>;
  3450. code?: Maybe<StringOperators>;
  3451. state?: Maybe<StringOperators>;
  3452. active?: Maybe<BooleanOperators>;
  3453. totalQuantity?: Maybe<NumberOperators>;
  3454. subTotalBeforeTax?: Maybe<NumberOperators>;
  3455. subTotal?: Maybe<NumberOperators>;
  3456. currencyCode?: Maybe<StringOperators>;
  3457. shipping?: Maybe<NumberOperators>;
  3458. shippingWithTax?: Maybe<NumberOperators>;
  3459. totalBeforeTax?: Maybe<NumberOperators>;
  3460. total?: Maybe<NumberOperators>;
  3461. };
  3462. export type OrderSortParameter = {
  3463. id?: Maybe<SortOrder>;
  3464. createdAt?: Maybe<SortOrder>;
  3465. updatedAt?: Maybe<SortOrder>;
  3466. orderPlacedAt?: Maybe<SortOrder>;
  3467. code?: Maybe<SortOrder>;
  3468. state?: Maybe<SortOrder>;
  3469. totalQuantity?: Maybe<SortOrder>;
  3470. subTotalBeforeTax?: Maybe<SortOrder>;
  3471. subTotal?: Maybe<SortOrder>;
  3472. shipping?: Maybe<SortOrder>;
  3473. shippingWithTax?: Maybe<SortOrder>;
  3474. totalBeforeTax?: Maybe<SortOrder>;
  3475. total?: Maybe<SortOrder>;
  3476. };
  3477. export type PaymentMethodFilterParameter = {
  3478. createdAt?: Maybe<DateOperators>;
  3479. updatedAt?: Maybe<DateOperators>;
  3480. code?: Maybe<StringOperators>;
  3481. enabled?: Maybe<BooleanOperators>;
  3482. };
  3483. export type PaymentMethodSortParameter = {
  3484. id?: Maybe<SortOrder>;
  3485. createdAt?: Maybe<SortOrder>;
  3486. updatedAt?: Maybe<SortOrder>;
  3487. code?: Maybe<SortOrder>;
  3488. };
  3489. export type ProductFilterParameter = {
  3490. enabled?: Maybe<BooleanOperators>;
  3491. createdAt?: Maybe<DateOperators>;
  3492. updatedAt?: Maybe<DateOperators>;
  3493. languageCode?: Maybe<StringOperators>;
  3494. name?: Maybe<StringOperators>;
  3495. slug?: Maybe<StringOperators>;
  3496. description?: Maybe<StringOperators>;
  3497. };
  3498. export type ProductSortParameter = {
  3499. id?: Maybe<SortOrder>;
  3500. createdAt?: Maybe<SortOrder>;
  3501. updatedAt?: Maybe<SortOrder>;
  3502. name?: Maybe<SortOrder>;
  3503. slug?: Maybe<SortOrder>;
  3504. description?: Maybe<SortOrder>;
  3505. };
  3506. export type PromotionFilterParameter = {
  3507. createdAt?: Maybe<DateOperators>;
  3508. updatedAt?: Maybe<DateOperators>;
  3509. startsAt?: Maybe<DateOperators>;
  3510. endsAt?: Maybe<DateOperators>;
  3511. couponCode?: Maybe<StringOperators>;
  3512. perCustomerUsageLimit?: Maybe<NumberOperators>;
  3513. name?: Maybe<StringOperators>;
  3514. enabled?: Maybe<BooleanOperators>;
  3515. };
  3516. export type PromotionSortParameter = {
  3517. id?: Maybe<SortOrder>;
  3518. createdAt?: Maybe<SortOrder>;
  3519. updatedAt?: Maybe<SortOrder>;
  3520. startsAt?: Maybe<SortOrder>;
  3521. endsAt?: Maybe<SortOrder>;
  3522. couponCode?: Maybe<SortOrder>;
  3523. perCustomerUsageLimit?: Maybe<SortOrder>;
  3524. name?: Maybe<SortOrder>;
  3525. };
  3526. export type RoleFilterParameter = {
  3527. createdAt?: Maybe<DateOperators>;
  3528. updatedAt?: Maybe<DateOperators>;
  3529. code?: Maybe<StringOperators>;
  3530. description?: Maybe<StringOperators>;
  3531. };
  3532. export type RoleSortParameter = {
  3533. id?: Maybe<SortOrder>;
  3534. createdAt?: Maybe<SortOrder>;
  3535. updatedAt?: Maybe<SortOrder>;
  3536. code?: Maybe<SortOrder>;
  3537. description?: Maybe<SortOrder>;
  3538. };
  3539. export type ShippingMethodFilterParameter = {
  3540. createdAt?: Maybe<DateOperators>;
  3541. updatedAt?: Maybe<DateOperators>;
  3542. code?: Maybe<StringOperators>;
  3543. description?: Maybe<StringOperators>;
  3544. };
  3545. export type ShippingMethodSortParameter = {
  3546. id?: Maybe<SortOrder>;
  3547. createdAt?: Maybe<SortOrder>;
  3548. updatedAt?: Maybe<SortOrder>;
  3549. code?: Maybe<SortOrder>;
  3550. description?: Maybe<SortOrder>;
  3551. };
  3552. export type TaxRateFilterParameter = {
  3553. createdAt?: Maybe<DateOperators>;
  3554. updatedAt?: Maybe<DateOperators>;
  3555. name?: Maybe<StringOperators>;
  3556. enabled?: Maybe<BooleanOperators>;
  3557. value?: Maybe<NumberOperators>;
  3558. };
  3559. export type TaxRateSortParameter = {
  3560. id?: Maybe<SortOrder>;
  3561. createdAt?: Maybe<SortOrder>;
  3562. updatedAt?: Maybe<SortOrder>;
  3563. name?: Maybe<SortOrder>;
  3564. value?: Maybe<SortOrder>;
  3565. };
  3566. export type ProductVariantFilterParameter = {
  3567. enabled?: Maybe<BooleanOperators>;
  3568. trackInventory?: Maybe<StringOperators>;
  3569. stockOnHand?: Maybe<NumberOperators>;
  3570. stockAllocated?: Maybe<NumberOperators>;
  3571. outOfStockThreshold?: Maybe<NumberOperators>;
  3572. useGlobalOutOfStockThreshold?: Maybe<BooleanOperators>;
  3573. createdAt?: Maybe<DateOperators>;
  3574. updatedAt?: Maybe<DateOperators>;
  3575. languageCode?: Maybe<StringOperators>;
  3576. sku?: Maybe<StringOperators>;
  3577. name?: Maybe<StringOperators>;
  3578. price?: Maybe<NumberOperators>;
  3579. currencyCode?: Maybe<StringOperators>;
  3580. priceIncludesTax?: Maybe<BooleanOperators>;
  3581. priceWithTax?: Maybe<NumberOperators>;
  3582. };
  3583. export type ProductVariantSortParameter = {
  3584. stockOnHand?: Maybe<SortOrder>;
  3585. stockAllocated?: Maybe<SortOrder>;
  3586. outOfStockThreshold?: Maybe<SortOrder>;
  3587. id?: Maybe<SortOrder>;
  3588. productId?: Maybe<SortOrder>;
  3589. createdAt?: Maybe<SortOrder>;
  3590. updatedAt?: Maybe<SortOrder>;
  3591. sku?: Maybe<SortOrder>;
  3592. name?: Maybe<SortOrder>;
  3593. price?: Maybe<SortOrder>;
  3594. priceWithTax?: Maybe<SortOrder>;
  3595. };
  3596. export type HistoryEntryFilterParameter = {
  3597. createdAt?: Maybe<DateOperators>;
  3598. updatedAt?: Maybe<DateOperators>;
  3599. isPublic?: Maybe<BooleanOperators>;
  3600. type?: Maybe<StringOperators>;
  3601. };
  3602. export type HistoryEntrySortParameter = {
  3603. id?: Maybe<SortOrder>;
  3604. createdAt?: Maybe<SortOrder>;
  3605. updatedAt?: Maybe<SortOrder>;
  3606. };
  3607. export type CustomFields = {
  3608. __typename?: 'CustomFields';
  3609. Address: Array<CustomFieldConfig>;
  3610. Collection: Array<CustomFieldConfig>;
  3611. Customer: Array<CustomFieldConfig>;
  3612. Facet: Array<CustomFieldConfig>;
  3613. FacetValue: Array<CustomFieldConfig>;
  3614. Fulfillment: Array<CustomFieldConfig>;
  3615. GlobalSettings: Array<CustomFieldConfig>;
  3616. Order: Array<CustomFieldConfig>;
  3617. OrderLine: Array<CustomFieldConfig>;
  3618. Product: Array<CustomFieldConfig>;
  3619. ProductOption: Array<CustomFieldConfig>;
  3620. ProductOptionGroup: Array<CustomFieldConfig>;
  3621. ProductVariant: Array<CustomFieldConfig>;
  3622. User: Array<CustomFieldConfig>;
  3623. ShippingMethod: Array<CustomFieldConfig>;
  3624. };
  3625. export type AuthenticationInput = {
  3626. native?: Maybe<NativeAuthInput>;
  3627. };
  3628. export type NativeAuthInput = {
  3629. username: Scalars['String'];
  3630. password: Scalars['String'];
  3631. };