generated-types.ts 106 KB

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