generated-types.ts 106 KB

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