1
0

generated-types.ts 101 KB

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