generated-types.ts 146 KB

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