generated-types.ts 105 KB

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