generated-types.ts 179 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342
  1. /* eslint-disable */
  2. export type Maybe<T> = T;
  3. export type InputMaybe<T> = T;
  4. export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
  5. export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
  6. export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
  7. /** All built-in and custom scalars, mapped to their actual values */
  8. export type Scalars = {
  9. ID: string | number;
  10. String: string;
  11. Boolean: boolean;
  12. Int: number;
  13. Float: number;
  14. DateTime: any;
  15. JSON: any;
  16. Money: number;
  17. Upload: any;
  18. };
  19. export type AddFulfillmentToOrderResult = CreateFulfillmentError | EmptyOrderLineSelectionError | Fulfillment | FulfillmentStateTransitionError | InsufficientStockOnHandError | InvalidFulfillmentHandlerError | ItemsAlreadyFulfilledError;
  20. export type AddItemInput = {
  21. productVariantId: Scalars['ID'];
  22. quantity: Scalars['Int'];
  23. };
  24. export type AddItemToDraftOrderInput = {
  25. productVariantId: Scalars['ID'];
  26. quantity: Scalars['Int'];
  27. };
  28. export type AddManualPaymentToOrderResult = ManualPaymentStateError | Order;
  29. export type AddNoteToCustomerInput = {
  30. id: Scalars['ID'];
  31. isPublic: Scalars['Boolean'];
  32. note: Scalars['String'];
  33. };
  34. export type AddNoteToOrderInput = {
  35. id: Scalars['ID'];
  36. isPublic: Scalars['Boolean'];
  37. note: Scalars['String'];
  38. };
  39. export type Address = Node & {
  40. __typename?: 'Address';
  41. city?: Maybe<Scalars['String']>;
  42. company?: Maybe<Scalars['String']>;
  43. country: Country;
  44. createdAt: Scalars['DateTime'];
  45. customFields?: Maybe<Scalars['JSON']>;
  46. defaultBillingAddress?: Maybe<Scalars['Boolean']>;
  47. defaultShippingAddress?: Maybe<Scalars['Boolean']>;
  48. fullName?: Maybe<Scalars['String']>;
  49. id: Scalars['ID'];
  50. phoneNumber?: Maybe<Scalars['String']>;
  51. postalCode?: Maybe<Scalars['String']>;
  52. province?: Maybe<Scalars['String']>;
  53. streetLine1: Scalars['String'];
  54. streetLine2?: Maybe<Scalars['String']>;
  55. updatedAt: Scalars['DateTime'];
  56. };
  57. export type AdjustDraftOrderLineInput = {
  58. orderLineId: Scalars['ID'];
  59. quantity: Scalars['Int'];
  60. };
  61. export type Adjustment = {
  62. __typename?: 'Adjustment';
  63. adjustmentSource: Scalars['String'];
  64. amount: Scalars['Money'];
  65. data?: Maybe<Scalars['JSON']>;
  66. description: Scalars['String'];
  67. type: AdjustmentType;
  68. };
  69. export enum AdjustmentType {
  70. DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION',
  71. OTHER = 'OTHER',
  72. PROMOTION = 'PROMOTION'
  73. }
  74. export type Administrator = Node & {
  75. __typename?: 'Administrator';
  76. createdAt: Scalars['DateTime'];
  77. customFields?: Maybe<Scalars['JSON']>;
  78. emailAddress: Scalars['String'];
  79. firstName: Scalars['String'];
  80. id: Scalars['ID'];
  81. lastName: Scalars['String'];
  82. updatedAt: Scalars['DateTime'];
  83. user: User;
  84. };
  85. export type AdministratorFilterParameter = {
  86. createdAt?: InputMaybe<DateOperators>;
  87. emailAddress?: InputMaybe<StringOperators>;
  88. firstName?: InputMaybe<StringOperators>;
  89. id?: InputMaybe<IdOperators>;
  90. lastName?: InputMaybe<StringOperators>;
  91. updatedAt?: InputMaybe<DateOperators>;
  92. };
  93. export type AdministratorList = PaginatedList & {
  94. __typename?: 'AdministratorList';
  95. items: Array<Administrator>;
  96. totalItems: Scalars['Int'];
  97. };
  98. export type AdministratorListOptions = {
  99. /** Allows the results to be filtered */
  100. filter?: InputMaybe<AdministratorFilterParameter>;
  101. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  102. filterOperator?: InputMaybe<LogicalOperator>;
  103. /** Skips the first n results, for use in pagination */
  104. skip?: InputMaybe<Scalars['Int']>;
  105. /** Specifies which properties to sort the results by */
  106. sort?: InputMaybe<AdministratorSortParameter>;
  107. /** Takes n results, for use in pagination */
  108. take?: InputMaybe<Scalars['Int']>;
  109. };
  110. export type AdministratorPaymentInput = {
  111. metadata?: InputMaybe<Scalars['JSON']>;
  112. paymentMethod?: InputMaybe<Scalars['String']>;
  113. };
  114. export type AdministratorRefundInput = {
  115. paymentId: Scalars['ID'];
  116. reason?: InputMaybe<Scalars['String']>;
  117. };
  118. export type AdministratorSortParameter = {
  119. createdAt?: InputMaybe<SortOrder>;
  120. emailAddress?: InputMaybe<SortOrder>;
  121. firstName?: InputMaybe<SortOrder>;
  122. id?: InputMaybe<SortOrder>;
  123. lastName?: InputMaybe<SortOrder>;
  124. updatedAt?: InputMaybe<SortOrder>;
  125. };
  126. export type Allocation = Node & StockMovement & {
  127. __typename?: 'Allocation';
  128. createdAt: Scalars['DateTime'];
  129. id: Scalars['ID'];
  130. orderLine: OrderLine;
  131. productVariant: ProductVariant;
  132. quantity: Scalars['Int'];
  133. type: StockMovementType;
  134. updatedAt: Scalars['DateTime'];
  135. };
  136. /** Returned if an attempting to refund an OrderItem which has already been refunded */
  137. export type AlreadyRefundedError = ErrorResult & {
  138. __typename?: 'AlreadyRefundedError';
  139. errorCode: ErrorCode;
  140. message: Scalars['String'];
  141. refundId: Scalars['ID'];
  142. };
  143. export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order;
  144. export type Asset = Node & {
  145. __typename?: 'Asset';
  146. createdAt: Scalars['DateTime'];
  147. customFields?: Maybe<Scalars['JSON']>;
  148. fileSize: Scalars['Int'];
  149. focalPoint?: Maybe<Coordinate>;
  150. height: Scalars['Int'];
  151. id: Scalars['ID'];
  152. mimeType: Scalars['String'];
  153. name: Scalars['String'];
  154. preview: Scalars['String'];
  155. source: Scalars['String'];
  156. tags: Array<Tag>;
  157. type: AssetType;
  158. updatedAt: Scalars['DateTime'];
  159. width: Scalars['Int'];
  160. };
  161. export type AssetFilterParameter = {
  162. createdAt?: InputMaybe<DateOperators>;
  163. fileSize?: InputMaybe<NumberOperators>;
  164. height?: InputMaybe<NumberOperators>;
  165. id?: InputMaybe<IdOperators>;
  166. mimeType?: InputMaybe<StringOperators>;
  167. name?: InputMaybe<StringOperators>;
  168. preview?: InputMaybe<StringOperators>;
  169. source?: InputMaybe<StringOperators>;
  170. type?: InputMaybe<StringOperators>;
  171. updatedAt?: InputMaybe<DateOperators>;
  172. width?: InputMaybe<NumberOperators>;
  173. };
  174. export type AssetList = PaginatedList & {
  175. __typename?: 'AssetList';
  176. items: Array<Asset>;
  177. totalItems: Scalars['Int'];
  178. };
  179. export type AssetListOptions = {
  180. /** Allows the results to be filtered */
  181. filter?: InputMaybe<AssetFilterParameter>;
  182. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  183. filterOperator?: InputMaybe<LogicalOperator>;
  184. /** Skips the first n results, for use in pagination */
  185. skip?: InputMaybe<Scalars['Int']>;
  186. /** Specifies which properties to sort the results by */
  187. sort?: InputMaybe<AssetSortParameter>;
  188. tags?: InputMaybe<Array<Scalars['String']>>;
  189. tagsOperator?: InputMaybe<LogicalOperator>;
  190. /** Takes n results, for use in pagination */
  191. take?: InputMaybe<Scalars['Int']>;
  192. };
  193. export type AssetSortParameter = {
  194. createdAt?: InputMaybe<SortOrder>;
  195. fileSize?: InputMaybe<SortOrder>;
  196. height?: InputMaybe<SortOrder>;
  197. id?: InputMaybe<SortOrder>;
  198. mimeType?: InputMaybe<SortOrder>;
  199. name?: InputMaybe<SortOrder>;
  200. preview?: InputMaybe<SortOrder>;
  201. source?: InputMaybe<SortOrder>;
  202. updatedAt?: InputMaybe<SortOrder>;
  203. width?: InputMaybe<SortOrder>;
  204. };
  205. export enum AssetType {
  206. BINARY = 'BINARY',
  207. IMAGE = 'IMAGE',
  208. VIDEO = 'VIDEO'
  209. }
  210. export type AssignAssetsToChannelInput = {
  211. assetIds: Array<Scalars['ID']>;
  212. channelId: Scalars['ID'];
  213. };
  214. export type AssignCollectionsToChannelInput = {
  215. channelId: Scalars['ID'];
  216. collectionIds: Array<Scalars['ID']>;
  217. };
  218. export type AssignFacetsToChannelInput = {
  219. channelId: Scalars['ID'];
  220. facetIds: Array<Scalars['ID']>;
  221. };
  222. export type AssignProductVariantsToChannelInput = {
  223. channelId: Scalars['ID'];
  224. priceFactor?: InputMaybe<Scalars['Float']>;
  225. productVariantIds: Array<Scalars['ID']>;
  226. };
  227. export type AssignProductsToChannelInput = {
  228. channelId: Scalars['ID'];
  229. priceFactor?: InputMaybe<Scalars['Float']>;
  230. productIds: Array<Scalars['ID']>;
  231. };
  232. export type AssignPromotionsToChannelInput = {
  233. channelId: Scalars['ID'];
  234. promotionIds: Array<Scalars['ID']>;
  235. };
  236. export type AuthenticationInput = {
  237. native?: InputMaybe<NativeAuthInput>;
  238. };
  239. export type AuthenticationMethod = Node & {
  240. __typename?: 'AuthenticationMethod';
  241. createdAt: Scalars['DateTime'];
  242. id: Scalars['ID'];
  243. strategy: Scalars['String'];
  244. updatedAt: Scalars['DateTime'];
  245. };
  246. export type AuthenticationResult = CurrentUser | InvalidCredentialsError;
  247. export type BooleanCustomFieldConfig = CustomField & {
  248. __typename?: 'BooleanCustomFieldConfig';
  249. description?: Maybe<Array<LocalizedString>>;
  250. internal?: Maybe<Scalars['Boolean']>;
  251. label?: Maybe<Array<LocalizedString>>;
  252. list: Scalars['Boolean'];
  253. name: Scalars['String'];
  254. nullable?: Maybe<Scalars['Boolean']>;
  255. readonly?: Maybe<Scalars['Boolean']>;
  256. type: Scalars['String'];
  257. ui?: Maybe<Scalars['JSON']>;
  258. };
  259. /** Operators for filtering on a list of Boolean fields */
  260. export type BooleanListOperators = {
  261. inList: Scalars['Boolean'];
  262. };
  263. /** Operators for filtering on a Boolean field */
  264. export type BooleanOperators = {
  265. eq?: InputMaybe<Scalars['Boolean']>;
  266. isNull?: InputMaybe<Scalars['Boolean']>;
  267. };
  268. /** Returned if an attempting to cancel lines from an Order which is still active */
  269. export type CancelActiveOrderError = ErrorResult & {
  270. __typename?: 'CancelActiveOrderError';
  271. errorCode: ErrorCode;
  272. message: Scalars['String'];
  273. orderState: Scalars['String'];
  274. };
  275. export type CancelOrderInput = {
  276. /** Specify whether the shipping charges should also be cancelled. Defaults to false */
  277. cancelShipping?: InputMaybe<Scalars['Boolean']>;
  278. /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */
  279. lines?: InputMaybe<Array<OrderLineInput>>;
  280. /** The id of the order to be cancelled */
  281. orderId: Scalars['ID'];
  282. reason?: InputMaybe<Scalars['String']>;
  283. };
  284. export type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError;
  285. /** Returned if the Payment cancellation fails */
  286. export type CancelPaymentError = ErrorResult & {
  287. __typename?: 'CancelPaymentError';
  288. errorCode: ErrorCode;
  289. message: Scalars['String'];
  290. paymentErrorMessage: Scalars['String'];
  291. };
  292. export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError;
  293. export type Cancellation = Node & StockMovement & {
  294. __typename?: 'Cancellation';
  295. createdAt: Scalars['DateTime'];
  296. id: Scalars['ID'];
  297. orderLine: OrderLine;
  298. productVariant: ProductVariant;
  299. quantity: Scalars['Int'];
  300. type: StockMovementType;
  301. updatedAt: Scalars['DateTime'];
  302. };
  303. export type Channel = Node & {
  304. __typename?: 'Channel';
  305. availableCurrencyCodes: Array<CurrencyCode>;
  306. availableLanguageCodes?: Maybe<Array<LanguageCode>>;
  307. code: Scalars['String'];
  308. createdAt: Scalars['DateTime'];
  309. /** @deprecated Use defaultCurrencyCode instead */
  310. currencyCode: CurrencyCode;
  311. customFields?: Maybe<Scalars['JSON']>;
  312. defaultCurrencyCode: CurrencyCode;
  313. defaultLanguageCode: LanguageCode;
  314. defaultShippingZone?: Maybe<Zone>;
  315. defaultTaxZone?: Maybe<Zone>;
  316. id: Scalars['ID'];
  317. outOfStockThreshold?: Maybe<Scalars['Int']>;
  318. pricesIncludeTax: Scalars['Boolean'];
  319. seller?: Maybe<Seller>;
  320. token: Scalars['String'];
  321. trackInventory?: Maybe<Scalars['Boolean']>;
  322. updatedAt: Scalars['DateTime'];
  323. };
  324. /**
  325. * Returned when the default LanguageCode of a Channel is no longer found in the `availableLanguages`
  326. * of the GlobalSettings
  327. */
  328. export type ChannelDefaultLanguageError = ErrorResult & {
  329. __typename?: 'ChannelDefaultLanguageError';
  330. channelCode: Scalars['String'];
  331. errorCode: ErrorCode;
  332. language: Scalars['String'];
  333. message: Scalars['String'];
  334. };
  335. export type ChannelFilterParameter = {
  336. code?: InputMaybe<StringOperators>;
  337. createdAt?: InputMaybe<DateOperators>;
  338. currencyCode?: InputMaybe<StringOperators>;
  339. defaultCurrencyCode?: InputMaybe<StringOperators>;
  340. defaultLanguageCode?: InputMaybe<StringOperators>;
  341. id?: InputMaybe<IdOperators>;
  342. outOfStockThreshold?: InputMaybe<NumberOperators>;
  343. pricesIncludeTax?: InputMaybe<BooleanOperators>;
  344. token?: InputMaybe<StringOperators>;
  345. trackInventory?: InputMaybe<BooleanOperators>;
  346. updatedAt?: InputMaybe<DateOperators>;
  347. };
  348. export type ChannelList = PaginatedList & {
  349. __typename?: 'ChannelList';
  350. items: Array<Channel>;
  351. totalItems: Scalars['Int'];
  352. };
  353. export type ChannelListOptions = {
  354. /** Allows the results to be filtered */
  355. filter?: InputMaybe<ChannelFilterParameter>;
  356. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  357. filterOperator?: InputMaybe<LogicalOperator>;
  358. /** Skips the first n results, for use in pagination */
  359. skip?: InputMaybe<Scalars['Int']>;
  360. /** Specifies which properties to sort the results by */
  361. sort?: InputMaybe<ChannelSortParameter>;
  362. /** Takes n results, for use in pagination */
  363. take?: InputMaybe<Scalars['Int']>;
  364. };
  365. export type ChannelSortParameter = {
  366. code?: InputMaybe<SortOrder>;
  367. createdAt?: InputMaybe<SortOrder>;
  368. id?: InputMaybe<SortOrder>;
  369. outOfStockThreshold?: InputMaybe<SortOrder>;
  370. token?: InputMaybe<SortOrder>;
  371. updatedAt?: InputMaybe<SortOrder>;
  372. };
  373. export type Collection = Node & {
  374. __typename?: 'Collection';
  375. assets: Array<Asset>;
  376. breadcrumbs: Array<CollectionBreadcrumb>;
  377. children?: Maybe<Array<Collection>>;
  378. createdAt: Scalars['DateTime'];
  379. customFields?: Maybe<Scalars['JSON']>;
  380. description: Scalars['String'];
  381. featuredAsset?: Maybe<Asset>;
  382. filters: Array<ConfigurableOperation>;
  383. id: Scalars['ID'];
  384. inheritFilters: Scalars['Boolean'];
  385. isPrivate: Scalars['Boolean'];
  386. languageCode?: Maybe<LanguageCode>;
  387. name: Scalars['String'];
  388. parent?: Maybe<Collection>;
  389. parentId: Scalars['ID'];
  390. position: Scalars['Int'];
  391. productVariants: ProductVariantList;
  392. slug: Scalars['String'];
  393. translations: Array<CollectionTranslation>;
  394. updatedAt: Scalars['DateTime'];
  395. };
  396. export type CollectionProductVariantsArgs = {
  397. options?: InputMaybe<ProductVariantListOptions>;
  398. };
  399. export type CollectionBreadcrumb = {
  400. __typename?: 'CollectionBreadcrumb';
  401. id: Scalars['ID'];
  402. name: Scalars['String'];
  403. slug: Scalars['String'];
  404. };
  405. export type CollectionFilterParameter = {
  406. createdAt?: InputMaybe<DateOperators>;
  407. description?: InputMaybe<StringOperators>;
  408. id?: InputMaybe<IdOperators>;
  409. inheritFilters?: InputMaybe<BooleanOperators>;
  410. isPrivate?: InputMaybe<BooleanOperators>;
  411. languageCode?: InputMaybe<StringOperators>;
  412. name?: InputMaybe<StringOperators>;
  413. parentId?: InputMaybe<IdOperators>;
  414. position?: InputMaybe<NumberOperators>;
  415. slug?: InputMaybe<StringOperators>;
  416. updatedAt?: InputMaybe<DateOperators>;
  417. };
  418. export type CollectionList = PaginatedList & {
  419. __typename?: 'CollectionList';
  420. items: Array<Collection>;
  421. totalItems: Scalars['Int'];
  422. };
  423. export type CollectionListOptions = {
  424. /** Allows the results to be filtered */
  425. filter?: InputMaybe<CollectionFilterParameter>;
  426. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  427. filterOperator?: InputMaybe<LogicalOperator>;
  428. /** Skips the first n results, for use in pagination */
  429. skip?: InputMaybe<Scalars['Int']>;
  430. /** Specifies which properties to sort the results by */
  431. sort?: InputMaybe<CollectionSortParameter>;
  432. /** Takes n results, for use in pagination */
  433. take?: InputMaybe<Scalars['Int']>;
  434. topLevelOnly?: InputMaybe<Scalars['Boolean']>;
  435. };
  436. /**
  437. * Which Collections are present in the products returned
  438. * by the search, and in what quantity.
  439. */
  440. export type CollectionResult = {
  441. __typename?: 'CollectionResult';
  442. collection: Collection;
  443. count: Scalars['Int'];
  444. };
  445. export type CollectionSortParameter = {
  446. createdAt?: InputMaybe<SortOrder>;
  447. description?: InputMaybe<SortOrder>;
  448. id?: InputMaybe<SortOrder>;
  449. name?: InputMaybe<SortOrder>;
  450. parentId?: InputMaybe<SortOrder>;
  451. position?: InputMaybe<SortOrder>;
  452. slug?: InputMaybe<SortOrder>;
  453. updatedAt?: InputMaybe<SortOrder>;
  454. };
  455. export type CollectionTranslation = {
  456. __typename?: 'CollectionTranslation';
  457. createdAt: Scalars['DateTime'];
  458. description: Scalars['String'];
  459. id: Scalars['ID'];
  460. languageCode: LanguageCode;
  461. name: Scalars['String'];
  462. slug: Scalars['String'];
  463. updatedAt: Scalars['DateTime'];
  464. };
  465. export type ConfigArg = {
  466. __typename?: 'ConfigArg';
  467. name: Scalars['String'];
  468. value: Scalars['String'];
  469. };
  470. export type ConfigArgDefinition = {
  471. __typename?: 'ConfigArgDefinition';
  472. defaultValue?: Maybe<Scalars['JSON']>;
  473. description?: Maybe<Scalars['String']>;
  474. label?: Maybe<Scalars['String']>;
  475. list: Scalars['Boolean'];
  476. name: Scalars['String'];
  477. required: Scalars['Boolean'];
  478. type: Scalars['String'];
  479. ui?: Maybe<Scalars['JSON']>;
  480. };
  481. export type ConfigArgInput = {
  482. name: Scalars['String'];
  483. /** A JSON stringified representation of the actual value */
  484. value: Scalars['String'];
  485. };
  486. export type ConfigurableOperation = {
  487. __typename?: 'ConfigurableOperation';
  488. args: Array<ConfigArg>;
  489. code: Scalars['String'];
  490. };
  491. export type ConfigurableOperationDefinition = {
  492. __typename?: 'ConfigurableOperationDefinition';
  493. args: Array<ConfigArgDefinition>;
  494. code: Scalars['String'];
  495. description: Scalars['String'];
  496. };
  497. export type ConfigurableOperationInput = {
  498. arguments: Array<ConfigArgInput>;
  499. code: Scalars['String'];
  500. };
  501. export type Coordinate = {
  502. __typename?: 'Coordinate';
  503. x: Scalars['Float'];
  504. y: Scalars['Float'];
  505. };
  506. export type CoordinateInput = {
  507. x: Scalars['Float'];
  508. y: Scalars['Float'];
  509. };
  510. export type Country = Node & Region & {
  511. __typename?: 'Country';
  512. code: Scalars['String'];
  513. createdAt: Scalars['DateTime'];
  514. customFields?: Maybe<Scalars['JSON']>;
  515. enabled: Scalars['Boolean'];
  516. id: Scalars['ID'];
  517. languageCode: LanguageCode;
  518. name: Scalars['String'];
  519. parent?: Maybe<Region>;
  520. parentId?: Maybe<Scalars['ID']>;
  521. translations: Array<RegionTranslation>;
  522. type: Scalars['String'];
  523. updatedAt: Scalars['DateTime'];
  524. };
  525. export type CountryFilterParameter = {
  526. code?: InputMaybe<StringOperators>;
  527. createdAt?: InputMaybe<DateOperators>;
  528. enabled?: InputMaybe<BooleanOperators>;
  529. id?: InputMaybe<IdOperators>;
  530. languageCode?: InputMaybe<StringOperators>;
  531. name?: InputMaybe<StringOperators>;
  532. parentId?: InputMaybe<IdOperators>;
  533. type?: InputMaybe<StringOperators>;
  534. updatedAt?: InputMaybe<DateOperators>;
  535. };
  536. export type CountryList = PaginatedList & {
  537. __typename?: 'CountryList';
  538. items: Array<Country>;
  539. totalItems: Scalars['Int'];
  540. };
  541. export type CountryListOptions = {
  542. /** Allows the results to be filtered */
  543. filter?: InputMaybe<CountryFilterParameter>;
  544. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  545. filterOperator?: InputMaybe<LogicalOperator>;
  546. /** Skips the first n results, for use in pagination */
  547. skip?: InputMaybe<Scalars['Int']>;
  548. /** Specifies which properties to sort the results by */
  549. sort?: InputMaybe<CountrySortParameter>;
  550. /** Takes n results, for use in pagination */
  551. take?: InputMaybe<Scalars['Int']>;
  552. };
  553. export type CountrySortParameter = {
  554. code?: InputMaybe<SortOrder>;
  555. createdAt?: InputMaybe<SortOrder>;
  556. id?: InputMaybe<SortOrder>;
  557. name?: InputMaybe<SortOrder>;
  558. parentId?: InputMaybe<SortOrder>;
  559. type?: InputMaybe<SortOrder>;
  560. updatedAt?: InputMaybe<SortOrder>;
  561. };
  562. export type CountryTranslationInput = {
  563. customFields?: InputMaybe<Scalars['JSON']>;
  564. id?: InputMaybe<Scalars['ID']>;
  565. languageCode: LanguageCode;
  566. name?: InputMaybe<Scalars['String']>;
  567. };
  568. /** Returned if the provided coupon code is invalid */
  569. export type CouponCodeExpiredError = ErrorResult & {
  570. __typename?: 'CouponCodeExpiredError';
  571. couponCode: Scalars['String'];
  572. errorCode: ErrorCode;
  573. message: Scalars['String'];
  574. };
  575. /** Returned if the provided coupon code is invalid */
  576. export type CouponCodeInvalidError = ErrorResult & {
  577. __typename?: 'CouponCodeInvalidError';
  578. couponCode: Scalars['String'];
  579. errorCode: ErrorCode;
  580. message: Scalars['String'];
  581. };
  582. /** Returned if the provided coupon code is invalid */
  583. export type CouponCodeLimitError = ErrorResult & {
  584. __typename?: 'CouponCodeLimitError';
  585. couponCode: Scalars['String'];
  586. errorCode: ErrorCode;
  587. limit: Scalars['Int'];
  588. message: Scalars['String'];
  589. };
  590. export type CreateAddressInput = {
  591. city?: InputMaybe<Scalars['String']>;
  592. company?: InputMaybe<Scalars['String']>;
  593. countryCode: Scalars['String'];
  594. customFields?: InputMaybe<Scalars['JSON']>;
  595. defaultBillingAddress?: InputMaybe<Scalars['Boolean']>;
  596. defaultShippingAddress?: InputMaybe<Scalars['Boolean']>;
  597. fullName?: InputMaybe<Scalars['String']>;
  598. phoneNumber?: InputMaybe<Scalars['String']>;
  599. postalCode?: InputMaybe<Scalars['String']>;
  600. province?: InputMaybe<Scalars['String']>;
  601. streetLine1: Scalars['String'];
  602. streetLine2?: InputMaybe<Scalars['String']>;
  603. };
  604. export type CreateAdministratorInput = {
  605. customFields?: InputMaybe<Scalars['JSON']>;
  606. emailAddress: Scalars['String'];
  607. firstName: Scalars['String'];
  608. lastName: Scalars['String'];
  609. password: Scalars['String'];
  610. roleIds: Array<Scalars['ID']>;
  611. };
  612. export type CreateAssetInput = {
  613. customFields?: InputMaybe<Scalars['JSON']>;
  614. file: Scalars['Upload'];
  615. tags?: InputMaybe<Array<Scalars['String']>>;
  616. };
  617. export type CreateAssetResult = Asset | MimeTypeError;
  618. export type CreateChannelInput = {
  619. availableCurrencyCodes?: InputMaybe<Array<CurrencyCode>>;
  620. availableLanguageCodes?: InputMaybe<Array<LanguageCode>>;
  621. code: Scalars['String'];
  622. currencyCode: CurrencyCode;
  623. customFields?: InputMaybe<Scalars['JSON']>;
  624. defaultLanguageCode: LanguageCode;
  625. defaultShippingZoneId: Scalars['ID'];
  626. defaultTaxZoneId: Scalars['ID'];
  627. outOfStockThreshold?: InputMaybe<Scalars['Int']>;
  628. pricesIncludeTax: Scalars['Boolean'];
  629. sellerId?: InputMaybe<Scalars['ID']>;
  630. token: Scalars['String'];
  631. trackInventory?: InputMaybe<Scalars['Boolean']>;
  632. };
  633. export type CreateChannelResult = Channel | LanguageNotAvailableError;
  634. export type CreateCollectionInput = {
  635. assetIds?: InputMaybe<Array<Scalars['ID']>>;
  636. customFields?: InputMaybe<Scalars['JSON']>;
  637. featuredAssetId?: InputMaybe<Scalars['ID']>;
  638. filters: Array<ConfigurableOperationInput>;
  639. inheritFilters?: InputMaybe<Scalars['Boolean']>;
  640. isPrivate?: InputMaybe<Scalars['Boolean']>;
  641. parentId?: InputMaybe<Scalars['ID']>;
  642. translations: Array<CreateCollectionTranslationInput>;
  643. };
  644. export type CreateCollectionTranslationInput = {
  645. customFields?: InputMaybe<Scalars['JSON']>;
  646. description: Scalars['String'];
  647. languageCode: LanguageCode;
  648. name: Scalars['String'];
  649. slug: Scalars['String'];
  650. };
  651. export type CreateCountryInput = {
  652. code: Scalars['String'];
  653. customFields?: InputMaybe<Scalars['JSON']>;
  654. enabled: Scalars['Boolean'];
  655. translations: Array<CountryTranslationInput>;
  656. };
  657. export type CreateCustomerGroupInput = {
  658. customFields?: InputMaybe<Scalars['JSON']>;
  659. customerIds?: InputMaybe<Array<Scalars['ID']>>;
  660. name: Scalars['String'];
  661. };
  662. export type CreateCustomerInput = {
  663. customFields?: InputMaybe<Scalars['JSON']>;
  664. emailAddress: Scalars['String'];
  665. firstName: Scalars['String'];
  666. lastName: Scalars['String'];
  667. phoneNumber?: InputMaybe<Scalars['String']>;
  668. title?: InputMaybe<Scalars['String']>;
  669. };
  670. export type CreateCustomerResult = Customer | EmailAddressConflictError;
  671. export type CreateFacetInput = {
  672. code: Scalars['String'];
  673. customFields?: InputMaybe<Scalars['JSON']>;
  674. isPrivate: Scalars['Boolean'];
  675. translations: Array<FacetTranslationInput>;
  676. values?: InputMaybe<Array<CreateFacetValueWithFacetInput>>;
  677. };
  678. export type CreateFacetValueInput = {
  679. code: Scalars['String'];
  680. customFields?: InputMaybe<Scalars['JSON']>;
  681. facetId: Scalars['ID'];
  682. translations: Array<FacetValueTranslationInput>;
  683. };
  684. export type CreateFacetValueWithFacetInput = {
  685. code: Scalars['String'];
  686. translations: Array<FacetValueTranslationInput>;
  687. };
  688. /** Returned if an error is thrown in a FulfillmentHandler's createFulfillment method */
  689. export type CreateFulfillmentError = ErrorResult & {
  690. __typename?: 'CreateFulfillmentError';
  691. errorCode: ErrorCode;
  692. fulfillmentHandlerError: Scalars['String'];
  693. message: Scalars['String'];
  694. };
  695. export type CreateGroupOptionInput = {
  696. code: Scalars['String'];
  697. translations: Array<ProductOptionGroupTranslationInput>;
  698. };
  699. export type CreatePaymentMethodInput = {
  700. checker?: InputMaybe<ConfigurableOperationInput>;
  701. code: Scalars['String'];
  702. customFields?: InputMaybe<Scalars['JSON']>;
  703. enabled: Scalars['Boolean'];
  704. handler: ConfigurableOperationInput;
  705. translations: Array<PaymentMethodTranslationInput>;
  706. };
  707. export type CreateProductInput = {
  708. assetIds?: InputMaybe<Array<Scalars['ID']>>;
  709. customFields?: InputMaybe<Scalars['JSON']>;
  710. enabled?: InputMaybe<Scalars['Boolean']>;
  711. facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
  712. featuredAssetId?: InputMaybe<Scalars['ID']>;
  713. translations: Array<ProductTranslationInput>;
  714. };
  715. export type CreateProductOptionGroupInput = {
  716. code: Scalars['String'];
  717. customFields?: InputMaybe<Scalars['JSON']>;
  718. options: Array<CreateGroupOptionInput>;
  719. translations: Array<ProductOptionGroupTranslationInput>;
  720. };
  721. export type CreateProductOptionInput = {
  722. code: Scalars['String'];
  723. customFields?: InputMaybe<Scalars['JSON']>;
  724. productOptionGroupId: Scalars['ID'];
  725. translations: Array<ProductOptionGroupTranslationInput>;
  726. };
  727. export type CreateProductVariantInput = {
  728. assetIds?: InputMaybe<Array<Scalars['ID']>>;
  729. customFields?: InputMaybe<Scalars['JSON']>;
  730. facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
  731. featuredAssetId?: InputMaybe<Scalars['ID']>;
  732. optionIds?: InputMaybe<Array<Scalars['ID']>>;
  733. outOfStockThreshold?: InputMaybe<Scalars['Int']>;
  734. price?: InputMaybe<Scalars['Money']>;
  735. productId: Scalars['ID'];
  736. sku: Scalars['String'];
  737. stockLevels?: InputMaybe<Array<StockLevelInput>>;
  738. stockOnHand?: InputMaybe<Scalars['Int']>;
  739. taxCategoryId?: InputMaybe<Scalars['ID']>;
  740. trackInventory?: InputMaybe<GlobalFlag>;
  741. translations: Array<ProductVariantTranslationInput>;
  742. useGlobalOutOfStockThreshold?: InputMaybe<Scalars['Boolean']>;
  743. };
  744. export type CreateProductVariantOptionInput = {
  745. code: Scalars['String'];
  746. optionGroupId: Scalars['ID'];
  747. translations: Array<ProductOptionTranslationInput>;
  748. };
  749. export type CreatePromotionInput = {
  750. actions: Array<ConfigurableOperationInput>;
  751. conditions: Array<ConfigurableOperationInput>;
  752. couponCode?: InputMaybe<Scalars['String']>;
  753. customFields?: InputMaybe<Scalars['JSON']>;
  754. enabled: Scalars['Boolean'];
  755. endsAt?: InputMaybe<Scalars['DateTime']>;
  756. perCustomerUsageLimit?: InputMaybe<Scalars['Int']>;
  757. startsAt?: InputMaybe<Scalars['DateTime']>;
  758. translations: Array<PromotionTranslationInput>;
  759. };
  760. export type CreatePromotionResult = MissingConditionsError | Promotion;
  761. export type CreateProvinceInput = {
  762. code: Scalars['String'];
  763. customFields?: InputMaybe<Scalars['JSON']>;
  764. enabled: Scalars['Boolean'];
  765. translations: Array<ProvinceTranslationInput>;
  766. };
  767. export type CreateRoleInput = {
  768. channelIds?: InputMaybe<Array<Scalars['ID']>>;
  769. code: Scalars['String'];
  770. description: Scalars['String'];
  771. permissions: Array<Permission>;
  772. };
  773. export type CreateSellerInput = {
  774. customFields?: InputMaybe<Scalars['JSON']>;
  775. name: Scalars['String'];
  776. };
  777. export type CreateShippingMethodInput = {
  778. calculator: ConfigurableOperationInput;
  779. checker: ConfigurableOperationInput;
  780. code: Scalars['String'];
  781. customFields?: InputMaybe<Scalars['JSON']>;
  782. fulfillmentHandler: Scalars['String'];
  783. translations: Array<ShippingMethodTranslationInput>;
  784. };
  785. export type CreateStockLocationInput = {
  786. customFields?: InputMaybe<Scalars['JSON']>;
  787. description?: InputMaybe<Scalars['String']>;
  788. name: Scalars['String'];
  789. };
  790. export type CreateTagInput = {
  791. value: Scalars['String'];
  792. };
  793. export type CreateTaxCategoryInput = {
  794. customFields?: InputMaybe<Scalars['JSON']>;
  795. isDefault?: InputMaybe<Scalars['Boolean']>;
  796. name: Scalars['String'];
  797. };
  798. export type CreateTaxRateInput = {
  799. categoryId: Scalars['ID'];
  800. customFields?: InputMaybe<Scalars['JSON']>;
  801. customerGroupId?: InputMaybe<Scalars['ID']>;
  802. enabled: Scalars['Boolean'];
  803. name: Scalars['String'];
  804. value: Scalars['Float'];
  805. zoneId: Scalars['ID'];
  806. };
  807. export type CreateZoneInput = {
  808. customFields?: InputMaybe<Scalars['JSON']>;
  809. memberIds?: InputMaybe<Array<Scalars['ID']>>;
  810. name: Scalars['String'];
  811. };
  812. /**
  813. * @description
  814. * ISO 4217 currency code
  815. *
  816. * @docsCategory common
  817. */
  818. export enum CurrencyCode {
  819. /** United Arab Emirates dirham */
  820. AED = 'AED',
  821. /** Afghan afghani */
  822. AFN = 'AFN',
  823. /** Albanian lek */
  824. ALL = 'ALL',
  825. /** Armenian dram */
  826. AMD = 'AMD',
  827. /** Netherlands Antillean guilder */
  828. ANG = 'ANG',
  829. /** Angolan kwanza */
  830. AOA = 'AOA',
  831. /** Argentine peso */
  832. ARS = 'ARS',
  833. /** Australian dollar */
  834. AUD = 'AUD',
  835. /** Aruban florin */
  836. AWG = 'AWG',
  837. /** Azerbaijani manat */
  838. AZN = 'AZN',
  839. /** Bosnia and Herzegovina convertible mark */
  840. BAM = 'BAM',
  841. /** Barbados dollar */
  842. BBD = 'BBD',
  843. /** Bangladeshi taka */
  844. BDT = 'BDT',
  845. /** Bulgarian lev */
  846. BGN = 'BGN',
  847. /** Bahraini dinar */
  848. BHD = 'BHD',
  849. /** Burundian franc */
  850. BIF = 'BIF',
  851. /** Bermudian dollar */
  852. BMD = 'BMD',
  853. /** Brunei dollar */
  854. BND = 'BND',
  855. /** Boliviano */
  856. BOB = 'BOB',
  857. /** Brazilian real */
  858. BRL = 'BRL',
  859. /** Bahamian dollar */
  860. BSD = 'BSD',
  861. /** Bhutanese ngultrum */
  862. BTN = 'BTN',
  863. /** Botswana pula */
  864. BWP = 'BWP',
  865. /** Belarusian ruble */
  866. BYN = 'BYN',
  867. /** Belize dollar */
  868. BZD = 'BZD',
  869. /** Canadian dollar */
  870. CAD = 'CAD',
  871. /** Congolese franc */
  872. CDF = 'CDF',
  873. /** Swiss franc */
  874. CHF = 'CHF',
  875. /** Chilean peso */
  876. CLP = 'CLP',
  877. /** Renminbi (Chinese) yuan */
  878. CNY = 'CNY',
  879. /** Colombian peso */
  880. COP = 'COP',
  881. /** Costa Rican colon */
  882. CRC = 'CRC',
  883. /** Cuban convertible peso */
  884. CUC = 'CUC',
  885. /** Cuban peso */
  886. CUP = 'CUP',
  887. /** Cape Verde escudo */
  888. CVE = 'CVE',
  889. /** Czech koruna */
  890. CZK = 'CZK',
  891. /** Djiboutian franc */
  892. DJF = 'DJF',
  893. /** Danish krone */
  894. DKK = 'DKK',
  895. /** Dominican peso */
  896. DOP = 'DOP',
  897. /** Algerian dinar */
  898. DZD = 'DZD',
  899. /** Egyptian pound */
  900. EGP = 'EGP',
  901. /** Eritrean nakfa */
  902. ERN = 'ERN',
  903. /** Ethiopian birr */
  904. ETB = 'ETB',
  905. /** Euro */
  906. EUR = 'EUR',
  907. /** Fiji dollar */
  908. FJD = 'FJD',
  909. /** Falkland Islands pound */
  910. FKP = 'FKP',
  911. /** Pound sterling */
  912. GBP = 'GBP',
  913. /** Georgian lari */
  914. GEL = 'GEL',
  915. /** Ghanaian cedi */
  916. GHS = 'GHS',
  917. /** Gibraltar pound */
  918. GIP = 'GIP',
  919. /** Gambian dalasi */
  920. GMD = 'GMD',
  921. /** Guinean franc */
  922. GNF = 'GNF',
  923. /** Guatemalan quetzal */
  924. GTQ = 'GTQ',
  925. /** Guyanese dollar */
  926. GYD = 'GYD',
  927. /** Hong Kong dollar */
  928. HKD = 'HKD',
  929. /** Honduran lempira */
  930. HNL = 'HNL',
  931. /** Croatian kuna */
  932. HRK = 'HRK',
  933. /** Haitian gourde */
  934. HTG = 'HTG',
  935. /** Hungarian forint */
  936. HUF = 'HUF',
  937. /** Indonesian rupiah */
  938. IDR = 'IDR',
  939. /** Israeli new shekel */
  940. ILS = 'ILS',
  941. /** Indian rupee */
  942. INR = 'INR',
  943. /** Iraqi dinar */
  944. IQD = 'IQD',
  945. /** Iranian rial */
  946. IRR = 'IRR',
  947. /** Icelandic króna */
  948. ISK = 'ISK',
  949. /** Jamaican dollar */
  950. JMD = 'JMD',
  951. /** Jordanian dinar */
  952. JOD = 'JOD',
  953. /** Japanese yen */
  954. JPY = 'JPY',
  955. /** Kenyan shilling */
  956. KES = 'KES',
  957. /** Kyrgyzstani som */
  958. KGS = 'KGS',
  959. /** Cambodian riel */
  960. KHR = 'KHR',
  961. /** Comoro franc */
  962. KMF = 'KMF',
  963. /** North Korean won */
  964. KPW = 'KPW',
  965. /** South Korean won */
  966. KRW = 'KRW',
  967. /** Kuwaiti dinar */
  968. KWD = 'KWD',
  969. /** Cayman Islands dollar */
  970. KYD = 'KYD',
  971. /** Kazakhstani tenge */
  972. KZT = 'KZT',
  973. /** Lao kip */
  974. LAK = 'LAK',
  975. /** Lebanese pound */
  976. LBP = 'LBP',
  977. /** Sri Lankan rupee */
  978. LKR = 'LKR',
  979. /** Liberian dollar */
  980. LRD = 'LRD',
  981. /** Lesotho loti */
  982. LSL = 'LSL',
  983. /** Libyan dinar */
  984. LYD = 'LYD',
  985. /** Moroccan dirham */
  986. MAD = 'MAD',
  987. /** Moldovan leu */
  988. MDL = 'MDL',
  989. /** Malagasy ariary */
  990. MGA = 'MGA',
  991. /** Macedonian denar */
  992. MKD = 'MKD',
  993. /** Myanmar kyat */
  994. MMK = 'MMK',
  995. /** Mongolian tögrög */
  996. MNT = 'MNT',
  997. /** Macanese pataca */
  998. MOP = 'MOP',
  999. /** Mauritanian ouguiya */
  1000. MRU = 'MRU',
  1001. /** Mauritian rupee */
  1002. MUR = 'MUR',
  1003. /** Maldivian rufiyaa */
  1004. MVR = 'MVR',
  1005. /** Malawian kwacha */
  1006. MWK = 'MWK',
  1007. /** Mexican peso */
  1008. MXN = 'MXN',
  1009. /** Malaysian ringgit */
  1010. MYR = 'MYR',
  1011. /** Mozambican metical */
  1012. MZN = 'MZN',
  1013. /** Namibian dollar */
  1014. NAD = 'NAD',
  1015. /** Nigerian naira */
  1016. NGN = 'NGN',
  1017. /** Nicaraguan córdoba */
  1018. NIO = 'NIO',
  1019. /** Norwegian krone */
  1020. NOK = 'NOK',
  1021. /** Nepalese rupee */
  1022. NPR = 'NPR',
  1023. /** New Zealand dollar */
  1024. NZD = 'NZD',
  1025. /** Omani rial */
  1026. OMR = 'OMR',
  1027. /** Panamanian balboa */
  1028. PAB = 'PAB',
  1029. /** Peruvian sol */
  1030. PEN = 'PEN',
  1031. /** Papua New Guinean kina */
  1032. PGK = 'PGK',
  1033. /** Philippine peso */
  1034. PHP = 'PHP',
  1035. /** Pakistani rupee */
  1036. PKR = 'PKR',
  1037. /** Polish złoty */
  1038. PLN = 'PLN',
  1039. /** Paraguayan guaraní */
  1040. PYG = 'PYG',
  1041. /** Qatari riyal */
  1042. QAR = 'QAR',
  1043. /** Romanian leu */
  1044. RON = 'RON',
  1045. /** Serbian dinar */
  1046. RSD = 'RSD',
  1047. /** Russian ruble */
  1048. RUB = 'RUB',
  1049. /** Rwandan franc */
  1050. RWF = 'RWF',
  1051. /** Saudi riyal */
  1052. SAR = 'SAR',
  1053. /** Solomon Islands dollar */
  1054. SBD = 'SBD',
  1055. /** Seychelles rupee */
  1056. SCR = 'SCR',
  1057. /** Sudanese pound */
  1058. SDG = 'SDG',
  1059. /** Swedish krona/kronor */
  1060. SEK = 'SEK',
  1061. /** Singapore dollar */
  1062. SGD = 'SGD',
  1063. /** Saint Helena pound */
  1064. SHP = 'SHP',
  1065. /** Sierra Leonean leone */
  1066. SLL = 'SLL',
  1067. /** Somali shilling */
  1068. SOS = 'SOS',
  1069. /** Surinamese dollar */
  1070. SRD = 'SRD',
  1071. /** South Sudanese pound */
  1072. SSP = 'SSP',
  1073. /** São Tomé and Príncipe dobra */
  1074. STN = 'STN',
  1075. /** Salvadoran colón */
  1076. SVC = 'SVC',
  1077. /** Syrian pound */
  1078. SYP = 'SYP',
  1079. /** Swazi lilangeni */
  1080. SZL = 'SZL',
  1081. /** Thai baht */
  1082. THB = 'THB',
  1083. /** Tajikistani somoni */
  1084. TJS = 'TJS',
  1085. /** Turkmenistan manat */
  1086. TMT = 'TMT',
  1087. /** Tunisian dinar */
  1088. TND = 'TND',
  1089. /** Tongan paʻanga */
  1090. TOP = 'TOP',
  1091. /** Turkish lira */
  1092. TRY = 'TRY',
  1093. /** Trinidad and Tobago dollar */
  1094. TTD = 'TTD',
  1095. /** New Taiwan dollar */
  1096. TWD = 'TWD',
  1097. /** Tanzanian shilling */
  1098. TZS = 'TZS',
  1099. /** Ukrainian hryvnia */
  1100. UAH = 'UAH',
  1101. /** Ugandan shilling */
  1102. UGX = 'UGX',
  1103. /** United States dollar */
  1104. USD = 'USD',
  1105. /** Uruguayan peso */
  1106. UYU = 'UYU',
  1107. /** Uzbekistan som */
  1108. UZS = 'UZS',
  1109. /** Venezuelan bolívar soberano */
  1110. VES = 'VES',
  1111. /** Vietnamese đồng */
  1112. VND = 'VND',
  1113. /** Vanuatu vatu */
  1114. VUV = 'VUV',
  1115. /** Samoan tala */
  1116. WST = 'WST',
  1117. /** CFA franc BEAC */
  1118. XAF = 'XAF',
  1119. /** East Caribbean dollar */
  1120. XCD = 'XCD',
  1121. /** CFA franc BCEAO */
  1122. XOF = 'XOF',
  1123. /** CFP franc (franc Pacifique) */
  1124. XPF = 'XPF',
  1125. /** Yemeni rial */
  1126. YER = 'YER',
  1127. /** South African rand */
  1128. ZAR = 'ZAR',
  1129. /** Zambian kwacha */
  1130. ZMW = 'ZMW',
  1131. /** Zimbabwean dollar */
  1132. ZWL = 'ZWL'
  1133. }
  1134. export type CurrentUser = {
  1135. __typename?: 'CurrentUser';
  1136. channels: Array<CurrentUserChannel>;
  1137. id: Scalars['ID'];
  1138. identifier: Scalars['String'];
  1139. };
  1140. export type CurrentUserChannel = {
  1141. __typename?: 'CurrentUserChannel';
  1142. code: Scalars['String'];
  1143. id: Scalars['ID'];
  1144. permissions: Array<Permission>;
  1145. token: Scalars['String'];
  1146. };
  1147. export type CustomField = {
  1148. description?: Maybe<Array<LocalizedString>>;
  1149. internal?: Maybe<Scalars['Boolean']>;
  1150. label?: Maybe<Array<LocalizedString>>;
  1151. list: Scalars['Boolean'];
  1152. name: Scalars['String'];
  1153. nullable?: Maybe<Scalars['Boolean']>;
  1154. readonly?: Maybe<Scalars['Boolean']>;
  1155. type: Scalars['String'];
  1156. ui?: Maybe<Scalars['JSON']>;
  1157. };
  1158. export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;
  1159. export type CustomFields = {
  1160. __typename?: 'CustomFields';
  1161. Address: Array<CustomFieldConfig>;
  1162. Administrator: Array<CustomFieldConfig>;
  1163. Asset: Array<CustomFieldConfig>;
  1164. Channel: Array<CustomFieldConfig>;
  1165. Collection: Array<CustomFieldConfig>;
  1166. Customer: Array<CustomFieldConfig>;
  1167. CustomerGroup: Array<CustomFieldConfig>;
  1168. Facet: Array<CustomFieldConfig>;
  1169. FacetValue: Array<CustomFieldConfig>;
  1170. Fulfillment: Array<CustomFieldConfig>;
  1171. GlobalSettings: Array<CustomFieldConfig>;
  1172. Order: Array<CustomFieldConfig>;
  1173. OrderLine: Array<CustomFieldConfig>;
  1174. PaymentMethod: Array<CustomFieldConfig>;
  1175. Product: Array<CustomFieldConfig>;
  1176. ProductOption: Array<CustomFieldConfig>;
  1177. ProductOptionGroup: Array<CustomFieldConfig>;
  1178. ProductVariant: Array<CustomFieldConfig>;
  1179. Promotion: Array<CustomFieldConfig>;
  1180. Region: Array<CustomFieldConfig>;
  1181. Seller: Array<CustomFieldConfig>;
  1182. ShippingMethod: Array<CustomFieldConfig>;
  1183. StockLocation: Array<CustomFieldConfig>;
  1184. TaxCategory: Array<CustomFieldConfig>;
  1185. TaxRate: Array<CustomFieldConfig>;
  1186. User: Array<CustomFieldConfig>;
  1187. Zone: Array<CustomFieldConfig>;
  1188. };
  1189. export type Customer = Node & {
  1190. __typename?: 'Customer';
  1191. addresses?: Maybe<Array<Address>>;
  1192. createdAt: Scalars['DateTime'];
  1193. customFields?: Maybe<Scalars['JSON']>;
  1194. emailAddress: Scalars['String'];
  1195. firstName: Scalars['String'];
  1196. groups: Array<CustomerGroup>;
  1197. history: HistoryEntryList;
  1198. id: Scalars['ID'];
  1199. lastName: Scalars['String'];
  1200. orders: OrderList;
  1201. phoneNumber?: Maybe<Scalars['String']>;
  1202. title?: Maybe<Scalars['String']>;
  1203. updatedAt: Scalars['DateTime'];
  1204. user?: Maybe<User>;
  1205. };
  1206. export type CustomerHistoryArgs = {
  1207. options?: InputMaybe<HistoryEntryListOptions>;
  1208. };
  1209. export type CustomerOrdersArgs = {
  1210. options?: InputMaybe<OrderListOptions>;
  1211. };
  1212. export type CustomerFilterParameter = {
  1213. createdAt?: InputMaybe<DateOperators>;
  1214. emailAddress?: InputMaybe<StringOperators>;
  1215. firstName?: InputMaybe<StringOperators>;
  1216. id?: InputMaybe<IdOperators>;
  1217. lastName?: InputMaybe<StringOperators>;
  1218. phoneNumber?: InputMaybe<StringOperators>;
  1219. postalCode?: InputMaybe<StringOperators>;
  1220. title?: InputMaybe<StringOperators>;
  1221. updatedAt?: InputMaybe<DateOperators>;
  1222. };
  1223. export type CustomerGroup = Node & {
  1224. __typename?: 'CustomerGroup';
  1225. createdAt: Scalars['DateTime'];
  1226. customFields?: Maybe<Scalars['JSON']>;
  1227. customers: CustomerList;
  1228. id: Scalars['ID'];
  1229. name: Scalars['String'];
  1230. updatedAt: Scalars['DateTime'];
  1231. };
  1232. export type CustomerGroupCustomersArgs = {
  1233. options?: InputMaybe<CustomerListOptions>;
  1234. };
  1235. export type CustomerGroupFilterParameter = {
  1236. createdAt?: InputMaybe<DateOperators>;
  1237. id?: InputMaybe<IdOperators>;
  1238. name?: InputMaybe<StringOperators>;
  1239. updatedAt?: InputMaybe<DateOperators>;
  1240. };
  1241. export type CustomerGroupList = PaginatedList & {
  1242. __typename?: 'CustomerGroupList';
  1243. items: Array<CustomerGroup>;
  1244. totalItems: Scalars['Int'];
  1245. };
  1246. export type CustomerGroupListOptions = {
  1247. /** Allows the results to be filtered */
  1248. filter?: InputMaybe<CustomerGroupFilterParameter>;
  1249. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  1250. filterOperator?: InputMaybe<LogicalOperator>;
  1251. /** Skips the first n results, for use in pagination */
  1252. skip?: InputMaybe<Scalars['Int']>;
  1253. /** Specifies which properties to sort the results by */
  1254. sort?: InputMaybe<CustomerGroupSortParameter>;
  1255. /** Takes n results, for use in pagination */
  1256. take?: InputMaybe<Scalars['Int']>;
  1257. };
  1258. export type CustomerGroupSortParameter = {
  1259. createdAt?: InputMaybe<SortOrder>;
  1260. id?: InputMaybe<SortOrder>;
  1261. name?: InputMaybe<SortOrder>;
  1262. updatedAt?: InputMaybe<SortOrder>;
  1263. };
  1264. export type CustomerList = PaginatedList & {
  1265. __typename?: 'CustomerList';
  1266. items: Array<Customer>;
  1267. totalItems: Scalars['Int'];
  1268. };
  1269. export type CustomerListOptions = {
  1270. /** Allows the results to be filtered */
  1271. filter?: InputMaybe<CustomerFilterParameter>;
  1272. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  1273. filterOperator?: InputMaybe<LogicalOperator>;
  1274. /** Skips the first n results, for use in pagination */
  1275. skip?: InputMaybe<Scalars['Int']>;
  1276. /** Specifies which properties to sort the results by */
  1277. sort?: InputMaybe<CustomerSortParameter>;
  1278. /** Takes n results, for use in pagination */
  1279. take?: InputMaybe<Scalars['Int']>;
  1280. };
  1281. export type CustomerSortParameter = {
  1282. createdAt?: InputMaybe<SortOrder>;
  1283. emailAddress?: InputMaybe<SortOrder>;
  1284. firstName?: InputMaybe<SortOrder>;
  1285. id?: InputMaybe<SortOrder>;
  1286. lastName?: InputMaybe<SortOrder>;
  1287. phoneNumber?: InputMaybe<SortOrder>;
  1288. title?: InputMaybe<SortOrder>;
  1289. updatedAt?: InputMaybe<SortOrder>;
  1290. };
  1291. /** Operators for filtering on a list of Date fields */
  1292. export type DateListOperators = {
  1293. inList: Scalars['DateTime'];
  1294. };
  1295. /** Operators for filtering on a DateTime field */
  1296. export type DateOperators = {
  1297. after?: InputMaybe<Scalars['DateTime']>;
  1298. before?: InputMaybe<Scalars['DateTime']>;
  1299. between?: InputMaybe<DateRange>;
  1300. eq?: InputMaybe<Scalars['DateTime']>;
  1301. isNull?: InputMaybe<Scalars['Boolean']>;
  1302. };
  1303. export type DateRange = {
  1304. end: Scalars['DateTime'];
  1305. start: Scalars['DateTime'];
  1306. };
  1307. /**
  1308. * Expects the same validation formats as the `<input type="datetime-local">` HTML element.
  1309. * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes
  1310. */
  1311. export type DateTimeCustomFieldConfig = CustomField & {
  1312. __typename?: 'DateTimeCustomFieldConfig';
  1313. description?: Maybe<Array<LocalizedString>>;
  1314. internal?: Maybe<Scalars['Boolean']>;
  1315. label?: Maybe<Array<LocalizedString>>;
  1316. list: Scalars['Boolean'];
  1317. max?: Maybe<Scalars['String']>;
  1318. min?: Maybe<Scalars['String']>;
  1319. name: Scalars['String'];
  1320. nullable?: Maybe<Scalars['Boolean']>;
  1321. readonly?: Maybe<Scalars['Boolean']>;
  1322. step?: Maybe<Scalars['Int']>;
  1323. type: Scalars['String'];
  1324. ui?: Maybe<Scalars['JSON']>;
  1325. };
  1326. export type DeleteAssetInput = {
  1327. assetId: Scalars['ID'];
  1328. deleteFromAllChannels?: InputMaybe<Scalars['Boolean']>;
  1329. force?: InputMaybe<Scalars['Boolean']>;
  1330. };
  1331. export type DeleteAssetsInput = {
  1332. assetIds: Array<Scalars['ID']>;
  1333. deleteFromAllChannels?: InputMaybe<Scalars['Boolean']>;
  1334. force?: InputMaybe<Scalars['Boolean']>;
  1335. };
  1336. export type DeleteStockLocationInput = {
  1337. id: Scalars['ID'];
  1338. transferToLocationId?: InputMaybe<Scalars['ID']>;
  1339. };
  1340. export type DeletionResponse = {
  1341. __typename?: 'DeletionResponse';
  1342. message?: Maybe<Scalars['String']>;
  1343. result: DeletionResult;
  1344. };
  1345. export enum DeletionResult {
  1346. /** The entity was successfully deleted */
  1347. DELETED = 'DELETED',
  1348. /** Deletion did not take place, reason given in message */
  1349. NOT_DELETED = 'NOT_DELETED'
  1350. }
  1351. export type Discount = {
  1352. __typename?: 'Discount';
  1353. adjustmentSource: Scalars['String'];
  1354. amount: Scalars['Money'];
  1355. amountWithTax: Scalars['Money'];
  1356. description: Scalars['String'];
  1357. type: AdjustmentType;
  1358. };
  1359. /** Returned when attempting to create a Customer with an email address already registered to an existing User. */
  1360. export type EmailAddressConflictError = ErrorResult & {
  1361. __typename?: 'EmailAddressConflictError';
  1362. errorCode: ErrorCode;
  1363. message: Scalars['String'];
  1364. };
  1365. /** Returned if no OrderLines have been specified for the operation */
  1366. export type EmptyOrderLineSelectionError = ErrorResult & {
  1367. __typename?: 'EmptyOrderLineSelectionError';
  1368. errorCode: ErrorCode;
  1369. message: Scalars['String'];
  1370. };
  1371. export enum ErrorCode {
  1372. ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR',
  1373. CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR',
  1374. CANCEL_PAYMENT_ERROR = 'CANCEL_PAYMENT_ERROR',
  1375. CHANNEL_DEFAULT_LANGUAGE_ERROR = 'CHANNEL_DEFAULT_LANGUAGE_ERROR',
  1376. COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR',
  1377. COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR',
  1378. COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR',
  1379. CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR',
  1380. EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR',
  1381. EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR',
  1382. FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR',
  1383. FULFILLMENT_STATE_TRANSITION_ERROR = 'FULFILLMENT_STATE_TRANSITION_ERROR',
  1384. GUEST_CHECKOUT_ERROR = 'GUEST_CHECKOUT_ERROR',
  1385. INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR',
  1386. INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR',
  1387. INSUFFICIENT_STOCK_ON_HAND_ERROR = 'INSUFFICIENT_STOCK_ON_HAND_ERROR',
  1388. INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR',
  1389. INVALID_FULFILLMENT_HANDLER_ERROR = 'INVALID_FULFILLMENT_HANDLER_ERROR',
  1390. ITEMS_ALREADY_FULFILLED_ERROR = 'ITEMS_ALREADY_FULFILLED_ERROR',
  1391. LANGUAGE_NOT_AVAILABLE_ERROR = 'LANGUAGE_NOT_AVAILABLE_ERROR',
  1392. MANUAL_PAYMENT_STATE_ERROR = 'MANUAL_PAYMENT_STATE_ERROR',
  1393. MIME_TYPE_ERROR = 'MIME_TYPE_ERROR',
  1394. MISSING_CONDITIONS_ERROR = 'MISSING_CONDITIONS_ERROR',
  1395. MULTIPLE_ORDER_ERROR = 'MULTIPLE_ORDER_ERROR',
  1396. NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR',
  1397. NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR',
  1398. NOTHING_TO_REFUND_ERROR = 'NOTHING_TO_REFUND_ERROR',
  1399. NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR',
  1400. NO_CHANGES_SPECIFIED_ERROR = 'NO_CHANGES_SPECIFIED_ERROR',
  1401. ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR',
  1402. ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR',
  1403. ORDER_MODIFICATION_STATE_ERROR = 'ORDER_MODIFICATION_STATE_ERROR',
  1404. ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR',
  1405. PAYMENT_METHOD_MISSING_ERROR = 'PAYMENT_METHOD_MISSING_ERROR',
  1406. PAYMENT_ORDER_MISMATCH_ERROR = 'PAYMENT_ORDER_MISMATCH_ERROR',
  1407. PAYMENT_STATE_TRANSITION_ERROR = 'PAYMENT_STATE_TRANSITION_ERROR',
  1408. PRODUCT_OPTION_IN_USE_ERROR = 'PRODUCT_OPTION_IN_USE_ERROR',
  1409. QUANTITY_TOO_GREAT_ERROR = 'QUANTITY_TOO_GREAT_ERROR',
  1410. REFUND_ORDER_STATE_ERROR = 'REFUND_ORDER_STATE_ERROR',
  1411. REFUND_PAYMENT_ID_MISSING_ERROR = 'REFUND_PAYMENT_ID_MISSING_ERROR',
  1412. REFUND_STATE_TRANSITION_ERROR = 'REFUND_STATE_TRANSITION_ERROR',
  1413. SETTLE_PAYMENT_ERROR = 'SETTLE_PAYMENT_ERROR',
  1414. UNKNOWN_ERROR = 'UNKNOWN_ERROR'
  1415. }
  1416. export type ErrorResult = {
  1417. errorCode: ErrorCode;
  1418. message: Scalars['String'];
  1419. };
  1420. export type Facet = Node & {
  1421. __typename?: 'Facet';
  1422. code: Scalars['String'];
  1423. createdAt: Scalars['DateTime'];
  1424. customFields?: Maybe<Scalars['JSON']>;
  1425. id: Scalars['ID'];
  1426. isPrivate: Scalars['Boolean'];
  1427. languageCode: LanguageCode;
  1428. name: Scalars['String'];
  1429. translations: Array<FacetTranslation>;
  1430. updatedAt: Scalars['DateTime'];
  1431. values: Array<FacetValue>;
  1432. };
  1433. export type FacetFilterParameter = {
  1434. code?: InputMaybe<StringOperators>;
  1435. createdAt?: InputMaybe<DateOperators>;
  1436. id?: InputMaybe<IdOperators>;
  1437. isPrivate?: InputMaybe<BooleanOperators>;
  1438. languageCode?: InputMaybe<StringOperators>;
  1439. name?: InputMaybe<StringOperators>;
  1440. updatedAt?: InputMaybe<DateOperators>;
  1441. };
  1442. export type FacetInUseError = ErrorResult & {
  1443. __typename?: 'FacetInUseError';
  1444. errorCode: ErrorCode;
  1445. facetCode: Scalars['String'];
  1446. message: Scalars['String'];
  1447. productCount: Scalars['Int'];
  1448. variantCount: Scalars['Int'];
  1449. };
  1450. export type FacetList = PaginatedList & {
  1451. __typename?: 'FacetList';
  1452. items: Array<Facet>;
  1453. totalItems: Scalars['Int'];
  1454. };
  1455. export type FacetListOptions = {
  1456. /** Allows the results to be filtered */
  1457. filter?: InputMaybe<FacetFilterParameter>;
  1458. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  1459. filterOperator?: InputMaybe<LogicalOperator>;
  1460. /** Skips the first n results, for use in pagination */
  1461. skip?: InputMaybe<Scalars['Int']>;
  1462. /** Specifies which properties to sort the results by */
  1463. sort?: InputMaybe<FacetSortParameter>;
  1464. /** Takes n results, for use in pagination */
  1465. take?: InputMaybe<Scalars['Int']>;
  1466. };
  1467. export type FacetSortParameter = {
  1468. code?: InputMaybe<SortOrder>;
  1469. createdAt?: InputMaybe<SortOrder>;
  1470. id?: InputMaybe<SortOrder>;
  1471. name?: InputMaybe<SortOrder>;
  1472. updatedAt?: InputMaybe<SortOrder>;
  1473. };
  1474. export type FacetTranslation = {
  1475. __typename?: 'FacetTranslation';
  1476. createdAt: Scalars['DateTime'];
  1477. id: Scalars['ID'];
  1478. languageCode: LanguageCode;
  1479. name: Scalars['String'];
  1480. updatedAt: Scalars['DateTime'];
  1481. };
  1482. export type FacetTranslationInput = {
  1483. customFields?: InputMaybe<Scalars['JSON']>;
  1484. id?: InputMaybe<Scalars['ID']>;
  1485. languageCode: LanguageCode;
  1486. name?: InputMaybe<Scalars['String']>;
  1487. };
  1488. export type FacetValue = Node & {
  1489. __typename?: 'FacetValue';
  1490. code: Scalars['String'];
  1491. createdAt: Scalars['DateTime'];
  1492. customFields?: Maybe<Scalars['JSON']>;
  1493. facet: Facet;
  1494. id: Scalars['ID'];
  1495. languageCode: LanguageCode;
  1496. name: Scalars['String'];
  1497. translations: Array<FacetValueTranslation>;
  1498. updatedAt: Scalars['DateTime'];
  1499. };
  1500. /**
  1501. * Used to construct boolean expressions for filtering search results
  1502. * by FacetValue ID. Examples:
  1503. *
  1504. * * ID=1 OR ID=2: `{ facetValueFilters: [{ or: [1,2] }] }`
  1505. * * ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`
  1506. * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
  1507. */
  1508. export type FacetValueFilterInput = {
  1509. and?: InputMaybe<Scalars['ID']>;
  1510. or?: InputMaybe<Array<Scalars['ID']>>;
  1511. };
  1512. export type FacetValueFilterParameter = {
  1513. code?: InputMaybe<StringOperators>;
  1514. createdAt?: InputMaybe<DateOperators>;
  1515. id?: InputMaybe<IdOperators>;
  1516. languageCode?: InputMaybe<StringOperators>;
  1517. name?: InputMaybe<StringOperators>;
  1518. updatedAt?: InputMaybe<DateOperators>;
  1519. };
  1520. export type FacetValueList = PaginatedList & {
  1521. __typename?: 'FacetValueList';
  1522. items: Array<FacetValue>;
  1523. totalItems: Scalars['Int'];
  1524. };
  1525. export type FacetValueListOptions = {
  1526. /** Allows the results to be filtered */
  1527. filter?: InputMaybe<FacetValueFilterParameter>;
  1528. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  1529. filterOperator?: InputMaybe<LogicalOperator>;
  1530. /** Skips the first n results, for use in pagination */
  1531. skip?: InputMaybe<Scalars['Int']>;
  1532. /** Specifies which properties to sort the results by */
  1533. sort?: InputMaybe<FacetValueSortParameter>;
  1534. /** Takes n results, for use in pagination */
  1535. take?: InputMaybe<Scalars['Int']>;
  1536. };
  1537. /**
  1538. * Which FacetValues are present in the products returned
  1539. * by the search, and in what quantity.
  1540. */
  1541. export type FacetValueResult = {
  1542. __typename?: 'FacetValueResult';
  1543. count: Scalars['Int'];
  1544. facetValue: FacetValue;
  1545. };
  1546. export type FacetValueSortParameter = {
  1547. code?: InputMaybe<SortOrder>;
  1548. createdAt?: InputMaybe<SortOrder>;
  1549. id?: InputMaybe<SortOrder>;
  1550. name?: InputMaybe<SortOrder>;
  1551. updatedAt?: InputMaybe<SortOrder>;
  1552. };
  1553. export type FacetValueTranslation = {
  1554. __typename?: 'FacetValueTranslation';
  1555. createdAt: Scalars['DateTime'];
  1556. id: Scalars['ID'];
  1557. languageCode: LanguageCode;
  1558. name: Scalars['String'];
  1559. updatedAt: Scalars['DateTime'];
  1560. };
  1561. export type FacetValueTranslationInput = {
  1562. customFields?: InputMaybe<Scalars['JSON']>;
  1563. id?: InputMaybe<Scalars['ID']>;
  1564. languageCode: LanguageCode;
  1565. name?: InputMaybe<Scalars['String']>;
  1566. };
  1567. export type FloatCustomFieldConfig = CustomField & {
  1568. __typename?: 'FloatCustomFieldConfig';
  1569. description?: Maybe<Array<LocalizedString>>;
  1570. internal?: Maybe<Scalars['Boolean']>;
  1571. label?: Maybe<Array<LocalizedString>>;
  1572. list: Scalars['Boolean'];
  1573. max?: Maybe<Scalars['Float']>;
  1574. min?: Maybe<Scalars['Float']>;
  1575. name: Scalars['String'];
  1576. nullable?: Maybe<Scalars['Boolean']>;
  1577. readonly?: Maybe<Scalars['Boolean']>;
  1578. step?: Maybe<Scalars['Float']>;
  1579. type: Scalars['String'];
  1580. ui?: Maybe<Scalars['JSON']>;
  1581. };
  1582. export type FulfillOrderInput = {
  1583. handler: ConfigurableOperationInput;
  1584. lines: Array<OrderLineInput>;
  1585. };
  1586. export type Fulfillment = Node & {
  1587. __typename?: 'Fulfillment';
  1588. createdAt: Scalars['DateTime'];
  1589. customFields?: Maybe<Scalars['JSON']>;
  1590. id: Scalars['ID'];
  1591. lines: Array<FulfillmentLine>;
  1592. method: Scalars['String'];
  1593. nextStates: Array<Scalars['String']>;
  1594. state: Scalars['String'];
  1595. /** @deprecated Use the `lines` field instead */
  1596. summary: Array<FulfillmentLine>;
  1597. trackingCode?: Maybe<Scalars['String']>;
  1598. updatedAt: Scalars['DateTime'];
  1599. };
  1600. export type FulfillmentLine = {
  1601. __typename?: 'FulfillmentLine';
  1602. fulfillment: Fulfillment;
  1603. fulfillmentId: Scalars['ID'];
  1604. orderLine: OrderLine;
  1605. orderLineId: Scalars['ID'];
  1606. quantity: Scalars['Int'];
  1607. };
  1608. /** Returned when there is an error in transitioning the Fulfillment state */
  1609. export type FulfillmentStateTransitionError = ErrorResult & {
  1610. __typename?: 'FulfillmentStateTransitionError';
  1611. errorCode: ErrorCode;
  1612. fromState: Scalars['String'];
  1613. message: Scalars['String'];
  1614. toState: Scalars['String'];
  1615. transitionError: Scalars['String'];
  1616. };
  1617. export enum GlobalFlag {
  1618. FALSE = 'FALSE',
  1619. INHERIT = 'INHERIT',
  1620. TRUE = 'TRUE'
  1621. }
  1622. export type GlobalSettings = {
  1623. __typename?: 'GlobalSettings';
  1624. availableLanguages: Array<LanguageCode>;
  1625. createdAt: Scalars['DateTime'];
  1626. customFields?: Maybe<Scalars['JSON']>;
  1627. id: Scalars['ID'];
  1628. outOfStockThreshold: Scalars['Int'];
  1629. serverConfig: ServerConfig;
  1630. trackInventory: Scalars['Boolean'];
  1631. updatedAt: Scalars['DateTime'];
  1632. };
  1633. /** Returned when attempting to set the Customer on a guest checkout when the configured GuestCheckoutStrategy does not allow it. */
  1634. export type GuestCheckoutError = ErrorResult & {
  1635. __typename?: 'GuestCheckoutError';
  1636. errorCode: ErrorCode;
  1637. errorDetail: Scalars['String'];
  1638. message: Scalars['String'];
  1639. };
  1640. export type HistoryEntry = Node & {
  1641. __typename?: 'HistoryEntry';
  1642. administrator?: Maybe<Administrator>;
  1643. createdAt: Scalars['DateTime'];
  1644. data: Scalars['JSON'];
  1645. id: Scalars['ID'];
  1646. isPublic: Scalars['Boolean'];
  1647. type: HistoryEntryType;
  1648. updatedAt: Scalars['DateTime'];
  1649. };
  1650. export type HistoryEntryFilterParameter = {
  1651. createdAt?: InputMaybe<DateOperators>;
  1652. id?: InputMaybe<IdOperators>;
  1653. isPublic?: InputMaybe<BooleanOperators>;
  1654. type?: InputMaybe<StringOperators>;
  1655. updatedAt?: InputMaybe<DateOperators>;
  1656. };
  1657. export type HistoryEntryList = PaginatedList & {
  1658. __typename?: 'HistoryEntryList';
  1659. items: Array<HistoryEntry>;
  1660. totalItems: Scalars['Int'];
  1661. };
  1662. export type HistoryEntryListOptions = {
  1663. /** Allows the results to be filtered */
  1664. filter?: InputMaybe<HistoryEntryFilterParameter>;
  1665. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  1666. filterOperator?: InputMaybe<LogicalOperator>;
  1667. /** Skips the first n results, for use in pagination */
  1668. skip?: InputMaybe<Scalars['Int']>;
  1669. /** Specifies which properties to sort the results by */
  1670. sort?: InputMaybe<HistoryEntrySortParameter>;
  1671. /** Takes n results, for use in pagination */
  1672. take?: InputMaybe<Scalars['Int']>;
  1673. };
  1674. export type HistoryEntrySortParameter = {
  1675. createdAt?: InputMaybe<SortOrder>;
  1676. id?: InputMaybe<SortOrder>;
  1677. updatedAt?: InputMaybe<SortOrder>;
  1678. };
  1679. export enum HistoryEntryType {
  1680. CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP',
  1681. CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED',
  1682. CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED',
  1683. CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED',
  1684. CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED',
  1685. CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED',
  1686. CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED',
  1687. CUSTOMER_NOTE = 'CUSTOMER_NOTE',
  1688. CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED',
  1689. CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED',
  1690. CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED',
  1691. CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED',
  1692. CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP',
  1693. CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED',
  1694. ORDER_CANCELLATION = 'ORDER_CANCELLATION',
  1695. ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED',
  1696. ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED',
  1697. ORDER_FULFILLMENT = 'ORDER_FULFILLMENT',
  1698. ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION',
  1699. ORDER_MODIFIED = 'ORDER_MODIFIED',
  1700. ORDER_NOTE = 'ORDER_NOTE',
  1701. ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION',
  1702. ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION',
  1703. ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION'
  1704. }
  1705. /** Operators for filtering on a list of ID fields */
  1706. export type IdListOperators = {
  1707. inList: Scalars['ID'];
  1708. };
  1709. /** Operators for filtering on an ID field */
  1710. export type IdOperators = {
  1711. eq?: InputMaybe<Scalars['String']>;
  1712. in?: InputMaybe<Array<Scalars['String']>>;
  1713. isNull?: InputMaybe<Scalars['Boolean']>;
  1714. notEq?: InputMaybe<Scalars['String']>;
  1715. notIn?: InputMaybe<Array<Scalars['String']>>;
  1716. };
  1717. export type ImportInfo = {
  1718. __typename?: 'ImportInfo';
  1719. errors?: Maybe<Array<Scalars['String']>>;
  1720. imported: Scalars['Int'];
  1721. processed: Scalars['Int'];
  1722. };
  1723. /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */
  1724. export type IneligibleShippingMethodError = ErrorResult & {
  1725. __typename?: 'IneligibleShippingMethodError';
  1726. errorCode: ErrorCode;
  1727. message: Scalars['String'];
  1728. };
  1729. /** Returned when attempting to add more items to the Order than are available */
  1730. export type InsufficientStockError = ErrorResult & {
  1731. __typename?: 'InsufficientStockError';
  1732. errorCode: ErrorCode;
  1733. message: Scalars['String'];
  1734. order: Order;
  1735. quantityAvailable: Scalars['Int'];
  1736. };
  1737. /**
  1738. * Returned if attempting to create a Fulfillment when there is insufficient
  1739. * stockOnHand of a ProductVariant to satisfy the requested quantity.
  1740. */
  1741. export type InsufficientStockOnHandError = ErrorResult & {
  1742. __typename?: 'InsufficientStockOnHandError';
  1743. errorCode: ErrorCode;
  1744. message: Scalars['String'];
  1745. productVariantId: Scalars['ID'];
  1746. productVariantName: Scalars['String'];
  1747. stockOnHand: Scalars['Int'];
  1748. };
  1749. export type IntCustomFieldConfig = CustomField & {
  1750. __typename?: 'IntCustomFieldConfig';
  1751. description?: Maybe<Array<LocalizedString>>;
  1752. internal?: Maybe<Scalars['Boolean']>;
  1753. label?: Maybe<Array<LocalizedString>>;
  1754. list: Scalars['Boolean'];
  1755. max?: Maybe<Scalars['Int']>;
  1756. min?: Maybe<Scalars['Int']>;
  1757. name: Scalars['String'];
  1758. nullable?: Maybe<Scalars['Boolean']>;
  1759. readonly?: Maybe<Scalars['Boolean']>;
  1760. step?: Maybe<Scalars['Int']>;
  1761. type: Scalars['String'];
  1762. ui?: Maybe<Scalars['JSON']>;
  1763. };
  1764. /** Returned if the user authentication credentials are not valid */
  1765. export type InvalidCredentialsError = ErrorResult & {
  1766. __typename?: 'InvalidCredentialsError';
  1767. authenticationError: Scalars['String'];
  1768. errorCode: ErrorCode;
  1769. message: Scalars['String'];
  1770. };
  1771. /** Returned if the specified FulfillmentHandler code is not valid */
  1772. export type InvalidFulfillmentHandlerError = ErrorResult & {
  1773. __typename?: 'InvalidFulfillmentHandlerError';
  1774. errorCode: ErrorCode;
  1775. message: Scalars['String'];
  1776. };
  1777. /** Returned if the specified items are already part of a Fulfillment */
  1778. export type ItemsAlreadyFulfilledError = ErrorResult & {
  1779. __typename?: 'ItemsAlreadyFulfilledError';
  1780. errorCode: ErrorCode;
  1781. message: Scalars['String'];
  1782. };
  1783. export type Job = Node & {
  1784. __typename?: 'Job';
  1785. attempts: Scalars['Int'];
  1786. createdAt: Scalars['DateTime'];
  1787. data?: Maybe<Scalars['JSON']>;
  1788. duration: Scalars['Int'];
  1789. error?: Maybe<Scalars['JSON']>;
  1790. id: Scalars['ID'];
  1791. isSettled: Scalars['Boolean'];
  1792. progress: Scalars['Float'];
  1793. queueName: Scalars['String'];
  1794. result?: Maybe<Scalars['JSON']>;
  1795. retries: Scalars['Int'];
  1796. settledAt?: Maybe<Scalars['DateTime']>;
  1797. startedAt?: Maybe<Scalars['DateTime']>;
  1798. state: JobState;
  1799. };
  1800. export type JobBufferSize = {
  1801. __typename?: 'JobBufferSize';
  1802. bufferId: Scalars['String'];
  1803. size: Scalars['Int'];
  1804. };
  1805. export type JobFilterParameter = {
  1806. attempts?: InputMaybe<NumberOperators>;
  1807. createdAt?: InputMaybe<DateOperators>;
  1808. duration?: InputMaybe<NumberOperators>;
  1809. id?: InputMaybe<IdOperators>;
  1810. isSettled?: InputMaybe<BooleanOperators>;
  1811. progress?: InputMaybe<NumberOperators>;
  1812. queueName?: InputMaybe<StringOperators>;
  1813. retries?: InputMaybe<NumberOperators>;
  1814. settledAt?: InputMaybe<DateOperators>;
  1815. startedAt?: InputMaybe<DateOperators>;
  1816. state?: InputMaybe<StringOperators>;
  1817. };
  1818. export type JobList = PaginatedList & {
  1819. __typename?: 'JobList';
  1820. items: Array<Job>;
  1821. totalItems: Scalars['Int'];
  1822. };
  1823. export type JobListOptions = {
  1824. /** Allows the results to be filtered */
  1825. filter?: InputMaybe<JobFilterParameter>;
  1826. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  1827. filterOperator?: InputMaybe<LogicalOperator>;
  1828. /** Skips the first n results, for use in pagination */
  1829. skip?: InputMaybe<Scalars['Int']>;
  1830. /** Specifies which properties to sort the results by */
  1831. sort?: InputMaybe<JobSortParameter>;
  1832. /** Takes n results, for use in pagination */
  1833. take?: InputMaybe<Scalars['Int']>;
  1834. };
  1835. export type JobQueue = {
  1836. __typename?: 'JobQueue';
  1837. name: Scalars['String'];
  1838. running: Scalars['Boolean'];
  1839. };
  1840. export type JobSortParameter = {
  1841. attempts?: InputMaybe<SortOrder>;
  1842. createdAt?: InputMaybe<SortOrder>;
  1843. duration?: InputMaybe<SortOrder>;
  1844. id?: InputMaybe<SortOrder>;
  1845. progress?: InputMaybe<SortOrder>;
  1846. queueName?: InputMaybe<SortOrder>;
  1847. retries?: InputMaybe<SortOrder>;
  1848. settledAt?: InputMaybe<SortOrder>;
  1849. startedAt?: InputMaybe<SortOrder>;
  1850. };
  1851. /**
  1852. * @description
  1853. * The state of a Job in the JobQueue
  1854. *
  1855. * @docsCategory common
  1856. */
  1857. export enum JobState {
  1858. CANCELLED = 'CANCELLED',
  1859. COMPLETED = 'COMPLETED',
  1860. FAILED = 'FAILED',
  1861. PENDING = 'PENDING',
  1862. RETRYING = 'RETRYING',
  1863. RUNNING = 'RUNNING'
  1864. }
  1865. /**
  1866. * @description
  1867. * Languages in the form of a ISO 639-1 language code with optional
  1868. * region or script modifier (e.g. de_AT). The selection available is based
  1869. * on the [Unicode CLDR summary list](https://unicode-org.github.io/cldr-staging/charts/37/summary/root.html)
  1870. * and includes the major spoken languages of the world and any widely-used variants.
  1871. *
  1872. * @docsCategory common
  1873. */
  1874. export enum LanguageCode {
  1875. /** Afrikaans */
  1876. af = 'af',
  1877. /** Akan */
  1878. ak = 'ak',
  1879. /** Amharic */
  1880. am = 'am',
  1881. /** Arabic */
  1882. ar = 'ar',
  1883. /** Assamese */
  1884. as = 'as',
  1885. /** Azerbaijani */
  1886. az = 'az',
  1887. /** Belarusian */
  1888. be = 'be',
  1889. /** Bulgarian */
  1890. bg = 'bg',
  1891. /** Bambara */
  1892. bm = 'bm',
  1893. /** Bangla */
  1894. bn = 'bn',
  1895. /** Tibetan */
  1896. bo = 'bo',
  1897. /** Breton */
  1898. br = 'br',
  1899. /** Bosnian */
  1900. bs = 'bs',
  1901. /** Catalan */
  1902. ca = 'ca',
  1903. /** Chechen */
  1904. ce = 'ce',
  1905. /** Corsican */
  1906. co = 'co',
  1907. /** Czech */
  1908. cs = 'cs',
  1909. /** Church Slavic */
  1910. cu = 'cu',
  1911. /** Welsh */
  1912. cy = 'cy',
  1913. /** Danish */
  1914. da = 'da',
  1915. /** German */
  1916. de = 'de',
  1917. /** Austrian German */
  1918. de_AT = 'de_AT',
  1919. /** Swiss High German */
  1920. de_CH = 'de_CH',
  1921. /** Dzongkha */
  1922. dz = 'dz',
  1923. /** Ewe */
  1924. ee = 'ee',
  1925. /** Greek */
  1926. el = 'el',
  1927. /** English */
  1928. en = 'en',
  1929. /** Australian English */
  1930. en_AU = 'en_AU',
  1931. /** Canadian English */
  1932. en_CA = 'en_CA',
  1933. /** British English */
  1934. en_GB = 'en_GB',
  1935. /** American English */
  1936. en_US = 'en_US',
  1937. /** Esperanto */
  1938. eo = 'eo',
  1939. /** Spanish */
  1940. es = 'es',
  1941. /** European Spanish */
  1942. es_ES = 'es_ES',
  1943. /** Mexican Spanish */
  1944. es_MX = 'es_MX',
  1945. /** Estonian */
  1946. et = 'et',
  1947. /** Basque */
  1948. eu = 'eu',
  1949. /** Persian */
  1950. fa = 'fa',
  1951. /** Dari */
  1952. fa_AF = 'fa_AF',
  1953. /** Fulah */
  1954. ff = 'ff',
  1955. /** Finnish */
  1956. fi = 'fi',
  1957. /** Faroese */
  1958. fo = 'fo',
  1959. /** French */
  1960. fr = 'fr',
  1961. /** Canadian French */
  1962. fr_CA = 'fr_CA',
  1963. /** Swiss French */
  1964. fr_CH = 'fr_CH',
  1965. /** Western Frisian */
  1966. fy = 'fy',
  1967. /** Irish */
  1968. ga = 'ga',
  1969. /** Scottish Gaelic */
  1970. gd = 'gd',
  1971. /** Galician */
  1972. gl = 'gl',
  1973. /** Gujarati */
  1974. gu = 'gu',
  1975. /** Manx */
  1976. gv = 'gv',
  1977. /** Hausa */
  1978. ha = 'ha',
  1979. /** Hebrew */
  1980. he = 'he',
  1981. /** Hindi */
  1982. hi = 'hi',
  1983. /** Croatian */
  1984. hr = 'hr',
  1985. /** Haitian Creole */
  1986. ht = 'ht',
  1987. /** Hungarian */
  1988. hu = 'hu',
  1989. /** Armenian */
  1990. hy = 'hy',
  1991. /** Interlingua */
  1992. ia = 'ia',
  1993. /** Indonesian */
  1994. id = 'id',
  1995. /** Igbo */
  1996. ig = 'ig',
  1997. /** Sichuan Yi */
  1998. ii = 'ii',
  1999. /** Icelandic */
  2000. is = 'is',
  2001. /** Italian */
  2002. it = 'it',
  2003. /** Japanese */
  2004. ja = 'ja',
  2005. /** Javanese */
  2006. jv = 'jv',
  2007. /** Georgian */
  2008. ka = 'ka',
  2009. /** Kikuyu */
  2010. ki = 'ki',
  2011. /** Kazakh */
  2012. kk = 'kk',
  2013. /** Kalaallisut */
  2014. kl = 'kl',
  2015. /** Khmer */
  2016. km = 'km',
  2017. /** Kannada */
  2018. kn = 'kn',
  2019. /** Korean */
  2020. ko = 'ko',
  2021. /** Kashmiri */
  2022. ks = 'ks',
  2023. /** Kurdish */
  2024. ku = 'ku',
  2025. /** Cornish */
  2026. kw = 'kw',
  2027. /** Kyrgyz */
  2028. ky = 'ky',
  2029. /** Latin */
  2030. la = 'la',
  2031. /** Luxembourgish */
  2032. lb = 'lb',
  2033. /** Ganda */
  2034. lg = 'lg',
  2035. /** Lingala */
  2036. ln = 'ln',
  2037. /** Lao */
  2038. lo = 'lo',
  2039. /** Lithuanian */
  2040. lt = 'lt',
  2041. /** Luba-Katanga */
  2042. lu = 'lu',
  2043. /** Latvian */
  2044. lv = 'lv',
  2045. /** Malagasy */
  2046. mg = 'mg',
  2047. /** Maori */
  2048. mi = 'mi',
  2049. /** Macedonian */
  2050. mk = 'mk',
  2051. /** Malayalam */
  2052. ml = 'ml',
  2053. /** Mongolian */
  2054. mn = 'mn',
  2055. /** Marathi */
  2056. mr = 'mr',
  2057. /** Malay */
  2058. ms = 'ms',
  2059. /** Maltese */
  2060. mt = 'mt',
  2061. /** Burmese */
  2062. my = 'my',
  2063. /** Norwegian Bokmål */
  2064. nb = 'nb',
  2065. /** North Ndebele */
  2066. nd = 'nd',
  2067. /** Nepali */
  2068. ne = 'ne',
  2069. /** Dutch */
  2070. nl = 'nl',
  2071. /** Flemish */
  2072. nl_BE = 'nl_BE',
  2073. /** Norwegian Nynorsk */
  2074. nn = 'nn',
  2075. /** Nyanja */
  2076. ny = 'ny',
  2077. /** Oromo */
  2078. om = 'om',
  2079. /** Odia */
  2080. or = 'or',
  2081. /** Ossetic */
  2082. os = 'os',
  2083. /** Punjabi */
  2084. pa = 'pa',
  2085. /** Polish */
  2086. pl = 'pl',
  2087. /** Pashto */
  2088. ps = 'ps',
  2089. /** Portuguese */
  2090. pt = 'pt',
  2091. /** Brazilian Portuguese */
  2092. pt_BR = 'pt_BR',
  2093. /** European Portuguese */
  2094. pt_PT = 'pt_PT',
  2095. /** Quechua */
  2096. qu = 'qu',
  2097. /** Romansh */
  2098. rm = 'rm',
  2099. /** Rundi */
  2100. rn = 'rn',
  2101. /** Romanian */
  2102. ro = 'ro',
  2103. /** Moldavian */
  2104. ro_MD = 'ro_MD',
  2105. /** Russian */
  2106. ru = 'ru',
  2107. /** Kinyarwanda */
  2108. rw = 'rw',
  2109. /** Sanskrit */
  2110. sa = 'sa',
  2111. /** Sindhi */
  2112. sd = 'sd',
  2113. /** Northern Sami */
  2114. se = 'se',
  2115. /** Sango */
  2116. sg = 'sg',
  2117. /** Sinhala */
  2118. si = 'si',
  2119. /** Slovak */
  2120. sk = 'sk',
  2121. /** Slovenian */
  2122. sl = 'sl',
  2123. /** Samoan */
  2124. sm = 'sm',
  2125. /** Shona */
  2126. sn = 'sn',
  2127. /** Somali */
  2128. so = 'so',
  2129. /** Albanian */
  2130. sq = 'sq',
  2131. /** Serbian */
  2132. sr = 'sr',
  2133. /** Southern Sotho */
  2134. st = 'st',
  2135. /** Sundanese */
  2136. su = 'su',
  2137. /** Swedish */
  2138. sv = 'sv',
  2139. /** Swahili */
  2140. sw = 'sw',
  2141. /** Congo Swahili */
  2142. sw_CD = 'sw_CD',
  2143. /** Tamil */
  2144. ta = 'ta',
  2145. /** Telugu */
  2146. te = 'te',
  2147. /** Tajik */
  2148. tg = 'tg',
  2149. /** Thai */
  2150. th = 'th',
  2151. /** Tigrinya */
  2152. ti = 'ti',
  2153. /** Turkmen */
  2154. tk = 'tk',
  2155. /** Tongan */
  2156. to = 'to',
  2157. /** Turkish */
  2158. tr = 'tr',
  2159. /** Tatar */
  2160. tt = 'tt',
  2161. /** Uyghur */
  2162. ug = 'ug',
  2163. /** Ukrainian */
  2164. uk = 'uk',
  2165. /** Urdu */
  2166. ur = 'ur',
  2167. /** Uzbek */
  2168. uz = 'uz',
  2169. /** Vietnamese */
  2170. vi = 'vi',
  2171. /** Volapük */
  2172. vo = 'vo',
  2173. /** Wolof */
  2174. wo = 'wo',
  2175. /** Xhosa */
  2176. xh = 'xh',
  2177. /** Yiddish */
  2178. yi = 'yi',
  2179. /** Yoruba */
  2180. yo = 'yo',
  2181. /** Chinese */
  2182. zh = 'zh',
  2183. /** Simplified Chinese */
  2184. zh_Hans = 'zh_Hans',
  2185. /** Traditional Chinese */
  2186. zh_Hant = 'zh_Hant',
  2187. /** Zulu */
  2188. zu = 'zu'
  2189. }
  2190. /** Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings */
  2191. export type LanguageNotAvailableError = ErrorResult & {
  2192. __typename?: 'LanguageNotAvailableError';
  2193. errorCode: ErrorCode;
  2194. languageCode: Scalars['String'];
  2195. message: Scalars['String'];
  2196. };
  2197. export type LocaleStringCustomFieldConfig = CustomField & {
  2198. __typename?: 'LocaleStringCustomFieldConfig';
  2199. description?: Maybe<Array<LocalizedString>>;
  2200. internal?: Maybe<Scalars['Boolean']>;
  2201. label?: Maybe<Array<LocalizedString>>;
  2202. length?: Maybe<Scalars['Int']>;
  2203. list: Scalars['Boolean'];
  2204. name: Scalars['String'];
  2205. nullable?: Maybe<Scalars['Boolean']>;
  2206. pattern?: Maybe<Scalars['String']>;
  2207. readonly?: Maybe<Scalars['Boolean']>;
  2208. type: Scalars['String'];
  2209. ui?: Maybe<Scalars['JSON']>;
  2210. };
  2211. export type LocaleTextCustomFieldConfig = CustomField & {
  2212. __typename?: 'LocaleTextCustomFieldConfig';
  2213. description?: Maybe<Array<LocalizedString>>;
  2214. internal?: Maybe<Scalars['Boolean']>;
  2215. label?: Maybe<Array<LocalizedString>>;
  2216. list: Scalars['Boolean'];
  2217. name: Scalars['String'];
  2218. nullable?: Maybe<Scalars['Boolean']>;
  2219. readonly?: Maybe<Scalars['Boolean']>;
  2220. type: Scalars['String'];
  2221. ui?: Maybe<Scalars['JSON']>;
  2222. };
  2223. export type LocalizedString = {
  2224. __typename?: 'LocalizedString';
  2225. languageCode: LanguageCode;
  2226. value: Scalars['String'];
  2227. };
  2228. export enum LogicalOperator {
  2229. AND = 'AND',
  2230. OR = 'OR'
  2231. }
  2232. export type ManualPaymentInput = {
  2233. metadata?: InputMaybe<Scalars['JSON']>;
  2234. method: Scalars['String'];
  2235. orderId: Scalars['ID'];
  2236. transactionId?: InputMaybe<Scalars['String']>;
  2237. };
  2238. /**
  2239. * Returned when a call to addManualPaymentToOrder is made but the Order
  2240. * is not in the required state.
  2241. */
  2242. export type ManualPaymentStateError = ErrorResult & {
  2243. __typename?: 'ManualPaymentStateError';
  2244. errorCode: ErrorCode;
  2245. message: Scalars['String'];
  2246. };
  2247. export enum MetricInterval {
  2248. Daily = 'Daily'
  2249. }
  2250. export type MetricSummary = {
  2251. __typename?: 'MetricSummary';
  2252. entries: Array<MetricSummaryEntry>;
  2253. interval: MetricInterval;
  2254. title: Scalars['String'];
  2255. type: MetricType;
  2256. };
  2257. export type MetricSummaryEntry = {
  2258. __typename?: 'MetricSummaryEntry';
  2259. label: Scalars['String'];
  2260. value: Scalars['Float'];
  2261. };
  2262. export type MetricSummaryInput = {
  2263. interval: MetricInterval;
  2264. refresh?: InputMaybe<Scalars['Boolean']>;
  2265. types: Array<MetricType>;
  2266. };
  2267. export enum MetricType {
  2268. AverageOrderValue = 'AverageOrderValue',
  2269. OrderCount = 'OrderCount',
  2270. OrderTotal = 'OrderTotal'
  2271. }
  2272. export type MimeTypeError = ErrorResult & {
  2273. __typename?: 'MimeTypeError';
  2274. errorCode: ErrorCode;
  2275. fileName: Scalars['String'];
  2276. message: Scalars['String'];
  2277. mimeType: Scalars['String'];
  2278. };
  2279. /** Returned if a PromotionCondition has neither a couponCode nor any conditions set */
  2280. export type MissingConditionsError = ErrorResult & {
  2281. __typename?: 'MissingConditionsError';
  2282. errorCode: ErrorCode;
  2283. message: Scalars['String'];
  2284. };
  2285. export type ModifyOrderInput = {
  2286. addItems?: InputMaybe<Array<AddItemInput>>;
  2287. adjustOrderLines?: InputMaybe<Array<OrderLineInput>>;
  2288. couponCodes?: InputMaybe<Array<Scalars['String']>>;
  2289. dryRun: Scalars['Boolean'];
  2290. note?: InputMaybe<Scalars['String']>;
  2291. options?: InputMaybe<ModifyOrderOptions>;
  2292. orderId: Scalars['ID'];
  2293. refund?: InputMaybe<AdministratorRefundInput>;
  2294. surcharges?: InputMaybe<Array<SurchargeInput>>;
  2295. updateBillingAddress?: InputMaybe<UpdateOrderAddressInput>;
  2296. updateShippingAddress?: InputMaybe<UpdateOrderAddressInput>;
  2297. };
  2298. export type ModifyOrderOptions = {
  2299. freezePromotions?: InputMaybe<Scalars['Boolean']>;
  2300. recalculateShipping?: InputMaybe<Scalars['Boolean']>;
  2301. };
  2302. export type ModifyOrderResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | InsufficientStockError | NegativeQuantityError | NoChangesSpecifiedError | Order | OrderLimitError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError;
  2303. export type MoveCollectionInput = {
  2304. collectionId: Scalars['ID'];
  2305. index: Scalars['Int'];
  2306. parentId: Scalars['ID'];
  2307. };
  2308. /** Returned if an operation has specified OrderLines from multiple Orders */
  2309. export type MultipleOrderError = ErrorResult & {
  2310. __typename?: 'MultipleOrderError';
  2311. errorCode: ErrorCode;
  2312. message: Scalars['String'];
  2313. };
  2314. export type Mutation = {
  2315. __typename?: 'Mutation';
  2316. /** Add Customers to a CustomerGroup */
  2317. addCustomersToGroup: CustomerGroup;
  2318. addFulfillmentToOrder: AddFulfillmentToOrderResult;
  2319. /** Adds an item to the draft Order. */
  2320. addItemToDraftOrder: UpdateOrderItemsResult;
  2321. /**
  2322. * Used to manually create a new Payment against an Order.
  2323. * This can be used by an Administrator when an Order is in the ArrangingPayment state.
  2324. *
  2325. * It is also used when a completed Order
  2326. * has been modified (using `modifyOrder`) and the price has increased. The extra payment
  2327. * can then be manually arranged by the administrator, and the details used to create a new
  2328. * Payment.
  2329. */
  2330. addManualPaymentToOrder: AddManualPaymentToOrderResult;
  2331. /** Add members to a Zone */
  2332. addMembersToZone: Zone;
  2333. addNoteToCustomer: Customer;
  2334. addNoteToOrder: Order;
  2335. /** Add an OptionGroup to a Product */
  2336. addOptionGroupToProduct: Product;
  2337. /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */
  2338. adjustDraftOrderLine: UpdateOrderItemsResult;
  2339. /** Applies the given coupon code to the draft Order */
  2340. applyCouponCodeToDraftOrder: ApplyCouponCodeResult;
  2341. /** Assign assets to channel */
  2342. assignAssetsToChannel: Array<Asset>;
  2343. /** Assigns Collections to the specified Channel */
  2344. assignCollectionsToChannel: Array<Collection>;
  2345. /** Assigns Facets to the specified Channel */
  2346. assignFacetsToChannel: Array<Facet>;
  2347. /** Assigns ProductVariants to the specified Channel */
  2348. assignProductVariantsToChannel: Array<ProductVariant>;
  2349. /** Assigns all ProductVariants of Product to the specified Channel */
  2350. assignProductsToChannel: Array<Product>;
  2351. /** Assigns Promotions to the specified Channel */
  2352. assignPromotionsToChannel: Array<Promotion>;
  2353. /** Assign a Role to an Administrator */
  2354. assignRoleToAdministrator: Administrator;
  2355. /** Authenticates the user using a named authentication strategy */
  2356. authenticate: AuthenticationResult;
  2357. cancelJob: Job;
  2358. cancelOrder: CancelOrderResult;
  2359. cancelPayment: CancelPaymentResult;
  2360. /** Create a new Administrator */
  2361. createAdministrator: Administrator;
  2362. /** Create a new Asset */
  2363. createAssets: Array<CreateAssetResult>;
  2364. /** Create a new Channel */
  2365. createChannel: CreateChannelResult;
  2366. /** Create a new Collection */
  2367. createCollection: Collection;
  2368. /** Create a new Country */
  2369. createCountry: Country;
  2370. /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */
  2371. createCustomer: CreateCustomerResult;
  2372. /** Create a new Address and associate it with the Customer specified by customerId */
  2373. createCustomerAddress: Address;
  2374. /** Create a new CustomerGroup */
  2375. createCustomerGroup: CustomerGroup;
  2376. /** Creates a draft Order */
  2377. createDraftOrder: Order;
  2378. /** Create a new Facet */
  2379. createFacet: Facet;
  2380. /** Create one or more FacetValues */
  2381. createFacetValues: Array<FacetValue>;
  2382. /** Create existing PaymentMethod */
  2383. createPaymentMethod: PaymentMethod;
  2384. /** Create a new Product */
  2385. createProduct: Product;
  2386. /** Create a new ProductOption within a ProductOptionGroup */
  2387. createProductOption: ProductOption;
  2388. /** Create a new ProductOptionGroup */
  2389. createProductOptionGroup: ProductOptionGroup;
  2390. /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */
  2391. createProductVariants: Array<Maybe<ProductVariant>>;
  2392. createPromotion: CreatePromotionResult;
  2393. /** Create a new Province */
  2394. createProvince: Province;
  2395. /** Create a new Role */
  2396. createRole: Role;
  2397. /** Create a new Seller */
  2398. createSeller: Seller;
  2399. /** Create a new ShippingMethod */
  2400. createShippingMethod: ShippingMethod;
  2401. createStockLocation: StockLocation;
  2402. /** Create a new Tag */
  2403. createTag: Tag;
  2404. /** Create a new TaxCategory */
  2405. createTaxCategory: TaxCategory;
  2406. /** Create a new TaxRate */
  2407. createTaxRate: TaxRate;
  2408. /** Create a new Zone */
  2409. createZone: Zone;
  2410. /** Delete an Administrator */
  2411. deleteAdministrator: DeletionResponse;
  2412. /** Delete multiple Administrators */
  2413. deleteAdministrators: Array<DeletionResponse>;
  2414. /** Delete an Asset */
  2415. deleteAsset: DeletionResponse;
  2416. /** Delete multiple Assets */
  2417. deleteAssets: DeletionResponse;
  2418. /** Delete a Channel */
  2419. deleteChannel: DeletionResponse;
  2420. /** Delete multiple Channels */
  2421. deleteChannels: Array<DeletionResponse>;
  2422. /** Delete a Collection and all of its descendants */
  2423. deleteCollection: DeletionResponse;
  2424. /** Delete multiple Collections and all of their descendants */
  2425. deleteCollections: Array<DeletionResponse>;
  2426. /** Delete multiple Countries */
  2427. deleteCountries: Array<DeletionResponse>;
  2428. /** Delete a Country */
  2429. deleteCountry: DeletionResponse;
  2430. /** Delete a Customer */
  2431. deleteCustomer: DeletionResponse;
  2432. /** Update an existing Address */
  2433. deleteCustomerAddress: Success;
  2434. /** Delete a CustomerGroup */
  2435. deleteCustomerGroup: DeletionResponse;
  2436. /** Delete multiple CustomerGroups */
  2437. deleteCustomerGroups: Array<DeletionResponse>;
  2438. deleteCustomerNote: DeletionResponse;
  2439. /** Deletes Customers */
  2440. deleteCustomers: Array<DeletionResponse>;
  2441. /** Deletes a draft Order */
  2442. deleteDraftOrder: DeletionResponse;
  2443. /** Delete an existing Facet */
  2444. deleteFacet: DeletionResponse;
  2445. /** Delete one or more FacetValues */
  2446. deleteFacetValues: Array<DeletionResponse>;
  2447. /** Delete multiple existing Facets */
  2448. deleteFacets: Array<DeletionResponse>;
  2449. deleteOrderNote: DeletionResponse;
  2450. /** Delete a PaymentMethod */
  2451. deletePaymentMethod: DeletionResponse;
  2452. /** Delete multiple PaymentMethods */
  2453. deletePaymentMethods: Array<DeletionResponse>;
  2454. /** Delete a Product */
  2455. deleteProduct: DeletionResponse;
  2456. /** Delete a ProductOption */
  2457. deleteProductOption: DeletionResponse;
  2458. /** Delete a ProductVariant */
  2459. deleteProductVariant: DeletionResponse;
  2460. /** Delete multiple ProductVariants */
  2461. deleteProductVariants: Array<DeletionResponse>;
  2462. /** Delete multiple Products */
  2463. deleteProducts: Array<DeletionResponse>;
  2464. deletePromotion: DeletionResponse;
  2465. deletePromotions: Array<DeletionResponse>;
  2466. /** Delete a Province */
  2467. deleteProvince: DeletionResponse;
  2468. /** Delete an existing Role */
  2469. deleteRole: DeletionResponse;
  2470. /** Delete multiple Roles */
  2471. deleteRoles: Array<DeletionResponse>;
  2472. /** Delete a Seller */
  2473. deleteSeller: DeletionResponse;
  2474. /** Delete multiple Sellers */
  2475. deleteSellers: Array<DeletionResponse>;
  2476. /** Delete a ShippingMethod */
  2477. deleteShippingMethod: DeletionResponse;
  2478. /** Delete multiple ShippingMethods */
  2479. deleteShippingMethods: Array<DeletionResponse>;
  2480. deleteStockLocation: DeletionResponse;
  2481. /** Delete an existing Tag */
  2482. deleteTag: DeletionResponse;
  2483. /** Deletes multiple TaxCategories */
  2484. deleteTaxCategories: Array<DeletionResponse>;
  2485. /** Deletes a TaxCategory */
  2486. deleteTaxCategory: DeletionResponse;
  2487. /** Delete a TaxRate */
  2488. deleteTaxRate: DeletionResponse;
  2489. /** Delete multiple TaxRates */
  2490. deleteTaxRates: Array<DeletionResponse>;
  2491. /** Delete a Zone */
  2492. deleteZone: DeletionResponse;
  2493. /** Delete a Zone */
  2494. deleteZones: Array<DeletionResponse>;
  2495. flushBufferedJobs: Success;
  2496. importProducts?: Maybe<ImportInfo>;
  2497. /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */
  2498. login: NativeAuthenticationResult;
  2499. logout: Success;
  2500. /**
  2501. * Allows an Order to be modified after it has been completed by the Customer. The Order must first
  2502. * be in the `Modifying` state.
  2503. */
  2504. modifyOrder: ModifyOrderResult;
  2505. /** Move a Collection to a different parent or index */
  2506. moveCollection: Collection;
  2507. refundOrder: RefundOrderResult;
  2508. reindex: Job;
  2509. /** Removes Collections from the specified Channel */
  2510. removeCollectionsFromChannel: Array<Collection>;
  2511. /** Removes the given coupon code from the draft Order */
  2512. removeCouponCodeFromDraftOrder?: Maybe<Order>;
  2513. /** Remove Customers from a CustomerGroup */
  2514. removeCustomersFromGroup: CustomerGroup;
  2515. /** Remove an OrderLine from the draft Order */
  2516. removeDraftOrderLine: RemoveOrderItemsResult;
  2517. /** Removes Facets from the specified Channel */
  2518. removeFacetsFromChannel: Array<RemoveFacetFromChannelResult>;
  2519. /** Remove members from a Zone */
  2520. removeMembersFromZone: Zone;
  2521. /**
  2522. * Remove an OptionGroup from a Product. If the OptionGroup is in use by any ProductVariants
  2523. * the mutation will return a ProductOptionInUseError, and the OptionGroup will not be removed.
  2524. * Setting the `force` argument to `true` will override this and remove the OptionGroup anyway,
  2525. * as well as removing any of the group's options from the Product's ProductVariants.
  2526. */
  2527. removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult;
  2528. /** Removes ProductVariants from the specified Channel */
  2529. removeProductVariantsFromChannel: Array<ProductVariant>;
  2530. /** Removes all ProductVariants of Product from the specified Channel */
  2531. removeProductsFromChannel: Array<Product>;
  2532. /** Removes Promotions from the specified Channel */
  2533. removePromotionsFromChannel: Array<Promotion>;
  2534. /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */
  2535. removeSettledJobs: Scalars['Int'];
  2536. runPendingSearchIndexUpdates: Success;
  2537. setCustomerForDraftOrder: SetCustomerForDraftOrderResult;
  2538. /** Sets the billing address for a draft Order */
  2539. setDraftOrderBillingAddress: Order;
  2540. /** Allows any custom fields to be set for the active order */
  2541. setDraftOrderCustomFields: Order;
  2542. /** Sets the shipping address for a draft Order */
  2543. setDraftOrderShippingAddress: Order;
  2544. /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */
  2545. setDraftOrderShippingMethod: SetOrderShippingMethodResult;
  2546. setOrderCustomFields?: Maybe<Order>;
  2547. settlePayment: SettlePaymentResult;
  2548. settleRefund: SettleRefundResult;
  2549. transitionFulfillmentToState: TransitionFulfillmentToStateResult;
  2550. transitionOrderToState?: Maybe<TransitionOrderToStateResult>;
  2551. transitionPaymentToState: TransitionPaymentToStateResult;
  2552. /** Update the active (currently logged-in) Administrator */
  2553. updateActiveAdministrator: Administrator;
  2554. /** Update an existing Administrator */
  2555. updateAdministrator: Administrator;
  2556. /** Update an existing Asset */
  2557. updateAsset: Asset;
  2558. /** Update an existing Channel */
  2559. updateChannel: UpdateChannelResult;
  2560. /** Update an existing Collection */
  2561. updateCollection: Collection;
  2562. /** Update an existing Country */
  2563. updateCountry: Country;
  2564. /** Update an existing Customer */
  2565. updateCustomer: UpdateCustomerResult;
  2566. /** Update an existing Address */
  2567. updateCustomerAddress: Address;
  2568. /** Update an existing CustomerGroup */
  2569. updateCustomerGroup: CustomerGroup;
  2570. updateCustomerNote: HistoryEntry;
  2571. /** Update an existing Facet */
  2572. updateFacet: Facet;
  2573. /** Update one or more FacetValues */
  2574. updateFacetValues: Array<FacetValue>;
  2575. updateGlobalSettings: UpdateGlobalSettingsResult;
  2576. updateOrderNote: HistoryEntry;
  2577. /** Update an existing PaymentMethod */
  2578. updatePaymentMethod: PaymentMethod;
  2579. /** Update an existing Product */
  2580. updateProduct: Product;
  2581. /** Create a new ProductOption within a ProductOptionGroup */
  2582. updateProductOption: ProductOption;
  2583. /** Update an existing ProductOptionGroup */
  2584. updateProductOptionGroup: ProductOptionGroup;
  2585. /** Update existing ProductVariants */
  2586. updateProductVariants: Array<Maybe<ProductVariant>>;
  2587. /** Update multiple existing Products */
  2588. updateProducts: Array<Product>;
  2589. updatePromotion: UpdatePromotionResult;
  2590. /** Update an existing Province */
  2591. updateProvince: Province;
  2592. /** Update an existing Role */
  2593. updateRole: Role;
  2594. /** Update an existing Seller */
  2595. updateSeller: Seller;
  2596. /** Update an existing ShippingMethod */
  2597. updateShippingMethod: ShippingMethod;
  2598. updateStockLocation: StockLocation;
  2599. /** Update an existing Tag */
  2600. updateTag: Tag;
  2601. /** Update an existing TaxCategory */
  2602. updateTaxCategory: TaxCategory;
  2603. /** Update an existing TaxRate */
  2604. updateTaxRate: TaxRate;
  2605. /** Update an existing Zone */
  2606. updateZone: Zone;
  2607. };
  2608. export type MutationAddCustomersToGroupArgs = {
  2609. customerGroupId: Scalars['ID'];
  2610. customerIds: Array<Scalars['ID']>;
  2611. };
  2612. export type MutationAddFulfillmentToOrderArgs = {
  2613. input: FulfillOrderInput;
  2614. };
  2615. export type MutationAddItemToDraftOrderArgs = {
  2616. input: AddItemToDraftOrderInput;
  2617. orderId: Scalars['ID'];
  2618. };
  2619. export type MutationAddManualPaymentToOrderArgs = {
  2620. input: ManualPaymentInput;
  2621. };
  2622. export type MutationAddMembersToZoneArgs = {
  2623. memberIds: Array<Scalars['ID']>;
  2624. zoneId: Scalars['ID'];
  2625. };
  2626. export type MutationAddNoteToCustomerArgs = {
  2627. input: AddNoteToCustomerInput;
  2628. };
  2629. export type MutationAddNoteToOrderArgs = {
  2630. input: AddNoteToOrderInput;
  2631. };
  2632. export type MutationAddOptionGroupToProductArgs = {
  2633. optionGroupId: Scalars['ID'];
  2634. productId: Scalars['ID'];
  2635. };
  2636. export type MutationAdjustDraftOrderLineArgs = {
  2637. input: AdjustDraftOrderLineInput;
  2638. orderId: Scalars['ID'];
  2639. };
  2640. export type MutationApplyCouponCodeToDraftOrderArgs = {
  2641. couponCode: Scalars['String'];
  2642. orderId: Scalars['ID'];
  2643. };
  2644. export type MutationAssignAssetsToChannelArgs = {
  2645. input: AssignAssetsToChannelInput;
  2646. };
  2647. export type MutationAssignCollectionsToChannelArgs = {
  2648. input: AssignCollectionsToChannelInput;
  2649. };
  2650. export type MutationAssignFacetsToChannelArgs = {
  2651. input: AssignFacetsToChannelInput;
  2652. };
  2653. export type MutationAssignProductVariantsToChannelArgs = {
  2654. input: AssignProductVariantsToChannelInput;
  2655. };
  2656. export type MutationAssignProductsToChannelArgs = {
  2657. input: AssignProductsToChannelInput;
  2658. };
  2659. export type MutationAssignPromotionsToChannelArgs = {
  2660. input: AssignPromotionsToChannelInput;
  2661. };
  2662. export type MutationAssignRoleToAdministratorArgs = {
  2663. administratorId: Scalars['ID'];
  2664. roleId: Scalars['ID'];
  2665. };
  2666. export type MutationAuthenticateArgs = {
  2667. input: AuthenticationInput;
  2668. rememberMe?: InputMaybe<Scalars['Boolean']>;
  2669. };
  2670. export type MutationCancelJobArgs = {
  2671. jobId: Scalars['ID'];
  2672. };
  2673. export type MutationCancelOrderArgs = {
  2674. input: CancelOrderInput;
  2675. };
  2676. export type MutationCancelPaymentArgs = {
  2677. id: Scalars['ID'];
  2678. };
  2679. export type MutationCreateAdministratorArgs = {
  2680. input: CreateAdministratorInput;
  2681. };
  2682. export type MutationCreateAssetsArgs = {
  2683. input: Array<CreateAssetInput>;
  2684. };
  2685. export type MutationCreateChannelArgs = {
  2686. input: CreateChannelInput;
  2687. };
  2688. export type MutationCreateCollectionArgs = {
  2689. input: CreateCollectionInput;
  2690. };
  2691. export type MutationCreateCountryArgs = {
  2692. input: CreateCountryInput;
  2693. };
  2694. export type MutationCreateCustomerArgs = {
  2695. input: CreateCustomerInput;
  2696. password?: InputMaybe<Scalars['String']>;
  2697. };
  2698. export type MutationCreateCustomerAddressArgs = {
  2699. customerId: Scalars['ID'];
  2700. input: CreateAddressInput;
  2701. };
  2702. export type MutationCreateCustomerGroupArgs = {
  2703. input: CreateCustomerGroupInput;
  2704. };
  2705. export type MutationCreateFacetArgs = {
  2706. input: CreateFacetInput;
  2707. };
  2708. export type MutationCreateFacetValuesArgs = {
  2709. input: Array<CreateFacetValueInput>;
  2710. };
  2711. export type MutationCreatePaymentMethodArgs = {
  2712. input: CreatePaymentMethodInput;
  2713. };
  2714. export type MutationCreateProductArgs = {
  2715. input: CreateProductInput;
  2716. };
  2717. export type MutationCreateProductOptionArgs = {
  2718. input: CreateProductOptionInput;
  2719. };
  2720. export type MutationCreateProductOptionGroupArgs = {
  2721. input: CreateProductOptionGroupInput;
  2722. };
  2723. export type MutationCreateProductVariantsArgs = {
  2724. input: Array<CreateProductVariantInput>;
  2725. };
  2726. export type MutationCreatePromotionArgs = {
  2727. input: CreatePromotionInput;
  2728. };
  2729. export type MutationCreateProvinceArgs = {
  2730. input: CreateProvinceInput;
  2731. };
  2732. export type MutationCreateRoleArgs = {
  2733. input: CreateRoleInput;
  2734. };
  2735. export type MutationCreateSellerArgs = {
  2736. input: CreateSellerInput;
  2737. };
  2738. export type MutationCreateShippingMethodArgs = {
  2739. input: CreateShippingMethodInput;
  2740. };
  2741. export type MutationCreateStockLocationArgs = {
  2742. input: CreateStockLocationInput;
  2743. };
  2744. export type MutationCreateTagArgs = {
  2745. input: CreateTagInput;
  2746. };
  2747. export type MutationCreateTaxCategoryArgs = {
  2748. input: CreateTaxCategoryInput;
  2749. };
  2750. export type MutationCreateTaxRateArgs = {
  2751. input: CreateTaxRateInput;
  2752. };
  2753. export type MutationCreateZoneArgs = {
  2754. input: CreateZoneInput;
  2755. };
  2756. export type MutationDeleteAdministratorArgs = {
  2757. id: Scalars['ID'];
  2758. };
  2759. export type MutationDeleteAdministratorsArgs = {
  2760. ids: Array<Scalars['ID']>;
  2761. };
  2762. export type MutationDeleteAssetArgs = {
  2763. input: DeleteAssetInput;
  2764. };
  2765. export type MutationDeleteAssetsArgs = {
  2766. input: DeleteAssetsInput;
  2767. };
  2768. export type MutationDeleteChannelArgs = {
  2769. id: Scalars['ID'];
  2770. };
  2771. export type MutationDeleteChannelsArgs = {
  2772. ids: Array<Scalars['ID']>;
  2773. };
  2774. export type MutationDeleteCollectionArgs = {
  2775. id: Scalars['ID'];
  2776. };
  2777. export type MutationDeleteCollectionsArgs = {
  2778. ids: Array<Scalars['ID']>;
  2779. };
  2780. export type MutationDeleteCountriesArgs = {
  2781. ids: Array<Scalars['ID']>;
  2782. };
  2783. export type MutationDeleteCountryArgs = {
  2784. id: Scalars['ID'];
  2785. };
  2786. export type MutationDeleteCustomerArgs = {
  2787. id: Scalars['ID'];
  2788. };
  2789. export type MutationDeleteCustomerAddressArgs = {
  2790. id: Scalars['ID'];
  2791. };
  2792. export type MutationDeleteCustomerGroupArgs = {
  2793. id: Scalars['ID'];
  2794. };
  2795. export type MutationDeleteCustomerGroupsArgs = {
  2796. ids: Array<Scalars['ID']>;
  2797. };
  2798. export type MutationDeleteCustomerNoteArgs = {
  2799. id: Scalars['ID'];
  2800. };
  2801. export type MutationDeleteCustomersArgs = {
  2802. ids: Array<Scalars['ID']>;
  2803. };
  2804. export type MutationDeleteDraftOrderArgs = {
  2805. orderId: Scalars['ID'];
  2806. };
  2807. export type MutationDeleteFacetArgs = {
  2808. force?: InputMaybe<Scalars['Boolean']>;
  2809. id: Scalars['ID'];
  2810. };
  2811. export type MutationDeleteFacetValuesArgs = {
  2812. force?: InputMaybe<Scalars['Boolean']>;
  2813. ids: Array<Scalars['ID']>;
  2814. };
  2815. export type MutationDeleteFacetsArgs = {
  2816. force?: InputMaybe<Scalars['Boolean']>;
  2817. ids: Array<Scalars['ID']>;
  2818. };
  2819. export type MutationDeleteOrderNoteArgs = {
  2820. id: Scalars['ID'];
  2821. };
  2822. export type MutationDeletePaymentMethodArgs = {
  2823. force?: InputMaybe<Scalars['Boolean']>;
  2824. id: Scalars['ID'];
  2825. };
  2826. export type MutationDeletePaymentMethodsArgs = {
  2827. force?: InputMaybe<Scalars['Boolean']>;
  2828. ids: Array<Scalars['ID']>;
  2829. };
  2830. export type MutationDeleteProductArgs = {
  2831. id: Scalars['ID'];
  2832. };
  2833. export type MutationDeleteProductOptionArgs = {
  2834. id: Scalars['ID'];
  2835. };
  2836. export type MutationDeleteProductVariantArgs = {
  2837. id: Scalars['ID'];
  2838. };
  2839. export type MutationDeleteProductVariantsArgs = {
  2840. ids: Array<Scalars['ID']>;
  2841. };
  2842. export type MutationDeleteProductsArgs = {
  2843. ids: Array<Scalars['ID']>;
  2844. };
  2845. export type MutationDeletePromotionArgs = {
  2846. id: Scalars['ID'];
  2847. };
  2848. export type MutationDeletePromotionsArgs = {
  2849. ids: Array<Scalars['ID']>;
  2850. };
  2851. export type MutationDeleteProvinceArgs = {
  2852. id: Scalars['ID'];
  2853. };
  2854. export type MutationDeleteRoleArgs = {
  2855. id: Scalars['ID'];
  2856. };
  2857. export type MutationDeleteRolesArgs = {
  2858. ids: Array<Scalars['ID']>;
  2859. };
  2860. export type MutationDeleteSellerArgs = {
  2861. id: Scalars['ID'];
  2862. };
  2863. export type MutationDeleteSellersArgs = {
  2864. ids: Array<Scalars['ID']>;
  2865. };
  2866. export type MutationDeleteShippingMethodArgs = {
  2867. id: Scalars['ID'];
  2868. };
  2869. export type MutationDeleteShippingMethodsArgs = {
  2870. ids: Array<Scalars['ID']>;
  2871. };
  2872. export type MutationDeleteStockLocationArgs = {
  2873. input: DeleteStockLocationInput;
  2874. };
  2875. export type MutationDeleteTagArgs = {
  2876. id: Scalars['ID'];
  2877. };
  2878. export type MutationDeleteTaxCategoriesArgs = {
  2879. ids: Array<Scalars['ID']>;
  2880. };
  2881. export type MutationDeleteTaxCategoryArgs = {
  2882. id: Scalars['ID'];
  2883. };
  2884. export type MutationDeleteTaxRateArgs = {
  2885. id: Scalars['ID'];
  2886. };
  2887. export type MutationDeleteTaxRatesArgs = {
  2888. ids: Array<Scalars['ID']>;
  2889. };
  2890. export type MutationDeleteZoneArgs = {
  2891. id: Scalars['ID'];
  2892. };
  2893. export type MutationDeleteZonesArgs = {
  2894. ids: Array<Scalars['ID']>;
  2895. };
  2896. export type MutationFlushBufferedJobsArgs = {
  2897. bufferIds?: InputMaybe<Array<Scalars['String']>>;
  2898. };
  2899. export type MutationImportProductsArgs = {
  2900. csvFile: Scalars['Upload'];
  2901. };
  2902. export type MutationLoginArgs = {
  2903. password: Scalars['String'];
  2904. rememberMe?: InputMaybe<Scalars['Boolean']>;
  2905. username: Scalars['String'];
  2906. };
  2907. export type MutationModifyOrderArgs = {
  2908. input: ModifyOrderInput;
  2909. };
  2910. export type MutationMoveCollectionArgs = {
  2911. input: MoveCollectionInput;
  2912. };
  2913. export type MutationRefundOrderArgs = {
  2914. input: RefundOrderInput;
  2915. };
  2916. export type MutationRemoveCollectionsFromChannelArgs = {
  2917. input: RemoveCollectionsFromChannelInput;
  2918. };
  2919. export type MutationRemoveCouponCodeFromDraftOrderArgs = {
  2920. couponCode: Scalars['String'];
  2921. orderId: Scalars['ID'];
  2922. };
  2923. export type MutationRemoveCustomersFromGroupArgs = {
  2924. customerGroupId: Scalars['ID'];
  2925. customerIds: Array<Scalars['ID']>;
  2926. };
  2927. export type MutationRemoveDraftOrderLineArgs = {
  2928. orderId: Scalars['ID'];
  2929. orderLineId: Scalars['ID'];
  2930. };
  2931. export type MutationRemoveFacetsFromChannelArgs = {
  2932. input: RemoveFacetsFromChannelInput;
  2933. };
  2934. export type MutationRemoveMembersFromZoneArgs = {
  2935. memberIds: Array<Scalars['ID']>;
  2936. zoneId: Scalars['ID'];
  2937. };
  2938. export type MutationRemoveOptionGroupFromProductArgs = {
  2939. force?: InputMaybe<Scalars['Boolean']>;
  2940. optionGroupId: Scalars['ID'];
  2941. productId: Scalars['ID'];
  2942. };
  2943. export type MutationRemoveProductVariantsFromChannelArgs = {
  2944. input: RemoveProductVariantsFromChannelInput;
  2945. };
  2946. export type MutationRemoveProductsFromChannelArgs = {
  2947. input: RemoveProductsFromChannelInput;
  2948. };
  2949. export type MutationRemovePromotionsFromChannelArgs = {
  2950. input: RemovePromotionsFromChannelInput;
  2951. };
  2952. export type MutationRemoveSettledJobsArgs = {
  2953. olderThan?: InputMaybe<Scalars['DateTime']>;
  2954. queueNames?: InputMaybe<Array<Scalars['String']>>;
  2955. };
  2956. export type MutationSetCustomerForDraftOrderArgs = {
  2957. customerId?: InputMaybe<Scalars['ID']>;
  2958. input?: InputMaybe<CreateCustomerInput>;
  2959. orderId: Scalars['ID'];
  2960. };
  2961. export type MutationSetDraftOrderBillingAddressArgs = {
  2962. input: CreateAddressInput;
  2963. orderId: Scalars['ID'];
  2964. };
  2965. export type MutationSetDraftOrderCustomFieldsArgs = {
  2966. input: UpdateOrderInput;
  2967. orderId: Scalars['ID'];
  2968. };
  2969. export type MutationSetDraftOrderShippingAddressArgs = {
  2970. input: CreateAddressInput;
  2971. orderId: Scalars['ID'];
  2972. };
  2973. export type MutationSetDraftOrderShippingMethodArgs = {
  2974. orderId: Scalars['ID'];
  2975. shippingMethodId: Scalars['ID'];
  2976. };
  2977. export type MutationSetOrderCustomFieldsArgs = {
  2978. input: UpdateOrderInput;
  2979. };
  2980. export type MutationSettlePaymentArgs = {
  2981. id: Scalars['ID'];
  2982. };
  2983. export type MutationSettleRefundArgs = {
  2984. input: SettleRefundInput;
  2985. };
  2986. export type MutationTransitionFulfillmentToStateArgs = {
  2987. id: Scalars['ID'];
  2988. state: Scalars['String'];
  2989. };
  2990. export type MutationTransitionOrderToStateArgs = {
  2991. id: Scalars['ID'];
  2992. state: Scalars['String'];
  2993. };
  2994. export type MutationTransitionPaymentToStateArgs = {
  2995. id: Scalars['ID'];
  2996. state: Scalars['String'];
  2997. };
  2998. export type MutationUpdateActiveAdministratorArgs = {
  2999. input: UpdateActiveAdministratorInput;
  3000. };
  3001. export type MutationUpdateAdministratorArgs = {
  3002. input: UpdateAdministratorInput;
  3003. };
  3004. export type MutationUpdateAssetArgs = {
  3005. input: UpdateAssetInput;
  3006. };
  3007. export type MutationUpdateChannelArgs = {
  3008. input: UpdateChannelInput;
  3009. };
  3010. export type MutationUpdateCollectionArgs = {
  3011. input: UpdateCollectionInput;
  3012. };
  3013. export type MutationUpdateCountryArgs = {
  3014. input: UpdateCountryInput;
  3015. };
  3016. export type MutationUpdateCustomerArgs = {
  3017. input: UpdateCustomerInput;
  3018. };
  3019. export type MutationUpdateCustomerAddressArgs = {
  3020. input: UpdateAddressInput;
  3021. };
  3022. export type MutationUpdateCustomerGroupArgs = {
  3023. input: UpdateCustomerGroupInput;
  3024. };
  3025. export type MutationUpdateCustomerNoteArgs = {
  3026. input: UpdateCustomerNoteInput;
  3027. };
  3028. export type MutationUpdateFacetArgs = {
  3029. input: UpdateFacetInput;
  3030. };
  3031. export type MutationUpdateFacetValuesArgs = {
  3032. input: Array<UpdateFacetValueInput>;
  3033. };
  3034. export type MutationUpdateGlobalSettingsArgs = {
  3035. input: UpdateGlobalSettingsInput;
  3036. };
  3037. export type MutationUpdateOrderNoteArgs = {
  3038. input: UpdateOrderNoteInput;
  3039. };
  3040. export type MutationUpdatePaymentMethodArgs = {
  3041. input: UpdatePaymentMethodInput;
  3042. };
  3043. export type MutationUpdateProductArgs = {
  3044. input: UpdateProductInput;
  3045. };
  3046. export type MutationUpdateProductOptionArgs = {
  3047. input: UpdateProductOptionInput;
  3048. };
  3049. export type MutationUpdateProductOptionGroupArgs = {
  3050. input: UpdateProductOptionGroupInput;
  3051. };
  3052. export type MutationUpdateProductVariantsArgs = {
  3053. input: Array<UpdateProductVariantInput>;
  3054. };
  3055. export type MutationUpdateProductsArgs = {
  3056. input: Array<UpdateProductInput>;
  3057. };
  3058. export type MutationUpdatePromotionArgs = {
  3059. input: UpdatePromotionInput;
  3060. };
  3061. export type MutationUpdateProvinceArgs = {
  3062. input: UpdateProvinceInput;
  3063. };
  3064. export type MutationUpdateRoleArgs = {
  3065. input: UpdateRoleInput;
  3066. };
  3067. export type MutationUpdateSellerArgs = {
  3068. input: UpdateSellerInput;
  3069. };
  3070. export type MutationUpdateShippingMethodArgs = {
  3071. input: UpdateShippingMethodInput;
  3072. };
  3073. export type MutationUpdateStockLocationArgs = {
  3074. input: UpdateStockLocationInput;
  3075. };
  3076. export type MutationUpdateTagArgs = {
  3077. input: UpdateTagInput;
  3078. };
  3079. export type MutationUpdateTaxCategoryArgs = {
  3080. input: UpdateTaxCategoryInput;
  3081. };
  3082. export type MutationUpdateTaxRateArgs = {
  3083. input: UpdateTaxRateInput;
  3084. };
  3085. export type MutationUpdateZoneArgs = {
  3086. input: UpdateZoneInput;
  3087. };
  3088. export type NativeAuthInput = {
  3089. password: Scalars['String'];
  3090. username: Scalars['String'];
  3091. };
  3092. /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */
  3093. export type NativeAuthStrategyError = ErrorResult & {
  3094. __typename?: 'NativeAuthStrategyError';
  3095. errorCode: ErrorCode;
  3096. message: Scalars['String'];
  3097. };
  3098. export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError;
  3099. /** Returned when attempting to set a negative OrderLine quantity. */
  3100. export type NegativeQuantityError = ErrorResult & {
  3101. __typename?: 'NegativeQuantityError';
  3102. errorCode: ErrorCode;
  3103. message: Scalars['String'];
  3104. };
  3105. /**
  3106. * Returned when invoking a mutation which depends on there being an active Order on the
  3107. * current session.
  3108. */
  3109. export type NoActiveOrderError = ErrorResult & {
  3110. __typename?: 'NoActiveOrderError';
  3111. errorCode: ErrorCode;
  3112. message: Scalars['String'];
  3113. };
  3114. /** Returned when a call to modifyOrder fails to specify any changes */
  3115. export type NoChangesSpecifiedError = ErrorResult & {
  3116. __typename?: 'NoChangesSpecifiedError';
  3117. errorCode: ErrorCode;
  3118. message: Scalars['String'];
  3119. };
  3120. export type Node = {
  3121. id: Scalars['ID'];
  3122. };
  3123. /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */
  3124. export type NothingToRefundError = ErrorResult & {
  3125. __typename?: 'NothingToRefundError';
  3126. errorCode: ErrorCode;
  3127. message: Scalars['String'];
  3128. };
  3129. /** Operators for filtering on a list of Number fields */
  3130. export type NumberListOperators = {
  3131. inList: Scalars['Float'];
  3132. };
  3133. /** Operators for filtering on a Int or Float field */
  3134. export type NumberOperators = {
  3135. between?: InputMaybe<NumberRange>;
  3136. eq?: InputMaybe<Scalars['Float']>;
  3137. gt?: InputMaybe<Scalars['Float']>;
  3138. gte?: InputMaybe<Scalars['Float']>;
  3139. isNull?: InputMaybe<Scalars['Boolean']>;
  3140. lt?: InputMaybe<Scalars['Float']>;
  3141. lte?: InputMaybe<Scalars['Float']>;
  3142. };
  3143. export type NumberRange = {
  3144. end: Scalars['Float'];
  3145. start: Scalars['Float'];
  3146. };
  3147. export type Order = Node & {
  3148. __typename?: 'Order';
  3149. /** An order is active as long as the payment process has not been completed */
  3150. active: Scalars['Boolean'];
  3151. aggregateOrder?: Maybe<Order>;
  3152. aggregateOrderId?: Maybe<Scalars['ID']>;
  3153. billingAddress?: Maybe<OrderAddress>;
  3154. channels: Array<Channel>;
  3155. /** A unique code for the Order */
  3156. code: Scalars['String'];
  3157. /** An array of all coupon codes applied to the Order */
  3158. couponCodes: Array<Scalars['String']>;
  3159. createdAt: Scalars['DateTime'];
  3160. currencyCode: CurrencyCode;
  3161. customFields?: Maybe<Scalars['JSON']>;
  3162. customer?: Maybe<Customer>;
  3163. discounts: Array<Discount>;
  3164. fulfillments?: Maybe<Array<Fulfillment>>;
  3165. history: HistoryEntryList;
  3166. id: Scalars['ID'];
  3167. lines: Array<OrderLine>;
  3168. modifications: Array<OrderModification>;
  3169. nextStates: Array<Scalars['String']>;
  3170. /**
  3171. * The date & time that the Order was placed, i.e. the Customer
  3172. * completed the checkout and the Order is no longer "active"
  3173. */
  3174. orderPlacedAt?: Maybe<Scalars['DateTime']>;
  3175. payments?: Maybe<Array<Payment>>;
  3176. /** Promotions applied to the order. Only gets populated after the payment process has completed. */
  3177. promotions: Array<Promotion>;
  3178. sellerOrders?: Maybe<Array<Order>>;
  3179. shipping: Scalars['Money'];
  3180. shippingAddress?: Maybe<OrderAddress>;
  3181. shippingLines: Array<ShippingLine>;
  3182. shippingWithTax: Scalars['Money'];
  3183. state: Scalars['String'];
  3184. /**
  3185. * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level
  3186. * discounts which have been prorated (proportionally distributed) amongst the OrderItems.
  3187. * To get a total of all OrderLines which does not account for prorated discounts, use the
  3188. * sum of `OrderLine.discountedLinePrice` values.
  3189. */
  3190. subTotal: Scalars['Money'];
  3191. /** Same as subTotal, but inclusive of tax */
  3192. subTotalWithTax: Scalars['Money'];
  3193. /**
  3194. * Surcharges are arbitrary modifications to the Order total which are neither
  3195. * ProductVariants nor discounts resulting from applied Promotions. For example,
  3196. * one-off discounts based on customer interaction, or surcharges based on payment
  3197. * methods.
  3198. */
  3199. surcharges: Array<Surcharge>;
  3200. /** A summary of the taxes being applied to this Order */
  3201. taxSummary: Array<OrderTaxSummary>;
  3202. /** Equal to subTotal plus shipping */
  3203. total: Scalars['Money'];
  3204. totalQuantity: Scalars['Int'];
  3205. /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */
  3206. totalWithTax: Scalars['Money'];
  3207. type: OrderType;
  3208. updatedAt: Scalars['DateTime'];
  3209. };
  3210. export type OrderHistoryArgs = {
  3211. options?: InputMaybe<HistoryEntryListOptions>;
  3212. };
  3213. export type OrderAddress = {
  3214. __typename?: 'OrderAddress';
  3215. city?: Maybe<Scalars['String']>;
  3216. company?: Maybe<Scalars['String']>;
  3217. country?: Maybe<Scalars['String']>;
  3218. countryCode?: Maybe<Scalars['String']>;
  3219. customFields?: Maybe<Scalars['JSON']>;
  3220. fullName?: Maybe<Scalars['String']>;
  3221. phoneNumber?: Maybe<Scalars['String']>;
  3222. postalCode?: Maybe<Scalars['String']>;
  3223. province?: Maybe<Scalars['String']>;
  3224. streetLine1?: Maybe<Scalars['String']>;
  3225. streetLine2?: Maybe<Scalars['String']>;
  3226. };
  3227. export type OrderFilterParameter = {
  3228. active?: InputMaybe<BooleanOperators>;
  3229. aggregateOrderId?: InputMaybe<IdOperators>;
  3230. code?: InputMaybe<StringOperators>;
  3231. createdAt?: InputMaybe<DateOperators>;
  3232. currencyCode?: InputMaybe<StringOperators>;
  3233. customerLastName?: InputMaybe<StringOperators>;
  3234. id?: InputMaybe<IdOperators>;
  3235. orderPlacedAt?: InputMaybe<DateOperators>;
  3236. shipping?: InputMaybe<NumberOperators>;
  3237. shippingWithTax?: InputMaybe<NumberOperators>;
  3238. state?: InputMaybe<StringOperators>;
  3239. subTotal?: InputMaybe<NumberOperators>;
  3240. subTotalWithTax?: InputMaybe<NumberOperators>;
  3241. total?: InputMaybe<NumberOperators>;
  3242. totalQuantity?: InputMaybe<NumberOperators>;
  3243. totalWithTax?: InputMaybe<NumberOperators>;
  3244. transactionId?: InputMaybe<StringOperators>;
  3245. type?: InputMaybe<StringOperators>;
  3246. updatedAt?: InputMaybe<DateOperators>;
  3247. };
  3248. export type OrderItem = Node & {
  3249. __typename?: 'OrderItem';
  3250. adjustments: Array<Adjustment>;
  3251. cancelled: Scalars['Boolean'];
  3252. createdAt: Scalars['DateTime'];
  3253. /**
  3254. * The price of a single unit including discounts, excluding tax.
  3255. *
  3256. * If Order-level discounts have been applied, this will not be the
  3257. * actual taxable unit price (see `proratedUnitPrice`), but is generally the
  3258. * correct price to display to customers to avoid confusion
  3259. * about the internal handling of distributed Order-level discounts.
  3260. */
  3261. discountedUnitPrice: Scalars['Money'];
  3262. /** The price of a single unit including discounts and tax */
  3263. discountedUnitPriceWithTax: Scalars['Money'];
  3264. fulfillment?: Maybe<Fulfillment>;
  3265. id: Scalars['ID'];
  3266. /**
  3267. * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
  3268. * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
  3269. * and refund calculations.
  3270. */
  3271. proratedUnitPrice: Scalars['Money'];
  3272. /** The proratedUnitPrice including tax */
  3273. proratedUnitPriceWithTax: Scalars['Money'];
  3274. refundId?: Maybe<Scalars['ID']>;
  3275. taxLines: Array<TaxLine>;
  3276. taxRate: Scalars['Float'];
  3277. /** The price of a single unit, excluding tax and discounts */
  3278. unitPrice: Scalars['Money'];
  3279. /** The price of a single unit, including tax but excluding discounts */
  3280. unitPriceWithTax: Scalars['Money'];
  3281. unitTax: Scalars['Money'];
  3282. updatedAt: Scalars['DateTime'];
  3283. };
  3284. /** Returned when the maximum order size limit has been reached. */
  3285. export type OrderLimitError = ErrorResult & {
  3286. __typename?: 'OrderLimitError';
  3287. errorCode: ErrorCode;
  3288. maxItems: Scalars['Int'];
  3289. message: Scalars['String'];
  3290. };
  3291. export type OrderLine = Node & {
  3292. __typename?: 'OrderLine';
  3293. createdAt: Scalars['DateTime'];
  3294. customFields?: Maybe<Scalars['JSON']>;
  3295. /** The price of the line including discounts, excluding tax */
  3296. discountedLinePrice: Scalars['Money'];
  3297. /** The price of the line including discounts and tax */
  3298. discountedLinePriceWithTax: Scalars['Money'];
  3299. /**
  3300. * The price of a single unit including discounts, excluding tax.
  3301. *
  3302. * If Order-level discounts have been applied, this will not be the
  3303. * actual taxable unit price (see `proratedUnitPrice`), but is generally the
  3304. * correct price to display to customers to avoid confusion
  3305. * about the internal handling of distributed Order-level discounts.
  3306. */
  3307. discountedUnitPrice: Scalars['Money'];
  3308. /** The price of a single unit including discounts and tax */
  3309. discountedUnitPriceWithTax: Scalars['Money'];
  3310. discounts: Array<Discount>;
  3311. featuredAsset?: Maybe<Asset>;
  3312. fulfillmentLines?: Maybe<Array<FulfillmentLine>>;
  3313. id: Scalars['ID'];
  3314. /** The total price of the line excluding tax and discounts. */
  3315. linePrice: Scalars['Money'];
  3316. /** The total price of the line including tax but excluding discounts. */
  3317. linePriceWithTax: Scalars['Money'];
  3318. /** The total tax on this line */
  3319. lineTax: Scalars['Money'];
  3320. order: Order;
  3321. /** The quantity at the time the Order was placed */
  3322. orderPlacedQuantity: Scalars['Int'];
  3323. productVariant: ProductVariant;
  3324. /**
  3325. * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed)
  3326. * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
  3327. * and refund calculations.
  3328. */
  3329. proratedLinePrice: Scalars['Money'];
  3330. /** The proratedLinePrice including tax */
  3331. proratedLinePriceWithTax: Scalars['Money'];
  3332. /**
  3333. * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
  3334. * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
  3335. * and refund calculations.
  3336. */
  3337. proratedUnitPrice: Scalars['Money'];
  3338. /** The proratedUnitPrice including tax */
  3339. proratedUnitPriceWithTax: Scalars['Money'];
  3340. quantity: Scalars['Int'];
  3341. taxLines: Array<TaxLine>;
  3342. taxRate: Scalars['Float'];
  3343. /** The price of a single unit, excluding tax and discounts */
  3344. unitPrice: Scalars['Money'];
  3345. /** Non-zero if the unitPrice has changed since it was initially added to Order */
  3346. unitPriceChangeSinceAdded: Scalars['Money'];
  3347. /** The price of a single unit, including tax but excluding discounts */
  3348. unitPriceWithTax: Scalars['Money'];
  3349. /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */
  3350. unitPriceWithTaxChangeSinceAdded: Scalars['Money'];
  3351. updatedAt: Scalars['DateTime'];
  3352. };
  3353. export type OrderLineInput = {
  3354. orderLineId: Scalars['ID'];
  3355. quantity: Scalars['Int'];
  3356. };
  3357. export type OrderList = PaginatedList & {
  3358. __typename?: 'OrderList';
  3359. items: Array<Order>;
  3360. totalItems: Scalars['Int'];
  3361. };
  3362. export type OrderListOptions = {
  3363. /** Allows the results to be filtered */
  3364. filter?: InputMaybe<OrderFilterParameter>;
  3365. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  3366. filterOperator?: InputMaybe<LogicalOperator>;
  3367. /** Skips the first n results, for use in pagination */
  3368. skip?: InputMaybe<Scalars['Int']>;
  3369. /** Specifies which properties to sort the results by */
  3370. sort?: InputMaybe<OrderSortParameter>;
  3371. /** Takes n results, for use in pagination */
  3372. take?: InputMaybe<Scalars['Int']>;
  3373. };
  3374. export type OrderModification = Node & {
  3375. __typename?: 'OrderModification';
  3376. createdAt: Scalars['DateTime'];
  3377. id: Scalars['ID'];
  3378. isSettled: Scalars['Boolean'];
  3379. lines: Array<OrderModificationLine>;
  3380. note: Scalars['String'];
  3381. payment?: Maybe<Payment>;
  3382. priceChange: Scalars['Money'];
  3383. refund?: Maybe<Refund>;
  3384. surcharges?: Maybe<Array<Surcharge>>;
  3385. updatedAt: Scalars['DateTime'];
  3386. };
  3387. /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */
  3388. export type OrderModificationError = ErrorResult & {
  3389. __typename?: 'OrderModificationError';
  3390. errorCode: ErrorCode;
  3391. message: Scalars['String'];
  3392. };
  3393. export type OrderModificationLine = {
  3394. __typename?: 'OrderModificationLine';
  3395. modification: OrderModification;
  3396. modificationId: Scalars['ID'];
  3397. orderLine: OrderLine;
  3398. orderLineId: Scalars['ID'];
  3399. quantity: Scalars['Int'];
  3400. };
  3401. /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */
  3402. export type OrderModificationStateError = ErrorResult & {
  3403. __typename?: 'OrderModificationStateError';
  3404. errorCode: ErrorCode;
  3405. message: Scalars['String'];
  3406. };
  3407. export type OrderProcessState = {
  3408. __typename?: 'OrderProcessState';
  3409. name: Scalars['String'];
  3410. to: Array<Scalars['String']>;
  3411. };
  3412. export type OrderSortParameter = {
  3413. aggregateOrderId?: InputMaybe<SortOrder>;
  3414. code?: InputMaybe<SortOrder>;
  3415. createdAt?: InputMaybe<SortOrder>;
  3416. customerLastName?: InputMaybe<SortOrder>;
  3417. id?: InputMaybe<SortOrder>;
  3418. orderPlacedAt?: InputMaybe<SortOrder>;
  3419. shipping?: InputMaybe<SortOrder>;
  3420. shippingWithTax?: InputMaybe<SortOrder>;
  3421. state?: InputMaybe<SortOrder>;
  3422. subTotal?: InputMaybe<SortOrder>;
  3423. subTotalWithTax?: InputMaybe<SortOrder>;
  3424. total?: InputMaybe<SortOrder>;
  3425. totalQuantity?: InputMaybe<SortOrder>;
  3426. totalWithTax?: InputMaybe<SortOrder>;
  3427. transactionId?: InputMaybe<SortOrder>;
  3428. updatedAt?: InputMaybe<SortOrder>;
  3429. };
  3430. /** Returned if there is an error in transitioning the Order state */
  3431. export type OrderStateTransitionError = ErrorResult & {
  3432. __typename?: 'OrderStateTransitionError';
  3433. errorCode: ErrorCode;
  3434. fromState: Scalars['String'];
  3435. message: Scalars['String'];
  3436. toState: Scalars['String'];
  3437. transitionError: Scalars['String'];
  3438. };
  3439. /**
  3440. * A summary of the taxes being applied to this order, grouped
  3441. * by taxRate.
  3442. */
  3443. export type OrderTaxSummary = {
  3444. __typename?: 'OrderTaxSummary';
  3445. /** A description of this tax */
  3446. description: Scalars['String'];
  3447. /** The total net price or OrderItems to which this taxRate applies */
  3448. taxBase: Scalars['Money'];
  3449. /** The taxRate as a percentage */
  3450. taxRate: Scalars['Float'];
  3451. /** The total tax being applied to the Order at this taxRate */
  3452. taxTotal: Scalars['Money'];
  3453. };
  3454. export enum OrderType {
  3455. Aggregate = 'Aggregate',
  3456. Regular = 'Regular',
  3457. Seller = 'Seller'
  3458. }
  3459. export type PaginatedList = {
  3460. items: Array<Node>;
  3461. totalItems: Scalars['Int'];
  3462. };
  3463. export type Payment = Node & {
  3464. __typename?: 'Payment';
  3465. amount: Scalars['Money'];
  3466. createdAt: Scalars['DateTime'];
  3467. errorMessage?: Maybe<Scalars['String']>;
  3468. id: Scalars['ID'];
  3469. metadata?: Maybe<Scalars['JSON']>;
  3470. method: Scalars['String'];
  3471. nextStates: Array<Scalars['String']>;
  3472. refunds: Array<Refund>;
  3473. state: Scalars['String'];
  3474. transactionId?: Maybe<Scalars['String']>;
  3475. updatedAt: Scalars['DateTime'];
  3476. };
  3477. export type PaymentMethod = Node & {
  3478. __typename?: 'PaymentMethod';
  3479. checker?: Maybe<ConfigurableOperation>;
  3480. code: Scalars['String'];
  3481. createdAt: Scalars['DateTime'];
  3482. customFields?: Maybe<Scalars['JSON']>;
  3483. description: Scalars['String'];
  3484. enabled: Scalars['Boolean'];
  3485. handler: ConfigurableOperation;
  3486. id: Scalars['ID'];
  3487. name: Scalars['String'];
  3488. translations: Array<PaymentMethodTranslation>;
  3489. updatedAt: Scalars['DateTime'];
  3490. };
  3491. export type PaymentMethodFilterParameter = {
  3492. code?: InputMaybe<StringOperators>;
  3493. createdAt?: InputMaybe<DateOperators>;
  3494. description?: InputMaybe<StringOperators>;
  3495. enabled?: InputMaybe<BooleanOperators>;
  3496. id?: InputMaybe<IdOperators>;
  3497. name?: InputMaybe<StringOperators>;
  3498. updatedAt?: InputMaybe<DateOperators>;
  3499. };
  3500. export type PaymentMethodList = PaginatedList & {
  3501. __typename?: 'PaymentMethodList';
  3502. items: Array<PaymentMethod>;
  3503. totalItems: Scalars['Int'];
  3504. };
  3505. export type PaymentMethodListOptions = {
  3506. /** Allows the results to be filtered */
  3507. filter?: InputMaybe<PaymentMethodFilterParameter>;
  3508. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  3509. filterOperator?: InputMaybe<LogicalOperator>;
  3510. /** Skips the first n results, for use in pagination */
  3511. skip?: InputMaybe<Scalars['Int']>;
  3512. /** Specifies which properties to sort the results by */
  3513. sort?: InputMaybe<PaymentMethodSortParameter>;
  3514. /** Takes n results, for use in pagination */
  3515. take?: InputMaybe<Scalars['Int']>;
  3516. };
  3517. /**
  3518. * Returned when a call to modifyOrder fails to include a paymentMethod even
  3519. * though the price has increased as a result of the changes.
  3520. */
  3521. export type PaymentMethodMissingError = ErrorResult & {
  3522. __typename?: 'PaymentMethodMissingError';
  3523. errorCode: ErrorCode;
  3524. message: Scalars['String'];
  3525. };
  3526. export type PaymentMethodQuote = {
  3527. __typename?: 'PaymentMethodQuote';
  3528. code: Scalars['String'];
  3529. customFields?: Maybe<Scalars['JSON']>;
  3530. description: Scalars['String'];
  3531. eligibilityMessage?: Maybe<Scalars['String']>;
  3532. id: Scalars['ID'];
  3533. isEligible: Scalars['Boolean'];
  3534. name: Scalars['String'];
  3535. };
  3536. export type PaymentMethodSortParameter = {
  3537. code?: InputMaybe<SortOrder>;
  3538. createdAt?: InputMaybe<SortOrder>;
  3539. description?: InputMaybe<SortOrder>;
  3540. id?: InputMaybe<SortOrder>;
  3541. name?: InputMaybe<SortOrder>;
  3542. updatedAt?: InputMaybe<SortOrder>;
  3543. };
  3544. export type PaymentMethodTranslation = {
  3545. __typename?: 'PaymentMethodTranslation';
  3546. createdAt: Scalars['DateTime'];
  3547. description: Scalars['String'];
  3548. id: Scalars['ID'];
  3549. languageCode: LanguageCode;
  3550. name: Scalars['String'];
  3551. updatedAt: Scalars['DateTime'];
  3552. };
  3553. export type PaymentMethodTranslationInput = {
  3554. customFields?: InputMaybe<Scalars['JSON']>;
  3555. description?: InputMaybe<Scalars['String']>;
  3556. id?: InputMaybe<Scalars['ID']>;
  3557. languageCode: LanguageCode;
  3558. name?: InputMaybe<Scalars['String']>;
  3559. };
  3560. /** Returned if an attempting to refund a Payment against OrderLines from a different Order */
  3561. export type PaymentOrderMismatchError = ErrorResult & {
  3562. __typename?: 'PaymentOrderMismatchError';
  3563. errorCode: ErrorCode;
  3564. message: Scalars['String'];
  3565. };
  3566. /** Returned when there is an error in transitioning the Payment state */
  3567. export type PaymentStateTransitionError = ErrorResult & {
  3568. __typename?: 'PaymentStateTransitionError';
  3569. errorCode: ErrorCode;
  3570. fromState: Scalars['String'];
  3571. message: Scalars['String'];
  3572. toState: Scalars['String'];
  3573. transitionError: Scalars['String'];
  3574. };
  3575. /**
  3576. * @description
  3577. * Permissions for administrators and customers. Used to control access to
  3578. * GraphQL resolvers via the {@link Allow} decorator.
  3579. *
  3580. * ## Understanding Permission.Owner
  3581. *
  3582. * `Permission.Owner` is a special permission which is used in some Vendure resolvers to indicate that that resolver should only
  3583. * be accessible to the "owner" of that resource.
  3584. *
  3585. * For example, the Shop API `activeCustomer` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
  3586. * based on the activeUserId of the current session. As a result, the resolver code looks like this:
  3587. *
  3588. * @example
  3589. * ```TypeScript
  3590. * \@Query()
  3591. * \@Allow(Permission.Owner)
  3592. * async activeCustomer(\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
  3593. * const userId = ctx.activeUserId;
  3594. * if (userId) {
  3595. * return this.customerService.findOneByUserId(ctx, userId);
  3596. * }
  3597. * }
  3598. * ```
  3599. *
  3600. * Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
  3601. * nor statically encoded at build-time, any resolvers using `Permission.Owner` **must** include logic to enforce that only the owner
  3602. * of the resource has access. If not, then it is the equivalent of using `Permission.Public`.
  3603. *
  3604. *
  3605. * @docsCategory common
  3606. */
  3607. export enum Permission {
  3608. /** Authenticated means simply that the user is logged in */
  3609. Authenticated = 'Authenticated',
  3610. /** Grants permission to create Administrator */
  3611. CreateAdministrator = 'CreateAdministrator',
  3612. /** Grants permission to create Asset */
  3613. CreateAsset = 'CreateAsset',
  3614. /** Grants permission to create Products, Facets, Assets, Collections */
  3615. CreateCatalog = 'CreateCatalog',
  3616. /** Grants permission to create Channel */
  3617. CreateChannel = 'CreateChannel',
  3618. /** Grants permission to create Collection */
  3619. CreateCollection = 'CreateCollection',
  3620. /** Grants permission to create Country */
  3621. CreateCountry = 'CreateCountry',
  3622. /** Grants permission to create Customer */
  3623. CreateCustomer = 'CreateCustomer',
  3624. /** Grants permission to create CustomerGroup */
  3625. CreateCustomerGroup = 'CreateCustomerGroup',
  3626. /** Grants permission to create Facet */
  3627. CreateFacet = 'CreateFacet',
  3628. /** Grants permission to create Order */
  3629. CreateOrder = 'CreateOrder',
  3630. /** Grants permission to create PaymentMethod */
  3631. CreatePaymentMethod = 'CreatePaymentMethod',
  3632. /** Grants permission to create Product */
  3633. CreateProduct = 'CreateProduct',
  3634. /** Grants permission to create Promotion */
  3635. CreatePromotion = 'CreatePromotion',
  3636. /** Grants permission to create Seller */
  3637. CreateSeller = 'CreateSeller',
  3638. /** Grants permission to create PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
  3639. CreateSettings = 'CreateSettings',
  3640. /** Grants permission to create ShippingMethod */
  3641. CreateShippingMethod = 'CreateShippingMethod',
  3642. /** Grants permission to create StockLocation */
  3643. CreateStockLocation = 'CreateStockLocation',
  3644. /** Grants permission to create System */
  3645. CreateSystem = 'CreateSystem',
  3646. /** Grants permission to create Tag */
  3647. CreateTag = 'CreateTag',
  3648. /** Grants permission to create TaxCategory */
  3649. CreateTaxCategory = 'CreateTaxCategory',
  3650. /** Grants permission to create TaxRate */
  3651. CreateTaxRate = 'CreateTaxRate',
  3652. /** Grants permission to create Zone */
  3653. CreateZone = 'CreateZone',
  3654. /** Grants permission to delete Administrator */
  3655. DeleteAdministrator = 'DeleteAdministrator',
  3656. /** Grants permission to delete Asset */
  3657. DeleteAsset = 'DeleteAsset',
  3658. /** Grants permission to delete Products, Facets, Assets, Collections */
  3659. DeleteCatalog = 'DeleteCatalog',
  3660. /** Grants permission to delete Channel */
  3661. DeleteChannel = 'DeleteChannel',
  3662. /** Grants permission to delete Collection */
  3663. DeleteCollection = 'DeleteCollection',
  3664. /** Grants permission to delete Country */
  3665. DeleteCountry = 'DeleteCountry',
  3666. /** Grants permission to delete Customer */
  3667. DeleteCustomer = 'DeleteCustomer',
  3668. /** Grants permission to delete CustomerGroup */
  3669. DeleteCustomerGroup = 'DeleteCustomerGroup',
  3670. /** Grants permission to delete Facet */
  3671. DeleteFacet = 'DeleteFacet',
  3672. /** Grants permission to delete Order */
  3673. DeleteOrder = 'DeleteOrder',
  3674. /** Grants permission to delete PaymentMethod */
  3675. DeletePaymentMethod = 'DeletePaymentMethod',
  3676. /** Grants permission to delete Product */
  3677. DeleteProduct = 'DeleteProduct',
  3678. /** Grants permission to delete Promotion */
  3679. DeletePromotion = 'DeletePromotion',
  3680. /** Grants permission to delete Seller */
  3681. DeleteSeller = 'DeleteSeller',
  3682. /** Grants permission to delete PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
  3683. DeleteSettings = 'DeleteSettings',
  3684. /** Grants permission to delete ShippingMethod */
  3685. DeleteShippingMethod = 'DeleteShippingMethod',
  3686. /** Grants permission to delete StockLocation */
  3687. DeleteStockLocation = 'DeleteStockLocation',
  3688. /** Grants permission to delete System */
  3689. DeleteSystem = 'DeleteSystem',
  3690. /** Grants permission to delete Tag */
  3691. DeleteTag = 'DeleteTag',
  3692. /** Grants permission to delete TaxCategory */
  3693. DeleteTaxCategory = 'DeleteTaxCategory',
  3694. /** Grants permission to delete TaxRate */
  3695. DeleteTaxRate = 'DeleteTaxRate',
  3696. /** Grants permission to delete Zone */
  3697. DeleteZone = 'DeleteZone',
  3698. /** Owner means the user owns this entity, e.g. a Customer's own Order */
  3699. Owner = 'Owner',
  3700. /** Public means any unauthenticated user may perform the operation */
  3701. Public = 'Public',
  3702. /** Grants permission to read Administrator */
  3703. ReadAdministrator = 'ReadAdministrator',
  3704. /** Grants permission to read Asset */
  3705. ReadAsset = 'ReadAsset',
  3706. /** Grants permission to read Products, Facets, Assets, Collections */
  3707. ReadCatalog = 'ReadCatalog',
  3708. /** Grants permission to read Channel */
  3709. ReadChannel = 'ReadChannel',
  3710. /** Grants permission to read Collection */
  3711. ReadCollection = 'ReadCollection',
  3712. /** Grants permission to read Country */
  3713. ReadCountry = 'ReadCountry',
  3714. /** Grants permission to read Customer */
  3715. ReadCustomer = 'ReadCustomer',
  3716. /** Grants permission to read CustomerGroup */
  3717. ReadCustomerGroup = 'ReadCustomerGroup',
  3718. /** Grants permission to read Facet */
  3719. ReadFacet = 'ReadFacet',
  3720. /** Grants permission to read Order */
  3721. ReadOrder = 'ReadOrder',
  3722. /** Grants permission to read PaymentMethod */
  3723. ReadPaymentMethod = 'ReadPaymentMethod',
  3724. /** Grants permission to read Product */
  3725. ReadProduct = 'ReadProduct',
  3726. /** Grants permission to read Promotion */
  3727. ReadPromotion = 'ReadPromotion',
  3728. /** Grants permission to read Seller */
  3729. ReadSeller = 'ReadSeller',
  3730. /** Grants permission to read PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
  3731. ReadSettings = 'ReadSettings',
  3732. /** Grants permission to read ShippingMethod */
  3733. ReadShippingMethod = 'ReadShippingMethod',
  3734. /** Grants permission to read StockLocation */
  3735. ReadStockLocation = 'ReadStockLocation',
  3736. /** Grants permission to read System */
  3737. ReadSystem = 'ReadSystem',
  3738. /** Grants permission to read Tag */
  3739. ReadTag = 'ReadTag',
  3740. /** Grants permission to read TaxCategory */
  3741. ReadTaxCategory = 'ReadTaxCategory',
  3742. /** Grants permission to read TaxRate */
  3743. ReadTaxRate = 'ReadTaxRate',
  3744. /** Grants permission to read Zone */
  3745. ReadZone = 'ReadZone',
  3746. /** SuperAdmin has unrestricted access to all operations */
  3747. SuperAdmin = 'SuperAdmin',
  3748. /** Grants permission to update Administrator */
  3749. UpdateAdministrator = 'UpdateAdministrator',
  3750. /** Grants permission to update Asset */
  3751. UpdateAsset = 'UpdateAsset',
  3752. /** Grants permission to update Products, Facets, Assets, Collections */
  3753. UpdateCatalog = 'UpdateCatalog',
  3754. /** Grants permission to update Channel */
  3755. UpdateChannel = 'UpdateChannel',
  3756. /** Grants permission to update Collection */
  3757. UpdateCollection = 'UpdateCollection',
  3758. /** Grants permission to update Country */
  3759. UpdateCountry = 'UpdateCountry',
  3760. /** Grants permission to update Customer */
  3761. UpdateCustomer = 'UpdateCustomer',
  3762. /** Grants permission to update CustomerGroup */
  3763. UpdateCustomerGroup = 'UpdateCustomerGroup',
  3764. /** Grants permission to update Facet */
  3765. UpdateFacet = 'UpdateFacet',
  3766. /** Grants permission to update GlobalSettings */
  3767. UpdateGlobalSettings = 'UpdateGlobalSettings',
  3768. /** Grants permission to update Order */
  3769. UpdateOrder = 'UpdateOrder',
  3770. /** Grants permission to update PaymentMethod */
  3771. UpdatePaymentMethod = 'UpdatePaymentMethod',
  3772. /** Grants permission to update Product */
  3773. UpdateProduct = 'UpdateProduct',
  3774. /** Grants permission to update Promotion */
  3775. UpdatePromotion = 'UpdatePromotion',
  3776. /** Grants permission to update Seller */
  3777. UpdateSeller = 'UpdateSeller',
  3778. /** Grants permission to update PaymentMethods, ShippingMethods, TaxCategories, TaxRates, Zones, Countries, System & GlobalSettings */
  3779. UpdateSettings = 'UpdateSettings',
  3780. /** Grants permission to update ShippingMethod */
  3781. UpdateShippingMethod = 'UpdateShippingMethod',
  3782. /** Grants permission to update StockLocation */
  3783. UpdateStockLocation = 'UpdateStockLocation',
  3784. /** Grants permission to update System */
  3785. UpdateSystem = 'UpdateSystem',
  3786. /** Grants permission to update Tag */
  3787. UpdateTag = 'UpdateTag',
  3788. /** Grants permission to update TaxCategory */
  3789. UpdateTaxCategory = 'UpdateTaxCategory',
  3790. /** Grants permission to update TaxRate */
  3791. UpdateTaxRate = 'UpdateTaxRate',
  3792. /** Grants permission to update Zone */
  3793. UpdateZone = 'UpdateZone'
  3794. }
  3795. export type PermissionDefinition = {
  3796. __typename?: 'PermissionDefinition';
  3797. assignable: Scalars['Boolean'];
  3798. description: Scalars['String'];
  3799. name: Scalars['String'];
  3800. };
  3801. export type PreviewCollectionVariantsInput = {
  3802. filters: Array<ConfigurableOperationInput>;
  3803. inheritFilters: Scalars['Boolean'];
  3804. parentId?: InputMaybe<Scalars['ID']>;
  3805. };
  3806. /** The price range where the result has more than one price */
  3807. export type PriceRange = {
  3808. __typename?: 'PriceRange';
  3809. max: Scalars['Money'];
  3810. min: Scalars['Money'];
  3811. };
  3812. export type Product = Node & {
  3813. __typename?: 'Product';
  3814. assets: Array<Asset>;
  3815. channels: Array<Channel>;
  3816. collections: Array<Collection>;
  3817. createdAt: Scalars['DateTime'];
  3818. customFields?: Maybe<Scalars['JSON']>;
  3819. description: Scalars['String'];
  3820. enabled: Scalars['Boolean'];
  3821. facetValues: Array<FacetValue>;
  3822. featuredAsset?: Maybe<Asset>;
  3823. id: Scalars['ID'];
  3824. languageCode: LanguageCode;
  3825. name: Scalars['String'];
  3826. optionGroups: Array<ProductOptionGroup>;
  3827. slug: Scalars['String'];
  3828. translations: Array<ProductTranslation>;
  3829. updatedAt: Scalars['DateTime'];
  3830. /** Returns a paginated, sortable, filterable list of ProductVariants */
  3831. variantList: ProductVariantList;
  3832. /** Returns all ProductVariants */
  3833. variants: Array<ProductVariant>;
  3834. };
  3835. export type ProductVariantListArgs = {
  3836. options?: InputMaybe<ProductVariantListOptions>;
  3837. };
  3838. export type ProductFilterParameter = {
  3839. createdAt?: InputMaybe<DateOperators>;
  3840. description?: InputMaybe<StringOperators>;
  3841. enabled?: InputMaybe<BooleanOperators>;
  3842. facetValueId?: InputMaybe<IdOperators>;
  3843. id?: InputMaybe<IdOperators>;
  3844. languageCode?: InputMaybe<StringOperators>;
  3845. name?: InputMaybe<StringOperators>;
  3846. slug?: InputMaybe<StringOperators>;
  3847. updatedAt?: InputMaybe<DateOperators>;
  3848. };
  3849. export type ProductList = PaginatedList & {
  3850. __typename?: 'ProductList';
  3851. items: Array<Product>;
  3852. totalItems: Scalars['Int'];
  3853. };
  3854. export type ProductListOptions = {
  3855. /** Allows the results to be filtered */
  3856. filter?: InputMaybe<ProductFilterParameter>;
  3857. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  3858. filterOperator?: InputMaybe<LogicalOperator>;
  3859. /** Skips the first n results, for use in pagination */
  3860. skip?: InputMaybe<Scalars['Int']>;
  3861. /** Specifies which properties to sort the results by */
  3862. sort?: InputMaybe<ProductSortParameter>;
  3863. /** Takes n results, for use in pagination */
  3864. take?: InputMaybe<Scalars['Int']>;
  3865. };
  3866. export type ProductOption = Node & {
  3867. __typename?: 'ProductOption';
  3868. code: Scalars['String'];
  3869. createdAt: Scalars['DateTime'];
  3870. customFields?: Maybe<Scalars['JSON']>;
  3871. group: ProductOptionGroup;
  3872. groupId: Scalars['ID'];
  3873. id: Scalars['ID'];
  3874. languageCode: LanguageCode;
  3875. name: Scalars['String'];
  3876. translations: Array<ProductOptionTranslation>;
  3877. updatedAt: Scalars['DateTime'];
  3878. };
  3879. export type ProductOptionGroup = Node & {
  3880. __typename?: 'ProductOptionGroup';
  3881. code: Scalars['String'];
  3882. createdAt: Scalars['DateTime'];
  3883. customFields?: Maybe<Scalars['JSON']>;
  3884. id: Scalars['ID'];
  3885. languageCode: LanguageCode;
  3886. name: Scalars['String'];
  3887. options: Array<ProductOption>;
  3888. translations: Array<ProductOptionGroupTranslation>;
  3889. updatedAt: Scalars['DateTime'];
  3890. };
  3891. export type ProductOptionGroupTranslation = {
  3892. __typename?: 'ProductOptionGroupTranslation';
  3893. createdAt: Scalars['DateTime'];
  3894. id: Scalars['ID'];
  3895. languageCode: LanguageCode;
  3896. name: Scalars['String'];
  3897. updatedAt: Scalars['DateTime'];
  3898. };
  3899. export type ProductOptionGroupTranslationInput = {
  3900. customFields?: InputMaybe<Scalars['JSON']>;
  3901. id?: InputMaybe<Scalars['ID']>;
  3902. languageCode: LanguageCode;
  3903. name?: InputMaybe<Scalars['String']>;
  3904. };
  3905. export type ProductOptionInUseError = ErrorResult & {
  3906. __typename?: 'ProductOptionInUseError';
  3907. errorCode: ErrorCode;
  3908. message: Scalars['String'];
  3909. optionGroupCode: Scalars['String'];
  3910. productVariantCount: Scalars['Int'];
  3911. };
  3912. export type ProductOptionTranslation = {
  3913. __typename?: 'ProductOptionTranslation';
  3914. createdAt: Scalars['DateTime'];
  3915. id: Scalars['ID'];
  3916. languageCode: LanguageCode;
  3917. name: Scalars['String'];
  3918. updatedAt: Scalars['DateTime'];
  3919. };
  3920. export type ProductOptionTranslationInput = {
  3921. customFields?: InputMaybe<Scalars['JSON']>;
  3922. id?: InputMaybe<Scalars['ID']>;
  3923. languageCode: LanguageCode;
  3924. name?: InputMaybe<Scalars['String']>;
  3925. };
  3926. export type ProductSortParameter = {
  3927. createdAt?: InputMaybe<SortOrder>;
  3928. description?: InputMaybe<SortOrder>;
  3929. id?: InputMaybe<SortOrder>;
  3930. name?: InputMaybe<SortOrder>;
  3931. slug?: InputMaybe<SortOrder>;
  3932. updatedAt?: InputMaybe<SortOrder>;
  3933. };
  3934. export type ProductTranslation = {
  3935. __typename?: 'ProductTranslation';
  3936. createdAt: Scalars['DateTime'];
  3937. description: Scalars['String'];
  3938. id: Scalars['ID'];
  3939. languageCode: LanguageCode;
  3940. name: Scalars['String'];
  3941. slug: Scalars['String'];
  3942. updatedAt: Scalars['DateTime'];
  3943. };
  3944. export type ProductTranslationInput = {
  3945. customFields?: InputMaybe<Scalars['JSON']>;
  3946. description?: InputMaybe<Scalars['String']>;
  3947. id?: InputMaybe<Scalars['ID']>;
  3948. languageCode: LanguageCode;
  3949. name?: InputMaybe<Scalars['String']>;
  3950. slug?: InputMaybe<Scalars['String']>;
  3951. };
  3952. export type ProductVariant = Node & {
  3953. __typename?: 'ProductVariant';
  3954. assets: Array<Asset>;
  3955. channels: Array<Channel>;
  3956. createdAt: Scalars['DateTime'];
  3957. currencyCode: CurrencyCode;
  3958. customFields?: Maybe<Scalars['JSON']>;
  3959. enabled: Scalars['Boolean'];
  3960. facetValues: Array<FacetValue>;
  3961. featuredAsset?: Maybe<Asset>;
  3962. id: Scalars['ID'];
  3963. languageCode: LanguageCode;
  3964. name: Scalars['String'];
  3965. options: Array<ProductOption>;
  3966. outOfStockThreshold: Scalars['Int'];
  3967. price: Scalars['Money'];
  3968. priceWithTax: Scalars['Money'];
  3969. product: Product;
  3970. productId: Scalars['ID'];
  3971. sku: Scalars['String'];
  3972. /** @deprecated use stockLevels */
  3973. stockAllocated: Scalars['Int'];
  3974. stockLevel: Scalars['String'];
  3975. stockLevels: Array<StockLevel>;
  3976. stockMovements: StockMovementList;
  3977. /** @deprecated use stockLevels */
  3978. stockOnHand: Scalars['Int'];
  3979. taxCategory: TaxCategory;
  3980. taxRateApplied: TaxRate;
  3981. trackInventory: GlobalFlag;
  3982. translations: Array<ProductVariantTranslation>;
  3983. updatedAt: Scalars['DateTime'];
  3984. useGlobalOutOfStockThreshold: Scalars['Boolean'];
  3985. };
  3986. export type ProductVariantStockMovementsArgs = {
  3987. options?: InputMaybe<StockMovementListOptions>;
  3988. };
  3989. export type ProductVariantFilterParameter = {
  3990. createdAt?: InputMaybe<DateOperators>;
  3991. currencyCode?: InputMaybe<StringOperators>;
  3992. enabled?: InputMaybe<BooleanOperators>;
  3993. facetValueId?: InputMaybe<IdOperators>;
  3994. id?: InputMaybe<IdOperators>;
  3995. languageCode?: InputMaybe<StringOperators>;
  3996. name?: InputMaybe<StringOperators>;
  3997. outOfStockThreshold?: InputMaybe<NumberOperators>;
  3998. price?: InputMaybe<NumberOperators>;
  3999. priceWithTax?: InputMaybe<NumberOperators>;
  4000. productId?: InputMaybe<IdOperators>;
  4001. sku?: InputMaybe<StringOperators>;
  4002. stockAllocated?: InputMaybe<NumberOperators>;
  4003. stockLevel?: InputMaybe<StringOperators>;
  4004. stockOnHand?: InputMaybe<NumberOperators>;
  4005. trackInventory?: InputMaybe<StringOperators>;
  4006. updatedAt?: InputMaybe<DateOperators>;
  4007. useGlobalOutOfStockThreshold?: InputMaybe<BooleanOperators>;
  4008. };
  4009. export type ProductVariantList = PaginatedList & {
  4010. __typename?: 'ProductVariantList';
  4011. items: Array<ProductVariant>;
  4012. totalItems: Scalars['Int'];
  4013. };
  4014. export type ProductVariantListOptions = {
  4015. /** Allows the results to be filtered */
  4016. filter?: InputMaybe<ProductVariantFilterParameter>;
  4017. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  4018. filterOperator?: InputMaybe<LogicalOperator>;
  4019. /** Skips the first n results, for use in pagination */
  4020. skip?: InputMaybe<Scalars['Int']>;
  4021. /** Specifies which properties to sort the results by */
  4022. sort?: InputMaybe<ProductVariantSortParameter>;
  4023. /** Takes n results, for use in pagination */
  4024. take?: InputMaybe<Scalars['Int']>;
  4025. };
  4026. export type ProductVariantSortParameter = {
  4027. createdAt?: InputMaybe<SortOrder>;
  4028. id?: InputMaybe<SortOrder>;
  4029. name?: InputMaybe<SortOrder>;
  4030. outOfStockThreshold?: InputMaybe<SortOrder>;
  4031. price?: InputMaybe<SortOrder>;
  4032. priceWithTax?: InputMaybe<SortOrder>;
  4033. productId?: InputMaybe<SortOrder>;
  4034. sku?: InputMaybe<SortOrder>;
  4035. stockAllocated?: InputMaybe<SortOrder>;
  4036. stockLevel?: InputMaybe<SortOrder>;
  4037. stockOnHand?: InputMaybe<SortOrder>;
  4038. updatedAt?: InputMaybe<SortOrder>;
  4039. };
  4040. export type ProductVariantTranslation = {
  4041. __typename?: 'ProductVariantTranslation';
  4042. createdAt: Scalars['DateTime'];
  4043. id: Scalars['ID'];
  4044. languageCode: LanguageCode;
  4045. name: Scalars['String'];
  4046. updatedAt: Scalars['DateTime'];
  4047. };
  4048. export type ProductVariantTranslationInput = {
  4049. customFields?: InputMaybe<Scalars['JSON']>;
  4050. id?: InputMaybe<Scalars['ID']>;
  4051. languageCode: LanguageCode;
  4052. name?: InputMaybe<Scalars['String']>;
  4053. };
  4054. export type Promotion = Node & {
  4055. __typename?: 'Promotion';
  4056. actions: Array<ConfigurableOperation>;
  4057. conditions: Array<ConfigurableOperation>;
  4058. couponCode?: Maybe<Scalars['String']>;
  4059. createdAt: Scalars['DateTime'];
  4060. customFields?: Maybe<Scalars['JSON']>;
  4061. description: Scalars['String'];
  4062. enabled: Scalars['Boolean'];
  4063. endsAt?: Maybe<Scalars['DateTime']>;
  4064. id: Scalars['ID'];
  4065. name: Scalars['String'];
  4066. perCustomerUsageLimit?: Maybe<Scalars['Int']>;
  4067. startsAt?: Maybe<Scalars['DateTime']>;
  4068. translations: Array<PromotionTranslation>;
  4069. updatedAt: Scalars['DateTime'];
  4070. };
  4071. export type PromotionFilterParameter = {
  4072. couponCode?: InputMaybe<StringOperators>;
  4073. createdAt?: InputMaybe<DateOperators>;
  4074. description?: InputMaybe<StringOperators>;
  4075. enabled?: InputMaybe<BooleanOperators>;
  4076. endsAt?: InputMaybe<DateOperators>;
  4077. id?: InputMaybe<IdOperators>;
  4078. name?: InputMaybe<StringOperators>;
  4079. perCustomerUsageLimit?: InputMaybe<NumberOperators>;
  4080. startsAt?: InputMaybe<DateOperators>;
  4081. updatedAt?: InputMaybe<DateOperators>;
  4082. };
  4083. export type PromotionList = PaginatedList & {
  4084. __typename?: 'PromotionList';
  4085. items: Array<Promotion>;
  4086. totalItems: Scalars['Int'];
  4087. };
  4088. export type PromotionListOptions = {
  4089. /** Allows the results to be filtered */
  4090. filter?: InputMaybe<PromotionFilterParameter>;
  4091. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  4092. filterOperator?: InputMaybe<LogicalOperator>;
  4093. /** Skips the first n results, for use in pagination */
  4094. skip?: InputMaybe<Scalars['Int']>;
  4095. /** Specifies which properties to sort the results by */
  4096. sort?: InputMaybe<PromotionSortParameter>;
  4097. /** Takes n results, for use in pagination */
  4098. take?: InputMaybe<Scalars['Int']>;
  4099. };
  4100. export type PromotionSortParameter = {
  4101. couponCode?: InputMaybe<SortOrder>;
  4102. createdAt?: InputMaybe<SortOrder>;
  4103. description?: InputMaybe<SortOrder>;
  4104. endsAt?: InputMaybe<SortOrder>;
  4105. id?: InputMaybe<SortOrder>;
  4106. name?: InputMaybe<SortOrder>;
  4107. perCustomerUsageLimit?: InputMaybe<SortOrder>;
  4108. startsAt?: InputMaybe<SortOrder>;
  4109. updatedAt?: InputMaybe<SortOrder>;
  4110. };
  4111. export type PromotionTranslation = {
  4112. __typename?: 'PromotionTranslation';
  4113. createdAt: Scalars['DateTime'];
  4114. description: Scalars['String'];
  4115. id: Scalars['ID'];
  4116. languageCode: LanguageCode;
  4117. name: Scalars['String'];
  4118. updatedAt: Scalars['DateTime'];
  4119. };
  4120. export type PromotionTranslationInput = {
  4121. customFields?: InputMaybe<Scalars['JSON']>;
  4122. description?: InputMaybe<Scalars['String']>;
  4123. id?: InputMaybe<Scalars['ID']>;
  4124. languageCode: LanguageCode;
  4125. name?: InputMaybe<Scalars['String']>;
  4126. };
  4127. export type Province = Node & Region & {
  4128. __typename?: 'Province';
  4129. code: Scalars['String'];
  4130. createdAt: Scalars['DateTime'];
  4131. customFields?: Maybe<Scalars['JSON']>;
  4132. enabled: Scalars['Boolean'];
  4133. id: Scalars['ID'];
  4134. languageCode: LanguageCode;
  4135. name: Scalars['String'];
  4136. parent?: Maybe<Region>;
  4137. parentId?: Maybe<Scalars['ID']>;
  4138. translations: Array<RegionTranslation>;
  4139. type: Scalars['String'];
  4140. updatedAt: Scalars['DateTime'];
  4141. };
  4142. export type ProvinceFilterParameter = {
  4143. code?: InputMaybe<StringOperators>;
  4144. createdAt?: InputMaybe<DateOperators>;
  4145. enabled?: InputMaybe<BooleanOperators>;
  4146. id?: InputMaybe<IdOperators>;
  4147. languageCode?: InputMaybe<StringOperators>;
  4148. name?: InputMaybe<StringOperators>;
  4149. parentId?: InputMaybe<IdOperators>;
  4150. type?: InputMaybe<StringOperators>;
  4151. updatedAt?: InputMaybe<DateOperators>;
  4152. };
  4153. export type ProvinceList = PaginatedList & {
  4154. __typename?: 'ProvinceList';
  4155. items: Array<Province>;
  4156. totalItems: Scalars['Int'];
  4157. };
  4158. export type ProvinceListOptions = {
  4159. /** Allows the results to be filtered */
  4160. filter?: InputMaybe<ProvinceFilterParameter>;
  4161. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  4162. filterOperator?: InputMaybe<LogicalOperator>;
  4163. /** Skips the first n results, for use in pagination */
  4164. skip?: InputMaybe<Scalars['Int']>;
  4165. /** Specifies which properties to sort the results by */
  4166. sort?: InputMaybe<ProvinceSortParameter>;
  4167. /** Takes n results, for use in pagination */
  4168. take?: InputMaybe<Scalars['Int']>;
  4169. };
  4170. export type ProvinceSortParameter = {
  4171. code?: InputMaybe<SortOrder>;
  4172. createdAt?: InputMaybe<SortOrder>;
  4173. id?: InputMaybe<SortOrder>;
  4174. name?: InputMaybe<SortOrder>;
  4175. parentId?: InputMaybe<SortOrder>;
  4176. type?: InputMaybe<SortOrder>;
  4177. updatedAt?: InputMaybe<SortOrder>;
  4178. };
  4179. export type ProvinceTranslationInput = {
  4180. customFields?: InputMaybe<Scalars['JSON']>;
  4181. id?: InputMaybe<Scalars['ID']>;
  4182. languageCode: LanguageCode;
  4183. name?: InputMaybe<Scalars['String']>;
  4184. };
  4185. /** Returned if the specified quantity of an OrderLine is greater than the number of items in that line */
  4186. export type QuantityTooGreatError = ErrorResult & {
  4187. __typename?: 'QuantityTooGreatError';
  4188. errorCode: ErrorCode;
  4189. message: Scalars['String'];
  4190. };
  4191. export type Query = {
  4192. __typename?: 'Query';
  4193. activeAdministrator?: Maybe<Administrator>;
  4194. activeChannel: Channel;
  4195. administrator?: Maybe<Administrator>;
  4196. administrators: AdministratorList;
  4197. /** Get a single Asset by id */
  4198. asset?: Maybe<Asset>;
  4199. /** Get a list of Assets */
  4200. assets: AssetList;
  4201. channel?: Maybe<Channel>;
  4202. channels: ChannelList;
  4203. /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */
  4204. collection?: Maybe<Collection>;
  4205. collectionFilters: Array<ConfigurableOperationDefinition>;
  4206. collections: CollectionList;
  4207. countries: CountryList;
  4208. country?: Maybe<Country>;
  4209. customer?: Maybe<Customer>;
  4210. customerGroup?: Maybe<CustomerGroup>;
  4211. customerGroups: CustomerGroupList;
  4212. customers: CustomerList;
  4213. /** Returns a list of eligible shipping methods for the draft Order */
  4214. eligibleShippingMethodsForDraftOrder: Array<ShippingMethodQuote>;
  4215. facet?: Maybe<Facet>;
  4216. facetValues: FacetValueList;
  4217. facets: FacetList;
  4218. fulfillmentHandlers: Array<ConfigurableOperationDefinition>;
  4219. globalSettings: GlobalSettings;
  4220. job?: Maybe<Job>;
  4221. jobBufferSize: Array<JobBufferSize>;
  4222. jobQueues: Array<JobQueue>;
  4223. jobs: JobList;
  4224. jobsById: Array<Job>;
  4225. me?: Maybe<CurrentUser>;
  4226. /** Get metrics for the given interval and metric types. */
  4227. metricSummary: Array<MetricSummary>;
  4228. order?: Maybe<Order>;
  4229. orders: OrderList;
  4230. paymentMethod?: Maybe<PaymentMethod>;
  4231. paymentMethodEligibilityCheckers: Array<ConfigurableOperationDefinition>;
  4232. paymentMethodHandlers: Array<ConfigurableOperationDefinition>;
  4233. paymentMethods: PaymentMethodList;
  4234. pendingSearchIndexUpdates: Scalars['Int'];
  4235. /** Used for real-time previews of the contents of a Collection */
  4236. previewCollectionVariants: ProductVariantList;
  4237. /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */
  4238. product?: Maybe<Product>;
  4239. productOptionGroup?: Maybe<ProductOptionGroup>;
  4240. productOptionGroups: Array<ProductOptionGroup>;
  4241. /** Get a ProductVariant by id */
  4242. productVariant?: Maybe<ProductVariant>;
  4243. /** List ProductVariants either all or for the specific product. */
  4244. productVariants: ProductVariantList;
  4245. /** List Products */
  4246. products: ProductList;
  4247. promotion?: Maybe<Promotion>;
  4248. promotionActions: Array<ConfigurableOperationDefinition>;
  4249. promotionConditions: Array<ConfigurableOperationDefinition>;
  4250. promotions: PromotionList;
  4251. province?: Maybe<Province>;
  4252. provinces: ProvinceList;
  4253. role?: Maybe<Role>;
  4254. roles: RoleList;
  4255. search: SearchResponse;
  4256. seller?: Maybe<Seller>;
  4257. sellers: SellerList;
  4258. shippingCalculators: Array<ConfigurableOperationDefinition>;
  4259. shippingEligibilityCheckers: Array<ConfigurableOperationDefinition>;
  4260. shippingMethod?: Maybe<ShippingMethod>;
  4261. shippingMethods: ShippingMethodList;
  4262. stockLocation?: Maybe<StockLocation>;
  4263. stockLocations: StockLocationList;
  4264. tag: Tag;
  4265. tags: TagList;
  4266. taxCategories: TaxCategoryList;
  4267. taxCategory?: Maybe<TaxCategory>;
  4268. taxRate?: Maybe<TaxRate>;
  4269. taxRates: TaxRateList;
  4270. testEligibleShippingMethods: Array<ShippingMethodQuote>;
  4271. testShippingMethod: TestShippingMethodResult;
  4272. zone?: Maybe<Zone>;
  4273. zones: ZoneList;
  4274. };
  4275. export type QueryAdministratorArgs = {
  4276. id: Scalars['ID'];
  4277. };
  4278. export type QueryAdministratorsArgs = {
  4279. options?: InputMaybe<AdministratorListOptions>;
  4280. };
  4281. export type QueryAssetArgs = {
  4282. id: Scalars['ID'];
  4283. };
  4284. export type QueryAssetsArgs = {
  4285. options?: InputMaybe<AssetListOptions>;
  4286. };
  4287. export type QueryChannelArgs = {
  4288. id: Scalars['ID'];
  4289. };
  4290. export type QueryChannelsArgs = {
  4291. options?: InputMaybe<ChannelListOptions>;
  4292. };
  4293. export type QueryCollectionArgs = {
  4294. id?: InputMaybe<Scalars['ID']>;
  4295. slug?: InputMaybe<Scalars['String']>;
  4296. };
  4297. export type QueryCollectionsArgs = {
  4298. options?: InputMaybe<CollectionListOptions>;
  4299. };
  4300. export type QueryCountriesArgs = {
  4301. options?: InputMaybe<CountryListOptions>;
  4302. };
  4303. export type QueryCountryArgs = {
  4304. id: Scalars['ID'];
  4305. };
  4306. export type QueryCustomerArgs = {
  4307. id: Scalars['ID'];
  4308. };
  4309. export type QueryCustomerGroupArgs = {
  4310. id: Scalars['ID'];
  4311. };
  4312. export type QueryCustomerGroupsArgs = {
  4313. options?: InputMaybe<CustomerGroupListOptions>;
  4314. };
  4315. export type QueryCustomersArgs = {
  4316. options?: InputMaybe<CustomerListOptions>;
  4317. };
  4318. export type QueryEligibleShippingMethodsForDraftOrderArgs = {
  4319. orderId: Scalars['ID'];
  4320. };
  4321. export type QueryFacetArgs = {
  4322. id: Scalars['ID'];
  4323. };
  4324. export type QueryFacetValuesArgs = {
  4325. options?: InputMaybe<FacetValueListOptions>;
  4326. };
  4327. export type QueryFacetsArgs = {
  4328. options?: InputMaybe<FacetListOptions>;
  4329. };
  4330. export type QueryJobArgs = {
  4331. jobId: Scalars['ID'];
  4332. };
  4333. export type QueryJobBufferSizeArgs = {
  4334. bufferIds?: InputMaybe<Array<Scalars['String']>>;
  4335. };
  4336. export type QueryJobsArgs = {
  4337. options?: InputMaybe<JobListOptions>;
  4338. };
  4339. export type QueryJobsByIdArgs = {
  4340. jobIds: Array<Scalars['ID']>;
  4341. };
  4342. export type QueryMetricSummaryArgs = {
  4343. input?: InputMaybe<MetricSummaryInput>;
  4344. };
  4345. export type QueryOrderArgs = {
  4346. id: Scalars['ID'];
  4347. };
  4348. export type QueryOrdersArgs = {
  4349. options?: InputMaybe<OrderListOptions>;
  4350. };
  4351. export type QueryPaymentMethodArgs = {
  4352. id: Scalars['ID'];
  4353. };
  4354. export type QueryPaymentMethodsArgs = {
  4355. options?: InputMaybe<PaymentMethodListOptions>;
  4356. };
  4357. export type QueryPreviewCollectionVariantsArgs = {
  4358. input: PreviewCollectionVariantsInput;
  4359. options?: InputMaybe<ProductVariantListOptions>;
  4360. };
  4361. export type QueryProductArgs = {
  4362. id?: InputMaybe<Scalars['ID']>;
  4363. slug?: InputMaybe<Scalars['String']>;
  4364. };
  4365. export type QueryProductOptionGroupArgs = {
  4366. id: Scalars['ID'];
  4367. };
  4368. export type QueryProductOptionGroupsArgs = {
  4369. filterTerm?: InputMaybe<Scalars['String']>;
  4370. };
  4371. export type QueryProductVariantArgs = {
  4372. id: Scalars['ID'];
  4373. };
  4374. export type QueryProductVariantsArgs = {
  4375. options?: InputMaybe<ProductVariantListOptions>;
  4376. productId?: InputMaybe<Scalars['ID']>;
  4377. };
  4378. export type QueryProductsArgs = {
  4379. options?: InputMaybe<ProductListOptions>;
  4380. };
  4381. export type QueryPromotionArgs = {
  4382. id: Scalars['ID'];
  4383. };
  4384. export type QueryPromotionsArgs = {
  4385. options?: InputMaybe<PromotionListOptions>;
  4386. };
  4387. export type QueryProvinceArgs = {
  4388. id: Scalars['ID'];
  4389. };
  4390. export type QueryProvincesArgs = {
  4391. options?: InputMaybe<ProvinceListOptions>;
  4392. };
  4393. export type QueryRoleArgs = {
  4394. id: Scalars['ID'];
  4395. };
  4396. export type QueryRolesArgs = {
  4397. options?: InputMaybe<RoleListOptions>;
  4398. };
  4399. export type QuerySearchArgs = {
  4400. input: SearchInput;
  4401. };
  4402. export type QuerySellerArgs = {
  4403. id: Scalars['ID'];
  4404. };
  4405. export type QuerySellersArgs = {
  4406. options?: InputMaybe<SellerListOptions>;
  4407. };
  4408. export type QueryShippingMethodArgs = {
  4409. id: Scalars['ID'];
  4410. };
  4411. export type QueryShippingMethodsArgs = {
  4412. options?: InputMaybe<ShippingMethodListOptions>;
  4413. };
  4414. export type QueryStockLocationArgs = {
  4415. id: Scalars['ID'];
  4416. };
  4417. export type QueryStockLocationsArgs = {
  4418. options?: InputMaybe<StockLocationListOptions>;
  4419. };
  4420. export type QueryTagArgs = {
  4421. id: Scalars['ID'];
  4422. };
  4423. export type QueryTagsArgs = {
  4424. options?: InputMaybe<TagListOptions>;
  4425. };
  4426. export type QueryTaxCategoriesArgs = {
  4427. options?: InputMaybe<TaxCategoryListOptions>;
  4428. };
  4429. export type QueryTaxCategoryArgs = {
  4430. id: Scalars['ID'];
  4431. };
  4432. export type QueryTaxRateArgs = {
  4433. id: Scalars['ID'];
  4434. };
  4435. export type QueryTaxRatesArgs = {
  4436. options?: InputMaybe<TaxRateListOptions>;
  4437. };
  4438. export type QueryTestEligibleShippingMethodsArgs = {
  4439. input: TestEligibleShippingMethodsInput;
  4440. };
  4441. export type QueryTestShippingMethodArgs = {
  4442. input: TestShippingMethodInput;
  4443. };
  4444. export type QueryZoneArgs = {
  4445. id: Scalars['ID'];
  4446. };
  4447. export type QueryZonesArgs = {
  4448. options?: InputMaybe<ZoneListOptions>;
  4449. };
  4450. export type Refund = Node & {
  4451. __typename?: 'Refund';
  4452. adjustment: Scalars['Money'];
  4453. createdAt: Scalars['DateTime'];
  4454. id: Scalars['ID'];
  4455. items: Scalars['Money'];
  4456. lines: Array<RefundLine>;
  4457. metadata?: Maybe<Scalars['JSON']>;
  4458. method?: Maybe<Scalars['String']>;
  4459. paymentId: Scalars['ID'];
  4460. reason?: Maybe<Scalars['String']>;
  4461. shipping: Scalars['Money'];
  4462. state: Scalars['String'];
  4463. total: Scalars['Money'];
  4464. transactionId?: Maybe<Scalars['String']>;
  4465. updatedAt: Scalars['DateTime'];
  4466. };
  4467. export type RefundLine = {
  4468. __typename?: 'RefundLine';
  4469. orderLine: OrderLine;
  4470. orderLineId: Scalars['ID'];
  4471. quantity: Scalars['Int'];
  4472. refund: Refund;
  4473. refundId: Scalars['ID'];
  4474. };
  4475. export type RefundOrderInput = {
  4476. adjustment: Scalars['Money'];
  4477. lines: Array<OrderLineInput>;
  4478. paymentId: Scalars['ID'];
  4479. reason?: InputMaybe<Scalars['String']>;
  4480. shipping: Scalars['Money'];
  4481. };
  4482. export type RefundOrderResult = AlreadyRefundedError | MultipleOrderError | NothingToRefundError | OrderStateTransitionError | PaymentOrderMismatchError | QuantityTooGreatError | Refund | RefundOrderStateError | RefundStateTransitionError;
  4483. /** Returned if an attempting to refund an Order which is not in the expected state */
  4484. export type RefundOrderStateError = ErrorResult & {
  4485. __typename?: 'RefundOrderStateError';
  4486. errorCode: ErrorCode;
  4487. message: Scalars['String'];
  4488. orderState: Scalars['String'];
  4489. };
  4490. /**
  4491. * Returned when a call to modifyOrder fails to include a refundPaymentId even
  4492. * though the price has decreased as a result of the changes.
  4493. */
  4494. export type RefundPaymentIdMissingError = ErrorResult & {
  4495. __typename?: 'RefundPaymentIdMissingError';
  4496. errorCode: ErrorCode;
  4497. message: Scalars['String'];
  4498. };
  4499. /** Returned when there is an error in transitioning the Refund state */
  4500. export type RefundStateTransitionError = ErrorResult & {
  4501. __typename?: 'RefundStateTransitionError';
  4502. errorCode: ErrorCode;
  4503. fromState: Scalars['String'];
  4504. message: Scalars['String'];
  4505. toState: Scalars['String'];
  4506. transitionError: Scalars['String'];
  4507. };
  4508. export type Region = {
  4509. code: Scalars['String'];
  4510. createdAt: Scalars['DateTime'];
  4511. enabled: Scalars['Boolean'];
  4512. id: Scalars['ID'];
  4513. languageCode: LanguageCode;
  4514. name: Scalars['String'];
  4515. parent?: Maybe<Region>;
  4516. parentId?: Maybe<Scalars['ID']>;
  4517. translations: Array<RegionTranslation>;
  4518. type: Scalars['String'];
  4519. updatedAt: Scalars['DateTime'];
  4520. };
  4521. export type RegionTranslation = {
  4522. __typename?: 'RegionTranslation';
  4523. createdAt: Scalars['DateTime'];
  4524. id: Scalars['ID'];
  4525. languageCode: LanguageCode;
  4526. name: Scalars['String'];
  4527. updatedAt: Scalars['DateTime'];
  4528. };
  4529. export type RelationCustomFieldConfig = CustomField & {
  4530. __typename?: 'RelationCustomFieldConfig';
  4531. description?: Maybe<Array<LocalizedString>>;
  4532. entity: Scalars['String'];
  4533. internal?: Maybe<Scalars['Boolean']>;
  4534. label?: Maybe<Array<LocalizedString>>;
  4535. list: Scalars['Boolean'];
  4536. name: Scalars['String'];
  4537. nullable?: Maybe<Scalars['Boolean']>;
  4538. readonly?: Maybe<Scalars['Boolean']>;
  4539. scalarFields: Array<Scalars['String']>;
  4540. type: Scalars['String'];
  4541. ui?: Maybe<Scalars['JSON']>;
  4542. };
  4543. export type Release = Node & StockMovement & {
  4544. __typename?: 'Release';
  4545. createdAt: Scalars['DateTime'];
  4546. id: Scalars['ID'];
  4547. orderItem: OrderItem;
  4548. productVariant: ProductVariant;
  4549. quantity: Scalars['Int'];
  4550. type: StockMovementType;
  4551. updatedAt: Scalars['DateTime'];
  4552. };
  4553. export type RemoveCollectionsFromChannelInput = {
  4554. channelId: Scalars['ID'];
  4555. collectionIds: Array<Scalars['ID']>;
  4556. };
  4557. export type RemoveFacetFromChannelResult = Facet | FacetInUseError;
  4558. export type RemoveFacetsFromChannelInput = {
  4559. channelId: Scalars['ID'];
  4560. facetIds: Array<Scalars['ID']>;
  4561. force?: InputMaybe<Scalars['Boolean']>;
  4562. };
  4563. export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError;
  4564. export type RemoveOrderItemsResult = Order | OrderModificationError;
  4565. export type RemoveProductVariantsFromChannelInput = {
  4566. channelId: Scalars['ID'];
  4567. productVariantIds: Array<Scalars['ID']>;
  4568. };
  4569. export type RemoveProductsFromChannelInput = {
  4570. channelId: Scalars['ID'];
  4571. productIds: Array<Scalars['ID']>;
  4572. };
  4573. export type RemovePromotionsFromChannelInput = {
  4574. channelId: Scalars['ID'];
  4575. promotionIds: Array<Scalars['ID']>;
  4576. };
  4577. export type Return = Node & StockMovement & {
  4578. __typename?: 'Return';
  4579. createdAt: Scalars['DateTime'];
  4580. id: Scalars['ID'];
  4581. orderItem: OrderItem;
  4582. productVariant: ProductVariant;
  4583. quantity: Scalars['Int'];
  4584. type: StockMovementType;
  4585. updatedAt: Scalars['DateTime'];
  4586. };
  4587. export type Role = Node & {
  4588. __typename?: 'Role';
  4589. channels: Array<Channel>;
  4590. code: Scalars['String'];
  4591. createdAt: Scalars['DateTime'];
  4592. description: Scalars['String'];
  4593. id: Scalars['ID'];
  4594. permissions: Array<Permission>;
  4595. updatedAt: Scalars['DateTime'];
  4596. };
  4597. export type RoleFilterParameter = {
  4598. code?: InputMaybe<StringOperators>;
  4599. createdAt?: InputMaybe<DateOperators>;
  4600. description?: InputMaybe<StringOperators>;
  4601. id?: InputMaybe<IdOperators>;
  4602. updatedAt?: InputMaybe<DateOperators>;
  4603. };
  4604. export type RoleList = PaginatedList & {
  4605. __typename?: 'RoleList';
  4606. items: Array<Role>;
  4607. totalItems: Scalars['Int'];
  4608. };
  4609. export type RoleListOptions = {
  4610. /** Allows the results to be filtered */
  4611. filter?: InputMaybe<RoleFilterParameter>;
  4612. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  4613. filterOperator?: InputMaybe<LogicalOperator>;
  4614. /** Skips the first n results, for use in pagination */
  4615. skip?: InputMaybe<Scalars['Int']>;
  4616. /** Specifies which properties to sort the results by */
  4617. sort?: InputMaybe<RoleSortParameter>;
  4618. /** Takes n results, for use in pagination */
  4619. take?: InputMaybe<Scalars['Int']>;
  4620. };
  4621. export type RoleSortParameter = {
  4622. code?: InputMaybe<SortOrder>;
  4623. createdAt?: InputMaybe<SortOrder>;
  4624. description?: InputMaybe<SortOrder>;
  4625. id?: InputMaybe<SortOrder>;
  4626. updatedAt?: InputMaybe<SortOrder>;
  4627. };
  4628. export type Sale = Node & StockMovement & {
  4629. __typename?: 'Sale';
  4630. createdAt: Scalars['DateTime'];
  4631. id: Scalars['ID'];
  4632. orderItem: OrderItem;
  4633. productVariant: ProductVariant;
  4634. quantity: Scalars['Int'];
  4635. type: StockMovementType;
  4636. updatedAt: Scalars['DateTime'];
  4637. };
  4638. export type SearchInput = {
  4639. collectionId?: InputMaybe<Scalars['ID']>;
  4640. collectionSlug?: InputMaybe<Scalars['String']>;
  4641. facetValueFilters?: InputMaybe<Array<FacetValueFilterInput>>;
  4642. /** @deprecated Use `facetValueFilters` instead */
  4643. facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
  4644. /** @deprecated Use `facetValueFilters` instead */
  4645. facetValueOperator?: InputMaybe<LogicalOperator>;
  4646. groupByProduct?: InputMaybe<Scalars['Boolean']>;
  4647. skip?: InputMaybe<Scalars['Int']>;
  4648. sort?: InputMaybe<SearchResultSortParameter>;
  4649. take?: InputMaybe<Scalars['Int']>;
  4650. term?: InputMaybe<Scalars['String']>;
  4651. };
  4652. export type SearchReindexResponse = {
  4653. __typename?: 'SearchReindexResponse';
  4654. success: Scalars['Boolean'];
  4655. };
  4656. export type SearchResponse = {
  4657. __typename?: 'SearchResponse';
  4658. collections: Array<CollectionResult>;
  4659. facetValues: Array<FacetValueResult>;
  4660. items: Array<SearchResult>;
  4661. totalItems: Scalars['Int'];
  4662. };
  4663. export type SearchResult = {
  4664. __typename?: 'SearchResult';
  4665. /** An array of ids of the Channels in which this result appears */
  4666. channelIds: Array<Scalars['ID']>;
  4667. /** An array of ids of the Collections in which this result appears */
  4668. collectionIds: Array<Scalars['ID']>;
  4669. currencyCode: CurrencyCode;
  4670. description: Scalars['String'];
  4671. enabled: Scalars['Boolean'];
  4672. facetIds: Array<Scalars['ID']>;
  4673. facetValueIds: Array<Scalars['ID']>;
  4674. price: SearchResultPrice;
  4675. priceWithTax: SearchResultPrice;
  4676. productAsset?: Maybe<SearchResultAsset>;
  4677. productId: Scalars['ID'];
  4678. productName: Scalars['String'];
  4679. productVariantAsset?: Maybe<SearchResultAsset>;
  4680. productVariantId: Scalars['ID'];
  4681. productVariantName: Scalars['String'];
  4682. /** A relevance score for the result. Differs between database implementations */
  4683. score: Scalars['Float'];
  4684. sku: Scalars['String'];
  4685. slug: Scalars['String'];
  4686. };
  4687. export type SearchResultAsset = {
  4688. __typename?: 'SearchResultAsset';
  4689. focalPoint?: Maybe<Coordinate>;
  4690. id: Scalars['ID'];
  4691. preview: Scalars['String'];
  4692. };
  4693. /** The price of a search result product, either as a range or as a single price */
  4694. export type SearchResultPrice = PriceRange | SinglePrice;
  4695. export type SearchResultSortParameter = {
  4696. name?: InputMaybe<SortOrder>;
  4697. price?: InputMaybe<SortOrder>;
  4698. };
  4699. export type Seller = Node & {
  4700. __typename?: 'Seller';
  4701. createdAt: Scalars['DateTime'];
  4702. customFields?: Maybe<Scalars['JSON']>;
  4703. id: Scalars['ID'];
  4704. name: Scalars['String'];
  4705. updatedAt: Scalars['DateTime'];
  4706. };
  4707. export type SellerFilterParameter = {
  4708. createdAt?: InputMaybe<DateOperators>;
  4709. id?: InputMaybe<IdOperators>;
  4710. name?: InputMaybe<StringOperators>;
  4711. updatedAt?: InputMaybe<DateOperators>;
  4712. };
  4713. export type SellerList = PaginatedList & {
  4714. __typename?: 'SellerList';
  4715. items: Array<Seller>;
  4716. totalItems: Scalars['Int'];
  4717. };
  4718. export type SellerListOptions = {
  4719. /** Allows the results to be filtered */
  4720. filter?: InputMaybe<SellerFilterParameter>;
  4721. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  4722. filterOperator?: InputMaybe<LogicalOperator>;
  4723. /** Skips the first n results, for use in pagination */
  4724. skip?: InputMaybe<Scalars['Int']>;
  4725. /** Specifies which properties to sort the results by */
  4726. sort?: InputMaybe<SellerSortParameter>;
  4727. /** Takes n results, for use in pagination */
  4728. take?: InputMaybe<Scalars['Int']>;
  4729. };
  4730. export type SellerSortParameter = {
  4731. createdAt?: InputMaybe<SortOrder>;
  4732. id?: InputMaybe<SortOrder>;
  4733. name?: InputMaybe<SortOrder>;
  4734. updatedAt?: InputMaybe<SortOrder>;
  4735. };
  4736. export type ServerConfig = {
  4737. __typename?: 'ServerConfig';
  4738. customFieldConfig: CustomFields;
  4739. orderProcess: Array<OrderProcessState>;
  4740. permissions: Array<PermissionDefinition>;
  4741. permittedAssetTypes: Array<Scalars['String']>;
  4742. };
  4743. export type SetCustomerForDraftOrderResult = EmailAddressConflictError | Order;
  4744. export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError;
  4745. /** Returned if the Payment settlement fails */
  4746. export type SettlePaymentError = ErrorResult & {
  4747. __typename?: 'SettlePaymentError';
  4748. errorCode: ErrorCode;
  4749. message: Scalars['String'];
  4750. paymentErrorMessage: Scalars['String'];
  4751. };
  4752. export type SettlePaymentResult = OrderStateTransitionError | Payment | PaymentStateTransitionError | SettlePaymentError;
  4753. export type SettleRefundInput = {
  4754. id: Scalars['ID'];
  4755. transactionId: Scalars['String'];
  4756. };
  4757. export type SettleRefundResult = Refund | RefundStateTransitionError;
  4758. export type ShippingLine = {
  4759. __typename?: 'ShippingLine';
  4760. discountedPrice: Scalars['Money'];
  4761. discountedPriceWithTax: Scalars['Money'];
  4762. discounts: Array<Discount>;
  4763. id: Scalars['ID'];
  4764. price: Scalars['Money'];
  4765. priceWithTax: Scalars['Money'];
  4766. shippingMethod: ShippingMethod;
  4767. };
  4768. export type ShippingMethod = Node & {
  4769. __typename?: 'ShippingMethod';
  4770. calculator: ConfigurableOperation;
  4771. checker: ConfigurableOperation;
  4772. code: Scalars['String'];
  4773. createdAt: Scalars['DateTime'];
  4774. customFields?: Maybe<Scalars['JSON']>;
  4775. description: Scalars['String'];
  4776. fulfillmentHandlerCode: Scalars['String'];
  4777. id: Scalars['ID'];
  4778. languageCode: LanguageCode;
  4779. name: Scalars['String'];
  4780. translations: Array<ShippingMethodTranslation>;
  4781. updatedAt: Scalars['DateTime'];
  4782. };
  4783. export type ShippingMethodFilterParameter = {
  4784. code?: InputMaybe<StringOperators>;
  4785. createdAt?: InputMaybe<DateOperators>;
  4786. description?: InputMaybe<StringOperators>;
  4787. fulfillmentHandlerCode?: InputMaybe<StringOperators>;
  4788. id?: InputMaybe<IdOperators>;
  4789. languageCode?: InputMaybe<StringOperators>;
  4790. name?: InputMaybe<StringOperators>;
  4791. updatedAt?: InputMaybe<DateOperators>;
  4792. };
  4793. export type ShippingMethodList = PaginatedList & {
  4794. __typename?: 'ShippingMethodList';
  4795. items: Array<ShippingMethod>;
  4796. totalItems: Scalars['Int'];
  4797. };
  4798. export type ShippingMethodListOptions = {
  4799. /** Allows the results to be filtered */
  4800. filter?: InputMaybe<ShippingMethodFilterParameter>;
  4801. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  4802. filterOperator?: InputMaybe<LogicalOperator>;
  4803. /** Skips the first n results, for use in pagination */
  4804. skip?: InputMaybe<Scalars['Int']>;
  4805. /** Specifies which properties to sort the results by */
  4806. sort?: InputMaybe<ShippingMethodSortParameter>;
  4807. /** Takes n results, for use in pagination */
  4808. take?: InputMaybe<Scalars['Int']>;
  4809. };
  4810. export type ShippingMethodQuote = {
  4811. __typename?: 'ShippingMethodQuote';
  4812. code: Scalars['String'];
  4813. customFields?: Maybe<Scalars['JSON']>;
  4814. description: Scalars['String'];
  4815. id: Scalars['ID'];
  4816. /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */
  4817. metadata?: Maybe<Scalars['JSON']>;
  4818. name: Scalars['String'];
  4819. price: Scalars['Money'];
  4820. priceWithTax: Scalars['Money'];
  4821. };
  4822. export type ShippingMethodSortParameter = {
  4823. code?: InputMaybe<SortOrder>;
  4824. createdAt?: InputMaybe<SortOrder>;
  4825. description?: InputMaybe<SortOrder>;
  4826. fulfillmentHandlerCode?: InputMaybe<SortOrder>;
  4827. id?: InputMaybe<SortOrder>;
  4828. name?: InputMaybe<SortOrder>;
  4829. updatedAt?: InputMaybe<SortOrder>;
  4830. };
  4831. export type ShippingMethodTranslation = {
  4832. __typename?: 'ShippingMethodTranslation';
  4833. createdAt: Scalars['DateTime'];
  4834. description: Scalars['String'];
  4835. id: Scalars['ID'];
  4836. languageCode: LanguageCode;
  4837. name: Scalars['String'];
  4838. updatedAt: Scalars['DateTime'];
  4839. };
  4840. export type ShippingMethodTranslationInput = {
  4841. customFields?: InputMaybe<Scalars['JSON']>;
  4842. description?: InputMaybe<Scalars['String']>;
  4843. id?: InputMaybe<Scalars['ID']>;
  4844. languageCode: LanguageCode;
  4845. name?: InputMaybe<Scalars['String']>;
  4846. };
  4847. /** The price value where the result has a single price */
  4848. export type SinglePrice = {
  4849. __typename?: 'SinglePrice';
  4850. value: Scalars['Money'];
  4851. };
  4852. export enum SortOrder {
  4853. ASC = 'ASC',
  4854. DESC = 'DESC'
  4855. }
  4856. export type StockAdjustment = Node & StockMovement & {
  4857. __typename?: 'StockAdjustment';
  4858. createdAt: Scalars['DateTime'];
  4859. id: Scalars['ID'];
  4860. productVariant: ProductVariant;
  4861. quantity: Scalars['Int'];
  4862. type: StockMovementType;
  4863. updatedAt: Scalars['DateTime'];
  4864. };
  4865. export type StockLevel = Node & {
  4866. __typename?: 'StockLevel';
  4867. createdAt: Scalars['DateTime'];
  4868. id: Scalars['ID'];
  4869. stockAllocated: Scalars['Int'];
  4870. stockLocation: StockLocation;
  4871. stockLocationId: Scalars['ID'];
  4872. stockOnHand: Scalars['Int'];
  4873. updatedAt: Scalars['DateTime'];
  4874. };
  4875. export type StockLevelInput = {
  4876. stockLocationId: Scalars['ID'];
  4877. stockOnHand: Scalars['Int'];
  4878. };
  4879. export type StockLocation = Node & {
  4880. __typename?: 'StockLocation';
  4881. createdAt: Scalars['DateTime'];
  4882. customFields?: Maybe<Scalars['JSON']>;
  4883. description: Scalars['String'];
  4884. id: Scalars['ID'];
  4885. name: Scalars['String'];
  4886. updatedAt: Scalars['DateTime'];
  4887. };
  4888. export type StockLocationFilterParameter = {
  4889. createdAt?: InputMaybe<DateOperators>;
  4890. description?: InputMaybe<StringOperators>;
  4891. id?: InputMaybe<IdOperators>;
  4892. name?: InputMaybe<StringOperators>;
  4893. updatedAt?: InputMaybe<DateOperators>;
  4894. };
  4895. export type StockLocationList = PaginatedList & {
  4896. __typename?: 'StockLocationList';
  4897. items: Array<StockLocation>;
  4898. totalItems: Scalars['Int'];
  4899. };
  4900. export type StockLocationListOptions = {
  4901. /** Allows the results to be filtered */
  4902. filter?: InputMaybe<StockLocationFilterParameter>;
  4903. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  4904. filterOperator?: InputMaybe<LogicalOperator>;
  4905. /** Skips the first n results, for use in pagination */
  4906. skip?: InputMaybe<Scalars['Int']>;
  4907. /** Specifies which properties to sort the results by */
  4908. sort?: InputMaybe<StockLocationSortParameter>;
  4909. /** Takes n results, for use in pagination */
  4910. take?: InputMaybe<Scalars['Int']>;
  4911. };
  4912. export type StockLocationSortParameter = {
  4913. createdAt?: InputMaybe<SortOrder>;
  4914. description?: InputMaybe<SortOrder>;
  4915. id?: InputMaybe<SortOrder>;
  4916. name?: InputMaybe<SortOrder>;
  4917. updatedAt?: InputMaybe<SortOrder>;
  4918. };
  4919. export type StockMovement = {
  4920. createdAt: Scalars['DateTime'];
  4921. id: Scalars['ID'];
  4922. productVariant: ProductVariant;
  4923. quantity: Scalars['Int'];
  4924. type: StockMovementType;
  4925. updatedAt: Scalars['DateTime'];
  4926. };
  4927. export type StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment;
  4928. export type StockMovementList = {
  4929. __typename?: 'StockMovementList';
  4930. items: Array<StockMovementItem>;
  4931. totalItems: Scalars['Int'];
  4932. };
  4933. export type StockMovementListOptions = {
  4934. skip?: InputMaybe<Scalars['Int']>;
  4935. take?: InputMaybe<Scalars['Int']>;
  4936. type?: InputMaybe<StockMovementType>;
  4937. };
  4938. export enum StockMovementType {
  4939. ADJUSTMENT = 'ADJUSTMENT',
  4940. ALLOCATION = 'ALLOCATION',
  4941. CANCELLATION = 'CANCELLATION',
  4942. RELEASE = 'RELEASE',
  4943. RETURN = 'RETURN',
  4944. SALE = 'SALE'
  4945. }
  4946. export type StringCustomFieldConfig = CustomField & {
  4947. __typename?: 'StringCustomFieldConfig';
  4948. description?: Maybe<Array<LocalizedString>>;
  4949. internal?: Maybe<Scalars['Boolean']>;
  4950. label?: Maybe<Array<LocalizedString>>;
  4951. length?: Maybe<Scalars['Int']>;
  4952. list: Scalars['Boolean'];
  4953. name: Scalars['String'];
  4954. nullable?: Maybe<Scalars['Boolean']>;
  4955. options?: Maybe<Array<StringFieldOption>>;
  4956. pattern?: Maybe<Scalars['String']>;
  4957. readonly?: Maybe<Scalars['Boolean']>;
  4958. type: Scalars['String'];
  4959. ui?: Maybe<Scalars['JSON']>;
  4960. };
  4961. export type StringFieldOption = {
  4962. __typename?: 'StringFieldOption';
  4963. label?: Maybe<Array<LocalizedString>>;
  4964. value: Scalars['String'];
  4965. };
  4966. /** Operators for filtering on a list of String fields */
  4967. export type StringListOperators = {
  4968. inList: Scalars['String'];
  4969. };
  4970. /** Operators for filtering on a String field */
  4971. export type StringOperators = {
  4972. contains?: InputMaybe<Scalars['String']>;
  4973. eq?: InputMaybe<Scalars['String']>;
  4974. in?: InputMaybe<Array<Scalars['String']>>;
  4975. isNull?: InputMaybe<Scalars['Boolean']>;
  4976. notContains?: InputMaybe<Scalars['String']>;
  4977. notEq?: InputMaybe<Scalars['String']>;
  4978. notIn?: InputMaybe<Array<Scalars['String']>>;
  4979. regex?: InputMaybe<Scalars['String']>;
  4980. };
  4981. /** Indicates that an operation succeeded, where we do not want to return any more specific information. */
  4982. export type Success = {
  4983. __typename?: 'Success';
  4984. success: Scalars['Boolean'];
  4985. };
  4986. export type Surcharge = Node & {
  4987. __typename?: 'Surcharge';
  4988. createdAt: Scalars['DateTime'];
  4989. description: Scalars['String'];
  4990. id: Scalars['ID'];
  4991. price: Scalars['Money'];
  4992. priceWithTax: Scalars['Money'];
  4993. sku?: Maybe<Scalars['String']>;
  4994. taxLines: Array<TaxLine>;
  4995. taxRate: Scalars['Float'];
  4996. updatedAt: Scalars['DateTime'];
  4997. };
  4998. export type SurchargeInput = {
  4999. description: Scalars['String'];
  5000. price: Scalars['Money'];
  5001. priceIncludesTax: Scalars['Boolean'];
  5002. sku?: InputMaybe<Scalars['String']>;
  5003. taxDescription?: InputMaybe<Scalars['String']>;
  5004. taxRate?: InputMaybe<Scalars['Float']>;
  5005. };
  5006. export type Tag = Node & {
  5007. __typename?: 'Tag';
  5008. createdAt: Scalars['DateTime'];
  5009. id: Scalars['ID'];
  5010. updatedAt: Scalars['DateTime'];
  5011. value: Scalars['String'];
  5012. };
  5013. export type TagFilterParameter = {
  5014. createdAt?: InputMaybe<DateOperators>;
  5015. id?: InputMaybe<IdOperators>;
  5016. updatedAt?: InputMaybe<DateOperators>;
  5017. value?: InputMaybe<StringOperators>;
  5018. };
  5019. export type TagList = PaginatedList & {
  5020. __typename?: 'TagList';
  5021. items: Array<Tag>;
  5022. totalItems: Scalars['Int'];
  5023. };
  5024. export type TagListOptions = {
  5025. /** Allows the results to be filtered */
  5026. filter?: InputMaybe<TagFilterParameter>;
  5027. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  5028. filterOperator?: InputMaybe<LogicalOperator>;
  5029. /** Skips the first n results, for use in pagination */
  5030. skip?: InputMaybe<Scalars['Int']>;
  5031. /** Specifies which properties to sort the results by */
  5032. sort?: InputMaybe<TagSortParameter>;
  5033. /** Takes n results, for use in pagination */
  5034. take?: InputMaybe<Scalars['Int']>;
  5035. };
  5036. export type TagSortParameter = {
  5037. createdAt?: InputMaybe<SortOrder>;
  5038. id?: InputMaybe<SortOrder>;
  5039. updatedAt?: InputMaybe<SortOrder>;
  5040. value?: InputMaybe<SortOrder>;
  5041. };
  5042. export type TaxCategory = Node & {
  5043. __typename?: 'TaxCategory';
  5044. createdAt: Scalars['DateTime'];
  5045. customFields?: Maybe<Scalars['JSON']>;
  5046. id: Scalars['ID'];
  5047. isDefault: Scalars['Boolean'];
  5048. name: Scalars['String'];
  5049. updatedAt: Scalars['DateTime'];
  5050. };
  5051. export type TaxCategoryFilterParameter = {
  5052. createdAt?: InputMaybe<DateOperators>;
  5053. id?: InputMaybe<IdOperators>;
  5054. isDefault?: InputMaybe<BooleanOperators>;
  5055. name?: InputMaybe<StringOperators>;
  5056. updatedAt?: InputMaybe<DateOperators>;
  5057. };
  5058. export type TaxCategoryList = PaginatedList & {
  5059. __typename?: 'TaxCategoryList';
  5060. items: Array<TaxCategory>;
  5061. totalItems: Scalars['Int'];
  5062. };
  5063. export type TaxCategoryListOptions = {
  5064. /** Allows the results to be filtered */
  5065. filter?: InputMaybe<TaxCategoryFilterParameter>;
  5066. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  5067. filterOperator?: InputMaybe<LogicalOperator>;
  5068. /** Skips the first n results, for use in pagination */
  5069. skip?: InputMaybe<Scalars['Int']>;
  5070. /** Specifies which properties to sort the results by */
  5071. sort?: InputMaybe<TaxCategorySortParameter>;
  5072. /** Takes n results, for use in pagination */
  5073. take?: InputMaybe<Scalars['Int']>;
  5074. };
  5075. export type TaxCategorySortParameter = {
  5076. createdAt?: InputMaybe<SortOrder>;
  5077. id?: InputMaybe<SortOrder>;
  5078. name?: InputMaybe<SortOrder>;
  5079. updatedAt?: InputMaybe<SortOrder>;
  5080. };
  5081. export type TaxLine = {
  5082. __typename?: 'TaxLine';
  5083. description: Scalars['String'];
  5084. taxRate: Scalars['Float'];
  5085. };
  5086. export type TaxRate = Node & {
  5087. __typename?: 'TaxRate';
  5088. category: TaxCategory;
  5089. createdAt: Scalars['DateTime'];
  5090. customFields?: Maybe<Scalars['JSON']>;
  5091. customerGroup?: Maybe<CustomerGroup>;
  5092. enabled: Scalars['Boolean'];
  5093. id: Scalars['ID'];
  5094. name: Scalars['String'];
  5095. updatedAt: Scalars['DateTime'];
  5096. value: Scalars['Float'];
  5097. zone: Zone;
  5098. };
  5099. export type TaxRateFilterParameter = {
  5100. createdAt?: InputMaybe<DateOperators>;
  5101. enabled?: InputMaybe<BooleanOperators>;
  5102. id?: InputMaybe<IdOperators>;
  5103. name?: InputMaybe<StringOperators>;
  5104. updatedAt?: InputMaybe<DateOperators>;
  5105. value?: InputMaybe<NumberOperators>;
  5106. };
  5107. export type TaxRateList = PaginatedList & {
  5108. __typename?: 'TaxRateList';
  5109. items: Array<TaxRate>;
  5110. totalItems: Scalars['Int'];
  5111. };
  5112. export type TaxRateListOptions = {
  5113. /** Allows the results to be filtered */
  5114. filter?: InputMaybe<TaxRateFilterParameter>;
  5115. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  5116. filterOperator?: InputMaybe<LogicalOperator>;
  5117. /** Skips the first n results, for use in pagination */
  5118. skip?: InputMaybe<Scalars['Int']>;
  5119. /** Specifies which properties to sort the results by */
  5120. sort?: InputMaybe<TaxRateSortParameter>;
  5121. /** Takes n results, for use in pagination */
  5122. take?: InputMaybe<Scalars['Int']>;
  5123. };
  5124. export type TaxRateSortParameter = {
  5125. createdAt?: InputMaybe<SortOrder>;
  5126. id?: InputMaybe<SortOrder>;
  5127. name?: InputMaybe<SortOrder>;
  5128. updatedAt?: InputMaybe<SortOrder>;
  5129. value?: InputMaybe<SortOrder>;
  5130. };
  5131. export type TestEligibleShippingMethodsInput = {
  5132. lines: Array<TestShippingMethodOrderLineInput>;
  5133. shippingAddress: CreateAddressInput;
  5134. };
  5135. export type TestShippingMethodInput = {
  5136. calculator: ConfigurableOperationInput;
  5137. checker: ConfigurableOperationInput;
  5138. lines: Array<TestShippingMethodOrderLineInput>;
  5139. shippingAddress: CreateAddressInput;
  5140. };
  5141. export type TestShippingMethodOrderLineInput = {
  5142. productVariantId: Scalars['ID'];
  5143. quantity: Scalars['Int'];
  5144. };
  5145. export type TestShippingMethodQuote = {
  5146. __typename?: 'TestShippingMethodQuote';
  5147. metadata?: Maybe<Scalars['JSON']>;
  5148. price: Scalars['Money'];
  5149. priceWithTax: Scalars['Money'];
  5150. };
  5151. export type TestShippingMethodResult = {
  5152. __typename?: 'TestShippingMethodResult';
  5153. eligible: Scalars['Boolean'];
  5154. quote?: Maybe<TestShippingMethodQuote>;
  5155. };
  5156. export type TextCustomFieldConfig = CustomField & {
  5157. __typename?: 'TextCustomFieldConfig';
  5158. description?: Maybe<Array<LocalizedString>>;
  5159. internal?: Maybe<Scalars['Boolean']>;
  5160. label?: Maybe<Array<LocalizedString>>;
  5161. list: Scalars['Boolean'];
  5162. name: Scalars['String'];
  5163. nullable?: Maybe<Scalars['Boolean']>;
  5164. readonly?: Maybe<Scalars['Boolean']>;
  5165. type: Scalars['String'];
  5166. ui?: Maybe<Scalars['JSON']>;
  5167. };
  5168. export type TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError;
  5169. export type TransitionOrderToStateResult = Order | OrderStateTransitionError;
  5170. export type TransitionPaymentToStateResult = Payment | PaymentStateTransitionError;
  5171. export type UpdateActiveAdministratorInput = {
  5172. customFields?: InputMaybe<Scalars['JSON']>;
  5173. emailAddress?: InputMaybe<Scalars['String']>;
  5174. firstName?: InputMaybe<Scalars['String']>;
  5175. lastName?: InputMaybe<Scalars['String']>;
  5176. password?: InputMaybe<Scalars['String']>;
  5177. };
  5178. export type UpdateAddressInput = {
  5179. city?: InputMaybe<Scalars['String']>;
  5180. company?: InputMaybe<Scalars['String']>;
  5181. countryCode?: InputMaybe<Scalars['String']>;
  5182. customFields?: InputMaybe<Scalars['JSON']>;
  5183. defaultBillingAddress?: InputMaybe<Scalars['Boolean']>;
  5184. defaultShippingAddress?: InputMaybe<Scalars['Boolean']>;
  5185. fullName?: InputMaybe<Scalars['String']>;
  5186. id: Scalars['ID'];
  5187. phoneNumber?: InputMaybe<Scalars['String']>;
  5188. postalCode?: InputMaybe<Scalars['String']>;
  5189. province?: InputMaybe<Scalars['String']>;
  5190. streetLine1?: InputMaybe<Scalars['String']>;
  5191. streetLine2?: InputMaybe<Scalars['String']>;
  5192. };
  5193. export type UpdateAdministratorInput = {
  5194. customFields?: InputMaybe<Scalars['JSON']>;
  5195. emailAddress?: InputMaybe<Scalars['String']>;
  5196. firstName?: InputMaybe<Scalars['String']>;
  5197. id: Scalars['ID'];
  5198. lastName?: InputMaybe<Scalars['String']>;
  5199. password?: InputMaybe<Scalars['String']>;
  5200. roleIds?: InputMaybe<Array<Scalars['ID']>>;
  5201. };
  5202. export type UpdateAssetInput = {
  5203. customFields?: InputMaybe<Scalars['JSON']>;
  5204. focalPoint?: InputMaybe<CoordinateInput>;
  5205. id: Scalars['ID'];
  5206. name?: InputMaybe<Scalars['String']>;
  5207. tags?: InputMaybe<Array<Scalars['String']>>;
  5208. };
  5209. export type UpdateChannelInput = {
  5210. availableCurrencyCodes?: InputMaybe<Array<CurrencyCode>>;
  5211. availableLanguageCodes?: InputMaybe<Array<LanguageCode>>;
  5212. code?: InputMaybe<Scalars['String']>;
  5213. currencyCode?: InputMaybe<CurrencyCode>;
  5214. customFields?: InputMaybe<Scalars['JSON']>;
  5215. defaultLanguageCode?: InputMaybe<LanguageCode>;
  5216. defaultShippingZoneId?: InputMaybe<Scalars['ID']>;
  5217. defaultTaxZoneId?: InputMaybe<Scalars['ID']>;
  5218. id: Scalars['ID'];
  5219. outOfStockThreshold?: InputMaybe<Scalars['Int']>;
  5220. pricesIncludeTax?: InputMaybe<Scalars['Boolean']>;
  5221. sellerId?: InputMaybe<Scalars['ID']>;
  5222. token?: InputMaybe<Scalars['String']>;
  5223. trackInventory?: InputMaybe<Scalars['Boolean']>;
  5224. };
  5225. export type UpdateChannelResult = Channel | LanguageNotAvailableError;
  5226. export type UpdateCollectionInput = {
  5227. assetIds?: InputMaybe<Array<Scalars['ID']>>;
  5228. customFields?: InputMaybe<Scalars['JSON']>;
  5229. featuredAssetId?: InputMaybe<Scalars['ID']>;
  5230. filters?: InputMaybe<Array<ConfigurableOperationInput>>;
  5231. id: Scalars['ID'];
  5232. inheritFilters?: InputMaybe<Scalars['Boolean']>;
  5233. isPrivate?: InputMaybe<Scalars['Boolean']>;
  5234. parentId?: InputMaybe<Scalars['ID']>;
  5235. translations?: InputMaybe<Array<UpdateCollectionTranslationInput>>;
  5236. };
  5237. export type UpdateCollectionTranslationInput = {
  5238. customFields?: InputMaybe<Scalars['JSON']>;
  5239. description?: InputMaybe<Scalars['String']>;
  5240. id?: InputMaybe<Scalars['ID']>;
  5241. languageCode: LanguageCode;
  5242. name?: InputMaybe<Scalars['String']>;
  5243. slug?: InputMaybe<Scalars['String']>;
  5244. };
  5245. export type UpdateCountryInput = {
  5246. code?: InputMaybe<Scalars['String']>;
  5247. customFields?: InputMaybe<Scalars['JSON']>;
  5248. enabled?: InputMaybe<Scalars['Boolean']>;
  5249. id: Scalars['ID'];
  5250. translations?: InputMaybe<Array<CountryTranslationInput>>;
  5251. };
  5252. export type UpdateCustomerGroupInput = {
  5253. customFields?: InputMaybe<Scalars['JSON']>;
  5254. id: Scalars['ID'];
  5255. name?: InputMaybe<Scalars['String']>;
  5256. };
  5257. export type UpdateCustomerInput = {
  5258. customFields?: InputMaybe<Scalars['JSON']>;
  5259. emailAddress?: InputMaybe<Scalars['String']>;
  5260. firstName?: InputMaybe<Scalars['String']>;
  5261. id: Scalars['ID'];
  5262. lastName?: InputMaybe<Scalars['String']>;
  5263. phoneNumber?: InputMaybe<Scalars['String']>;
  5264. title?: InputMaybe<Scalars['String']>;
  5265. };
  5266. export type UpdateCustomerNoteInput = {
  5267. note: Scalars['String'];
  5268. noteId: Scalars['ID'];
  5269. };
  5270. export type UpdateCustomerResult = Customer | EmailAddressConflictError;
  5271. export type UpdateFacetInput = {
  5272. code?: InputMaybe<Scalars['String']>;
  5273. customFields?: InputMaybe<Scalars['JSON']>;
  5274. id: Scalars['ID'];
  5275. isPrivate?: InputMaybe<Scalars['Boolean']>;
  5276. translations?: InputMaybe<Array<FacetTranslationInput>>;
  5277. };
  5278. export type UpdateFacetValueInput = {
  5279. code?: InputMaybe<Scalars['String']>;
  5280. customFields?: InputMaybe<Scalars['JSON']>;
  5281. id: Scalars['ID'];
  5282. translations?: InputMaybe<Array<FacetValueTranslationInput>>;
  5283. };
  5284. export type UpdateGlobalSettingsInput = {
  5285. availableLanguages?: InputMaybe<Array<LanguageCode>>;
  5286. customFields?: InputMaybe<Scalars['JSON']>;
  5287. outOfStockThreshold?: InputMaybe<Scalars['Int']>;
  5288. trackInventory?: InputMaybe<Scalars['Boolean']>;
  5289. };
  5290. export type UpdateGlobalSettingsResult = ChannelDefaultLanguageError | GlobalSettings;
  5291. export type UpdateOrderAddressInput = {
  5292. city?: InputMaybe<Scalars['String']>;
  5293. company?: InputMaybe<Scalars['String']>;
  5294. countryCode?: InputMaybe<Scalars['String']>;
  5295. fullName?: InputMaybe<Scalars['String']>;
  5296. phoneNumber?: InputMaybe<Scalars['String']>;
  5297. postalCode?: InputMaybe<Scalars['String']>;
  5298. province?: InputMaybe<Scalars['String']>;
  5299. streetLine1?: InputMaybe<Scalars['String']>;
  5300. streetLine2?: InputMaybe<Scalars['String']>;
  5301. };
  5302. export type UpdateOrderInput = {
  5303. customFields?: InputMaybe<Scalars['JSON']>;
  5304. id: Scalars['ID'];
  5305. };
  5306. export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError;
  5307. export type UpdateOrderNoteInput = {
  5308. isPublic?: InputMaybe<Scalars['Boolean']>;
  5309. note?: InputMaybe<Scalars['String']>;
  5310. noteId: Scalars['ID'];
  5311. };
  5312. export type UpdatePaymentMethodInput = {
  5313. checker?: InputMaybe<ConfigurableOperationInput>;
  5314. code?: InputMaybe<Scalars['String']>;
  5315. customFields?: InputMaybe<Scalars['JSON']>;
  5316. enabled?: InputMaybe<Scalars['Boolean']>;
  5317. handler?: InputMaybe<ConfigurableOperationInput>;
  5318. id: Scalars['ID'];
  5319. translations?: InputMaybe<Array<PaymentMethodTranslationInput>>;
  5320. };
  5321. export type UpdateProductInput = {
  5322. assetIds?: InputMaybe<Array<Scalars['ID']>>;
  5323. customFields?: InputMaybe<Scalars['JSON']>;
  5324. enabled?: InputMaybe<Scalars['Boolean']>;
  5325. facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
  5326. featuredAssetId?: InputMaybe<Scalars['ID']>;
  5327. id: Scalars['ID'];
  5328. translations?: InputMaybe<Array<ProductTranslationInput>>;
  5329. };
  5330. export type UpdateProductOptionGroupInput = {
  5331. code?: InputMaybe<Scalars['String']>;
  5332. customFields?: InputMaybe<Scalars['JSON']>;
  5333. id: Scalars['ID'];
  5334. translations?: InputMaybe<Array<ProductOptionGroupTranslationInput>>;
  5335. };
  5336. export type UpdateProductOptionInput = {
  5337. code?: InputMaybe<Scalars['String']>;
  5338. customFields?: InputMaybe<Scalars['JSON']>;
  5339. id: Scalars['ID'];
  5340. translations?: InputMaybe<Array<ProductOptionGroupTranslationInput>>;
  5341. };
  5342. export type UpdateProductVariantInput = {
  5343. assetIds?: InputMaybe<Array<Scalars['ID']>>;
  5344. customFields?: InputMaybe<Scalars['JSON']>;
  5345. enabled?: InputMaybe<Scalars['Boolean']>;
  5346. facetValueIds?: InputMaybe<Array<Scalars['ID']>>;
  5347. featuredAssetId?: InputMaybe<Scalars['ID']>;
  5348. id: Scalars['ID'];
  5349. optionIds?: InputMaybe<Array<Scalars['ID']>>;
  5350. outOfStockThreshold?: InputMaybe<Scalars['Int']>;
  5351. price?: InputMaybe<Scalars['Money']>;
  5352. sku?: InputMaybe<Scalars['String']>;
  5353. stockLevels?: InputMaybe<Array<StockLevelInput>>;
  5354. stockOnHand?: InputMaybe<Scalars['Int']>;
  5355. taxCategoryId?: InputMaybe<Scalars['ID']>;
  5356. trackInventory?: InputMaybe<GlobalFlag>;
  5357. translations?: InputMaybe<Array<ProductVariantTranslationInput>>;
  5358. useGlobalOutOfStockThreshold?: InputMaybe<Scalars['Boolean']>;
  5359. };
  5360. export type UpdatePromotionInput = {
  5361. actions?: InputMaybe<Array<ConfigurableOperationInput>>;
  5362. conditions?: InputMaybe<Array<ConfigurableOperationInput>>;
  5363. couponCode?: InputMaybe<Scalars['String']>;
  5364. customFields?: InputMaybe<Scalars['JSON']>;
  5365. enabled?: InputMaybe<Scalars['Boolean']>;
  5366. endsAt?: InputMaybe<Scalars['DateTime']>;
  5367. id: Scalars['ID'];
  5368. perCustomerUsageLimit?: InputMaybe<Scalars['Int']>;
  5369. startsAt?: InputMaybe<Scalars['DateTime']>;
  5370. translations?: InputMaybe<Array<PromotionTranslationInput>>;
  5371. };
  5372. export type UpdatePromotionResult = MissingConditionsError | Promotion;
  5373. export type UpdateProvinceInput = {
  5374. code?: InputMaybe<Scalars['String']>;
  5375. customFields?: InputMaybe<Scalars['JSON']>;
  5376. enabled?: InputMaybe<Scalars['Boolean']>;
  5377. id: Scalars['ID'];
  5378. translations?: InputMaybe<Array<ProvinceTranslationInput>>;
  5379. };
  5380. export type UpdateRoleInput = {
  5381. channelIds?: InputMaybe<Array<Scalars['ID']>>;
  5382. code?: InputMaybe<Scalars['String']>;
  5383. description?: InputMaybe<Scalars['String']>;
  5384. id: Scalars['ID'];
  5385. permissions?: InputMaybe<Array<Permission>>;
  5386. };
  5387. export type UpdateSellerInput = {
  5388. customFields?: InputMaybe<Scalars['JSON']>;
  5389. id: Scalars['ID'];
  5390. name?: InputMaybe<Scalars['String']>;
  5391. };
  5392. export type UpdateShippingMethodInput = {
  5393. calculator?: InputMaybe<ConfigurableOperationInput>;
  5394. checker?: InputMaybe<ConfigurableOperationInput>;
  5395. code?: InputMaybe<Scalars['String']>;
  5396. customFields?: InputMaybe<Scalars['JSON']>;
  5397. fulfillmentHandler?: InputMaybe<Scalars['String']>;
  5398. id: Scalars['ID'];
  5399. translations: Array<ShippingMethodTranslationInput>;
  5400. };
  5401. export type UpdateStockLocationInput = {
  5402. customFields?: InputMaybe<Scalars['JSON']>;
  5403. description?: InputMaybe<Scalars['String']>;
  5404. id: Scalars['ID'];
  5405. name?: InputMaybe<Scalars['String']>;
  5406. };
  5407. export type UpdateTagInput = {
  5408. id: Scalars['ID'];
  5409. value?: InputMaybe<Scalars['String']>;
  5410. };
  5411. export type UpdateTaxCategoryInput = {
  5412. customFields?: InputMaybe<Scalars['JSON']>;
  5413. id: Scalars['ID'];
  5414. isDefault?: InputMaybe<Scalars['Boolean']>;
  5415. name?: InputMaybe<Scalars['String']>;
  5416. };
  5417. export type UpdateTaxRateInput = {
  5418. categoryId?: InputMaybe<Scalars['ID']>;
  5419. customFields?: InputMaybe<Scalars['JSON']>;
  5420. customerGroupId?: InputMaybe<Scalars['ID']>;
  5421. enabled?: InputMaybe<Scalars['Boolean']>;
  5422. id: Scalars['ID'];
  5423. name?: InputMaybe<Scalars['String']>;
  5424. value?: InputMaybe<Scalars['Float']>;
  5425. zoneId?: InputMaybe<Scalars['ID']>;
  5426. };
  5427. export type UpdateZoneInput = {
  5428. customFields?: InputMaybe<Scalars['JSON']>;
  5429. id: Scalars['ID'];
  5430. name?: InputMaybe<Scalars['String']>;
  5431. };
  5432. export type User = Node & {
  5433. __typename?: 'User';
  5434. authenticationMethods: Array<AuthenticationMethod>;
  5435. createdAt: Scalars['DateTime'];
  5436. customFields?: Maybe<Scalars['JSON']>;
  5437. id: Scalars['ID'];
  5438. identifier: Scalars['String'];
  5439. lastLogin?: Maybe<Scalars['DateTime']>;
  5440. roles: Array<Role>;
  5441. updatedAt: Scalars['DateTime'];
  5442. verified: Scalars['Boolean'];
  5443. };
  5444. export type Zone = Node & {
  5445. __typename?: 'Zone';
  5446. createdAt: Scalars['DateTime'];
  5447. customFields?: Maybe<Scalars['JSON']>;
  5448. id: Scalars['ID'];
  5449. members: Array<Region>;
  5450. name: Scalars['String'];
  5451. updatedAt: Scalars['DateTime'];
  5452. };
  5453. export type ZoneFilterParameter = {
  5454. createdAt?: InputMaybe<DateOperators>;
  5455. id?: InputMaybe<IdOperators>;
  5456. name?: InputMaybe<StringOperators>;
  5457. updatedAt?: InputMaybe<DateOperators>;
  5458. };
  5459. export type ZoneList = PaginatedList & {
  5460. __typename?: 'ZoneList';
  5461. items: Array<Zone>;
  5462. totalItems: Scalars['Int'];
  5463. };
  5464. export type ZoneListOptions = {
  5465. /** Allows the results to be filtered */
  5466. filter?: InputMaybe<ZoneFilterParameter>;
  5467. /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */
  5468. filterOperator?: InputMaybe<LogicalOperator>;
  5469. /** Skips the first n results, for use in pagination */
  5470. skip?: InputMaybe<Scalars['Int']>;
  5471. /** Specifies which properties to sort the results by */
  5472. sort?: InputMaybe<ZoneSortParameter>;
  5473. /** Takes n results, for use in pagination */
  5474. take?: InputMaybe<Scalars['Int']>;
  5475. };
  5476. export type ZoneSortParameter = {
  5477. createdAt?: InputMaybe<SortOrder>;
  5478. id?: InputMaybe<SortOrder>;
  5479. name?: InputMaybe<SortOrder>;
  5480. updatedAt?: InputMaybe<SortOrder>;
  5481. };