generated-types.ts 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195
  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. /** A unique code for the Order */
  980. code: Scalars['String'];
  981. state: Scalars['String'];
  982. /** An order is active as long as the payment process has not been completed */
  983. active: Scalars['Boolean'];
  984. customer?: Maybe<Customer>;
  985. shippingAddress?: Maybe<OrderAddress>;
  986. billingAddress?: Maybe<OrderAddress>;
  987. lines: Array<OrderLine>;
  988. /** Order-level adjustments to the order total, such as discounts from promotions */
  989. adjustments: Array<Adjustment>;
  990. couponCodes: Array<Scalars['String']>;
  991. /** Promotions applied to the order. Only gets populated after the payment process has completed. */
  992. promotions: Array<Promotion>;
  993. payments?: Maybe<Array<Payment>>;
  994. fulfillments?: Maybe<Array<Fulfillment>>;
  995. totalQuantity: Scalars['Int'];
  996. subTotalBeforeTax: Scalars['Int'];
  997. /** The subTotal is the total of the OrderLines, before order-level promotions and shipping has been applied. */
  998. subTotal: Scalars['Int'];
  999. currencyCode: CurrencyCode;
  1000. shipping: Scalars['Int'];
  1001. shippingWithTax: Scalars['Int'];
  1002. shippingMethod?: Maybe<ShippingMethod>;
  1003. totalBeforeTax: Scalars['Int'];
  1004. total: Scalars['Int'];
  1005. taxSummary: Array<OrderTaxSummary>;
  1006. history: HistoryEntryList;
  1007. customFields?: Maybe<Scalars['JSON']>;
  1008. };
  1009. export type OrderHistoryArgs = {
  1010. options?: Maybe<HistoryEntryListOptions>;
  1011. };
  1012. export type UpdateOrderInput = {
  1013. id: Scalars['ID'];
  1014. customFields?: Maybe<Scalars['JSON']>;
  1015. };
  1016. export type FulfillOrderInput = {
  1017. lines: Array<OrderLineInput>;
  1018. method: Scalars['String'];
  1019. trackingCode?: Maybe<Scalars['String']>;
  1020. };
  1021. export type CancelOrderInput = {
  1022. /** The id of the order to be cancelled */
  1023. orderId: Scalars['ID'];
  1024. /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */
  1025. lines?: Maybe<Array<OrderLineInput>>;
  1026. reason?: Maybe<Scalars['String']>;
  1027. };
  1028. export type RefundOrderInput = {
  1029. lines: Array<OrderLineInput>;
  1030. shipping: Scalars['Int'];
  1031. adjustment: Scalars['Int'];
  1032. paymentId: Scalars['ID'];
  1033. reason?: Maybe<Scalars['String']>;
  1034. };
  1035. export type OrderLineInput = {
  1036. orderLineId: Scalars['ID'];
  1037. quantity: Scalars['Int'];
  1038. };
  1039. export type SettleRefundInput = {
  1040. id: Scalars['ID'];
  1041. transactionId: Scalars['String'];
  1042. };
  1043. export type AddNoteToOrderInput = {
  1044. id: Scalars['ID'];
  1045. note: Scalars['String'];
  1046. isPublic: Scalars['Boolean'];
  1047. };
  1048. export type UpdateOrderNoteInput = {
  1049. noteId: Scalars['ID'];
  1050. note?: Maybe<Scalars['String']>;
  1051. isPublic?: Maybe<Scalars['Boolean']>;
  1052. };
  1053. /** Returned if the Payment settlement fails */
  1054. export type SettlePaymentError = ErrorResult & {
  1055. __typename?: 'SettlePaymentError';
  1056. errorCode: ErrorCode;
  1057. message: Scalars['String'];
  1058. paymentErrorMessage: Scalars['String'];
  1059. };
  1060. /** Returned if no OrderLines have been specified for the operation */
  1061. export type EmptyOrderLineSelectionError = ErrorResult & {
  1062. __typename?: 'EmptyOrderLineSelectionError';
  1063. errorCode: ErrorCode;
  1064. message: Scalars['String'];
  1065. };
  1066. /** Returned if the specified items are already part of a Fulfillment */
  1067. export type ItemsAlreadyFulfilledError = ErrorResult & {
  1068. __typename?: 'ItemsAlreadyFulfilledError';
  1069. errorCode: ErrorCode;
  1070. message: Scalars['String'];
  1071. };
  1072. /**
  1073. * Returned if attempting to create a Fulfillment when there is insufficient
  1074. * stockOnHand of a ProductVariant to satisfy the requested quantity.
  1075. */
  1076. export type InsufficientStockOnHandError = ErrorResult & {
  1077. __typename?: 'InsufficientStockOnHandError';
  1078. errorCode: ErrorCode;
  1079. message: Scalars['String'];
  1080. productVariantId: Scalars['ID'];
  1081. productVariantName: Scalars['String'];
  1082. stockOnHand: Scalars['Int'];
  1083. };
  1084. /** Returned if an operation has specified OrderLines from multiple Orders */
  1085. export type MultipleOrderError = ErrorResult & {
  1086. __typename?: 'MultipleOrderError';
  1087. errorCode: ErrorCode;
  1088. message: Scalars['String'];
  1089. };
  1090. /** Returned if an attempting to cancel lines from an Order which is still active */
  1091. export type CancelActiveOrderError = ErrorResult & {
  1092. __typename?: 'CancelActiveOrderError';
  1093. errorCode: ErrorCode;
  1094. message: Scalars['String'];
  1095. orderState: Scalars['String'];
  1096. };
  1097. /** Returned if an attempting to refund a Payment against OrderLines from a different Order */
  1098. export type PaymentOrderMismatchError = ErrorResult & {
  1099. __typename?: 'PaymentOrderMismatchError';
  1100. errorCode: ErrorCode;
  1101. message: Scalars['String'];
  1102. };
  1103. /** Returned if an attempting to refund an Order which is not in the expected state */
  1104. export type RefundOrderStateError = ErrorResult & {
  1105. __typename?: 'RefundOrderStateError';
  1106. errorCode: ErrorCode;
  1107. message: Scalars['String'];
  1108. orderState: Scalars['String'];
  1109. };
  1110. /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */
  1111. export type NothingToRefundError = ErrorResult & {
  1112. __typename?: 'NothingToRefundError';
  1113. errorCode: ErrorCode;
  1114. message: Scalars['String'];
  1115. };
  1116. /** Returned if an attempting to refund an OrderItem which has already been refunded */
  1117. export type AlreadyRefundedError = ErrorResult & {
  1118. __typename?: 'AlreadyRefundedError';
  1119. errorCode: ErrorCode;
  1120. message: Scalars['String'];
  1121. refundId: Scalars['ID'];
  1122. };
  1123. /** Returned if the specified quantity of an OrderLine is greater than the number of items in that line */
  1124. export type QuantityTooGreatError = ErrorResult & {
  1125. __typename?: 'QuantityTooGreatError';
  1126. errorCode: ErrorCode;
  1127. message: Scalars['String'];
  1128. };
  1129. /** Returned when there is an error in transitioning the Refund state */
  1130. export type RefundStateTransitionError = ErrorResult & {
  1131. __typename?: 'RefundStateTransitionError';
  1132. errorCode: ErrorCode;
  1133. message: Scalars['String'];
  1134. transitionError: Scalars['String'];
  1135. fromState: Scalars['String'];
  1136. toState: Scalars['String'];
  1137. };
  1138. /** Returned when there is an error in transitioning the Payment state */
  1139. export type PaymentStateTransitionError = ErrorResult & {
  1140. __typename?: 'PaymentStateTransitionError';
  1141. errorCode: ErrorCode;
  1142. message: Scalars['String'];
  1143. transitionError: Scalars['String'];
  1144. fromState: Scalars['String'];
  1145. toState: Scalars['String'];
  1146. };
  1147. /** Returned when there is an error in transitioning the Fulfillment state */
  1148. export type FulfillmentStateTransitionError = ErrorResult & {
  1149. __typename?: 'FulfillmentStateTransitionError';
  1150. errorCode: ErrorCode;
  1151. message: Scalars['String'];
  1152. transitionError: Scalars['String'];
  1153. fromState: Scalars['String'];
  1154. toState: Scalars['String'];
  1155. };
  1156. export type TransitionOrderToStateResult = Order | OrderStateTransitionError;
  1157. export type SettlePaymentResult = Payment | SettlePaymentError | PaymentStateTransitionError | OrderStateTransitionError;
  1158. export type AddFulfillmentToOrderResult = Fulfillment | EmptyOrderLineSelectionError | ItemsAlreadyFulfilledError | InsufficientStockOnHandError;
  1159. export type CancelOrderResult = Order | EmptyOrderLineSelectionError | QuantityTooGreatError | MultipleOrderError | CancelActiveOrderError | OrderStateTransitionError;
  1160. export type RefundOrderResult = Refund | QuantityTooGreatError | NothingToRefundError | OrderStateTransitionError | MultipleOrderError | PaymentOrderMismatchError | RefundOrderStateError | AlreadyRefundedError | RefundStateTransitionError;
  1161. export type SettleRefundResult = Refund | RefundStateTransitionError;
  1162. export type TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError;
  1163. export type PaymentMethodList = PaginatedList & {
  1164. __typename?: 'PaymentMethodList';
  1165. items: Array<PaymentMethod>;
  1166. totalItems: Scalars['Int'];
  1167. };
  1168. export type UpdatePaymentMethodInput = {
  1169. id: Scalars['ID'];
  1170. code?: Maybe<Scalars['String']>;
  1171. enabled?: Maybe<Scalars['Boolean']>;
  1172. configArgs?: Maybe<Array<ConfigArgInput>>;
  1173. };
  1174. export type ProductOptionGroupTranslationInput = {
  1175. id?: Maybe<Scalars['ID']>;
  1176. languageCode: LanguageCode;
  1177. name?: Maybe<Scalars['String']>;
  1178. customFields?: Maybe<Scalars['JSON']>;
  1179. };
  1180. export type CreateProductOptionGroupInput = {
  1181. code: Scalars['String'];
  1182. translations: Array<ProductOptionGroupTranslationInput>;
  1183. options: Array<CreateGroupOptionInput>;
  1184. customFields?: Maybe<Scalars['JSON']>;
  1185. };
  1186. export type UpdateProductOptionGroupInput = {
  1187. id: Scalars['ID'];
  1188. code?: Maybe<Scalars['String']>;
  1189. translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
  1190. customFields?: Maybe<Scalars['JSON']>;
  1191. };
  1192. export type ProductOptionTranslationInput = {
  1193. id?: Maybe<Scalars['ID']>;
  1194. languageCode: LanguageCode;
  1195. name?: Maybe<Scalars['String']>;
  1196. customFields?: Maybe<Scalars['JSON']>;
  1197. };
  1198. export type CreateGroupOptionInput = {
  1199. code: Scalars['String'];
  1200. translations: Array<ProductOptionGroupTranslationInput>;
  1201. };
  1202. export type CreateProductOptionInput = {
  1203. productOptionGroupId: Scalars['ID'];
  1204. code: Scalars['String'];
  1205. translations: Array<ProductOptionGroupTranslationInput>;
  1206. customFields?: Maybe<Scalars['JSON']>;
  1207. };
  1208. export type UpdateProductOptionInput = {
  1209. id: Scalars['ID'];
  1210. code?: Maybe<Scalars['String']>;
  1211. translations?: Maybe<Array<ProductOptionGroupTranslationInput>>;
  1212. customFields?: Maybe<Scalars['JSON']>;
  1213. };
  1214. export type SearchResult = {
  1215. __typename?: 'SearchResult';
  1216. enabled: Scalars['Boolean'];
  1217. /** An array of ids of the Collections in which this result appears */
  1218. channelIds: Array<Scalars['ID']>;
  1219. sku: Scalars['String'];
  1220. slug: Scalars['String'];
  1221. productId: Scalars['ID'];
  1222. productName: Scalars['String'];
  1223. /** @deprecated Use `productAsset.preview` instead */
  1224. productPreview: Scalars['String'];
  1225. productAsset?: Maybe<SearchResultAsset>;
  1226. productVariantId: Scalars['ID'];
  1227. productVariantName: Scalars['String'];
  1228. /** @deprecated Use `productVariantAsset.preview` instead */
  1229. productVariantPreview: Scalars['String'];
  1230. productVariantAsset?: Maybe<SearchResultAsset>;
  1231. price: SearchResultPrice;
  1232. priceWithTax: SearchResultPrice;
  1233. currencyCode: CurrencyCode;
  1234. description: Scalars['String'];
  1235. facetIds: Array<Scalars['ID']>;
  1236. facetValueIds: Array<Scalars['ID']>;
  1237. /** An array of ids of the Collections in which this result appears */
  1238. collectionIds: Array<Scalars['ID']>;
  1239. /** A relevence score for the result. Differs between database implementations */
  1240. score: Scalars['Float'];
  1241. };
  1242. export type Product = Node & {
  1243. __typename?: 'Product';
  1244. enabled: Scalars['Boolean'];
  1245. channels: Array<Channel>;
  1246. id: Scalars['ID'];
  1247. createdAt: Scalars['DateTime'];
  1248. updatedAt: Scalars['DateTime'];
  1249. languageCode: LanguageCode;
  1250. name: Scalars['String'];
  1251. slug: Scalars['String'];
  1252. description: Scalars['String'];
  1253. featuredAsset?: Maybe<Asset>;
  1254. assets: Array<Asset>;
  1255. variants: Array<ProductVariant>;
  1256. optionGroups: Array<ProductOptionGroup>;
  1257. facetValues: Array<FacetValue>;
  1258. translations: Array<ProductTranslation>;
  1259. collections: Array<Collection>;
  1260. customFields?: Maybe<Scalars['JSON']>;
  1261. };
  1262. export type ProductVariant = Node & {
  1263. __typename?: 'ProductVariant';
  1264. enabled: Scalars['Boolean'];
  1265. trackInventory: GlobalFlag;
  1266. stockOnHand: Scalars['Int'];
  1267. stockAllocated: Scalars['Int'];
  1268. outOfStockThreshold: Scalars['Int'];
  1269. useGlobalOutOfStockThreshold: Scalars['Boolean'];
  1270. stockMovements: StockMovementList;
  1271. id: Scalars['ID'];
  1272. product: Product;
  1273. productId: Scalars['ID'];
  1274. createdAt: Scalars['DateTime'];
  1275. updatedAt: Scalars['DateTime'];
  1276. languageCode: LanguageCode;
  1277. sku: Scalars['String'];
  1278. name: Scalars['String'];
  1279. featuredAsset?: Maybe<Asset>;
  1280. assets: Array<Asset>;
  1281. price: Scalars['Int'];
  1282. currencyCode: CurrencyCode;
  1283. priceIncludesTax: Scalars['Boolean'];
  1284. priceWithTax: Scalars['Int'];
  1285. taxRateApplied: TaxRate;
  1286. taxCategory: TaxCategory;
  1287. options: Array<ProductOption>;
  1288. facetValues: Array<FacetValue>;
  1289. translations: Array<ProductVariantTranslation>;
  1290. customFields?: Maybe<Scalars['JSON']>;
  1291. };
  1292. export type ProductVariantStockMovementsArgs = {
  1293. options?: Maybe<StockMovementListOptions>;
  1294. };
  1295. export type StockMovementListOptions = {
  1296. type?: Maybe<StockMovementType>;
  1297. skip?: Maybe<Scalars['Int']>;
  1298. take?: Maybe<Scalars['Int']>;
  1299. };
  1300. export type ProductTranslationInput = {
  1301. id?: Maybe<Scalars['ID']>;
  1302. languageCode: LanguageCode;
  1303. name?: Maybe<Scalars['String']>;
  1304. slug?: Maybe<Scalars['String']>;
  1305. description?: Maybe<Scalars['String']>;
  1306. customFields?: Maybe<Scalars['JSON']>;
  1307. };
  1308. export type CreateProductInput = {
  1309. featuredAssetId?: Maybe<Scalars['ID']>;
  1310. assetIds?: Maybe<Array<Scalars['ID']>>;
  1311. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1312. translations: Array<ProductTranslationInput>;
  1313. customFields?: Maybe<Scalars['JSON']>;
  1314. };
  1315. export type UpdateProductInput = {
  1316. id: Scalars['ID'];
  1317. enabled?: Maybe<Scalars['Boolean']>;
  1318. featuredAssetId?: Maybe<Scalars['ID']>;
  1319. assetIds?: Maybe<Array<Scalars['ID']>>;
  1320. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1321. translations?: Maybe<Array<ProductTranslationInput>>;
  1322. customFields?: Maybe<Scalars['JSON']>;
  1323. };
  1324. export type ProductVariantTranslationInput = {
  1325. id?: Maybe<Scalars['ID']>;
  1326. languageCode: LanguageCode;
  1327. name?: Maybe<Scalars['String']>;
  1328. customFields?: Maybe<Scalars['JSON']>;
  1329. };
  1330. export type CreateProductVariantOptionInput = {
  1331. optionGroupId: Scalars['ID'];
  1332. code: Scalars['String'];
  1333. translations: Array<ProductOptionTranslationInput>;
  1334. };
  1335. export type CreateProductVariantInput = {
  1336. productId: Scalars['ID'];
  1337. translations: Array<ProductVariantTranslationInput>;
  1338. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1339. sku: Scalars['String'];
  1340. price?: Maybe<Scalars['Int']>;
  1341. taxCategoryId?: Maybe<Scalars['ID']>;
  1342. optionIds?: Maybe<Array<Scalars['ID']>>;
  1343. featuredAssetId?: Maybe<Scalars['ID']>;
  1344. assetIds?: Maybe<Array<Scalars['ID']>>;
  1345. stockOnHand?: Maybe<Scalars['Int']>;
  1346. outOfStockThreshold?: Maybe<Scalars['Int']>;
  1347. useGlobalOutOfStockThreshold?: Maybe<Scalars['Boolean']>;
  1348. trackInventory?: Maybe<GlobalFlag>;
  1349. customFields?: Maybe<Scalars['JSON']>;
  1350. };
  1351. export type UpdateProductVariantInput = {
  1352. id: Scalars['ID'];
  1353. enabled?: Maybe<Scalars['Boolean']>;
  1354. translations?: Maybe<Array<ProductVariantTranslationInput>>;
  1355. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1356. sku?: Maybe<Scalars['String']>;
  1357. taxCategoryId?: Maybe<Scalars['ID']>;
  1358. price?: Maybe<Scalars['Int']>;
  1359. featuredAssetId?: Maybe<Scalars['ID']>;
  1360. assetIds?: Maybe<Array<Scalars['ID']>>;
  1361. stockOnHand?: Maybe<Scalars['Int']>;
  1362. outOfStockThreshold?: Maybe<Scalars['Int']>;
  1363. useGlobalOutOfStockThreshold?: Maybe<Scalars['Boolean']>;
  1364. trackInventory?: Maybe<GlobalFlag>;
  1365. customFields?: Maybe<Scalars['JSON']>;
  1366. };
  1367. export type AssignProductsToChannelInput = {
  1368. productIds: Array<Scalars['ID']>;
  1369. channelId: Scalars['ID'];
  1370. priceFactor?: Maybe<Scalars['Float']>;
  1371. };
  1372. export type RemoveProductsFromChannelInput = {
  1373. productIds: Array<Scalars['ID']>;
  1374. channelId: Scalars['ID'];
  1375. };
  1376. export type ProductOptionInUseError = ErrorResult & {
  1377. __typename?: 'ProductOptionInUseError';
  1378. errorCode: ErrorCode;
  1379. message: Scalars['String'];
  1380. optionGroupCode: Scalars['String'];
  1381. productVariantCount: Scalars['Int'];
  1382. };
  1383. export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError;
  1384. export type CreatePromotionInput = {
  1385. name: Scalars['String'];
  1386. enabled: Scalars['Boolean'];
  1387. startsAt?: Maybe<Scalars['DateTime']>;
  1388. endsAt?: Maybe<Scalars['DateTime']>;
  1389. couponCode?: Maybe<Scalars['String']>;
  1390. perCustomerUsageLimit?: Maybe<Scalars['Int']>;
  1391. conditions: Array<ConfigurableOperationInput>;
  1392. actions: Array<ConfigurableOperationInput>;
  1393. };
  1394. export type UpdatePromotionInput = {
  1395. id: Scalars['ID'];
  1396. name?: Maybe<Scalars['String']>;
  1397. enabled?: Maybe<Scalars['Boolean']>;
  1398. startsAt?: Maybe<Scalars['DateTime']>;
  1399. endsAt?: Maybe<Scalars['DateTime']>;
  1400. couponCode?: Maybe<Scalars['String']>;
  1401. perCustomerUsageLimit?: Maybe<Scalars['Int']>;
  1402. conditions?: Maybe<Array<ConfigurableOperationInput>>;
  1403. actions?: Maybe<Array<ConfigurableOperationInput>>;
  1404. };
  1405. /** Returned if a PromotionCondition has neither a couponCode nor any conditions set */
  1406. export type MissingConditionsError = ErrorResult & {
  1407. __typename?: 'MissingConditionsError';
  1408. errorCode: ErrorCode;
  1409. message: Scalars['String'];
  1410. };
  1411. export type CreatePromotionResult = Promotion | MissingConditionsError;
  1412. export type UpdatePromotionResult = Promotion | MissingConditionsError;
  1413. export type CreateRoleInput = {
  1414. code: Scalars['String'];
  1415. description: Scalars['String'];
  1416. permissions: Array<Permission>;
  1417. channelIds?: Maybe<Array<Scalars['ID']>>;
  1418. };
  1419. export type UpdateRoleInput = {
  1420. id: Scalars['ID'];
  1421. code?: Maybe<Scalars['String']>;
  1422. description?: Maybe<Scalars['String']>;
  1423. permissions?: Maybe<Array<Permission>>;
  1424. channelIds?: Maybe<Array<Scalars['ID']>>;
  1425. };
  1426. export type CreateShippingMethodInput = {
  1427. code: Scalars['String'];
  1428. description: Scalars['String'];
  1429. checker: ConfigurableOperationInput;
  1430. calculator: ConfigurableOperationInput;
  1431. customFields?: Maybe<Scalars['JSON']>;
  1432. };
  1433. export type UpdateShippingMethodInput = {
  1434. id: Scalars['ID'];
  1435. code?: Maybe<Scalars['String']>;
  1436. description?: Maybe<Scalars['String']>;
  1437. checker?: Maybe<ConfigurableOperationInput>;
  1438. calculator?: Maybe<ConfigurableOperationInput>;
  1439. customFields?: Maybe<Scalars['JSON']>;
  1440. };
  1441. export type TestShippingMethodInput = {
  1442. checker: ConfigurableOperationInput;
  1443. calculator: ConfigurableOperationInput;
  1444. shippingAddress: CreateAddressInput;
  1445. lines: Array<TestShippingMethodOrderLineInput>;
  1446. };
  1447. export type TestEligibleShippingMethodsInput = {
  1448. shippingAddress: CreateAddressInput;
  1449. lines: Array<TestShippingMethodOrderLineInput>;
  1450. };
  1451. export type TestShippingMethodOrderLineInput = {
  1452. productVariantId: Scalars['ID'];
  1453. quantity: Scalars['Int'];
  1454. };
  1455. export type TestShippingMethodResult = {
  1456. __typename?: 'TestShippingMethodResult';
  1457. eligible: Scalars['Boolean'];
  1458. quote?: Maybe<TestShippingMethodQuote>;
  1459. };
  1460. export type TestShippingMethodQuote = {
  1461. __typename?: 'TestShippingMethodQuote';
  1462. price: Scalars['Int'];
  1463. priceWithTax: Scalars['Int'];
  1464. description: Scalars['String'];
  1465. metadata?: Maybe<Scalars['JSON']>;
  1466. };
  1467. export type CreateTaxCategoryInput = {
  1468. name: Scalars['String'];
  1469. };
  1470. export type UpdateTaxCategoryInput = {
  1471. id: Scalars['ID'];
  1472. name?: Maybe<Scalars['String']>;
  1473. };
  1474. export type CreateTaxRateInput = {
  1475. name: Scalars['String'];
  1476. enabled: Scalars['Boolean'];
  1477. value: Scalars['Float'];
  1478. categoryId: Scalars['ID'];
  1479. zoneId: Scalars['ID'];
  1480. customerGroupId?: Maybe<Scalars['ID']>;
  1481. };
  1482. export type UpdateTaxRateInput = {
  1483. id: Scalars['ID'];
  1484. name?: Maybe<Scalars['String']>;
  1485. value?: Maybe<Scalars['Float']>;
  1486. enabled?: Maybe<Scalars['Boolean']>;
  1487. categoryId?: Maybe<Scalars['ID']>;
  1488. zoneId?: Maybe<Scalars['ID']>;
  1489. customerGroupId?: Maybe<Scalars['ID']>;
  1490. };
  1491. export type CreateZoneInput = {
  1492. name: Scalars['String'];
  1493. memberIds?: Maybe<Array<Scalars['ID']>>;
  1494. };
  1495. export type UpdateZoneInput = {
  1496. id: Scalars['ID'];
  1497. name?: Maybe<Scalars['String']>;
  1498. };
  1499. export enum GlobalFlag {
  1500. TRUE = 'TRUE',
  1501. FALSE = 'FALSE',
  1502. INHERIT = 'INHERIT'
  1503. }
  1504. export enum AdjustmentType {
  1505. TAX = 'TAX',
  1506. PROMOTION = 'PROMOTION',
  1507. SHIPPING = 'SHIPPING',
  1508. REFUND = 'REFUND',
  1509. TAX_REFUND = 'TAX_REFUND',
  1510. PROMOTION_REFUND = 'PROMOTION_REFUND',
  1511. SHIPPING_REFUND = 'SHIPPING_REFUND'
  1512. }
  1513. export type Adjustment = {
  1514. __typename?: 'Adjustment';
  1515. adjustmentSource: Scalars['String'];
  1516. type: AdjustmentType;
  1517. description: Scalars['String'];
  1518. amount: Scalars['Int'];
  1519. };
  1520. export type ConfigArg = {
  1521. __typename?: 'ConfigArg';
  1522. name: Scalars['String'];
  1523. value: Scalars['String'];
  1524. };
  1525. export type ConfigArgDefinition = {
  1526. __typename?: 'ConfigArgDefinition';
  1527. name: Scalars['String'];
  1528. type: Scalars['String'];
  1529. list: Scalars['Boolean'];
  1530. label?: Maybe<Scalars['String']>;
  1531. description?: Maybe<Scalars['String']>;
  1532. ui?: Maybe<Scalars['JSON']>;
  1533. };
  1534. export type ConfigurableOperation = {
  1535. __typename?: 'ConfigurableOperation';
  1536. code: Scalars['String'];
  1537. args: Array<ConfigArg>;
  1538. };
  1539. export type ConfigurableOperationDefinition = {
  1540. __typename?: 'ConfigurableOperationDefinition';
  1541. code: Scalars['String'];
  1542. args: Array<ConfigArgDefinition>;
  1543. description: Scalars['String'];
  1544. };
  1545. export enum DeletionResult {
  1546. /** The entity was successfully deleted */
  1547. DELETED = 'DELETED',
  1548. /** Deletion did not take place, reason given in message */
  1549. NOT_DELETED = 'NOT_DELETED'
  1550. }
  1551. /**
  1552. * @description
  1553. * Permissions for administrators and customers. Used to control access to
  1554. * GraphQL resolvers via the {@link Allow} decorator.
  1555. *
  1556. * @docsCategory common
  1557. */
  1558. export enum Permission {
  1559. /** Authenticated means simply that the user is logged in */
  1560. Authenticated = 'Authenticated',
  1561. /** SuperAdmin has unrestricted access to all operations */
  1562. SuperAdmin = 'SuperAdmin',
  1563. /** Owner means the user owns this entity, e.g. a Customer's own Order */
  1564. Owner = 'Owner',
  1565. /** Public means any unauthenticated user may perform the operation */
  1566. Public = 'Public',
  1567. /** Grants permission to create Catalog */
  1568. CreateCatalog = 'CreateCatalog',
  1569. /** Grants permission to read Catalog */
  1570. ReadCatalog = 'ReadCatalog',
  1571. /** Grants permission to update Catalog */
  1572. UpdateCatalog = 'UpdateCatalog',
  1573. /** Grants permission to delete Catalog */
  1574. DeleteCatalog = 'DeleteCatalog',
  1575. /** Grants permission to create Customer */
  1576. CreateCustomer = 'CreateCustomer',
  1577. /** Grants permission to read Customer */
  1578. ReadCustomer = 'ReadCustomer',
  1579. /** Grants permission to update Customer */
  1580. UpdateCustomer = 'UpdateCustomer',
  1581. /** Grants permission to delete Customer */
  1582. DeleteCustomer = 'DeleteCustomer',
  1583. /** Grants permission to create Administrator */
  1584. CreateAdministrator = 'CreateAdministrator',
  1585. /** Grants permission to read Administrator */
  1586. ReadAdministrator = 'ReadAdministrator',
  1587. /** Grants permission to update Administrator */
  1588. UpdateAdministrator = 'UpdateAdministrator',
  1589. /** Grants permission to delete Administrator */
  1590. DeleteAdministrator = 'DeleteAdministrator',
  1591. /** Grants permission to create Order */
  1592. CreateOrder = 'CreateOrder',
  1593. /** Grants permission to read Order */
  1594. ReadOrder = 'ReadOrder',
  1595. /** Grants permission to update Order */
  1596. UpdateOrder = 'UpdateOrder',
  1597. /** Grants permission to delete Order */
  1598. DeleteOrder = 'DeleteOrder',
  1599. /** Grants permission to create Promotion */
  1600. CreatePromotion = 'CreatePromotion',
  1601. /** Grants permission to read Promotion */
  1602. ReadPromotion = 'ReadPromotion',
  1603. /** Grants permission to update Promotion */
  1604. UpdatePromotion = 'UpdatePromotion',
  1605. /** Grants permission to delete Promotion */
  1606. DeletePromotion = 'DeletePromotion',
  1607. /** Grants permission to create Settings */
  1608. CreateSettings = 'CreateSettings',
  1609. /** Grants permission to read Settings */
  1610. ReadSettings = 'ReadSettings',
  1611. /** Grants permission to update Settings */
  1612. UpdateSettings = 'UpdateSettings',
  1613. /** Grants permission to delete Settings */
  1614. DeleteSettings = 'DeleteSettings'
  1615. }
  1616. export type DeletionResponse = {
  1617. __typename?: 'DeletionResponse';
  1618. result: DeletionResult;
  1619. message?: Maybe<Scalars['String']>;
  1620. };
  1621. export type ConfigArgInput = {
  1622. name: Scalars['String'];
  1623. value: Scalars['String'];
  1624. };
  1625. export type ConfigurableOperationInput = {
  1626. code: Scalars['String'];
  1627. arguments: Array<ConfigArgInput>;
  1628. };
  1629. export type PaginatedList = {
  1630. items: Array<Node>;
  1631. totalItems: Scalars['Int'];
  1632. };
  1633. export type Node = {
  1634. id: Scalars['ID'];
  1635. };
  1636. export enum SortOrder {
  1637. ASC = 'ASC',
  1638. DESC = 'DESC'
  1639. }
  1640. export enum ErrorCode {
  1641. UNKNOWN_ERROR = 'UNKNOWN_ERROR',
  1642. MIME_TYPE_ERROR = 'MIME_TYPE_ERROR',
  1643. LANGUAGE_NOT_AVAILABLE_ERROR = 'LANGUAGE_NOT_AVAILABLE_ERROR',
  1644. CHANNEL_DEFAULT_LANGUAGE_ERROR = 'CHANNEL_DEFAULT_LANGUAGE_ERROR',
  1645. SETTLE_PAYMENT_ERROR = 'SETTLE_PAYMENT_ERROR',
  1646. EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR',
  1647. ITEMS_ALREADY_FULFILLED_ERROR = 'ITEMS_ALREADY_FULFILLED_ERROR',
  1648. INSUFFICIENT_STOCK_ON_HAND_ERROR = 'INSUFFICIENT_STOCK_ON_HAND_ERROR',
  1649. MULTIPLE_ORDER_ERROR = 'MULTIPLE_ORDER_ERROR',
  1650. CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR',
  1651. PAYMENT_ORDER_MISMATCH_ERROR = 'PAYMENT_ORDER_MISMATCH_ERROR',
  1652. REFUND_ORDER_STATE_ERROR = 'REFUND_ORDER_STATE_ERROR',
  1653. NOTHING_TO_REFUND_ERROR = 'NOTHING_TO_REFUND_ERROR',
  1654. ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR',
  1655. QUANTITY_TOO_GREAT_ERROR = 'QUANTITY_TOO_GREAT_ERROR',
  1656. REFUND_STATE_TRANSITION_ERROR = 'REFUND_STATE_TRANSITION_ERROR',
  1657. PAYMENT_STATE_TRANSITION_ERROR = 'PAYMENT_STATE_TRANSITION_ERROR',
  1658. FULFILLMENT_STATE_TRANSITION_ERROR = 'FULFILLMENT_STATE_TRANSITION_ERROR',
  1659. PRODUCT_OPTION_IN_USE_ERROR = 'PRODUCT_OPTION_IN_USE_ERROR',
  1660. MISSING_CONDITIONS_ERROR = 'MISSING_CONDITIONS_ERROR',
  1661. NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR',
  1662. INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR',
  1663. ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR',
  1664. EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR'
  1665. }
  1666. export type ErrorResult = {
  1667. errorCode: ErrorCode;
  1668. message: Scalars['String'];
  1669. };
  1670. export type StringOperators = {
  1671. eq?: Maybe<Scalars['String']>;
  1672. contains?: Maybe<Scalars['String']>;
  1673. };
  1674. export type BooleanOperators = {
  1675. eq?: Maybe<Scalars['Boolean']>;
  1676. };
  1677. export type NumberRange = {
  1678. start: Scalars['Float'];
  1679. end: Scalars['Float'];
  1680. };
  1681. export type NumberOperators = {
  1682. eq?: Maybe<Scalars['Float']>;
  1683. lt?: Maybe<Scalars['Float']>;
  1684. lte?: Maybe<Scalars['Float']>;
  1685. gt?: Maybe<Scalars['Float']>;
  1686. gte?: Maybe<Scalars['Float']>;
  1687. between?: Maybe<NumberRange>;
  1688. };
  1689. export type DateRange = {
  1690. start: Scalars['DateTime'];
  1691. end: Scalars['DateTime'];
  1692. };
  1693. export type DateOperators = {
  1694. eq?: Maybe<Scalars['DateTime']>;
  1695. before?: Maybe<Scalars['DateTime']>;
  1696. after?: Maybe<Scalars['DateTime']>;
  1697. between?: Maybe<DateRange>;
  1698. };
  1699. export enum LogicalOperator {
  1700. AND = 'AND',
  1701. OR = 'OR'
  1702. }
  1703. export type SearchInput = {
  1704. term?: Maybe<Scalars['String']>;
  1705. facetValueIds?: Maybe<Array<Scalars['ID']>>;
  1706. facetValueOperator?: Maybe<LogicalOperator>;
  1707. collectionId?: Maybe<Scalars['ID']>;
  1708. collectionSlug?: Maybe<Scalars['String']>;
  1709. groupByProduct?: Maybe<Scalars['Boolean']>;
  1710. take?: Maybe<Scalars['Int']>;
  1711. skip?: Maybe<Scalars['Int']>;
  1712. sort?: Maybe<SearchResultSortParameter>;
  1713. };
  1714. export type SearchResultSortParameter = {
  1715. name?: Maybe<SortOrder>;
  1716. price?: Maybe<SortOrder>;
  1717. };
  1718. export type CreateCustomerInput = {
  1719. title?: Maybe<Scalars['String']>;
  1720. firstName: Scalars['String'];
  1721. lastName: Scalars['String'];
  1722. phoneNumber?: Maybe<Scalars['String']>;
  1723. emailAddress: Scalars['String'];
  1724. customFields?: Maybe<Scalars['JSON']>;
  1725. };
  1726. export type CreateAddressInput = {
  1727. fullName?: Maybe<Scalars['String']>;
  1728. company?: Maybe<Scalars['String']>;
  1729. streetLine1: Scalars['String'];
  1730. streetLine2?: Maybe<Scalars['String']>;
  1731. city?: Maybe<Scalars['String']>;
  1732. province?: Maybe<Scalars['String']>;
  1733. postalCode?: Maybe<Scalars['String']>;
  1734. countryCode: Scalars['String'];
  1735. phoneNumber?: Maybe<Scalars['String']>;
  1736. defaultShippingAddress?: Maybe<Scalars['Boolean']>;
  1737. defaultBillingAddress?: Maybe<Scalars['Boolean']>;
  1738. customFields?: Maybe<Scalars['JSON']>;
  1739. };
  1740. export type UpdateAddressInput = {
  1741. id: Scalars['ID'];
  1742. fullName?: Maybe<Scalars['String']>;
  1743. company?: Maybe<Scalars['String']>;
  1744. streetLine1?: Maybe<Scalars['String']>;
  1745. streetLine2?: Maybe<Scalars['String']>;
  1746. city?: Maybe<Scalars['String']>;
  1747. province?: Maybe<Scalars['String']>;
  1748. postalCode?: Maybe<Scalars['String']>;
  1749. countryCode?: Maybe<Scalars['String']>;
  1750. phoneNumber?: Maybe<Scalars['String']>;
  1751. defaultShippingAddress?: Maybe<Scalars['Boolean']>;
  1752. defaultBillingAddress?: Maybe<Scalars['Boolean']>;
  1753. customFields?: Maybe<Scalars['JSON']>;
  1754. };
  1755. /** Indicates that an operation succeeded, where we do not want to return any more specific information. */
  1756. export type Success = {
  1757. __typename?: 'Success';
  1758. success: Scalars['Boolean'];
  1759. };
  1760. /** Retured when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
  1761. export type NativeAuthStrategyError = ErrorResult & {
  1762. __typename?: 'NativeAuthStrategyError';
  1763. errorCode: ErrorCode;
  1764. message: Scalars['String'];
  1765. };
  1766. /** Returned if the user authentication credentials are not valid */
  1767. export type InvalidCredentialsError = ErrorResult & {
  1768. __typename?: 'InvalidCredentialsError';
  1769. errorCode: ErrorCode;
  1770. message: Scalars['String'];
  1771. authenticationError: Scalars['String'];
  1772. };
  1773. /** Returned if there is an error in transitioning the Order state */
  1774. export type OrderStateTransitionError = ErrorResult & {
  1775. __typename?: 'OrderStateTransitionError';
  1776. errorCode: ErrorCode;
  1777. message: Scalars['String'];
  1778. transitionError: Scalars['String'];
  1779. fromState: Scalars['String'];
  1780. toState: Scalars['String'];
  1781. };
  1782. /** Retured when attemting to create a Customer with an email address already registered to an existing User. */
  1783. export type EmailAddressConflictError = ErrorResult & {
  1784. __typename?: 'EmailAddressConflictError';
  1785. errorCode: ErrorCode;
  1786. message: Scalars['String'];
  1787. };
  1788. /**
  1789. * @description
  1790. * ISO 4217 currency code
  1791. *
  1792. * @docsCategory common
  1793. */
  1794. export enum CurrencyCode {
  1795. /** United Arab Emirates dirham */
  1796. AED = 'AED',
  1797. /** Afghan afghani */
  1798. AFN = 'AFN',
  1799. /** Albanian lek */
  1800. ALL = 'ALL',
  1801. /** Armenian dram */
  1802. AMD = 'AMD',
  1803. /** Netherlands Antillean guilder */
  1804. ANG = 'ANG',
  1805. /** Angolan kwanza */
  1806. AOA = 'AOA',
  1807. /** Argentine peso */
  1808. ARS = 'ARS',
  1809. /** Australian dollar */
  1810. AUD = 'AUD',
  1811. /** Aruban florin */
  1812. AWG = 'AWG',
  1813. /** Azerbaijani manat */
  1814. AZN = 'AZN',
  1815. /** Bosnia and Herzegovina convertible mark */
  1816. BAM = 'BAM',
  1817. /** Barbados dollar */
  1818. BBD = 'BBD',
  1819. /** Bangladeshi taka */
  1820. BDT = 'BDT',
  1821. /** Bulgarian lev */
  1822. BGN = 'BGN',
  1823. /** Bahraini dinar */
  1824. BHD = 'BHD',
  1825. /** Burundian franc */
  1826. BIF = 'BIF',
  1827. /** Bermudian dollar */
  1828. BMD = 'BMD',
  1829. /** Brunei dollar */
  1830. BND = 'BND',
  1831. /** Boliviano */
  1832. BOB = 'BOB',
  1833. /** Brazilian real */
  1834. BRL = 'BRL',
  1835. /** Bahamian dollar */
  1836. BSD = 'BSD',
  1837. /** Bhutanese ngultrum */
  1838. BTN = 'BTN',
  1839. /** Botswana pula */
  1840. BWP = 'BWP',
  1841. /** Belarusian ruble */
  1842. BYN = 'BYN',
  1843. /** Belize dollar */
  1844. BZD = 'BZD',
  1845. /** Canadian dollar */
  1846. CAD = 'CAD',
  1847. /** Congolese franc */
  1848. CDF = 'CDF',
  1849. /** Swiss franc */
  1850. CHF = 'CHF',
  1851. /** Chilean peso */
  1852. CLP = 'CLP',
  1853. /** Renminbi (Chinese) yuan */
  1854. CNY = 'CNY',
  1855. /** Colombian peso */
  1856. COP = 'COP',
  1857. /** Costa Rican colon */
  1858. CRC = 'CRC',
  1859. /** Cuban convertible peso */
  1860. CUC = 'CUC',
  1861. /** Cuban peso */
  1862. CUP = 'CUP',
  1863. /** Cape Verde escudo */
  1864. CVE = 'CVE',
  1865. /** Czech koruna */
  1866. CZK = 'CZK',
  1867. /** Djiboutian franc */
  1868. DJF = 'DJF',
  1869. /** Danish krone */
  1870. DKK = 'DKK',
  1871. /** Dominican peso */
  1872. DOP = 'DOP',
  1873. /** Algerian dinar */
  1874. DZD = 'DZD',
  1875. /** Egyptian pound */
  1876. EGP = 'EGP',
  1877. /** Eritrean nakfa */
  1878. ERN = 'ERN',
  1879. /** Ethiopian birr */
  1880. ETB = 'ETB',
  1881. /** Euro */
  1882. EUR = 'EUR',
  1883. /** Fiji dollar */
  1884. FJD = 'FJD',
  1885. /** Falkland Islands pound */
  1886. FKP = 'FKP',
  1887. /** Pound sterling */
  1888. GBP = 'GBP',
  1889. /** Georgian lari */
  1890. GEL = 'GEL',
  1891. /** Ghanaian cedi */
  1892. GHS = 'GHS',
  1893. /** Gibraltar pound */
  1894. GIP = 'GIP',
  1895. /** Gambian dalasi */
  1896. GMD = 'GMD',
  1897. /** Guinean franc */
  1898. GNF = 'GNF',
  1899. /** Guatemalan quetzal */
  1900. GTQ = 'GTQ',
  1901. /** Guyanese dollar */
  1902. GYD = 'GYD',
  1903. /** Hong Kong dollar */
  1904. HKD = 'HKD',
  1905. /** Honduran lempira */
  1906. HNL = 'HNL',
  1907. /** Croatian kuna */
  1908. HRK = 'HRK',
  1909. /** Haitian gourde */
  1910. HTG = 'HTG',
  1911. /** Hungarian forint */
  1912. HUF = 'HUF',
  1913. /** Indonesian rupiah */
  1914. IDR = 'IDR',
  1915. /** Israeli new shekel */
  1916. ILS = 'ILS',
  1917. /** Indian rupee */
  1918. INR = 'INR',
  1919. /** Iraqi dinar */
  1920. IQD = 'IQD',
  1921. /** Iranian rial */
  1922. IRR = 'IRR',
  1923. /** Icelandic króna */
  1924. ISK = 'ISK',
  1925. /** Jamaican dollar */
  1926. JMD = 'JMD',
  1927. /** Jordanian dinar */
  1928. JOD = 'JOD',
  1929. /** Japanese yen */
  1930. JPY = 'JPY',
  1931. /** Kenyan shilling */
  1932. KES = 'KES',
  1933. /** Kyrgyzstani som */
  1934. KGS = 'KGS',
  1935. /** Cambodian riel */
  1936. KHR = 'KHR',
  1937. /** Comoro franc */
  1938. KMF = 'KMF',
  1939. /** North Korean won */
  1940. KPW = 'KPW',
  1941. /** South Korean won */
  1942. KRW = 'KRW',
  1943. /** Kuwaiti dinar */
  1944. KWD = 'KWD',
  1945. /** Cayman Islands dollar */
  1946. KYD = 'KYD',
  1947. /** Kazakhstani tenge */
  1948. KZT = 'KZT',
  1949. /** Lao kip */
  1950. LAK = 'LAK',
  1951. /** Lebanese pound */
  1952. LBP = 'LBP',
  1953. /** Sri Lankan rupee */
  1954. LKR = 'LKR',
  1955. /** Liberian dollar */
  1956. LRD = 'LRD',
  1957. /** Lesotho loti */
  1958. LSL = 'LSL',
  1959. /** Libyan dinar */
  1960. LYD = 'LYD',
  1961. /** Moroccan dirham */
  1962. MAD = 'MAD',
  1963. /** Moldovan leu */
  1964. MDL = 'MDL',
  1965. /** Malagasy ariary */
  1966. MGA = 'MGA',
  1967. /** Macedonian denar */
  1968. MKD = 'MKD',
  1969. /** Myanmar kyat */
  1970. MMK = 'MMK',
  1971. /** Mongolian tögrög */
  1972. MNT = 'MNT',
  1973. /** Macanese pataca */
  1974. MOP = 'MOP',
  1975. /** Mauritanian ouguiya */
  1976. MRU = 'MRU',
  1977. /** Mauritian rupee */
  1978. MUR = 'MUR',
  1979. /** Maldivian rufiyaa */
  1980. MVR = 'MVR',
  1981. /** Malawian kwacha */
  1982. MWK = 'MWK',
  1983. /** Mexican peso */
  1984. MXN = 'MXN',
  1985. /** Malaysian ringgit */
  1986. MYR = 'MYR',
  1987. /** Mozambican metical */
  1988. MZN = 'MZN',
  1989. /** Namibian dollar */
  1990. NAD = 'NAD',
  1991. /** Nigerian naira */
  1992. NGN = 'NGN',
  1993. /** Nicaraguan córdoba */
  1994. NIO = 'NIO',
  1995. /** Norwegian krone */
  1996. NOK = 'NOK',
  1997. /** Nepalese rupee */
  1998. NPR = 'NPR',
  1999. /** New Zealand dollar */
  2000. NZD = 'NZD',
  2001. /** Omani rial */
  2002. OMR = 'OMR',
  2003. /** Panamanian balboa */
  2004. PAB = 'PAB',
  2005. /** Peruvian sol */
  2006. PEN = 'PEN',
  2007. /** Papua New Guinean kina */
  2008. PGK = 'PGK',
  2009. /** Philippine peso */
  2010. PHP = 'PHP',
  2011. /** Pakistani rupee */
  2012. PKR = 'PKR',
  2013. /** Polish złoty */
  2014. PLN = 'PLN',
  2015. /** Paraguayan guaraní */
  2016. PYG = 'PYG',
  2017. /** Qatari riyal */
  2018. QAR = 'QAR',
  2019. /** Romanian leu */
  2020. RON = 'RON',
  2021. /** Serbian dinar */
  2022. RSD = 'RSD',
  2023. /** Russian ruble */
  2024. RUB = 'RUB',
  2025. /** Rwandan franc */
  2026. RWF = 'RWF',
  2027. /** Saudi riyal */
  2028. SAR = 'SAR',
  2029. /** Solomon Islands dollar */
  2030. SBD = 'SBD',
  2031. /** Seychelles rupee */
  2032. SCR = 'SCR',
  2033. /** Sudanese pound */
  2034. SDG = 'SDG',
  2035. /** Swedish krona/kronor */
  2036. SEK = 'SEK',
  2037. /** Singapore dollar */
  2038. SGD = 'SGD',
  2039. /** Saint Helena pound */
  2040. SHP = 'SHP',
  2041. /** Sierra Leonean leone */
  2042. SLL = 'SLL',
  2043. /** Somali shilling */
  2044. SOS = 'SOS',
  2045. /** Surinamese dollar */
  2046. SRD = 'SRD',
  2047. /** South Sudanese pound */
  2048. SSP = 'SSP',
  2049. /** São Tomé and Príncipe dobra */
  2050. STN = 'STN',
  2051. /** Salvadoran colón */
  2052. SVC = 'SVC',
  2053. /** Syrian pound */
  2054. SYP = 'SYP',
  2055. /** Swazi lilangeni */
  2056. SZL = 'SZL',
  2057. /** Thai baht */
  2058. THB = 'THB',
  2059. /** Tajikistani somoni */
  2060. TJS = 'TJS',
  2061. /** Turkmenistan manat */
  2062. TMT = 'TMT',
  2063. /** Tunisian dinar */
  2064. TND = 'TND',
  2065. /** Tongan paʻanga */
  2066. TOP = 'TOP',
  2067. /** Turkish lira */
  2068. TRY = 'TRY',
  2069. /** Trinidad and Tobago dollar */
  2070. TTD = 'TTD',
  2071. /** New Taiwan dollar */
  2072. TWD = 'TWD',
  2073. /** Tanzanian shilling */
  2074. TZS = 'TZS',
  2075. /** Ukrainian hryvnia */
  2076. UAH = 'UAH',
  2077. /** Ugandan shilling */
  2078. UGX = 'UGX',
  2079. /** United States dollar */
  2080. USD = 'USD',
  2081. /** Uruguayan peso */
  2082. UYU = 'UYU',
  2083. /** Uzbekistan som */
  2084. UZS = 'UZS',
  2085. /** Venezuelan bolívar soberano */
  2086. VES = 'VES',
  2087. /** Vietnamese đồng */
  2088. VND = 'VND',
  2089. /** Vanuatu vatu */
  2090. VUV = 'VUV',
  2091. /** Samoan tala */
  2092. WST = 'WST',
  2093. /** CFA franc BEAC */
  2094. XAF = 'XAF',
  2095. /** East Caribbean dollar */
  2096. XCD = 'XCD',
  2097. /** CFA franc BCEAO */
  2098. XOF = 'XOF',
  2099. /** CFP franc (franc Pacifique) */
  2100. XPF = 'XPF',
  2101. /** Yemeni rial */
  2102. YER = 'YER',
  2103. /** South African rand */
  2104. ZAR = 'ZAR',
  2105. /** Zambian kwacha */
  2106. ZMW = 'ZMW',
  2107. /** Zimbabwean dollar */
  2108. ZWL = 'ZWL'
  2109. }
  2110. export type CustomField = {
  2111. name: Scalars['String'];
  2112. type: Scalars['String'];
  2113. list: Scalars['Boolean'];
  2114. label?: Maybe<Array<LocalizedString>>;
  2115. description?: Maybe<Array<LocalizedString>>;
  2116. readonly?: Maybe<Scalars['Boolean']>;
  2117. internal?: Maybe<Scalars['Boolean']>;
  2118. };
  2119. export type StringCustomFieldConfig = CustomField & {
  2120. __typename?: 'StringCustomFieldConfig';
  2121. name: Scalars['String'];
  2122. type: Scalars['String'];
  2123. list: Scalars['Boolean'];
  2124. length?: Maybe<Scalars['Int']>;
  2125. label?: Maybe<Array<LocalizedString>>;
  2126. description?: Maybe<Array<LocalizedString>>;
  2127. readonly?: Maybe<Scalars['Boolean']>;
  2128. internal?: Maybe<Scalars['Boolean']>;
  2129. pattern?: Maybe<Scalars['String']>;
  2130. options?: Maybe<Array<StringFieldOption>>;
  2131. };
  2132. export type StringFieldOption = {
  2133. __typename?: 'StringFieldOption';
  2134. value: Scalars['String'];
  2135. label?: Maybe<Array<LocalizedString>>;
  2136. };
  2137. export type LocaleStringCustomFieldConfig = CustomField & {
  2138. __typename?: 'LocaleStringCustomFieldConfig';
  2139. name: Scalars['String'];
  2140. type: Scalars['String'];
  2141. list: Scalars['Boolean'];
  2142. length?: Maybe<Scalars['Int']>;
  2143. label?: Maybe<Array<LocalizedString>>;
  2144. description?: Maybe<Array<LocalizedString>>;
  2145. readonly?: Maybe<Scalars['Boolean']>;
  2146. internal?: Maybe<Scalars['Boolean']>;
  2147. pattern?: Maybe<Scalars['String']>;
  2148. };
  2149. export type IntCustomFieldConfig = CustomField & {
  2150. __typename?: 'IntCustomFieldConfig';
  2151. name: Scalars['String'];
  2152. type: Scalars['String'];
  2153. list: Scalars['Boolean'];
  2154. label?: Maybe<Array<LocalizedString>>;
  2155. description?: Maybe<Array<LocalizedString>>;
  2156. readonly?: Maybe<Scalars['Boolean']>;
  2157. internal?: Maybe<Scalars['Boolean']>;
  2158. min?: Maybe<Scalars['Int']>;
  2159. max?: Maybe<Scalars['Int']>;
  2160. step?: Maybe<Scalars['Int']>;
  2161. };
  2162. export type FloatCustomFieldConfig = CustomField & {
  2163. __typename?: 'FloatCustomFieldConfig';
  2164. name: Scalars['String'];
  2165. type: Scalars['String'];
  2166. list: Scalars['Boolean'];
  2167. label?: Maybe<Array<LocalizedString>>;
  2168. description?: Maybe<Array<LocalizedString>>;
  2169. readonly?: Maybe<Scalars['Boolean']>;
  2170. internal?: Maybe<Scalars['Boolean']>;
  2171. min?: Maybe<Scalars['Float']>;
  2172. max?: Maybe<Scalars['Float']>;
  2173. step?: Maybe<Scalars['Float']>;
  2174. };
  2175. export type BooleanCustomFieldConfig = CustomField & {
  2176. __typename?: 'BooleanCustomFieldConfig';
  2177. name: Scalars['String'];
  2178. type: Scalars['String'];
  2179. list: Scalars['Boolean'];
  2180. label?: Maybe<Array<LocalizedString>>;
  2181. description?: Maybe<Array<LocalizedString>>;
  2182. readonly?: Maybe<Scalars['Boolean']>;
  2183. internal?: Maybe<Scalars['Boolean']>;
  2184. };
  2185. /**
  2186. * Expects the same validation formats as the `<input type="datetime-local">` HTML element.
  2187. * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
  2188. */
  2189. export type DateTimeCustomFieldConfig = CustomField & {
  2190. __typename?: 'DateTimeCustomFieldConfig';
  2191. name: Scalars['String'];
  2192. type: Scalars['String'];
  2193. list: Scalars['Boolean'];
  2194. label?: Maybe<Array<LocalizedString>>;
  2195. description?: Maybe<Array<LocalizedString>>;
  2196. readonly?: Maybe<Scalars['Boolean']>;
  2197. internal?: Maybe<Scalars['Boolean']>;
  2198. min?: Maybe<Scalars['String']>;
  2199. max?: Maybe<Scalars['String']>;
  2200. step?: Maybe<Scalars['Int']>;
  2201. };
  2202. export type LocalizedString = {
  2203. __typename?: 'LocalizedString';
  2204. languageCode: LanguageCode;
  2205. value: Scalars['String'];
  2206. };
  2207. export type CustomFieldConfig = StringCustomFieldConfig | LocaleStringCustomFieldConfig | IntCustomFieldConfig | FloatCustomFieldConfig | BooleanCustomFieldConfig | DateTimeCustomFieldConfig;
  2208. /**
  2209. * @description
  2210. * Languages in the form of a ISO 639-1 language code with optional
  2211. * region or script modifier (e.g. de_AT). The selection available is based
  2212. * on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html)
  2213. * and includes the major spoken languages of the world and any widely-used variants.
  2214. *
  2215. * @docsCategory common
  2216. */
  2217. export enum LanguageCode {
  2218. /** Afrikaans */
  2219. af = 'af',
  2220. /** Akan */
  2221. ak = 'ak',
  2222. /** Albanian */
  2223. sq = 'sq',
  2224. /** Amharic */
  2225. am = 'am',
  2226. /** Arabic */
  2227. ar = 'ar',
  2228. /** Armenian */
  2229. hy = 'hy',
  2230. /** Assamese */
  2231. as = 'as',
  2232. /** Azerbaijani */
  2233. az = 'az',
  2234. /** Bambara */
  2235. bm = 'bm',
  2236. /** Bangla */
  2237. bn = 'bn',
  2238. /** Basque */
  2239. eu = 'eu',
  2240. /** Belarusian */
  2241. be = 'be',
  2242. /** Bosnian */
  2243. bs = 'bs',
  2244. /** Breton */
  2245. br = 'br',
  2246. /** Bulgarian */
  2247. bg = 'bg',
  2248. /** Burmese */
  2249. my = 'my',
  2250. /** Catalan */
  2251. ca = 'ca',
  2252. /** Chechen */
  2253. ce = 'ce',
  2254. /** Chinese */
  2255. zh = 'zh',
  2256. /** Simplified Chinese */
  2257. zh_Hans = 'zh_Hans',
  2258. /** Traditional Chinese */
  2259. zh_Hant = 'zh_Hant',
  2260. /** Church Slavic */
  2261. cu = 'cu',
  2262. /** Cornish */
  2263. kw = 'kw',
  2264. /** Corsican */
  2265. co = 'co',
  2266. /** Croatian */
  2267. hr = 'hr',
  2268. /** Czech */
  2269. cs = 'cs',
  2270. /** Danish */
  2271. da = 'da',
  2272. /** Dutch */
  2273. nl = 'nl',
  2274. /** Flemish */
  2275. nl_BE = 'nl_BE',
  2276. /** Dzongkha */
  2277. dz = 'dz',
  2278. /** English */
  2279. en = 'en',
  2280. /** Australian English */
  2281. en_AU = 'en_AU',
  2282. /** Canadian English */
  2283. en_CA = 'en_CA',
  2284. /** British English */
  2285. en_GB = 'en_GB',
  2286. /** American English */
  2287. en_US = 'en_US',
  2288. /** Esperanto */
  2289. eo = 'eo',
  2290. /** Estonian */
  2291. et = 'et',
  2292. /** Ewe */
  2293. ee = 'ee',
  2294. /** Faroese */
  2295. fo = 'fo',
  2296. /** Finnish */
  2297. fi = 'fi',
  2298. /** French */
  2299. fr = 'fr',
  2300. /** Canadian French */
  2301. fr_CA = 'fr_CA',
  2302. /** Swiss French */
  2303. fr_CH = 'fr_CH',
  2304. /** Fulah */
  2305. ff = 'ff',
  2306. /** Galician */
  2307. gl = 'gl',
  2308. /** Ganda */
  2309. lg = 'lg',
  2310. /** Georgian */
  2311. ka = 'ka',
  2312. /** German */
  2313. de = 'de',
  2314. /** Austrian German */
  2315. de_AT = 'de_AT',
  2316. /** Swiss High German */
  2317. de_CH = 'de_CH',
  2318. /** Greek */
  2319. el = 'el',
  2320. /** Gujarati */
  2321. gu = 'gu',
  2322. /** Haitian Creole */
  2323. ht = 'ht',
  2324. /** Hausa */
  2325. ha = 'ha',
  2326. /** Hebrew */
  2327. he = 'he',
  2328. /** Hindi */
  2329. hi = 'hi',
  2330. /** Hungarian */
  2331. hu = 'hu',
  2332. /** Icelandic */
  2333. is = 'is',
  2334. /** Igbo */
  2335. ig = 'ig',
  2336. /** Indonesian */
  2337. id = 'id',
  2338. /** Interlingua */
  2339. ia = 'ia',
  2340. /** Irish */
  2341. ga = 'ga',
  2342. /** Italian */
  2343. it = 'it',
  2344. /** Japanese */
  2345. ja = 'ja',
  2346. /** Javanese */
  2347. jv = 'jv',
  2348. /** Kalaallisut */
  2349. kl = 'kl',
  2350. /** Kannada */
  2351. kn = 'kn',
  2352. /** Kashmiri */
  2353. ks = 'ks',
  2354. /** Kazakh */
  2355. kk = 'kk',
  2356. /** Khmer */
  2357. km = 'km',
  2358. /** Kikuyu */
  2359. ki = 'ki',
  2360. /** Kinyarwanda */
  2361. rw = 'rw',
  2362. /** Korean */
  2363. ko = 'ko',
  2364. /** Kurdish */
  2365. ku = 'ku',
  2366. /** Kyrgyz */
  2367. ky = 'ky',
  2368. /** Lao */
  2369. lo = 'lo',
  2370. /** Latin */
  2371. la = 'la',
  2372. /** Latvian */
  2373. lv = 'lv',
  2374. /** Lingala */
  2375. ln = 'ln',
  2376. /** Lithuanian */
  2377. lt = 'lt',
  2378. /** Luba-Katanga */
  2379. lu = 'lu',
  2380. /** Luxembourgish */
  2381. lb = 'lb',
  2382. /** Macedonian */
  2383. mk = 'mk',
  2384. /** Malagasy */
  2385. mg = 'mg',
  2386. /** Malay */
  2387. ms = 'ms',
  2388. /** Malayalam */
  2389. ml = 'ml',
  2390. /** Maltese */
  2391. mt = 'mt',
  2392. /** Manx */
  2393. gv = 'gv',
  2394. /** Maori */
  2395. mi = 'mi',
  2396. /** Marathi */
  2397. mr = 'mr',
  2398. /** Mongolian */
  2399. mn = 'mn',
  2400. /** Nepali */
  2401. ne = 'ne',
  2402. /** North Ndebele */
  2403. nd = 'nd',
  2404. /** Northern Sami */
  2405. se = 'se',
  2406. /** Norwegian Bokmål */
  2407. nb = 'nb',
  2408. /** Norwegian Nynorsk */
  2409. nn = 'nn',
  2410. /** Nyanja */
  2411. ny = 'ny',
  2412. /** Odia */
  2413. or = 'or',
  2414. /** Oromo */
  2415. om = 'om',
  2416. /** Ossetic */
  2417. os = 'os',
  2418. /** Pashto */
  2419. ps = 'ps',
  2420. /** Persian */
  2421. fa = 'fa',
  2422. /** Dari */
  2423. fa_AF = 'fa_AF',
  2424. /** Polish */
  2425. pl = 'pl',
  2426. /** Portuguese */
  2427. pt = 'pt',
  2428. /** Brazilian Portuguese */
  2429. pt_BR = 'pt_BR',
  2430. /** European Portuguese */
  2431. pt_PT = 'pt_PT',
  2432. /** Punjabi */
  2433. pa = 'pa',
  2434. /** Quechua */
  2435. qu = 'qu',
  2436. /** Romanian */
  2437. ro = 'ro',
  2438. /** Moldavian */
  2439. ro_MD = 'ro_MD',
  2440. /** Romansh */
  2441. rm = 'rm',
  2442. /** Rundi */
  2443. rn = 'rn',
  2444. /** Russian */
  2445. ru = 'ru',
  2446. /** Samoan */
  2447. sm = 'sm',
  2448. /** Sango */
  2449. sg = 'sg',
  2450. /** Sanskrit */
  2451. sa = 'sa',
  2452. /** Scottish Gaelic */
  2453. gd = 'gd',
  2454. /** Serbian */
  2455. sr = 'sr',
  2456. /** Shona */
  2457. sn = 'sn',
  2458. /** Sichuan Yi */
  2459. ii = 'ii',
  2460. /** Sindhi */
  2461. sd = 'sd',
  2462. /** Sinhala */
  2463. si = 'si',
  2464. /** Slovak */
  2465. sk = 'sk',
  2466. /** Slovenian */
  2467. sl = 'sl',
  2468. /** Somali */
  2469. so = 'so',
  2470. /** Southern Sotho */
  2471. st = 'st',
  2472. /** Spanish */
  2473. es = 'es',
  2474. /** European Spanish */
  2475. es_ES = 'es_ES',
  2476. /** Mexican Spanish */
  2477. es_MX = 'es_MX',
  2478. /** Sundanese */
  2479. su = 'su',
  2480. /** Swahili */
  2481. sw = 'sw',
  2482. /** Congo Swahili */
  2483. sw_CD = 'sw_CD',
  2484. /** Swedish */
  2485. sv = 'sv',
  2486. /** Tajik */
  2487. tg = 'tg',
  2488. /** Tamil */
  2489. ta = 'ta',
  2490. /** Tatar */
  2491. tt = 'tt',
  2492. /** Telugu */
  2493. te = 'te',
  2494. /** Thai */
  2495. th = 'th',
  2496. /** Tibetan */
  2497. bo = 'bo',
  2498. /** Tigrinya */
  2499. ti = 'ti',
  2500. /** Tongan */
  2501. to = 'to',
  2502. /** Turkish */
  2503. tr = 'tr',
  2504. /** Turkmen */
  2505. tk = 'tk',
  2506. /** Ukrainian */
  2507. uk = 'uk',
  2508. /** Urdu */
  2509. ur = 'ur',
  2510. /** Uyghur */
  2511. ug = 'ug',
  2512. /** Uzbek */
  2513. uz = 'uz',
  2514. /** Vietnamese */
  2515. vi = 'vi',
  2516. /** Volapük */
  2517. vo = 'vo',
  2518. /** Welsh */
  2519. cy = 'cy',
  2520. /** Western Frisian */
  2521. fy = 'fy',
  2522. /** Wolof */
  2523. wo = 'wo',
  2524. /** Xhosa */
  2525. xh = 'xh',
  2526. /** Yiddish */
  2527. yi = 'yi',
  2528. /** Yoruba */
  2529. yo = 'yo',
  2530. /** Zulu */
  2531. zu = 'zu'
  2532. }
  2533. export type Address = Node & {
  2534. __typename?: 'Address';
  2535. id: Scalars['ID'];
  2536. createdAt: Scalars['DateTime'];
  2537. updatedAt: Scalars['DateTime'];
  2538. fullName?: Maybe<Scalars['String']>;
  2539. company?: Maybe<Scalars['String']>;
  2540. streetLine1: Scalars['String'];
  2541. streetLine2?: Maybe<Scalars['String']>;
  2542. city?: Maybe<Scalars['String']>;
  2543. province?: Maybe<Scalars['String']>;
  2544. postalCode?: Maybe<Scalars['String']>;
  2545. country: Country;
  2546. phoneNumber?: Maybe<Scalars['String']>;
  2547. defaultShippingAddress?: Maybe<Scalars['Boolean']>;
  2548. defaultBillingAddress?: Maybe<Scalars['Boolean']>;
  2549. customFields?: Maybe<Scalars['JSON']>;
  2550. };
  2551. export type Administrator = Node & {
  2552. __typename?: 'Administrator';
  2553. id: Scalars['ID'];
  2554. createdAt: Scalars['DateTime'];
  2555. updatedAt: Scalars['DateTime'];
  2556. firstName: Scalars['String'];
  2557. lastName: Scalars['String'];
  2558. emailAddress: Scalars['String'];
  2559. user: User;
  2560. };
  2561. export type AdministratorList = PaginatedList & {
  2562. __typename?: 'AdministratorList';
  2563. items: Array<Administrator>;
  2564. totalItems: Scalars['Int'];
  2565. };
  2566. export type Asset = Node & {
  2567. __typename?: 'Asset';
  2568. id: Scalars['ID'];
  2569. createdAt: Scalars['DateTime'];
  2570. updatedAt: Scalars['DateTime'];
  2571. name: Scalars['String'];
  2572. type: AssetType;
  2573. fileSize: Scalars['Int'];
  2574. mimeType: Scalars['String'];
  2575. width: Scalars['Int'];
  2576. height: Scalars['Int'];
  2577. source: Scalars['String'];
  2578. preview: Scalars['String'];
  2579. focalPoint?: Maybe<Coordinate>;
  2580. };
  2581. export type Coordinate = {
  2582. __typename?: 'Coordinate';
  2583. x: Scalars['Float'];
  2584. y: Scalars['Float'];
  2585. };
  2586. export type AssetList = PaginatedList & {
  2587. __typename?: 'AssetList';
  2588. items: Array<Asset>;
  2589. totalItems: Scalars['Int'];
  2590. };
  2591. export enum AssetType {
  2592. IMAGE = 'IMAGE',
  2593. VIDEO = 'VIDEO',
  2594. BINARY = 'BINARY'
  2595. }
  2596. export type CurrentUser = {
  2597. __typename?: 'CurrentUser';
  2598. id: Scalars['ID'];
  2599. identifier: Scalars['String'];
  2600. channels: Array<CurrentUserChannel>;
  2601. };
  2602. export type CurrentUserChannel = {
  2603. __typename?: 'CurrentUserChannel';
  2604. id: Scalars['ID'];
  2605. token: Scalars['String'];
  2606. code: Scalars['String'];
  2607. permissions: Array<Permission>;
  2608. };
  2609. export type Channel = Node & {
  2610. __typename?: 'Channel';
  2611. id: Scalars['ID'];
  2612. createdAt: Scalars['DateTime'];
  2613. updatedAt: Scalars['DateTime'];
  2614. code: Scalars['String'];
  2615. token: Scalars['String'];
  2616. defaultTaxZone?: Maybe<Zone>;
  2617. defaultShippingZone?: Maybe<Zone>;
  2618. defaultLanguageCode: LanguageCode;
  2619. currencyCode: CurrencyCode;
  2620. pricesIncludeTax: Scalars['Boolean'];
  2621. };
  2622. export type CollectionBreadcrumb = {
  2623. __typename?: 'CollectionBreadcrumb';
  2624. id: Scalars['ID'];
  2625. name: Scalars['String'];
  2626. slug: Scalars['String'];
  2627. };
  2628. export type CollectionTranslation = {
  2629. __typename?: 'CollectionTranslation';
  2630. id: Scalars['ID'];
  2631. createdAt: Scalars['DateTime'];
  2632. updatedAt: Scalars['DateTime'];
  2633. languageCode: LanguageCode;
  2634. name: Scalars['String'];
  2635. slug: Scalars['String'];
  2636. description: Scalars['String'];
  2637. };
  2638. export type CollectionList = PaginatedList & {
  2639. __typename?: 'CollectionList';
  2640. items: Array<Collection>;
  2641. totalItems: Scalars['Int'];
  2642. };
  2643. export type ProductVariantList = PaginatedList & {
  2644. __typename?: 'ProductVariantList';
  2645. items: Array<ProductVariant>;
  2646. totalItems: Scalars['Int'];
  2647. };
  2648. export type Country = Node & {
  2649. __typename?: 'Country';
  2650. id: Scalars['ID'];
  2651. createdAt: Scalars['DateTime'];
  2652. updatedAt: Scalars['DateTime'];
  2653. languageCode: LanguageCode;
  2654. code: Scalars['String'];
  2655. name: Scalars['String'];
  2656. enabled: Scalars['Boolean'];
  2657. translations: Array<CountryTranslation>;
  2658. };
  2659. export type CountryTranslation = {
  2660. __typename?: 'CountryTranslation';
  2661. id: Scalars['ID'];
  2662. createdAt: Scalars['DateTime'];
  2663. updatedAt: Scalars['DateTime'];
  2664. languageCode: LanguageCode;
  2665. name: Scalars['String'];
  2666. };
  2667. export type CountryList = PaginatedList & {
  2668. __typename?: 'CountryList';
  2669. items: Array<Country>;
  2670. totalItems: Scalars['Int'];
  2671. };
  2672. export type CustomerGroup = Node & {
  2673. __typename?: 'CustomerGroup';
  2674. id: Scalars['ID'];
  2675. createdAt: Scalars['DateTime'];
  2676. updatedAt: Scalars['DateTime'];
  2677. name: Scalars['String'];
  2678. customers: CustomerList;
  2679. };
  2680. export type CustomerGroupCustomersArgs = {
  2681. options?: Maybe<CustomerListOptions>;
  2682. };
  2683. export type CustomerList = PaginatedList & {
  2684. __typename?: 'CustomerList';
  2685. items: Array<Customer>;
  2686. totalItems: Scalars['Int'];
  2687. };
  2688. export type FacetValue = Node & {
  2689. __typename?: 'FacetValue';
  2690. id: Scalars['ID'];
  2691. createdAt: Scalars['DateTime'];
  2692. updatedAt: Scalars['DateTime'];
  2693. languageCode: LanguageCode;
  2694. facet: Facet;
  2695. name: Scalars['String'];
  2696. code: Scalars['String'];
  2697. translations: Array<FacetValueTranslation>;
  2698. customFields?: Maybe<Scalars['JSON']>;
  2699. };
  2700. export type FacetValueTranslation = {
  2701. __typename?: 'FacetValueTranslation';
  2702. id: Scalars['ID'];
  2703. createdAt: Scalars['DateTime'];
  2704. updatedAt: Scalars['DateTime'];
  2705. languageCode: LanguageCode;
  2706. name: Scalars['String'];
  2707. };
  2708. export type FacetTranslation = {
  2709. __typename?: 'FacetTranslation';
  2710. id: Scalars['ID'];
  2711. createdAt: Scalars['DateTime'];
  2712. updatedAt: Scalars['DateTime'];
  2713. languageCode: LanguageCode;
  2714. name: Scalars['String'];
  2715. };
  2716. export type FacetList = PaginatedList & {
  2717. __typename?: 'FacetList';
  2718. items: Array<Facet>;
  2719. totalItems: Scalars['Int'];
  2720. };
  2721. export type GlobalSettings = {
  2722. __typename?: 'GlobalSettings';
  2723. id: Scalars['ID'];
  2724. createdAt: Scalars['DateTime'];
  2725. updatedAt: Scalars['DateTime'];
  2726. availableLanguages: Array<LanguageCode>;
  2727. trackInventory: Scalars['Boolean'];
  2728. outOfStockThreshold: Scalars['Int'];
  2729. serverConfig: ServerConfig;
  2730. customFields?: Maybe<Scalars['JSON']>;
  2731. };
  2732. export type OrderProcessState = {
  2733. __typename?: 'OrderProcessState';
  2734. name: Scalars['String'];
  2735. to: Array<Scalars['String']>;
  2736. };
  2737. export type PermissionDefinition = {
  2738. __typename?: 'PermissionDefinition';
  2739. name: Scalars['String'];
  2740. description: Scalars['String'];
  2741. assignable: Scalars['Boolean'];
  2742. };
  2743. export type ServerConfig = {
  2744. __typename?: 'ServerConfig';
  2745. orderProcess: Array<OrderProcessState>;
  2746. permittedAssetTypes: Array<Scalars['String']>;
  2747. permissions: Array<PermissionDefinition>;
  2748. customFieldConfig: CustomFields;
  2749. };
  2750. export type HistoryEntry = Node & {
  2751. __typename?: 'HistoryEntry';
  2752. id: Scalars['ID'];
  2753. createdAt: Scalars['DateTime'];
  2754. updatedAt: Scalars['DateTime'];
  2755. isPublic: Scalars['Boolean'];
  2756. type: HistoryEntryType;
  2757. administrator?: Maybe<Administrator>;
  2758. data: Scalars['JSON'];
  2759. };
  2760. export enum HistoryEntryType {
  2761. CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED',
  2762. CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED',
  2763. CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED',
  2764. CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP',
  2765. CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP',
  2766. CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED',
  2767. CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED',
  2768. CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED',
  2769. CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED',
  2770. CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED',
  2771. CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED',
  2772. CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED',
  2773. CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED',
  2774. CUSTOMER_NOTE = 'CUSTOMER_NOTE',
  2775. ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION',
  2776. ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION',
  2777. ORDER_FULFILLMENT = 'ORDER_FULFILLMENT',
  2778. ORDER_CANCELLATION = 'ORDER_CANCELLATION',
  2779. ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION',
  2780. ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION',
  2781. ORDER_NOTE = 'ORDER_NOTE',
  2782. ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED',
  2783. ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED'
  2784. }
  2785. export type HistoryEntryList = PaginatedList & {
  2786. __typename?: 'HistoryEntryList';
  2787. items: Array<HistoryEntry>;
  2788. totalItems: Scalars['Int'];
  2789. };
  2790. export type ImportInfo = {
  2791. __typename?: 'ImportInfo';
  2792. errors?: Maybe<Array<Scalars['String']>>;
  2793. processed: Scalars['Int'];
  2794. imported: Scalars['Int'];
  2795. };
  2796. /**
  2797. * A summary of the taxes being applied to this order, grouped
  2798. * by taxRate.
  2799. */
  2800. export type OrderTaxSummary = {
  2801. __typename?: 'OrderTaxSummary';
  2802. /** The taxRate as a percentage */
  2803. taxRate: Scalars['Float'];
  2804. /** The total net price or OrderItems to which this taxRate applies */
  2805. taxBase: Scalars['Int'];
  2806. /** The total tax being applied to the Order at this taxRate */
  2807. taxTotal: Scalars['Int'];
  2808. };
  2809. export type OrderAddress = {
  2810. __typename?: 'OrderAddress';
  2811. fullName?: Maybe<Scalars['String']>;
  2812. company?: Maybe<Scalars['String']>;
  2813. streetLine1?: Maybe<Scalars['String']>;
  2814. streetLine2?: Maybe<Scalars['String']>;
  2815. city?: Maybe<Scalars['String']>;
  2816. province?: Maybe<Scalars['String']>;
  2817. postalCode?: Maybe<Scalars['String']>;
  2818. country?: Maybe<Scalars['String']>;
  2819. countryCode?: Maybe<Scalars['String']>;
  2820. phoneNumber?: Maybe<Scalars['String']>;
  2821. };
  2822. export type OrderList = PaginatedList & {
  2823. __typename?: 'OrderList';
  2824. items: Array<Order>;
  2825. totalItems: Scalars['Int'];
  2826. };
  2827. export type ShippingMethodQuote = {
  2828. __typename?: 'ShippingMethodQuote';
  2829. id: Scalars['ID'];
  2830. price: Scalars['Int'];
  2831. priceWithTax: Scalars['Int'];
  2832. description: Scalars['String'];
  2833. metadata?: Maybe<Scalars['JSON']>;
  2834. };
  2835. export type OrderItem = Node & {
  2836. __typename?: 'OrderItem';
  2837. id: Scalars['ID'];
  2838. createdAt: Scalars['DateTime'];
  2839. updatedAt: Scalars['DateTime'];
  2840. cancelled: Scalars['Boolean'];
  2841. /** The price of a single unit, excluding tax */
  2842. unitPrice: Scalars['Int'];
  2843. /** The price of a single unit, including tax */
  2844. unitPriceWithTax: Scalars['Int'];
  2845. /** @deprecated `unitPrice` is now always without tax */
  2846. unitPriceIncludesTax: Scalars['Boolean'];
  2847. taxRate: Scalars['Float'];
  2848. adjustments: Array<Adjustment>;
  2849. fulfillment?: Maybe<Fulfillment>;
  2850. refundId?: Maybe<Scalars['ID']>;
  2851. };
  2852. export type OrderLine = Node & {
  2853. __typename?: 'OrderLine';
  2854. id: Scalars['ID'];
  2855. createdAt: Scalars['DateTime'];
  2856. updatedAt: Scalars['DateTime'];
  2857. productVariant: ProductVariant;
  2858. featuredAsset?: Maybe<Asset>;
  2859. unitPrice: Scalars['Int'];
  2860. unitPriceWithTax: Scalars['Int'];
  2861. quantity: Scalars['Int'];
  2862. items: Array<OrderItem>;
  2863. /** @deprecated Use `linePriceWithTax` instead */
  2864. totalPrice: Scalars['Int'];
  2865. taxRate: Scalars['Float'];
  2866. /** The total price of the line excluding tax */
  2867. linePrice: Scalars['Int'];
  2868. /** The total tax on this line */
  2869. lineTax: Scalars['Int'];
  2870. /** The total price of the line including tax */
  2871. linePriceWithTax: Scalars['Int'];
  2872. adjustments: Array<Adjustment>;
  2873. order: Order;
  2874. customFields?: Maybe<Scalars['JSON']>;
  2875. };
  2876. export type Payment = Node & {
  2877. __typename?: 'Payment';
  2878. id: Scalars['ID'];
  2879. createdAt: Scalars['DateTime'];
  2880. updatedAt: Scalars['DateTime'];
  2881. method: Scalars['String'];
  2882. amount: Scalars['Int'];
  2883. state: Scalars['String'];
  2884. transactionId?: Maybe<Scalars['String']>;
  2885. errorMessage?: Maybe<Scalars['String']>;
  2886. refunds: Array<Refund>;
  2887. metadata?: Maybe<Scalars['JSON']>;
  2888. };
  2889. export type Refund = Node & {
  2890. __typename?: 'Refund';
  2891. id: Scalars['ID'];
  2892. createdAt: Scalars['DateTime'];
  2893. updatedAt: Scalars['DateTime'];
  2894. items: Scalars['Int'];
  2895. shipping: Scalars['Int'];
  2896. adjustment: Scalars['Int'];
  2897. total: Scalars['Int'];
  2898. method?: Maybe<Scalars['String']>;
  2899. state: Scalars['String'];
  2900. transactionId?: Maybe<Scalars['String']>;
  2901. reason?: Maybe<Scalars['String']>;
  2902. orderItems: Array<OrderItem>;
  2903. paymentId: Scalars['ID'];
  2904. metadata?: Maybe<Scalars['JSON']>;
  2905. };
  2906. export type PaymentMethod = Node & {
  2907. __typename?: 'PaymentMethod';
  2908. id: Scalars['ID'];
  2909. createdAt: Scalars['DateTime'];
  2910. updatedAt: Scalars['DateTime'];
  2911. code: Scalars['String'];
  2912. enabled: Scalars['Boolean'];
  2913. configArgs: Array<ConfigArg>;
  2914. definition: ConfigurableOperationDefinition;
  2915. };
  2916. export type ProductOptionGroup = Node & {
  2917. __typename?: 'ProductOptionGroup';
  2918. id: Scalars['ID'];
  2919. createdAt: Scalars['DateTime'];
  2920. updatedAt: Scalars['DateTime'];
  2921. languageCode: LanguageCode;
  2922. code: Scalars['String'];
  2923. name: Scalars['String'];
  2924. options: Array<ProductOption>;
  2925. translations: Array<ProductOptionGroupTranslation>;
  2926. customFields?: Maybe<Scalars['JSON']>;
  2927. };
  2928. export type ProductOptionGroupTranslation = {
  2929. __typename?: 'ProductOptionGroupTranslation';
  2930. id: Scalars['ID'];
  2931. createdAt: Scalars['DateTime'];
  2932. updatedAt: Scalars['DateTime'];
  2933. languageCode: LanguageCode;
  2934. name: Scalars['String'];
  2935. };
  2936. export type ProductOption = Node & {
  2937. __typename?: 'ProductOption';
  2938. id: Scalars['ID'];
  2939. createdAt: Scalars['DateTime'];
  2940. updatedAt: Scalars['DateTime'];
  2941. languageCode: LanguageCode;
  2942. code: Scalars['String'];
  2943. name: Scalars['String'];
  2944. groupId: Scalars['ID'];
  2945. group: ProductOptionGroup;
  2946. translations: Array<ProductOptionTranslation>;
  2947. customFields?: Maybe<Scalars['JSON']>;
  2948. };
  2949. export type ProductOptionTranslation = {
  2950. __typename?: 'ProductOptionTranslation';
  2951. id: Scalars['ID'];
  2952. createdAt: Scalars['DateTime'];
  2953. updatedAt: Scalars['DateTime'];
  2954. languageCode: LanguageCode;
  2955. name: Scalars['String'];
  2956. };
  2957. export type SearchReindexResponse = {
  2958. __typename?: 'SearchReindexResponse';
  2959. success: Scalars['Boolean'];
  2960. };
  2961. export type SearchResponse = {
  2962. __typename?: 'SearchResponse';
  2963. items: Array<SearchResult>;
  2964. totalItems: Scalars['Int'];
  2965. facetValues: Array<FacetValueResult>;
  2966. };
  2967. /**
  2968. * Which FacetValues are present in the products returned
  2969. * by the search, and in what quantity.
  2970. */
  2971. export type FacetValueResult = {
  2972. __typename?: 'FacetValueResult';
  2973. facetValue: FacetValue;
  2974. count: Scalars['Int'];
  2975. };
  2976. export type SearchResultAsset = {
  2977. __typename?: 'SearchResultAsset';
  2978. id: Scalars['ID'];
  2979. preview: Scalars['String'];
  2980. focalPoint?: Maybe<Coordinate>;
  2981. };
  2982. /** The price of a search result product, either as a range or as a single price */
  2983. export type SearchResultPrice = PriceRange | SinglePrice;
  2984. /** The price value where the result has a single price */
  2985. export type SinglePrice = {
  2986. __typename?: 'SinglePrice';
  2987. value: Scalars['Int'];
  2988. };
  2989. /** The price range where the result has more than one price */
  2990. export type PriceRange = {
  2991. __typename?: 'PriceRange';
  2992. min: Scalars['Int'];
  2993. max: Scalars['Int'];
  2994. };
  2995. export type ProductTranslation = {
  2996. __typename?: 'ProductTranslation';
  2997. id: Scalars['ID'];
  2998. createdAt: Scalars['DateTime'];
  2999. updatedAt: Scalars['DateTime'];
  3000. languageCode: LanguageCode;
  3001. name: Scalars['String'];
  3002. slug: Scalars['String'];
  3003. description: Scalars['String'];
  3004. };
  3005. export type ProductList = PaginatedList & {
  3006. __typename?: 'ProductList';
  3007. items: Array<Product>;
  3008. totalItems: Scalars['Int'];
  3009. };
  3010. export type ProductVariantTranslation = {
  3011. __typename?: 'ProductVariantTranslation';
  3012. id: Scalars['ID'];
  3013. createdAt: Scalars['DateTime'];
  3014. updatedAt: Scalars['DateTime'];
  3015. languageCode: LanguageCode;
  3016. name: Scalars['String'];
  3017. };
  3018. export type Promotion = Node & {
  3019. __typename?: 'Promotion';
  3020. id: Scalars['ID'];
  3021. createdAt: Scalars['DateTime'];
  3022. updatedAt: Scalars['DateTime'];
  3023. startsAt?: Maybe<Scalars['DateTime']>;
  3024. endsAt?: Maybe<Scalars['DateTime']>;
  3025. couponCode?: Maybe<Scalars['String']>;
  3026. perCustomerUsageLimit?: Maybe<Scalars['Int']>;
  3027. name: Scalars['String'];
  3028. enabled: Scalars['Boolean'];
  3029. conditions: Array<ConfigurableOperation>;
  3030. actions: Array<ConfigurableOperation>;
  3031. };
  3032. export type PromotionList = PaginatedList & {
  3033. __typename?: 'PromotionList';
  3034. items: Array<Promotion>;
  3035. totalItems: Scalars['Int'];
  3036. };
  3037. export type Role = Node & {
  3038. __typename?: 'Role';
  3039. id: Scalars['ID'];
  3040. createdAt: Scalars['DateTime'];
  3041. updatedAt: Scalars['DateTime'];
  3042. code: Scalars['String'];
  3043. description: Scalars['String'];
  3044. permissions: Array<Permission>;
  3045. channels: Array<Channel>;
  3046. };
  3047. export type RoleList = PaginatedList & {
  3048. __typename?: 'RoleList';
  3049. items: Array<Role>;
  3050. totalItems: Scalars['Int'];
  3051. };
  3052. export type ShippingMethod = Node & {
  3053. __typename?: 'ShippingMethod';
  3054. id: Scalars['ID'];
  3055. createdAt: Scalars['DateTime'];
  3056. updatedAt: Scalars['DateTime'];
  3057. code: Scalars['String'];
  3058. description: Scalars['String'];
  3059. checker: ConfigurableOperation;
  3060. calculator: ConfigurableOperation;
  3061. customFields?: Maybe<Scalars['JSON']>;
  3062. };
  3063. export type ShippingMethodList = PaginatedList & {
  3064. __typename?: 'ShippingMethodList';
  3065. items: Array<ShippingMethod>;
  3066. totalItems: Scalars['Int'];
  3067. };
  3068. export enum StockMovementType {
  3069. ADJUSTMENT = 'ADJUSTMENT',
  3070. ALLOCATION = 'ALLOCATION',
  3071. RELEASE = 'RELEASE',
  3072. SALE = 'SALE',
  3073. CANCELLATION = 'CANCELLATION',
  3074. RETURN = 'RETURN'
  3075. }
  3076. export type StockMovement = {
  3077. id: Scalars['ID'];
  3078. createdAt: Scalars['DateTime'];
  3079. updatedAt: Scalars['DateTime'];
  3080. productVariant: ProductVariant;
  3081. type: StockMovementType;
  3082. quantity: Scalars['Int'];
  3083. };
  3084. export type StockAdjustment = Node & StockMovement & {
  3085. __typename?: 'StockAdjustment';
  3086. id: Scalars['ID'];
  3087. createdAt: Scalars['DateTime'];
  3088. updatedAt: Scalars['DateTime'];
  3089. productVariant: ProductVariant;
  3090. type: StockMovementType;
  3091. quantity: Scalars['Int'];
  3092. };
  3093. export type Allocation = Node & StockMovement & {
  3094. __typename?: 'Allocation';
  3095. id: Scalars['ID'];
  3096. createdAt: Scalars['DateTime'];
  3097. updatedAt: Scalars['DateTime'];
  3098. productVariant: ProductVariant;
  3099. type: StockMovementType;
  3100. quantity: Scalars['Int'];
  3101. orderLine: OrderLine;
  3102. };
  3103. export type Sale = Node & StockMovement & {
  3104. __typename?: 'Sale';
  3105. id: Scalars['ID'];
  3106. createdAt: Scalars['DateTime'];
  3107. updatedAt: Scalars['DateTime'];
  3108. productVariant: ProductVariant;
  3109. type: StockMovementType;
  3110. quantity: Scalars['Int'];
  3111. orderItem: OrderItem;
  3112. };
  3113. export type Cancellation = Node & StockMovement & {
  3114. __typename?: 'Cancellation';
  3115. id: Scalars['ID'];
  3116. createdAt: Scalars['DateTime'];
  3117. updatedAt: Scalars['DateTime'];
  3118. productVariant: ProductVariant;
  3119. type: StockMovementType;
  3120. quantity: Scalars['Int'];
  3121. orderLine: OrderLine;
  3122. };
  3123. export type Return = Node & StockMovement & {
  3124. __typename?: 'Return';
  3125. id: Scalars['ID'];
  3126. createdAt: Scalars['DateTime'];
  3127. updatedAt: Scalars['DateTime'];
  3128. productVariant: ProductVariant;
  3129. type: StockMovementType;
  3130. quantity: Scalars['Int'];
  3131. orderItem: OrderItem;
  3132. };
  3133. export type Release = Node & StockMovement & {
  3134. __typename?: 'Release';
  3135. id: Scalars['ID'];
  3136. createdAt: Scalars['DateTime'];
  3137. updatedAt: Scalars['DateTime'];
  3138. productVariant: ProductVariant;
  3139. type: StockMovementType;
  3140. quantity: Scalars['Int'];
  3141. orderItem: OrderItem;
  3142. };
  3143. export type StockMovementItem = StockAdjustment | Allocation | Sale | Cancellation | Return | Release;
  3144. export type StockMovementList = {
  3145. __typename?: 'StockMovementList';
  3146. items: Array<StockMovementItem>;
  3147. totalItems: Scalars['Int'];
  3148. };
  3149. export type TaxCategory = Node & {
  3150. __typename?: 'TaxCategory';
  3151. id: Scalars['ID'];
  3152. createdAt: Scalars['DateTime'];
  3153. updatedAt: Scalars['DateTime'];
  3154. name: Scalars['String'];
  3155. };
  3156. export type TaxRate = Node & {
  3157. __typename?: 'TaxRate';
  3158. id: Scalars['ID'];
  3159. createdAt: Scalars['DateTime'];
  3160. updatedAt: Scalars['DateTime'];
  3161. name: Scalars['String'];
  3162. enabled: Scalars['Boolean'];
  3163. value: Scalars['Float'];
  3164. category: TaxCategory;
  3165. zone: Zone;
  3166. customerGroup?: Maybe<CustomerGroup>;
  3167. };
  3168. export type TaxRateList = PaginatedList & {
  3169. __typename?: 'TaxRateList';
  3170. items: Array<TaxRate>;
  3171. totalItems: Scalars['Int'];
  3172. };
  3173. export type User = Node & {
  3174. __typename?: 'User';
  3175. id: Scalars['ID'];
  3176. createdAt: Scalars['DateTime'];
  3177. updatedAt: Scalars['DateTime'];
  3178. identifier: Scalars['String'];
  3179. verified: Scalars['Boolean'];
  3180. roles: Array<Role>;
  3181. lastLogin?: Maybe<Scalars['DateTime']>;
  3182. authenticationMethods: Array<AuthenticationMethod>;
  3183. customFields?: Maybe<Scalars['JSON']>;
  3184. };
  3185. export type AuthenticationMethod = Node & {
  3186. __typename?: 'AuthenticationMethod';
  3187. id: Scalars['ID'];
  3188. createdAt: Scalars['DateTime'];
  3189. updatedAt: Scalars['DateTime'];
  3190. strategy: Scalars['String'];
  3191. };
  3192. export type Zone = Node & {
  3193. __typename?: 'Zone';
  3194. id: Scalars['ID'];
  3195. createdAt: Scalars['DateTime'];
  3196. updatedAt: Scalars['DateTime'];
  3197. name: Scalars['String'];
  3198. members: Array<Country>;
  3199. };
  3200. export type AdministratorListOptions = {
  3201. skip?: Maybe<Scalars['Int']>;
  3202. take?: Maybe<Scalars['Int']>;
  3203. sort?: Maybe<AdministratorSortParameter>;
  3204. filter?: Maybe<AdministratorFilterParameter>;
  3205. };
  3206. export type AssetListOptions = {
  3207. skip?: Maybe<Scalars['Int']>;
  3208. take?: Maybe<Scalars['Int']>;
  3209. sort?: Maybe<AssetSortParameter>;
  3210. filter?: Maybe<AssetFilterParameter>;
  3211. };
  3212. export type CollectionListOptions = {
  3213. skip?: Maybe<Scalars['Int']>;
  3214. take?: Maybe<Scalars['Int']>;
  3215. sort?: Maybe<CollectionSortParameter>;
  3216. filter?: Maybe<CollectionFilterParameter>;
  3217. };
  3218. export type CountryListOptions = {
  3219. skip?: Maybe<Scalars['Int']>;
  3220. take?: Maybe<Scalars['Int']>;
  3221. sort?: Maybe<CountrySortParameter>;
  3222. filter?: Maybe<CountryFilterParameter>;
  3223. };
  3224. export type CustomerGroupListOptions = {
  3225. skip?: Maybe<Scalars['Int']>;
  3226. take?: Maybe<Scalars['Int']>;
  3227. sort?: Maybe<CustomerGroupSortParameter>;
  3228. filter?: Maybe<CustomerGroupFilterParameter>;
  3229. };
  3230. export type CustomerListOptions = {
  3231. skip?: Maybe<Scalars['Int']>;
  3232. take?: Maybe<Scalars['Int']>;
  3233. sort?: Maybe<CustomerSortParameter>;
  3234. filter?: Maybe<CustomerFilterParameter>;
  3235. };
  3236. export type FacetListOptions = {
  3237. skip?: Maybe<Scalars['Int']>;
  3238. take?: Maybe<Scalars['Int']>;
  3239. sort?: Maybe<FacetSortParameter>;
  3240. filter?: Maybe<FacetFilterParameter>;
  3241. };
  3242. export type JobListOptions = {
  3243. skip?: Maybe<Scalars['Int']>;
  3244. take?: Maybe<Scalars['Int']>;
  3245. sort?: Maybe<JobSortParameter>;
  3246. filter?: Maybe<JobFilterParameter>;
  3247. };
  3248. export type OrderListOptions = {
  3249. skip?: Maybe<Scalars['Int']>;
  3250. take?: Maybe<Scalars['Int']>;
  3251. sort?: Maybe<OrderSortParameter>;
  3252. filter?: Maybe<OrderFilterParameter>;
  3253. };
  3254. export type PaymentMethodListOptions = {
  3255. skip?: Maybe<Scalars['Int']>;
  3256. take?: Maybe<Scalars['Int']>;
  3257. sort?: Maybe<PaymentMethodSortParameter>;
  3258. filter?: Maybe<PaymentMethodFilterParameter>;
  3259. };
  3260. export type ProductListOptions = {
  3261. skip?: Maybe<Scalars['Int']>;
  3262. take?: Maybe<Scalars['Int']>;
  3263. sort?: Maybe<ProductSortParameter>;
  3264. filter?: Maybe<ProductFilterParameter>;
  3265. };
  3266. export type PromotionListOptions = {
  3267. skip?: Maybe<Scalars['Int']>;
  3268. take?: Maybe<Scalars['Int']>;
  3269. sort?: Maybe<PromotionSortParameter>;
  3270. filter?: Maybe<PromotionFilterParameter>;
  3271. };
  3272. export type RoleListOptions = {
  3273. skip?: Maybe<Scalars['Int']>;
  3274. take?: Maybe<Scalars['Int']>;
  3275. sort?: Maybe<RoleSortParameter>;
  3276. filter?: Maybe<RoleFilterParameter>;
  3277. };
  3278. export type ShippingMethodListOptions = {
  3279. skip?: Maybe<Scalars['Int']>;
  3280. take?: Maybe<Scalars['Int']>;
  3281. sort?: Maybe<ShippingMethodSortParameter>;
  3282. filter?: Maybe<ShippingMethodFilterParameter>;
  3283. };
  3284. export type TaxRateListOptions = {
  3285. skip?: Maybe<Scalars['Int']>;
  3286. take?: Maybe<Scalars['Int']>;
  3287. sort?: Maybe<TaxRateSortParameter>;
  3288. filter?: Maybe<TaxRateFilterParameter>;
  3289. };
  3290. export type ProductVariantListOptions = {
  3291. skip?: Maybe<Scalars['Int']>;
  3292. take?: Maybe<Scalars['Int']>;
  3293. sort?: Maybe<ProductVariantSortParameter>;
  3294. filter?: Maybe<ProductVariantFilterParameter>;
  3295. };
  3296. export type HistoryEntryListOptions = {
  3297. skip?: Maybe<Scalars['Int']>;
  3298. take?: Maybe<Scalars['Int']>;
  3299. sort?: Maybe<HistoryEntrySortParameter>;
  3300. filter?: Maybe<HistoryEntryFilterParameter>;
  3301. };
  3302. export type AdministratorFilterParameter = {
  3303. createdAt?: Maybe<DateOperators>;
  3304. updatedAt?: Maybe<DateOperators>;
  3305. firstName?: Maybe<StringOperators>;
  3306. lastName?: Maybe<StringOperators>;
  3307. emailAddress?: Maybe<StringOperators>;
  3308. };
  3309. export type AdministratorSortParameter = {
  3310. id?: Maybe<SortOrder>;
  3311. createdAt?: Maybe<SortOrder>;
  3312. updatedAt?: Maybe<SortOrder>;
  3313. firstName?: Maybe<SortOrder>;
  3314. lastName?: Maybe<SortOrder>;
  3315. emailAddress?: Maybe<SortOrder>;
  3316. };
  3317. export type AssetFilterParameter = {
  3318. createdAt?: Maybe<DateOperators>;
  3319. updatedAt?: Maybe<DateOperators>;
  3320. name?: Maybe<StringOperators>;
  3321. type?: Maybe<StringOperators>;
  3322. fileSize?: Maybe<NumberOperators>;
  3323. mimeType?: Maybe<StringOperators>;
  3324. width?: Maybe<NumberOperators>;
  3325. height?: Maybe<NumberOperators>;
  3326. source?: Maybe<StringOperators>;
  3327. preview?: Maybe<StringOperators>;
  3328. };
  3329. export type AssetSortParameter = {
  3330. id?: Maybe<SortOrder>;
  3331. createdAt?: Maybe<SortOrder>;
  3332. updatedAt?: Maybe<SortOrder>;
  3333. name?: Maybe<SortOrder>;
  3334. fileSize?: Maybe<SortOrder>;
  3335. mimeType?: Maybe<SortOrder>;
  3336. width?: Maybe<SortOrder>;
  3337. height?: Maybe<SortOrder>;
  3338. source?: Maybe<SortOrder>;
  3339. preview?: Maybe<SortOrder>;
  3340. };
  3341. export type CollectionFilterParameter = {
  3342. isPrivate?: Maybe<BooleanOperators>;
  3343. createdAt?: Maybe<DateOperators>;
  3344. updatedAt?: Maybe<DateOperators>;
  3345. languageCode?: Maybe<StringOperators>;
  3346. name?: Maybe<StringOperators>;
  3347. slug?: Maybe<StringOperators>;
  3348. position?: Maybe<NumberOperators>;
  3349. description?: Maybe<StringOperators>;
  3350. };
  3351. export type CollectionSortParameter = {
  3352. id?: Maybe<SortOrder>;
  3353. createdAt?: Maybe<SortOrder>;
  3354. updatedAt?: Maybe<SortOrder>;
  3355. name?: Maybe<SortOrder>;
  3356. slug?: Maybe<SortOrder>;
  3357. position?: Maybe<SortOrder>;
  3358. description?: Maybe<SortOrder>;
  3359. };
  3360. export type CountryFilterParameter = {
  3361. createdAt?: Maybe<DateOperators>;
  3362. updatedAt?: Maybe<DateOperators>;
  3363. languageCode?: Maybe<StringOperators>;
  3364. code?: Maybe<StringOperators>;
  3365. name?: Maybe<StringOperators>;
  3366. enabled?: Maybe<BooleanOperators>;
  3367. };
  3368. export type CountrySortParameter = {
  3369. id?: Maybe<SortOrder>;
  3370. createdAt?: Maybe<SortOrder>;
  3371. updatedAt?: Maybe<SortOrder>;
  3372. code?: Maybe<SortOrder>;
  3373. name?: Maybe<SortOrder>;
  3374. };
  3375. export type CustomerGroupFilterParameter = {
  3376. createdAt?: Maybe<DateOperators>;
  3377. updatedAt?: Maybe<DateOperators>;
  3378. name?: Maybe<StringOperators>;
  3379. };
  3380. export type CustomerGroupSortParameter = {
  3381. id?: Maybe<SortOrder>;
  3382. createdAt?: Maybe<SortOrder>;
  3383. updatedAt?: Maybe<SortOrder>;
  3384. name?: Maybe<SortOrder>;
  3385. };
  3386. export type CustomerFilterParameter = {
  3387. createdAt?: Maybe<DateOperators>;
  3388. updatedAt?: Maybe<DateOperators>;
  3389. title?: Maybe<StringOperators>;
  3390. firstName?: Maybe<StringOperators>;
  3391. lastName?: Maybe<StringOperators>;
  3392. phoneNumber?: Maybe<StringOperators>;
  3393. emailAddress?: Maybe<StringOperators>;
  3394. };
  3395. export type CustomerSortParameter = {
  3396. id?: Maybe<SortOrder>;
  3397. createdAt?: Maybe<SortOrder>;
  3398. updatedAt?: Maybe<SortOrder>;
  3399. title?: Maybe<SortOrder>;
  3400. firstName?: Maybe<SortOrder>;
  3401. lastName?: Maybe<SortOrder>;
  3402. phoneNumber?: Maybe<SortOrder>;
  3403. emailAddress?: Maybe<SortOrder>;
  3404. };
  3405. export type FacetFilterParameter = {
  3406. isPrivate?: Maybe<BooleanOperators>;
  3407. createdAt?: Maybe<DateOperators>;
  3408. updatedAt?: Maybe<DateOperators>;
  3409. languageCode?: Maybe<StringOperators>;
  3410. name?: Maybe<StringOperators>;
  3411. code?: Maybe<StringOperators>;
  3412. };
  3413. export type FacetSortParameter = {
  3414. id?: Maybe<SortOrder>;
  3415. createdAt?: Maybe<SortOrder>;
  3416. updatedAt?: Maybe<SortOrder>;
  3417. name?: Maybe<SortOrder>;
  3418. code?: Maybe<SortOrder>;
  3419. };
  3420. export type JobFilterParameter = {
  3421. createdAt?: Maybe<DateOperators>;
  3422. startedAt?: Maybe<DateOperators>;
  3423. settledAt?: Maybe<DateOperators>;
  3424. queueName?: Maybe<StringOperators>;
  3425. state?: Maybe<StringOperators>;
  3426. progress?: Maybe<NumberOperators>;
  3427. isSettled?: Maybe<BooleanOperators>;
  3428. duration?: Maybe<NumberOperators>;
  3429. };
  3430. export type JobSortParameter = {
  3431. id?: Maybe<SortOrder>;
  3432. createdAt?: Maybe<SortOrder>;
  3433. startedAt?: Maybe<SortOrder>;
  3434. settledAt?: Maybe<SortOrder>;
  3435. queueName?: Maybe<SortOrder>;
  3436. progress?: Maybe<SortOrder>;
  3437. duration?: Maybe<SortOrder>;
  3438. };
  3439. export type OrderFilterParameter = {
  3440. createdAt?: Maybe<DateOperators>;
  3441. updatedAt?: Maybe<DateOperators>;
  3442. code?: Maybe<StringOperators>;
  3443. state?: Maybe<StringOperators>;
  3444. active?: Maybe<BooleanOperators>;
  3445. totalQuantity?: Maybe<NumberOperators>;
  3446. subTotalBeforeTax?: Maybe<NumberOperators>;
  3447. subTotal?: Maybe<NumberOperators>;
  3448. currencyCode?: Maybe<StringOperators>;
  3449. shipping?: Maybe<NumberOperators>;
  3450. shippingWithTax?: Maybe<NumberOperators>;
  3451. totalBeforeTax?: Maybe<NumberOperators>;
  3452. total?: Maybe<NumberOperators>;
  3453. };
  3454. export type OrderSortParameter = {
  3455. id?: Maybe<SortOrder>;
  3456. createdAt?: Maybe<SortOrder>;
  3457. updatedAt?: Maybe<SortOrder>;
  3458. code?: Maybe<SortOrder>;
  3459. state?: Maybe<SortOrder>;
  3460. totalQuantity?: Maybe<SortOrder>;
  3461. subTotalBeforeTax?: Maybe<SortOrder>;
  3462. subTotal?: Maybe<SortOrder>;
  3463. shipping?: Maybe<SortOrder>;
  3464. shippingWithTax?: Maybe<SortOrder>;
  3465. totalBeforeTax?: Maybe<SortOrder>;
  3466. total?: Maybe<SortOrder>;
  3467. };
  3468. export type PaymentMethodFilterParameter = {
  3469. createdAt?: Maybe<DateOperators>;
  3470. updatedAt?: Maybe<DateOperators>;
  3471. code?: Maybe<StringOperators>;
  3472. enabled?: Maybe<BooleanOperators>;
  3473. };
  3474. export type PaymentMethodSortParameter = {
  3475. id?: Maybe<SortOrder>;
  3476. createdAt?: Maybe<SortOrder>;
  3477. updatedAt?: Maybe<SortOrder>;
  3478. code?: Maybe<SortOrder>;
  3479. };
  3480. export type ProductFilterParameter = {
  3481. enabled?: Maybe<BooleanOperators>;
  3482. createdAt?: Maybe<DateOperators>;
  3483. updatedAt?: Maybe<DateOperators>;
  3484. languageCode?: Maybe<StringOperators>;
  3485. name?: Maybe<StringOperators>;
  3486. slug?: Maybe<StringOperators>;
  3487. description?: Maybe<StringOperators>;
  3488. };
  3489. export type ProductSortParameter = {
  3490. id?: Maybe<SortOrder>;
  3491. createdAt?: Maybe<SortOrder>;
  3492. updatedAt?: Maybe<SortOrder>;
  3493. name?: Maybe<SortOrder>;
  3494. slug?: Maybe<SortOrder>;
  3495. description?: Maybe<SortOrder>;
  3496. };
  3497. export type PromotionFilterParameter = {
  3498. createdAt?: Maybe<DateOperators>;
  3499. updatedAt?: Maybe<DateOperators>;
  3500. startsAt?: Maybe<DateOperators>;
  3501. endsAt?: Maybe<DateOperators>;
  3502. couponCode?: Maybe<StringOperators>;
  3503. perCustomerUsageLimit?: Maybe<NumberOperators>;
  3504. name?: Maybe<StringOperators>;
  3505. enabled?: Maybe<BooleanOperators>;
  3506. };
  3507. export type PromotionSortParameter = {
  3508. id?: Maybe<SortOrder>;
  3509. createdAt?: Maybe<SortOrder>;
  3510. updatedAt?: Maybe<SortOrder>;
  3511. startsAt?: Maybe<SortOrder>;
  3512. endsAt?: Maybe<SortOrder>;
  3513. couponCode?: Maybe<SortOrder>;
  3514. perCustomerUsageLimit?: Maybe<SortOrder>;
  3515. name?: Maybe<SortOrder>;
  3516. };
  3517. export type RoleFilterParameter = {
  3518. createdAt?: Maybe<DateOperators>;
  3519. updatedAt?: Maybe<DateOperators>;
  3520. code?: Maybe<StringOperators>;
  3521. description?: Maybe<StringOperators>;
  3522. };
  3523. export type RoleSortParameter = {
  3524. id?: Maybe<SortOrder>;
  3525. createdAt?: Maybe<SortOrder>;
  3526. updatedAt?: Maybe<SortOrder>;
  3527. code?: Maybe<SortOrder>;
  3528. description?: Maybe<SortOrder>;
  3529. };
  3530. export type ShippingMethodFilterParameter = {
  3531. createdAt?: Maybe<DateOperators>;
  3532. updatedAt?: Maybe<DateOperators>;
  3533. code?: Maybe<StringOperators>;
  3534. description?: Maybe<StringOperators>;
  3535. };
  3536. export type ShippingMethodSortParameter = {
  3537. id?: Maybe<SortOrder>;
  3538. createdAt?: Maybe<SortOrder>;
  3539. updatedAt?: Maybe<SortOrder>;
  3540. code?: Maybe<SortOrder>;
  3541. description?: Maybe<SortOrder>;
  3542. };
  3543. export type TaxRateFilterParameter = {
  3544. createdAt?: Maybe<DateOperators>;
  3545. updatedAt?: Maybe<DateOperators>;
  3546. name?: Maybe<StringOperators>;
  3547. enabled?: Maybe<BooleanOperators>;
  3548. value?: Maybe<NumberOperators>;
  3549. };
  3550. export type TaxRateSortParameter = {
  3551. id?: Maybe<SortOrder>;
  3552. createdAt?: Maybe<SortOrder>;
  3553. updatedAt?: Maybe<SortOrder>;
  3554. name?: Maybe<SortOrder>;
  3555. value?: Maybe<SortOrder>;
  3556. };
  3557. export type ProductVariantFilterParameter = {
  3558. enabled?: Maybe<BooleanOperators>;
  3559. trackInventory?: Maybe<StringOperators>;
  3560. stockOnHand?: Maybe<NumberOperators>;
  3561. stockAllocated?: Maybe<NumberOperators>;
  3562. outOfStockThreshold?: Maybe<NumberOperators>;
  3563. useGlobalOutOfStockThreshold?: Maybe<BooleanOperators>;
  3564. createdAt?: Maybe<DateOperators>;
  3565. updatedAt?: Maybe<DateOperators>;
  3566. languageCode?: Maybe<StringOperators>;
  3567. sku?: Maybe<StringOperators>;
  3568. name?: Maybe<StringOperators>;
  3569. price?: Maybe<NumberOperators>;
  3570. currencyCode?: Maybe<StringOperators>;
  3571. priceIncludesTax?: Maybe<BooleanOperators>;
  3572. priceWithTax?: Maybe<NumberOperators>;
  3573. };
  3574. export type ProductVariantSortParameter = {
  3575. stockOnHand?: Maybe<SortOrder>;
  3576. stockAllocated?: Maybe<SortOrder>;
  3577. outOfStockThreshold?: Maybe<SortOrder>;
  3578. id?: Maybe<SortOrder>;
  3579. productId?: Maybe<SortOrder>;
  3580. createdAt?: Maybe<SortOrder>;
  3581. updatedAt?: Maybe<SortOrder>;
  3582. sku?: Maybe<SortOrder>;
  3583. name?: Maybe<SortOrder>;
  3584. price?: Maybe<SortOrder>;
  3585. priceWithTax?: Maybe<SortOrder>;
  3586. };
  3587. export type HistoryEntryFilterParameter = {
  3588. createdAt?: Maybe<DateOperators>;
  3589. updatedAt?: Maybe<DateOperators>;
  3590. isPublic?: Maybe<BooleanOperators>;
  3591. type?: Maybe<StringOperators>;
  3592. };
  3593. export type HistoryEntrySortParameter = {
  3594. id?: Maybe<SortOrder>;
  3595. createdAt?: Maybe<SortOrder>;
  3596. updatedAt?: Maybe<SortOrder>;
  3597. };
  3598. export type CustomFields = {
  3599. __typename?: 'CustomFields';
  3600. Address: Array<CustomFieldConfig>;
  3601. Collection: Array<CustomFieldConfig>;
  3602. Customer: Array<CustomFieldConfig>;
  3603. Facet: Array<CustomFieldConfig>;
  3604. FacetValue: Array<CustomFieldConfig>;
  3605. Fulfillment: Array<CustomFieldConfig>;
  3606. GlobalSettings: Array<CustomFieldConfig>;
  3607. Order: Array<CustomFieldConfig>;
  3608. OrderLine: Array<CustomFieldConfig>;
  3609. Product: Array<CustomFieldConfig>;
  3610. ProductOption: Array<CustomFieldConfig>;
  3611. ProductOptionGroup: Array<CustomFieldConfig>;
  3612. ProductVariant: Array<CustomFieldConfig>;
  3613. User: Array<CustomFieldConfig>;
  3614. ShippingMethod: Array<CustomFieldConfig>;
  3615. };
  3616. export type AuthenticationInput = {
  3617. native?: Maybe<NativeAuthInput>;
  3618. };
  3619. export type NativeAuthInput = {
  3620. username: Scalars['String'];
  3621. password: Scalars['String'];
  3622. };