id
stringlengths 12
53
| messages
listlengths 3
3
|
|---|---|
code_shopper-location-theme_d1af6192
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/styles/css/product-specification-table/vtex.product-specifications.css from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```css\n.groupName {\n font-size: 1.25rem;\n}\n\n.specificationName {\n font-weight: bold;\n}\n\n```"
}
] |
code_shopper-location-theme_2ff71193
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/about-us.json from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.custom#about-us\": {\n \"blocks\": [\n \"flex-layout.row#about-us\",\n \"video#about-us\"\n ]\n },\n\n \"flex-layout.row#about-us\": {\n \"children\": [\n \"image#mobile-phone\",\n \"flex-layout.col#text-about-us\"\n ]\n },\n\n \"flex-layout.col#text-about-us\": {\n \"children\": [\n \"rich-text#title-about-us\",\n \"rich-text#about-us\"\n ],\n \"props\": {\n \"blockclass\": \"textColumn\",\n \"preventVerticalStretch\": true\n }\n },\n\n \"rich-text#title-about-us\": {\n \"props\": {\n \"text\":\n \"# Create meaningful and relevant experiences.\",\n \"blockClass\": \"title\"\n }\n },\n\n \"image#mobile-phone\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/mobile-phone.png\",\n \"maxHeight\": \"\",\n \"maxWidth\": \"\",\n \"blockClass\": \"storePrint\"\n }\n },\n \"video#about-us\": {\n \"props\": {\n \"src\": \"https://www.youtube.com/embed/JgkrlaF52WQ\",\n \"width\": \"100%\",\n \"height\": \"100%\"\n }\n },\n \"rich-text#about-us\": {\n \"props\": {\n \"text\": \"**Optimized store framework** \\n Free your front-end with our React + Node store framework. Improve usability and SEO, while driving more conversion with modular components, single page applications, and a ready-for-PWA structure. \\n **Multi-currency and language** \\n Go international with multiple storefronts to support different languages and easily manage local currencies and payment conditions. \\n **Serverless development platform** \\n Reduce loading time, improve usability, and make the best out of SEO. Developing scalable components with a comprehensive, easy-to-use toolset, you can build stores faster than ever.\",\n \"blockClass\": \"about\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_6bced360
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/product-price.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"flex-layout.row#selling-price\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 4\n },\n \"children\": [\n \"product-selling-price\"\n ]\n },\n\n \"flex-layout.row#list-price-savings\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 2,\n \"marginTop\": 5\n },\n \"children\": [\n \"product-list-price\",\n \"product-price-savings\"\n ]\n }\n}\n\n```"
}
] |
code_shopper-location-theme_65e34d4b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/minicart.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"add-to-cart-button\": {\n \"props\": {\n \"addToCartFeedback\": \"customEvent\",\n \"customPixelEventId\": \"add-to-cart-button\"\n }\n },\n\n \"minicart.v2\": {\n \"props\": {\n \"customPixelEventId\": \"add-to-cart-button\"\n },\n \"children\": [\"minicart-base-content\"]\n }\n}\n\n```"
}
] |
code_shopper-location-theme_0a0c33e0
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/search.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.search\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#brand\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"orderByField\": \"OrderByReleaseDateDESC\",\n \"hideUnavailableItems\": true,\n \"maxItemsPerPage\": 10,\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#department\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#category\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"store.search#subcategory\": {\n \"blocks\": [\"search-result-layout\"],\n \"props\": {\n \"context\": {\n \"skusFilter\": \"ALL\",\n \"simulationBehavior\": \"skip\"\n }\n }\n },\n\n \"search-result-layout\": {\n \"blocks\": [\n \"search-result-layout.desktop\",\n \"search-result-layout.mobile\",\n \"search-not-found-layout\"\n ]\n },\n\n \"search-result-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#searchbread\",\n \"flex-layout.row#searchtitle\",\n \"flex-layout.row#result\"\n ],\n \"props\": {\n \"pagination\": \"show-more\",\n \"preventRouteChange\": false,\n \"defaultGalleryLayout\": \"grid\"\n }\n },\n \"flex-layout.row#searchbread\": {\n \"children\": [\"breadcrumb.search\"],\n \"props\": {\n \"preserveLayoutOnMobile\": true,\n \"fullWidth\": true\n }\n },\n \"flex-layout.row#searchtitle\": {\n \"children\": [\"search-title.v2\"]\n },\n \"flex-layout.row#result\": {\n \"children\": [\"flex-layout.col#filter\", \"flex-layout.col#content\"],\n \"props\": {\n \"preventHorizontalStretch\": true,\n \"fullWidth\": true\n }\n },\n \"flex-layout.col#filter\": {\n \"children\": [\"filter-navigator.v3\"],\n \"props\": {\n \"blockClass\": \"filterCol\"\n }\n },\n \"flex-layout.col#content\": {\n \"children\": [\n \"flex-layout.row#searchinfo\",\n \"flex-layout.row#fetchprevious\",\n \"flex-layout.row#products\",\n \"flex-layout.row#fetchmore\"\n ],\n \"props\": {\n \"width\": \"grow\",\n \"preventVerticalStretch\": true\n }\n },\n \"flex-layout.row#searchinfo\": {\n \"children\": [\"flex-layout.col#productCount\", \"flex-layout.row#orderByAndSwitcher\"]\n },\n \"flex-layout.row#orderByAndSwitcher\": {\n \"children\": [\"order-by.v2\", \"gallery-layout-switcher\"],\n \"props\": {\n \"horizontalAlign\": \"right\",\n \"preventHorizontalStretch\": true,\n \"blockClass\": \"orderByAndSwitcher\",\n \"colGap\": 3\n }\n },\n \"flex-layout.col#productCount\": {\n \"children\": [\"total-products.v2\"],\n \"props\": {\n \"blockClass\": \"productCountCol\"\n }\n },\n \"flex-layout.row#fetchprevious\": {\n \"props\": {\n \"marginBottom\": 3\n },\n \"children\": [\"search-fetch-previous\"]\n },\n \"flex-layout.row#fetchmore\": {\n \"props\": {\n \"marginTop\": 3\n },\n \"children\": [\"search-fetch-more\"]\n },\n \"search-fetch-previous\": {\n \"props\": {\n \"htmlElementForButton\": \"a\"\n }\n },\n \"search-fetch-more\": {\n \"props\": {\n \"htmlElementForButton\": \"a\"\n }\n },\n \"flex-layout.row#products\": {\n \"children\": [\"search-content\"]\n },\n \"search-content\": {\n \"blocks\": [\"gallery\", \"not-found\"]\n },\n\n \"search-result-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#searchinfomobile\",\n \"flex-layout.row#searchbread\",\n \"flex-layout.row#productCountMobile\",\n \"flex-layout.row#fetchprevious\",\n \"flex-layout.row#contentmobile\",\n \"flex-layout.row#fetchmore\"\n ],\n \"props\": {\n \"pagination\": \"show-more\",\n \"mobileLayout\": {\n \"mode1\": \"small\",\n \"mode2\": \"normal\"\n },\n \"defaultGalleryLayout\": \"grid\"\n }\n },\n \"flex-layout.row#contentmobile\": {\n \"children\": [\"search-content\"],\n \"props\": {\n \"preserveLayoutOnMobile\": true\n }\n },\n\n \"flex-layout.row#searchinfomobile\": {\n \"children\": [\n \"flex-layout.col#orderByMobile\",\n \"flex-layout.col#filterMobile\",\n \"flex-layout.col#switcherMobile\"\n ],\n \"props\": {\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\",\n \"colJustify\": \"around\"\n }\n },\n\n \"flex-layout.col#orderByMobile\": {\n \"children\": [\"order-by.v2\"],\n \"props\": {\n \"blockClass\": \"orderByMobileCol\"\n }\n },\n\n \"flex-layout.row#productCountMobile\": {\n \"children\": [\"total-products.v2\"],\n \"props\": {\n \"blockClass\": \"productCountMobileRow\"\n }\n },\n\n \"flex-layout.col#filterMobile\": {\n \"children\": [\"filter-navigator.v3\"],\n \"props\": {\n \"blockClass\": \"filterMobileCol\"\n }\n },\n \"flex-layout.col#switcherMobile\": {\n \"children\": [\"gallery-layout-switcher\"],\n \"props\": {\n \"verticalAlign\": \"middle\"\n }\n },\n \"search-not-found-layout\": {\n \"children\": [\"flex-layout.row#searchbread\", \"flex-layout.row#notfound\"]\n },\n\n \"flex-layout.row#notfound\": {\n \"children\": [\"not-found\"],\n \"props\": {\n \"fullWidth\": true\n }\n },\n\n \"breadcrumb\": {\n \"props\": {\n \"showOnMobile\": true\n }\n },\n\n \"gallery\": {\n \"props\": {\n \"layouts\": [\n {\n \"name\": \"grid\",\n \"component\": \"GridSummary\",\n \"itemsPerRow\": {\n \"(min-width:1300px)\": 4,\n \"desktop\": 3,\n \"tablet\": 3,\n \"phone\": 2\n }\n },\n {\n \"name\": \"list\",\n \"component\": \"ListSummary\",\n \"itemsPerRow\": 1\n }\n ],\n \"ListSummary\": \"product-summary.shelf#listLayout\",\n \"GridSummary\": \"product-summary.shelf\"\n }\n },\n \"gallery-layout-switcher\": {\n \"children\": [\n /*\n * For accessbility to work properly,\n * It's important to define the options in the same order as the layouts\n */\n \"gallery-layout-option#grid\",\n \"gallery-layout-option#list\"\n ]\n },\n \"gallery-layout-option#grid\": {\n \"props\": {\n \"name\": \"grid\"\n },\n \"children\": [\n \"icon-grid\",\n \"responsive-layout.desktop#textOptionGrid\"\n ]\n },\n \"gallery-layout-option#list\": {\n \"props\": {\n \"name\": \"list\"\n },\n \"children\": [\n \"icon-inline-grid\",\n \"responsive-layout.desktop#textOptionList\"\n ]\n },\n \"responsive-layout.desktop#textOptionGrid\": {\n \"children\": [\n \"rich-text#option-grid\"\n ]\n },\n \"responsive-layout.desktop#textOptionList\": {\n \"children\": [\n \"rich-text#option-list\"\n ]\n },\n \"rich-text#option-grid\": {\n \"props\": {\n \"text\": \"Grid\",\n \"textColor\": \"c-auto\",\n \"blockClass\": \"layout-option\"\n }\n },\n \"rich-text#option-list\": {\n \"props\": {\n \"text\": \"List\",\n \"textColor\": \"c-auto\",\n \"blockClass\": \"layout-option\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_c064f8bb
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/contact.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.custom#contact-us\": {\n \"children\": [\n \"flex-layout.row#contact-us\"\n ]\n },\n\n \"flex-layout.row#contact-us\": {\n \"props\": {\n \"blockClass\": \"contact\"\n },\n \"children\": [\n \"flex-layout.col#contact-us\"\n ]\n },\n\n \"flex-layout.col#contact-us\": {\n \"children\": [\n \"rich-text#contact-us\",\n \"form#contact-us\"\n ]\n },\n \"rich-text#contact-us\": {\n \"props\": {\n \"text\": \"## Contact Us\"\n }\n },\n\n \"form#contact-us\": {\n \"props\": {\n \"entity\": \"contact\",\n \"schema\": \"site-contact\"\n },\n \"blocks\": [\n \"form-success#contact-us\"\n ],\n \"children\": [\n \"form-input.text#title\",\n \"form-input.text#name\",\n \"form-input.text#email\",\n \"form-input.textarea#message\",\n \"form-submit#contact\"\n ]\n },\n\n \"form-success#contact-us\": {\n \"children\": [\n \"rich-text#success-submit\"\n ]\n },\n \"rich-text#success-submit\": {\n \"props\": {\n \"text\": \"Thanks for reaching out! We will come back shortly.\",\n \"textAlignment\": \"CENTER\",\n \"textPosition\": \"CENTER\"\n }\n },\n\n \"form-input.text#title\": {\n \"props\": {\n \"pointer\": \"#/properties/title\"\n }\n },\n \"form-input.text#name\": {\n \"props\": {\n \"pointer\": \"#/properties/name\"\n }\n },\n \"form-input.text#email\": {\n \"props\": {\n \"pointer\": \"#/properties/email\"\n }\n },\n \"form-input.textarea#message\": {\n \"props\": {\n \"pointer\": \"#/properties/message\"\n }\n },\n\n \"form-submit#contact\": {\n \"props\": {\n \"label\": \"Submit\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_f0ea1641
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/orderplaced.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"order-placed\": {\n \"blocks\": [\"op-header\", \"op-order\"]\n },\n \"op-header\": {\n \"children\": [\n \"op-section#confirmation\",\n \"op-section#notices\",\n \"op-summary-section\",\n \"op-bank-invoice-section\"\n ]\n },\n \"op-section#confirmation\": {\n \"props\": {\n \"name\": \"confirmation\",\n \"marginBottom\": 9,\n \"borderless\": true\n },\n \"children\": [\n \"op-confirmation-icon\",\n \"op-confirmation-title\",\n \"op-confirmation-message\",\n \"flex-layout.row#confirmation-buttons\"\n ]\n },\n \"flex-layout.row#confirmation-buttons\": {\n \"props\": {\n \"blockClass\": \"confirmationButtons\",\n \"marginTop\": 8,\n \"marginBottom\": 8,\n \"horizontalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preserveLayoutOnMobile\": true\n },\n \"children\": [\"flex-layout.col#confirmation-buttons\"]\n },\n \"flex-layout.col#confirmation-buttons\": {\n \"children\": [\"op-print-button\"]\n },\n \"op-section#notices\": {\n \"props\": {\n \"name\": \"notices\",\n \"marginBottom\": 9,\n \"borderless\": true\n },\n \"children\": [\"op-notices\"]\n },\n // each order section\n \"op-order\": {\n \"children\": [\n \"flex-layout.row#order-header\",\n \"op-order-split-notice\",\n \"op-order-customer\",\n \"op-section#payments\",\n \"op-section#pickup-packages\",\n \"op-section#delivery-packages\",\n \"op-order-takeaway-packages\",\n \"op-order-total\"\n ]\n },\n // each order header\n \"flex-layout.row#order-header\": {\n \"props\": {\n \"fullWidth\": true,\n \"colSizing\": \"auto\",\n \"colGap\": 5,\n \"marginBottom\": 5\n },\n \"children\": [\n \"flex-layout.col#order-header-info\",\n \"flex-layout.col#order-header-options\"\n ]\n },\n \"flex-layout.col#order-header-info\": {\n \"children\": [\"op-order-number\", \"op-order-datetime\", \"op-order-seller\"]\n },\n \"flex-layout.col#order-header-options\": {\n \"children\": [\"responsive-layout.desktop#order-options-desktop\"]\n },\n \"responsive-layout.desktop#order-options-desktop\": {\n \"children\": [\"op-order-options\"]\n },\n // payment section\n \"op-section#payments\": {\n \"props\": {\n \"name\": \"paymentMethods\"\n },\n \"children\": [\n \"op-order-payment\",\n \"responsive-layout.mobile#order-options-mobile\"\n ]\n },\n // bottom of top section of order header\n \"responsive-layout.mobile#order-options-mobile\": {\n \"children\": [\"op-order-options#mobile\"]\n },\n \"op-order-options#mobile\": {\n \"props\": {\n \"blockClass\": \"mobile\",\n \"fullWidth\": true\n }\n },\n \"op-section#pickup-packages\": {\n \"props\": {\n \"name\": \"pickupPackages\"\n },\n \"children\": [\"op-order-pickup-packages\"]\n },\n \"op-section#delivery-packages\": {\n \"props\": {\n \"name\": \"deliveryPackages\"\n },\n \"children\": [\"op-order-delivery-packages\"]\n }\n}\n\n```"
}
] |
code_shopper-location-theme_8494dd13
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/faq.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.custom#faq\": {\n \"children\": [\n \"flex-layout.row#faq\"\n ]\n },\n\n \"flex-layout.row#faq\": {\n \"props\": {\n \"blockClass\": \"faq\"\n },\n \"children\": [\n \"flex-layout.col#faq\"\n ]\n },\n\n \"flex-layout.col#faq\": {\n \"children\": [\n \"rich-text#faq\",\n \"disclosure-layout-group#group\"\n ]\n },\n \"rich-text#faq\": {\n \"props\": {\n \"text\": \"## FAQ\"\n }\n },\n\n \"disclosure-layout-group#group\": {\n \"children\": [\n \"disclosure-layout#first\",\n \"disclosure-layout#second\",\n \"disclosure-layout#third\",\n \"disclosure-layout#fourth\"\n ]\n },\n\n \"disclosure-layout#first\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#first\", \"disclosure-content#first\"]\n },\n \"disclosure-trigger#first\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question1\"]\n },\n \"disclosure-content#first\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer1\"]\n },\n \"rich-text#question1\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer1\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n \"disclosure-layout#second\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#second\", \"disclosure-content#second\"]\n },\n \"disclosure-trigger#second\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question2\"]\n },\n \"disclosure-content#second\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question2\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer2\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-layout#third\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#third\", \"disclosure-content#third\"]\n },\n \"disclosure-trigger#third\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question3\"]\n },\n \"disclosure-content#third\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer3\"]\n },\n \"rich-text#question3\": {\n \"props\": {\n \"text\": \"How can I change my shipping address?\"\n }\n },\n \"rich-text#answer3\": {\n \"props\": {\n \"text\": \"Call us at the number (212) 1234-1234.\"\n }\n },\n\n\n \"disclosure-layout#fourth\": {\n \"props\": {\n \"animated\": true\n },\n \"children\": [\"disclosure-trigger#fourth\", \"disclosure-content#fourth\"]\n },\n \"disclosure-trigger#fourth\": {\n \"props\": {\n \"blockClass\": \"question\",\n \"as\": \"div\"\n },\n \"children\": [\"disclosure-state-indicator\", \"rich-text#question4\"]\n },\n \"disclosure-content#fourth\": {\n \"props\": {\n \"blockClass\": \"answer\"\n },\n \"children\": [\"rich-text#answer2\"]\n },\n \"rich-text#question4\": {\n \"props\": {\n \"text\": \"How can I track my order?\"\n }\n },\n \"rich-text#answer4\": {\n \"props\": {\n \"text\": \"After logging into your account, you can find this info at the link Orders.\"\n }\n },\n\n\n \"disclosure-state-indicator\": {\n \"props\": {\n \"Show\": \"icon-caret#down\",\n \"Hide\": \"icon-caret#up\"\n }\n },\n \"icon-caret#down\": {\n \"props\": {\n \"orientation\": \"down\"\n }\n },\n \"icon-caret#up\": {\n \"props\": {\n \"orientation\": \"up\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_d968d5af
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/home/home.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.home\": {\n \"blocks\": [\n \"list-context.image-list#demo\",\n /* You can make references to blocks defined in other files.\n * For example, `flex-layout.row#deals` is defined in the `deals.json` file. */\n \"flex-layout.row#deals\",\n \"__fold__\",\n \"rich-text#shelf-title\",\n \"flex-layout.row#shelf\",\n \"info-card#home\",\n \"rich-text#question\",\n \"rich-text#link\",\n \"newsletter\"\n ]\n },\n\n \"list-context.image-list#demo\": {\n \"children\": [\"slider-layout#demo-images\"],\n \"props\": {\n \"height\": 570,\n \"preload\": true,\n \"images\": [\n {\n \"image\": \"https://storecomponents.vteximg.com.br/arquivos/Class&Style-desktop.png\",\n \"mobileImage\": \"https://storecomponents.vteximg.com.br/arquivos/Class&Style-mobile.png\"\n },\n {\n \"image\": \"https://storecomponents.vteximg.com.br/arquivos/banner-decoration.png\",\n \"mobileImage\": \"https://storecomponents.vteximg.com.br/arquivos/banner-decoration-mobile.png\"\n }\n ]\n }\n },\n \"slider-layout#demo-images\": {\n \"props\": {\n \"itemsPerPage\": {\n \"desktop\": 1,\n \"tablet\": 1,\n \"phone\": 1\n },\n \"infinite\": true,\n \"showNavigationArrows\": \"desktopOnly\",\n \"blockClass\": \"carousel\"\n }\n },\n\n \"rich-text#shelf-title\": {\n \"props\": {\n \"text\": \"## Summer\",\n \"blockClass\": \"shelfTitle\"\n }\n },\n \"flex-layout.row#shelf\": {\n \"children\": [\"list-context.product-list#demo1\"]\n },\n \"list-context.product-list#demo1\": {\n \"blocks\": [\"product-summary.shelf\"],\n \"children\": [\"slider-layout#demo-products\"],\n \"props\": {\n \"orderBy\": \"OrderByTopSaleDESC\"\n }\n },\n \"slider-layout#demo-products\": {\n \"props\": {\n \"itemsPerPage\": {\n \"desktop\": 4,\n \"tablet\": 3,\n \"phone\": 1\n },\n \"infinite\": true,\n \"fullWidth\": false,\n \"blockClass\": \"shelf\"\n }\n },\n\n \"info-card#home\": {\n \"props\": {\n \"id\": \"info-card-home\",\n \"isFullModeStyle\": false,\n \"textPosition\": \"left\",\n \"imageUrl\": \"https://storecomponents.vteximg.com.br/arquivos/banner-infocard2.png\",\n \"headline\": \"Clearance Sale\",\n \"callToActionText\": \"DISCOVER\",\n \"callToActionUrl\": \"/sale/d\",\n \"blockClass\": \"info-card-home\",\n \"textAlignment\": \"center\"\n }\n },\n\n \"rich-text#question\": {\n \"props\": {\n \"text\": \"**This is an example store built using the VTEX platform.\\nWant to know more?**\",\n \"blockClass\": \"question\"\n }\n },\n\n \"rich-text#link\": {\n \"props\": {\n \"text\": \"\\n**Reach us at**\\nwww.vtex.com.br\",\n \"blockClass\": \"link\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_961811e1
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/home/deals.json from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"flex-layout.row#deals\": {\n \"children\": [\n \"flex-layout.col#deals1\",\n \"flex-layout.col#deals2\",\n \"flex-layout.col#deals3\",\n \"flex-layout.col#deals4\"\n ],\n \"props\": {\n \"blockClass\": \"deals\"\n }\n },\n\n \"flex-layout.col#deals1\": {\n \"children\": [\n \"image#deal1\",\n \"rich-text#deal1\"\n ]\n },\n \"image#deal1\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/box.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal1\": {\n \"props\": {\n \"text\": \"Free shipping\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals2\": {\n \"children\": [\n \"image#deal2\",\n \"rich-text#deal2\"\n ]\n },\n \"image#deal2\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/delivery-fast.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal2\": {\n \"props\": {\n \"text\": \"One day delivery\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals3\": {\n \"children\": [\n \"image#deal3\",\n \"rich-text#deal3\"\n ]\n },\n \"image#deal3\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/store.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal3\": {\n \"props\": {\n \"text\": \"Pick up in store\",\n \"blockClass\": \"deals\"\n }\n },\n \"flex-layout.col#deals4\": {\n \"children\": [\n \"image#deal4\",\n \"rich-text#deal4\"\n ]\n },\n \"image#deal4\": {\n \"props\": {\n \"src\": \"https://storecomponents.vteximg.com.br/arquivos/coupon.png\",\n \"maxHeight\": \"24px\"\n }\n },\n \"rich-text#deal4\": {\n \"props\": {\n \"text\": \"Exclusive deals\",\n \"blockClass\": \"deals\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_95c3aa3d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/footer/footer.json from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"footer\": {\n \"blocks\": [\"footer-layout.desktop\", \"footer-layout.mobile\"]\n },\n \"footer-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#footer-1-desktop\",\n \"flex-layout.row#footer-2-desktop\",\n \"flex-layout.row#footer-3-desktop\"\n ]\n },\n \"flex-layout.row#footer-1-desktop\": {\n \"children\": [\n \"vtex.menu@2.x:menu#Products\",\n \"vtex.menu@2.x:menu#footer-clothing\",\n \"vtex.menu@2.x:menu#footer-decoration\",\n \"vtex.menu@2.x:menu#footer-bags\",\n \"footer-spacer\",\n \"social-networks\"\n ],\n \"props\": {\n \"blockClass\": \"menu-row\",\n \"paddingTop\": 6,\n \"paddingBottom\": 3\n }\n },\n\n \"social-networks\": {\n \"props\": {\n \"socialNetworks\": [\n {\n \"name\": \"Facebook\",\n \"url\": \"https://www.facebook.com/vtexonline/\"\n },\n {\n \"name\": \"Instagram\",\n \"url\": \"https://www.instagram.com/vtextruecloud/\"\n },\n {\n \"name\": \"Twitter\",\n \"url\": \"https://twitter.com/vtexonline\"\n },\n {\n \"name\": \"Youtube\",\n \"url\": \"https://www.youtube.com/user/VTEXTV\"\n }\n ]\n }\n },\n\n \"flex-layout.row#footer-2-desktop\": {\n \"children\": [\"accepted-payment-methods\"],\n \"props\": {\n \"blockClass\": \"payment-methods\"\n }\n },\n \"accepted-payment-methods\": {\n \"props\": {\n \"paymentMethods\": [\"MasterCard\", \"Visa\", \"Diners Club\"]\n }\n },\n\n \"flex-layout.row#footer-3-desktop\": {\n \"children\": [\"rich-text#footer\"],\n \"props\": {\n \"blockClass\": \"credits\"\n }\n },\n \"rich-text#footer\": {\n \"props\": {\n \"text\": \"All stock and product photos are from photos.icons8.com\",\n \"blockClass\": \"footer\"\n }\n },\n\n \"footer-layout.mobile\": {\n \"children\": [\n \"flex-layout.row#1-footer-mobile\",\n \"flex-layout.row#2-footer-mobile\"\n ]\n },\n \"flex-layout.row#2-footer-mobile\": {\n \"children\": [\"flex-layout.col#footer-1-mobile\"],\n \"props\": {\n \"blockClass\": \"payment-methods\",\n \"paddingTop\": 4,\n \"paddingBottom\": 4\n }\n },\n \"flex-layout.col#footer-1-mobile\": {\n \"children\": [\n \"accepted-payment-methods\",\n \"social-networks\",\n \"rich-text#footer-mobile\"\n ],\n \"props\": {\n \"blockClass\": \"payment-methods\",\n \"paddingTop\": 4,\n \"paddingBottom\": 4,\n \"rowGap\": 4\n }\n },\n \"flex-layout.row#1-footer-mobile\": {\n \"props\": {\n \"paddingTop\": 4,\n \"paddingBottom\": 4\n },\n \"children\": [\"vtex.menu@2.x:menu#footer-mobile\"]\n },\n \"rich-text#footer-mobile\": {\n \"props\": {\n \"text\": \"All stock and product photos are from photos.icons8.com\",\n \"blockClass\": \"footer\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_467afc94
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/footer/menu.json from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#Products\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#news\",\n \"menu-item#blackfriday\",\n \"menu-item#sale\",\n \"menu-item#personalization\"\n ]\n },\n \"menu-item#news\": {\n \"props\": {\n \"id\": \"menu-item-news\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"News\",\n \"text\": \"News\"\n }\n }\n },\n \"menu-item#blackfriday\": {\n \"props\": {\n \"id\": \"menu-item-black-friday\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"BlackFriday\",\n \"text\": \"Black Friday\"\n }\n }\n },\n \"menu-item#sale\": {\n \"props\": {\n \"id\": \"menu-item-sale\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Sale\",\n \"text\": \"Sale\"\n }\n }\n },\n \"menu-item#personalization\": {\n \"props\": {\n \"id\": \"menu-item-personalization\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Personalization\",\n \"text\": \"Personalization\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-decoration\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#smartphones\": {\n \"props\": {\n \"id\": \"menu-item-smartphones\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/smartphones\",\n \"noFollow\": true,\n \"tagTitle\": \"Smartphones\",\n \"text\": \"Smartphones\"\n }\n }\n },\n\n \"menu-item#videogames\": {\n \"props\": {\n \"id\": \"menu-item-videogames\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/videogames\",\n \"noFollow\": true,\n \"tagTitle\": \"Videogames\",\n \"text\": \"Videogames\"\n }\n }\n },\n\n \"menu-item#tvs\": {\n \"props\": {\n \"id\": \"menu-item-tvs\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/decoration/tvs\",\n \"noFollow\": true,\n \"tagTitle\": \"TVs\",\n \"text\": \"TVs\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-bags\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#bags\",\n \"menu-item#backpacks\",\n \"menu-item#necessaire\"\n ]\n },\n\n \"menu-item#bags\": {\n \"props\": {\n \"id\": \"menu-item-bags\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Bags\",\n \"text\": \"Bags\"\n }\n }\n },\n\n \"menu-item#backpacks\": {\n \"props\": {\n \"id\": \"menu-item-backpacks\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/backpacks\",\n \"noFollow\": true,\n \"tagTitle\": \"Backpacks\",\n \"text\": \"Backpacks\"\n }\n }\n },\n\n \"menu-item#necessaire\": {\n \"props\": {\n \"id\": \"menu-item-necessaire\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/bags/necessaire\",\n \"noFollow\": true,\n \"tagTitle\": \"Necessaire\",\n \"text\": \"Necessaire\"\n }\n }\n },\n\n \"vtex.menu@2.x:menu#footer-clothing\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#clothing\",\n \"menu-item#shorts\",\n \"menu-item#tank-tops\",\n \"menu-item#shirts\",\n \"menu-item#sweatshirt\",\n \"menu-item#cropped\"\n ]\n },\n\n \"vtex.menu@2.x:menu#footer-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#clothing-mobile\",\n \"menu-item#decoration-mobile\",\n \"menu-item#sale-mobile\"\n ]\n },\n\n \"menu-item#clothing-mobile\": {\n \"props\": {\n \"id\": \"menu-item-category-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#clothing\"]\n },\n \"vtex.menu@2.x:submenu.accordion#clothing\": {\n \"children\": [\"vtex.menu@2.x:menu#clothing-accordion\"]\n },\n\n \"vtex.menu@2.x:menu#clothing-accordion\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#shorts\",\n \"menu-item#tank-tops\",\n \"menu-item#shirts\",\n \"menu-item#sweatshirt\",\n \"menu-item#cropped\"\n ]\n },\n\n \"menu-item#decoration-mobile\": {\n \"props\": {\n \"itemProps\": {\n \"tagTitle\": \"Decoration\",\n \"text\": \"Decoration\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#decoration\"]\n },\n \"vtex.menu@2.x:submenu.accordion#decoration\": {\n \"children\": [\"vtex.menu@2.x:menu#footer-decoration-mobile\"]\n },\n\n \"vtex.menu@2.x:menu#footer-decoration-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#sale-mobile\": {\n \"props\": {\n \"itemProps\": {\n \"tagTitle\": \"Sale\",\n \"text\": \"Sale\"\n }\n },\n \"blocks\": [\"vtex.menu@2.x:submenu.accordion#sale\"]\n },\n \"vtex.menu@2.x:submenu.accordion#sale\": {\n \"children\": [\"vtex.menu@2.x:menu#footer-sale-mobile\"]\n },\n\n \"vtex.menu@2.x:menu#footer-sale-mobile\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#smartphones\",\n \"menu-item#videogames\",\n \"menu-item#tvs\"\n ]\n },\n\n \"menu-item#clothing\": {\n \"props\": {\n \"id\": \"menu-item-category-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/d\",\n \"noFollow\": true,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n }\n },\n\n \"menu-item#shorts\": {\n \"props\": {\n \"id\": \"menu-item-shorts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/shorts\",\n \"noFollow\": false,\n \"tagTitle\": \"Shorts\",\n \"text\": \"Shorts\"\n }\n }\n },\n\n \"menu-item#tank-tops\": {\n \"props\": {\n \"id\": \"menu-item-tank-tops\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/tank-tops\",\n \"noFollow\": false,\n \"tagTitle\": \"Tank tops\",\n \"text\": \"Tank tops\"\n }\n }\n },\n\n \"menu-item#shirts\": {\n \"props\": {\n \"id\": \"menu-item-shirts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/shirts\",\n \"noFollow\": false,\n \"tagTitle\": \"Shirts\",\n \"text\": \"Shirts\"\n }\n }\n },\n\n \"menu-item#sweatshirt\": {\n \"props\": {\n \"id\": \"menu-item-sweat-shirts\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/sweatshirt\",\n \"noFollow\": false,\n \"tagTitle\": \"Sweatshirt\",\n \"text\": \"Sweatshirt\"\n }\n }\n },\n\n \"menu-item#cropped\": {\n \"props\": {\n \"id\": \"menu-item-cropped\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/clothing/cropped\",\n \"noFollow\": false,\n \"tagTitle\": \"Cropped\",\n \"text\": \"Cropped\"\n }\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_4f2c463e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/product-summary/product-summary.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"product-summary.shelf\": {\n \"children\": [\n \"stack-layout#prodsum\",\n \"product-summary-name\",\n \"flex-layout.col#productRating\",\n \"product-summary-space\",\n \"product-list-price#summary\",\n \"flex-layout.row#selling-price-savings\",\n \"product-installments#summary\",\n \"add-to-cart-button\"\n ]\n },\n \"flex-layout.col#productRating\": {\n \"props\": {\n \"blockClass\": \"productRating\"\n },\n \"children\": [\"product-rating-inline\"]\n },\n\n \"stack-layout#prodsum\": {\n \"children\": [\n \"product-summary-image#shelf\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n\n \"product-summary-image#shelf\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 300\n }\n },\n\n \"vtex.product-highlights@2.x:product-highlights#collection\": {\n \"props\": {\n \"type\": \"collection\"\n },\n \"children\": [\"product-highlight-wrapper\"]\n },\n \"product-highlight-wrapper\": {\n \"props\": {\n \"blockClass\": \"collection\"\n },\n \"children\": [\"product-highlight-text\"]\n },\n \"product-highlight-text\": {\n \"props\": {\n \"message\": \"{highlightName}\"\n }\n },\n\n \"product-list-price#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"flex-layout.row#selling-price-savings\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"preventHorizontalStretch\": true,\n \"marginBottom\": 4\n },\n \"children\": [\n \"product-selling-price#summary\",\n \"product-price-savings#summary\"\n ]\n },\n \"product-installments#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"product-selling-price#summary\": {\n \"props\": {\n \"blockClass\": \"summary\"\n }\n },\n \"product-price-savings#summary\": {\n \"props\": {\n \"markers\": [\n \"discount\"\n ],\n \"blockClass\": \"summary\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_5f6df60b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/product-summary/quickview.json from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"modal-trigger#quickview\": {\n \"children\": [\n \"icon-expand\",\n \"modal-layout#quickview\"\n ],\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n\n \"modal-layout#quickview\": {\n \"children\": [\n \"modal-header#quickview\",\n \"flex-layout.row#quickview-main-row\"\n ],\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n \"modal-header#quickview\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n\n \"modal-content#quickview\": {\n \"children\": [\n \"vtex.store-components:product-name\",\n \"flex-layout.col#quickviewPrice\",\n \"product-summary-sku-selector#quickview\"\n ],\n \"props\": {\n \"blockClass\": \"quickviewContent\"\n }\n },\n \"flex-layout.col#quickviewPrice\": {\n \"children\": [\n \"flex-layout.row#list-price-savings\",\n \"flex-layout.row#selling-price\",\n \"product-installments\"\n ]\n },\n \"modal-actions#quickview\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n },\n \"children\": [\n \"flex-layout.row#quickview-actions-1\",\n \"flex-layout.row#quickview-actions-2\"\n ]\n },\n \"flex-layout.row#quickview-actions-1\": {\n \"children\": [\n \"flex-layout.col#quickview-product-quantity\",\n \"flex-layout.col#quickview-add-to-card-button\"\n ],\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 6,\n \"blockClass\": \"addToCartRow\"\n }\n },\n\n \"flex-layout.col#quickview-product-quantity\": {\n \"children\": [\n \"product-summary-quantity#quickview\"\n ]\n },\n \"product-summary-quantity#quickview\": {\n \"props\": {\n \"showLabel\": false,\n \"size\": \"regular\"\n }\n },\n \"flex-layout.col#quickview-add-to-card-button\": {\n \"children\": [\n \"add-to-cart-button\"\n ],\n \"props\": {\n \"width\": \"grow\"\n }\n },\n\n \"flex-layout.row#quickview-actions-2\": {\n \"children\": [\n \"link.product#button-pdp\"\n ]\n },\n \"link.product#button-pdp\": {\n \"props\": {\n \"buttonProps\": {\n \"variant\": \"secondary\"\n },\n \"displayMode\": \"button\",\n \"label\": \"View details\",\n \"href\": \"/{slug}/p\"\n }\n },\n \"flex-layout.row#quickview-main-row\": {\n \"children\": [\n \"flex-layout.col#quickview-images\",\n \"flex-layout.col#quickview-product-details\"\n ],\n \"props\": {\n \"blockClass\": \"quickviewMainRow\"\n }\n },\n \"flex-layout.col#quickview-images\": {\n \"children\": [\n \"product-images#quickview\"\n ]\n },\n \"flex-layout.col#quickview-product-details\": {\n \"children\": [\n \"modal-content#quickview\",\n \"modal-actions#quickview\"\n ],\n \"props\": {\n \"preventVerticalStretch\": true,\n \"blockClass\": \"quickviewDetails\"\n }\n },\n \"product-summary-sku-selector#quickview\": {\n \"props\": {\n \"thumbnailImage\": \"skuvariation\",\n \"imageHeight\": 28,\n \"blockClass\": \"quickview\",\n \"visibility\": \"more-than-one\"\n }\n },\n \"vtex.store-components:product-name\": {\n \"props\": {\n \"blockClass\": \"quickview\"\n }\n },\n \"product-images#quickview\" : {\n \"props\": {\n \"blockClass\": \"quickview\",\n \"showNavigationArrows\": true\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_634e6e89
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/product-summary/product-summary-list.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"product-summary.shelf#listLayout\": {\n \"props\": {\n \"blockClass\": \"listLayout\"\n },\n \"children\": [\n \"responsive-layout.desktop#productSummaryList\",\n \"responsive-layout.mobile#productSummaryList\"\n ]\n },\n \"responsive-layout.desktop#productSummaryList\": {\n \"children\": [\n \"flex-layout.row#summaryListDesktop\"\n ]\n },\n \"responsive-layout.mobile#productSummaryList\": {\n \"children\": [\n \"flex-layout.row#summaryListMobile\"\n ]\n },\n \"product-price-savings#summaryPercentage\": {\n \"props\": {\n \"message\": \"{savingsPercentage}\",\n \"blockClass\": \"summaryPercentage\"\n }\n },\n \"flex-layout.row#savingsSummaryListDesktop\": {\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 3,\n \"blockClass\": \"savingsSummaryListDesktop\"\n },\n \"children\": [\n \"product-price-savings#summaryPercentage\",\n \"product-price-savings#summary\"\n ]\n },\n \"flex-layout.row#summaryListDesktop\": {\n \"props\":{\n \"fullWidth\": true,\n \"colSizing\": \"auto\",\n \"blockClass\": \"summaryListDesktop\"\n },\n \"children\": [\n \"flex-layout.row#summaryLeftListDesktop\",\n \"flex-layout.col#summaryRightListDesktop\"\n ]\n },\n \"flex-layout.row#summaryLeftListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryLeftListDesktop\",\n \"colSizing\": \"auto\",\n \"colGap\": 7\n },\n \"children\": [\n \"stack-layout#summaryListDesktop\",\n \"flex-layout.col#summaryDetailsListDesktop\"\n ]\n },\n \"flex-layout.col#summaryDetailsListDesktop\": {\n \"props\": {\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"vtex.store-components:product-brand#summaryListDesktop\",\n \"product-summary-name#summaryListDesktop\",\n \"flex-layout.col#productRating\",\n \"flex-layout.row#productSpecifications\"\n ]\n },\n \"flex-layout.row#productSpecifications\": {\n \"children\": [\n \"product-specification-group#summary\"\n ]\n },\n \"product-summary-name#summaryListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"vtex.store-components:product-brand#summaryListDesktop\": {\n \"props\": {\n \"displayMode\": \"text\",\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"flex-layout.col#summaryRightListDesktop\": {\n \"props\": {\n \"blockClass\": \"summaryRightListDesktop\",\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"flex-layout.row#savingsSummaryListDesktop\",\n \"flex-layout.col#priceSummaryListDesktop\",\n \"flex-layout.row#buyButtonsSummaryListDesktop\"\n ]\n },\n \"flex-layout.row#buyButtonsSummaryListDesktop\": {\n \"props\": {\n \"colSizing\": \"auto\",\n \"colGap\": 5\n },\n \"children\": [\n \"add-to-cart-button\",\n \"flex-layout.row#buyNowButton\"\n ]\n },\n \"flex-layout.row#buyNowButton\": {\n \"props\": {\n \"blockClass\": \"buyNowButton\"\n },\n \"children\": [\n \"add-to-cart-button#buyNow\"\n ]\n },\n\n \"add-to-cart-button#buyNow\": {\n \"props\": {\n \"text\": \"BUY NOW\",\n \"isOneClickBuy\": true,\n \"onClickEventPropagation\": \"enabled\",\n \"blockClass\": \"buyNow\"\n }\n },\n \"flex-layout.col#priceSummaryListDesktop\": {\n \"children\": [\n \"product-selling-price#summary\",\n \"product-list-price#summary\"\n ]\n },\n \"stack-layout#summaryListDesktop\": {\n \"children\": [\n \"product-summary-image#summaryListDesktop\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n \"product-summary-image#summaryListDesktop\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 180,\n \"blockClass\": \"summaryListDesktop\"\n }\n },\n \"flex-layout.row#summaryListMobile\": {\n \"props\":{\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\",\n \"blockClass\": \"summaryListMobile\",\n \"colGap\": 5\n },\n \"children\": [\n \"stack-layout#summaryListMobile\",\n \"flex-layout.col#summaryDetailsListMobile\"\n ]\n },\n \"stack-layout#summaryListMobile\": {\n \"children\": [\n \"product-summary-image#summaryListMobile\",\n \"vtex.product-highlights@2.x:product-highlights#collection\",\n \"modal-trigger#quickview\" // Check quickview.jsonc\n ]\n },\n \"product-summary-image#summaryListMobile\": {\n \"props\": {\n \"showBadge\": false,\n \"aspectRatio\": \"1:1\",\n \"maxHeight\": 220,\n \"blockClass\": \"summaryListMobile\"\n }\n },\n \"flex-layout.col#summaryDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"width\": \"grow\",\n \"blockClass\": \"summaryDetailsListMobile\"\n },\n \"children\": [\n \"flex-layout.col#summaryUpDetailsListMobile\",\n \"flex-layout.col#summaryDownDetailsListMobile\"\n ]\n },\n \"flex-layout.col#summaryUpDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"blockClass\": \"summaryUpDetailsListMobile\"\n },\n \"children\": [\n \"vtex.store-components:product-brand#summaryListMobile\",\n \"product-summary-name#summaryListMobile\",\n \"product-rating-inline\"\n ]\n },\n \"flex-layout.col#summaryDownDetailsListMobile\": {\n \"props\": {\n \"preventVerticalStretch\": true\n },\n \"children\": [\n \"product-selling-price#summary\",\n \"product-installments#summary\"\n ]\n },\n \"vtex.store-components:product-brand#summaryListMobile\": {\n \"props\": {\n \"displayMode\": \"text\",\n \"blockClass\": \"summaryListMobile\"\n }\n },\n \"product-summary-name#summaryListMobile\": {\n \"props\": {\n \"tag\": \"div\",\n \"blockClass\": \"summaryListMobile\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_508a91a6
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/product-summary/product-specification-list.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"product-specification-group#summary\": {\n \"children\": [\n \"product-specification#summary\"\n ]\n },\n \"product-specification#summary\": {\n \"children\": [\n \"flex-layout.row#summarySpecificationValues\"\n ]\n },\n \"flex-layout.row#summarySpecificationValues\": {\n \"props\": {\n \"preventHorizontalStretch\": true,\n \"colGap\": 3\n },\n \"children\": [\n \"rich-text#summarySpecificationBullet\",\n \"product-specification-values\"\n ]\n },\n \"rich-text#summarySpecificationBullet\": {\n \"props\": {\n \"text\": \"•\",\n \"textColor\": \"c-action-primary\",\n \"blockClass\": \"summarySpecificationBullet\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_1a6f16cd
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/pdp/product-assembly.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"sticky-layout#buy-button\": {\n \"props\": {\n \"position\": \"bottom\"\n },\n \"children\": [\"flex-layout.row#buy-button\"]\n },\n \"product-assembly-options\": {\n \"children\": [\n \"flex-layout.row#product-assembly-options\",\n \"assembly-option-input-values\"\n ]\n },\n \"assembly-option-input-values\": {\n \"props\": {\n \"optionsDisplay\": \"box\"\n }\n },\n \"flex-layout.row#product-assembly-options\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\"\n },\n \"children\": [\n \"flex-layout.col#product-assembly-image\",\n \"flex-layout.col#product-assembly-middle\",\n \"flex-layout.col#product-assembly-quantity\"\n ]\n },\n \"flex-layout.col#product-assembly-quantity\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-quantity-selector\"\n ]\n },\n \"flex-layout.col#product-assembly-image\": {\n \"props\": {\n \"marginRight\": 4\n },\n \"children\": [\n \"assembly-option-item-image\"\n ]\n },\n \"flex-layout.col#product-assembly-middle\": {\n \"props\": {\n \"width\": \"grow\",\n \"verticalAlignment\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-children-description\",\n \"assembly-option-item-customize#first-level\"\n ]\n },\n \"assembly-option-item-customize#first-level\": {\n \"props\": {\n \"buttonProps\": {\n \"collapse\": \"left\"\n }\n },\n \"children\": [\n \"flex-layout.row#item-customize\",\n \"assembly-option-input-values\"\n ]\n },\n \"flex-layout.row#item-customize\": {\n \"props\": {\n \"colGap\": 2,\n \"preserveLayoutOnMobile\": true,\n \"colSizing\": \"auto\"\n },\n \"children\": [\n \"flex-layout.col#product-assembly-image\",\n \"flex-layout.col#item-customize-middle\",\n \"flex-layout.col#item-customize-quantity\"\n ]\n },\n \"flex-layout.col#item-customize-middle\": {\n \"props\": {\n \"width\": \"grow\",\n \"verticalAlignment\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-children-description\",\n \"assembly-option-item-customize#sec-level\"\n ]\n },\n \"flex-layout.col#item-customize-quantity\": {\n \"props\": {\n \"horizontalAlign\": \"right\",\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\n \"assembly-option-item-quantity-selector\"\n ]\n },\n \"assembly-option-item-customize#sec-level\": {\n \"props\": {\n \"buttonProps\": {\n \"collapse\": \"left\"\n }\n },\n \"children\": [\n \"assembly-option-item-image\",\n \"assembly-option-item-name\",\n \"assembly-option-item-price\",\n \"assembly-option-item-quantity-selector\"\n ]\n }\n}\n\n```"
}
] |
code_shopper-location-theme_1e6ec409
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/pdp/product-gifts.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"product-gifts\": {\n \"props\": {\n \"maxVisibleItems\": {\n \"desktop\": 1,\n \"mobile\": 1\n }\n },\n \"children\": [\"flex-layout.row#product-gifts-text\", \"product-gift-list\"]\n },\n\n \"flex-layout.row#product-gifts-text\": {\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"colSizing\": \"auto\",\n \"preserveLayoutOnMobile\": true\n },\n \"children\": [\n \"rich-text#product-gifts\",\n \"flex-layout.col#product-gifts-text\"\n ]\n },\n \"flex-layout.col#product-gifts-text\": {\n \"children\": [\"modal-trigger#product-gifts\"],\n \"props\": {\n \"verticalAlign\": \"middle\"\n }\n },\n \"rich-text#product-gifts\": {\n \"props\": {\n \"text\": \"**+ GIFT**\"\n }\n },\n \"gift-text\": {\n \"props\": {\n \"blockClass\": \"default\",\n \"text\": \"{exceedingItems, plural, =0{} one {+ # gift} other {+ # gifts}}\"\n }\n },\n \"product-gift-list\": {\n \"children\": [\"flex-layout.row#gift\"]\n },\n \"flex-layout.row#gift\": {\n \"props\": {\n \"fullWidth\": true\n },\n \"children\": [\"flex-layout.col#gift-name-description\", \"gift-image\"]\n },\n \"flex-layout.col#gift-name-description\": {\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"rowGap\": 3\n },\n \"children\": [\"gift-name\", \"gift-description\"]\n },\n\n \"modal-trigger#product-gifts\": {\n \"children\": [\"modal-layout#product-gifts\", \"gift-text\"],\n \"props\": {\n \"blockClass\": \"product-gifts\"\n }\n },\n \"modal-layout#product-gifts\": {\n \"props\": {\n \"blockClass\": \"product-gifts\",\n \"fullScreen\": {\n \"phone\": true,\n \"desktop\": false,\n \"tablet\": false\n }\n },\n \"children\": [\"product-gifts#modal\"]\n },\n\n \"product-gifts#modal\": {\n \"children\": [\"product-gift-list\"]\n }\n}\n\n```"
}
] |
code_shopper-location-theme_d0f0d6bd
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/pdp/product.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.product\": {\n \"children\": [\n \"flex-layout.row#product-breadcrumb\",\n \"condition-layout.product#availability\",\n \"flex-layout.row#description\",\n \"flex-layout.row#specifications-title\",\n \"product-specification-group#table\",\n \"shelf.relatedProducts\",\n \"product-reviews\",\n \"product-questions-and-answers\"\n ]\n },\n \"flex-layout.row#specifications-title\": {\n \"children\": [\"rich-text#specifications\"]\n },\n \"rich-text#specifications\": {\n \"props\": {\n \"text\": \"##### Product Specifications\"\n }\n },\n \"flex-layout.row#product-breadcrumb\": {\n \"props\": {\n \"marginTop\": 4\n },\n \"children\": [\"breadcrumb\"]\n },\n \"flex-layout.row#description\": {\n \"props\": {\n \"marginBottom\": 7\n },\n \"children\": [\"product-description\"]\n },\n \"condition-layout.product#availability\": {\n \"props\": {\n \"conditions\": [\n {\n \"subject\": \"isProductAvailable\"\n }\n ],\n \"Then\": \"flex-layout.row#product-main\",\n \"Else\": \"flex-layout.row#product-availability\"\n }\n },\n \"flex-layout.row#product-main\": {\n \"props\": {\n \"colGap\": 7,\n \"rowGap\": 7,\n \"marginTop\": 4,\n \"marginBottom\": 7,\n \"paddingTop\": 7,\n \"paddingBottom\": 7\n },\n \"children\": [\"flex-layout.col#stack\", \"flex-layout.col#right-col\"]\n },\n\n \"stack-layout\": {\n \"props\": {\n \"blockClass\": \"product\"\n },\n \"children\": [\n \"flex-layout.row#product-image\",\n \"product-bookmark\",\n \"product-specification-badges\"\n ]\n },\n\n \"product-specification-badges\": {\n \"props\": {\n \"specificationGroupName\": \"Group\",\n \"specificationName\": \"On Sale\",\n \"visibleWhen\": \"True\",\n \"displayValue\": \"SPECIFICATION_NAME\"\n }\n },\n\n \"flex-layout.col#stack\": {\n \"children\": [\"stack-layout\"],\n \"props\": {\n \"width\": \"60%\",\n \"rowGap\": 0\n }\n },\n \"flex-layout.row#product-image\": {\n \"children\": [\"product-images\"]\n },\n \"product-images\": {\n \"props\": {\n \"aspectRatio\": {\n \"desktop\": \"auto\",\n \"phone\": \"16:9\"\n },\n \"displayThumbnailsArrows\": true\n }\n },\n \"flex-layout.col#right-col\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"rowGap\": 0\n },\n \"children\": [\n \"flex-layout.row#product-name\",\n \"product-rating-summary\",\n \"flex-layout.row#list-price-savings\",\n \"flex-layout.row#selling-price\",\n \"product-installments\",\n \"product-separator\",\n \"product-identifier.product\",\n \"sku-selector\",\n \"product-quantity\",\n \"product-assembly-options\",\n \"product-gifts\",\n \"flex-layout.row#buy-button\",\n \"availability-subscriber\",\n \"shipping-simulator\",\n \"share#default\"\n ]\n },\n\n \"flex-layout.row#product-name\": {\n \"props\": {\n \"marginBottom\": 3\n },\n \"children\": [\"vtex.store-components:product-name\"]\n },\n\n \"sku-selector\": {\n \"props\": {\n \"variationsSpacing\": 3,\n \"showValueNameForImageVariation\": true\n }\n },\n\n \"flex-layout.row#buy-button\": {\n \"props\": {\n \"marginTop\": 4,\n \"marginBottom\": 7\n },\n \"children\": [\"add-to-cart-button\"]\n },\n\n \"flex-layout.row#product-availability\": {\n \"props\": {\n \"colGap\": 7,\n \"marginTop\": 4,\n \"marginBottom\": 7,\n \"paddingTop\": 7\n },\n \"children\": [\n \"flex-layout.col#stack\",\n \"flex-layout.col#right-col-availability\"\n ]\n },\n \"flex-layout.col#right-col-availability\": {\n \"props\": {\n \"preventVerticalStretch\": true,\n \"rowGap\": 0,\n \"blockClass\": \"info-availability\"\n },\n \"children\": [\n \"flex-layout.row#product-name\",\n \"product-identifier.product\",\n \"sku-selector\",\n \"flex-layout.row#availability\"\n ]\n },\n \"flex-layout.row#availability\": {\n \"props\": {\n \"blockClass\": \"message-availability\"\n },\n \"children\": [\"availability-subscriber\"]\n },\n\n \"share#default\": {\n \"props\": {\n \"social\": {\n \"Facebook\": true,\n \"WhatsApp\": true,\n \"Twitter\": false,\n \"Pinterest\": true\n }\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_9faf0087
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/pdp/product-specifications-table.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"product-specification-group#table\": {\n \"children\": [\n \"flex-layout.row#spec-group\"\n ]\n },\n \"flex-layout.row#spec-group\": {\n \"props\": {\n \"blockClass\": \"productSpecificationGroup\"\n },\n \"children\": [\n \"flex-layout.col#spec-group\"\n ]\n },\n \"flex-layout.col#spec-group\": {\n \"children\": [\n \"flex-layout.row#spec-group-name\",\n \"product-specification\"\n ]\n },\n \"flex-layout.row#spec-group-name\": {\n \"props\": {\n \"blockClass\": \"productSpecificationGroupName\"\n },\n \"children\": [\n \"product-specification-text#group\"\n ]\n },\n \"product-specification\": {\n \"children\": [\n \"flex-layout.row#spec-item\"\n ]\n },\n \"flex-layout.row#spec-item\": {\n \"props\": {\n \"blockClass\": \"productSpecification\"\n },\n \"children\": [\n \"flex-layout.col#spec-name\",\n \"flex-layout.col#spec-value\"\n ]\n },\n \"flex-layout.col#spec-name\": {\n \"props\": {\n \"blockClass\": \"productSpecificationName\",\n \"width\": {\n \"mobile\": \"50%\",\n \"desktop\": \"25%\"\n }\n },\n \"children\": [\n \"product-specification-text#specification\"\n ]\n },\n \"flex-layout.col#spec-value\": {\n \"props\": {\n \"blockClass\": \"productSpecificationValue\"\n },\n \"children\": [\n \"product-specification-values\"\n ]\n },\n \"product-specification-values\": {\n \"children\": [\n \"product-specification-text#value\"\n ]\n },\n \"product-specification-text#group\": {\n \"props\": {\n \"message\": \"{groupName}\"\n }\n },\n \"product-specification-text#specification\": {\n \"props\": {\n \"message\": \"{specificationName}\"\n }\n },\n \"product-specification-text#value\": {\n \"props\": {\n \"message\": \"{specificationValue}\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_e6c99fb7
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/header/category-menu.json from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#category-menu\": {\n \"props\": {\n \"experimentalOptimizeRendering\": true\n },\n \"children\": [\n \"menu-item#category-apparel\",\n \"menu-item#category-home\",\n \"menu-item#more\"\n ]\n },\n \"menu-item#category-apparel\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/\",\n \"noFollow\": false,\n \"tagTitle\": \"Apparel & Accessories\",\n \"text\": \"Apparel & Accessories\"\n }\n },\n \"blocks\": [\n \"vtex.menu@2.x:submenu#category-apparel\"\n ]\n },\n \"vtex.menu@2.x:submenu#category-apparel\": {\n \"props\": {\n \"width\": \"auto\"\n },\n \"children\": [\n \"vtex.menu@2.x:menu#category-apparel\"\n ]\n },\n \"vtex.menu@2.x:menu#category-apparel\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#category-apparel-clothing\",\n \"menu-item#category-apparel-accessories\",\n \"menu-item#category-apparel-eyeglasses\"\n ]\n },\n \"menu-item#category-apparel-clothing\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-clothing\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/clothing/\",\n \"noFollow\": false,\n \"tagTitle\": \"Clothing\",\n \"text\": \"Clothing\"\n }\n }\n },\n \"menu-item#category-apparel-accessories\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-accessories\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/accessories/\",\n \"noFollow\": false,\n \"tagTitle\": \"Accessories\",\n \"text\": \"Accessories\"\n }\n }\n },\n \"menu-item#category-apparel-eyeglasses\": {\n \"props\": {\n \"id\": \"menu-item-category-apparel-eyeglasses\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/apparel---accessories/eyeglasses/\",\n \"noFollow\": false,\n \"tagTitle\": \"Eyeglasses\",\n \"text\": \"Eyeglasses\"\n }\n }\n },\n \"menu-item#category-home\": {\n \"props\": {\n \"id\": \"menu-item-category-home\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/home---decor/\",\n \"noFollow\": false,\n \"tagTitle\": \"Home & Decor\",\n \"text\": \"Home & Decor\"\n }\n }\n },\n \"menu-item#more\": {\n \"props\": {\n \"id\": \"menu-item-custom-sale\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": true,\n \"tagTitle\": \"More\",\n \"text\": \"More\"\n }\n },\n \"blocks\": [\n \"vtex.menu@2.x:submenu#more\"\n ]\n },\n \"vtex.menu@2.x:submenu#more\": {\n \"props\": {\n \"width\": \"100%\"\n },\n \"children\": [\n \"flex-layout.row#menu-more\"\n ]\n },\n \"flex-layout.row#menu-more\": {\n \"children\": [\n \"flex-layout.col#menu-more-1\",\n \"flex-layout.col#menu-more-2\"\n ]\n },\n \"flex-layout.col#menu-more-1\": {\n \"children\": [\n \"vtex.menu@2.x:menu#more\"\n ]\n },\n \"flex-layout.col#menu-more-2\": {\n \"children\": [\n \"info-card#home\"\n ]\n },\n \"vtex.menu@2.x:menu#more\": {\n \"props\": {\n \"orientation\": \"vertical\"\n },\n \"children\": [\n \"menu-item#about-us\",\n \"menu-item#faq\"\n ]\n },\n \"menu-item#about-us\": {\n \"props\": {\n \"id\": \"menu-item-about-us\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/about-us\",\n \"noFollow\": true,\n \"tagTitle\": \"About us\",\n \"text\": \"About us\"\n }\n }\n },\n \"menu-item#faq\": {\n \"props\": {\n \"id\": \"menu-item-faq\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/faq\",\n \"noFollow\": true,\n \"tagTitle\": \"FAQ\",\n \"text\": \"FAQ\"\n }\n }\n },\n \"menu-item#contact-us\": {\n \"props\": {\n \"id\": \"menu-item-contact-us\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"/contact-us\",\n \"noFollow\": true,\n \"tagTitle\": \"Contact Us\",\n \"text\": \"Contact Us\"\n }\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_e56ef31f
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/header/header.jsonc from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"header\": {\n \"blocks\": [\"header-layout.desktop\", \"header-layout.mobile\"]\n },\n \"header.full\": {\n \"blocks\": [\"header-layout.desktop\", \"header-layout.mobile\"]\n },\n \"header-layout.desktop\": {\n \"children\": [\n \"flex-layout.row#1-desktop\",\n \"flex-layout.row#3-desktop\",\n \"sticky-layout#4-desktop\"\n ]\n },\n\n \"flex-layout.row#1-desktop\": {\n \"children\": [\"telemarketing\"],\n \"props\": {\n \"fullWidth\": true\n }\n },\n \n \"flex-layout.row#3-desktop\": {\n \"props\": {\n \"blockClass\": \"menu-link\",\n \"horizontalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"fullWidth\": true\n },\n \"children\": [\n \"vtex.menu@2.x:menu#websites\",\n \"flex-layout.col#spacer\",\n \"vtex.menu@2.x:menu#institutional\"\n ]\n },\n \"flex-layout.col#spacer\": {\n \"props\": {\n \"width\": \"grow\"\n }\n },\n \"sticky-layout#4-desktop\": {\n \"props\": {\n \"blockClass\": \"sticky-header\"\n },\n \"children\": [\"flex-layout.row#4-desktop\"]\n },\n \"flex-layout.row#4-desktop\": {\n \"props\": {\n \"blockClass\": \"main-header\",\n \"horizontalAlign\": \"center\",\n \"verticalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"fullWidth\": true\n },\n \"children\": [\n \"flex-layout.col#logo-desktop\",\n \"flex-layout.col#category-menu\",\n \"flex-layout.col#spacer\",\n \"search-bar\",\n \"locale-switcher\",\n \"login\",\n \"minicart.v2\"\n ]\n },\n \"flex-layout.col#logo-desktop\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\"logo#desktop\"]\n },\n \"flex-layout.col#category-menu\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\"vtex.menu@2.x:menu#category-menu\"]\n },\n \"logo#desktop\": {\n \"props\": {\n \"title\": \"Logo\",\n \"href\": \"/\",\n \"url\": \"https://storecomponents.vteximg.com.br/arquivos/store-theme-logo.png\",\n \"width\": \"180\",\n \"height\": \"12\"\n }\n },\n \"header-layout.mobile\": {\n \"children\": [\"sticky-layout#1-mobile\"]\n },\n \"sticky-layout#1-mobile\": {\n \"children\": [\"flex-layout.row#1-mobile\"]\n },\n \"flex-layout.row#1-mobile\": {\n \"children\": [\n \"drawer\",\n \"logo#mobile\",\n \"flex-layout.col#spacer\",\n \"login\",\n \"minicart.v2\"\n ],\n \"props\": {\n \"blockClass\": \"main-header-mobile\",\n \"preventHorizontalStretch\": true,\n \"preserveLayoutOnMobile\": true,\n \"fullWidth\": true\n }\n },\n \"drawer\": {\n \"children\": [\"menu#drawer\"]\n },\n\n \"menu#drawer\": {\n \"children\": [\n \"menu-item#category-apparel\",\n \"menu-item#category-home\",\n \"menu-item#more\"\n ],\n \"props\": {\n \"orientation\": \"vertical\"\n }\n },\n\n \"logo#mobile\": {\n \"props\": {\n \"title\": \"Logo\",\n \"href\": \"/\",\n \"url\": \"https://storecomponents.vteximg.com.br/arquivos/store-theme-logo-mobile.png\",\n \"width\": \"77.5\",\n \"height\": \"27.5\"\n }\n }\n}\n\n```"
}
] |
code_shopper-location-theme_ba76710a
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of shopper-location-theme/store/blocks/header/top-menu.json from the shopper-location-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vtex.menu@2.x:menu#websites\": {\n \"children\": [\n \"menu-item#shop\",\n \"menu-item#about-us\",\n \"flex-layout.row#header-desktop\"\n ]\n },\n \"flex-layout.row#header-desktop\": {\n \"props\": {\n \"blockClass\": \"main-header\",\n \"horizontalAlign\": \"center\",\n \"verticalAlign\": \"center\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"fullWidth\": true\n },\n \"children\": [\"shopper-location\"]\n },\n \"menu-item#shop\": {\n \"props\": {\n \"id\": \"menu-item-shop\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"internal\",\n \"href\": \"#\",\n \"noFollow\": false,\n \"tagTitle\": \"Shop\",\n \"text\": \"Shop\"\n }\n }\n },\n \"vtex.menu@2.x:menu#institutional\": {\n \"children\": [\"menu-item#vtex-website\"]\n },\n \"menu-item#vtex-website\": {\n \"props\": {\n \"id\": \"menu-item-vtex-website\",\n \"type\": \"custom\",\n \"iconId\": null,\n \"highlight\": false,\n \"itemProps\": {\n \"type\": \"external\",\n \"href\": \"http://vtex.com\",\n \"noFollow\": false,\n \"tagTitle\": \"visit vtex.com\",\n \"text\": \"visit vtex.com\"\n }\n }\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_ac71308e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/manifest.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"carrier-tracking-example\",\n \"vendor\": \"vtex\",\n \"version\": \"0.1.0\",\n \"title\": \"Tracking Example\",\n \"description\": \"Example that use vtex.carrier-tracking as a builder\",\n \"categories\": [],\n \"dependencies\": {},\n \"builders\": {\n \"node\": \"6.x\",\n \"vtex.carrier-tracking\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"credentialType\": \"absolute\",\n \"billingOptions\": {\n \"free\": true\n },\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"www.google.com\",\n \"path\": \"/\"\n }\n }\n ],\n \"settingsSchema\": {\n \"title\": \"Carrier Authentication\",\n \"type\": \"object\",\n \"properties\": {\n \"user\": {\n \"title\": \"User\",\n \"type\": \"string\"\n },\n \"token\": {\n \"title\": \"Token\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_carrier-hubs-examples_0e08873d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/manifest.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"carrier-notifier-example\",\n \"vendor\": \"vtex\",\n \"version\": \"0.1.0\",\n \"title\": \"Notifier Example\",\n \"description\": \"Example that use vtex.carrier-notifier as a builder\",\n \"categories\": [],\n \"dependencies\": {},\n \"builders\": {\n \"node\": \"6.x\",\n \"vtex.carrier-notifier\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"billingOptions\": {\n \"free\": true\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"www.google.com\",\n \"path\": \"/\"\n }\n }\n ],\n \"settingsSchema\": {\n \"title\": \"Carrier Authentication\",\n \"type\": \"object\",\n \"properties\": {\n \"user\": {\n \"title\": \"User\",\n \"type\": \"string\"\n },\n \"token\": {\n \"title\": \"Token\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_carrier-hubs-examples_c73b21fb
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/docs/README.md from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Tracking App\n\n## Before you start\n\nVTEX Log connects carriers and store owners to deliver better freight costs, and a simpler and smarter logistics operation. Our VTEX Log UI uses the following steps during a package's tracking process:\n- **Notification:** our OMS notifies the carrier that a package is being dispatched.\n- **Label:** tracking label is issued.\n- **Tracking:** tracking of the package begins, and is repeated in cycles, until its final delivery.\n\nFor *carriers* to integrate with VTEX Log's Hub, our main system, it is necessary to develop apps in VTEX IO. The carrier's apps integrate with the hub, that in turn are connected to other VTEX systems, fulfilling the steps cited above.\n\nFor the integration, carriers should develop VTEX IO apps only for the `Notification` and `Tracking` steps. The `Label` app will be developed internally by the VTEX Log team, our partners. Apps should be developed by following the model files included in this repository:\n- [Notification app model](https://github.com/vtex-apps/carrier-hubs-examples/tree/main/carrier-notifier-example)\n- [Tracking app model](https://github.com/vtex-apps/carrier-hubs-examples/tree/main/carrier-tracking-example)\n\nThe app's developement is associated to **API routes** that should also be developed by the carrier for the app to function fully. Check out our [API Reference](https://developers.vtex.com/vtex-developer-docs/reference/vtex-log-tracking-app#vtex-log-tracking-events-with-app) for more details about all API calls.\n\n## Tracking App Model\n\nThis is an example app that implements the builder for carrier tracking apps. It also exports the API that integrates with the VTEX Log's tracking hub. The Tracking Apps can be called every X minutes, with the request to update the events of a list of tracking codes, for packages that are still pending delivery.\n\nRequirements for an IO app for tracking:\n- Use the *Node* or *Dotnet* and *vtex.carrier-notifier* builders.\n- Export the API that is called by the *vtex.carrier-notifier* app.\n\nFollow the instructions below, to model your carrier app according to this example.\n\n### vtex.carrier-tracking builder\nAlong with the *Node* or *Dotnet* builder, the use of the `vtex.carrier-tracking` builder is what makes the app as a tracking type, and thus be detected by our hub. The steps to use the builder are the following:\n\n1. Add builder `vtex.carrier-tracking: 0.x` to the list of builders, in the file `manifest.json`. \nEx:\n```\n\"builders\": {\n \"node\": \"6.x\",\n \"vtex.carrier-tracking\": \"0.x\"\n}\n```\n2. Create the `vtex.carrier-tracking` folder at the *root* of the project.\n Whithin it, create the `configuration.json` file. \n This file must contain the name of the carrier that will do the tracking, which will be displayed to the customer or user. File format:\n```\n{\n \"trackingOptions\": [\n {\n \"carrierName\": \"vtexcorreios\"\n }\n ]\n}\n```\n\n### API routes\n\n#### Tracking Events: /tracking\n\n> Check out the [API Reference](https://developers.vtex.com/vtex-developer-docs/reference/vtex-log-tracking-app#vtex-log-tracking-events-with-app) for full details.\n\nThis endpoint is called by the hub to obtain the tracking events of a series of tracking numbers. The expected response is an object contaning the tracking information and the package's notification ID for every `packageID`.\n\n**1. Input sent by the hub**:\n```\n[\n {\n \"trackingNumber\": string\n }\n]\n```\n**2. Expected output:** a map whose keys are the package ids, and the value is an object containing the tracking information and the package's `notificationId`.\n```\n{\n <trackingNumber>: {\n \"deliveredDate\": Date,\n \"events\": [\n {\n \"city\": string,\n \"date\": Date,\n \"description\": string,\n \"state\": string\n }\n ],\n \"hasReturnedToSender\": bool,\n \"isDelivered\": bool\n }\n}\n```\n**3. Example route definition in the `service.json` file of a Node or Dotnet app**:\n```\n\"GetTrackingEvents\": {\n \"path\": \"/tracking\",\n \"public\": false,\n \"access\": \"authorized\",\n \"policies\": [\n {\n \"effect\": \"allow\",\n \"actions\": [\n \"post\"\n ],\n \"principals\": [\n \"vrn:apps:*:{{account}}:{{workspace}}:app/vtex.carrier-tracking@*\"\n ]\n }\n ]\n }\n```\n\n```"
}
] |
code_carrier-hubs-examples_6b50b3e1
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/vtex.carrier-tracking/configuration.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"trackingOptions\": [\n {\n \"carrierName\": \"Tracking Example\"\n }\n ]\n}\n\n```"
}
] |
code_carrier-hubs-examples_2a3ce798
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/service.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"stack\": \"node\",\n \"memory\": 256,\n \"runtimeArgs\": [],\n \"routes\": {\n \"getTrackingEvents\": {\n \"path\": \"/tracking\",\n \"public\": false,\n \"access\": \"authorized\",\n \"policies\": [\n {\n \"effect\": \"allow\",\n \"actions\": [\n \"post\"\n ],\n \"principals\": [\n \"vrn:apps:*:{{account}}:{{workspace}}:app/vtex.carrier-tracking@*\",\n \"vrn:vtex.vtex-id:*:{{account}}:*:user/*@vtex.com.br\"\n ]\n }\n ]\n }\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_d7fdf985
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/package.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"co-body\": \"^6.0.0\",\n \"ramda\": \"^0.25.0\"\n },\n \"devDependencies\": {\n \"@types/co-body\": \"^0.0.3\",\n \"@types/jest\": \"^24.0.18\",\n \"@types/node\": \"^12.0.0\",\n \"@types/ramda\": \"types/npm-ramda#dist\",\n \"@vtex/api\": \"6.41.0\",\n \"@vtex/test-tools\": \"^1.0.0\",\n \"typescript\": \"3.9.7\"\n },\n \"scripts\": {\n \"lint\": \"tsc --noEmit --pretty\"\n },\n \"version\": \"0.2.0\"\n}\n\n```"
}
] |
code_carrier-hubs-examples_b80f63e3
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/index.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport {\n ClientsConfig,\n method,\n Service,\n} from '@vtex/api'\nimport { trackingEvents } from './middlewares/trackingEvents'\nimport { Clients } from './clients'\n\nconst clients: ClientsConfig<Clients> = {\n implementation: Clients,\n options: {\n default: {\n retries: 2,\n timeout: 2000,\n },\n },\n}\n\n// Export a service that defines route handlers and client options.\nexport default new Service({\n clients,\n routes: {\n // `status` is the route ID from service.json. It maps to an array of middlewares (or a single handler).\n getTrackingEvents: method({\n POST: [trackingEvents],\n }),\n },\n})\n\n```"
}
] |
code_carrier-hubs-examples_072b1723
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/clients/google.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport {\n ExternalClient,\n InstanceOptions,\n IOContext,\n} from '@vtex/api'\n\nexport default class GoogleClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(\"http://www.google.com\", context, options)\n }\n\n public async Get(): Promise<any> {\n return this.http.get(\"/\")\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_d8ee6684
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/clients/index.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { IOClients } from '@vtex/api'\nimport GoogleClient from './google'\n\nexport class Clients extends IOClients {\n public get google() {\n return this.getOrSet('google', GoogleClient)\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_35625f74
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/typings/typings.d.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport {\n ServiceContext,\n RecorderState,\n} from '@vtex/api'\n\ndeclare global {\n // We declare a global Context type just to avoid re-writing ServiceContext<Clients, State> in every handler and resolver\n type Context = ServiceContext<Clients, State>\n\n export interface TrackingRequest {\n trackingNumber: string;\n }\n\n export interface Event {\n city: string;\n date: Date;\n description: string;\n state: string;\n }\n\n export interface TrackingResponse {\n deliveredDate: Date;\n events: Event[];\n hasReturnedToSender: boolean;\n isDelivered: boolean;\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_4c89f7c1
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/middlewares/trackingEvents.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { json } from 'co-body'\n\nexport async function trackingEvents(ctx: Context, next: () => Promise<any>) {\n const { clients: { google } } = ctx\n\n const content = await json(ctx.req) as TrackingRequest[]\n console.log(content.length)\n\n //access a external service (remember to add the policy on manifest.json)\n const googleResponse = await google.Get()\n console.log(googleResponse != null)\n\n //access settings by account\n const appSettings = await ctx.clients.apps.getAppSettings(\n '' + process.env.VTEX_APP_ID\n )\n console.log(appSettings)\n\n ctx.status = 200\n ctx.body = {\n \"OL589419015BR\": {\n \"deliveredDate\": \"2020-09-28T16:15:00.0000000-03:00\",\n \"events\": [\n {\n \"city\": \"BRASILIA\",\n \"date\": \"2020-09-28T16:15:00.0000000-03:00\",\n \"description\": \"Objeto entregue ao destinatário\",\n \"state\": \"DF\"\n },\n {\n \"city\": \"BRASILIA\",\n \"date\": \"2020-09-28T11:20:00.0000000-03:00\",\n \"description\": \"Objeto saiu para entrega ao destinatário\",\n \"state\": \"DF\"\n },\n {\n \"city\": \"BRASILIA\",\n \"date\": \"2020-09-03T15:41:00.0000000-03:00\",\n \"description\": \"Objeto ainda não chegou à unidade\",\n \"state\": \"DF\"\n },\n {\n \"city\": \"BRASILIA\",\n \"date\": \"2020-08-22T04:55:00.0000000-03:00\",\n \"description\": \"Objeto em trânsito - por favor aguarde\",\n \"state\": \"DF\"\n },\n {\n \"city\": \"CAJAMAR\",\n \"date\": \"2020-08-19T02:59:00.0000000-03:00\",\n \"description\": \"Objeto em trânsito - por favor aguarde\",\n \"state\": \"SP\"\n },\n {\n \"city\": \"SAO PAULO\",\n \"date\": \"2020-08-18T10:50:00.0000000-03:00\",\n \"description\": \"Objeto em trânsito - por favor aguarde\",\n \"state\": \"SP\"\n },\n {\n \"city\": \"SAO PAULO\",\n \"date\": \"2020-08-17T11:43:00.0000000-03:00\",\n \"description\": \"Objeto postado\",\n \"state\": \"SP\"\n }\n ],\n \"hasReturnedToSender\": false,\n \"isDelivered\": true\n }\n }\n\n await next()\n}\n\n```"
}
] |
code_carrier-hubs-examples_33176c41
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-tracking-example/node/__tests__/simple.test.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\n// You can import your files here for testing them\n//\n// More info: https://github.com/sapegin/jest-cheat-sheet\n\ndescribe('simpleTest', () => {\n it('one test case', async () => {\n expect(0.2 + 0.1).not.toBe(0.3)\n })\n})\n\n```"
}
] |
code_carrier-hubs-examples_3a09dc22
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/vtex.carrier-notifier/configuration.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"notificationOptions\": [\n {\n \"carrierName\": \"Carrier Example\"\n }\n ]\n}\n\n```"
}
] |
code_carrier-hubs-examples_d6ae9854
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/docs/README.md from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Notifier App\n\n## Before you start\n\nVTEX Log connects carriers and store owners to deliver better freight costs, and a simpler and smarter logistics operation. Our VTEX Log UI uses the following steps during a package's tracking process:\n- **Notification:** our OMS notifies the carrier that a package is being dispatched.\n- **Label:** tracking label is issued.\n- **Tracking:** tracking of the package begins, and is repeated in cycles, until its final delivery.\n\nFor *carriers* to integrate with VTEX Log's Hub, our main system, it is necessary to develop apps in VTEX IO. The carrier's apps integrate with the hub, that in turn are connected to other VTEX systems, fulfilling the steps cited above.\n\nFor the integration, carriers should develop VTEX IO apps only for the `Notification` and `Tracking` steps. The `Label` app will be developed internally by the VTEX Log team, our partners. Apps should be developed by following the model files included in this repository:\n- [Notification app model](https://github.com/vtex-apps/carrier-hubs-examples/tree/main/carrier-notifier-example)\n- [Tracking app model](https://github.com/vtex-apps/carrier-hubs-examples/tree/main/carrier-tracking-example)\n\nThe app's developement is associated to **API routes** that should also be developed by the carrier for the app to function fully. Check out our [API Reference](https://developers.vtex.com/vtex-developer-docs/reference/vtex-log-notification-app#vtex-log-notify-carrier-with-app) for more details about all API calls.\n\n## Notifier App Model\n\nThis is a reference app that implements the builder for carrier notifying apps. It also exports the API that integrates with the VTEX notification hub.\n\nRequirements for an IO app that notifies carriers:\n- Use the *Node* or *Dotnet* and *vtex.carrier-notifier* builders.\n- Export the API that is called by the *vtex.carrier-notifier* app.\n\nFollow the instructions below, to model your notifier app according to this example.\n\n### vtex.carrier-notifier builder\nAlong with the Node or Dotnet builder, the use of the vtex.carrier-notifier builder is what makes the app as a notifier type, and thus be detected by our hub. The steps to use the builder:\n\n1. Add builder `vtex.carrier-notifier: 0.x` to the list of builders, in the file `manifest.json`. Ex:\n```\n\"builders\": {\n \"node\": \"6.x\",\n \"vtex.carrier-notifier\": \"0.x\"\n}\n```\n2. Create the `vtex.carrier-notifier` folder at the *root* of the project.\n Within it, create the `configuration.json` file. \n This file must contain the name of the notified carrier, which will be displayed to the customer or user. File format:\n```\n{\n \"notificationOptions\": [\n {\n \"carrierName\": string\n }\n ]\n}\n```\n\n## API routes\n\n### Notify Carrier: /notify\n\n> Check out the [API Reference](https://developers.vtex.com/vtex-developer-docs/reference/vtex-log-notification-app#vtex-log-notify-carrier-with-app) for full details.\n\nThis endpoint notifies the carrier about a dispatch order by calling the `vtex.carrier-notifier` app. When the call is made, the following data is sent: \n- Dispatched packages information \n- Fiscal information about the carrier notified \n- Carrier's contact email. \nThe call's response includes all tracking data and each package's ID generated by the notification made to the carrier.\n\n**1. Input sent by the hub**: ([typing details](https://github.com/vtex-apps/carrier-hubs-examples/blob/main/carrier-notifier-example/node/typings/typings.d.ts#L187))\n```\n{\n\t\"dispatchOrder\": DispatchOrder,\n\t\"email\": string\n}\n```\n**2. Expected output**: a map whose keys are the `packageIds`, and the value is an object containing the tracking information and the package's `notificationId`.\n```\n{\n\t<packageId> : {\n\t\t\"tracking\": {\n\t\t\t\"number\": string,\n\t\t\t\"url\": string\n\t\t},\n\t\t\"notification\": {\n\t\t\t\"id\": string\n\t\t}\n\t}\n}\n```\n**3. Example route definition in the `service.json` file of a Node or Dotnet app**:\n```\n\"notify\": {\n \"path\": \"/notify\",\n \"public\": false,\n \"access\": \"authorized\",\n \"policies\": [\n {\n \"effect\": \"allow\",\n \"actions\": [\n \"post\"\n ],\n \"principals\": [\n \"vrn:apps:*:{{account}}:{{workspace}}:app/vtex.carrier-notifier@*\"\n ]\n }\n ]\n }\n```\n\n```"
}
] |
code_carrier-hubs-examples_d2d5a897
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/service.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"stack\": \"dotnet\",\n \"memory\": 256,\n \"runtimeArgs\": [\n ],\n \"routes\": {\n \"notify\": {\n \"path\": \"/notify\",\n \"public\": false,\n \"access\": \"authorized\",\n \"policies\": [\n {\n \"effect\": \"allow\",\n \"actions\": [\n \"post\"\n ],\n \"principals\": [\n \"vrn:apps:*:{{account}}:{{workspace}}:app/vtex.carrier-notifier@*\",\n \"vrn:vtex.vtex-id:*:{{account}}:*:user/*@vtex.com.br\"\n ]\n }\n ]\n }\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_2a8d0bc8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/package.json from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"co-body\": \"^6.0.0\",\n \"ramda\": \"^0.25.0\"\n },\n \"devDependencies\": {\n \"@types/co-body\": \"^0.0.3\",\n \"@types/jest\": \"^24.0.18\",\n \"@types/node\": \"^12.0.0\",\n \"@types/ramda\": \"types/npm-ramda#dist\",\n \"@vtex/api\": \"6.41.0\",\n \"@vtex/test-tools\": \"^1.0.0\",\n \"typescript\": \"3.9.7\"\n },\n \"scripts\": {\n \"lint\": \"tsc --noEmit --pretty\"\n },\n \"version\": \"0.2.0\"\n}\n\n```"
}
] |
code_carrier-hubs-examples_f95267d6
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/index.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport {\n ClientsConfig,\n method,\n Service,\n} from '@vtex/api'\nimport { Clients } from './clients'\nimport { notify } from './middlewares/notifier'\n\nconst clients: ClientsConfig<Clients> = {\n implementation: Clients,\n options: {\n default: {\n retries: 2,\n timeout: 2000,\n },\n },\n}\n\n// Export a service that defines route handlers and client options.\nexport default new Service({\n clients,\n routes: {\n // `status` is the route ID from service.json. It maps to an array of middlewares (or a single handler).\n notify: method({\n POST: [notify],\n })\n },\n})\n\n```"
}
] |
code_carrier-hubs-examples_fa7e2480
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/clients/google.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport {\n ExternalClient,\n InstanceOptions,\n IOContext,\n} from '@vtex/api'\n\nexport default class GoogleClient extends ExternalClient {\n constructor(context: IOContext, options?: InstanceOptions) {\n super(\"http://www.google.com\", context, options)\n }\n\n public async Get(): Promise<any> {\n return this.http.get(\"/\")\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_2a168d41
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/clients/index.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { IOClients } from '@vtex/api'\nimport GoogleClient from './google'\n\nexport class Clients extends IOClients {\n public get google() {\n return this.getOrSet('google', GoogleClient)\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_4737b6ad
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/typings/typings.d.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport {\n ServiceContext,\n RecorderState,\n} from '@vtex/api'\n\ndeclare global {\n // We declare a global Context type just to avoid re-writing ServiceContext<Clients, State> in every handler and resolver\n type Context = ServiceContext<Clients, State>\n\n export interface Item {\n id: string;\n name: string;\n quantity: number;\n }\n\n export interface Dimension {\n height: number;\n length: number;\n width: number;\n weight: number;\n }\n\n export interface Country {\n code: string;\n name: string;\n }\n\n export interface Subregion {\n code: string;\n name: string;\n }\n\n export interface Location {\n lat: number;\n lng: number;\n }\n\n export interface Address {\n postalCode: string;\n country: Country;\n subregion1: Subregion;\n subregion2: Subregion;\n subregion3: Subregion;\n street: string;\n number: string;\n complement?: any;\n location: Location;\n }\n\n export interface Recipient {\n cpf: string;\n id?: any;\n name: string;\n address: Address;\n email?: any;\n phone: string;\n }\n\n export interface InvoiceData {\n number: string;\n value: number;\n url: string;\n date: Date;\n invoiceAccessKeys: string[];\n hasIcms: boolean;\n hasInsurance: boolean;\n }\n\n export interface TrackingData {\n number: string;\n log: any[];\n finished: boolean;\n finishedDate?: any;\n }\n\n export interface ShippingData {\n shippingPolicyName: string;\n shippingPolicyId: string;\n carrierName: string;\n selectedSla: string;\n deliveryWindow: DeliveryWindow;\n }\n\n export interface DeliveryWindow {\n startDateUtc: Date;\n endDateUtc: Date;\n price: number;\n }\n\n export interface Package {\n id: string;\n orderId: string;\n items: Item[];\n dimension: Dimension;\n recipientPostalCode: string;\n recipient: Recipient;\n invoiceData: InvoiceData;\n trackingData: TrackingData;\n origin: string;\n status: string;\n orderCreationDate: Date;\n carrierNotifiedDate: Date;\n labelIssuedDate?: any;\n shippingEstimate: string;\n shippingEstimateDate: Date;\n shippingData: ShippingData;\n }\n\n export interface JuridicPerson {\n cnpj: string;\n name: string;\n fantasyName: string;\n stateRegistration: string;\n email: string;\n phone: string;\n address: Address;\n }\n\n export interface DispatchOrder\n {\n id: string,\n packages: Package[],\n sender: JuridicPerson,\n carrier: JuridicPerson\n }\n\n export interface NotificationRequest {\n dispatchOrder: DispatchOrder;\n email: string;\n }\n\n export interface NotificationFileRequest {\n dispatchOrder: DispatchOrder\n }\n\n export interface NotificationResponse {\n tracking: Tracking,\n notification: Notification;\n }\n\n export interface Tracking {\n number: string,\n url: string\n }\n\n export interface Notification {\n id: string\n }\n}\n\n```"
}
] |
code_carrier-hubs-examples_ab96f578
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/middlewares/notifier.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nimport { json } from 'co-body'\n\nexport async function notify(ctx: Context, next: () => Promise<any>) {\n const { clients: { google } } = ctx\n \n const content = await json(ctx.req) as NotificationRequest\n console.log(content)\n\n const googleResponse = await google.Get()\n console.log(googleResponse != null)\n\n //access settings by account\n const appSettings = await ctx.clients.apps.getAppSettings(\n '' + process.env.VTEX_APP_ID\n )\n console.log(appSettings)\n\n ctx.status = 200\n ctx.body = {\n \"AL123456789PB\": {\n \"tracking\": {\n \"number\": \"AL123456789PB\",\n \"url\": \"url\"\n },\n \"notification\": {\n \"id\": \"id\"\n }\n }\n }\n\n await next()\n}\n\n```"
}
] |
code_carrier-hubs-examples_a54ae7f1
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of carrier-hubs-examples/carrier-notifier-example/node/__tests__/simple.test.ts from the carrier-hubs-examples VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\n// You can import your files here for testing them\n//\n// More info: https://github.com/sapegin/jest-cheat-sheet\n\ndescribe('simpleTest', () => {\n it('one test case', async () => {\n expect(0.2 + 0.1).not.toBe(0.3)\n })\n})\n\n```"
}
] |
code_b2b-suite_0bed7c18
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/admin/routes.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin.app.b2b-organizations\": {\n \"path\": \"/admin/app/b2b-organizations/*\",\n \"around\": [\"orgLayout\"]\n },\n \"admin.app.b2b-organizations.organization-requests\": {\n \"component\": \"OrganizationRequestsTable\",\n \"path\": \"/admin/app/b2b-organizations/requests\"\n },\n \"admin.app.b2b-organizations.organization-request-details\": {\n \"component\": \"OrganizationRequestDetails\",\n \"path\": \"/admin/app/b2b-organizations/requests/:id\"\n },\n \"admin.app.b2b-organizations.organizations\": {\n \"component\": \"OrganizationsTable\",\n \"path\": \"/admin/app/b2b-organizations/organizations\"\n },\n \"admin.app.b2b-organizations.organization-details\": {\n \"component\": \"OrganizationDetails\",\n \"path\": \"/admin/app/b2b-organizations/organizations/:id\"\n },\n \"admin.app.b2b-organizations.costCenter-details\": {\n \"component\": \"CostCenterDetails\",\n \"path\": \"/admin/app/b2b-organizations/cost-centers/:id\"\n },\n \"orgLayout\": {\n \"component\": \"B2BAdminLayout\"\n },\n \"admin.app.storefront-permissions\": {\n \"around\": [\"permissionsLayout\"],\n \"path\": \"/admin/app/storefront-permissions/*\"\n },\n \"admin.app.storefront-permissions.users-list\": {\n \"component\": \"userList\",\n \"path\": \"/admin/app/storefront-permissions/user/list\"\n },\n \"admin.app.storefront-permissions.users-new\": {\n \"component\": \"userNew\",\n \"path\": \"/admin/app/storefront-permissions/user/new\"\n },\n \"admin.app.storefront-permissions.users-edit\": {\n \"component\": \"userEdit\",\n \"path\": \"/admin/app/storefront-permissions/user/*id\"\n },\n \"admin.app.storefront-permissions.roles-list\": {\n \"component\": \"rolesList\",\n \"path\": \"/admin/app/storefront-permissions/roles/list\"\n },\n \"admin.app.storefront-permissions.roles-new\": {\n \"component\": \"roleNew\",\n \"path\": \"/admin/app/storefront-permissions/role/new\"\n },\n \"admin.app.storefront-permissions.roles-edit\": {\n \"component\": \"roleEdit\",\n \"path\": \"/admin/app/storefront-permissions/role/*id\"\n },\n \"permissionsLayout\": {\n \"component\": \"PermissionsLayout\"\n },\n \"admin.app.b2b-checkout-settings\": {\n \"component\": \"B2BCheckoutAdmin\",\n \"path\": \"/admin/app/b2b-checkout-settings\"\n },\n \"admin.app.profile-system\": {\n \"component\": \"Customers\",\n \"path\": \"/admin/app/customers\"\n },\n \"admin.app.b2b-quotes\": {\n \"path\": \"/admin/app/b2b-quotes/*\",\n \"around\": [\"quotesLayout\"]\n },\n \"admin.app.b2b-quotes.settings\": {\n \"component\": \"B2BQuotesAdmin\",\n \"path\": \"/admin/app/b2b-quotes/settings\"\n },\n \"quotesLayout\": {\n \"component\": \"B2BQuotesAdminLayout\"\n }\n}\n\n```"
}
] |
code_b2b-suite_aae8513b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/docs/README.md from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n📢 Use this project, [contribute](https://github.com/vtex-apps/b2b-suite) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).\n\n# B2B Suite\n\n<!-- DOCS-IGNORE:start -->\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\n[](#contributors-)\n\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n<!-- DOCS-IGNORE:end -->\n\n**B2B Suite** is a collection of VTEX IO apps that allow stores to manage organizations, storefront roles and permissions, and checkout settings for B2B commerce relationships.\n\nThese features are particularly useful for B2B stores: in commerce relations between businesses, it is essential to simplify the purchase flow, reduce costs, and provide a personalized buying experience.\n\nB2B customers frequently have distinct roles within their organization, such as professional buyers, managers, or supervisors. Each role is associated with a different set of storefront permissions, depending on the actions the user needs to perform.\n\nGrouping different users from the same company under an organization and defining custom payment methods, product selections, and prices for each customer are also everyday needs in B2B.\n\nIn addition, it is often necessary to provide customized options for B2B customers during checkout, such as a specific selection of payment methods per organization or cost center, pre-filled addresses, purchase order numbers, and order quotes.\n\nBy installing the **B2B Suite**, you have access to seven apps with the following features for B2B:\n\n| **App name** | **Description** |\n| - | - |\n| [Storefront Permissions](https://developers.vtex.com/docs/apps/vtex.storefront-permissions) | Stores a predefined set of roles and permissions related to what B2B users can access and do in the storefront, which other integrated apps can check. This is useful for stores that want to set specific permissions for users with different organizational roles. |\n| [Storefront Permissions UI](https://developers.vtex.com/docs/apps/vtex.storefront-permissions-ui) | Provides an interface for the [Storefront Permissions](https://developers.vtex.com/docs/apps/vtex.storefront-permissions) app, communicates with its stored roles and permissions, and provides the following features for this scenario. <ul><li><b>Role management:</b> Allows VTEX Admin users to manage B2B roles and associated app permissions through an interface.</li> <li><b>Theme block configuration:</b> Enables conditional theme blocks so only users with the required permissions can access specific content in your storefront.</li></ul> |\n| [B2B Organizations](https://developers.vtex.com/docs/apps/vtex.b2b-organizations) | Enables you to group B2B users into organizations to which you can assign specific payment methods, price tables, and product collections. This allows all organization users to share the same commercial conditions. Each organization is further segmented into one or more cost centers, with its own shipping addresses, which will be available for cost center users at checkout. |\n| [B2B Quotes](https://developers.vtex.com/docs/apps/vtex.b2b-quotes) | Enables B2B users to create quotes and saved carts, which are then shared with the other members of their organization. Users with the appropriate storefront permissions can modify quotes to apply discounts or change the amount of items, so the resulting quote can then be used to place an order. |\n| [B2B Checkout Settings](https://developers.vtex.com/docs/apps/vtex.b2b-checkout-settings) | Extends the checkout experience for users who are members of B2B organizations. With this app, you can allow specific payment methods for the user's organization, provide prefilled addresses based on the cost center of each user, add a purchase order number to the order, and allow customers to create an order quote before placing the order. |\n| [B2B Orders History](https://developers.vtex.com/docs/apps/vtex.b2b-orders-history) | Provides a new **Orders** page under **My Account** so that B2B users can view all previous orders placed by users in their organization or cost center, depending on their role. |\n| [B2B Admin Customers](https://developers.vtex.com/docs/apps/vtex.b2b-admin-customers) | Provides additional customer information management capabilities on the VTEX Admin, allowing store administrators to create, edit, and search for customers. |\n\nMake sure to read the documentation for each app to learn more about their features and settings.\n\n> ⚠️ After installing **B2B Suite**, make sure to hide the default **Order History** link within **My Account** by configuring `vtex.my-account`. Otherwise, **B2B Orders History** will not work as expected. You can do this at `https://{{accountName}}.myvtex.com/admin/apps/vtex.my-account@1.x/setup/`, by unselecting the **Visible** option in the **Orders** section.\n\nFor additional features, you can also install the [Quick Order](https://developers.vtex.com/docs/apps/vtex.quickorder) app, which creates a custom page in your store aimed at bulk purchases, offering tools such as uploading a spreadsheet to make bulk orders more agile.\n\n## Frequently Asked Questions\n\n### How do I fix the schema issue?\n\nFor more details on how to resolve schema-related issues, please refer to the article [I can't fix the schema error in B2B apps](https://help.vtex.com/en/tutorial/i-cant-fix-the-schema-error-in-b2b-apps--WkjJZSnGXCiqmLhg4b0OR).\n\n<!-- DOCS-IGNORE:start -->\n\n## Contributors ✨\n\nThanks goes to these wonderful people:\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!\n\n<!-- DOCS-IGNORE:end -->\n\n```"
}
] |
code_b2b-suite_087ea626
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/OrganizationDetails.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { OrganizationDetails } from 'vtex.b2b-organizations'\n\nexport default OrganizationDetails\n\n```"
}
] |
code_b2b-suite_6c352819
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/B2BQuotesAdminLayout.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { B2BQuotesAdminLayout } from 'vtex.b2b-quotes'\n\nexport default B2BQuotesAdminLayout\n\n```"
}
] |
code_b2b-suite_cb37e9b9
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/PermissionsLayout.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { index } from 'vtex.storefront-permissions-ui'\n\nexport default index\n\n```"
}
] |
code_b2b-suite_0f309ba9
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/userEdit.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { userEdit } from 'vtex.storefront-permissions-ui'\n\nexport default userEdit\n\n```"
}
] |
code_b2b-suite_fecb4366
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/rolesList.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { rolesList } from 'vtex.storefront-permissions-ui'\n\nexport default rolesList\n\n```"
}
] |
code_b2b-suite_910bb0d7
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/roleEdit.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { roleEdit } from 'vtex.storefront-permissions-ui'\n\nexport default roleEdit\n\n```"
}
] |
code_b2b-suite_ca54cf87
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/RequestOrganizationForm.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { RequestOrganizationForm } from 'vtex.b2b-organizations'\n\nexport default RequestOrganizationForm\n\n```"
}
] |
code_b2b-suite_bf2461e0
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/OrganizationRequestsTable.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { OrganizationRequestsTable } from 'vtex.b2b-organizations'\n\nexport default OrganizationRequestsTable\n\n```"
}
] |
code_b2b-suite_20c3ba7e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/CostCenterDetails.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { CostCenterDetails } from 'vtex.b2b-organizations'\n\nexport default CostCenterDetails\n\n```"
}
] |
code_b2b-suite_2f40e0ea
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/QuotesTable.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { QuotesTable } from 'vtex.b2b-quotes'\n\nexport default QuotesTable\n\n```"
}
] |
code_b2b-suite_41739cbe
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/B2BQuotesAdmin.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { AppSettings as B2BQuotesAdmin } from 'vtex.b2b-quotes'\n\nexport default B2BQuotesAdmin\n\n```"
}
] |
code_b2b-suite_6cb4c137
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/roleNew.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { roleNew } from 'vtex.storefront-permissions-ui'\n\nexport default roleNew\n\n```"
}
] |
code_b2b-suite_c29ef4e5
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/package.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex.b2b-suite\",\n \"version\": \"2.0.0\",\n \"license\": \"UNLICENSED\",\n \"devDependencies\": {\n \"@types/node\": \"^13.9.8\",\n \"@types/react\": \"^16.9.31\",\n \"@vtex/tsconfig\": \"^0.6.0\",\n \"typescript\": \"3.9.7\",\n \"vtex.b2b-admin-customers\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-admin-customers@0.0.2/public/@types/vtex.b2b-admin-customers\",\n \"vtex.b2b-checkout-settings\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-checkout-settings@1.2.0/public/@types/vtex.b2b-checkout-settings\",\n \"vtex.b2b-orders-history\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-orders-history@0.0.3/public/@types/vtex.b2b-orders-history\",\n \"vtex.b2b-organizations\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-organizations@1.3.0/public/@types/vtex.b2b-organizations\",\n \"vtex.b2b-quotes\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-quotes@1.0.0/public/@types/vtex.b2b-quotes\",\n \"vtex.b2b-suite\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.b2b-suite@0.0.4/public/@types/vtex.b2b-suite\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.132.4/public/@types/vtex.render-runtime\",\n \"vtex.store\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.store@2.123.1/public/@types/vtex.store\",\n \"vtex.storefront-permissions-ui\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.storefront-permissions-ui@1.0.0/public/@types/vtex.storefront-permissions-ui\"\n }\n}\n\n```"
}
] |
code_b2b-suite_68dcfef3
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/OrganizationsTable.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { OrganizationsTable } from 'vtex.b2b-organizations'\n\nexport default OrganizationsTable\n\n```"
}
] |
code_b2b-suite_968ebd8b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/B2BAdminLayout.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { B2BAdminLayout } from 'vtex.b2b-organizations'\n\nexport default B2BAdminLayout\n\n```"
}
] |
code_b2b-suite_89c48678
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/OrganizationRequestDetails.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { OrganizationRequestDetails } from 'vtex.b2b-organizations'\n\nexport default OrganizationRequestDetails\n\n```"
}
] |
code_b2b-suite_a5739df8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/QuoteDetails.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { QuoteDetails } from 'vtex.b2b-quotes'\n\nexport default QuoteDetails\n\n```"
}
] |
code_b2b-suite_6476e8a6
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/userNew.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { userNew } from 'vtex.storefront-permissions-ui'\n\nexport default userNew\n\n```"
}
] |
code_b2b-suite_5f77916d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/B2BCheckoutAdmin.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { B2BCheckoutAdmin } from 'vtex.b2b-checkout-settings'\n\nexport default B2BCheckoutAdmin\n\n```"
}
] |
code_b2b-suite_6e7ae531
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/userList.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { userList } from 'vtex.storefront-permissions-ui'\n\nexport default userList\n\n```"
}
] |
code_b2b-suite_f02843cf
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/react/Customers.tsx from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { index } from 'vtex.b2b-admin-customers'\n\nexport default index\n\n```"
}
] |
code_b2b-suite_2edbd9b1
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/store/blocks.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.organization-request\": {\n \"blocks\": [\"request-organization\"]\n },\n \"store.b2b-quotes\": {\n \"blocks\": [\"quotes-table\"]\n },\n \"store.create-b2b-quote\": {\n \"blocks\": [\"quote-details\"]\n },\n \"store.b2b-quote-details\": {\n \"blocks\": [\"quote-details\"]\n }\n}\n\n```"
}
] |
code_b2b-suite_c5989f15
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/store/interfaces.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.organization-request\": {\n \"required\": [\"request-organization\"]\n },\n \"request-organization\": {\n \"component\": \"RequestOrganizationForm\"\n },\n \"store.b2b-quotes\": {\n \"required\": [\"quotes-table\"]\n },\n \"quotes-table\": {\n \"component\": \"QuotesTable\"\n },\n \"store.create-b2b-quote\": {\n \"required\": [\"quote-details\"]\n },\n \"store.b2b-quote-details\": {\n \"required\": [\"quote-details\"]\n },\n \"quote-details\": {\n \"component\": \"QuoteDetails\"\n }\n}\n\n```"
}
] |
code_b2b-suite_c0fe20de
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/store/routes.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"store.organization-request\": {\n \"title\": \"Organization Signup\",\n \"path\": \"/organization-request\"\n },\n \"store.b2b-quotes\": {\n \"title\": \"My Quotes and Carts\",\n \"path\": \"/b2b-quotes\"\n },\n \"store.create-b2b-quote\": {\n \"title\": \"Create Quote\",\n \"path\": \"/b2b-quotes/create\"\n },\n \"store.b2b-quote-details\": {\n \"title\": \"Quote Details\",\n \"path\": \"/b2b-quotes/:id\"\n }\n}\n\n```"
}
] |
code_b2b-suite_64312ab9
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/public/metadata/messages/es-AR.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"B2B Suite\",\n \"headline\": \"Conjunto de aplicaciones para añadir diversas funcionalidades B2B esenciales a tu tienda VTEX\",\n \"overview\": \"B2B Suite es una colección de aplicaciones que añaden varias funcionalidades B2B a tu tienda VTEX IO. Al instalar esta aplicación, se instalan automáticamente las siguientes aplicaciones dependientes: B2B Organizations, Storefront Permissions, B2B Checkout Settings, B2B Orders History y B2B Quotes\",\n \"features\": [\n \"Cada usuario del storefront puede ahora formar parte de una organización, lo que permite que varios usuarios compartan el mismo historial de pedidos, condiciones de pago, cotizaciones, carritos guardados, listas de precios negociadas y catálogo segmentado.\",\n \"Cada organización está dividida en uno o más centros de costo, cada uno con direcciones de envío que los usuarios del centro de costo comparten en el checkout.\",\n \"A los usuarios se les puede conceder uno de varios roles B2B con niveles de permisos variables y configurables.\",\n \"Los usuarios con el rol de Administrador de la organización pueden gestionar los centros de costo de su organización y los usuarios a través de la página Mi Cuenta en el storefront.\",\n \"Se proporciona un formulario de solicitud y una cola de aprobación para los usuarios del storefront que deseen solicitar la creación de nuevas organizaciones.\",\n \"Los usuarios de la organización pueden guardar carritos para compras futuras. Además, también pueden negociar precios calculados con los representantes de ventas.\"\n ],\n \"websiteURL\": \"https://vtex.com/ar-es/\",\n \"support\": {\n \"url\": \"https://help-tickets.vtex.com/en/support?app=vtex.b2b-suite\"\n }\n}\n\n```"
}
] |
code_b2b-suite_08882eba
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/public/metadata/messages/pt-BR.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"B2B Suite\",\n \"headline\": \"Conjunto de aplicativos para adicionar várias funcionalidades B2B essenciais à sua loja VTEX\",\n \"overview\": \"O B2B Suite é uma coleção de aplicativos que adicionam várias funcionalidades B2B à sua loja VTEX IO. Ao instalá-lo, os seguintes aplicativos são instalados automaticamente: B2B Organizations, Storefront Permissions, B2B Checkout Settings, B2B Orders History e B2B Quotes\",\n \"features\": [\n \"Cada usuário do storefront pode fazer parte de uma organização, permitindo que vários usuários compartilhem o mesmo histórico de pedidos, condições de pagamento, cotações, carrinhos salvos, listas de preços negociados e catálogo segmentado.\",\n \"Cada organização é dividida em um ou mais centros de custo - cada um com os endereços de envio que os usuários do centro de custo compartilham no checkout.\",\n \"É possível atribuir aos usuários um dos vários perfis de acesso B2B com níveis de permissão diferentes (e configuráveis).\",\n \"Os usuários com a função de Admin da Organização podem gerenciar os Centros de Custo e os usuários de sua Organização na página Minha Conta, no storefront.\",\n \"Um formulário de solicitação e uma fila de aprovação são fornecidos para os usuários do storefront que desejam solicitar a criação de novas Organizações.\",\n \"Os usuários da organização podem salvar carrinhos para compras futuras, bem como negociar os preços calculados com os vendedores.\"\n ],\n \"websiteURL\": \"https://vtex.com/br-pt\",\n \"support\": {\n \"url\": \"https://help-tickets.vtex.com/en/support?app=vtex.b2b-suite\"\n }\n}\n\n```"
}
] |
code_b2b-suite_6ca6e416
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of b2b-suite/public/metadata/messages/en-US.json from the b2b-suite VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"B2B Suite\",\n \"headline\": \"Suite of apps to add various essential B2B functionalities to your VTEX store\",\n \"overview\": \"The B2B Suite is a collection of apps that add various B2B functionalities to your VTEX IO store. By installing this app, the following dependency apps are automatically installed: B2B Organizations, Storefront Permissions, B2B Checkout Settings, B2B Orders History and B2B Quotes\",\n \"features\": [\n \"Each storefront user can now be part of an organization, allowing multiple users to share the same order history, payment terms, quotes, saved carts, negotiated price lists, and segmented catalog\",\n \"Each organization is divided into one or more cost centers - each with shipping addresses that the cost center's users share in checkout.\",\n \"Users can be granted one of several B2B roles with varying (and configurable) levels of permissions\",\n \"Users with the Organization Admin role can manage their Organization's Cost Centers and users through the My Account page in the storefront\",\n \"A request form and approval queue is provided for storefront users who wish to request the creation of new Organizations\",\n \"Organization users may save carts for future purchases as well as request and negotiate quotes with sales representatives\"\n ],\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://help-tickets.vtex.com/en/support?app=vtex.b2b-suite\"\n }\n}\n\n```"
}
] |
code_adobe-launch-pixel_432e6864
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/docs/README.md from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n📢 Use this project, [contribute](https://github.com/vtex-apps/adobe-launch-pixel) to it or open issues to help evolve it using [Store Discussion](https://github.com/vtex-apps/store-discussion).\n\n# Adobe Launch\n\n## ⚠️ Maintenance ⚠️\n*Starting June 1st 2023, this application will no longer be maintained by VTEX.*\n\n---\n\nThe VTEX Adobe Launch app is a first party integration to the [Adobe Experience Platform Launch](https://launch.adobe.com/).\n\n\n\n## Installation and configuration\n\n### Step 1 - Installing Adobe Launch app\nInstall `vtexasia.adobe-launch-pixel` in your account.\n\n \n vtex install vtexasia.adobe-launch-pixel@0.x\n \n\n>ℹ️ **Info**\n>\n> Access the [Adobe Experience Platform Launch](https://launch.adobe.com/)</a> and login to you account in order to find out what is your account **Adobe Launch ID**. The number your should use is the one provided by the `Environments` section. Select the environment you prefer, click the box icon, and a pop-up with web installation instructions will appear. Use the script there to set up the app. \n\n>⚠️ **Warning**\n>\n> Make sure you set up a library under your selected environment, since later all the configurations will be added to that library. \n\n\n\nFollow the instructions provided by the Adobe Launch App in the `Admin` > `Account Seetings` > `Apps` > `My Apps` > `adobe launch pixel`\n\n\n\n### Step 2 - Setup Adobe Launch\nTo set up Adobe Launch in your store, you must create and set up all necessary tags, rules and data elements. \n\n#### Install Extension, creating Rules and Data elements\n\n1. Log in to your [Adobe Launch account](https://launch.adobe.com/) and click on the tags you want to work with.\n\n2. On the tags page, click on **Extensions**, make sure you have installed the Adobe Analytics, Adobe Client Data Layer, Core and Experience Cloud ID Service.\n\n\n\nConfigure the Adobe Client Data Layer in the following way: the Data Layer Name is `adobeDataLayer`, and Inject Adobe Client Data Layer (ACDL) library if not present.\n\n\n\n3. In the **Rules** section, create a new rule.\n\n\n\nFollow the event configuraion below.\n\n\n\nFollow the action configuration below.\n\n\n\n\n\n>ℹ️ **Info**\n>\n> The Variables you set here will be later used as the data elements.\n\n\n\nClick `Save to Library` after finished the above steps.\n\n4. Go to the **Data Element** section and create a new data element using the variables created in the previous step.\n\n\n\nClick `Save to Library` after finished the above steps.\n\n5. Click `Build` to save all changes into the Library.\n\n#### Checking received data\n\nNow, let's check the received data from your website.\n\n1. Go to the **Chrome Web Store**.\n2. Install the [**Adobe Experience Platform Debugger**](https://chrome.google.com/webstore/detail/adobe-experience-platform/bfnnokhpnncpkdmbokanobigaccjkpob?hl=en-GB) extension.\n\n\n\n3. Open the Adobe Experience Platform Debugger, and you should able to see the data sent from your website under `Analytics` section.\n\n\n\n>ℹ️ **Info**\n>\n> If you are not able to see any data, go to your Chrome's Developer Tools, under `Application` section, go to `Service Workers` and select `Bypass for network`. Refresh the page and check the debugger again. If it is still not working, check your setup for Adobe Launch.\n>\n>\n> \n\n\n## Native VTEX events\n\nThe app listens to VTEX storefront native events (excluding interim steps in the checkout page) and transforms them into payloads and pushes into adobeDataLayer, so that Adobe Launch can consume it natively.\n\nList of events: \n\n| Events | Triggers |\n| --- | --- |\n| addToCart | Triggered when a product is added to the cart |\n| cartChanged | Triggered when there is a change in cart |\n| cartId | Triggered on every loaded page view |\n| homePageInfo | Triggered on every loaded home page view |\n| orderPlaced | Triggered when an order is placed |\n| pageView | Triggered on every loaded page view |\n| productClick | Triggered on every product click |\n| productImpression | Triggered when product data is visible on the page currently being accessed by users |\n| productView | Triggered on every product view |\n| promoClick | Triggered on every promotion click |\n| promoView | Triggered on every promotion view |\n| removeFromCart | Triggered when a product is removed from the cart |\n| searchPageInfo | Triggered on every loaded search page view |\n| userData | Triggered on every loaded page view |\n\n\n## App functionality\nOur app is built with Adobe Client Data Layer (ACDL), It introduces a standard method to collect and store data about a website user's experience and then make it easy to access this data.\n\nThe app push the native VTEX events into the ACDL, so that they can be shown from Adobe Experience Platform Debugger.\n\n```tsx\n window.adobeDataLayer.push({\n homePageInfo: {\n eventType: \"homeView\"\n }\n })\n```\n\nYou can check how ACDL works from [here](https://experienceleague.adobe.com/docs/experience-manager-learn/sites/integrations/adobe-client-data-layer/data-layer-overview.html?lang=en#adobe-client-data-layer).\n\n```"
}
] |
code_adobe-launch-pixel_194bfc35
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/react/index.tsx from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```tsx\nimport { canUseDOM } from 'vtex.render-runtime'\nimport type { PixelMessage } from './typings/events'\n\nexport function handleEvents(e: PixelMessage) {\n\n switch (e.data.eventName) {\n\n case 'vtex:pageView': {\n window.adobeDataLayer.push({\n event: 'pageView', pageView: {\n eventName: 'vtex:pageView',\n pageTitle: e.data.pageTitle,\n pageUrl: e.data.pageUrl,\n referrer: e.data.referrer,\n accountName: e.data.accountName,\n routeId: e.data.routeId,\n\n page: e.data.pageUrl.replace(e.origin, ''),\n\n ...(e.data.pageTitle && {\n title: e.data.pageTitle,\n }),\n },\n })\n return\n }\n\n case \"vtex:pageInfo\": {\n if (e.data.eventType === 'homeView') {\n window.adobeDataLayer.push({\n homePageInfo: {\n eventType: \"homeView\"\n }\n })\n }\n if (e.data.eventType === \"internalSiteSearchView\") {\n window.adobeDataLayer.push({\n searchPageInfo: {\n eventType: \"internalSiteSearchView\",\n department: e.data.department,\n category: e.data.search?.category,\n search: e.data.search,\n }\n })\n }\n return\n }\n\n case 'vtex:productView': {\n window.adobeDataLayer.push({\n event: 'productView', productView: {\n eventName: 'vtex:productView', product: {\n brand: e.data.product.brand,\n brandId: e.data.product.brandId,\n categories: e.data.product?.categories,\n categoryId: e.data.product.categoryId,\n categoryTree: {\n id: e.data.product.categoryTree[0].id,\n name: e.data.product.categoryTree[0].name\n },\n detailUrl: e.data.product.detailUrl,\n items: e.data.product.items,\n linkText: e.data.product.linkText,\n productId: e.data.product.productId,\n productName: e.data.product.productName,\n productReference: e.data.product.productReference,\n selectedSku: e.data.product.selectedSku,\n }\n }\n })\n return\n }\n case 'vtex:productClick': {\n window.adobeDataLayer.push({\n event: \"productClick\", productClick: {\n eventName: \"vtex:productClick\",\n list: e.data.list,\n position: e.data.position,\n product: e.data.product\n },\n })\n return\n }\n\n case 'vtex:userData': {\n window.adobeDataLayer.push({\n userData: {\n eventType: 'userData',\n isAuthenticated: e.data.isAuthenticated,\n userId: e.data?.id,\n userEmail: e.data?.email,\n firstName: e.data?.firstName,\n lastName: e.data?.lastName,\n phone: e.data?.phone\n }\n })\n return\n }\n\n case 'vtex:cartId': {\n window.adobeDataLayer.push({\n cartId: {\n eventType: 'cartId',\n cartId: e.data.cartId\n }\n })\n return\n }\n case 'vtex:productImpression': {\n window.adobeDataLayer.push({\n event: 'productImpression', productImpression: {\n eventName: 'vtex:productImpression',\n list: e.data.list,\n impressions: e.data.impressions,\n },\n })\n return\n }\n\n case 'vtex:addToCart': {\n window.adobeDataLayer.push({\n event: \"addToCart\",\n addToCart: {\n eventName: \"vtex:addToCart\",\n currency: e.data.currency,\n id: e.data.id,\n items: e.data.items\n }, cartChanged: {\n eventName: \"vtex:cartChanged\",\n items: e.data.items\n },\n })\n return\n }\n case 'vtex:removeFromCart': {\n window.adobeDataLayer.push({\n event: 'removeFromCart',\n removeFromCart: {\n eventName: 'vtex:removeFromCart',\n currency: e.data.currency,\n items: e.data.items\n }, cartChanged: {\n eventName: 'vtex:cartChanged',\n items: e.data.items,\n },\n })\n return\n }\n case 'vtex:orderPlaced': {\n window.adobeDataLayer.push({\n event: 'orderPlaced', orderPlaced: {\n eventName: 'vtex:orderPlaced'\n }\n })\n return\n }\n case 'vtex:promoView': {\n window.adobeDataLayer.push({\n event: 'promoView', promoView: {\n eventName: \"vtex:promoView\",\n promotions: e.data.promotions\n }\n })\n return\n }\n\n case 'vtex:promotionClick': {\n window.adobeDataLayer.push({\n event: 'promotionClick', promoClick: {\n eventName: \"vtex:promoClick\",\n promotions: e.data.promotions\n }\n })\n return\n }\n\n default: {\n break\n }\n }\n}\n\nif (canUseDOM) {\n window.addEventListener('message', handleEvents)\n}\n```"
}
] |
code_adobe-launch-pixel_d4e62798
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/react/package.json from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"scripts\": {\n \"test\": \"vtex-test-tools test\"\n },\n \"devDependencies\": {\n \"@apollo/react-testing\": \"^3.1.3\",\n \"@types/graphql\": \"^14.5.0\",\n \"@types/jest\": \"^25.1.5\",\n \"@types/node\": \"^13.11.0\",\n \"@types/react\": \"^16.9.31\",\n \"@types/react-intl\": \"^3.0.0\",\n \"@vtex/test-tools\": \"^3.1.0\",\n \"apollo-cache-inmemory\": \"^1.6.5\",\n \"apollo-client\": \"^2.6.8\",\n \"graphql\": \"^14.5.4\",\n \"react-intl\": \"^3.11.0\",\n \"typescript\": \"3.9.7\",\n \"vtex.pixel-interfaces\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.pixel-interfaces@1.1.1/public/_types/react\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/vtex.render-runtime@8.124.3/public/@types/vtex.render-runtime\"\n }\n}\n\n```"
}
] |
code_adobe-launch-pixel_91d5cb6f
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/store/interfaces.json from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"pixel.APPNAME\": {\n \"component\": \"index\"\n }\n}\n```"
}
] |
code_adobe-launch-pixel_8eeea734
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/public/metadata/messages/es-AR.json from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Adobe Launch\",\n \"headline\": \"Integre su tienda con el sistema de gestión de etiquetas de última generación de Adobe.\",\n \"overview\": \"Adobe Launch es un servicio para monitorear las acciones de los visitantes de su comercio electrónico y se puede usar para crear audiencias de marketing dirigidas, analizar el rendimiento de sus anuncios y comprender cómo se usa su tienda.\\\\n\\\\n Con esta aplicación, puede realizar un seguimiento de los eventos de navegación y conversión de acuerdo con las prácticas recomendadas y los estándares de análisis de Adobe mediante la implementación de la etiqueta Adobe Launch en el código de la página. En la página de configuración de la aplicación, deberá ingresar su ID de cuenta de Adobe Launch.\",\n \"features\": [\n \"Configurar Adobe Experience Platform Launch usando el panel de administración de VTEX\",\n \"Enviar eventos de Comercio nativo VTEX\"\n ],\n \"additionalInformation\": \"La administración de etiquetas, eventos y activadores se realiza directamente a través del lanzamiento de Adobe Experience Platform (https://launch.adobe.com/) después de instalar y configurar la aplicación. Los eventos disponibles de forma predeterminada con la aplicación La implementación se puede consultar en nuestra documentación.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n}\n```"
}
] |
code_adobe-launch-pixel_e046040a
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/public/metadata/messages/pt-BR.json from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Adobe Launch\",\n \"headline\": \"Integre sua loja com o sistema de gerenciamento de tags de última geração da Adobe.\",\n \"overview\": \"O Adobe Launch é um serviço para monitorar as ações de seus visitantes de comércio eletrônico e pode ser usado para criar públicos de marketing direcionados, analisar o desempenho de seus anúncios e entender como sua loja está sendo usada.\\\\n\\\\n Com este aplicativo, você pode rastrear eventos de navegação e conversão de acordo com as práticas recomendadas e padrões de análise da Adobe implementando a tag Adobe Launch no código da página. Na página de configuração do aplicativo, você precisará inserir o ID da conta do Adobe Launch.\",\n \"features\": [\n \"Configurar o Adobe Experience Platform Launch usando o painel de administração VTEX\",\n \"Enviar eventos de comércio nativo da VTEX\"\n ],\n \"additionalInformation\": \"O gerenciamento de tags, eventos e acionadores é feito diretamente pelo Adobe Experience Platform Launch (https://launch.adobe.com/) após a instalação e configuração do aplicativo. Os eventos disponíveis por padrão com o implementação pode ser consultada em nossa documentação.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n}\n```"
}
] |
code_adobe-launch-pixel_b9784424
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/public/metadata/messages/en-US.json from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"Adobe Launch\",\n \"headline\": \"Integrate your store with Adobe's next-generation tag management system.\",\n \"overview\": \"Adobe Launch is a service for monitoring the actions of your eCommerce visitors and can be used to create targeted marketing audiences, analyze the performance of your ads, and gain understanding of how your store is being used.\\\\n\\\\n Using this app, you can track navigation and conversion events in accordance with Adobe's best practices and analytics standards by implementing the Adobe Launch tag in the page's code. On the app's setup page, you will need to enter your Adobe Launch account ID.\",\n \"features\": [\n \"Configure Adobe Experience Platform Launch using the VTEX admin panel\",\n \"Send VTEX native Commerce events\"\n ],\n \"additionalInformation\": \"The management of tags, events, and triggers is done directly through the Adobe Experience Platform Launch (https://launch.adobe.com/) after installing and configuring the app. The events available by default with the app's implementation can be consulted in our documentation.\",\n \"websiteURL\": \"https://vtex.com/\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n }\n}\n```"
}
] |
code_adobe-launch-pixel_02f90e0b
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/react/typings/events.d.ts from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\nexport interface PixelMessage extends MessageEvent {\n data:\n | ProductViewData\n | ProductClickData\n | OrderPlacedData\n | OrderPlacedTrackedData\n | PageViewData\n | ProductImpressionData\n | AddToCartData\n | RemoveToCartData\n | CartChangedData\n | HomePageInfo\n | ProductPageInfoData\n | SearchPageInfoData\n | UserData\n | CartIdData\n | PromoViewData\n | PromotionClickData\n | NewsletterSubscriptionData\n}\nexport interface EventData {\n event: string\n eventName: string\n currency: string\n id:string\n}\n\nexport interface PageInfoData extends EventData {\n event: 'pageInfo'\n eventName: 'vtex:pageInfo'\n accountName: string\n pageTitle: string\n pageUrl: string\n}\n\nexport interface UserData extends PageInfoData {\n eventType: 'userData'\n eventName: 'vtex:userData'\n firstName?: string\n lastName?: string\n document?: string\n id?: string\n email?: string\n phone?: string\n isAuthenticated: boolean\n}\n\nexport interface CartIdData extends PageInfoData {\n eventType: 'cartId'\n eventName: 'vtex:cartId'\n cartId: string\n}\n\nexport interface HomePageInfo extends PageInfoData {\n eventType: 'homeView'\n}\n\nexport interface ProductPageInfoData extends PageInfoData {\n eventType: 'productPageInfo'\n}\n\nexport interface SearchPageInfoData extends PageInfoData {\n eventType:\n | 'internalSiteSearchView'\n | 'categoryView'\n | 'departmentView'\n | 'emptySearchView'\n category?: CategoryMetaData\n department?: DepartmentMetaData\n search?: SearchMetaData\n}\n\ninterface CategoryMetaData {\n id: string\n name: string\n}\n\ninterface DepartmentMetaData {\n id: string\n name: string\n}\n\ninterface SearchMetaData {\n term: string\n category: CategoryMetaData\n results: number\n}\n\nexport interface PageViewData extends EventData {\n event: 'pageView'\n eventName: 'vtex:pageView'\n pageTitle: string\n pageUrl: string\n referrer: string\n accountName:string\n routeId:string\n}\n\nexport interface AddToCartData extends EventData {\n event: 'addToCart'\n eventName: 'vtex:addToCart'\n id: string\n items: CartItem[]\n}\n\nexport interface RemoveToCartData extends EventData {\n event: 'removeFromCart'\n eventName: 'vtex:removeFromCart'\n items: CartItem[]\n}\n\nexport interface CartChangedData extends EventData {\n event: 'cartChanged'\n eventName: 'vtex:cartChanged'\n items: CartItem[]\n}\n\nexport interface OrderPlacedData extends Order, EventData {\n event: 'orderPlaced'\n eventName: 'vtex:orderPlaced'\n}\n\nexport interface OrderPlacedTrackedData extends Order, EventData {\n event: 'orderPlacedTracked'\n eventName: 'vtex:orderPlacedTracked'\n}\n\nexport interface ProductViewData extends EventData {\n event: 'productView'\n eventName: 'vtex:productView'\n product: Product\n}\n\nexport interface ProductClickData extends EventData {\n event: 'productClick'\n eventName: 'vtex:productClick'\n product: ProductSummary\n list?: string\n position?:number\n}\n\nexport interface ProductImpressionData extends EventData {\n event: 'productImpression'\n eventName: 'vtex:productImpression'\n impressions: Impression[]\n product?: ProductSummary // deprecated, use impressions list!\n position?: number // deprecated, use impressions list!\n list: string\n}\n\nexport interface CartData extends EventData {\n event: 'cart'\n eventName: 'vtex:cart'\n orderForm: OrderForm\n}\n\nexport interface PromoViewData extends EventData {\n event: 'promoView'\n eventName: 'vtex:promoView'\n promotions: Promotion[]\n}\n\nexport interface PromotionClickData extends EventData {\n event: 'promotionClick'\n eventName: 'vtex:promotionClick'\n promotions: Promotion[]\n}\n\nexport interface NewsletterSubscriptionData extends EventData {\n event: 'newsletterSubscription'\n eventName: 'vtex:newsletterSubscription'\n name: string\n email: string\n phone: string\n}\n\ninterface Promotion {\n id?: string\n name?: string\n creative?: string\n position?: string\n}\n\ninterface CartItem {\n brand: string\n ean: string\n category: string\n detailUrl: string\n imageUrl: string\n name: string\n price: number\n productId: string\n productRefId: string\n quantity: number\n seller: string\n sellerName: string\n skuId: string\n variant: string\n}\n\nexport interface OrderForm {\n id: string\n items: CartItem[]\n}\n\nexport interface Order {\n accountName: string\n corporateName: string\n coupon: string\n currency: string\n openTextField: string\n orderGroup: string\n salesChannel: string\n visitorAddressCity: string\n visitorAddressComplement: string\n visitorAddressCountry: string\n visitorAddressNeighborhood: string\n visitorAddressNumber: string\n visitorAddressPostalCode: string\n visitorAddressState: string\n visitorAddressStreet: string\n visitorContactInfo: string[]\n visitorContactPhone: string\n visitorType: string\n transactionId: string\n transactionDate: string\n transactionAffiliation: string\n transactionTotal: number\n transactionShipping: number\n transactionSubtotal: number\n transactionDiscounts: number\n transactionTax: number\n transactionCurrency: string\n transactionPaymentType: PaymentType[]\n transactionShippingMethod: ShippingMethod[]\n transactionLatestShippingEstimate: Date\n transactionProducts: ProductOrder[]\n transactionPayment: {\n id: string\n }\n}\n\nexport interface Impression {\n product: ProductSummary\n position: number\n}\n\nexport interface PaymentType {\n group: string\n paymentSystemName: string\n installments: number\n value: number\n}\n\nexport interface ShippingMethod {\n itemId: string\n selectedSla: string\n}\n\nexport interface ProductOrder {\n id: string\n name: string\n sku: string\n skuRefId: string\n skuName: string\n productRefId: string\n ean: string\n slug: string\n brand: string\n brandId: string\n seller: string\n sellerId: string\n category: string\n categoryId: string\n categoryTree: string[]\n categoryIdTree: string[]\n priceTags: PriceTag[]\n originalPrice: number\n price: number\n sellingPrice: number\n tax: number\n quantity: number\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n components: any[]\n measurementUnit: string\n unitMultiplier: number\n}\n\nexport interface PriceTag {\n identifier: string\n isPercentual: boolean\n value: number\n}\n\nexport interface Product {\n brand: string\n brandId: string\n categories: string[]\n categoryId: string\n categoryTree: Array<{ id: string; name: string }>\n detailUrl: string\n items: Item[]\n linkText: string\n productId: string\n productName: string\n productReference: string\n selectedSku: Item\n}\n\nexport interface Item {\n itemId: string\n name: string\n ean: string\n referenceId: { Key: string; Value: string }\n imageUrl: string\n sellers: Seller[]\n}\n\nexport interface ProductSummary {\n brand: string\n brandId: string\n categories: string[]\n items: ItemSummary[]\n linkText: string\n productId: string\n productName: string\n productReference: string\n sku: ItemSummary\n}\n\ninterface ItemSummary {\n itemId: string\n ean: string\n name: string\n referenceId: { Key: string; Value: string }\n seller: Seller\n sellers: Seller[]\n}\n\nexport interface Seller {\n commertialOffer: CommertialOffer\n sellerId: string\n sellerName: string\n}\n\nexport interface CommertialOffer {\n Price: number\n ListPrice: number\n AvailableQuantity: number\n}\n\n```"
}
] |
code_adobe-launch-pixel_511761d9
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of adobe-launch-pixel/react/typings/global.d.ts from the adobe-launch-pixel VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```typescript\ninterface Window {\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n adobeDataLayer : any[],\n adobeVTEX: any\n}\n\n```"
}
] |
code_store_331a44dc
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/nl.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Zoekcontext voor producten\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Maximum aantal items per pagina\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Verberg niet-beschikbare items\",\n \"store/store.network-status.offline\": \"Geen internetverbinding.\",\n \"admin/actions.enable-binding\": \"Configuratie inschakelen door binding\",\n \"admin/actions.binding-configurations\": \"Bindende configuraties\",\n \"admin/actions.binding-id\": \"Bindende ID\",\n \"admin/actions.binding-description\": \"Voer de bindende ID in\"\n}\n\n```"
}
] |
code_store_ff4dc9f2
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/de.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Kontext der Produktsuche\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Maximale Anzahl von Artikeln pro Seite\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Nicht verfügbare Artikel ausblenden\",\n \"store/store.network-status.offline\": \"Keine Internetverbindung.\",\n \"admin/actions.enable-binding\": \"Konfiguration durch Bindung aktivieren\",\n \"admin/actions.binding-configurations\": \"Bindung-Konfigurationen\",\n \"admin/actions.binding-id\": \"Bindungs-ID\",\n \"admin/actions.binding-description\": \"Geben Sie die Bindungs-ID ein\"\n}\n\n```"
}
] |
code_store_bd4bb692
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/pl.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Kontekst wyszukiwania produktu\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Maksymalna liczba pozycji na stronę\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Ukryj niedostępne pozycje\",\n \"store/store.network-status.offline\": \"Brak połączenia z Internetem.\",\n \"admin/actions.enable-binding\": \"Włącz konfigurację przez powiązanie\",\n \"admin/actions.binding-configurations\": \"Konfiguracje powiązań\",\n \"admin/actions.binding-id\": \"Identyfikator powiązania\",\n \"admin/actions.binding-description\": \"Wpisz identyfikator powiązania\"\n}\n```"
}
] |
code_store_37bc0401
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/id-ID.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Konteks pencarian produk\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Jumlah maksimum item per halaman\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Sembunyikan item yang tidak tersedia\",\n \"store/store.network-status.offline\": \"Tidak ada koneksi internet.\",\n \"admin/actions.enable-binding\": \"Aktifkan konfigurasi dengan pengikatan\",\n \"admin/actions.binding-configurations\": \"Konfigurasi pengikatan\"\n}\n\n```"
}
] |
code_store_2f16d95d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/pt.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Contexto de busca de produtos\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Número máximo de elementos por página\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Esconder itens indisponíveis\",\n \"store/store.network-status.offline\": \"Sem conexão à internet.\",\n \"admin/actions.enable-binding\": \"Habilitar configuração por vínculo\",\n \"admin/actions.binding-configurations\": \"Configurações de vínculos\",\n \"admin/actions.binding-id\": \"ID de vínculo\",\n \"admin/actions.binding-description\": \"Insira o ID de vínculo\"\n}\n\n```"
}
] |
code_store_9de60d39
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/ar-SA.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"سياق البحث عن المنتج\",\n \"admin/editor.product-search.maxItemsPerPage\": \"الحد الأقصى لعدد العناصر في كل صفحة\",\n \"admin/editor.product-search.hideUnavailableItems\": \"إخفاء العناصر غير المتاحة\",\n \"store/store.network-status.offline\": \"لا يوجد اتصال بالإنترنت.\",\n \"admin/actions.enable-binding\": \"Enable configuration by binding\",\n \"admin/actions.binding-configurations\": \"Binding configurations\",\n \"admin/actions.binding-id\": \"Binding ID\",\n \"admin/actions.binding-description\": \"Enter the binding ID\"\n}\n\n```"
}
] |
code_store_a5dddce0
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/en.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Product search context\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Maximum number of items per page\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Hide unavailable items\",\n \"store/store.network-status.offline\": \"No internet connection.\",\n \"admin/actions.enable-binding\": \"Enable configuration by binding\",\n \"admin/actions.binding-configurations\": \"Binding configurations\",\n \"admin/actions.binding-id\": \"Binding ID\",\n \"admin/actions.binding-description\": \"Enter the binding ID\"\n}\n\n```"
}
] |
code_store_68476304
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/no-NO.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Produktsøk kontekst\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Maksimalt antall varer per side\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Skjul utilgjengelige varer\",\n \"store/store.network-status.offline\": \"Ingen Internett-forbindelse.\",\n \"admin/actions.enable-binding\": \"Aktiver konfigurasjon ved binding\",\n \"admin/actions.binding-configurations\": \"Konfigurasjoner ved binding\",\n \"admin/actions.binding-id\": \"Bindings-ID\",\n \"admin/actions.binding-description\": \"Angi bindings-ID\" \n}\n\n```"
}
] |
code_store_41ffb51d
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/fr.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Contexte de la recherche de produits\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Nombre maximum d’articles par page\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Masquer les articles non disponibles\",\n \"store/store.network-status.offline\": \"Pas de connexion Internet.\",\n \"admin/actions.enable-binding\": \"Permettre la configuration par liaison\",\n \"admin/actions.binding-configurations\": \"Configurations de liaison\",\n \"admin/actions.binding-id\": \"ID de liaison\",\n \"admin/actions.binding-description\": \"Saisir l'ID de la liaison\"\n}\n\n```"
}
] |
code_store_8c114532
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/bg.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Контекст на продуктово търсене\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Максимален брой артикули на страница\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Скриване на недостъпните елементи\",\n \"store/store.network-status.offline\": \"Няма връзка с интернет.\",\n \"admin/actions.enable-binding\": \"Активиране на конфигурацията чрез обвързване\",\n \"admin/actions.binding-configurations\": \"Обвързващи конфигурации\",\n \"admin/actions.binding-id\": \"ID за обвързване\",\n \"admin/actions.binding-description\": \"Въведете ID за обвързване\"\n}\n\n```"
}
] |
code_store_ebdf6fb3
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/ro.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Contextul de căutare a produselor\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Numărul maxim de articole pe pagină\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Ascunde articolele indisponibile\",\n \"store/store.network-status.offline\": \"Lipsă conexiune la internet.\",\n \"admin/actions.enable-binding\": \"Activează configurația prin legătură\",\n \"admin/actions.binding-configurations\": \"Configurații ale legăturii\",\n \"admin/actions.binding-id\": \"ID de legătură\",\n \"admin/actions.binding-description\": \"Introdu ID-ul de legătură\"\n}\n\n```"
}
] |
code_store_8859d666
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/ca.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Context de cerca de productes\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Nombre màxim d'articles per pàgina\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Amaga els articles no disponibles\",\n \"store/store.network-status.offline\": \"Sense connexió a internet.\",\n \"admin/actions.enable-binding\": \"Activar la configuració per vinculació\",\n \"admin/actions.binding-configurations\": \"Configuració de vinculació\",\n \"admin/actions.binding-id\": \"ID d'enllaç\",\n \"admin/actions.binding-description\": \"Introduïu l'ID d'enllaç\"\n}\n\n```"
}
] |
code_store_5443e177
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/context.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"admin/editor.product-search.title\",\n \"admin/editor.product-search.maxItemsPerPage\": \"admin/editor.product-search.maxItemsPerPage\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Title of hideUnavailableItems prop\",\n \"store/store.network-status.offline\": \"store/store.network-status.offline\",\n \"admin/actions.enable-binding\": \"admin/actions.enable-binding\",\n \"admin/actions.binding-configurations\": \"admin/actions.binding-configurations\",\n \"admin/actions.binding-id\": \"admin/actions.binding-id\",\n \"admin/actions.binding-description\": \"admin/actions.binding-description\"\n}\n\n```"
}
] |
code_store_4a80a93e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/ko.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"제품 검색 컨텍스트\",\n \"admin/editor.product-search.maxItemsPerPage\": \"페이지당 최대 항목 수\",\n \"admin/editor.product-search.hideUnavailableItems\": \"이용할 수 없는 품목 숨기기\",\n \"store/store.network-status.offline\": \"인터넷 연결 없음.\",\n \"admin/actions.enable-binding\": \"바인딩하여 구성 활성화\",\n \"admin/actions.binding-configurations\": \"바인딩 구성\",\n \"admin/actions.binding-id\": \"바인딩 ID\",\n \"admin/actions.binding-description\": \"바인딩 ID 입력\"\n}\n\n```"
}
] |
code_store_21a399e1
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/no.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Produktsøk kontekst\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Maksimalt antall varer per side\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Skjul utilgjengelige varer\",\n \"store/store.network-status.offline\": \"Ingen Internett-forbindelse.\",\n \"admin/actions.enable-binding\": \"Aktiver konfigurasjon ved binding\",\n \"admin/actions.binding-configurations\": \"Konfigurasjoner ved binding\",\n \"admin/actions.binding-id\": \"Bindings-ID\",\n \"admin/actions.binding-description\": \"Angi bindings-ID\"\n}\n\n```"
}
] |
code_store_ce974fe8
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/th.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"บริบทการค้นหาผลิตภัณฑ์\",\n \"admin/editor.product-search.maxItemsPerPage\": \"จำนวนสินค้าสูงสุดต่อหน้า\",\n \"admin/editor.product-search.hideUnavailableItems\": \"ซ่อนสินค้าที่ไม่พร้อมจำหน่าย\",\n \"store/store.network-status.offline\": \"ไม่มีการเชื่อมต่ออินเทอร์เน็ต\",\n \"admin/actions.enable-binding\": \"เปิดใช้ค่ากำหนดด้วยการผูกค่า\",\n \"admin/actions.binding-configurations\": \"การกำหนดค่าการผูกข้อมูล\",\n \"admin/actions.binding-id\": \"รหัสการผูกข้อมูล\",\n \"admin/actions.binding-description\": \"ใส่รหัสการผูกข้อมูล\"\n}\n\n```"
}
] |
code_store_9d4aa66e
|
[
{
"role": "system",
"content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms."
},
{
"role": "user",
"content": "Show me the implementation of store/messages/nn.json from the store VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"admin/editor.product-search.title\": \"Produktsøk kontekst\",\n \"admin/editor.product-search.maxItemsPerPage\": \"Maksimalt antall varer per side\",\n \"admin/editor.product-search.hideUnavailableItems\": \"Skjul utilgjengelige varer\",\n \"store/store.network-status.offline\": \"Ingen Internett-forbindelse.\",\n \"admin/actions.enable-binding\": \"Aktiver konfigurasjon ved binding\",\n \"admin/actions.binding-configurations\": \"Konfigurasjoner ved binding\",\n \"admin/actions.binding-id\": \"Bindings-ID\",\n \"admin/actions.binding-description\": \"Angi bindings-ID\"\n}\n\n```"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.