@faststore/api 1.9.1 → 1.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var n=require("@graphql-tools/schema"),i=e(require("isomorphic-unfetch")),t=e(require("dataloader")),a=e(require("p-limit")),r=e(require("fast-deep-equal")),o=e(require("crypto")),l=require("graphql"),d=require("graphql/language");const u=async(e,n)=>{const t=await i(e,n);if(t.ok)return 204!==t.status?t.json():void 0;console.error(e,n,t);const a=await t.text();throw new Error(a)},s={method:"POST",headers:{"content-type":"application/json"}},c=new Set(["trade-policy","region-id"]),m=({account:e,environment:n,hideUnavailableItems:i},t)=>{const a=`https://${e}.${n}.com.br/api/io`,r=({query:e="",page:n,count:r,sort:o="",selectedFacets:l=[],type:d,fuzzy:s="0"})=>{const m=new URLSearchParams({page:(n+1).toString(),count:r.toString(),query:e,sort:o,fuzzy:s,locale:t.storage.locale});void 0!==i&&m.append("hideUnavailableItems",i.toString());const p=(e=>{var n,i;const a=e.filter(({key:e})=>!c.has(e)),r=null!=(n=e.find(({key:e})=>"trade-policy"===e))?n:(()=>{const{salesChannel:e}=t.storage.channel;return e?{key:"trade-policy",value:e}:null})(),o=null!=(i=e.find(({key:e})=>"region-id"===e))?i:(()=>{const{regionId:e}=t.storage.channel;return e?{key:"region-id",value:e}:null})();return null!==r&&a.push(r),null!==o&&a.push(o),a})(l).map(({key:e,value:n})=>`${e}/${n}`).join("/");return u(`${a}/_v/api/intelligent-search/${d}/${p}?${m.toString()}`)};return{facets:e=>r({...e,type:"facets"}),products:e=>r({...e,type:"product_search"}),suggestedTerms:e=>{var n,i;const r=new URLSearchParams({query:null!=(n=null==(i=e.query)?void 0:i.toString())?n:"",locale:t.storage.locale});return u(`${a}/_v/api/intelligent-search/search_suggestions?${r.toString()}`)},topSearches:()=>{const e=new URLSearchParams({locale:t.storage.locale});return u(`${a}/_v/api/intelligent-search/top_searches?${e.toString()}`)}}},p=()=>(1e6*Math.random()).toFixed(0),k=e=>{let n=p(),i=Date.now();return()=>{var t;return t=i,(Date.now()-t)/1e3>e&&(n=p(),i=Date.now()),n}},y={anonymous:k(31536e3),session:k(1800)};class g extends Error{constructor(e){super(e),this.name="BadRequestError"}}class v extends Error{constructor(e){super(e),this.name="NotFoundError"}}const f=(e,n)=>({...e,isVariantOf:n}),N=new Set(["brand","category","department","subcategory"]),S=e=>"string"==typeof e.pageType&&N.has(e.pageType.toLowerCase()),h=e=>e.AvailableQuantity>0,T=e=>{var n;return null!=(n=e.spotPrice)?n:0},b=e=>e?"https://schema.org/InStock":"https://schema.org/OutOfStock",V=(e,n)=>h(e)&&!h(n)?-1:!h(e)&&h(n)?1:T(e)-T(n),D={highPrice:e=>{var n,i;const t=e.filter(h);return null!=(n=null==(i=t[t.length-1])?void 0:i.Price)?n:0},lowPrice:e=>{var n,i;return null!=(n=null==(i=e.filter(h)[0])?void 0:i.Price)?n:0},offerCount:e=>e.length,priceCurrency:()=>"",offers:e=>e},I="ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a";function O(e){return(e=>e.replace(/[·/_,:]/,"-"))((e=>{let n=e.slice(0);for(let e=0;e<I.length;e++)n=n.replace(new RegExp(I.charAt(e),"g"),"AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa".charAt(e));return n})(e.replace(/,/g,"").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g,"-"))).toLowerCase()}const F=e=>"brand"===e.type||S(e)&&"brand"===e.pageType.toLowerCase(),C=e=>F(e)?O(e.name):S(e)?new URL("https://"+e.url).pathname.slice(1).toLowerCase():new URL(e.url).pathname.slice(1).toLowerCase(),P={id:({id:e})=>e.toString(),slug:e=>C(e),seo:e=>F(e)||S(e)?{title:e.title,description:e.metaTagDescription}:{title:e.Title,description:e.MetaTagDescription},type:e=>F(e)?"Brand":S(e)?e.pageType:0===e.level?"Department":"Category",meta:e=>{const n=C(e);return F(e)?{selectedFacets:[{key:"brand",value:n}]}:{selectedFacets:n.split("/").map((e,n)=>({key:"category-"+(n+1),value:e}))}},breadcrumbList:async(e,n,i)=>{const{loaders:{collectionLoader:t}}=i,a=C(e).split("/").filter(e=>Boolean(e)),r=a.map((e,n)=>a.slice(0,n+1).join("/")),o=await Promise.all(r.map(e=>t.load(e)));return{itemListElement:o.map((e,n)=>({item:new URL("https://"+e.url).pathname.toLowerCase(),name:e.name,position:n+1})),numberOfItems:o.length}}},w=e=>o.createHash("md5").update(e).digest("hex");function L(e){return{name:e.name,value:e.content,valueReference:"ATTACHMENT"}}function A(e){return w(`${e.name}:${JSON.stringify(e.value)}:${e.valueReference}`)}const R=e=>"ATTACHMENT"===e.valueReference,E=e=>{var n;return[e.itemOffered.sku,e.seller.identifier,e.price,null==(n=e.itemOffered.additionalProperty)?void 0:n.filter(R).map(A).join("-")].filter(Boolean).join("::")},q=(e,n)=>({listPrice:e.listPrice/100,price:e.sellingPrice/100,quantity:e.quantity,seller:{identifier:e.seller},itemOffered:{sku:e.id,image:[],name:e.name,additionalProperty:e.attachments.map(L)},index:n}),j=e=>{var n,i;return{quantity:e.quantity,seller:e.seller.identifier,id:e.itemOffered.sku,index:e.index,attachments:(null!=(n=null==(i=e.itemOffered.additionalProperty)?void 0:i.filter(R))?n:[]).map(e=>({name:e.name,content:e.value}))}},x=e=>e.reduce((e,n)=>{var i;const t=E(n);return e.set(t,null!=(i=e.get(t))?i:n),e},new Map),U=(e,n)=>({order:{orderNumber:e.orderFormId,acceptedOffer:e.items.map(e=>({...e,product:n.load([{key:"id",value:e.id}])}))},messages:e.messages.map(({text:e,status:n})=>({text:e,status:n.toUpperCase()}))}),G=({items:e})=>w(JSON.stringify(e)),B=async(e,n)=>{try{return await n.checkout.setCustomData({id:e.orderFormId,appId:"faststore",key:"cartEtag",value:G(e)})}catch(e){throw console.error('Error while setting custom data to orderForm.\n Make sure to add the following custom app to the orderForm: \n{"fields":["cartEtag"],"id":"faststore","major":1}.\n More info at: https://developers.vtex.com/vtex-rest-api/docs/customizable-fields-with-checkout-api'),e}};class M{static parse(e){try{var n,i;const t=JSON.parse(e);return{regionId:null!=(n=t.regionId)?n:"",salesChannel:null!=(i=t.salesChannel)?i:""}}catch(e){throw console.error(e),new Error("Malformed channel string")}}static stringify(e){return JSON.stringify(e)}}const $={validateCart:async(e,{cart:{order:n}},i)=>{const{enableOrderFormSync:t}=i.storage.flags,{orderNumber:a,acceptedOffer:o}=n,{clients:{commerce:l},loaders:{skuLoader:d}}=i,u=await l.checkout.orderForm({id:a});if(!0===t&&!0===(e=>{var n,i;const t=null==(n=e.customData)?void 0:n.customApps.find(e=>"faststore"===e.id),a=null==t||null==(i=t.fields)?void 0:i.cartEtag;return null==a||G(e)!==a})(u)&&a){const e=await B(u,l);return U(e,d)}const s=x(o),c=x(u.items.map(q)),m=Array.from(s.values()),p=Array.from(c.values()),{itemsToAdd:k,itemsToUpdate:y}=m.reduce((e,n)=>{const i=c.get(E(n));return i?e.itemsToUpdate.push({...i,quantity:n.quantity}):e.itemsToAdd.push(n),e},{itemsToAdd:[],itemsToUpdate:[]}),g=[...k,...y,...p.filter(e=>!s.has(E(e))).map(e=>({...e,quantity:0}))].map(j);if(0===g.length)return null;const v=await l.checkout.updateOrderFormItems({id:u.orderFormId,orderItems:g}).then(e=>t?B(e,l):e);return((e,n)=>{const i=(e,n)=>({...e,itemOffered:{sku:e.itemOffered.sku},index:n}),t=n.items.map(q).map(i),a=e.acceptedOffer.map(i),o=e.orderNumber===n.orderFormId,l=r(t,a);return o&&l})(n,v)?null:U(v,d)},validateSession:async(e,{session:n,search:i},{clients:t})=>{var a,o,l,d,u,s,c,m,p,k,y,g,v,f,N,S,h,T,b,V,D;const I=M.parse(null!=(a=n.channel)?a:""),O=String(null!=(o=n.postalCode)?o:"").replace(/\D/g,""),F=null!=(l=n.country)?l:"",C=new URLSearchParams(i);C.set("sc",null!=(d=C.get("sc"))?d:I.salesChannel);const[P,w]=await Promise.all([O?t.commerce.checkout.region({postalCode:O,country:F}):Promise.resolve(null),t.commerce.session(C.toString()).catch(()=>null)]),L=null!=(u=null==w?void 0:w.namespaces.profile)?u:null,A=null!=(s=null==w?void 0:w.namespaces.store)?s:null,R={...n,currency:{code:null!=(c=null==A?void 0:A.currencyCode.value)?c:n.currency.code,symbol:null!=(m=null==A?void 0:A.currencySymbol.value)?m:n.currency.symbol},country:null!=(p=null==A?void 0:A.countryCode.value)?p:n.country,channel:M.stringify({salesChannel:null!=(k=null==A||null==(y=A.channel)?void 0:y.value)?k:I.salesChannel,regionId:null!=(g=null==P||null==(v=P[0])?void 0:v.id)?g:I.regionId}),person:null!=L&&L.id?{id:null!=(f=null==(N=L.id)?void 0:N.value)?f:"",email:null!=(S=null==(h=L.email)?void 0:h.value)?S:"",givenName:null!=(T=null==(b=L.firstName)?void 0:b.value)?T:"",familyName:null!=(V=null==(D=L.lastName)?void 0:D.value)?V:""}:null};return r(n,R)?null:R}},z=e=>"Price"in e&&"seller"in e&&"product"in e,Q=e=>"skuName"in e,_={priceCurrency:()=>"",priceValidUntil:e=>{var n,i;return z(e)?null!=(n=e.PriceValidUntil)?n:"":Q(e)?null!=(i=e.priceValidUntil)?i:"":null},itemCondition:()=>"https://schema.org/NewCondition",availability:async e=>z(e)?b(h(e)):Q(e)?b("available"===e.availability):null,seller:e=>{var n;return z(e)?{identifier:null!=(n=e.seller.sellerId)?n:""}:Q(e)?{identifier:e.seller}:null},price:e=>z(e)?T(e):Q(e)?e.sellingPrice/100:null,sellingPrice:e=>{return z(e)?null!=(n=e.Price)?n:0:Q(e)?e.sellingPrice/100:null;var n},listPrice:e=>z(e)?e.ListPrice:Q(e)?e.listPrice/100:null,itemOffered:async e=>z(e)?e.product:Q(e)?{...await e.product,attachmentsValues:e.attachments}:null,quantity:e=>{var n;return z(e)?null!=(n=e.AvailableQuantity)?n:0:Q(e)?e.quantity:null}},K={imageText:"image",imageUrl:"https://storecomponents.vtexassets.com/assets/faststore/images/image___117a6d3e229a96ad0e0d0876352566e2.svg"},X=(e,n)=>`${e}-${n}`,J={productID:({itemId:e})=>e,name:({isVariantOf:e,name:n})=>null!=n?n:e.productName,slug:({isVariantOf:{linkText:e},itemId:n})=>X(e,n),description:({isVariantOf:{description:e}})=>e,seo:({isVariantOf:{description:e,productName:n}})=>({title:n,description:e}),brand:({isVariantOf:{brand:e}})=>({name:e}),breadcrumbList:({isVariantOf:{categories:e,productName:n,linkText:i},itemId:t})=>{return{itemListElement:[...e.reverse().map((e,n)=>{const i=e.split("/");return{name:i[i.length-2],item:i.map(O).join("/"),position:n+1}}),{name:n,item:(a=i,r=t,`/${X(a,r)}/p`),position:e.length+1}],numberOfItems:e.length};var a,r},image:({images:e})=>{var n,i;return(null!=(i=e,n=Array.isArray(i)&&i.length>0?i:null)?n:[K]).map(({imageUrl:e,imageText:n})=>({alternateName:null!=n?n:"",url:e.replace("vteximg.com.br","vtexassets.com")}))},sku:({itemId:e})=>e,gtin:({referenceId:e})=>{var n,i;return null!=(n=null==(i=e[0])?void 0:i.Value)?n:""},review:()=>[],aggregateRating:()=>({}),offers:e=>e.sellers.flatMap(n=>(({offer:e,seller:n,product:i})=>({...e,product:i,seller:n}))({offer:n.commertialOffer,seller:n,product:e})).sort(V),isVariantOf:e=>e,additionalProperty:({variations:e=[],attachmentsValues:n=[]})=>[...e.flatMap(({name:e,values:n})=>n.map(n=>({name:e,value:n,valueReference:"SPECIFICATION"}))),...n.map(L)]},Y=new Set(["allSpecifications"]),H=(e,n)=>{e.storage.channel=M.parse(n)},W=(e,n)=>{e.storage.locale=n},Z=({key:e,value:n})=>{switch(e){case"channel":{const e=M.parse(n),i=[{key:"trade-policy",value:e.salesChannel}];return e.regionId&&i.push({key:"region-id",value:e.regionId}),i}case"locale":return[];default:return{key:e,value:n}}},ee=e=>{var n,i;return null!=(n=null==e||null==(i=e.find(e=>"locale"===e.key))?void 0:i.value)?n:null},ne=e=>{var n,i;return null!=(n=null==e||null==(i=e.find(e=>"channel"===e.key))?void 0:i.value)?n:null},ie={price_desc:"price:desc",price_asc:"price:asc",orders_desc:"orders:desc",name_desc:"name:desc",name_asc:"name:asc",release_desc:"release:desc",discount_desc:"discount:desc",score_desc:""},te={product:async(e,{locator:n},i)=>{const t=ne(n),a=ee(n);t&&H(i,t),a&&W(i,a);const{loaders:{skuLoader:r}}=i;return r.load(n)},collection:(e,{slug:n},i)=>{const{loaders:{collectionLoader:t}}=i;return t.load(n)},search:async(e,{first:n,after:i,sort:t,term:a,selectedFacets:r},o)=>{var l;const d=ne(r),u=ee(r);d&&H(o,d),u&&W(o,u);const s=i?Number(i):0;return{page:Math.ceil(s/n),count:n,query:a,sort:ie[null!=t?t:"score_desc"],selectedFacets:null!=(l=null==r?void 0:r.flatMap(Z))?l:[]}},allProducts:async(e,{first:n,after:i},t)=>{const{clients:{search:a}}=t,r=i?Number(i):0,o=await a.products({page:Math.ceil(r/n),count:n}),l=o.products.map(e=>e.items.map(n=>f(n,e))).flat().filter(e=>e.sellers.length>0);return{pageInfo:{hasNextPage:o.pagination.after.length>0,hasPreviousPage:o.pagination.before.length>0,startCursor:"0",endCursor:o.recordsFiltered.toString(),totalCount:o.recordsFiltered},edges:l.map((e,n)=>({node:e,cursor:(r+n).toString()}))}},allCollections:async(e,{first:n,after:i},t)=>{const{clients:{commerce:a}}=t,r=i?Number(i):0,[o,l]=await Promise.all([a.catalog.brand.list(),a.catalog.category.tree()]),d=[],u=(e,n)=>{d.push({...e,level:n});for(const i of e.children)u(i,n+1)};for(const e of l)u(e,0);const s=[...o.filter(e=>e.isActive).map(e=>({...e,type:"brand"})),...d].filter(e=>Boolean(P.slug(e,null,t,null)));return{pageInfo:{hasNextPage:s.length-r>n,hasPreviousPage:r>0,startCursor:"0",endCursor:(Math.min(n,s.length-r)-1).toString(),totalCount:s.length},edges:s.slice(r,r+n).map((e,n)=>({node:e,cursor:(r+n).toString()}))}}},ae=["departamento","Departamento"];function re(e){try{return JSON.parse(e)}catch(n){return e}}const oe={StoreCollection:P,StoreAggregateOffer:D,StoreProduct:J,StoreSeo:{title:({title:e})=>null!=e?e:"",description:({description:e})=>null!=e?e:"",titleTemplate:()=>"",canonical:()=>""},StoreFacet:{key:({key:e})=>null!=e?e:"",label:({name:e})=>null!=e?e:"unknown",values:({values:e})=>e,type:({type:e})=>"TEXT"===e?"BOOLEAN":"RANGE"},StoreFacetValue:{value:({value:e,range:n})=>{var i,t;return null!=e?e:`${null!=(i=null==n?void 0:n.from)?i:""}-to-${null!=(t=null==n?void 0:n.to)?t:""}`},label:({name:e})=>e||"unknown",selected:({selected:e})=>e,quantity:({quantity:e})=>e},StoreOffer:_,StoreAggregateRating:{ratingValue:()=>5,reviewCount:()=>0},StoreReview:{reviewRating:()=>({ratingValue:5,bestRating:5}),author:()=>({name:""})},StoreProductGroup:{hasVariant:e=>e.isVariantOf.items.map(n=>f(n,e.isVariantOf)),productGroupID:({isVariantOf:e})=>e.productId,name:({isVariantOf:e})=>e.productName,additionalProperty:({isVariantOf:{specificationGroups:e}})=>e.filter(e=>!Y.has(e.name)).flatMap(({specifications:e})=>e.flatMap(({name:e,values:n})=>n.map(n=>({name:e,value:n,valueReference:"SPECIFICATION"}))))},StoreSearchResult:{suggestions:async(e,n,i)=>{const{clients:{search:t}}=i;if(!e.query)return{terms:(await t.topSearches()).searches.map(e=>({value:e.term,count:e.count})),products:[]};const a=await t.suggestedTerms(e),r=(await t.products(e)).products.map(e=>{const[n]=e.items;return n&&f(n,e)}).filter(e=>!!e),{searches:o}=a;return{terms:o.map(e=>({value:e.term,count:e.count})),products:r}},products:async(e,n,i)=>{const{clients:{search:t,sp:a}}=i,r=await t.products(e);e.query&&a.sendEvent({type:"search.query",text:e.query,misspelled:r.correction.misspelled,match:r.recordsFiltered,operator:r.operator}).catch(console.error);const o=r.products.map(e=>{const[n]=e.items;return n&&f(n,e)}).filter(e=>!!e);return{pageInfo:{hasNextPage:r.pagination.after.length>0,hasPreviousPage:r.pagination.before.length>0,startCursor:"0",endCursor:r.recordsFiltered.toString(),totalCount:r.recordsFiltered},edges:o.map((e,n)=>({node:e,cursor:n.toString()}))}},facets:async(e,n,i)=>{const{clients:{search:t}}=i,{facets:a}=await t.facets(e),r=!e.query,o=null==a?void 0:a.reduce((e,n)=>{const i=ae.includes(n.name);return r&&i||(n.values.sort((e,n)=>{var i,t;const a=null!=(i=e.name)?i:"",r=null!=(t=n.name)?t:"";return a.localeCompare(r)}),e.push(n)),e},[]);return null!=o?o:[]}},StorePropertyValue:{propertyID:e=>A(e),name:({name:e})=>e,value:({value:e})=>e,valueReference:({valueReference:e})=>e},ObjectOrString:new l.GraphQLScalarType({name:"ObjectOrString",description:"A string or the string representation of an object (a stringified object).",parseValue:function(e){return"string"==typeof e?re(e):null},serialize:function(e){return"object"==typeof e?JSON.stringify(e):"string"==typeof e?e:null},parseLiteral:e=>e.kind===d.Kind.STRING?re(e.value):null}),Query:te,Mutation:$};var le={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Aggregate offer information, for a given SKU that is available to be fulfilled by multiple sellers.",block:!0},name:{kind:"Name",value:"StoreAggregateOffer"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Highest price among all sellers.",block:!0},name:{kind:"Name",value:"highPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Lowest price among all sellers.",block:!0},name:{kind:"Name",value:"lowPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of sellers selling this SKU.",block:!0},name:{kind:"Name",value:"offerCount"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"ISO code of the currency used for the offer prices.",block:!0},name:{kind:"Name",value:"priceCurrency"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with information on each available offer.",block:!0},name:{kind:"Name",value:"offers"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOffer"}}}}},directives:[]}]}],loc:{start:0,end:516}};le.loc.source={body:'"""\nAggregate offer information, for a given SKU that is available to be fulfilled by multiple sellers.\n"""\ntype StoreAggregateOffer {\n """\n Highest price among all sellers.\n """\n highPrice: Float!\n """\n Lowest price among all sellers.\n """\n lowPrice: Float!\n """\n Number of sellers selling this SKU.\n """\n offerCount: Int!\n """\n ISO code of the currency used for the offer prices.\n """\n priceCurrency: String!\n """\n Array with information on each available offer.\n """\n offers: [StoreOffer!]!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var de={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Average rating, based on multiple ratings or reviews.",block:!0},name:{kind:"Name",value:"StoreAggregateRating"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Value of the aggregate rating.",block:!0},name:{kind:"Name",value:"ratingValue"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Total number of ratings.",block:!0},name:{kind:"Name",value:"reviewCount"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:218}};de.loc.source={body:'"""\nAverage rating, based on multiple ratings or reviews.\n"""\ntype StoreAggregateRating {\n """\n Value of the aggregate rating.\n """\n ratingValue: Float!\n """\n Total number of ratings.\n """\n reviewCount: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ue={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"information about the author of a product review or rating.",block:!0},name:{kind:"Name",value:"StoreAuthor"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Author name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:132}};ue.loc.source={body:'"""\ninformation about the author of a product review or rating.\n"""\ntype StoreAuthor {\n """\n Author name.\n """\n name: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var se={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Brand of a given product.",block:!0},name:{kind:"Name",value:"StoreBrand"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Brand name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:96}};se.loc.source={body:'"""\nBrand of a given product.\n"""\ntype StoreBrand {\n """\n Brand name.\n """\n name: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ce={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Item of a list.",block:!0},name:{kind:"Name",value:"StoreListItem"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"List item value.",block:!0},name:{kind:"Name",value:"item"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Name of the list item.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Position of the item in the list.",block:!0},name:{kind:"Name",value:"position"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"List of items consisting of chain linked web pages, ending with the current page.",block:!0},name:{kind:"Name",value:"StoreBreadcrumbList"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with breadcrumb elements.",block:!0},name:{kind:"Name",value:"itemListElement"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreListItem"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of breadcrumbs in the list.",block:!0},name:{kind:"Name",value:"numberOfItems"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:486}};ce.loc.source={body:'"""\nItem of a list.\n"""\ntype StoreListItem {\n """\n List item value.\n """\n item: String!\n """\n Name of the list item.\n """\n name: String!\n """\n Position of the item in the list.\n """\n position: Int!\n}\n\n"""\nList of items consisting of chain linked web pages, ending with the current page.\n"""\ntype StoreBreadcrumbList {\n """\n Array with breadcrumb elements.\n """\n itemListElement: [StoreListItem!]!\n """\n Number of breadcrumbs in the list.\n """\n numberOfItems: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var me={kind:"Document",definitions:[{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Product collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`.",block:!0},name:{kind:"Name",value:"StoreCollectionType"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"Department"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"Category"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"Brand"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"Cluster"},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product collection facet, used for search.",block:!0},name:{kind:"Name",value:"StoreCollectionFacet"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet key.",block:!0},name:{kind:"Name",value:"key"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet value.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Collection meta information. Used for search.",block:!0},name:{kind:"Name",value:"StoreCollectionMeta"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of selected collection facets.",block:!0},name:{kind:"Name",value:"selectedFacets"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionFacet"}}}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product collection information.",block:!0},name:{kind:"Name",value:"StoreCollection"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Meta tag data.",block:!0},name:{kind:"Name",value:"seo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSeo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of items consisting of chain linked web pages, ending with the current page.",block:!0},name:{kind:"Name",value:"breadcrumbList"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreBreadcrumbList"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection meta information. Used for search.",block:!0},name:{kind:"Name",value:"meta"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionMeta"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection ID.",block:!0},name:{kind:"Name",value:"id"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Corresponding collection URL slug, with which to retrieve this entity.",block:!0},name:{kind:"Name",value:"slug"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection type.",block:!0},name:{kind:"Name",value:"type"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionType"}}},directives:[]}]}],loc:{start:0,end:1051}};me.loc.source={body:'"""\nProduct collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`.\n"""\nenum StoreCollectionType {\n Department\n Category\n Brand\n Cluster\n}\n\n"""\nProduct collection facet, used for search.\n"""\ntype StoreCollectionFacet {\n """\n Facet key.\n """\n key: String!\n """\n Facet value.\n """\n value: String!\n}\n\n"""\nCollection meta information. Used for search.\n"""\ntype StoreCollectionMeta {\n """\n List of selected collection facets.\n """\n selectedFacets: [StoreCollectionFacet!]!\n}\n\n"""\nProduct collection information.\n"""\ntype StoreCollection {\n """\n Meta tag data.\n """\n seo: StoreSeo!\n """\n List of items consisting of chain linked web pages, ending with the current page.\n """\n breadcrumbList: StoreBreadcrumbList!\n """\n Collection meta information. Used for search.\n """\n meta: StoreCollectionMeta!\n """\n Collection ID.\n """\n id: ID!\n """\n Corresponding collection URL slug, with which to retrieve this entity.\n """\n slug: String!\n """\n Collection type.\n """\n type: StoreCollectionType!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var pe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Search facet information.",block:!0},name:{kind:"Name",value:"StoreFacet"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet key.",block:!0},name:{kind:"Name",value:"key"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet label.",block:!0},name:{kind:"Name",value:"label"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with information on each facet value.",block:!0},name:{kind:"Name",value:"values"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreFacetValue"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet type. Possible values are `BOOLEAN` and `RANGE`.",block:!0},name:{kind:"Name",value:"type"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreFacetType"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a specific facet value.",block:!0},name:{kind:"Name",value:"StoreFacetValue"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet value.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet value label.",block:!0},name:{kind:"Name",value:"label"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates whether facet is selected.",block:!0},name:{kind:"Name",value:"selected"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of items with this facet.",block:!0},name:{kind:"Name",value:"quantity"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:622}};pe.loc.source={body:'"""\nSearch facet information.\n"""\ntype StoreFacet {\n """\n Facet key.\n """\n key: String!\n """\n Facet label.\n """\n label: String!\n """\n Array with information on each facet value.\n """\n values: [StoreFacetValue!]!\n """\n Facet type. Possible values are `BOOLEAN` and `RANGE`.\n """\n type: StoreFacetType!\n}\n\n"""\nInformation of a specific facet value.\n"""\ntype StoreFacetValue {\n """\n Facet value.\n """\n value: String!\n """\n Facet value label.\n """\n label: String!\n """\n Indicates whether facet is selected.\n """\n selected: Boolean!\n """\n Number of items with this facet.\n """\n quantity: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ke={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Image.",block:!0},name:{kind:"Name",value:"StoreImage"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Image URL.",block:!0},name:{kind:"Name",value:"url"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Alias for the image.",block:!0},name:{kind:"Name",value:"alternateName"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Image input.",block:!0},name:{kind:"Name",value:"IStoreImage"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Image input URL.",block:!0},name:{kind:"Name",value:"url"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Alias for the input image.",block:!0},name:{kind:"Name",value:"alternateName"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:291}};ke.loc.source={body:'"""\nImage.\n"""\ntype StoreImage {\n """\n Image URL.\n """\n url: String!\n """\n Alias for the image.\n """\n alternateName: String!\n}\n\n"""\nImage input.\n"""\ninput IStoreImage {\n """\n Image input URL.\n """\n url: String!\n """\n Alias for the input image.\n """\n alternateName: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ye={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",name:{kind:"Name",value:"Mutation"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Returns the order if anything has changed in it, or `null` if the order is valid.",block:!0},name:{kind:"Name",value:"validateCart"},arguments:[{kind:"InputValueDefinition",name:{kind:"Name",value:"cart"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreCart"}}},directives:[]}],type:{kind:"NamedType",name:{kind:"Name",value:"StoreCart"}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Validate session information.",block:!0},name:{kind:"Name",value:"validateSession"},arguments:[{kind:"InputValueDefinition",name:{kind:"Name",value:"session"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreSession"}}},directives:[]},{kind:"InputValueDefinition",name:{kind:"Name",value:"search"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],type:{kind:"NamedType",name:{kind:"Name",value:"StoreSession"}},directives:[]}]}],loc:{start:0,end:277}};ye.loc.source={body:'type Mutation {\n """\n Returns the order if anything has changed in it, or `null` if the order is valid.\n """\n validateCart(cart: IStoreCart!): StoreCart\n """\n Validate session information.\n """\n validateSession(session: IStoreSession!, search: String!): StoreSession\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ge={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Offer information.",block:!0},name:{kind:"Name",value:"StoreOffer"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:'This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.',block:!0},name:{kind:"Name",value:"listPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Computed price before applying coupons, taxes or benefits. This may change before it reaches the shelf.",block:!0},name:{kind:"Name",value:"sellingPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"ISO code of the currency used for the offer prices.",block:!0},name:{kind:"Name",value:"priceCurrency"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Also known as spot price.",block:!0},name:{kind:"Name",value:"price"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Next date in which price is scheduled to change. If there is no scheduled change, this will be set a year in the future from current time.",block:!0},name:{kind:"Name",value:"priceValidUntil"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Offer item condition.",block:!0},name:{kind:"Name",value:"itemCondition"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Offer item availability.",block:!0},name:{kind:"Name",value:"availability"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Seller responsible for the offer.",block:!0},name:{kind:"Name",value:"seller"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOrganization"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Information on the item being offered.",block:!0},name:{kind:"Name",value:"itemOffered"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of items offered.",block:!0},name:{kind:"Name",value:"quantity"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Offer input.",block:!0},name:{kind:"Name",value:"IStoreOffer"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Also known as spot price.",block:!0},name:{kind:"Name",value:"price"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:'This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.',block:!0},name:{kind:"Name",value:"listPrice"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Seller responsible for the offer.",block:!0},name:{kind:"Name",value:"seller"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreOrganization"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Information on the item being offered.",block:!0},name:{kind:"Name",value:"itemOffered"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreProduct"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Number of items offered.",block:!0},name:{kind:"Name",value:"quantity"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:1501}};ge.loc.source={body:'"""\nOffer information.\n"""\ntype StoreOffer {\n """\n This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.\n """\n listPrice: Float!\n """\n Computed price before applying coupons, taxes or benefits. This may change before it reaches the shelf.\n """\n sellingPrice: Float!\n """\n ISO code of the currency used for the offer prices.\n """\n priceCurrency: String!\n """\n Also known as spot price.\n """\n price: Float!\n """\n Next date in which price is scheduled to change. If there is no scheduled change, this will be set a year in the future from current time.\n """\n priceValidUntil: String!\n """\n Offer item condition.\n """\n itemCondition: String!\n """\n Offer item availability.\n """\n availability: String!\n """\n Seller responsible for the offer.\n """\n seller: StoreOrganization!\n """\n Information on the item being offered.\n """\n itemOffered: StoreProduct!\n """\n Number of items offered.\n """\n quantity: Int!\n}\n\n"""\nOffer input.\n"""\ninput IStoreOffer {\n """\n Also known as spot price.\n """\n price: Float!\n """\n This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.\n """\n listPrice: Float!\n """\n Seller responsible for the offer.\n """\n seller: IStoreOrganization!\n """\n Information on the item being offered.\n """\n itemOffered: IStoreProduct!\n """\n Number of items offered.\n """\n quantity: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ve={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a specific order.",block:!0},name:{kind:"Name",value:"StoreOrder"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).",block:!0},name:{kind:"Name",value:"orderNumber"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with information on each accepted offer.",block:!0},name:{kind:"Name",value:"acceptedOffer"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOffer"}}}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Offer input.",block:!0},name:{kind:"Name",value:"IStoreOrder"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).",block:!0},name:{kind:"Name",value:"orderNumber"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Array with information on each accepted offer.",block:!0},name:{kind:"Name",value:"acceptedOffer"},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreOffer"}}}}},directives:[]}]}],loc:{start:0,end:634}};ve.loc.source={body:'"""\nInformation of a specific order.\n"""\ntype StoreOrder {\n """\n ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).\n """\n orderNumber: String!\n """\n Array with information on each accepted offer.\n """\n acceptedOffer: [StoreOffer!]!\n}\n\n"""\nOffer input.\n"""\ninput IStoreOrder {\n """\n ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).\n """\n orderNumber: String!\n """\n Array with information on each accepted offer.\n """\n acceptedOffer: [IStoreOffer!]!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var fe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Organization.",block:!0},name:{kind:"Name",value:"StoreOrganization"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Organization ID.",block:!0},name:{kind:"Name",value:"identifier"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Organization input.",block:!0},name:{kind:"Name",value:"IStoreOrganization"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Organization ID.",block:!0},name:{kind:"Name",value:"identifier"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:213}};fe.loc.source={body:'"""\nOrganization.\n"""\ntype StoreOrganization {\n """\n Organization ID.\n """\n identifier: String!\n}\n\n"""\nOrganization input.\n"""\ninput IStoreOrganization {\n """\n Organization ID.\n """\n identifier: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ne={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Page information.",block:!0},name:{kind:"Name",value:"StorePageInfo"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates whether next page exists.",block:!0},name:{kind:"Name",value:"hasNextPage"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates whether previous page exists.",block:!0},name:{kind:"Name",value:"hasPreviousPage"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Page cursor start.",block:!0},name:{kind:"Name",value:"startCursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Page cursor end.",block:!0},name:{kind:"Name",value:"endCursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Total number of items (products or collections), not pages.",block:!0},name:{kind:"Name",value:"totalCount"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:406}};Ne.loc.source={body:'"""\nPage information.\n"""\ntype StorePageInfo {\n """\n Indicates whether next page exists.\n """\n hasNextPage: Boolean!\n """\n Indicates whether previous page exists.\n """\n hasPreviousPage: Boolean!\n """\n Page cursor start.\n """\n startCursor: String!\n """\n Page cursor end.\n """\n endCursor: String!\n """\n Total number of items (products or collections), not pages.\n """\n totalCount: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Se={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product information. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.",block:!0},name:{kind:"Name",value:"StoreProduct"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Meta tag data.",block:!0},name:{kind:"Name",value:"seo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSeo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of items consisting of chain linked web pages, ending with the current page.",block:!0},name:{kind:"Name",value:"breadcrumbList"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreBreadcrumbList"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Corresponding collection URL slug, with which to retrieve this entity.",block:!0},name:{kind:"Name",value:"slug"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product ID, such as [ISBN](https://www.isbn-international.org/content/what-isbn) or similar global IDs.",block:!0},name:{kind:"Name",value:"productID"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product brand.",block:!0},name:{kind:"Name",value:"brand"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreBrand"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product description.",block:!0},name:{kind:"Name",value:"description"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of images.",block:!0},name:{kind:"Name",value:"image"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreImage"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Aggregate offer information.",block:!0},name:{kind:"Name",value:"offers"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreAggregateOffer"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Stock Keeping Unit. Merchant-specific ID for the product.",block:!0},name:{kind:"Name",value:"sku"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Global Trade Item Number.",block:!0},name:{kind:"Name",value:"gtin"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with review information.",block:!0},name:{kind:"Name",value:"review"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreReview"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Aggregate ratings data.",block:!0},name:{kind:"Name",value:"aggregateRating"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreAggregateRating"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates product group related to this product.",block:!0},name:{kind:"Name",value:"isVariantOf"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductGroup"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of additional properties.",block:!0},name:{kind:"Name",value:"additionalProperty"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePropertyValue"}}}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Product input. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.",block:!0},name:{kind:"Name",value:"IStoreProduct"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Stock Keeping Unit. Merchant-specific ID for the product.",block:!0},name:{kind:"Name",value:"sku"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product name.",block:!0},name:{kind:"Name",value:"name"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Array of product images.",block:!0},name:{kind:"Name",value:"image"},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreImage"}}}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Custom Product Additional Properties.",block:!0},name:{kind:"Name",value:"additionalProperty"},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStorePropertyValue"}}}},directives:[]}]}],loc:{start:0,end:2154}};Se.loc.source={body:'"""\nProduct information. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.\n"""\ntype StoreProduct {\n """\n Meta tag data.\n """\n seo: StoreSeo!\n """\n List of items consisting of chain linked web pages, ending with the current page.\n """\n breadcrumbList: StoreBreadcrumbList!\n """\n Corresponding collection URL slug, with which to retrieve this entity.\n """\n slug: String!\n """\n Product name.\n """\n name: String!\n """\n Product ID, such as [ISBN](https://www.isbn-international.org/content/what-isbn) or similar global IDs.\n """\n productID: String!\n """\n Product brand.\n """\n brand: StoreBrand!\n """\n Product description.\n """\n description: String!\n """\n Array of images.\n """\n image: [StoreImage!]!\n """\n Aggregate offer information.\n """\n offers: StoreAggregateOffer!\n """\n Stock Keeping Unit. Merchant-specific ID for the product.\n """\n sku: String!\n """\n Global Trade Item Number.\n """\n gtin: String!\n """\n Array with review information.\n """\n review: [StoreReview!]!\n """\n Aggregate ratings data.\n """\n aggregateRating: StoreAggregateRating!\n """\n Indicates product group related to this product.\n """\n isVariantOf: StoreProductGroup!\n """\n Array of additional properties.\n """\n additionalProperty: [StorePropertyValue!]!\n}\n\n"""\nProduct input. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.\n"""\ninput IStoreProduct {\n """\n Stock Keeping Unit. Merchant-specific ID for the product.\n """\n sku: String!\n """\n Product name.\n """\n name: String!\n """\n Array of product images.\n """\n image: [IStoreImage!]!\n """\n Custom Product Additional Properties.\n """\n additionalProperty: [IStorePropertyValue!]\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var he={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product group information. Product groups are catalog entities that may contain variants. They are equivalent to VTEX [Products](https://help.vtex.com/en/tutorial/what-is-a-product--2zrB2gFCHyQokCKKE8kuAw#), whereas each variant is equivalent to a VTEX [SKU](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.",block:!0},name:{kind:"Name",value:"StoreProductGroup"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of variants related to product group. Variants are equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#).",block:!0},name:{kind:"Name",value:"hasVariant"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product group ID.",block:!0},name:{kind:"Name",value:"productGroupID"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product group name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of additional properties.",block:!0},name:{kind:"Name",value:"additionalProperty"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePropertyValue"}}}}},directives:[]}]}],loc:{start:0,end:916}};he.loc.source={body:'"""\nProduct group information. Product groups are catalog entities that may contain variants. They are equivalent to VTEX [Products](https://help.vtex.com/en/tutorial/what-is-a-product--2zrB2gFCHyQokCKKE8kuAw#), whereas each variant is equivalent to a VTEX [SKU](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.\n"""\ntype StoreProductGroup {\n """\n Array of variants related to product group. Variants are equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#).\n """\n hasVariant: [StoreProduct!]!\n """\n Product group ID.\n """\n productGroupID: String!\n """\n Product group name.\n """\n name: String!\n """\n Array of additional properties.\n """\n additionalProperty: [StorePropertyValue!]!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Te={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product pagination edge.",block:!0},name:{kind:"Name",value:"StoreProductEdge"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product pagination node.",block:!0},name:{kind:"Name",value:"node"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product pagination cursor.",block:!0},name:{kind:"Name",value:"cursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product connection pagination information.",block:!0},name:{kind:"Name",value:"StoreProductConnection"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product connection page information.",block:!0},name:{kind:"Name",value:"pageInfo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePageInfo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with product connection page edges.",block:!0},name:{kind:"Name",value:"edges"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductEdge"}}}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Collection pagination edge.",block:!0},name:{kind:"Name",value:"StoreCollectionEdge"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection pagination node.",block:!0},name:{kind:"Name",value:"node"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection pagination cursor.",block:!0},name:{kind:"Name",value:"cursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Collection connection pagination information.",block:!0},name:{kind:"Name",value:"StoreCollectionConnection"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection connection page information.",block:!0},name:{kind:"Name",value:"pageInfo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePageInfo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with collection connection page edges.",block:!0},name:{kind:"Name",value:"edges"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionEdge"}}}}},directives:[]}]},{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Product sorting options used in search.",block:!0},name:{kind:"Name",value:"StoreSort"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"price_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"price_asc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"orders_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"name_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"name_asc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"release_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"discount_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"score_desc"},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Selected facet input.",block:!0},name:{kind:"Name",value:"IStoreSelectedFacet"},directives:[],fields:[{kind:"InputValueDefinition",name:{kind:"Name",value:"key"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",name:{kind:"Name",value:"value"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Search facet type.",block:!0},name:{kind:"Name",value:"StoreFacetType"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"BOOLEAN"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"RANGE"},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Suggestion term.",block:!0},name:{kind:"Name",value:"StoreSuggestionTerm"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"The term.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Its occurrences count.",block:!0},name:{kind:"Name",value:"count"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Suggestions information.",block:!0},name:{kind:"Name",value:"StoreSuggestions"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with suggestion terms.",block:!0},name:{kind:"Name",value:"terms"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSuggestionTerm"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with suggestion products' information.",block:!0},name:{kind:"Name",value:"products"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Search result.",block:!0},name:{kind:"Name",value:"StoreSearchResult"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Search result products.",block:!0},name:{kind:"Name",value:"products"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductConnection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of search result facets.",block:!0},name:{kind:"Name",value:"facets"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreFacet"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Search result suggestions.",block:!0},name:{kind:"Name",value:"suggestions"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSuggestions"}}},directives:[]}]},{kind:"ObjectTypeDefinition",name:{kind:"Name",value:"Query"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product query.",block:!0},name:{kind:"Name",value:"product"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product query locator, which receives an array of selected search facets.",block:!0},name:{kind:"Name",value:"locator"},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreSelectedFacet"}}}}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection query.",block:!0},name:{kind:"Name",value:"collection"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Collection slug.",block:!0},name:{kind:"Name",value:"slug"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Search query.",block:!0},name:{kind:"Name",value:"search"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search pagination argument, indicating how many results should be returned from the complete result list.",block:!0},name:{kind:"Name",value:"first"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search pagination argument, indicating the item after which the results should be fetched.",block:!0},name:{kind:"Name",value:"after"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search results sorting mode.",block:!0},name:{kind:"Name",value:"sort"},type:{kind:"NamedType",name:{kind:"Name",value:"StoreSort"}},defaultValue:{kind:"EnumValue",value:"score_desc"},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search term.",block:!0},name:{kind:"Name",value:"term"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},defaultValue:{kind:"StringValue",value:"",block:!1},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Array of selected search facets.",block:!0},name:{kind:"Name",value:"selectedFacets"},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreSelectedFacet"}}}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSearchResult"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"All products query.",block:!0},name:{kind:"Name",value:"allProducts"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product pagination argument, indicating how many items should be returned from the complete result list.",block:!0},name:{kind:"Name",value:"first"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product pagination argument, indicating the item after which the items should be fetched.",block:!0},name:{kind:"Name",value:"after"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductConnection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"All collections query.",block:!0},name:{kind:"Name",value:"allCollections"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Collection pagination argument, indicating how many items should be returned from the complete result list.",block:!0},name:{kind:"Name",value:"first"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Collection pagination argument, indicating the item after which the items should be fetched.",block:!0},name:{kind:"Name",value:"after"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionConnection"}}},directives:[]}]}],loc:{start:0,end:3472}};Te.loc.source={body:'"""\nProduct pagination edge.\n"""\ntype StoreProductEdge {\n """\n Product pagination node.\n """\n node: StoreProduct!\n """\n Product pagination cursor.\n """\n cursor: String!\n}\n\n"""\nProduct connection pagination information.\n"""\ntype StoreProductConnection {\n """\n Product connection page information.\n """\n pageInfo: StorePageInfo!\n """\n Array with product connection page edges.\n """\n edges: [StoreProductEdge!]!\n}\n\n"""\nCollection pagination edge.\n"""\ntype StoreCollectionEdge {\n """\n Collection pagination node.\n """\n node: StoreCollection!\n """\n Collection pagination cursor.\n """\n cursor: String!\n}\n\n"""\nCollection connection pagination information.\n"""\ntype StoreCollectionConnection {\n """\n Collection connection page information.\n """\n pageInfo: StorePageInfo!\n """\n Array with collection connection page edges.\n """\n edges: [StoreCollectionEdge!]!\n}\n\n"""\nProduct sorting options used in search.\n"""\nenum StoreSort {\n price_desc\n price_asc\n orders_desc\n name_desc\n name_asc\n release_desc\n discount_desc\n score_desc\n}\n\n"""\nSelected facet input.\n"""\ninput IStoreSelectedFacet {\n key: String!\n value: String!\n}\n\n"""\nSearch facet type.\n"""\nenum StoreFacetType {\n BOOLEAN\n RANGE\n}\n\n"""\nSuggestion term.\n"""\ntype StoreSuggestionTerm {\n """\n The term.\n """\n value: String!\n """\n Its occurrences count.\n """\n count: Int!\n}\n\n"""\nSuggestions information.\n"""\ntype StoreSuggestions {\n """\n Array with suggestion terms.\n """\n terms: [StoreSuggestionTerm!]!\n """\n Array with suggestion products\' information.\n """\n products: [StoreProduct!]!\n}\n\n"""\nSearch result.\n"""\ntype StoreSearchResult {\n """\n Search result products.\n """\n products: StoreProductConnection!\n """\n Array of search result facets.\n """\n facets: [StoreFacet!]!\n """\n Search result suggestions.\n """\n suggestions: StoreSuggestions!\n}\n\ntype Query {\n """\n Product query.\n """\n product(\n """\n Product query locator, which receives an array of selected search facets.\n """\n locator: [IStoreSelectedFacet!]!\n ): StoreProduct!\n\n """\n Collection query.\n """\n collection(\n """\n Collection slug.\n """\n slug: String!\n ): StoreCollection!\n\n """\n Search query.\n """\n search(\n """\n Search pagination argument, indicating how many results should be returned from the complete result list.\n """\n first: Int!\n """\n Search pagination argument, indicating the item after which the results should be fetched.\n """\n after: String\n """\n Search results sorting mode.\n """\n sort: StoreSort = score_desc\n """\n Search term.\n """\n term: String = ""\n """\n Array of selected search facets.\n """\n selectedFacets: [IStoreSelectedFacet!]\n ): StoreSearchResult!\n\n """\n All products query.\n """\n allProducts(\n """\n Product pagination argument, indicating how many items should be returned from the complete result list.\n """\n first: Int!,\n """\n Product pagination argument, indicating the item after which the items should be fetched.\n """\n after: String\n ): StoreProductConnection!\n\n """\n All collections query.\n """\n allCollections(\n """\n Collection pagination argument, indicating how many items should be returned from the complete result list.\n """\n first: Int!,\n """\n Collection pagination argument, indicating the item after which the items should be fetched.\n """\n after: String\n ): StoreCollectionConnection!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var be={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a given review rating.",block:!0},name:{kind:"Name",value:"StoreReviewRating"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Rating value.",block:!0},name:{kind:"Name",value:"ratingValue"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Best rating value.",block:!0},name:{kind:"Name",value:"bestRating"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a given review.",block:!0},name:{kind:"Name",value:"StoreReview"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Review rating information.",block:!0},name:{kind:"Name",value:"reviewRating"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreReviewRating"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Review author.",block:!0},name:{kind:"Name",value:"author"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreAuthor"}}},directives:[]}]}],loc:{start:0,end:366}};be.loc.source={body:'"""\nInformation of a given review rating.\n"""\ntype StoreReviewRating {\n """\n Rating value.\n """\n ratingValue: Float!\n """\n Best rating value.\n """\n bestRating: Float!\n}\n\n"""\nInformation of a given review.\n"""\ntype StoreReview {\n """\n Review rating information.\n """\n reviewRating: StoreReviewRating!\n """\n Review author.\n """\n author: StoreAuthor!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ve={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Search Engine Optimization (SEO) tags data.",block:!0},name:{kind:"Name",value:"StoreSeo"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Title tag.",block:!0},name:{kind:"Name",value:"title"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Title template tag.",block:!0},name:{kind:"Name",value:"titleTemplate"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Description tag.",block:!0},name:{kind:"Name",value:"description"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Canonical tag.",block:!0},name:{kind:"Name",value:"canonical"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:275}};Ve.loc.source={body:'"""\nSearch Engine Optimization (SEO) tags data.\n"""\ntype StoreSeo {\n """\n Title tag.\n """\n title: String!\n """\n Title template tag.\n """\n titleTemplate: String!\n """\n Description tag.\n """\n description: String!\n """\n Canonical tag.\n """\n canonical: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var De={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Shopping cart message.",block:!0},name:{kind:"Name",value:"StoreCartMessage"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Shopping cart message text.",block:!0},name:{kind:"Name",value:"text"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`.",block:!0},name:{kind:"Name",value:"status"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreStatus"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Shopping cart information.",block:!0},name:{kind:"Name",value:"StoreCart"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Order information, including `orderNumber` and `acceptedOffer`.",block:!0},name:{kind:"Name",value:"order"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOrder"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of shopping cart messages.",block:!0},name:{kind:"Name",value:"messages"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCartMessage"}}}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Shopping cart input.",block:!0},name:{kind:"Name",value:"IStoreCart"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Order information, including `orderNumber` and `acceptedOffer`.",block:!0},name:{kind:"Name",value:"order"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreOrder"}}},directives:[]}]}],loc:{start:0,end:609}};De.loc.source={body:'"""\nShopping cart message.\n"""\ntype StoreCartMessage {\n """\n Shopping cart message text.\n """\n text: String!\n """\n Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`.\n """\n status: StoreStatus!\n}\n\n"""\nShopping cart information.\n"""\ntype StoreCart {\n """\n Order information, including `orderNumber` and `acceptedOffer`.\n """\n order: StoreOrder!\n """\n List of shopping cart messages.\n """\n messages: [StoreCartMessage!]!\n}\n\n"""\nShopping cart input.\n"""\ninput IStoreCart {\n """\n Order information, including `orderNumber` and `acceptedOffer`.\n """\n order: IStoreOrder!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ie={kind:"Document",definitions:[{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Status used to indicate type of message. For instance, in shopping cart messages.",block:!0},name:{kind:"Name",value:"StoreStatus"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"INFO"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"WARNING"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"ERROR"},directives:[]}]}],loc:{start:0,end:136}};Ie.loc.source={body:'"""\nStatus used to indicate type of message. For instance, in shopping cart messages.\n"""\nenum StoreStatus {\n INFO\n WARNING\n ERROR\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Oe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Properties that can be associated with products and products groups.",block:!0},name:{kind:"Name",value:"StorePropertyValue"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Property id. This propert changes according to the content of the object.",block:!0},name:{kind:"Name",value:"propertyID"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Property value. May hold a string or the string representation of an object.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ObjectOrString"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Property name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Specifies the nature of the value",block:!0},name:{kind:"Name",value:"valueReference"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",name:{kind:"Name",value:"IStorePropertyValue"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Property id. This propert changes according to the content of the object.",block:!0},name:{kind:"Name",value:"propertyID"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Property value. May hold a string or the string representation of an object.",block:!0},name:{kind:"Name",value:"value"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ObjectOrString"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Property name.",block:!0},name:{kind:"Name",value:"name"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Specifies the nature of the value",block:!0},name:{kind:"Name",value:"valueReference"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:825}};Oe.loc.source={body:'"""\nProperties that can be associated with products and products groups.\n"""\ntype StorePropertyValue {\n """\n Property id. This propert changes according to the content of the object.\n """\n propertyID: String!\n """\n Property value. May hold a string or the string representation of an object.\n """\n value: ObjectOrString!\n """\n Property name.\n """\n name: String!\n """\n Specifies the nature of the value\n """\n valueReference: String!\n}\n\ninput IStorePropertyValue {\n """\n Property id. This propert changes according to the content of the object.\n """\n propertyID: String\n """\n Property value. May hold a string or the string representation of an object.\n """\n value: ObjectOrString!\n """\n Property name.\n """\n name: String!\n """\n Specifies the nature of the value\n """\n valueReference: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Fe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Client profile data.",block:!0},name:{kind:"Name",value:"StorePerson"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client ID.",block:!0},name:{kind:"Name",value:"id"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client email.",block:!0},name:{kind:"Name",value:"email"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client first name.",block:!0},name:{kind:"Name",value:"givenName"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client last name.",block:!0},name:{kind:"Name",value:"familyName"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Client profile data.",block:!0},name:{kind:"Name",value:"IStorePerson"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client ID.",block:!0},name:{kind:"Name",value:"id"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client email.",block:!0},name:{kind:"Name",value:"email"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client first name.",block:!0},name:{kind:"Name",value:"givenName"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client last name.",block:!0},name:{kind:"Name",value:"familyName"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:487}};Fe.loc.source={body:'"""\nClient profile data.\n"""\ntype StorePerson {\n """\n Client ID.\n """\n id: String!\n """\n Client email.\n """\n email: String!\n """\n Client first name.\n """\n givenName: String!\n """\n Client last name.\n """\n familyName: String!\n}\n\n"""\nClient profile data.\n"""\ninput IStorePerson {\n """\n Client ID.\n """\n id: String!\n """\n Client email.\n """\n email: String!\n """\n Client first name.\n """\n givenName: String!\n """\n Client last name.\n """\n familyName: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ce={kind:"Document",definitions:[{kind:"ScalarTypeDefinition",name:{kind:"Name",value:"ObjectOrString"},directives:[]}],loc:{start:0,end:21}};Ce.loc.source={body:"scalar ObjectOrString",name:"GraphQL request",locationOffset:{line:1,column:1}};var Pe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Currency information.",block:!0},name:{kind:"Name",value:"StoreCurrency"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Currency code, e.g: USD",block:!0},name:{kind:"Name",value:"code"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Currency symbol, e.g: $",block:!0},name:{kind:"Name",value:"symbol"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",name:{kind:"Name",value:"IStoreCurrency"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Currency code, e.g: USD",block:!0},name:{kind:"Name",value:"code"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Currency symbol, e.g: $",block:!0},name:{kind:"Name",value:"symbol"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Session information.",block:!0},name:{kind:"Name",value:"StoreSession"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session locale.",block:!0},name:{kind:"Name",value:"locale"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session currency.",block:!0},name:{kind:"Name",value:"currency"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCurrency"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session country.",block:!0},name:{kind:"Name",value:"country"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session channel.",block:!0},name:{kind:"Name",value:"channel"},arguments:[],type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session postal code.",block:!0},name:{kind:"Name",value:"postalCode"},arguments:[],type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session postal code.",block:!0},name:{kind:"Name",value:"person"},arguments:[],type:{kind:"NamedType",name:{kind:"Name",value:"StorePerson"}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Session input.",block:!0},name:{kind:"Name",value:"IStoreSession"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input locale.",block:!0},name:{kind:"Name",value:"locale"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input currency.",block:!0},name:{kind:"Name",value:"currency"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreCurrency"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input country.",block:!0},name:{kind:"Name",value:"country"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input channel.",block:!0},name:{kind:"Name",value:"channel"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input postal code.",block:!0},name:{kind:"Name",value:"postalCode"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input postal code.",block:!0},name:{kind:"Name",value:"person"},type:{kind:"NamedType",name:{kind:"Name",value:"IStorePerson"}},directives:[]}]}],loc:{start:0,end:1075}};Pe.loc.source={body:'"""\nCurrency information.\n"""\ntype StoreCurrency {\n """\n Currency code, e.g: USD\n """\n code: String!\n """\n Currency symbol, e.g: $\n """\n symbol: String!\n}\n\ninput IStoreCurrency {\n """\n Currency code, e.g: USD\n """\n code: String!\n """\n Currency symbol, e.g: $\n """\n symbol: String!\n}\n\n"""\nSession information.\n"""\ntype StoreSession {\n """\n Session locale.\n """\n locale: String!\n """\n Session currency.\n """\n currency: StoreCurrency!\n """\n Session country.\n """\n country: String!\n """\n Session channel.\n """\n channel: String\n """\n Session postal code.\n """\n postalCode: String\n """\n Session postal code.\n """\n person: StorePerson\n}\n\n"""\nSession input.\n"""\ninput IStoreSession {\n """\n Session input locale.\n """\n locale: String!\n """\n Session input currency.\n """\n currency: IStoreCurrency!\n """\n Session input country.\n """\n country: String!\n """\n Session input channel.\n """\n channel: String\n """\n Session input postal code.\n """\n postalCode: String\n """\n Session input postal code.\n """\n person: IStorePerson\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};const we=[Te,ye,se,ce,me,pe,ke,Ne,Se,Ve,ge,de,be,ue,he,fe,le,ve,De,Ie,Oe,Fe,Ce,Pe].map(l.print).join("\n"),Le={vtex:{getResolvers:e=>oe,getContextFactory:e=>n=>{var i;return n.storage={channel:M.parse(e.channel),flags:null!=(i=e.flags)?i:{},locale:e.locale},n.clients=((e,n)=>({search:m(e,n),commerce:(({account:e,environment:n},i)=>{const t=`https://${e}.${n}.com.br`;return{catalog:{brand:{list:()=>u(t+"/api/catalog_system/pub/brand/list")},category:{tree:(e=3)=>u(`${t}/api/catalog_system/pub/category/tree/${e}`)},portal:{pagetype:e=>u(`${t}/api/catalog_system/pub/portal/pagetype/${e}`)}},checkout:{simulation:(e,{salesChannel:n}=i.storage.channel)=>{const a=new URLSearchParams({sc:n});return u(`${t}/api/checkout/pub/orderForms/simulation?${a.toString()}`,{...s,body:JSON.stringify(e)})},orderForm:({id:e,refreshOutdatedData:n=!0,channel:a=i.storage.channel})=>{const{salesChannel:r}=a,o=new URLSearchParams({refreshOutdatedData:n.toString(),sc:r});return u(`${t}/api/checkout/pub/orderForm/${e}?${o.toString()}`,s)},updateOrderFormItems:({id:e,orderItems:n,allowOutdatedData:a="paymentData",salesChannel:r=i.storage.channel.salesChannel})=>{const o=new URLSearchParams({allowOutdatedData:a,sc:r});return u(`${t}/api/checkout/pub/orderForm/${e}/items?${o}`,{...s,body:JSON.stringify({orderItems:n}),method:"PATCH"})},setCustomData:({id:e,appId:n,key:i,value:a})=>u(`${t}/api/checkout/pub/orderForm/${e}/customData/${n}/${i}`,{...s,body:JSON.stringify({value:a}),method:"PUT"}),region:async({postalCode:e,country:n,salesChannel:i})=>u(`${t}/api/checkout/pub/regions/?postalCode=${e}&country=${n}&sc=${null!=i?i:""}`)},session:e=>{const n=new URLSearchParams(e);return n.set("items","profile.id,profile.email,profile.firstName,profile.lastName,store.channel,store.countryCode,store.cultureInfo,store.currencyCode,store.currencySymbol"),u(`${t}/api/sessions?${n.toString()}`,{method:"POST",headers:{"content-type":"application/json",cookie:i.headers.cookie},body:"{}"})}}})(e,n),sp:(({account:e},n)=>{const i=`https://sp.vtex.com/event-api/v1/${e}/event`;return{sendEvent:e=>u(i,{method:"POST",body:JSON.stringify({...e,agent:"@faststore/api",anonymous:y.anonymous(),session:y.session()}),headers:{"content-type":"application/json"}})}})(e)}))(e,n),n.loaders=((e,{clients:n})=>({skuLoader:((e,n)=>new t(async e=>{const i=e.map(e=>{const n=e.find(({key:e})=>"id"===e);if(!n)throw new g("Error while loading SKU. Needs to pass an id to selected facets");return n.value}),{products:t}=await n.search.products({query:"sku:"+i.join(";"),page:0,count:i.length}),a=t.reduce((e,n)=>{for(const i of n.items)e[i.itemId]=f(i,n);return e},{}),r=i.map(e=>a[e]),o=r.filter(e=>!e);if(o.length>0)throw new Error("Search API did not return the following skus: "+o.join(","));return r},{maxBatchSize:99}))(0,n),simulationLoader:((e,n)=>{const i=a(1),r=async e=>{const i=[...e.flat()],t=await n.commerce.checkout.simulation({items:i}),a=t.items.reduce((e,n)=>{const i=n.requestIndex;return"number"==typeof i&&i<e.length&&(e[i]=n),e},Array(i.length).fill(null)),r=e.reduce((e,n)=>[...e,n.length+e[e.length-1]],[0]);return e.map((e,n)=>({...t,items:a.slice(r[n],r[n+1]).filter(e=>Boolean(e))}))};return new t(async e=>i(r,e),{maxBatchSize:50})})(0,n),collectionLoader:((e,n)=>{const i=a(20);return new t(async e=>Promise.all(e.map(e=>i(async()=>{const i=await n.commerce.catalog.portal.pagetype(e);if(S(i))return i;throw new v(`Catalog returned ${i.pageType} for slug: ${e}. This usually happens when there is more than one category with the same name in the same category tree level.`)}))),{batch:!1})})(0,n)}))(0,n),n}}},Ae=e=>Le[e.platform].getResolvers(e);exports.getContextFactory=e=>Le[e.platform].getContextFactory(e),exports.getResolvers=Ae,exports.getSchema=async e=>n.makeExecutableSchema({resolvers:Ae(e),typeDefs:we}),exports.getTypeDefs=()=>we;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var n=require("@graphql-tools/schema"),i=e(require("isomorphic-unfetch")),t=e(require("dataloader")),a=e(require("p-limit")),r=e(require("fast-deep-equal")),o=e(require("crypto")),l=require("graphql"),d=require("graphql/language");const u=async(e,n)=>{const t=await i(e,n);if(t.ok)return 204!==t.status?t.json():void 0;console.error(e,n,t);const a=await t.text();throw new Error(a)},s={method:"POST",headers:{"content-type":"application/json"}},c=new Set(["trade-policy","region-id"]),m=({account:e,environment:n,hideUnavailableItems:i},t)=>{const a=`https://${e}.${n}.com.br/api/io`,r=({query:e="",page:n,count:r,sort:o="",selectedFacets:l=[],type:d,fuzzy:s="auto"})=>{const m=new URLSearchParams({page:(n+1).toString(),count:r.toString(),query:e,sort:o,fuzzy:s,locale:t.storage.locale});void 0!==i&&m.append("hideUnavailableItems",i.toString());const p=(e=>{var n,i;const a=e.filter(({key:e})=>!c.has(e)),r=null!=(n=e.find(({key:e})=>"trade-policy"===e))?n:(()=>{const{salesChannel:e}=t.storage.channel;return e?{key:"trade-policy",value:e}:null})(),o=null!=(i=e.find(({key:e})=>"region-id"===e))?i:(()=>{const{regionId:e}=t.storage.channel;return e?{key:"region-id",value:e}:null})();return null!==r&&a.push(r),null!==o&&a.push(o),a})(l).map(({key:e,value:n})=>`${e}/${n}`).join("/");return u(`${a}/_v/api/intelligent-search/${d}/${p}?${m.toString()}`)};return{facets:e=>r({...e,type:"facets"}),products:e=>r({...e,type:"product_search"}),suggestedTerms:e=>{var n,i;const r=new URLSearchParams({query:null!=(n=null==(i=e.query)?void 0:i.toString())?n:"",locale:t.storage.locale});return u(`${a}/_v/api/intelligent-search/search_suggestions?${r.toString()}`)},topSearches:()=>{const e=new URLSearchParams({locale:t.storage.locale});return u(`${a}/_v/api/intelligent-search/top_searches?${e.toString()}`)}}},p=()=>(1e6*Math.random()).toFixed(0),k=e=>{let n=p(),i=Date.now();return()=>{var t;return t=i,(Date.now()-t)/1e3>e&&(n=p(),i=Date.now()),n}},y={anonymous:k(31536e3),session:k(1800)};class g extends Error{constructor(e){super(e),this.name="BadRequestError"}}class v extends Error{constructor(e){super(e),this.name="NotFoundError"}}const f=(e,n)=>({...e,isVariantOf:n}),N=new Set(["brand","category","department","subcategory"]),S=e=>"string"==typeof e.pageType&&N.has(e.pageType.toLowerCase()),h=e=>e.AvailableQuantity>0,T=e=>{var n;return null!=(n=e.spotPrice)?n:0},b=e=>e?"https://schema.org/InStock":"https://schema.org/OutOfStock",V=(e,n)=>h(e)&&!h(n)?-1:!h(e)&&h(n)?1:T(e)-T(n),D={highPrice:e=>{const n=e.filter(h),i=n[n.length-1];return null!=i?T(i):0},lowPrice:e=>{const[n]=e.filter(h);return n?T(n):0},offerCount:e=>e.length,priceCurrency:()=>"",offers:e=>e},I="ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a";function O(e){return(e=>e.replace(/[·/_,:]/,"-"))((e=>{let n=e.slice(0);for(let e=0;e<I.length;e++)n=n.replace(new RegExp(I.charAt(e),"g"),"AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa".charAt(e));return n})(e.replace(/,/g,"").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g,"-"))).toLowerCase()}const F=e=>"brand"===e.type||S(e)&&"brand"===e.pageType.toLowerCase(),C=e=>F(e)?O(e.name):S(e)?new URL("https://"+e.url).pathname.slice(1).toLowerCase():new URL(e.url).pathname.slice(1).toLowerCase(),P={id:({id:e})=>e.toString(),slug:e=>C(e),seo:e=>F(e)||S(e)?{title:e.title,description:e.metaTagDescription}:{title:e.Title,description:e.MetaTagDescription},type:e=>F(e)?"Brand":S(e)?e.pageType:0===e.level?"Department":"Category",meta:e=>{const n=C(e);return F(e)?{selectedFacets:[{key:"brand",value:n}]}:{selectedFacets:n.split("/").map((e,n)=>({key:"category-"+(n+1),value:e}))}},breadcrumbList:async(e,n,i)=>{const{loaders:{collectionLoader:t}}=i,a=C(e).split("/").filter(e=>Boolean(e)),r=a.map((e,n)=>a.slice(0,n+1).join("/")),o=await Promise.all(r.map(e=>t.load(e)));return{itemListElement:o.map((e,n)=>({item:new URL("https://"+e.url).pathname.toLowerCase(),name:e.name,position:n+1})),numberOfItems:o.length}}},w=e=>o.createHash("md5").update(e).digest("hex");function L(e){return{name:e.name,value:e.content,valueReference:"ATTACHMENT"}}function A(e){return w(`${e.name}:${JSON.stringify(e.value)}:${e.valueReference}`)}const R=e=>"ATTACHMENT"===e.valueReference,E=e=>{var n;return[e.itemOffered.sku,e.seller.identifier,e.price,null==(n=e.itemOffered.additionalProperty)?void 0:n.filter(R).map(A).join("-")].filter(Boolean).join("::")},q=(e,n)=>({listPrice:e.listPrice/100,price:e.sellingPrice/100,quantity:e.quantity,seller:{identifier:e.seller},itemOffered:{sku:e.id,image:[],name:e.name,additionalProperty:e.attachments.map(L)},index:n}),j=e=>{var n,i;return{quantity:e.quantity,seller:e.seller.identifier,id:e.itemOffered.sku,index:e.index,attachments:(null!=(n=null==(i=e.itemOffered.additionalProperty)?void 0:i.filter(R))?n:[]).map(e=>({name:e.name,content:e.value}))}},x=e=>e.reduce((e,n)=>{var i;const t=E(n);return e.set(t,null!=(i=e.get(t))?i:n),e},new Map),U=(e,n)=>({order:{orderNumber:e.orderFormId,acceptedOffer:e.items.map(e=>({...e,product:n.load([{key:"id",value:e.id}])}))},messages:e.messages.map(({text:e,status:n})=>({text:e,status:n.toUpperCase()}))}),G=({items:e})=>w(JSON.stringify(e)),B=async(e,n)=>{try{return await n.checkout.setCustomData({id:e.orderFormId,appId:"faststore",key:"cartEtag",value:G(e)})}catch(e){throw console.error('Error while setting custom data to orderForm.\n Make sure to add the following custom app to the orderForm: \n{"fields":["cartEtag"],"id":"faststore","major":1}.\n More info at: https://developers.vtex.com/vtex-rest-api/docs/customizable-fields-with-checkout-api'),e}};class M{static parse(e){try{var n,i;const t=JSON.parse(e);return{regionId:null!=(n=t.regionId)?n:"",salesChannel:null!=(i=t.salesChannel)?i:""}}catch(e){throw console.error(e),new Error("Malformed channel string")}}static stringify(e){return JSON.stringify(e)}}const $={validateCart:async(e,{cart:{order:n}},i)=>{const{enableOrderFormSync:t}=i.storage.flags,{orderNumber:a,acceptedOffer:o}=n,{clients:{commerce:l},loaders:{skuLoader:d}}=i,u=await l.checkout.orderForm({id:a});if(!0===t&&!0===(e=>{var n,i;const t=null==(n=e.customData)?void 0:n.customApps.find(e=>"faststore"===e.id),a=null==t||null==(i=t.fields)?void 0:i.cartEtag;return null==a||G(e)!==a})(u)&&a){const e=await B(u,l);return U(e,d)}const s=x(o),c=x(u.items.map(q)),m=Array.from(s.values()),p=Array.from(c.values()),{itemsToAdd:k,itemsToUpdate:y}=m.reduce((e,n)=>{const i=c.get(E(n));return i?e.itemsToUpdate.push({...i,quantity:n.quantity}):e.itemsToAdd.push(n),e},{itemsToAdd:[],itemsToUpdate:[]}),g=[...k,...y,...p.filter(e=>!s.has(E(e))).map(e=>({...e,quantity:0}))].map(j);if(0===g.length)return null;const v=await l.checkout.updateOrderFormItems({id:u.orderFormId,orderItems:g}).then(e=>t?B(e,l):e);return((e,n)=>{const i=(e,n)=>({...e,itemOffered:{sku:e.itemOffered.sku},index:n}),t=n.items.map(q).map(i),a=e.acceptedOffer.map(i),o=e.orderNumber===n.orderFormId,l=r(t,a);return o&&l})(n,v)?null:U(v,d)},validateSession:async(e,{session:n,search:i},{clients:t})=>{var a,o,l,d,u,s,c,m,p,k,y,g,v,f,N,S,h,T,b,V,D;const I=M.parse(null!=(a=n.channel)?a:""),O=String(null!=(o=n.postalCode)?o:"").replace(/\D/g,""),F=null!=(l=n.country)?l:"",C=new URLSearchParams(i);C.set("sc",null!=(d=C.get("sc"))?d:I.salesChannel);const[P,w]=await Promise.all([O?t.commerce.checkout.region({postalCode:O,country:F}):Promise.resolve(null),t.commerce.session(C.toString()).catch(()=>null)]),L=null!=(u=null==w?void 0:w.namespaces.profile)?u:null,A=null!=(s=null==w?void 0:w.namespaces.store)?s:null,R={...n,currency:{code:null!=(c=null==A?void 0:A.currencyCode.value)?c:n.currency.code,symbol:null!=(m=null==A?void 0:A.currencySymbol.value)?m:n.currency.symbol},country:null!=(p=null==A?void 0:A.countryCode.value)?p:n.country,channel:M.stringify({salesChannel:null!=(k=null==A||null==(y=A.channel)?void 0:y.value)?k:I.salesChannel,regionId:null!=(g=null==P||null==(v=P[0])?void 0:v.id)?g:I.regionId}),person:null!=L&&L.id?{id:null!=(f=null==(N=L.id)?void 0:N.value)?f:"",email:null!=(S=null==(h=L.email)?void 0:h.value)?S:"",givenName:null!=(T=null==(b=L.firstName)?void 0:b.value)?T:"",familyName:null!=(V=null==(D=L.lastName)?void 0:D.value)?V:""}:null};return r(n,R)?null:R}},z=e=>"Price"in e&&"seller"in e&&"product"in e,Q=e=>"skuName"in e,_={priceCurrency:()=>"",priceValidUntil:e=>{var n,i;return z(e)?null!=(n=e.PriceValidUntil)?n:"":Q(e)?null!=(i=e.priceValidUntil)?i:"":null},itemCondition:()=>"https://schema.org/NewCondition",availability:async e=>z(e)?b(h(e)):Q(e)?b("available"===e.availability):null,seller:e=>{var n;return z(e)?{identifier:null!=(n=e.seller.sellerId)?n:""}:Q(e)?{identifier:e.seller}:null},price:e=>z(e)?T(e):Q(e)?e.sellingPrice/100:null,sellingPrice:e=>{return z(e)?null!=(n=e.Price)?n:0:Q(e)?e.sellingPrice/100:null;var n},listPrice:e=>z(e)?e.ListPrice:Q(e)?e.listPrice/100:null,itemOffered:async e=>z(e)?e.product:Q(e)?{...await e.product,attachmentsValues:e.attachments}:null,quantity:e=>{var n;return z(e)?null!=(n=e.AvailableQuantity)?n:0:Q(e)?e.quantity:null}},K={imageText:"image",imageUrl:"https://storecomponents.vtexassets.com/assets/faststore/images/image___117a6d3e229a96ad0e0d0876352566e2.svg"},X=(e,n)=>`${e}-${n}`,J={productID:({itemId:e})=>e,name:({isVariantOf:e,name:n})=>null!=n?n:e.productName,slug:({isVariantOf:{linkText:e},itemId:n})=>X(e,n),description:({isVariantOf:{description:e}})=>e,seo:({isVariantOf:{description:e,productName:n}})=>({title:n,description:e}),brand:({isVariantOf:{brand:e}})=>({name:e}),breadcrumbList:({isVariantOf:{categories:e,productName:n,linkText:i},itemId:t})=>{return{itemListElement:[...e.reverse().map((e,n)=>{const i=e.split("/");return{name:i[i.length-2],item:i.map(O).join("/"),position:n+1}}),{name:n,item:(a=i,r=t,`/${X(a,r)}/p`),position:e.length+1}],numberOfItems:e.length};var a,r},image:({images:e})=>{var n,i;return(null!=(i=e,n=Array.isArray(i)&&i.length>0?i:null)?n:[K]).map(({imageUrl:e,imageText:n})=>({alternateName:null!=n?n:"",url:e.replace("vteximg.com.br","vtexassets.com")}))},sku:({itemId:e})=>e,gtin:({referenceId:e})=>{var n,i;return null!=(n=null==(i=e[0])?void 0:i.Value)?n:""},review:()=>[],aggregateRating:()=>({}),offers:e=>e.sellers.flatMap(n=>(({offer:e,seller:n,product:i})=>({...e,product:i,seller:n}))({offer:n.commertialOffer,seller:n,product:e})).sort(V),isVariantOf:e=>e,additionalProperty:({variations:e=[],attachmentsValues:n=[]})=>[...e.flatMap(({name:e,values:n})=>n.map(n=>({name:e,value:n,valueReference:"SPECIFICATION"}))),...n.map(L)]},Y=new Set(["allSpecifications"]),H=(e,n)=>{e.storage.channel=M.parse(n)},W=(e,n)=>{e.storage.locale=n},Z=({key:e,value:n})=>{switch(e){case"channel":{const e=M.parse(n),i=[{key:"trade-policy",value:e.salesChannel}];return e.regionId&&i.push({key:"region-id",value:e.regionId}),i}case"locale":return[];default:return{key:e,value:n}}},ee=e=>{var n,i;return null!=(n=null==e||null==(i=e.find(e=>"locale"===e.key))?void 0:i.value)?n:null},ne=e=>{var n,i;return null!=(n=null==e||null==(i=e.find(e=>"channel"===e.key))?void 0:i.value)?n:null},ie={price_desc:"price:desc",price_asc:"price:asc",orders_desc:"orders:desc",name_desc:"name:desc",name_asc:"name:asc",release_desc:"release:desc",discount_desc:"discount:desc",score_desc:""},te={product:async(e,{locator:n},i)=>{const t=ne(n),a=ee(n);t&&H(i,t),a&&W(i,a);const{loaders:{skuLoader:r}}=i;return r.load(n)},collection:(e,{slug:n},i)=>{const{loaders:{collectionLoader:t}}=i;return t.load(n)},search:async(e,{first:n,after:i,sort:t,term:a,selectedFacets:r},o)=>{var l;const d=ne(r),u=ee(r);d&&H(o,d),u&&W(o,u);const s=i?Number(i):0;return{page:Math.ceil(s/n),count:n,query:a,sort:ie[null!=t?t:"score_desc"],selectedFacets:null!=(l=null==r?void 0:r.flatMap(Z))?l:[]}},allProducts:async(e,{first:n,after:i},t)=>{const{clients:{search:a}}=t,r=i?Number(i):0,o=await a.products({page:Math.ceil(r/n),count:n}),l=o.products.map(e=>e.items.map(n=>f(n,e))).flat().filter(e=>e.sellers.length>0);return{pageInfo:{hasNextPage:o.pagination.after.length>0,hasPreviousPage:o.pagination.before.length>0,startCursor:"0",endCursor:o.recordsFiltered.toString(),totalCount:o.recordsFiltered},edges:l.map((e,n)=>({node:e,cursor:(r+n).toString()}))}},allCollections:async(e,{first:n,after:i},t)=>{const{clients:{commerce:a}}=t,r=i?Number(i):0,[o,l]=await Promise.all([a.catalog.brand.list(),a.catalog.category.tree()]),d=[],u=(e,n)=>{d.push({...e,level:n});for(const i of e.children)u(i,n+1)};for(const e of l)u(e,0);const s=[...o.filter(e=>e.isActive).map(e=>({...e,type:"brand"})),...d].filter(e=>Boolean(P.slug(e,null,t,null)));return{pageInfo:{hasNextPage:s.length-r>n,hasPreviousPage:r>0,startCursor:"0",endCursor:(Math.min(n,s.length-r)-1).toString(),totalCount:s.length},edges:s.slice(r,r+n).map((e,n)=>({node:e,cursor:(r+n).toString()}))}}},ae=["departamento","Departamento"];function re(e){try{return JSON.parse(e)}catch(n){return e}}const oe={StoreCollection:P,StoreAggregateOffer:D,StoreProduct:J,StoreSeo:{title:({title:e})=>null!=e?e:"",description:({description:e})=>null!=e?e:"",titleTemplate:()=>"",canonical:()=>""},StoreFacet:{key:({key:e})=>null!=e?e:"",label:({name:e})=>null!=e?e:"unknown",values:({values:e})=>e,type:({type:e})=>"TEXT"===e?"BOOLEAN":"RANGE"},StoreFacetValue:{value:({value:e,range:n})=>{var i,t;return null!=e?e:`${null!=(i=null==n?void 0:n.from)?i:""}-to-${null!=(t=null==n?void 0:n.to)?t:""}`},label:({name:e})=>e||"unknown",selected:({selected:e})=>e,quantity:({quantity:e})=>e},StoreOffer:_,StoreAggregateRating:{ratingValue:()=>5,reviewCount:()=>0},StoreReview:{reviewRating:()=>({ratingValue:5,bestRating:5}),author:()=>({name:""})},StoreProductGroup:{hasVariant:e=>e.isVariantOf.items.map(n=>f(n,e.isVariantOf)),productGroupID:({isVariantOf:e})=>e.productId,name:({isVariantOf:e})=>e.productName,additionalProperty:({isVariantOf:{specificationGroups:e}})=>e.filter(e=>!Y.has(e.name)).flatMap(({specifications:e})=>e.flatMap(({name:e,values:n})=>n.map(n=>({name:e,value:n,valueReference:"SPECIFICATION"}))))},StoreSearchResult:{suggestions:async(e,n,i)=>{const{clients:{search:t}}=i;if(!e.query)return{terms:(await t.topSearches()).searches.map(e=>({value:e.term,count:e.count})),products:[]};const a=await t.suggestedTerms(e),r=(await t.products(e)).products.map(e=>{const[n]=e.items;return n&&f(n,e)}).filter(e=>!!e),{searches:o}=a;return{terms:o.map(e=>({value:e.term,count:e.count})),products:r}},products:async(e,n,i)=>{const{clients:{search:t,sp:a}}=i,r=await t.products(e);e.query&&a.sendEvent({type:"search.query",text:e.query,misspelled:r.correction.misspelled,match:r.recordsFiltered,operator:r.operator}).catch(console.error);const o=r.products.map(e=>{const[n]=e.items;return n&&f(n,e)}).filter(e=>!!e);return{pageInfo:{hasNextPage:r.pagination.after.length>0,hasPreviousPage:r.pagination.before.length>0,startCursor:"0",endCursor:r.recordsFiltered.toString(),totalCount:r.recordsFiltered},edges:o.map((e,n)=>({node:e,cursor:n.toString()}))}},facets:async(e,n,i)=>{const{clients:{search:t}}=i,{facets:a}=await t.facets(e),r=!e.query,o=null==a?void 0:a.reduce((e,n)=>{const i=ae.includes(n.name);return r&&i||(n.values.sort((e,n)=>{var i,t;const a=null!=(i=e.name)?i:"",r=null!=(t=n.name)?t:"";return a.localeCompare(r)}),e.push(n)),e},[]);return null!=o?o:[]}},StorePropertyValue:{propertyID:e=>A(e),name:({name:e})=>e,value:({value:e})=>e,valueReference:({valueReference:e})=>e},ObjectOrString:new l.GraphQLScalarType({name:"ObjectOrString",description:"A string or the string representation of an object (a stringified object).",parseValue:function(e){return"string"==typeof e?re(e):null},serialize:function(e){return"object"==typeof e?JSON.stringify(e):"string"==typeof e?e:null},parseLiteral:e=>e.kind===d.Kind.STRING?re(e.value):null}),Query:te,Mutation:$};var le={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Aggregate offer information, for a given SKU that is available to be fulfilled by multiple sellers.",block:!0},name:{kind:"Name",value:"StoreAggregateOffer"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Highest price among all sellers.",block:!0},name:{kind:"Name",value:"highPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Lowest price among all sellers.",block:!0},name:{kind:"Name",value:"lowPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of sellers selling this SKU.",block:!0},name:{kind:"Name",value:"offerCount"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"ISO code of the currency used for the offer prices.",block:!0},name:{kind:"Name",value:"priceCurrency"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with information on each available offer.",block:!0},name:{kind:"Name",value:"offers"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOffer"}}}}},directives:[]}]}],loc:{start:0,end:516}};le.loc.source={body:'"""\nAggregate offer information, for a given SKU that is available to be fulfilled by multiple sellers.\n"""\ntype StoreAggregateOffer {\n """\n Highest price among all sellers.\n """\n highPrice: Float!\n """\n Lowest price among all sellers.\n """\n lowPrice: Float!\n """\n Number of sellers selling this SKU.\n """\n offerCount: Int!\n """\n ISO code of the currency used for the offer prices.\n """\n priceCurrency: String!\n """\n Array with information on each available offer.\n """\n offers: [StoreOffer!]!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var de={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Average rating, based on multiple ratings or reviews.",block:!0},name:{kind:"Name",value:"StoreAggregateRating"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Value of the aggregate rating.",block:!0},name:{kind:"Name",value:"ratingValue"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Total number of ratings.",block:!0},name:{kind:"Name",value:"reviewCount"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:218}};de.loc.source={body:'"""\nAverage rating, based on multiple ratings or reviews.\n"""\ntype StoreAggregateRating {\n """\n Value of the aggregate rating.\n """\n ratingValue: Float!\n """\n Total number of ratings.\n """\n reviewCount: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ue={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"information about the author of a product review or rating.",block:!0},name:{kind:"Name",value:"StoreAuthor"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Author name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:132}};ue.loc.source={body:'"""\ninformation about the author of a product review or rating.\n"""\ntype StoreAuthor {\n """\n Author name.\n """\n name: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var se={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Brand of a given product.",block:!0},name:{kind:"Name",value:"StoreBrand"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Brand name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:96}};se.loc.source={body:'"""\nBrand of a given product.\n"""\ntype StoreBrand {\n """\n Brand name.\n """\n name: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ce={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Item of a list.",block:!0},name:{kind:"Name",value:"StoreListItem"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"List item value.",block:!0},name:{kind:"Name",value:"item"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Name of the list item.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Position of the item in the list.",block:!0},name:{kind:"Name",value:"position"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"List of items consisting of chain linked web pages, ending with the current page.",block:!0},name:{kind:"Name",value:"StoreBreadcrumbList"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with breadcrumb elements.",block:!0},name:{kind:"Name",value:"itemListElement"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreListItem"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of breadcrumbs in the list.",block:!0},name:{kind:"Name",value:"numberOfItems"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:486}};ce.loc.source={body:'"""\nItem of a list.\n"""\ntype StoreListItem {\n """\n List item value.\n """\n item: String!\n """\n Name of the list item.\n """\n name: String!\n """\n Position of the item in the list.\n """\n position: Int!\n}\n\n"""\nList of items consisting of chain linked web pages, ending with the current page.\n"""\ntype StoreBreadcrumbList {\n """\n Array with breadcrumb elements.\n """\n itemListElement: [StoreListItem!]!\n """\n Number of breadcrumbs in the list.\n """\n numberOfItems: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var me={kind:"Document",definitions:[{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Product collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`.",block:!0},name:{kind:"Name",value:"StoreCollectionType"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"Department"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"Category"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"Brand"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"Cluster"},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product collection facet, used for search.",block:!0},name:{kind:"Name",value:"StoreCollectionFacet"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet key.",block:!0},name:{kind:"Name",value:"key"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet value.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Collection meta information. Used for search.",block:!0},name:{kind:"Name",value:"StoreCollectionMeta"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of selected collection facets.",block:!0},name:{kind:"Name",value:"selectedFacets"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionFacet"}}}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product collection information.",block:!0},name:{kind:"Name",value:"StoreCollection"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Meta tag data.",block:!0},name:{kind:"Name",value:"seo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSeo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of items consisting of chain linked web pages, ending with the current page.",block:!0},name:{kind:"Name",value:"breadcrumbList"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreBreadcrumbList"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection meta information. Used for search.",block:!0},name:{kind:"Name",value:"meta"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionMeta"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection ID.",block:!0},name:{kind:"Name",value:"id"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Corresponding collection URL slug, with which to retrieve this entity.",block:!0},name:{kind:"Name",value:"slug"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection type.",block:!0},name:{kind:"Name",value:"type"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionType"}}},directives:[]}]}],loc:{start:0,end:1051}};me.loc.source={body:'"""\nProduct collection type. Possible values are `Department`, `Category`, `Brand` or `Cluster`.\n"""\nenum StoreCollectionType {\n Department\n Category\n Brand\n Cluster\n}\n\n"""\nProduct collection facet, used for search.\n"""\ntype StoreCollectionFacet {\n """\n Facet key.\n """\n key: String!\n """\n Facet value.\n """\n value: String!\n}\n\n"""\nCollection meta information. Used for search.\n"""\ntype StoreCollectionMeta {\n """\n List of selected collection facets.\n """\n selectedFacets: [StoreCollectionFacet!]!\n}\n\n"""\nProduct collection information.\n"""\ntype StoreCollection {\n """\n Meta tag data.\n """\n seo: StoreSeo!\n """\n List of items consisting of chain linked web pages, ending with the current page.\n """\n breadcrumbList: StoreBreadcrumbList!\n """\n Collection meta information. Used for search.\n """\n meta: StoreCollectionMeta!\n """\n Collection ID.\n """\n id: ID!\n """\n Corresponding collection URL slug, with which to retrieve this entity.\n """\n slug: String!\n """\n Collection type.\n """\n type: StoreCollectionType!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var pe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Search facet information.",block:!0},name:{kind:"Name",value:"StoreFacet"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet key.",block:!0},name:{kind:"Name",value:"key"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet label.",block:!0},name:{kind:"Name",value:"label"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with information on each facet value.",block:!0},name:{kind:"Name",value:"values"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreFacetValue"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet type. Possible values are `BOOLEAN` and `RANGE`.",block:!0},name:{kind:"Name",value:"type"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreFacetType"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a specific facet value.",block:!0},name:{kind:"Name",value:"StoreFacetValue"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet value.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Facet value label.",block:!0},name:{kind:"Name",value:"label"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates whether facet is selected.",block:!0},name:{kind:"Name",value:"selected"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of items with this facet.",block:!0},name:{kind:"Name",value:"quantity"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:622}};pe.loc.source={body:'"""\nSearch facet information.\n"""\ntype StoreFacet {\n """\n Facet key.\n """\n key: String!\n """\n Facet label.\n """\n label: String!\n """\n Array with information on each facet value.\n """\n values: [StoreFacetValue!]!\n """\n Facet type. Possible values are `BOOLEAN` and `RANGE`.\n """\n type: StoreFacetType!\n}\n\n"""\nInformation of a specific facet value.\n"""\ntype StoreFacetValue {\n """\n Facet value.\n """\n value: String!\n """\n Facet value label.\n """\n label: String!\n """\n Indicates whether facet is selected.\n """\n selected: Boolean!\n """\n Number of items with this facet.\n """\n quantity: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ke={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Image.",block:!0},name:{kind:"Name",value:"StoreImage"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Image URL.",block:!0},name:{kind:"Name",value:"url"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Alias for the image.",block:!0},name:{kind:"Name",value:"alternateName"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Image input.",block:!0},name:{kind:"Name",value:"IStoreImage"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Image input URL.",block:!0},name:{kind:"Name",value:"url"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Alias for the input image.",block:!0},name:{kind:"Name",value:"alternateName"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:291}};ke.loc.source={body:'"""\nImage.\n"""\ntype StoreImage {\n """\n Image URL.\n """\n url: String!\n """\n Alias for the image.\n """\n alternateName: String!\n}\n\n"""\nImage input.\n"""\ninput IStoreImage {\n """\n Image input URL.\n """\n url: String!\n """\n Alias for the input image.\n """\n alternateName: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ye={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",name:{kind:"Name",value:"Mutation"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Returns the order if anything has changed in it, or `null` if the order is valid.",block:!0},name:{kind:"Name",value:"validateCart"},arguments:[{kind:"InputValueDefinition",name:{kind:"Name",value:"cart"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreCart"}}},directives:[]}],type:{kind:"NamedType",name:{kind:"Name",value:"StoreCart"}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Validate session information.",block:!0},name:{kind:"Name",value:"validateSession"},arguments:[{kind:"InputValueDefinition",name:{kind:"Name",value:"session"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreSession"}}},directives:[]},{kind:"InputValueDefinition",name:{kind:"Name",value:"search"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],type:{kind:"NamedType",name:{kind:"Name",value:"StoreSession"}},directives:[]}]}],loc:{start:0,end:277}};ye.loc.source={body:'type Mutation {\n """\n Returns the order if anything has changed in it, or `null` if the order is valid.\n """\n validateCart(cart: IStoreCart!): StoreCart\n """\n Validate session information.\n """\n validateSession(session: IStoreSession!, search: String!): StoreSession\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ge={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Offer information.",block:!0},name:{kind:"Name",value:"StoreOffer"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:'This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.',block:!0},name:{kind:"Name",value:"listPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Computed price before applying coupons, taxes or benefits. This may change before it reaches the shelf.",block:!0},name:{kind:"Name",value:"sellingPrice"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"ISO code of the currency used for the offer prices.",block:!0},name:{kind:"Name",value:"priceCurrency"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Also known as spot price.",block:!0},name:{kind:"Name",value:"price"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Next date in which price is scheduled to change. If there is no scheduled change, this will be set a year in the future from current time.",block:!0},name:{kind:"Name",value:"priceValidUntil"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Offer item condition.",block:!0},name:{kind:"Name",value:"itemCondition"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Offer item availability.",block:!0},name:{kind:"Name",value:"availability"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Seller responsible for the offer.",block:!0},name:{kind:"Name",value:"seller"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOrganization"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Information on the item being offered.",block:!0},name:{kind:"Name",value:"itemOffered"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Number of items offered.",block:!0},name:{kind:"Name",value:"quantity"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Offer input.",block:!0},name:{kind:"Name",value:"IStoreOffer"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Also known as spot price.",block:!0},name:{kind:"Name",value:"price"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:'This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.',block:!0},name:{kind:"Name",value:"listPrice"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Seller responsible for the offer.",block:!0},name:{kind:"Name",value:"seller"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreOrganization"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Information on the item being offered.",block:!0},name:{kind:"Name",value:"itemOffered"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreProduct"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Number of items offered.",block:!0},name:{kind:"Name",value:"quantity"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:1501}};ge.loc.source={body:'"""\nOffer information.\n"""\ntype StoreOffer {\n """\n This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.\n """\n listPrice: Float!\n """\n Computed price before applying coupons, taxes or benefits. This may change before it reaches the shelf.\n """\n sellingPrice: Float!\n """\n ISO code of the currency used for the offer prices.\n """\n priceCurrency: String!\n """\n Also known as spot price.\n """\n price: Float!\n """\n Next date in which price is scheduled to change. If there is no scheduled change, this will be set a year in the future from current time.\n """\n priceValidUntil: String!\n """\n Offer item condition.\n """\n itemCondition: String!\n """\n Offer item availability.\n """\n availability: String!\n """\n Seller responsible for the offer.\n """\n seller: StoreOrganization!\n """\n Information on the item being offered.\n """\n itemOffered: StoreProduct!\n """\n Number of items offered.\n """\n quantity: Int!\n}\n\n"""\nOffer input.\n"""\ninput IStoreOffer {\n """\n Also known as spot price.\n """\n price: Float!\n """\n This is displayed as the "from" price in the context of promotions\' price comparison. This may change before it reaches the shelf.\n """\n listPrice: Float!\n """\n Seller responsible for the offer.\n """\n seller: IStoreOrganization!\n """\n Information on the item being offered.\n """\n itemOffered: IStoreProduct!\n """\n Number of items offered.\n """\n quantity: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var ve={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a specific order.",block:!0},name:{kind:"Name",value:"StoreOrder"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).",block:!0},name:{kind:"Name",value:"orderNumber"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with information on each accepted offer.",block:!0},name:{kind:"Name",value:"acceptedOffer"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOffer"}}}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Offer input.",block:!0},name:{kind:"Name",value:"IStoreOrder"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).",block:!0},name:{kind:"Name",value:"orderNumber"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Array with information on each accepted offer.",block:!0},name:{kind:"Name",value:"acceptedOffer"},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreOffer"}}}}},directives:[]}]}],loc:{start:0,end:634}};ve.loc.source={body:'"""\nInformation of a specific order.\n"""\ntype StoreOrder {\n """\n ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).\n """\n orderNumber: String!\n """\n Array with information on each accepted offer.\n """\n acceptedOffer: [StoreOffer!]!\n}\n\n"""\nOffer input.\n"""\ninput IStoreOrder {\n """\n ID of the order in [VTEX order management](https://help.vtex.com/en/tutorial/license-manager-resources-oms--60QcBsvWeum02cFi3GjBzg#).\n """\n orderNumber: String!\n """\n Array with information on each accepted offer.\n """\n acceptedOffer: [IStoreOffer!]!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var fe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Organization.",block:!0},name:{kind:"Name",value:"StoreOrganization"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Organization ID.",block:!0},name:{kind:"Name",value:"identifier"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Organization input.",block:!0},name:{kind:"Name",value:"IStoreOrganization"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Organization ID.",block:!0},name:{kind:"Name",value:"identifier"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:213}};fe.loc.source={body:'"""\nOrganization.\n"""\ntype StoreOrganization {\n """\n Organization ID.\n """\n identifier: String!\n}\n\n"""\nOrganization input.\n"""\ninput IStoreOrganization {\n """\n Organization ID.\n """\n identifier: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ne={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Page information.",block:!0},name:{kind:"Name",value:"StorePageInfo"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates whether next page exists.",block:!0},name:{kind:"Name",value:"hasNextPage"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates whether previous page exists.",block:!0},name:{kind:"Name",value:"hasPreviousPage"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Page cursor start.",block:!0},name:{kind:"Name",value:"startCursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Page cursor end.",block:!0},name:{kind:"Name",value:"endCursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Total number of items (products or collections), not pages.",block:!0},name:{kind:"Name",value:"totalCount"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]}],loc:{start:0,end:406}};Ne.loc.source={body:'"""\nPage information.\n"""\ntype StorePageInfo {\n """\n Indicates whether next page exists.\n """\n hasNextPage: Boolean!\n """\n Indicates whether previous page exists.\n """\n hasPreviousPage: Boolean!\n """\n Page cursor start.\n """\n startCursor: String!\n """\n Page cursor end.\n """\n endCursor: String!\n """\n Total number of items (products or collections), not pages.\n """\n totalCount: Int!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Se={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product information. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.",block:!0},name:{kind:"Name",value:"StoreProduct"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Meta tag data.",block:!0},name:{kind:"Name",value:"seo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSeo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of items consisting of chain linked web pages, ending with the current page.",block:!0},name:{kind:"Name",value:"breadcrumbList"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreBreadcrumbList"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Corresponding collection URL slug, with which to retrieve this entity.",block:!0},name:{kind:"Name",value:"slug"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product ID, such as [ISBN](https://www.isbn-international.org/content/what-isbn) or similar global IDs.",block:!0},name:{kind:"Name",value:"productID"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product brand.",block:!0},name:{kind:"Name",value:"brand"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreBrand"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product description.",block:!0},name:{kind:"Name",value:"description"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of images.",block:!0},name:{kind:"Name",value:"image"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreImage"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Aggregate offer information.",block:!0},name:{kind:"Name",value:"offers"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreAggregateOffer"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Stock Keeping Unit. Merchant-specific ID for the product.",block:!0},name:{kind:"Name",value:"sku"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Global Trade Item Number.",block:!0},name:{kind:"Name",value:"gtin"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with review information.",block:!0},name:{kind:"Name",value:"review"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreReview"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Aggregate ratings data.",block:!0},name:{kind:"Name",value:"aggregateRating"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreAggregateRating"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Indicates product group related to this product.",block:!0},name:{kind:"Name",value:"isVariantOf"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductGroup"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of additional properties.",block:!0},name:{kind:"Name",value:"additionalProperty"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePropertyValue"}}}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Product input. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.",block:!0},name:{kind:"Name",value:"IStoreProduct"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Stock Keeping Unit. Merchant-specific ID for the product.",block:!0},name:{kind:"Name",value:"sku"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product name.",block:!0},name:{kind:"Name",value:"name"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Array of product images.",block:!0},name:{kind:"Name",value:"image"},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreImage"}}}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Custom Product Additional Properties.",block:!0},name:{kind:"Name",value:"additionalProperty"},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStorePropertyValue"}}}},directives:[]}]}],loc:{start:0,end:2154}};Se.loc.source={body:'"""\nProduct information. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.\n"""\ntype StoreProduct {\n """\n Meta tag data.\n """\n seo: StoreSeo!\n """\n List of items consisting of chain linked web pages, ending with the current page.\n """\n breadcrumbList: StoreBreadcrumbList!\n """\n Corresponding collection URL slug, with which to retrieve this entity.\n """\n slug: String!\n """\n Product name.\n """\n name: String!\n """\n Product ID, such as [ISBN](https://www.isbn-international.org/content/what-isbn) or similar global IDs.\n """\n productID: String!\n """\n Product brand.\n """\n brand: StoreBrand!\n """\n Product description.\n """\n description: String!\n """\n Array of images.\n """\n image: [StoreImage!]!\n """\n Aggregate offer information.\n """\n offers: StoreAggregateOffer!\n """\n Stock Keeping Unit. Merchant-specific ID for the product.\n """\n sku: String!\n """\n Global Trade Item Number.\n """\n gtin: String!\n """\n Array with review information.\n """\n review: [StoreReview!]!\n """\n Aggregate ratings data.\n """\n aggregateRating: StoreAggregateRating!\n """\n Indicates product group related to this product.\n """\n isVariantOf: StoreProductGroup!\n """\n Array of additional properties.\n """\n additionalProperty: [StorePropertyValue!]!\n}\n\n"""\nProduct input. Products are variants within product groups, equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.\n"""\ninput IStoreProduct {\n """\n Stock Keeping Unit. Merchant-specific ID for the product.\n """\n sku: String!\n """\n Product name.\n """\n name: String!\n """\n Array of product images.\n """\n image: [IStoreImage!]!\n """\n Custom Product Additional Properties.\n """\n additionalProperty: [IStorePropertyValue!]\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var he={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product group information. Product groups are catalog entities that may contain variants. They are equivalent to VTEX [Products](https://help.vtex.com/en/tutorial/what-is-a-product--2zrB2gFCHyQokCKKE8kuAw#), whereas each variant is equivalent to a VTEX [SKU](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.",block:!0},name:{kind:"Name",value:"StoreProductGroup"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of variants related to product group. Variants are equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#).",block:!0},name:{kind:"Name",value:"hasVariant"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product group ID.",block:!0},name:{kind:"Name",value:"productGroupID"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product group name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of additional properties.",block:!0},name:{kind:"Name",value:"additionalProperty"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePropertyValue"}}}}},directives:[]}]}],loc:{start:0,end:916}};he.loc.source={body:'"""\nProduct group information. Product groups are catalog entities that may contain variants. They are equivalent to VTEX [Products](https://help.vtex.com/en/tutorial/what-is-a-product--2zrB2gFCHyQokCKKE8kuAw#), whereas each variant is equivalent to a VTEX [SKU](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#). For example, you may have a **Shirt** product group with associated products such as **Blue shirt size L**, **Green shirt size XL** and so on.\n"""\ntype StoreProductGroup {\n """\n Array of variants related to product group. Variants are equivalent to VTEX [SKUs](https://help.vtex.com/en/tutorial/what-is-an-sku--1K75s4RXAQyOuGUYKMM68u#).\n """\n hasVariant: [StoreProduct!]!\n """\n Product group ID.\n """\n productGroupID: String!\n """\n Product group name.\n """\n name: String!\n """\n Array of additional properties.\n """\n additionalProperty: [StorePropertyValue!]!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Te={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product pagination edge.",block:!0},name:{kind:"Name",value:"StoreProductEdge"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product pagination node.",block:!0},name:{kind:"Name",value:"node"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product pagination cursor.",block:!0},name:{kind:"Name",value:"cursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Product connection pagination information.",block:!0},name:{kind:"Name",value:"StoreProductConnection"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product connection page information.",block:!0},name:{kind:"Name",value:"pageInfo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePageInfo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with product connection page edges.",block:!0},name:{kind:"Name",value:"edges"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductEdge"}}}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Collection pagination edge.",block:!0},name:{kind:"Name",value:"StoreCollectionEdge"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection pagination node.",block:!0},name:{kind:"Name",value:"node"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection pagination cursor.",block:!0},name:{kind:"Name",value:"cursor"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Collection connection pagination information.",block:!0},name:{kind:"Name",value:"StoreCollectionConnection"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection connection page information.",block:!0},name:{kind:"Name",value:"pageInfo"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StorePageInfo"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with collection connection page edges.",block:!0},name:{kind:"Name",value:"edges"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionEdge"}}}}},directives:[]}]},{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Product sorting options used in search.",block:!0},name:{kind:"Name",value:"StoreSort"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"price_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"price_asc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"orders_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"name_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"name_asc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"release_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"discount_desc"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"score_desc"},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Selected facet input.",block:!0},name:{kind:"Name",value:"IStoreSelectedFacet"},directives:[],fields:[{kind:"InputValueDefinition",name:{kind:"Name",value:"key"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",name:{kind:"Name",value:"value"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Search facet type.",block:!0},name:{kind:"Name",value:"StoreFacetType"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"BOOLEAN"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"RANGE"},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Suggestion term.",block:!0},name:{kind:"Name",value:"StoreSuggestionTerm"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"The term.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Its occurrences count.",block:!0},name:{kind:"Name",value:"count"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Suggestions information.",block:!0},name:{kind:"Name",value:"StoreSuggestions"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with suggestion terms.",block:!0},name:{kind:"Name",value:"terms"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSuggestionTerm"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array with suggestion products' information.",block:!0},name:{kind:"Name",value:"products"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Search result.",block:!0},name:{kind:"Name",value:"StoreSearchResult"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Search result products.",block:!0},name:{kind:"Name",value:"products"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductConnection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Array of search result facets.",block:!0},name:{kind:"Name",value:"facets"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreFacet"}}}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Search result suggestions.",block:!0},name:{kind:"Name",value:"suggestions"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSuggestions"}}},directives:[]}]},{kind:"ObjectTypeDefinition",name:{kind:"Name",value:"Query"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Product query.",block:!0},name:{kind:"Name",value:"product"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product query locator, which receives an array of selected search facets.",block:!0},name:{kind:"Name",value:"locator"},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreSelectedFacet"}}}}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProduct"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Collection query.",block:!0},name:{kind:"Name",value:"collection"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Collection slug.",block:!0},name:{kind:"Name",value:"slug"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Search query.",block:!0},name:{kind:"Name",value:"search"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search pagination argument, indicating how many results should be returned from the complete result list.",block:!0},name:{kind:"Name",value:"first"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search pagination argument, indicating the item after which the results should be fetched.",block:!0},name:{kind:"Name",value:"after"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search results sorting mode.",block:!0},name:{kind:"Name",value:"sort"},type:{kind:"NamedType",name:{kind:"Name",value:"StoreSort"}},defaultValue:{kind:"EnumValue",value:"score_desc"},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Search term.",block:!0},name:{kind:"Name",value:"term"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},defaultValue:{kind:"StringValue",value:"",block:!1},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Array of selected search facets.",block:!0},name:{kind:"Name",value:"selectedFacets"},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreSelectedFacet"}}}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreSearchResult"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"All products query.",block:!0},name:{kind:"Name",value:"allProducts"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product pagination argument, indicating how many items should be returned from the complete result list.",block:!0},name:{kind:"Name",value:"first"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Product pagination argument, indicating the item after which the items should be fetched.",block:!0},name:{kind:"Name",value:"after"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreProductConnection"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"All collections query.",block:!0},name:{kind:"Name",value:"allCollections"},arguments:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Collection pagination argument, indicating how many items should be returned from the complete result list.",block:!0},name:{kind:"Name",value:"first"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Collection pagination argument, indicating the item after which the items should be fetched.",block:!0},name:{kind:"Name",value:"after"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCollectionConnection"}}},directives:[]}]}],loc:{start:0,end:3472}};Te.loc.source={body:'"""\nProduct pagination edge.\n"""\ntype StoreProductEdge {\n """\n Product pagination node.\n """\n node: StoreProduct!\n """\n Product pagination cursor.\n """\n cursor: String!\n}\n\n"""\nProduct connection pagination information.\n"""\ntype StoreProductConnection {\n """\n Product connection page information.\n """\n pageInfo: StorePageInfo!\n """\n Array with product connection page edges.\n """\n edges: [StoreProductEdge!]!\n}\n\n"""\nCollection pagination edge.\n"""\ntype StoreCollectionEdge {\n """\n Collection pagination node.\n """\n node: StoreCollection!\n """\n Collection pagination cursor.\n """\n cursor: String!\n}\n\n"""\nCollection connection pagination information.\n"""\ntype StoreCollectionConnection {\n """\n Collection connection page information.\n """\n pageInfo: StorePageInfo!\n """\n Array with collection connection page edges.\n """\n edges: [StoreCollectionEdge!]!\n}\n\n"""\nProduct sorting options used in search.\n"""\nenum StoreSort {\n price_desc\n price_asc\n orders_desc\n name_desc\n name_asc\n release_desc\n discount_desc\n score_desc\n}\n\n"""\nSelected facet input.\n"""\ninput IStoreSelectedFacet {\n key: String!\n value: String!\n}\n\n"""\nSearch facet type.\n"""\nenum StoreFacetType {\n BOOLEAN\n RANGE\n}\n\n"""\nSuggestion term.\n"""\ntype StoreSuggestionTerm {\n """\n The term.\n """\n value: String!\n """\n Its occurrences count.\n """\n count: Int!\n}\n\n"""\nSuggestions information.\n"""\ntype StoreSuggestions {\n """\n Array with suggestion terms.\n """\n terms: [StoreSuggestionTerm!]!\n """\n Array with suggestion products\' information.\n """\n products: [StoreProduct!]!\n}\n\n"""\nSearch result.\n"""\ntype StoreSearchResult {\n """\n Search result products.\n """\n products: StoreProductConnection!\n """\n Array of search result facets.\n """\n facets: [StoreFacet!]!\n """\n Search result suggestions.\n """\n suggestions: StoreSuggestions!\n}\n\ntype Query {\n """\n Product query.\n """\n product(\n """\n Product query locator, which receives an array of selected search facets.\n """\n locator: [IStoreSelectedFacet!]!\n ): StoreProduct!\n\n """\n Collection query.\n """\n collection(\n """\n Collection slug.\n """\n slug: String!\n ): StoreCollection!\n\n """\n Search query.\n """\n search(\n """\n Search pagination argument, indicating how many results should be returned from the complete result list.\n """\n first: Int!\n """\n Search pagination argument, indicating the item after which the results should be fetched.\n """\n after: String\n """\n Search results sorting mode.\n """\n sort: StoreSort = score_desc\n """\n Search term.\n """\n term: String = ""\n """\n Array of selected search facets.\n """\n selectedFacets: [IStoreSelectedFacet!]\n ): StoreSearchResult!\n\n """\n All products query.\n """\n allProducts(\n """\n Product pagination argument, indicating how many items should be returned from the complete result list.\n """\n first: Int!,\n """\n Product pagination argument, indicating the item after which the items should be fetched.\n """\n after: String\n ): StoreProductConnection!\n\n """\n All collections query.\n """\n allCollections(\n """\n Collection pagination argument, indicating how many items should be returned from the complete result list.\n """\n first: Int!,\n """\n Collection pagination argument, indicating the item after which the items should be fetched.\n """\n after: String\n ): StoreCollectionConnection!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var be={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a given review rating.",block:!0},name:{kind:"Name",value:"StoreReviewRating"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Rating value.",block:!0},name:{kind:"Name",value:"ratingValue"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Best rating value.",block:!0},name:{kind:"Name",value:"bestRating"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Float"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Information of a given review.",block:!0},name:{kind:"Name",value:"StoreReview"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Review rating information.",block:!0},name:{kind:"Name",value:"reviewRating"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreReviewRating"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Review author.",block:!0},name:{kind:"Name",value:"author"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreAuthor"}}},directives:[]}]}],loc:{start:0,end:366}};be.loc.source={body:'"""\nInformation of a given review rating.\n"""\ntype StoreReviewRating {\n """\n Rating value.\n """\n ratingValue: Float!\n """\n Best rating value.\n """\n bestRating: Float!\n}\n\n"""\nInformation of a given review.\n"""\ntype StoreReview {\n """\n Review rating information.\n """\n reviewRating: StoreReviewRating!\n """\n Review author.\n """\n author: StoreAuthor!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ve={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Search Engine Optimization (SEO) tags data.",block:!0},name:{kind:"Name",value:"StoreSeo"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Title tag.",block:!0},name:{kind:"Name",value:"title"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Title template tag.",block:!0},name:{kind:"Name",value:"titleTemplate"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Description tag.",block:!0},name:{kind:"Name",value:"description"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Canonical tag.",block:!0},name:{kind:"Name",value:"canonical"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:275}};Ve.loc.source={body:'"""\nSearch Engine Optimization (SEO) tags data.\n"""\ntype StoreSeo {\n """\n Title tag.\n """\n title: String!\n """\n Title template tag.\n """\n titleTemplate: String!\n """\n Description tag.\n """\n description: String!\n """\n Canonical tag.\n """\n canonical: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var De={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Shopping cart message.",block:!0},name:{kind:"Name",value:"StoreCartMessage"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Shopping cart message text.",block:!0},name:{kind:"Name",value:"text"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`.",block:!0},name:{kind:"Name",value:"status"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreStatus"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Shopping cart information.",block:!0},name:{kind:"Name",value:"StoreCart"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Order information, including `orderNumber` and `acceptedOffer`.",block:!0},name:{kind:"Name",value:"order"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreOrder"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"List of shopping cart messages.",block:!0},name:{kind:"Name",value:"messages"},arguments:[],type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCartMessage"}}}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Shopping cart input.",block:!0},name:{kind:"Name",value:"IStoreCart"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Order information, including `orderNumber` and `acceptedOffer`.",block:!0},name:{kind:"Name",value:"order"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreOrder"}}},directives:[]}]}],loc:{start:0,end:609}};De.loc.source={body:'"""\nShopping cart message.\n"""\ntype StoreCartMessage {\n """\n Shopping cart message text.\n """\n text: String!\n """\n Shopping cart message status, which can be `INFO`, `WARNING` OR `ERROR`.\n """\n status: StoreStatus!\n}\n\n"""\nShopping cart information.\n"""\ntype StoreCart {\n """\n Order information, including `orderNumber` and `acceptedOffer`.\n """\n order: StoreOrder!\n """\n List of shopping cart messages.\n """\n messages: [StoreCartMessage!]!\n}\n\n"""\nShopping cart input.\n"""\ninput IStoreCart {\n """\n Order information, including `orderNumber` and `acceptedOffer`.\n """\n order: IStoreOrder!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ie={kind:"Document",definitions:[{kind:"EnumTypeDefinition",description:{kind:"StringValue",value:"Status used to indicate type of message. For instance, in shopping cart messages.",block:!0},name:{kind:"Name",value:"StoreStatus"},directives:[],values:[{kind:"EnumValueDefinition",name:{kind:"Name",value:"INFO"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"WARNING"},directives:[]},{kind:"EnumValueDefinition",name:{kind:"Name",value:"ERROR"},directives:[]}]}],loc:{start:0,end:136}};Ie.loc.source={body:'"""\nStatus used to indicate type of message. For instance, in shopping cart messages.\n"""\nenum StoreStatus {\n INFO\n WARNING\n ERROR\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Oe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Properties that can be associated with products and products groups.",block:!0},name:{kind:"Name",value:"StorePropertyValue"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Property id. This propert changes according to the content of the object.",block:!0},name:{kind:"Name",value:"propertyID"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Property value. May hold a string or the string representation of an object.",block:!0},name:{kind:"Name",value:"value"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ObjectOrString"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Property name.",block:!0},name:{kind:"Name",value:"name"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Specifies the nature of the value",block:!0},name:{kind:"Name",value:"valueReference"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",name:{kind:"Name",value:"IStorePropertyValue"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Property id. This propert changes according to the content of the object.",block:!0},name:{kind:"Name",value:"propertyID"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Property value. May hold a string or the string representation of an object.",block:!0},name:{kind:"Name",value:"value"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ObjectOrString"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Property name.",block:!0},name:{kind:"Name",value:"name"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Specifies the nature of the value",block:!0},name:{kind:"Name",value:"valueReference"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:825}};Oe.loc.source={body:'"""\nProperties that can be associated with products and products groups.\n"""\ntype StorePropertyValue {\n """\n Property id. This propert changes according to the content of the object.\n """\n propertyID: String!\n """\n Property value. May hold a string or the string representation of an object.\n """\n value: ObjectOrString!\n """\n Property name.\n """\n name: String!\n """\n Specifies the nature of the value\n """\n valueReference: String!\n}\n\ninput IStorePropertyValue {\n """\n Property id. This propert changes according to the content of the object.\n """\n propertyID: String\n """\n Property value. May hold a string or the string representation of an object.\n """\n value: ObjectOrString!\n """\n Property name.\n """\n name: String!\n """\n Specifies the nature of the value\n """\n valueReference: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Fe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Client profile data.",block:!0},name:{kind:"Name",value:"StorePerson"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client ID.",block:!0},name:{kind:"Name",value:"id"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client email.",block:!0},name:{kind:"Name",value:"email"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client first name.",block:!0},name:{kind:"Name",value:"givenName"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Client last name.",block:!0},name:{kind:"Name",value:"familyName"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Client profile data.",block:!0},name:{kind:"Name",value:"IStorePerson"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client ID.",block:!0},name:{kind:"Name",value:"id"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client email.",block:!0},name:{kind:"Name",value:"email"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client first name.",block:!0},name:{kind:"Name",value:"givenName"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Client last name.",block:!0},name:{kind:"Name",value:"familyName"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]}],loc:{start:0,end:487}};Fe.loc.source={body:'"""\nClient profile data.\n"""\ntype StorePerson {\n """\n Client ID.\n """\n id: String!\n """\n Client email.\n """\n email: String!\n """\n Client first name.\n """\n givenName: String!\n """\n Client last name.\n """\n familyName: String!\n}\n\n"""\nClient profile data.\n"""\ninput IStorePerson {\n """\n Client ID.\n """\n id: String!\n """\n Client email.\n """\n email: String!\n """\n Client first name.\n """\n givenName: String!\n """\n Client last name.\n """\n familyName: String!\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var Ce={kind:"Document",definitions:[{kind:"ScalarTypeDefinition",name:{kind:"Name",value:"ObjectOrString"},directives:[]}],loc:{start:0,end:21}};Ce.loc.source={body:"scalar ObjectOrString",name:"GraphQL request",locationOffset:{line:1,column:1}};var Pe={kind:"Document",definitions:[{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Currency information.",block:!0},name:{kind:"Name",value:"StoreCurrency"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Currency code, e.g: USD",block:!0},name:{kind:"Name",value:"code"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Currency symbol, e.g: $",block:!0},name:{kind:"Name",value:"symbol"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"InputObjectTypeDefinition",name:{kind:"Name",value:"IStoreCurrency"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Currency code, e.g: USD",block:!0},name:{kind:"Name",value:"code"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Currency symbol, e.g: $",block:!0},name:{kind:"Name",value:"symbol"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}]},{kind:"ObjectTypeDefinition",description:{kind:"StringValue",value:"Session information.",block:!0},name:{kind:"Name",value:"StoreSession"},interfaces:[],directives:[],fields:[{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session locale.",block:!0},name:{kind:"Name",value:"locale"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session currency.",block:!0},name:{kind:"Name",value:"currency"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"StoreCurrency"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session country.",block:!0},name:{kind:"Name",value:"country"},arguments:[],type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session channel.",block:!0},name:{kind:"Name",value:"channel"},arguments:[],type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session postal code.",block:!0},name:{kind:"Name",value:"postalCode"},arguments:[],type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"FieldDefinition",description:{kind:"StringValue",value:"Session postal code.",block:!0},name:{kind:"Name",value:"person"},arguments:[],type:{kind:"NamedType",name:{kind:"Name",value:"StorePerson"}},directives:[]}]},{kind:"InputObjectTypeDefinition",description:{kind:"StringValue",value:"Session input.",block:!0},name:{kind:"Name",value:"IStoreSession"},directives:[],fields:[{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input locale.",block:!0},name:{kind:"Name",value:"locale"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input currency.",block:!0},name:{kind:"Name",value:"currency"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"IStoreCurrency"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input country.",block:!0},name:{kind:"Name",value:"country"},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input channel.",block:!0},name:{kind:"Name",value:"channel"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input postal code.",block:!0},name:{kind:"Name",value:"postalCode"},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"InputValueDefinition",description:{kind:"StringValue",value:"Session input postal code.",block:!0},name:{kind:"Name",value:"person"},type:{kind:"NamedType",name:{kind:"Name",value:"IStorePerson"}},directives:[]}]}],loc:{start:0,end:1075}};Pe.loc.source={body:'"""\nCurrency information.\n"""\ntype StoreCurrency {\n """\n Currency code, e.g: USD\n """\n code: String!\n """\n Currency symbol, e.g: $\n """\n symbol: String!\n}\n\ninput IStoreCurrency {\n """\n Currency code, e.g: USD\n """\n code: String!\n """\n Currency symbol, e.g: $\n """\n symbol: String!\n}\n\n"""\nSession information.\n"""\ntype StoreSession {\n """\n Session locale.\n """\n locale: String!\n """\n Session currency.\n """\n currency: StoreCurrency!\n """\n Session country.\n """\n country: String!\n """\n Session channel.\n """\n channel: String\n """\n Session postal code.\n """\n postalCode: String\n """\n Session postal code.\n """\n person: StorePerson\n}\n\n"""\nSession input.\n"""\ninput IStoreSession {\n """\n Session input locale.\n """\n locale: String!\n """\n Session input currency.\n """\n currency: IStoreCurrency!\n """\n Session input country.\n """\n country: String!\n """\n Session input channel.\n """\n channel: String\n """\n Session input postal code.\n """\n postalCode: String\n """\n Session input postal code.\n """\n person: IStorePerson\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};const we=[Te,ye,se,ce,me,pe,ke,Ne,Se,Ve,ge,de,be,ue,he,fe,le,ve,De,Ie,Oe,Fe,Ce,Pe].map(l.print).join("\n"),Le={vtex:{getResolvers:e=>oe,getContextFactory:e=>n=>{var i;return n.storage={channel:M.parse(e.channel),flags:null!=(i=e.flags)?i:{},locale:e.locale},n.clients=((e,n)=>({search:m(e,n),commerce:(({account:e,environment:n},i)=>{const t=`https://${e}.${n}.com.br`;return{catalog:{brand:{list:()=>u(t+"/api/catalog_system/pub/brand/list")},category:{tree:(e=3)=>u(`${t}/api/catalog_system/pub/category/tree/${e}`)},portal:{pagetype:e=>u(`${t}/api/catalog_system/pub/portal/pagetype/${e}`)}},checkout:{simulation:(e,{salesChannel:n}=i.storage.channel)=>{const a=new URLSearchParams({sc:n});return u(`${t}/api/checkout/pub/orderForms/simulation?${a.toString()}`,{...s,body:JSON.stringify(e)})},orderForm:({id:e,refreshOutdatedData:n=!0,channel:a=i.storage.channel})=>{const{salesChannel:r}=a,o=new URLSearchParams({refreshOutdatedData:n.toString(),sc:r});return u(`${t}/api/checkout/pub/orderForm/${e}?${o.toString()}`,s)},updateOrderFormItems:({id:e,orderItems:n,allowOutdatedData:a="paymentData",salesChannel:r=i.storage.channel.salesChannel})=>{const o=new URLSearchParams({allowOutdatedData:a,sc:r});return u(`${t}/api/checkout/pub/orderForm/${e}/items?${o}`,{...s,body:JSON.stringify({orderItems:n}),method:"PATCH"})},setCustomData:({id:e,appId:n,key:i,value:a})=>u(`${t}/api/checkout/pub/orderForm/${e}/customData/${n}/${i}`,{...s,body:JSON.stringify({value:a}),method:"PUT"}),region:async({postalCode:e,country:n,salesChannel:i})=>u(`${t}/api/checkout/pub/regions/?postalCode=${e}&country=${n}&sc=${null!=i?i:""}`)},session:e=>{const n=new URLSearchParams(e);return n.set("items","profile.id,profile.email,profile.firstName,profile.lastName,store.channel,store.countryCode,store.cultureInfo,store.currencyCode,store.currencySymbol"),u(`${t}/api/sessions?${n.toString()}`,{method:"POST",headers:{"content-type":"application/json",cookie:i.headers.cookie},body:"{}"})}}})(e,n),sp:(({account:e},n)=>{const i=`https://sp.vtex.com/event-api/v1/${e}/event`;return{sendEvent:e=>u(i,{method:"POST",body:JSON.stringify({...e,agent:"@faststore/api",anonymous:y.anonymous(),session:y.session()}),headers:{"content-type":"application/json"}})}})(e)}))(e,n),n.loaders=((e,{clients:n})=>({skuLoader:((e,n)=>new t(async e=>{const i=e.map(e=>{const n=e.find(({key:e})=>"id"===e);if(!n)throw new g("Error while loading SKU. Needs to pass an id to selected facets");return n.value}),{products:t}=await n.search.products({query:"sku:"+i.join(";"),page:0,count:i.length}),a=t.reduce((e,n)=>{for(const i of n.items)e[i.itemId]=f(i,n);return e},{}),r=i.map(e=>a[e]),o=r.filter(e=>!e);if(o.length>0)throw new Error("Search API did not return the following skus: "+o.join(","));return r},{maxBatchSize:99}))(0,n),simulationLoader:((e,n)=>{const i=a(1),r=async e=>{const i=[...e.flat()],t=await n.commerce.checkout.simulation({items:i}),a=t.items.reduce((e,n)=>{const i=n.requestIndex;return"number"==typeof i&&i<e.length&&(e[i]=n),e},Array(i.length).fill(null)),r=e.reduce((e,n)=>[...e,n.length+e[e.length-1]],[0]);return e.map((e,n)=>({...t,items:a.slice(r[n],r[n+1]).filter(e=>Boolean(e))}))};return new t(async e=>i(r,e),{maxBatchSize:50})})(0,n),collectionLoader:((e,n)=>{const i=a(20);return new t(async e=>Promise.all(e.map(e=>i(async()=>{const i=await n.commerce.catalog.portal.pagetype(e);if(S(i))return i;throw new v(`Catalog returned ${i.pageType} for slug: ${e}. This usually happens when there is more than one category with the same name in the same category tree level.`)}))),{batch:!1})})(0,n)}))(0,n),n}}},Ae=e=>Le[e.platform].getResolvers(e);exports.getContextFactory=e=>Le[e.platform].getContextFactory(e),exports.getResolvers=Ae,exports.getSchema=async e=>n.makeExecutableSchema({resolvers:Ae(e),typeDefs:we}),exports.getTypeDefs=()=>we;
2
2
  //# sourceMappingURL=api.cjs.production.min.js.map