id
stringlengths 12
53
| messages
listlengths 3
3
|
|---|---|
code_docs-live_bcf6261b
|
[
{
"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 docs-live/README.md from the docs-live VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# docs-live\nDocumentation repository for VTEX's Live Shopping and Personal Shopper applications.\n\n```"
}
] |
code_service-course_a45a2cea
|
[
{
"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 service-course/manifest.json from the service-course VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"service-course\",\n \"vendor\": \"vtex\",\n \"version\": \"0.3.0\",\n \"title\": \"Service Course\",\n \"description\": \"Course aproaching VTEX Backend Services\",\n \"dependencies\": {},\n \"builders\": {\n \"docs\": \"0.x\",\n \"course\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_payment-provider-example_40e5fc38
|
[
{
"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 payment-provider-example/package.json from the payment-provider-example VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"payment-provider-example\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n```"
}
] |
code_payment-provider-example_5037a4a8
|
[
{
"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 payment-provider-example/manifest.json from the payment-provider-example VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"payment-provider-example\",\n \"vendor\": \"vtex\",\n \"version\": \"1.2.0\",\n \"title\": \"Payment Provider Example\",\n \"description\": \"Reference app for Payment-Provider protocol implementers\",\n \"builders\": {\n \"paymentProvider\": \"1.x\",\n \"node\": \"6.x\",\n \"docs\": \"0.x\"\n },\n \"policies\": [\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"heimdall.vtexpayments.com.br\",\n \"path\": \"/api/payment-provider/callback/*\"\n }\n }\n ],\n \"billingOptions\": {\n \"type\": \"free\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_product-specification-badges_9f7b92f0
|
[
{
"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 product-specification-badges/package.json from the product-specification-badges VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-specification-badges\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.3.5\",\n \"eslint\": \"^7.14.0\",\n \"eslint-config-vtex\": \"^12.8.11\",\n \"eslint-config-vtex-react\": \"^6.8.3\",\n \"husky\": \"^4.3.0\",\n \"lint-staged\": \"^10.5.1\",\n \"prettier\": \"^2.2.0\",\n \"typescript\": \"^3.8.3\"\n }\n}\n\n```"
}
] |
code_product-specification-badges_ecd067a4
|
[
{
"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 product-specification-badges/manifest.json from the product-specification-badges VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"product-specification-badges\",\n \"version\": \"0.4.1\",\n \"title\": \"Product Specification Badges\",\n \"description\": \"Display Product Specification Badges\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\",\n \"messages\": \"1.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.product-context\": \"0.x\",\n \"vtex.css-handles\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_admin-messages-catalog_9e45a46a
|
[
{
"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 admin-messages-catalog/manifest.json from the admin-messages-catalog VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\",\n \"name\": \"admin-messages\",\n \"vendor\": \"vtex\",\n \"version\": \"0.8.1\",\n \"title\": \"Admin Messages\",\n \"description\": \"Translation functionalities inside the Store Admin\",\n \"mustUpdateAt\": \"2020-06-25\",\n \"categories\": [],\n \"dependencies\": {\n \"vtex.admin-graphql\": \"1.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.catalog-graphql\": \"1.x\",\n \"vtex.messages\": \"1.x\"\n },\n \"builders\": {\n \"admin\": \"0.x\",\n \"graphql\": \"1.x\",\n \"messages\": \"1.x\",\n \"node\": \"4.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"vtex.catalog-graphql:resolve-graphql\"\n },\n {\n \"name\": \"vtex.messages:graphql-save-translation-messages\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"{{account}}.vtexcommercestable.com.br\",\n \"path\": \"/api/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/*\"\n }\n }\n ]\n}\n\n```"
}
] |
code_address-locator_29c8f021
|
[
{
"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 address-locator/README.md from the address-locator VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# address-locator\nVTEX address locator app to delivery store\n\n```"
}
] |
code_address-locator_cacbf415
|
[
{
"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 address-locator/package.json from the address-locator VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"version\": \"2.3.0\",\n \"scripts\": {\n \"lint:locales\": \"intl-equalizer\"\n },\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.2.1\"\n }\n}\n\n```"
}
] |
code_address-locator_76f346e2
|
[
{
"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 address-locator/manifest.json from the address-locator VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"address-locator\",\n \"version\": \"2.4.1\",\n \"builders\": {\n \"store\": \"0.x\",\n \"messages\": \"1.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.store-resources\": \"0.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.store-components\": \"3.x\",\n \"vtex.profile-form\": \"3.x\",\n \"vtex.address-form\": \"4.x\",\n \"vtex.pickup-points-selector\": \"0.x\",\n \"vtex.store\": \"2.x\",\n \"vtex.store-header\": \"2.x\",\n \"vtex.modal\": \"0.x\",\n \"vtex.store-icons\": \"0.x\"\n },\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_expertsender_2cdce3c6
|
[
{
"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 expertsender/manifest.json from the expertsender VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"expertsender\",\n \"vendor\": \"vtex\",\n \"version\": \"1.0.1\",\n \"title\": \"ExpertSender\",\n \"description\": \"\",\n \"billingOptions\": {\n \"termsURL\": \"\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true\n },\n \"builders\": {\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.pixel-interfaces\": \"1.x\"\n },\n \"settingsSchema\": {\n \"title\": \"ExpertSender\",\n \"type\": \"object\",\n \"properties\": {\n \"clickDomain\": {\n \"title\": \"Click Domain\",\n \"type\": \"string\"\n },\n \"aid\": {\n \"title\": \"aid\",\n \"type\": \"string\"\n },\n \"wid\": {\n \"title\": \"wid\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_search-graphql_b33d5ae4
|
[
{
"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 search-graphql/policies.json from the search-graphql VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n[\n {\n \"name\": \"resolve-graphql\",\n \"description\": \"Allows access to resolve a graphql request\",\n \"statements\": [\n {\n \"actions\": [\"post\", \"get\"],\n \"effect\": \"allow\",\n \"resources\": [\n \"vrn:vtex.search-graphql:{{region}}:{{account}}:{{workspace}}:/_v/graphql\"\n ]\n }\n ]\n }\n]\n\n```"
}
] |
code_search-graphql_4f475c0f
|
[
{
"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 search-graphql/package.json from the search-graphql VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"search-graphql\",\n \"version\": \"1.0.0\",\n \"main\": \"index.js\",\n \"repository\": \"[email protected]:vtex-apps/search-graphql.git\",\n \"license\": \"MIT\",\n \"devDependencies\": {\n \"@graphql-tools/load-files\": \"^6.5.3\",\n \"@graphql-tools/merge\": \"^8.2.10\",\n \"graphql\": \"15\",\n \"graphql-markdown\": \"^6.0.0\"\n }\n}\n\n```"
}
] |
code_search-graphql_2f7310ac
|
[
{
"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 search-graphql/manifest.json from the search-graphql VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"search-graphql\",\n \"version\": \"0.69.4\",\n \"title\": \"GraphQL API for the VTEX store APIs\",\n \"description\": \"GraphQL schema and resolvers for the VTEX API for the catalog and orders.\",\n \"credentialType\": \"absolute\",\n \"builders\": {\n \"graphql\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.messages\": \"1.x\",\n \"vtex.catalog-api-proxy\": \"0.x\"\n },\n \"policies\": [\n {\n \"name\": \"vtex.messages:translate-messages\"\n },\n {\n \"name\": \"vtex.catalog-api-proxy:catalog-proxy\"\n },\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"colossus-fire-event\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_salesforce-chat_877ea12e
|
[
{
"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 salesforce-chat/manifest.json from the salesforce-chat VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"salesforce-chat\",\n \"version\": \"2.0.1\",\n \"title\": \"Salesforce Chat\",\n \"description\": \"Salesforce Chat\",\n \"builders\": {\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-10-01\",\n \"billingOptions\": {\n \"termsURL\": \"\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true\n },\n \"dependencies\": {\n \"vtex.pixel-interfaces\": \"1.x\"\n },\n \"settingsSchema\": {\n \"title\": \"Salesforce chat\",\n \"description\": \"Enter the Salesforce chat configuration\",\n \"type\": \"object\",\n \"properties\": {\n \"extraPrechatFormDetails\": {\n \"title\": \"extraPrechatFormDetails\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"label\": {\n \"title\": \"Label\",\n \"type\": \"string\"\n },\n \"value\": {\n \"title\": \"Value\",\n \"type\": \"string\"\n },\n \"displayToAgent\": {\n \"title\": \"Display To Agent\",\n \"type\": \"boolean\"\n },\n \"transcriptFields\": {\n \"type\": \"array\",\n \"title\": \"transcriptFields\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n }\n }\n },\n \"extraPrechatInfo\": {\n \"title\": \"extraPrechatInfo\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"entityName\": {\n \"type\": \"string\",\n \"title\": \"entityName\"\n },\n \"showOnCreate\": {\n \"type\": \"boolean\",\n \"title\": \"showOnCreate\"\n },\n \"saveToTranscript\": {\n \"type\": \"string\",\n \"title\": \"saveToTranscript\"\n },\n \"entityFieldMaps\": {\n \"type\": \"array\",\n \"title\": \"entityFieldMaps\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"isExactMatch\": {\n \"type\": \"boolean\",\n \"title\": \"isExactMatch\"\n },\n \"fieldName\": {\n \"type\": \"string\",\n \"title\": \"fieldName\"\n },\n \"doCreate\": {\n \"type\": \"boolean\",\n \"title\": \"doCreate\"\n },\n \"doFind\": {\n \"type\": \"boolean\",\n \"title\": \"doFind\"\n },\n \"label\": {\n \"type\": \"string\",\n \"title\": \"label\"\n }\n }\n }\n }\n }\n }\n },\n \"enabledFeatures\": {\n \"title\": \"enabledFeatures\",\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"entryFeature\": {\n \"type\": \"string\",\n \"title\": \"entryFeature\"\n },\n \"baseLiveAgentContentURL\": {\n \"type\": \"string\",\n \"title\": \"baseLiveAgentContentUrl\"\n },\n \"baseLiveAgentURL\": {\n \"type\": \"string\",\n \"title\": \"baseLiveAgentURL\"\n },\n \"baseCoreURL\": {\n \"type\": \"string\",\n \"title\": \"baseCoreURL\"\n },\n \"communityEndpointURL\": {\n \"type\": \"string\",\n \"title\": \"communityEndpointURL\"\n },\n \"organizationId\": {\n \"type\": \"string\",\n \"title\": \"Organization ID\"\n },\n \"accountName\": {\n \"type\": \"string\",\n \"title\": \"Account Name\"\n },\n \"deploymentId\": {\n \"type\": \"string\",\n \"title\": \"Deployment ID\"\n },\n \"buttonId\": {\n \"type\": \"string\",\n \"title\": \"Button ID\"\n },\n \"eswLiveAgentDevName\": {\n \"type\": \"string\",\n \"title\": \"eswLiveAgentDevName\"\n },\n \"isOfflineSupportEnabled\": {\n \"type\": \"boolean\",\n \"title\": \"isOfflineSupportEnabled\"\n },\n \"language\": {\n \"type\": \"string\",\n \"title\": \"Language\"\n },\n \"defaultMinimizedText\": {\n \"type\": \"string\",\n \"title\": \"Default Minimized Text\"\n },\n \"disabledMinimizedText\": {\n \"type\": \"string\",\n \"title\": \"Disabled Minimized Text\"\n },\n \"loadingText\": {\n \"type\": \"string\",\n \"title\": \"Loading Text\"\n }\n }\n },\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_graphql-gateway_90c9ea58
|
[
{
"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 graphql-gateway/README.md from the graphql-gateway VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# GraphQL Gateway\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n## Description\n\nThe GraphQL Gateway app provides a centralized interface for exposing internal GraphQL applications and their queries to the external world, offering a unified entry point for external users, and streamlining the process of authentication and authorization.\n\n\n```"
}
] |
code_graphql-gateway_857ac5d1
|
[
{
"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 graphql-gateway/package.json from the graphql-gateway VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"graphql-gateway\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```"
}
] |
code_graphql-gateway_172c2763
|
[
{
"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 graphql-gateway/manifest.json from the graphql-gateway VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\",\n \"vendor\": \"vtex\",\n \"name\": \"graphql-gateway\",\n \"version\": \"1.0.1\",\n \"title\": \"GraphQL Gateway for VTEX APIs\",\n \"description\": \"A Graph containing all VTEX's commerce APIs\",\n \"builders\": {\n \"node\": \"6.x\"\n },\n \"dependencies\": {\n \"vtex.search-resolver\": \"1.x\",\n \"vtex.checkout-graphql\": \"0.x\"\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"POWER_USER_DS\"\n },\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"graphql-query\"\n },\n {\n \"attrs\": {\n \"host\": \"*\",\n \"path\": \"*\"\n },\n \"name\": \"outbound-access\"\n }\n ]\n}\n\n```"
}
] |
code_giftcard-ui_b548c0d9
|
[
{
"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 giftcard-ui/manifest.json from the giftcard-ui VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"giftcard\",\n \"vendor\": \"vtex\",\n \"version\": \"0.1.0\",\n \"title\": \"Giftcard\",\n \"description\": \"\",\n \"mustUpdateAt\": \"2019-08-16\",\n \"categories\": [],\n \"registries\": [\"smartcheckout\"],\n \"settingsSchema\": {},\n \"dependencies\": {\n \"vtex.admin\": \"1.x\",\n \"vtex.styleguide\": \"7.x\",\n \"vtex.vtex-giftcard-v2\": \"1.x\"\n },\n \"credentialType\": \"relative\",\n \"builders\": {\n \"pages\": \"0.x\",\n \"react\": \"2.x\",\n \"node\": \"3.x\"\n },\n \"scripts\": {\n \"postreleasy\": \"vtex publish --public\"\n },\n \"policies\": [\n {\n \"name\": \"vtex.vtex-giftcard-v2:admin\"\n }\n ]\n}\n\n```"
}
] |
code_instore-form-fields_7e217f04
|
[
{
"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 instore-form-fields/manifest.json from the instore-form-fields VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"instore-form-fields\",\n \"version\": \"1.0.0\",\n \"title\": \"Instore Form Addon\",\n \"description\": \"Insert new fields in the user registration form\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-09-24\",\n \"categories\": [],\n \"registries\": [\n \"smartcheckout\"\n ],\n \"settingsSchema\": {},\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n }\n}\n```"
}
] |
code_cybersource-ui_28607cd3
|
[
{
"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 cybersource-ui/package.json from the cybersource-ui VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"cybersource-ui\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.1.4\",\n \"eslint\": \"^7.32.0\",\n \"eslint-config-vtex\": \"^12.3.2\",\n \"eslint-config-vtex-react\": \"^6.3.2\",\n \"husky\": \"^4.2.3\",\n \"lint-staged\": \"^10.1.1\",\n \"prettier\": \"^2.0.2\",\n \"typescript\": \"^3.8.3\"\n }\n}\n```"
}
] |
code_cybersource-ui_f71676cb
|
[
{
"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 cybersource-ui/manifest.json from the cybersource-ui VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"cybersource-ui\",\n \"vendor\": \"vtex\",\n \"version\": \"0.8.0\",\n \"title\": \"Cybersource\",\n \"description\": \"Cybersource Payment UI\",\n \"categories\": [],\n \"registries\": [\n \"smartcheckout\"\n ],\n \"builders\": {\n \"messages\": \"1.x\",\n \"admin\": \"0.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2018-09-05\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.apps-graphql\": \"3.x\",\n \"vtex.cybersource\": \"1.x\",\n \"vtex.cybersource-payer-auth\": \"0.x\"\n },\n \"billingOptions\": {\n \"termsURL\": \"https://compliance.vtex.com/gdpr/policies/vtex-privacy-policy\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true,\n \"type\": \"free\",\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_b2b-orders-history_e59d17ff
|
[
{
"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-orders-history/package.json from the b2b-orders-history VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"b2b-orders-history\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"cd ./react && yarn lint\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"test\": \"cd ./react && yarn test\",\n \"locales:lint\": \"intl-equalizer\",\n \"locales:fix\": \"intl-equalizer --fix\",\n \"verify\": \"yarn lint && yarn locales:lint && yarn test\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"yarn lint && yarn locales:lint && yarn locales:fix\",\n \"pre-push\": \"yarn verify\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.7.12\",\n \"@vtex/intl-equalizer\": \"^2.4.2\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"eslint-config-vtex-react\": \"^5.0.1\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n },\n \"version\": \"3.3.20\",\n \"dependencies\": {\n \"react\": \"^16.13.1\",\n \"react-dom\": \"^16.13.1\"\n }\n}\n\n```"
}
] |
code_b2b-orders-history_6b96c3cd
|
[
{
"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-orders-history/manifest.json from the b2b-orders-history VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"b2b-orders-history\",\n \"version\": \"2.0.3\",\n \"title\": \"B2B Orders History\",\n \"description\": \"B2B My orders page\",\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\",\n \"vtex.storefront-permissions\": \"3.x\"\n },\n \"dependencies\": {\n \"vtex.my-account\": \"1.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.my-account-commons\": \"1.x\",\n \"vtex.address-form\": \"4.x\",\n \"vtex.totalizer-translator\": \"2.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.search-graphql\": \"0.x\",\n \"vtex.subscriptions-commons\": \"1.x\"\n },\n \"registries\": [\n \"smartcheckout\"\n ],\n \"policies\": [\n {\n \"name\": \"buyer_organization_view\"\n },\n {\n \"name\": \"buyer_organization_edit\"\n }\n ],\n \"scripts\": {\n \"postreleasy\": \"vtex publish -p\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_wish-list-v2_c2c5c250
|
[
{
"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 wish-list-v2/dangerfile.js from the wish-list-v2 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\n// dangerfile.js\nconst { verify } = require('@vtex/danger')\n\nconst config = {\n // Set to true to enforce keepachangelog rules.\n keepachangelog: {\n changeVersion: false,\n },\n rules: {\n description: ['fail', { minLength: 20 }],\n assignee: 'fail',\n reviewers: 'fail',\n pr_size: ['warn', { additionLimit: 800, deletionLimit: -1 }],\n lock_file: 'warn',\n no_ignored_test: ['fail', { pattern: /test|spec/i }],\n no_debugger: ['fail', { pattern: /\\.[tj]sx?$/i }],\n enforce_graphql_provider: 'off',\n },\n}\n\nverify(config)\n\n```"
}
] |
code_wish-list-v2_183f2c10
|
[
{
"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 wish-list-v2/package.json from the wish-list-v2 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"my-wishlists\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"lint:locales\": \"intl-equalizer\",\n \"test\": \"cd ./react && yarn test\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ],\n \"*.json\": [\n \"prettier --write\"\n ],\n \"messages/*.json\": [\n \"yarn lint:locales\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/danger\": \"^0.2.7\",\n \"@vtex/intl-equalizer\": \"^2.5.0\",\n \"@vtex/prettier-config\": \"^0.3.5\",\n \"eslint\": \"^7.14.0\",\n \"eslint-config-vtex\": \"^12.8.11\",\n \"eslint-config-vtex-react\": \"^6.8.3\",\n \"husky\": \"^4.3.0\",\n \"lint-staged\": \"^10.5.1\",\n \"prettier\": \"^2.2.0\",\n \"typescript\": \"^3.9.6\"\n },\n \"version\": \"0.0.1\",\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n },\n \"dependencies\": {\n \"eslint-plugin-react-hooks\": \"^4.6.0\",\n \"lodash.debounce\": \"^4.0.8\"\n }\n}\n\n```"
}
] |
code_wish-list-v2_d180f165
|
[
{
"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 wish-list-v2/manifest.json from the wish-list-v2 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"my-wishlists\",\n \"version\": \"2.3.12\",\n \"title\": \"My Wish Lists\",\n \"description\": \"Custom app for managing users' wishlists on the My Account Dashboard\",\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\",\n \"store\": \"0.x\",\n \"masterdata\": \"1.x\",\n \"graphql\": \"1.x\",\n \"node\": \"6.x\"\n },\n \"dependencies\": {\n \"vtex.css-handles\": \"1.x\",\n \"vtex.product-context\": \"0.x\",\n \"vtex.order-manager\": \"0.x\",\n \"vtex.render-runtime\": \"8.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.my-account\": \"1.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.my-account-commons\": \"1.x\",\n \"vtex.pixel-manager\": \"1.x\",\n \"vtex.order-items\": \"0.x\",\n \"vtex.store-resources\": \"0.x\",\n \"vtex.checkout-resources\": \"0.x\",\n \"vtex.store\": \"2.x\",\n \"vtex.search-graphql\": \"0.x\",\n \"vtex.checkout-graphql\": \"0.x\",\n \"vtex.apps-graphql\": \"3.x\",\n \"vtex.store-icons\": \"0.x\"\n },\n \"peerDependencies\": {\n \"vtex.quickorder\": \"3.x\"\n },\n \"registries\": [\n \"smartcheckout\"\n ],\n \"settingsSchema\": {\n \"title\": \"Wishlist Columns\",\n \"type\": \"object\",\n \"access\": \"public\",\n \"properties\": {\n \"defaultTitleText\": {\n \"title\": \"Title\",\n \"type\": \"string\",\n \"description\": \"Text to display on share page title\",\n \"default\": \"Favorites Lists\"\n },\n \"imageName\": {\n \"title\": \"Image Title\",\n \"type\": \"string\",\n \"description\": \"image column title\",\n \"default\": \"Image\"\n },\n \"image\": {\n \"title\": \"image\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"imageRowWidth\": {\n \"title\": \"Image row width\",\n \"type\": \"number\",\n \"description\": \"image column title\",\n \"default\": 100\n },\n \"skuNameTitle\": {\n \"title\": \"skuName column title\",\n \"type\": \"string\",\n \"description\": \"skuName column title\",\n \"default\": \"Name\"\n },\n \"skuName\": {\n \"title\": \"Sku name field\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"skuNameRowWidthAccount\": {\n \"title\": \"Sku Name row width *on account page*\",\n \"type\": \"number\",\n \"description\": \"Sku Name row width\",\n \"default\": 300\n },\n \"skuNameRowWidthShare\": {\n \"title\": \"Sku Name row width *on shared page*\",\n \"type\": \"number\",\n \"description\": \"Sku Name row width\",\n \"default\": 300\n },\n \"departmentTitle\": {\n \"title\": \"department column title\",\n \"type\": \"string\",\n \"description\": \"department column title\",\n \"default\": \"Department\"\n },\n \"department\": {\n \"title\": \"Department field\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"departmentRowWidth\": {\n \"title\": \"Department row width\",\n \"type\": \"number\",\n \"description\": \"Department row width\",\n \"default\": 190\n },\n \"skuReferenceCodeTitle\": {\n \"title\": \"skuReferenceCode Column title\",\n \"type\": \"string\",\n \"description\": \"skuReferenceCode\",\n \"default\": \"Part #\"\n },\n \"skuReferenceCode\": {\n \"title\": \"Sku Reference Code field\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"skuReferenceCodeRowWidth\": {\n \"title\": \"Sku Reference Code row width\",\n \"type\": \"number\",\n \"description\": \"Sku Reference Code row width\",\n \"default\": 130\n },\n \"quantityTitle\": {\n \"title\": \"quantity column title\",\n \"type\": \"string\",\n \"description\": \"quantity\",\n \"default\": \"Qty\"\n },\n \"quantity\": {\n \"title\": \"Quantity field\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"quantityRowWidth\": {\n \"title\": \"Quantity row width\",\n \"type\": \"number\",\n \"description\": \"Quantity row width\",\n \"default\": 130\n },\n \"unitValueTitle\": {\n \"title\": \"unitValue column title\",\n \"type\": \"string\",\n \"description\": \"unitValue\",\n \"default\": \"Unit Value\"\n },\n \"unitValue\": {\n \"title\": \"Unit Value field\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"unitValueRowWidth\": {\n \"title\": \"Unit Value row width\",\n \"type\": \"number\",\n \"description\": \"Unit Value row width\",\n \"default\": 145\n },\n \"totalValueTitle\": {\n \"title\": \"totalValue column title\",\n \"type\": \"string\",\n \"description\": \"totalValue\",\n \"default\": \"Price\"\n },\n \"totalValue\": {\n \"title\": \"Total Value field\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"totalValueRowWidth\": {\n \"title\": \"Total Value row width\",\n \"type\": \"number\",\n \"description\": \"Total Value row width\",\n \"default\": 120\n },\n \"notes\": {\n \"title\": \"notes\",\n \"type\": \"boolean\",\n \"description\": \"notes\",\n \"default\": true\n },\n \"addTitle\": {\n \"title\": \"add column title\",\n \"type\": \"string\",\n \"description\": \"add\",\n \"default\": \"Add\"\n },\n \"add\": {\n \"title\": \"Add field\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n },\n \"addRowWidth\": {\n \"title\": \"Add row width\",\n \"type\": \"number\",\n \"description\": \"Add row width\",\n \"default\": 100\n },\n \"removeTitle\": {\n \"title\": \"remove column title\",\n \"type\": \"string\",\n \"description\": \"remove\",\n \"default\": \"Remove\"\n },\n \"remove\": {\n \"title\": \"remove\",\n \"type\": \"boolean\",\n \"description\": \"active\",\n \"default\": true\n }\n }\n },\n \"policies\": [\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"graphql-query\"\n },\n {\n \"name\": \"ADMIN_DS\"\n },\n {\n \"name\": \"POWER_USER_DS\"\n },\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"update-app-settings\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.vtex.com\",\n \"path\": \"/dataentities/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/dataentities/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"{{account}}.vtexcommercestable.com.br\",\n \"path\": \"/api/dataentities/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.vtex.com\",\n \"path\": \"/*\"\n }\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_organizations_f4c4ebcd
|
[
{
"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 organizations/package.json from the organizations VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"version\": \"0.0.2\",\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.4.2\",\n \"husky\": \"^2.4.1\"\n },\n \"scripts\": {\n \"lint\": \"cd ./react && yarn lint\",\n \"test\": \"cd ./react && yarn test\",\n \"lint:locales\": \"intl-equalizer\",\n \"locales:fix\": \"intl-equalizer --fix\",\n \"verify\": \"yarn lint && yarn lint:locales && yarn test\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"yarn lint && yarn lint:locales && yarn locales:fix\",\n \"pre-push\": \"yarn verify\"\n }\n },\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n }\n}\n\n```"
}
] |
code_organizations_4c72d047
|
[
{
"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 organizations/manifest.json from the organizations VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"organizations\",\n \"version\": \"1.10.0\",\n \"title\": \"VTEX Organizations App\",\n \"description\": \"\",\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\",\n \"store\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.store\": \"2.x\",\n \"vtex.my-account\": \"1.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.organizations-graphql\": \"1.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.my-account-commons\": \"1.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_product-comparison_1794783e
|
[
{
"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 product-comparison/package.json from the product-comparison VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-comparison\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.1.4\",\n \"eslint\": \"^7.12.1\",\n \"eslint-config-vtex\": \"^12.3.2\",\n \"eslint-config-vtex-react\": \"^6.3.2\",\n \"husky\": \"^4.2.3\",\n \"lint-staged\": \"^10.1.1\",\n \"prettier\": \"^2.0.2\",\n \"typescript\": \"^3.8.3\"\n }\n}\n```"
}
] |
code_product-comparison_df8b6a6d
|
[
{
"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 product-comparison/manifest.json from the product-comparison VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"product-comparison\",\n \"version\": \"0.20.0\",\n \"title\": \"Product Comparison\",\n \"description\": \"Product Comparison\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"styles\": \"2.x\",\n \"messages\": \"1.x\",\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.product-summary-context\": \"0.x\",\n \"vtex.product-summary\": \"2.x\",\n \"vtex.store-resources\": \"0.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.slider-layout\": \"0.x\",\n \"vtex.list-context\": \"0.x\",\n \"vtex.product-list-context\": \"0.x\",\n \"vtex.flex-layout\": \"0.x\",\n \"vtex.pixel-manager\": \"1.x\",\n \"vtex.apps-graphql\": \"3.x\",\n \"vtex.product-context\": \"0.x\"\n },\n \"settingsSchema\": {\n \"access\": \"public\",\n \"title\": \"Product comparison\",\n \"type\": \"object\",\n \"properties\": {\n \"maxNumberOfItemsToCompare\": {\n \"title\": \"Comparison bucket upper limit\",\n \"description\": \"Maximum number of items to compare. Default value is 10\",\n \"type\": \"number\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_ffm-segment-prices-node-template_5e0a2adc
|
[
{
"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 ffm-segment-prices-node-template/package.json from the ffm-segment-prices-node-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"external-prices-app\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.3.6\",\n \"eslint\": \"^7.16.0\",\n \"eslint-config-vtex\": \"^12.9.3\",\n \"husky\": \"^4.3.6\",\n \"lint-staged\": \"^10.5.3\",\n \"prettier\": \"^2.2.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```"
}
] |
code_ffm-segment-prices-node-template_ece6ad37
|
[
{
"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 ffm-segment-prices-node-template/manifest.json from the ffm-segment-prices-node-template VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"external-prices-node\",\n \"vendor\": \"vtex\",\n \"version\": \"0.3.1\",\n \"title\": \"External Prices Node App\",\n \"description\": \"A reference app for consulting external prices.\",\n \"categories\": [],\n \"dependencies\": {},\n \"builders\": {\n \"node\": \"6.x\",\n \"docs\": \"0.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.vtex.com\",\n \"path\": \"/{{account}}/pricing/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/profile-system/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"kubernetes.default.svc.cluster.local\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"YOUR_EXTENAL_SERVICE_URL\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"read_prices\"\n },\n {\n \"name\": \"POWER_USER_DS\"\n },\n {\n \"name\": \"vbase-read-write\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_KI-360097_91c62f2e
|
[
{
"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 KI-360097/README.md from the KI-360097 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# [KI-360097] The seller selection algorithm considers the stock from the items in order to select the best whitelabel seller for a given context.\n\nThis script solves the KI https://vtexhelp.zendesk.com/agent/tickets/360097.\n\nYou need to add the script to the checkout at the `checkout6-custom.js`.\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<table>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/germanBonacchi\"><img src=\"https://avatars.githubusercontent.com/u/55905671?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>Germán Bonacchi</b></sub></a><br /><a href=\"https://github.com/vtex-apps/KI-360097/commits?author=germanBonacchi\" title=\"Code\">💻</a></td>\n</tr>\n</table>\n\n```"
}
] |
code_KI-360097_83c878ec
|
[
{
"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 KI-360097/KI-360097.js from the KI-360097 VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nasync function findBestSeler() {\n function ArmarItemsDelCart(sellerItemName) {\n const itemsArray = [];\n const skusID = vtexjs.checkout.orderForm.items;\n for (const skuID of skusID) {\n var itemCart = {\n id: skuID.id,\n quantity: skuID.quantity,\n seller: sellerItemName,\n };\n itemsArray.push(itemCart);\n }\n\n return itemsArray;\n }\n\n function selectBestSellerPerItem(slasSimulationList) {\n const ids = vtexjs.checkout.orderForm.items.map((item) => item.id);\n const bestSellerPerItem = ids.map((id) => {\n return { id: id, seller: \"\", bestSellerPrice: 0, bestSellerShipping: 0 };\n });\n // por cada id busco el seller\n ids.forEach((id) => {\n const slas = slasSimulationList.filter((s) => s.itemId === id);\n if (slas.length > 0) {\n if (slas.length === 1) {\n // si solo hay un sla\n const bestSeller = bestSellerPerItem.find((b) => b.id === id);\n slas[0].slas.forEach((slaItem) => {\n if (\n bestSeller.bestSellerPrice === 0 ||\n slaItem.price < bestSeller.bestSellerPrice\n ) {\n bestSeller.seller = slas[0].seller;\n bestSeller.bestSellerPrice = slaItem.price;\n bestSeller.bestSellerShipping = parseInt(\n slaItem.shippingEstimate.split(\"bd\")[0]\n );\n } else if (slaItem.price === bestSeller.bestSellerPrice) {\n if (\n parseInt(slaItem.shippingEstimate.split(\"bd\")[0]) <\n bestSeller.bestSellerShipping\n ) {\n bestSeller.seller = slas[0].seller;\n bestSeller.bestSellerPrice = slaItem.price;\n bestSellerShipping = parseInt(\n slaItem.shippingEstimate.split(\"bd\")[0]\n );\n }\n }\n });\n } else {\n // si hay mas de un sla\n slas.forEach((sla) => {\n sla.slas.forEach((slaItem) => {\n const bestSeller = bestSellerPerItem.find((b) => b.id === id);\n if (\n bestSeller.bestSellerPrice === 0 ||\n slaItem.price < bestSeller.bestSellerPrice\n ) {\n bestSeller.seller = sla.seller;\n bestSeller.bestSellerPrice = slaItem.price;\n bestSeller.bestSellerShipping = parseInt(\n slaItem.shippingEstimate.split(\"bd\")[0]\n );\n } else if (slaItem.price === bestSeller.bestSellerPrice) {\n if (\n parseInt(slaItem.shippingEstimate.split(\"bd\")[0]) <\n bestSeller.bestSellerShipping\n ) {\n bestSeller.seller = sla.seller;\n bestSeller.bestSellerPrice = slaItem.price;\n bestSellerShipping = parseInt(\n slaItem.shippingEstimate.split(\"bd\")[0]\n );\n }\n }\n });\n });\n }\n }\n });\n\n return bestSellerPerItem;\n }\n\n function changeCartItemsSeller(bestSellerPerItem) {\n vtexjs.checkout.getOrderForm().then((orderForm) => {\n const itemsToAdd = [];\n const itemsToRemove = [];\n\n const orderFormItems = orderForm.items;\n if (orderFormItems.length > 0) {\n orderFormItems.forEach((it, index) => {\n const bestSeller = bestSellerPerItem.find((b) => b.id === it.id);\n if (bestSeller) {\n if (it.seller !== bestSeller.seller) {\n itemsToAdd.push({\n id: it.id,\n quantity: it.quantity,\n seller: bestSeller.seller,\n });\n itemsToRemove.push({ index: index, quantity: 0 });\n }\n }\n });\n\n if (itemsToAdd.length > 0) {\n vtexjs.checkout.removeItems(itemsToRemove);\n const itemsAux = [];\n itemsToAdd.forEach((item) => {\n var includes = false;\n itemsAux.forEach((itemAux) => {\n if (item.id == itemAux.id) {\n includes = true;\n }\n });\n if (includes) {\n itemsAux.forEach((itemAux) => {\n if (itemAux.id == item.id) {\n itemAux.quantity = itemAux.quantity + item.quantity;\n }\n });\n } else {\n itemsAux.push(item);\n }\n });\n vtexjs.checkout.addToCart(itemsAux);\n }\n }\n });\n }\n\n function getCartSellers(usualSellersList) {\n const items = vtexjs.checkout.orderForm.items;\n const cartSellers = [];\n\n items.forEach((item) => {\n let seller = \"\";\n if (item.seller === \"1\") {\n if (item.sellerChain.length > 1) {\n seller = item.sellerChain[1];\n } else {\n seller = item.sellerChain[0];\n }\n } else {\n seller = item.seller;\n }\n if (seller !== \"1\") {\n if (\n !cartSellers.includes(seller) &&\n !usualSellersList.includes(seller)\n ) {\n cartSellers.push(seller);\n }\n }\n });\n return cartSellers;\n }\n const geoCoordinates =\n vtexjs.checkout.orderForm.shippingData.selectedAddresses[0].geoCoordinates;\n const country =\n vtexjs.checkout.orderForm.shippingData.selectedAddresses[0].country;\n const slaList = [];\n const usualSellers = [\"easycle5990001\", \"easycle5990003\"];\n\n //obtener los sellers del carrito\n usualSellers.push(...getCartSellers(usualSellers));\n\n async function simulationPerSeller() {\n for (const seller of usualSellers) {\n const itemsArray = ArmarItemsDelCart(seller);\n await fetch(\"/api/checkout/pub/orderForms/simulation?sc=1\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n accept: \"application/json\",\n },\n body: JSON.stringify({\n items: itemsArray,\n geoCoordinates: geoCoordinates,\n country: country,\n }),\n })\n .then((response) => response.json())\n .then(function (json) {\n const itemPurchaseConditions =\n json.purchaseConditions.itemPurchaseConditions;\n if (itemPurchaseConditions.length > 0) {\n itemPurchaseConditions.forEach((item) => {\n const slas = item.slas;\n if (slas.length > 0) {\n const slasDelivery = slas.filter(\n (s) => s.deliveryChannel === \"delivery\"\n );\n slaList.push({\n itemId: item.id,\n seller: item.seller,\n slas: slasDelivery,\n });\n }\n });\n }\n });\n }\n }\n\n //ejecuto la simulación en cada seller\n await simulationPerSeller();\n\n //busco al mejor seller por item\n const bestSellerPerItem = selectBestSellerPerItem(slaList);\n console.log(\"bestSellerPerItem\", bestSellerPerItem);\n changeCartItemsSeller(bestSellerPerItem);\n}\n\n$(document).ready(function () {\n let previusSelectedAddress =\n vtexjs.checkout.orderForm.shippingData.selectedAddresses[0];\n $(window).on(\"orderFormUpdated.vtex\", async function (_evt, orderForm) {\n const selectedAddresses = orderForm.shippingData.selectedAddresses[0];\n if (!previusSelectedAddress && selectedAddresses) {\n console.log(\"coloco direccion por primera vez\");\n await findBestSeler();\n\n previusSelectedAddress = selectedAddresses;\n } else if (\n selectedAddresses.addressId !== previusSelectedAddress.addressId ||\n selectedAddresses.addressType !== previusSelectedAddress.addressType ||\n selectedAddresses.city !== previusSelectedAddress.city ||\n selectedAddresses.complement !== previusSelectedAddress.complement ||\n selectedAddresses.country !== previusSelectedAddress.country ||\n JSON.stringify(selectedAddresses.geoCoordinates) !==\n JSON.stringify(previusSelectedAddress.geoCoordinates) ||\n selectedAddresses.isDisposable !== previusSelectedAddress.isDisposable ||\n selectedAddresses.neighborhood !== previusSelectedAddress.neighborhood ||\n selectedAddresses.number !== previusSelectedAddress.number ||\n selectedAddresses.postalCode !== previusSelectedAddress.postalCode ||\n selectedAddresses.receiverName !== previusSelectedAddress.receiverName ||\n selectedAddresses.reference !== previusSelectedAddress.reference ||\n selectedAddresses.state !== previusSelectedAddress.state ||\n selectedAddresses.street !== previusSelectedAddress.street\n ) {\n console.log(\"cambio la direcciones\");\n await findBestSeler();\n\n previusSelectedAddress = selectedAddresses;\n } else {\n console.log(\"no cambio la direcciones\");\n }\n });\n});\n\n```"
}
] |
code_my-account-commons_d8118a5f
|
[
{
"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 my-account-commons/README.md from the my-account-commons VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# My Account Commons\n\nMy Account Commons is a bundle of canonical components that can be used to create new tabs to be inserted on the `vtex.my-account` app.\n\nDISCLAIMER: In order to this components work, they need to be children of `vtex.my-account` app.\n\nTo import it into your code:\n\n```js\nimport {\n ContentWrapper,\n BaseLoading,\n GenericError,\n} from 'vtex.my-account-commons'\n```\n\n## Usages\n\n### ContentWrapper\n\nYou can use it in your code like a React component with the jsx tag: `<ContentWrapper>`.\n\n```jsx\n<ContentWrapper\n namespace=\"my-custom-page\"\n title={`${orderTitle} ${orderNumber}`}\n backButton={backButton}>\n {({ handleError }) => children}\n</ContentWrapper>\n```\n\n| Prop name | Type | Description |\n| -------------------- | --------- | ---------------------------------------------------------------------------- |\n| `title` | `String` | The string that will appear on the page title. |\n| `titleId` | `String` | Intl message id that will be translated and inserted on the page title. |\n| `backbutton.title` | `String` | The string that will appear as a message on the backbutton. |\n| `backbutton.titleId` | `String` | Intl message id that will be translated and inserted as the go back message. |\n| `backbutton.path` | `String!` | Location which the user will be lead to when hit the backbutton. |\n| `headerContent` | `node` | JSX that wil be inserted as children of the `vtex.style-guide/PageHeader`. |\n| `namespace` | `String!` | Css namespace that will be added to the page body. |\n\nThe `ContentWrapper` uses the render prop pattern and returns to its children an object with the following props:\n\n#### Render prop\n\n| Prop name | Type | Description |\n| ------------ | ---------- | ----------------------------------------------------------------------- |\n| `handlError` | `Function` | Function that will be called when the user dismisses the error message. |\n\n### BaseLoading\n\nThis component should be used to implement your own Loader, it analyses the result of a graphql query and displays\nthe loader Skeleton or an error message if any error occurs with retry option to call refetch on the query.\n\n```jsx\n<BaseLoading queryData={data} headerConfig={object}>\n {children}\n</BaseLoading>\n```\n\n| Prop name | Type | Description |\n| -------------- | --------------- | ----------------------------------------------------------------------------------------------------------------- |\n| `queryData` | `QueryResult` | Apollo Graphql query result. |\n| `headerConfig` | `ContentWProps` | The props that will be passed to the `ContentWrapper`. |\n| `nameSpace` | `String` | The name space prop that will be passed to the `ContentWrapper`. `vtex-base-loading` is applied if none is passed |\n| `parseError` | `Function` | Function that parses the graphql error and returns a messageId. |\n\n### GenericError\n\nA wrapper for the `vtex.styleguide/Alert` component.\n\n```jsx\n<GenericError onDismiss={handleError} errorId={error} />\n```\n\n| Prop name | Type | Description |\n| ----------- | ---------- | -------------------------------------------------------------------- |\n| `error` | `String` | The error message that will be displayed on the `Alert`. |\n| `errorId` | `String` | Intl message id that will be translated and inserted on the `Alert`. |\n| `onDismiss` | `Function` | Function that will be called when the user hits the close button. |\n\n### Disclaimer about react/Router.js file\n\nRead carefully the instructions within the file before editing it.\n\n```"
}
] |
code_my-account-commons_9808a42f
|
[
{
"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 my-account-commons/package.json from the my-account-commons VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"version\": \"0.10.0\",\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.4.2\",\n \"eslint\": \"5.16.0\",\n \"eslint-config-vtex-react\": \"4.0.0\",\n \"husky\": \"^3.0.9\",\n \"prettier\": \"1.19.1\"\n },\n \"scripts\": {\n \"verify\": \"yarn messages && cd ./react && yarn lint && yarn test\",\n \"messages\": \"intl-equalizer && intl-equalizer --fix\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"yarn messages && cd ./react && yarn lint\",\n \"pre-push\": \"yarn verify\"\n }\n },\n \"dependencies\": {}\n}\n\n```"
}
] |
code_my-account-commons_2ed14fbf
|
[
{
"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 my-account-commons/manifest.json from the my-account-commons VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"my-account-commons\",\n \"version\": \"0.16.1\",\n \"title\": \"MyAccount Commons\",\n \"defaultLocale\": \"pt-BR\",\n \"description\": \"Shared components used to build ne MyAccounts pages\",\n \"builders\": {\n \"react\": \"2.x\",\n \"messages\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"registries\": [\n \"smartcheckout\"\n ],\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"8.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_glovo-integration_ccfee14a
|
[
{
"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 glovo-integration/package.json from the glovo-integration VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"glovo-integration\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.3.6\",\n \"eslint\": \"^7.16.0\",\n \"eslint-config-vtex\": \"^12.9.3\",\n \"eslint-config-vtex-react\": \"^6.3.2\",\n \"husky\": \"^4.3.6\",\n \"lint-staged\": \"^10.5.3\",\n \"prettier\": \"^2.2.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```"
}
] |
code_glovo-integration_e2a44ed6
|
[
{
"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 glovo-integration/manifest.json from the glovo-integration VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"glovo-integration\",\n \"vendor\": \"vtex\",\n \"version\": \"3.5.3\",\n \"title\": \"Glovo Integration\",\n \"description\": \"Glovo Integration\",\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.native-types\": \"0.x\",\n \"vtex.sellers-graphql\": \"7.x\"\n },\n \"builders\": {\n \"node\": \"6.x\",\n \"docs\": \"0.x\",\n \"admin\": \"0.x\",\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"graphql\": \"1.x\"\n },\n \"billingOptions\": {\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"type\": \"free\",\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"stageapi.glovoapp.com\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.glovoapp.com\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"ViewPayments\"\n },\n {\n \"name\": \"MakePayments\"\n },\n {\n \"name\": \"Changes\"\n },\n {\n \"name\": \"AcessaTodosPedidos\"\n },\n {\n \"name\": \"AcessaTodosCarrinhos\"\n },\n {\n \"name\": \"graphql-query\"\n },\n {\n \"name\": \"OMSViewer\"\n },\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"ADMIN_DS\"\n },\n {\n \"name\": \"update-app-settings\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/*\"\n }\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_alexa-certify-code_01f88afe
|
[
{
"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 alexa-certify-code/manifest.json from the alexa-certify-code VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"alexa-certify-code\",\n \"vendor\": \"vtex\",\n \"version\": \"1.0.0\",\n \"title\": \"Alexa Certify Code\",\n \"description\": \"\",\n \"billingOptions\": {\n \"termsURL\": \"\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true\n },\n \"builders\": {\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"settingsSchema\": {\n \"title\": \"Alexa Certify Code\",\n \"type\": \"object\",\n \"properties\": {\n \"account\": {\n \"title\": \"Alexa's account id\",\n \"type\": \"string\"\n },\n \"domain\": {\n \"title\": \"Site domain\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_order-places_944a0e45
|
[
{
"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 order-places/manifest.json from the order-places VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"base-store-component\",\n \"version\": \"0.2.2\",\n \"title\": \"IO Base Component\",\n \"description\": \"IO Base component\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"messages\": \"1.x\",\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_helloworld_d7017e77
|
[
{
"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 helloworld/manifest.json from the helloworld VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"render-guide\",\n \"vendor\": \"storecomponents\",\n \"version\": \"0.1.0\",\n \"title\": \"Render Guide\",\n \"description\": \"VTEX IO Render Guide\",\n \"scripts\": {\n \"prereleasy\": \"bash pre.sh\"\n },\n \"builders\": {\n \"pages\": \"1.x\",\n \"react\": \"3.x\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\"\n },\n \"mustUpdateAt\": \"2020-07-02\",\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_yourviews-graphql_5793ac0d
|
[
{
"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 yourviews-graphql/manifest.json from the yourviews-graphql VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"yourviews-graphql\",\n \"version\": \"1.0.0\",\n \"builders\": {\n \"graphql\": \"1.x\",\n \"node\": \"4.x\",\n \"docs\": \"0.x\"\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"vbase-read-write\",\n \"attrs\": {\n \"bucket\": \"secret_keys\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"service.yourviews.com.br\",\n \"path\": \"/api/*\"\n }\n }\n ],\n \"mustUpdateAt\": \"2018-09-05\",\n \"categories\": [],\n \"settingsSchema\": {},\n \"scripts\": {\n \"postreleasy\": \"bash publish.sh\"\n }\n}\n\n```"
}
] |
code_admin-example_2a0a0812
|
[
{
"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 admin-example/package.json from the admin-example VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"admin-example\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.2.0\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.4.0\",\n \"eslint-config-vtex-react\": \"^6.4.0\",\n \"husky\": \"^4.2.5\",\n \"lint-staged\": \"^10.2.2\",\n \"prettier\": \"^2.0.5\",\n \"typescript\": \"^3.8.3\",\n \"vtex.render-runtime\": \"http://vtex.vtexassets.com/_v/public/typings/v1/[email protected]/public/@types/vtex.render-runtime\"\n }\n}\n\n```"
}
] |
code_admin-example_ec34ce81
|
[
{
"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 admin-example/manifest.json from the admin-example VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"admin-example\",\n \"vendor\": \"vtex\",\n \"version\": \"0.0.12\",\n \"title\": \"Example Admin App\",\n \"description\": \"\",\n \"mustUpdateAt\": \"2022-08-28\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\"\n },\n \"builders\": {\n \"react\": \"3.x\",\n \"admin\": \"0.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_micro_f881547a
|
[
{
"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 micro/README.md from the micro VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Micro\nA Micro FrontEnd Framework built around extensibility and multi tenancy.\n\nThis Repo was moved [here](https://github.com/vtex/micro)\n\n## Core Principles\nMicro is built with the following philosophy\n\n### Extensibility\nThe front-end world evolves rapidly, and thus, Micro is not attached to an specific technology or stack. It is built around a plugin based structure where even core features, like React, routing or GraphQL, are not part of the core framework.\n\n### Performance\nPerformance should always be a limiting factor. If a plugin is not performatic by nature, it should not take the `micro` name on it\n\n### Micro FrontEnd\nTeams should be able to develop components independently and then assemble it into a final product with `no-costs` abstractions\n\n### Multi Tenancy\nA Micro rendering server should be able to deliver multiple different Micro Projects in the same instance performatically and securely.\n\n## Why building another framework ?\nWe started developing a Low Code React+GraphQL framework back in 2017. Many of the tools and concepts available today were only a dream back them. This made us invent the wheel and make some good and bad choices on all Micro's core principles. This lead us want to leverage all we've learned and reboot our Store Framework using modern tools. However, after an extensive research we've find out none of the available open source tools fit our needs. Below are the reasons why\n\n### Gastby\nAt a first glance, Gastby was perfect for us. It had the performance minded way we needed. However, at VTEX we deal with thousands of merchants, each merchant having up to millions SKUs and building all those pages statically is a no go. Perhaps if Gatsby finds a way of dynamically generting pages we can move to it\n\n### NextJS\nNextJS was really similiar to what we needed. It had dynamically page generation via SSR (Server Side Rendering). However we could not find a way to serve multiple NextJS project's (with SSR) in the same server, breaking our multi tenancy principle\n\n### Pika\nPika has the `deno` minded way we like. However, performance is REALLY important to us and we think es6 still have a long way to go before being usable in production. However, their development experience was what we needed and we are currently using their amazing services in development\n\nAfter seen no solution was a perfect fit for us, we've decided to build our own, based on great ideas from\n- Gatsby (Performance optimization and plugins)\n- NextJS (Dynamicity, SSR and Static Pages Generation)\n- Pika (Development experience and fast build times)\n- Webpack (Bundling with performance budgets, tree shaking)\n- @loadable/component (Future of react code splitting)\n- React Router (Dynamic routing)\n- Relay GraphQL (Cascading fetching and data masking problems)\n- i18next (split translation files and fetch them as you go)\n\n## What we've came out with\nAfter many discussions, we've decided all our framework has to do is to opinionate your project's lifecycle and which build tools should be used in each lifecycle. The configuration of such tools (webpack/babel) is done via plugins and all the core Micro framework knows is how to look after these plugins in your package.json's dependencies and run them. \n\nFor instance. If you want to make a React app using Micro, you will need, at least, the `@vtex/micro-react` plugin. This plugin will actually fill the webpack/babel configuration with usable stuff for transpiling your code and putting it in a page. Using only the `@vtex/micro` won't make your React app renderable.\n\nWith this architecture, we hope to make a plugin based framework where new technology can be adopted incrementally. If you don't use a feature, say i18n, you don't get the bloatware that comes with it because, by desing, not even your build system knows about it. \n\n### Lifecycles\nThe development of a front-end application usually happens in three steps. \n\n1. Build and development\nIn this phase you are not concerned with load times/lighthouse score. Your project just needs to have a great development experience. This is achieved by \n - Transpiling fast\n - Having an HMR ready environment\n - Unminified Assets\n - Source Maps\n - Community tools integration (like react/apollo developer tools)\n\n2. Assemble and verify\nNow that you know your feature works, you need to know if it's performatic so you never slow down your code. This is achived by\n - Gathering all micro front-end code into a single monolith so our compilers can optimize\n - Code splitting techniques. (Currently we use the one entrypoint per page, but a plugin can change it)\n - Minimizing CSS and JS\n - Extracting and split CSS code as well (CSS may really harm the performance)\n - Using performance budgets\n - Analysing the [webpack stats](http://webpack.github.io/analyse)\n\n3. Serve Requests\nNow that your project was assembled from many different micro front-end apps, we need to serve the requests in a multi tenant way with SSR.\nThis still is a work in progress on how we can achieve multi-tenancy, however we are working in a `deno` server.\n\nWe've build these three steps into Micro's core. They are called `OnBuild`, `OnAssemble` and `OnRequest` respectively. \n\nThere is a build stack attached to each cycle. \n`OnBuild` runs Babel and transpiles all project's code to `commonjs`. Also, if there is a `/components` or `/pages` folders, these are transpiled to `es6`. Plugins usually add configurations to the base Babel config so transpilations, like React, work\n\n`OnAssemble` runs Webpack and bundles all code with one entrypoint per file in the `/pages` folder, that's why only projects with `/pages` folder can be assembled. Also, Micro traverses the dependency tree searching for Micro Packages and adds their `/components/**/*.ts(x)?` files to the compilation, so webpack has the impression we are in a monolitical app\n\n`OnRequest` opens the generated artifacts in the `OnAssemble` phase and creates a multi-tenant/production ready server. \n\n> Note: `OnRequest` phase is still not working well. We are working on it 💻\n\n### How it Works\nThe core of the Micro framework is the `@vtex/micro` package. This package defines a Micro Project. Any Micro Project is composed of a `package.json` file containing the project's name, version, dependencies etc. \n\nThere are four different types of Micro Projects:\n1. Components\n - A project that contains a `/components` folder with `.tsx` files in it. This folder should be used for sharing front-end components across other Micro Projects\n2. Pages\n - A project that contains a `/pages` folder with `.tsx` files in it. Files in this folder are *NOT* shareable across micro projects. Also, files in this folder main be served to the browser\n3. Lib\n - A project that contains a `/lib` folder with `.ts` files in it. This should be used for sharing common logic across Micro Projects and front/back ends\n4. Plugin\n - A project that contains a `/plugins` folder with `.ts` files in it. This folder allows you to hook up into the a Micro Project's lifecycle. Keep reading to understand what a Micro Project lifecycle is \n\nTo operate a Micro Project, you need the `@vtex/micro-cli`. This cli gives you functionalities like packing Components, serving Pages, or adding Plugins\n\n## Getting started\nMicro is built around common tools like Webpack 4, Babel 7 and Yarn 2, so using packages from npm should not be a problem at all. Actually, if you use only packages from npm, Micro will behave similarly to a multi tenant ready NextJS/Gatsby.\n\nTo start a Micro project, just [start your usual yarn project](https://yarnpkg.com/cli/init)\n```sh\nyarn init\n```\n\nAdd packages as usual (with `yarn add` etc etc). Also, add Micro's CLI so managing your project becomes easier\n\n```sh\nyarn add @vtex/micro-cli\n```\n\nNow, let's make this Project a little more Micro friendly. In your project's root folder, run\n\n```sh\nyarn micro setup\n```\n\n> Tip: You can run this command with a `--dry` option so the cli only prints the changes it will make to your project, instead of writting them\n\nThis command will setup your Project to behave like a Micro Project. \n\nThat's all for now. \n\n### Sharing Components\nSharing components across Micro projects is really easy. Any file created on `/components` folder is automatically available to packages depending on your. Just make sure there is an `index.ts` re-exporing the desired components on your project's root folder\n\nTo use a component exported from another Micro Project, say `[email protected]`, just `yarn add [email protected]` this package and use es6-like syntax to import it \n```ts\nimport { AwesomeComponent } from 'packageA'\n```\n\nTo understand more on how this magic is done, please read the Micro Internals section\n\n#### Serving Pages\nCurrently, there is a simple server in the `micro-server` package that is used for development. This server does not serves requests in a multi tenant way yet. We plan to release our production ready server called Render very soon. However, in the meanwhile using our toy server should be just fine. To serve a page, create a file inside the `/pages` folder and\n\n```sh\nyarn micro link\n```\n\nThis should open a dev server with your page on it. To understand more about how pages are built, read Micro Internals section\n\n#### Plugins\nPlugins are a core concept in Micro. If you want to develop a plugin, keep reading. If you want to use a plugin, this is the right place.\nFirst of all, choose a plugin. For example purposes, I will use a routing plugin called `@vtex/micro-react-router`. Plugins are a normal npm package, so let's add it to our project. On your project root's folder run\n```sh\nyarn add @vtex/micro-react-router\n```\n\nNow, we need to tell Micro that we want to use this plugin for certain lifecycles. To do so, open your project's package.json. Under the `micro` section (if there is no micro section run `yarn micro setup` in your project) add the following in plugins\n\n```package.json\n...\n\"micro\": {\n \"plugins\": {\n \"onRequest\": [\n \"@vtex/micro-react-router\"\n ],\n \"onAssemble\": [\n \"@vtex/micro-react-router\"\n ]\n }\n}\n```\n\nThis tells Micro to use the `@vtex/micro-react-router` plugin on these lifecycles. Read more about lifecycles in their section\n\n#### Libs\nSometimes we just want to have a folder to write and share pices of delightful functional code. Libs are for that.\n\nOther Micro projects can import your lib's folder code if you export it in your toplevel `index.ts`, but be carefull. You should only use lib-related code in either `/plugins` or `/lib` folder, using it on `/components` may harm your site's performance.\n\nOne cool fact about libs is that the framework of Micro is actually defined in a lib. Check out `@vtex/micro/lib` to see how Micro implements itself \n\n## Developing a plugin\nPlugin development is based on lifecycles. Each lifecycle has plugins hooks. To implement a plugin hook, you just need to extend the lifecycle's base class, implement their methods and `export default` this class. The structure of the `/plugins` folder should be:\n```\n| plugins\n | onBuild\n | index.ts\n | onAssemble\n | index.ts\n | onRequest\n | index.ts\n```\n\n> Note: remember to `export default` your plugin class inside each `index.ts`.\n> Tip: A simple plugin to start getting examples is the `@vtex/micro-react-router`. \n\n### OnBuild\nThe `OnBuild` plugin currently accepts adding to babel's config only. Your plugin may be asked to generate babel configs for `commonjs` or `es6` targets\n\n### OnAssemble\nThe `OnAssemble` plugin currently only generates a WebPack config. \nGenerating and merging webpack configs can be trubblesome. That's why we use the great `webpack-blocks` project.\n\n### OnRequest\nThis is the most complex plugin. This plugin allows you to add any tag to the final html generated by a Micro Server, like script tags, link tags, style tags and so on. \nAlso, you have access to the request's data and the class is instantiated on each request, so we don't mix data from two different requests. \n\nYou can use OnRequest plugins to add meta tags to your html or wrap components for Server Side Rendering. There are many more reasons of why you'd want to create a plugin for this lifecycle and I'm curious to see what the community will come up with\n\n## Repo Structure\nThis repo uses (lerna)[https://github.com/lerna/lerna] for mono repo managment.\nAll micro-related code is in the workspace (yarn)[https://classic.yarnpkg.com/en/docs/workspaces/] `./packages` repo. Some cool feature are shown in `./examples` folder.\n\nIn `./packages` you can find `micro-cli`. This is a `Next.JS` like cli that provides a webpack builder along with a server for SSR. Also, this CLI allow you to develop Plugins and Pack your Micro Components\n\nAlso, inside `./packages` folder you can find `./micro`, a part of the framework containing some root packages.\nHaving these packages comming from a single dependency makes that all micro components use the same react/loadable versions generating homogeneous code\n\n## Running Examples\n### Installing Dependencies\nWe use yarn2. Please install yarn 2 with\n```\nyarn global add [email protected]\n```\n\nIf you want to go back using [email protected], in macOS, run\n```\nbrew unlink yarn && brew link --overwrite yarn\n```\n\n### Building\nSince this is a lerna managed monorepo we can run\n```\nlerna exec yarn build\n```\n\nThis should build everything. Now, go to your favorite example in `./examples` folder and run \n```sh\nyarn micro link\n```\n\nThis should generate the following terminal output\n\n```\n$ yarn micro link\n🦄 Welcome to Micro\n🦄 Starting Micro onBuild:development\n🦄 Resolving dependencies\n📦 Micro package found: [email protected]\n📦 Micro package found: @vtex/[email protected]\n📦 Micro package found: @vtex/[email protected]\n📦 Micro package found: @vtex/[email protected]\n🦄 [onBuild]: Resolving plugins\n🔌 [onBuild]: Plugin found @vtex/micro\n🔌 [onBuild]: Plugin found @vtex/micro-react\n🎯 [onBuild]: Creating dist folder in .micro/onBuild\n🦄 [onBuild]: Starting the build\n🦄 [onBuild]: The build of 26 files finished in: 1.717s\n🦄 [onBuild]: Starting DevServer\n🦄 [onRequest]: Resolving plugins\n🔌 [onRequest]: Plugin found @vtex/micro\n🔌 [onRequest]: Plugin found @vtex/micro-react\n🔌 [onRequest]: Plugin found @vtex/micro-react-router\n🐙 [router]: Found router config\n🦄 DevServer is UP on http://localhost:3000\n```\n\nJust click on the url and check out the features\n\n## Developing Micro\nCurrently, there is a problem when building `@vtex/micro`. Since micro builds itself, it requires to be built to allow it building. To achieve this, the yarn build performs 2 builds. However, for developing, you need to perform 2 watches.\n\nFirst, run `yarn watch`. This will trigger `tsc`. Then, run `yarn micro link` so we build `/components` into an es6 module.\n\nThis is a hack and I don't really know how to solve this problem now. We'll survive 🎵🎵🎵\n\n## Features Checklist\n- [x] Plugins Support\n- [x] Official React Support\n- [ ] Official Preact Support\n\n### Oficial Plugins Features Checklist\n1. `@vtex/micro`\n - [x] Preloaded Data Fetching \n - [ ] CSS\n\n2. `@vtex/micro-react`\n - [x] Code Splitting\n - [x] Dinamic Chunk Loading\n - [x] Preload/Prefetch Scripts\n - [x] Server Side Rendering\n - [x] React Strict\n - [ ] Preloaded Data Fetching with Cuncurrent mode\n\n3. `@vtex/micro-react-router`\n - [x] Dynamic Routing\n - [x] Link Prefetching via Props\n - [x] Asset Prefetching\n - [x] Preload `onMouseEnter`\n - [x] Prefetch when entering the viewport on Mobile\n - [ ] Transitions\n - [ ] Transitions with Cuncurrent mode\n - [ ] Fetch over Prefetch Priority\n - [ ] Prefetch Budget\n\n4. `@vtex/micro-react-i18n` [comming...]\n5. `@vtex/micro-react-images` [comming...]\n6. `@vtex/micro-react-graphql` [comming...]\n7. `@vtex/micro-react-storybook` [comming...]\n\n## Specifics\nBelow are some specific docs of each plugin\n\n### Micro React Router\nThe current implementation of Micro React Router is the following:\n- Link and NavLink accept a `prefetch` option. If you pass this option, the component will prefetch the route route in any device type\n- Link and NavLink will `preload` a page if `onMouseEnter` is triggered by your browser\n- On Mobile devices, is the element enters on the viewport, it will trigger a prefetch on Link and NavLink components\n\nHappy Coding ✨\n\n```"
}
] |
code_micro_aac71615
|
[
{
"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 micro/package.json from the micro VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"micro.js\",\n \"version\": \"1.0.0\",\n \"description\": \"A Micro FrontEnd Framework\",\n \"license\": \"MIT\",\n \"private\": true,\n \"workspaces\": [\n \"packages/*\",\n \"examples/*\"\n ],\n \"devDependencies\": {\n \"@typescript-eslint/eslint-plugin\": \"^2.31.0\",\n \"@typescript-eslint/parser\": \"^2.31.0\",\n \"@yarnpkg/pnpify\": \"^2.0.0-rc.22\",\n \"eslint-config-standard\": \"^14.1.1\",\n \"eslint-import-resolver-node\": \"^0.3.3\",\n \"eslint-plugin-import\": \"^2.20.2\",\n \"eslint-plugin-node\": \"^11.1.0\",\n \"eslint-plugin-promise\": \"^4.2.1\",\n \"eslint-plugin-react\": \"^7.19.0\",\n \"eslint-plugin-standard\": \"^4.0.1\",\n \"typescript\": \"^3.8.3\"\n },\n \"dependencies\": {\n \"eslint\": \"<7.0.0\"\n }\n}\n\n```"
}
] |
code_micro_24ddd9e2
|
[
{
"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 micro/lerna.json from the micro VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"version\": \"1.1.1-alpha.17\",\n \"npmClient\": \"yarn\",\n \"useWorkspaces\": true,\n \"command\": {\n \"publish\": {\n \"message\": \"Release: %v\"\n }\n },\n \"packages\": [\n \"packages/*\"\n ]\n}\n\n```"
}
] |
code_affirm-qa-theme_e85c957d
|
[
{
"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 affirm-qa-theme/manifest.json from the affirm-qa-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"affirm-qa-theme\",\n \"version\": \"0.0.1\",\n \"builders\": {\n \"styles\": \"2.x\",\n \"store\": \"0.x\",\n \"sitemap\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2018-09-05\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.store\": \"2.x\",\n \"vtex.store-header\": \"2.x\",\n \"vtex.product-summary\": \"2.x\",\n \"vtex.store-footer\": \"2.x\",\n \"vtex.store-components\": \"3.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.slider\": \"0.x\",\n \"vtex.carousel\": \"2.x\",\n \"vtex.shelf\": \"1.x\",\n \"vtex.menu\": \"2.x\",\n \"vtex.minicart\": \"2.x\",\n \"vtex.product-details\": \"1.x\",\n \"vtex.product-kit\": \"1.x\",\n \"vtex.search-result\": \"3.x\",\n \"vtex.login\": \"2.x\",\n \"vtex.my-account\": \"1.x\",\n \"vtex.flex-layout\": \"0.x\",\n \"vtex.rich-text\": \"0.x\",\n \"vtex.store-drawer\": \"0.x\",\n \"vtex.locale-switcher\": \"0.x\",\n \"vtex.product-quantity\": \"1.x\",\n \"vtex.product-identifier\": \"0.x\",\n \"vtex.breadcrumb\": \"1.x\",\n \"vtex.sticky-layout\": \"0.x\",\n \"vtex.product-customizer\": \"2.x\",\n \"vtex.stack-layout\": \"0.x\",\n \"vtex.product-specification-badges\": \"0.x\",\n \"vtex.product-review-interfaces\": \"1.x\",\n \"vtex.telemarketing\": \"2.x\",\n \"vtex.order-placed\": \"2.x\",\n \"vtex.checkout-summary\": \"0.x\",\n \"vtex.product-list\": \"0.x\",\n \"vtex.add-to-cart-button\": \"0.x\",\n \"vtex.product-bookmark-interfaces\": \"1.x\",\n \"vtex.responsive-layout\": \"0.x\",\n \"vtex.slider-layout\": \"0.x\",\n \"vtex.store-image\": \"0.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.modal-layout\": \"0.x\",\n \"vtex.store-link\": \"0.x\",\n \"vtex.store-video\": \"1.x\",\n \"vtex.product-gifts\": \"0.x\",\n \"vtex.product-price\": \"1.x\",\n \"vtex.disclosure-layout\": \"1.x\",\n \"vtex.store-form\": \"0.x\",\n \"vtex.product-highlights\": \"2.x\",\n \"vtex.product-specifications\": \"1.x\",\n \"vtex.tab-layout\": \"0.x\",\n \"vtex.condition-layout\": \"2.x\",\n \"vtex.css-handles\": \"1.x\",\n \"vtex.affirm-components\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_instore-profile_30815495
|
[
{
"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 instore-profile/nwb.config.js from the instore-profile VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nmodule.exports = {\n type: 'react-component',\n babel: {\n plugins: ['add-react-displayname'],\n },\n npm: {\n esModules: false,\n },\n}\n\n```"
}
] |
code_instore-profile_38dc5927
|
[
{
"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 instore-profile/jest.transform.js from the instore-profile VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\nmodule.exports = require('babel-jest').createTransformer({\n presets: ['env','react-app'],\n})\n\n```"
}
] |
code_instore-profile_b04d49db
|
[
{
"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 instore-profile/README.md from the instore-profile VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n# Profile Form\n\n\n> A React component for rendering and managing user profile forms\n\n## Setup\n\nThrough **NPM**:\n\n```sh\n$ npm install @vtexlab/instore-profile\n```\n\n```js\nimport ProfileContainer from '@vtexlab/instore-profile/ProfileContainer'\n```\n\n## API\n\n### Base Components\n\n- [ProfileContainer](#profilecontainer)\n- [ProfileRules](#profilerules)\n- [ProfileSummary](#profilesummary)\n\n### Helper Functions\n\n- [addValidation](#addvalidation)\n- [removeValidation](#removevalidation)\n\n### Public Modules\n\n- [locales/](#locales)\n- [rules/](#rules)\n- [inputs/](#inputs)\n\n### Types\n\n- [ProfileShape](#profileshape)\n- [ProfileFieldShape](#profilefieldshape)\n- [ProfileWithValidationShape](#profilewithvalidationshape)\n- [RuleFieldShape](#rulefieldshape)\n- [RuleShape](#ruleshape)\n\n---\n\n## Base Components\n\n### ProfileContainer\n\nThis is the main component of `instore-profile`. It will render inputs based on the rules provided, and fill them with data from the profile object passed to it. It also spawns internal child components that perform validation on such inputs, also based on the rules.\n\n`ProfileContainer` keeps the current profile being managed in its internal state; the `defaultProfile` prop is only accessed at mount time. If you need to update the prop at some other time, use the special `key` prop to force the recreation of the whole container with the new profile. It provides an `onSubmit()` function to call a function in the host component when the user submits the form.\n\nInputs and buttons inside `ProfileContainer` can be customized to fit the style of different host applications. You can also pass in children components and they will be displayed right before the business toggle button, but they won't receive validation, submission or state management - you must do that yourself.\n\n#### Props\n\n- **rules**: (default: the default rules) Set of rules for this form\n- **defaultProfile**: Initial data for the profile object\n- **onSubmit**: Function to be called upon form submission. Receives as argument an object containing a `valid` boolean representing the state of the profile object, and a clean profile (shape: `ProfileShape`)\n- **Input**: (default: `StyleguideInput`) Component to be used as input for the form fields\n- **ToggleBusinessButton**: Component to be used as a button for toggling business fields\n- **SubmitButton**: Component to be used as a submit button\n- **shouldShowExtendedGenders**: (default: `false`) Whether the gender input should display a wide list of genders or just male/female\n- **children**: Custom components to be added right before the business toggle button\n- **intl**: `react-intl` automatically injected util\n\n```js\nProfileContainer.propTypes = {\n rules: RuleShape.isRequired,\n defaultProfile: ProfileShape,\n onSubmit: PropTypes.func.isRequired,\n Input: PropTypes.func,\n ToggleBusinessButton: PropTypes.element,\n SubmitButton: PropTypes.element,\n shouldShowExtendedGenders: PropTypes.bool,\n children: PropTypes.node,\n intl: intlShape.isRequired,\n}\n```\n\n#### Example\n\n```js\n<ProfileContainer\n profile={profile}\n rules={brRules}\n onSubmit={this.handleSubmit}\n/>\n```\n\nAn example with customized buttons:\n\n```js\n<ProfileContainer\n profile={profile}\n rules={brRules}\n onSubmit={this.handleSubmit}\n Input={StyleguideInput}\n SubmitButton={\n <Button block size=\"small\">\n Save profile\n </Button>\n }\n ToggleBusinessButton={<Button size=\"small\" block />}\n/>\n```\n\nNote that the `onClick` hook for both buttons is automatically injected by the container. Also, the text for the `ToggleBusinessButton` is standardized; you don't need to pass any text inside your button (and if you do, it will be overwritten).\n\n### ProfileRules\n\nThis component contains functionality for easily fetching the profile rules for any country and providing them to its direct children (usually a `ProfileContainer` component).\n\n#### Props\n\n- **`children`**: The component which will be rendered inside this component and, therefore, receive the provided rules (you probably want this to be a `ProfileContainer` instance)\n- **`country`**: The string identifier for the country which rules are to be provided, must use `ISO Alpha3` standard (e.g. `BRA`, `USA`, etc.)\n- **`shouldUseIOFetching`**: Whether to use built-in dynamic file fetching for the rules. Should be used if the project is an IO app\n- **`fetch`**: Functionality for fetching the rule files. Outside of IO, it **must** receive the function `{country => import('@vtex/instore-profile/lib/rules/' + country)}` as its value. In IO, this prop **must not** be set\n\n```js\nProfileRules.propTypes = {\n children: PropTypes.element.isRequired,\n locale: PropTypes.string.isRequired,\n shouldUseIOFetching: PropTypes.bool,\n fetch: PropTypes.func,\n}\n```\n\n#### Example\n\nHere, `ProfileContainer` will be injected with the fetched rules:\n\n```js\n<ProfileRules\n locale={'pt-BR'}\n fetch={locale => import('../../src/rules/' + locale)}\n>\n <ProfileContainer profile={profile} onSubmit={this.handleSubmit} />\n</ProfileRules>\n```\n\n### ProfileSummary\n\nThis component takes in a profile object and a set of rules and prepares the data for displaying. Its main advantages are handling the translation of the labels and informing which fields should be hidden, but it also does some parsing logic such as translating gender and masking phone.\n\n`ProfileSummary` renders nothing by itself. The data is served as a render prop, and the host app must display it as desired. An object is passed with three properties: `isCorporate`, a boolean value indicating if the profile represents a corporation, and `personalData` and `businessData`, where each of these is an object with the keys being the field names (such as `firstName` or `homePhone` for `personalData`) and the value being an object containing useful information for displaying each field:\n\n- `label`: the field label, already translated.\n- `value`: the value obtained from the `profile` prop, masked if necessary\n- `hidden`: whether this field should be hidden or not\n\n#### Props\n\n- **`profile`**: The profile object whose data will be served\n- **`rules`**: The set of rules to apply over the profile. Works best if injected by a `ProfileRules` component\n- **`children`**: The render prop function, serving the data in the structure explained above\n- **`intl`**: `react-intl` internal utility\n\n```js\nProfileSummary.propTypes = {\n profile: ProfileShape.isRequired,\n rules: RuleShape.isRequired,\n children: PropTypes.func.isRequired,\n intl: intlShape.isRequired,\n}\n```\n\n#### Example\n\n```js\n<ProfileSummary profile={profile}>\n {({ personalData, businessData, isCorporate }) => (\n <div>\n <h3>Personal Data:</h3>\n {Object.keys(personalData).map(fieldName =>\n <div>\n {!personalData[fieldName].hidden &&\n <label>{personalData[fieldName].label}</label>}\n {!personalData[fieldName].hidden &&\n <span>{personalData[fieldName].value}</span>}\n </div>\n )}\n {isCorporate && (\n <h3>Business Data:</h3>\n {/* [...] */}\n )}\n </div>\n )}\n</ProfileSummary>\n```\n\n## Helper Functions\n\n### addValidation\n\nThis function takes in a clean profile and a set of rules, and generates another profile object with validation metadata (following `ProfileWithValidationShape`). Besides just wrapping each property, it checks each rule for a `display` transform function, and applies it to the value before returning. This is specially useful when editing dates, as they usually come from the API as a `YYYY-MM-DD` string and you may want to change the format to something more localized before displaying it inside the text input.\n\n#### Params\n\n- **`profile`**: A profile in the shape of [`ProfileShape`](#profileshape)\n- **`rules`**: A set of rules in the shape of [`RuleShape`](#ruleshape)\n\n#### Returns\n\n- A profile in the shape of [`ProfileWithValidationShape`](#profilewithvalidationshape)\n\n### removeValidation\n\nThis is the inverse to the `addValidation` function above. As such, besides stripping validation metadata it also checks the rules for `submit` transformations and applies it to the proper fields. Again, this is useful to transform dates from the user's localized format to the international format required by the API.\n\n#### Params\n\n- **`profile`**: A profile in the shape of [`ProfileWithValidationShape`](#profilewithvalidationshape)\n- **`rules`**: A set of rules in the shape of [`RuleShape`](#ruleshape)\n\n#### Returns\n\n- A profile in the shape of [`ProfileShape`](#profileshape)\n\n## Public Modules\n\n### locales/\n\nThis folder contains JSON localized files providing translations for every text used inside the `instore-profile`. The correct files must be imported and provided by the host app at their own charge.\n\n### rules/\n\nThis folder provides files for each supported country, containing the rules used to manage the form. There are also default rules, which are used when an unsupported country is provided to the `ProfileRules` component.\n\nSuch rules provide information on how each field of the form should be rendered. Functionality for masking and validating inputs is also provided inside the rules and isolated by field - there are no built-in validators in `instore-profile` (except for checking mandatory fields).\n\n### inputs/\n\nThis folder provides inputs to be used as building blocks for the profile form. Currently, only `StyleguideInput`, an input which follows the [VTEX Styleguide](https://vtex.github.io/styleguide/#input), is provided.\n\n## Types\n\n### ProfileShape\n\nThis is the shape of a clean profile object, as if it had just been retrieved from a server.\n\n```js\nPropTypes.shape({\n /** Date of the user's birth */\n birthDate: PropTypes.string,\n /** User's business phone */\n businessPhone: PropTypes.string,\n /** User's corporate document */\n corporateDocument: PropTypes.string,\n /** User's corporate name */\n corporateName: PropTypes.string,\n /** User's personal document */\n document: PropTypes.string,\n /** User's email */\n email: PropTypes.string,\n /** User's personal name */\n firstName: PropTypes.string,\n /** User's gender */\n gender: PropTypes.string,\n /** User's personal phone */\n homePhone: PropTypes.string,\n /** User's surname */\n lastName: PropTypes.string,\n /** User's corporate state registration */\n stateRegistration: PropTypes.string,\n /** User's corporate trade name */\n tradeName: PropTypes.string,\n /** Whether the user is a corporation or not */\n isCorporate: PropTypes.bool,\n})\n```\n\n### ProfileFieldShape\n\nWhen the profile object is passed to `ProfileContainer`, validation data is added to each field. Thus, every field is now an object with the following shape:\n\n```js\nPropTypes.shape({\n /** The value for that field */\n value: PropTypes.any,\n /** i18n code for the error this value is presenting */\n error: PropTypes.string,\n /** Whether the input should receive focus */\n focus: PropTypes.bool,\n /** Whether the input has already been touched by the user */\n touched: PropTypes.bool,\n})\n```\n\n### ProfileWithValidationField\n\nThe whole validated profile object simply maintains the same structure as in `ProfileShape`, but now each field is of type `ProfileFieldShape`.\n\n### RuleShape\n\nEvery rule inside the `rules/` folder contains the structure below. The fields are divided between `personal` and `business` fields, in order to be able to alternate visibility between them.\n\n```js\nPropTypes.shape({\n /** The country this rule refers to */\n country: PropTypes.string,\n /** Configuration for the personal fields */\n personalFields: PropTypes.arrayOf(RuleFieldShape).isRequired,\n /** Configuration for the business fields */\n businessFields: PropTypes.arrayOf(RuleFieldShape).isRequired,\n})\n```\n\n### RuleShape\n\nInside each `fields` array of a rules object, every object represents one field of `instore-profile`. These objects take on the shape below. Inside these rule-shaped objects, validation and masking functionality is provided.\n\n```js\nPropTypes.shape({\n /** Name for both the field and the profile object property */\n name: PropTypes.string.isRequired,\n /** Maximum length of the field */\n maxLength: PropTypes.number,\n /** i18n code for the label to be displayed over the field */\n label: PropTypes.string.isRequired,\n /** Whether the field is required or not */\n required: PropTypes.bool,\n /** Whether the field should be hidden or not */\n hidden: PropTypes.bool,\n /** Function returning a mask to be applied on the value */\n mask: PropTypes.func,\n /** A function to evaluate if the value is valid */\n validate: PropTypes.func,\n /** A function to transform received data before displaying */\n display: PropTypes.func,\n /** A function to transform input data before submitting */\n submit: PropTypes.func,\n})\n```\n\n---\n\nAuthor: **Gustavo Silva** (@akaFTS)\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n```"
}
] |
code_instore-profile_80135d39
|
[
{
"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 instore-profile/package.json from the instore-profile VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"@vtexlab/instore-profile\",\n \"license\": \"AGPL-3.0-only\",\n \"version\": \"2.9.6\",\n \"description\": \"React component for managing user profiles\",\n \"main\": \"lib/index.js\",\n \"files\": [\n \"lib\"\n ],\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"build\": \"npm run symlinks && nwb build-react-component --no-demo && npm run removeMocks && npm run addLocales\",\n \"build:link\": \"npm link && watch 'npm run build' src\",\n \"removeMocks\": \"rm -rf lib/**/__mocks__ && rm -rf lib/__mocks__\",\n \"addLocales\": \"cp -R -f messages/ lib/locales/\",\n \"clean\": \"nwb clean-module && nwb clean-demo\",\n \"start\": \"npm run symlinks && nwb serve-react-demo\",\n \"symlinks\": \"rm -rf react/node_modules && rm -rf src && ln -sf react src\",\n \"test\": \"jest --env=jsdom\",\n \"test:coverage\": \"jest --env=jsdom --coverage\",\n \"test:watch\": \"jest --env=jsdom --watch\",\n \"vtex:link\": \"npm run symlinks && vtex link\",\n \"prepublishOnly\": \"npm run build\",\n \"locales:lint\": \"intl-equalizer\",\n \"locales:fix\": \"intl-equalizer --fix\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\",\n \"pre-push\": \"yarn locales:lint && yarn test\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.4.2\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"babel-jest\": \"^23.6.0\",\n \"babel-plugin-add-react-displayname\": \"0.0.5\",\n \"babel-preset-react-app\": \"^3.1.2\",\n \"enzyme\": \"^3.3.0\",\n \"enzyme-adapter-react-16\": \"^1.1.1\",\n \"enzyme-react-intl\": \"^2.0.0\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"eslint-config-vtex-react\": \"^6.2.1\",\n \"husky\": \"^4.2.0\",\n \"jest\": \"^22.4.4\",\n \"jest-enzyme\": \"^6.0.2\",\n \"lint-staged\": \"^10.0.2\",\n \"nwb\": \"^0.21.5\",\n \"prettier\": \"^1.19.1\",\n \"react\": \"^16.4.1\",\n \"react-dom\": \"^16.4.1\",\n \"react-intl\": \"^2.4.0\",\n \"react-hot-loader\": \"^4.3.4\",\n \"react-test-renderer\": \"^16.4.1\",\n \"typescript\": \"^3.7.5\"\n },\n \"dependencies\": {\n \"@vtex/phone\": \"^4.8.0\",\n \"@vtex/styleguide\": \"^5.4.4\",\n \"downshift\": \"^2.0.20\",\n \"match-sorter\": \"^2.2.3\",\n \"moment\": \"^2.22.2\",\n \"msk\": \"^1.0.3\"\n },\n \"peerDependencies\": {\n \"react\": \"^16.4.1 || ^17.0.2\",\n \"react-intl\": \"^2.4.0 || ^5.15.8\",\n \"vtex-tachyons\": \"^2.5.0\"\n },\n \"repository\": \"https://github.com/vtex/instore-profile\",\n \"author\": \"Gustavo Silva (@akafts)\",\n \"homepage\": \"https://github.com/vtex/instore-profile\",\n \"keywords\": [\n \"react-component\",\n \"vtex\",\n \"profile\",\n \"instore\"\n ],\n \"jest\": {\n \"setupTestFrameworkScriptFile\": \"<rootDir>/react/__tests__/setupTests.js\",\n \"testURL\": \"http://localhost\",\n \"testPathIgnorePatterns\": [\n \"/node_modules/\",\n \"<rootDir>/es/\",\n \"<rootDir>/lib/\",\n \"<rootDir>/umd/\",\n \"<rootDir>/src/\",\n \"setupTests\"\n ],\n \"modulePathIgnorePatterns\": [\n \"<rootDir>/es/\",\n \"<rootDir>/lib/\",\n \"<rootDir>/umd/\",\n \"<rootDir>/src/\"\n ],\n \"transformIgnorePatterns\": [\n \"[/\\\\\\\\]lib[/\\\\\\\\].+\\\\.(js|jsx)$\",\n \"[/\\\\\\\\]umd[/\\\\\\\\].+\\\\.(js|jsx)$\",\n \"[/\\\\\\\\]es[/\\\\\\\\].+\\\\.(js|jsx)$\",\n \"[/\\\\\\\\]node_modules[/\\\\\\\\].+\\\\.(js|jsx)$\"\n ],\n \"moduleNameMapper\": {\n \"\\\\.(css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)(\\\\?.*)?$\": \"identity-obj-proxy\"\n },\n \"transform\": {\n \"^.+\\\\.js$\": \"<rootDir>/jest.transform.js\"\n }\n }\n}\n\n```"
}
] |
code_instore-profile_e0c7d58b
|
[
{
"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 instore-profile/manifest.json from the instore-profile VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"profile-form\",\n \"version\": \"2.9.6\",\n \"title\": \"VTEX Profile-form\",\n \"description\": \"React component for managing user profiles\",\n \"builders\": {\n \"react\": \"2.x\",\n \"messages\": \"1.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"npm run symlinks\",\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"mustUpdateAt\": \"2019-08-09\",\n \"categories\": [],\n \"registries\": [\n \"smartcheckout\"\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_drawer_0dbecb74
|
[
{
"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 drawer/package.json from the drawer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"store-drawer\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ],\n \"*.json\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.0.3\",\n \"eslint-config-vtex-react\": \"^6.0.3\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"2.3.2\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```"
}
] |
code_drawer_82423720
|
[
{
"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 drawer/manifest.json from the drawer VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"store-drawer\",\n \"vendor\": \"vtex\",\n \"version\": \"0.18.3\",\n \"title\": \"Store Drawer\",\n \"description\": \"The VTEX Drawer\",\n \"builders\": {\n \"messages\": \"1.x\",\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.store-icons\": \"0.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.responsive-values\": \"0.x\",\n \"vtex.pixel-manager\": \"1.x\"\n },\n \"mustUpdateAt\": \"2020-03-28\",\n \"registries\": [\n \"smartcheckout\"\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_shopper-location-availability-theme_e034f102
|
[
{
"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-availability-theme/manifest.json from the shopper-location-availability-theme VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"shopper-location-availability-qa-theme\",\n \"version\": \"0.0.1\",\n \"builders\": {\n \"styles\": \"2.x\",\n \"store\": \"0.x\",\n \"sitemap\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2018-09-05\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.store\": \"2.x\",\n \"vtex.store-header\": \"2.x\",\n \"vtex.product-summary\": \"2.x\",\n \"vtex.store-footer\": \"2.x\",\n \"vtex.store-components\": \"3.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.slider\": \"0.x\",\n \"vtex.carousel\": \"2.x\",\n \"vtex.shelf\": \"1.x\",\n \"vtex.menu\": \"2.x\",\n \"vtex.minicart\": \"2.x\",\n \"vtex.product-details\": \"1.x\",\n \"vtex.product-kit\": \"1.x\",\n \"vtex.search-result\": \"3.x\",\n \"vtex.login\": \"2.x\",\n \"vtex.my-account\": \"1.x\",\n \"vtex.flex-layout\": \"0.x\",\n \"vtex.rich-text\": \"0.x\",\n \"vtex.store-drawer\": \"0.x\",\n \"vtex.locale-switcher\": \"0.x\",\n \"vtex.product-quantity\": \"1.x\",\n \"vtex.product-identifier\": \"0.x\",\n \"vtex.breadcrumb\": \"1.x\",\n \"vtex.sticky-layout\": \"0.x\",\n \"vtex.product-customizer\": \"2.x\",\n \"vtex.stack-layout\": \"0.x\",\n \"vtex.product-specification-badges\": \"0.x\",\n \"vtex.product-review-interfaces\": \"1.x\",\n \"vtex.telemarketing\": \"2.x\",\n \"vtex.order-placed\": \"2.x\",\n \"vtex.checkout-summary\": \"0.x\",\n \"vtex.product-list\": \"0.x\",\n \"vtex.add-to-cart-button\": \"0.x\",\n \"vtex.product-bookmark-interfaces\": \"1.x\",\n \"vtex.responsive-layout\": \"0.x\",\n \"vtex.slider-layout\": \"0.x\",\n \"vtex.store-image\": \"0.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.modal-layout\": \"0.x\",\n \"vtex.store-link\": \"0.x\",\n \"vtex.store-video\": \"1.x\",\n \"vtex.product-gifts\": \"0.x\",\n \"vtex.product-price\": \"1.x\",\n \"vtex.disclosure-layout\": \"1.x\",\n \"vtex.store-form\": \"0.x\",\n \"vtex.product-highlights\": \"2.x\",\n \"vtex.product-specifications\": \"1.x\",\n \"vtex.tab-layout\": \"0.x\",\n \"vtex.condition-layout\": \"2.x\",\n \"vtex.css-handles\": \"1.x\"\n },\n \"peerDependencies\": {\n \"vtex.shopper-location\": \"1.x\",\n \"vtex.location-availability\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_mega-menu_96b20957
|
[
{
"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 mega-menu/README.md from the mega-menu VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n### 📢 **Don't fork this project. Use, contribute, or open issues through [Store Discussion](https://github.com/vtex-apps/store-discussion)**.\n\n# Mega menu\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n\n[](#contributors)\n\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n\n## ⚠️ Maintenance ⚠️\n*Starting June 1st 2023, this application will no longer be maintained by VTEX.*\n\n---\n\nVTEX Mega Menu provides a form to create and manage the custom menu until three levels in the category tree. The stores can use this app as the main navigation menu.\n\n\n\n## Configuration\n\n### Step 1 - Installing the Mega Menu app\n\nUsing your terminal, log in to the desired VTEX account and run the following command:\n\n`vtex install [email protected]`\n\n### Step 2 - Define the category tree to be used as a menu in the admin\n\nIn the account's admin dashboard, access `STORE SETUP > Mega Menu` and using the available options configure the category tree according to your needs:\n\n\n\n### Step 3 - Implementing the app's blocks in your store theme\n\n**IMPORTANT: If you have installed this app previously, please validate with your block settings and add the new components to modify the orientation Menu.\nNo change the option to vertical Menu if you haven't yet this configuration in your store.**\n\n---\n\nOnce the app is configured, it is time to place the following blocks in your Store Theme app.\n\nImport the mega menu app to your dependencies as `manifest.json`, for example:\n\n```json\n\"peerDependencies\": {\n\t\"vtex.mega-menu\": \"2.x\"\n}\n```\n\n### `mega-menu`\n\nThis block is responsible for querying the previously built category tree and displaying it in the store.\n\n| Prop name | Type | Description | Default value |\n| ----------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| title | `String` | Title for the first level elements (departments) used in the mobile version or when the `orientation` is `vertical`. | Departments |\n| `orientation` | `String` | Type of menu to be built. Possible values are horizontal and `vertical` | A value is determined depending on the resolution of the device, if it is a mobile (phone and tablet) it is used `vertical` and for the rest `horizontal`. |\n| defaultDepartmentActive | `String` | You can use this property to determine a department that will be shown when first displaying the menu, this is useful if you want to highlight a specific department. | 🚫 |\n| openOnly | `String` | Define the orientation of the menu. You can choose between vertical or horizontal. | `vertical`or `horizontal` |\n\n### `mega-menu-trigger-btn`\n\nThis block renders an icon that will be used as a trigger to open the **desktop** menu or when the `orientation` is `horizontal` or `vertical`.\n\n_Note: Currently, this block receives the same props as an VTEX Store [Icon](https://github.com/vtex-apps/store-icons#props)._\n\n### `mega-menu-go-back-btn`\n\nThis block can go back to the list of items in the first level of the menu (departments) only works when it is a **mobile device** or the `orientation` is `vertical`.\n\n_To configure the desktop version:_\n\n```json\n{\n // ...\n\n \"sticky-layout#4-desktop\": {\n \"children\": [\"flex-layout.row#4-desktop\", \"flex-layout.row#mega-menu\"]\n },\n \"flex-layout.row#4-desktop\": {\n \"children\": [\n \"flex-layout.col#trigger-mega-menu\"\n // ...\n ]\n },\n\n \"flex-layout.row#mega-menu\": {\n \"children\": [\"mega-menu#desktop\"]\n },\n \"mega-menu#desktop\": {\n \"props\": {\n \"openOnly\": \"horizontal\"\n }\n },\n \"flex-layout.col#trigger-mega-menu\": {\n \"props\": {\n \"verticalAlign\": \"middle\"\n },\n \"children\": [\"mega-menu-trigger-btn\"]\n },\n \"mega-menu-trigger-btn\": {\n \"props\": {\n \"Drawer\": \"drawer\"\n }\n }\n}\n```\n\n_To configure the mobile version:_\n\n```json\n{\n // ...\n \"flex-layout.row#1-mobile\": {\n \"children\": [\n \"flex-layout.col#trigger-mega-menu\"\n // ...\n ],\n \"props\": {\n // ...\n }\n },\n\n \"drawer\": {\n \"children\": [\"mega-menu#mobile\"],\n \"blocks\": [\"drawer-header#my-drawer\"]\n },\n \"mega-menu#mobile\": {\n \"props\": {\n \"defaultDepartmentActive\": \"...\",\n \"orientation\": \"vertical\",\n \"openOnly\": \"vertical\"\n }\n },\n \"drawer-header#my-drawer\": {\n \"children\": [\"flex-layout.row#drawer-header\"]\n },\n \"flex-layout.row#drawer-header\": {\n \"children\": [\n \"flex-layout.col#mega-menu-go-back-btn\",\n \"flex-layout.col#spacer\",\n \"flex-layout.col#drawer-close-button\"\n ],\n \"props\": {\n \"blockClass\": \"drawer-header\",\n \"preventHorizontalStretch\": true,\n \"preventVerticalStretch\": true,\n \"preserveLayoutOnMobile\": true,\n \"fullWidth\": true\n }\n },\n \"flex-layout.col#drawer-close-button\": {\n \"children\": [\"drawer-close-button\"],\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"horizontalAlign\": \"right\"\n }\n },\n \"flex-layout.col#mega-menu-go-back-btn\": {\n \"children\": [\"mega-menu-go-back-btn\"],\n \"props\": {\n \"verticalAlign\": \"middle\",\n \"horizontalAlign\": \"left\",\n \"paddingLeft\": 4\n }\n }\n}\n```\n\n## Notes\n\n### Icons for menu items\n\nIn the form of creation and edition of a menu item it is possible to add an icon, currently you can select any of the [ICONPACK](https://github.com/vtex-apps/store-icons/blob/master/styles/iconpacks/iconpack.svg) that comes default with your store, but if you have customized (for more information read the following [guide](https://github.com/vtex-apps/store-icons/blob/master/docs/ICONPACK.md)) that file the modifications will not be visible in the select, therefore you must write the id of the icon manually.\n\n\n\n### Styles for menu items\n\nYou can customize an element in a basic way using **comma (,)** separated CSS properties, for example:\n\n⚠️ _It is important not to abuse this functionality, for complex persoanlizations use [CSS Handle](#customization)._\n\n```\npadding-top:5px,\npadding-left:20px,\npadding-right:20px,\npadding-bottom:5px,\nfont-size:20px,\nfont-weight:bold,\nbackground-color:yellow,\ncolor:red\n```\n\n\n\n## Customization\n\nIn order to apply CSS customizations on this and other blocks, follow the instructions given in the recipe on [Using CSS Handles for store customization](https://vtex.io/docs/recipes/style/using-css-handles-for-store-customization).\n\n| CSS Handle |\n| --------------------------------- |\n| `goBackContainer` |\n| `goBackButton` |\n| `goBackButtonIcon` |\n| `goBackButtonText` |\n| `menuContainer` |\n| `menuContainerNav` |\n| `menuItem` |\n| `submenuContainer` |\n| `styledLink` |\n| `styledLinkIcon` |\n| `styledLinkContainer` |\n| `styledLinkContent` |\n| `accordionIconContainer` |\n| `accordionIconContainer—isOpen` |\n| `accordionIconContainer—isClosed` |\n| `accordionIcon` |\n| `submenuContainer` |\n| `submenuList` |\n| `submenuListVertical` |\n| `submenuItem` |\n| `submenuItem—isOpen` |\n| `submenuItem—isClosed` |\n| `submenuItemVertical` |\n| `collapsibleContent` |\n| `collapsibleHeaderText` |\n| `seeAllLinkContainer` |\n| `seeAllLink` |\n| `triggerContainer` |\n| `triggerButtonIcon` |\n| `triggerButtonIcon—active` |\n| `triggerButtonIcon—muted` |\n| `menuContainerVertical` |\n| `departmentsContainer` |\n| `menuContainerNavVertical` |\n| `menuItemVertical` |\n| `submenuContainerVertical` |\n\n### Upload mega menu data from CSV file\n\nTo upload data from a CSV file, You should create an import file with the following structure. The data will then be stored in the VBASE successfully.\n\n\n\nThe field `subMenus` is a String with the following structure:\n\n`[{ \"id\":\"submenu1383316\", \"name\":\"submenu1\", \"icon\":\"\",\"slug\":\"Menu1/submenu1\", \"styles\":\"\",\"display\":true, \"enableSty\":true,\"order\":1, \"slugRoot\":\"submenu1\", \"slugRelative\":\"Menu1\", \"menu\":[{ \"id\":\"sub-tercernivel-menu12121\", \"name\":\"sub-tercernivel-menu1-3\", \"icon\":\"\", \"slug\":\"Menu1/submenu1/menu1-3\", \"styles\":\"\", \"display\":true, \"enableSty\":true, \"order\":1, \"slugRoot\":\"menu1-3\", \"slugRelative\":\"Menu1/submenu1\"}] }]`\n\nThe file should have the field like to show below:\n\n\n\nYou can add the rows quantity that you want. Remember to keep the structure defined previously in all data.\n\n\n\nSave the file. You can choose any name for the file. Then go to the admin and select the option “upload data”\n\n\n\nTo generate backup data, download the information from the button “Download CSV”\n\n\n\n\n\nThis button only is available if the mega menu has data to save. The download file has the same structure defined at the begging of this step.\n\n## NEW FUNCTIONALITY: Choose the orientation of the Mega Menu on the Desktop\n\nIn this release, Mega Menu App has new functionality that allows you to choose the orientation. You can choose between Horizontal o Vertical.\n\n**IMPORTANT: before choosing the vertical option to desktop, configure the blocks in your store. Go to step 3 of this guide to configure the blocks**\n\nWhen you guarantee the configuration of blocks in the store, go to the new button to settings of Mega Menu and change the orientation.\n\n\n\n\n\nPress the `Confirm`button to save the configuration of orientation menu.\n\n\n\n```"
}
] |
code_mega-menu_9584bbfd
|
[
{
"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 mega-menu/package.json from the mega-menu VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"mega-menu\",\n \"private\": true,\n \"license\": \"MIT\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"lint:locales\": \"intl-equalizer\",\n \"test\": \"cd ./react && yarn test\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged && intl-equalizer && intl-equalizer --fix\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n },\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.5.0\",\n \"@vtex/prettier-config\": \"^0.3.5\",\n \"eslint\": \"^7.14.0\",\n \"eslint-config-vtex\": \"^12.8.11\",\n \"eslint-config-vtex-react\": \"^6.8.3\",\n \"husky\": \"^4.3.0\",\n \"lint-staged\": \"^10.5.1\",\n \"prettier\": \"^2.2.0\",\n \"typescript\": \"^3.9.6\"\n },\n \"dependencies\": {\n \"@types/react\": \"^18.0.17\"\n }\n}\n\n```"
}
] |
code_mega-menu_1a92577b
|
[
{
"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 mega-menu/manifest.json from the mega-menu VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"mega-menu\",\n \"vendor\": \"vtex\",\n \"version\": \"2.10.1\",\n \"title\": \"Mega Menu\",\n \"description\": \"Create, personalize and manage the category tree. It's can be used in the shop as main menu\",\n \"mustUpdateAt\": \"2022-08-28\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish\"\n },\n \"builders\": {\n \"docs\": \"0.x\",\n \"messages\": \"1.x\",\n \"store\": \"0.x\",\n \"admin\": \"0.x\",\n \"react\": \"3.x\",\n \"graphql\": \"1.x\",\n \"node\": \"6.x\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.css-handles\": \"1.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.device-detector\": \"0.x\",\n \"vtex.native-types\": \"0.x\",\n \"vtex.store-drawer\": \"0.x\"\n },\n \"billingOptions\": {\n \"type\": \"free\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"policies\": [\n {\n \"name\": \"graphql-query\"\n },\n {\n \"name\": \"vbase-read-write\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_google-customer-reviews_5aa8016a
|
[
{
"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 google-customer-reviews/manifest.json from the google-customer-reviews VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"google-customer-reviews\",\n \"vendor\": \"vtex\",\n \"version\": \"1.1.1\",\n \"title\": \"Google Customer Reviews\",\n \"description\": \"This application allows Google to collect and post comments from customers who have made a purchase on your website.\",\n \"billingOptions\": {\n \"termsURL\": \"https://compliance.vtex.com/gdpr/policies/vtex-privacy-policy\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true,\n \"type\": \"free\",\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.pixel-interfaces\": \"1.x\",\n \"vtex.css-handles\": \"1.x\"\n },\n \"settingsSchema\": {\n \"title\": \"Google Customer Reviews\",\n \"type\": \"object\",\n \"properties\": {\n \"merchantId\": {\n \"title\": \"Merchant ID\",\n \"type\": \"string\"\n },\n \"passGtin\": {\n \"title\": \"Pass GTINs\",\n \"type\": \"boolean\",\n \"default\": true\n },\n \"optInStyle\": {\n \"title\": \"Opt-in style\",\n \"description\": \"Specifies how the opt-in module's dialog box is displayed\",\n \"type\": \"string\",\n \"default\": \"CENTER_DIALOG\",\n \"enum\": [\n \"CENTER_DIALOG\",\n \"BOTTOM_RIGHT_DIALOG\",\n \"BOTTOM_LEFT_DIALOG\",\n \"TOP_RIGHT_DIALOG\",\n \"TOP_LEFT_DIALOG\",\n \"BOTTOM_TRAY\"\n ],\n \"enumNames\": [\n \"Center\",\n \"Bottom right\",\n \"Bottom left\",\n \"Top right\",\n \"Top left\",\n \"Bottom\"\n ]\n },\n \"showBadge\": {\n \"title\": \"Show badge\",\n \"type\": \"boolean\",\n \"default\": true\n },\n \"badgePosition\": {\n \"title\": \"Badge position\",\n \"description\": \"Renders the badge in one of the following locations\",\n \"type\": \"string\",\n \"default\": \"BOTTOM_RIGHT\",\n \"enum\": [\n \"BOTTOM_RIGHT\",\n \"BOTTOM_LEFT\",\n \"INLINE\"\n ],\n \"enumNames\": [\n \"Float in the bottom right\",\n \"Float in the bottom left\",\n \"Block position\"\n ]\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_order-payment_9af093d2
|
[
{
"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 order-payment/package.json from the order-payment VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"order-payment\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ],\n \"*.json\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@apollo/react-testing\": \"3\",\n \"@types/node\": \"^12.12.21\",\n \"@vtex/checkout-types\": \"^0.1.2\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"@vtex/test-tools\": \"^3.4.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.0.3\",\n \"eslint-config-vtex-react\": \"^5.1.0\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"react-intl\": \"3\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```"
}
] |
code_order-payment_0657dc21
|
[
{
"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 order-payment/manifest.json from the order-payment VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"order-payment\",\n \"version\": \"0.9.0\",\n \"title\": \"Order Payment\",\n \"description\": \"Order Payment component\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.checkout-resources\": \"0.x\",\n \"vtex.checkout-graphql\": \"0.x\",\n \"vtex.order-manager\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_store-header_27dee2c0
|
[
{
"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-header/package.json from the store-header VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"store-header\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.json\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.3.6\",\n \"eslint\": \"^7.15.0\",\n \"eslint-config-vtex\": \"^12.9.1\",\n \"eslint-config-vtex-react\": \"^6.9.1\",\n \"husky\": \"^4.3.5\",\n \"lint-staged\": \"^10.5.3\",\n \"prettier\": \"^2.2.1\",\n \"react\": \"^17.0.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```"
}
] |
code_store-header_b067748e
|
[
{
"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-header/manifest.json from the store-header VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"store-header\",\n \"version\": \"2.29.2\",\n \"title\": \"VTEX Store Header\",\n \"defaultLocale\": \"pt-BR\",\n \"description\": \"The VTEX Store Header component\",\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"categories\": [],\n \"registries\": [\n \"smartcheckout\"\n ],\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.telemarketing\": \"2.x\",\n \"vtex.minicart\": \"2.x\",\n \"vtex.login\": \"2.x\",\n \"vtex.menu\": \"2.x\",\n \"vtex.category-menu\": \"2.x\",\n \"vtex.store-components\": \"3.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.rich-text\": \"0.x\",\n \"vtex.store-drawer\": \"0.x\",\n \"vtex.locale-switcher\": \"0.x\",\n \"vtex.device-detector\": \"0.x\",\n \"vtex.css-handles\": \"1.x\",\n \"vtex.sandbox\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_spreadsheet-event-broadcaster_c1118105
|
[
{
"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 spreadsheet-event-broadcaster/dangerfile.js from the spreadsheet-event-broadcaster VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\n// dangerfile.js\nconst { verify } = require('@vtex/danger')\n\nconst config = {\n // Set to true to enforce keepachangelog rules.\n keepachangelog: {\n changeVersion: false,\n },\n rules: {\n description: ['fail', { minLength: 20 }],\n assignee: 'fail',\n reviewers: 'fail',\n pr_size: ['warn', { additionLimit: 800, deletionLimit: -1 }],\n lock_file: 'warn',\n no_ignored_test: ['fail', { pattern: /test|spec/i }],\n no_debugger: ['fail', { pattern: /\\.[tj]sx?$/i }],\n enforce_graphql_provider: 'off',\n },\n}\n\nverify(config)\n\n```"
}
] |
code_spreadsheet-event-broadcaster_425a316a
|
[
{
"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 spreadsheet-event-broadcaster/package.json from the spreadsheet-event-broadcaster VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"spreadsheet-event-broadcaster\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.3.6\",\n \"@vtex/danger\": \"^0.2.7\",\n \"eslint\": \"^7.16.0\",\n \"eslint-config-vtex\": \"^12.9.3\",\n \"husky\": \"^4.3.6\",\n \"lint-staged\": \"^10.5.3\",\n \"prettier\": \"^2.2.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```"
}
] |
code_spreadsheet-event-broadcaster_e542088e
|
[
{
"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 spreadsheet-event-broadcaster/manifest.json from the spreadsheet-event-broadcaster VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"spreadsheet-event-broadcaster\",\n \"vendor\": \"vtex\",\n \"version\": \"0.2.3\",\n \"title\": \"Spreadsheet Event Broadcaster\",\n \"description\": \"This service reads a spreadsheet from a file (.csv, .xls, .xlsx) and broadcasts an event for each row in the sheet.\",\n \"mustUpdateAt\": \"2018-01-04\",\n \"categories\": [],\n \"dependencies\": {},\n \"builders\": {\n \"node\": \"6.x\",\n \"masterdata\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"ADMIN_DS\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.vtex.com\",\n \"path\": \"/api/dataentities/*\"\n }\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_tab-layout_0c29ad49
|
[
{
"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 tab-layout/manifest.json from the tab-layout VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"tab-layout\",\n \"version\": \"0.4.6\",\n \"title\": \"Tab Layout\",\n \"description\": \"\",\n \"defaultLocale\": \"en-US\",\n \"builders\": {\n \"docs\": \"0.x\",\n \"messages\": \"1.x\",\n \"store\": \"0.x\",\n \"react\": \"3.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.native-types\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_shopback_8ea8e783
|
[
{
"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 shopback/manifest.json from the shopback VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"shopback\",\n \"version\": \"0.0.2\",\n \"title\": \"Shopback\",\n \"description\": \"Shopback pixel app\",\n \"billingOptions\": {\n \"termsURL\": \"\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true\n },\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.pixel-interfaces\": \"1.x\"\n },\n \"settingsSchema\": {\n \"title\": \"Shopback\",\n \"type\": \"object\",\n \"properties\": {\n \"shopbackId\": {\n \"title\": \"Shopback Id\",\n \"description\": \"Enter your Shopback Id\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_paginated-table_b0208708
|
[
{
"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 paginated-table/manifest.json from the paginated-table VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"paginated-table\",\n \"vendor\": \"vtex\",\n \"version\": \"0.14.0\",\n \"title\": \"Paginated Table\",\n \"description\": \"Paginated table based on styleguide's table\",\n \"scripts\": {\n \"prereleasy\": \"bash pre.sh\"\n },\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_store-media_cd677cbc
|
[
{
"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-media/package.json from the store-media VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"version\": \"0.0.0\",\n \"name\": \"store-media\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"lint:locales\": \"intl-equalizer\",\n \"test\": \"cd ./react && yarn test\"\n },\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged && intl-equalizer && intl-equalizer --fix\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.5.0\",\n \"@vtex/prettier-config\": \"^0.3.5\",\n \"eslint\": \"^7.14.0\",\n \"eslint-config-vtex\": \"^12.8.11\",\n \"eslint-config-vtex-react\": \"^6.8.3\",\n \"husky\": \"^4.3.0\",\n \"lint-staged\": \"^10.5.1\",\n \"prettier\": \"^2.2.0\",\n \"typescript\": \"^3.9.6\"\n }\n}\n\n```"
}
] |
code_store-media_ca2db695
|
[
{
"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-media/manifest.json from the store-media VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"store-media\",\n \"version\": \"0.3.0\",\n \"title\": \"Media\",\n \"description\": \"Store component to handle media (image and video)\",\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\",\n \"store\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.store-image\": \"0.x\",\n \"vtex.store-video\": \"1.x\",\n \"vtex.css-handles\": \"1.x\",\n \"vtex.device-detector\": \"0.x\",\n \"vtex.list-context\": \"0.x\"\n },\n \"registries\": [\n \"smartcheckout\"\n ],\n \"policies\": [],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_external-seller-example_ea13af33
|
[
{
"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 external-seller-example/package.json from the external-seller-example VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"external-seller-example\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.3.1\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"lint-staged\": \"^10.0.2\",\n \"typescript\": \"^3.7.5\"\n },\n \"dependencies\": {\n \"prettier\": \"^2.1.2\"\n }\n}\n\n```"
}
] |
code_external-seller-example_8f10f933
|
[
{
"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 external-seller-example/manifest.json from the external-seller-example VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"external-seller-example\",\n \"vendor\": \"vtex\",\n \"version\": \"0.1.1\",\n \"title\": \"External Seller Example\",\n \"description\": \"Reference app for External Seller integration\",\n \"mustUpdateAt\": \"2018-01-04\",\n \"categories\": [],\n \"dependencies\": {},\n \"builders\": {\n \"node\": \"6.x\",\n \"docs\": \"0.x\",\n \"graphql\": \"1.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/catalog/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/catalog_system/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/oms/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.vtex.com\",\n \"path\": \"/*\"\n }\n },\n {\n \"name\": \"ShippingAction\"\n },\n {\n \"name\": \"suggestions\"\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_releases_0abc470a
|
[
{
"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 releases/manifest.json from the releases VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"releases\",\n \"vendor\": \"vtex\",\n \"version\": \"1.0.4\",\n \"title\": \"Releases\",\n \"description\": \"Notification central for apps release notes\",\n \"mustUpdateAt\": \"2019-08-02\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.releases-graphql\": \"0.x\",\n \"vtex.styleguide\": \"9.x\"\n },\n \"builders\": {\n \"pages\": \"1.x\",\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n }\n}\n\n```"
}
] |
code_google-geolocation-resolver_5dbbc76f
|
[
{
"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 google-geolocation-resolver/package.json from the google-geolocation-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"google-geolocation-resolver\",\n \"version\": \"0.0.1\",\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^14.6.2\",\n \"@vtex/prettier-config\": \"^0.3.1\",\n \"@vtex/tsconfig\": \"^0.5.0\",\n \"eslint\": \"^7.8.1\",\n \"eslint-config-vtex\": \"^12.8.6\",\n \"husky\": \"^4.2.5\",\n \"lint-staged\": \"^10.2.13\",\n \"prettier\": \"^2.1.1\",\n \"typescript\": \"^4.0.2\"\n }\n}\n\n```"
}
] |
code_google-geolocation-resolver_c32328a2
|
[
{
"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 google-geolocation-resolver/manifest.json from the google-geolocation-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"google-geolocation-resolver\",\n \"version\": \"0.4.0\",\n \"title\": \"Google Geolocation Resolver\",\n \"description\": \"Implements the Geolocation GraphQL interface with the Google Maps API\",\n \"credentialType\": \"absolute\",\n \"builders\": {\n \"node\": \"6.x\",\n \"docs\": \"0.x\"\n },\n \"settingsSchema\": {\n \"title\": \"Google Geolocation Resolver\",\n \"description\": \"Implements the Geolocation GraphQL interface with the Google Maps API\",\n \"type\": \"object\",\n \"properties\": {\n \"apiKey\": {\n \"title\": \"API Key\",\n \"description\": \"API key used to access Google Maps API\",\n \"type\": \"string\"\n }\n }\n },\n \"dependencies\": {\n \"vtex.geolocation-graphql-interface\": \"0.x\",\n \"vtex.messages\": \"1.x\"\n },\n \"policies\": [\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"graphql-query\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"maps.googleapis.com\",\n \"path\": \"/maps/api/*\"\n }\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_is-api-middleware-resolver_5a2b1acc
|
[
{
"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 is-api-middleware-resolver/policies.json from the is-api-middleware-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n[\n {\n \"name\": \"resolve-graphql\",\n \"description\": \"Allows access to resolve a graphql request\",\n \"statements\": [\n {\n \"actions\": [\"post\", \"get\"],\n \"effect\": \"allow\",\n \"resources\": [\n \"vrn:vtex.is-api-middleware-resolver:{{region}}:{{account}}:{{workspace}}:/_v/graphql\"\n ]\n }\n ]\n }\n]\n\n```"
}
] |
code_is-api-middleware-resolver_a76d707c
|
[
{
"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 is-api-middleware-resolver/package.json from the is-api-middleware-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"is-api-middleware-resolver\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n```"
}
] |
code_is-api-middleware-resolver_d426cf92
|
[
{
"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 is-api-middleware-resolver/manifest.json from the is-api-middleware-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"is-api-middleware-resolver\",\n \"version\": \"0.0.1\",\n \"title\": \"Intelligent Search API middleware resolver\",\n \"description\": \"Implementation of the GraphQL schema for the intelligent search middleware.\",\n \"builders\": {\n \"docs\": \"0.x\",\n \"node\": \"6.x\"\n },\n \"dependencies\": {\n \"vtex.is-api-middleware-graphql\": \"0.x\"\n },\n \"policies\": [],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_quickorder_f3c0d39e
|
[
{
"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 quickorder/package.json from the quickorder VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"quickorder\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,json}\\\"\",\n \"test\": \"cd ./node && yarn test\",\n \"lint:locales\": \"intl-equalizer\",\n \"locales:fix\": \"intl-equalizer --fix\",\n \"verify\": \"yarn lint && yarn lint:locales && yarn test\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged && yarn lint:locales && yarn locales:fix\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ],\n \"*.json\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"12.12.21\",\n \"@vtex/intl-equalizer\": \"^2.5.0\",\n \"@vtex/prettier-config\": \"0.1.4\",\n \"eslint\": \"7.12.1\",\n \"eslint-config-vtex\": \"^14.1.1\",\n \"eslint-config-vtex-react\": \"^6.8.3\",\n \"husky\": \"4.2.3\",\n \"lint-staged\": \"10.1.1\",\n \"prettier\": \"2.0.2\",\n \"jest\": \"^27.3.1\",\n \"typescript\": \"3.8.3\"\n },\n \"version\": \"0.5.7\",\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n }\n}\n```"
}
] |
code_quickorder_ee745040
|
[
{
"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 quickorder/manifest.json from the quickorder VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"quickorder\",\n \"version\": \"3.16.3\",\n \"title\": \"Quickorder\",\n \"description\": \"Allow users to add multiple products to the cart at once\",\n \"defaultLocale\": \"en-US\",\n \"builders\": {\n \"messages\": \"1.x\",\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"graphql\": \"1.x\",\n \"node\": \"6.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"scripts\": {\n \"postreleasy\": \"bash lint.sh && vtex publish --verbose\"\n },\n \"credentialType\": \"absolute\",\n \"dependencies\": {\n \"vtex.flex-layout\": \"0.x\",\n \"vtex.rich-text\": \"0.x\",\n \"vtex.checkout\": \"0.x\",\n \"vtex.store\": \"2.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.search-graphql\": \"0.x\",\n \"vtex.checkout-graphql\": \"0.x\",\n \"vtex.apps-graphql\": \"2.x\",\n \"vtex.checkout-resources\": \"0.x\",\n \"vtex.order-manager\": \"0.x\",\n \"vtex.order-items\": \"0.x\",\n \"vtex.pixel-manager\": \"1.x\",\n \"vtex.store-resources\": \"0.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.render-runtime\": \"8.x\"\n },\n \"policies\": [\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"graphql-query\"\n },\n {\n \"name\": \"AcessaTodosCarrinhos\"\n },\n {\n \"name\": \"view-seller\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/seller-register/pvt/sellers\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/catalog_system/pvt/sku/stockkeepingunitbyid/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/checkout/pub/orderForm/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/catalog_system/pub/sku/stockkeepingunitidsbyrefids\"\n }\n }\n ],\n \"settingsSchema\": {\n \"title\": \"Quickorder settings\",\n \"type\": \"object\",\n \"access\": \"public\",\n \"properties\": {\n \"checkoutUrl\": {\n \"title\": \"URL\",\n \"type\": \"string\",\n \"description\": \"Checkout redirect href\",\n \"default\": \"/checkout#/cart\"\n }\n }\n },\n \"billingOptions\": {\n \"termsURL\": \"https://compliance.vtex.com/gdpr/policies/vtex-privacy-policy\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true,\n \"type\": \"free\",\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_skip-link_4b1b3e32
|
[
{
"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 skip-link/package.json from the skip-link VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"CHANGE_ME\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"lint:locales\": \"intl-equalizer\",\n \"test\": \"cd ./react && yarn test\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ],\n \"*.json\": [\n \"prettier --write\"\n ],\n \"messages/*.json\": [\n \"yarn lint:locales\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.5.0\",\n \"@vtex/prettier-config\": \"^0.3.5\",\n \"eslint\": \"^7.14.0\",\n \"eslint-config-vtex\": \"^12.8.11\",\n \"eslint-config-vtex-react\": \"^6.8.3\",\n \"husky\": \"^4.3.0\",\n \"lint-staged\": \"^10.5.1\",\n \"prettier\": \"^2.2.0\",\n \"typescript\": \"^3.9.6\"\n },\n \"version\": \"0.0.0\",\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n }\n}\n```"
}
] |
code_skip-link_c380f89b
|
[
{
"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 skip-link/manifest.json from the skip-link VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"skip-link\",\n \"version\": \"0.0.4\",\n \"title\": \"Skip Link App\",\n \"description\": \"Implements skip link element\",\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\",\n \"store\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.css-handles\": \"1.x\"\n },\n \"registries\": [\n \"smartcheckout\"\n ],\n \"policies\": [],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_search-resolver_51c73fcf
|
[
{
"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 search-resolver/policies.json from the search-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n[\n {\n \"name\": \"resolve-graphql\",\n \"description\": \"Allows access to resolve a graphql request\",\n \"statements\": [\n {\n \"actions\": [\"post\", \"get\"],\n \"effect\": \"allow\",\n \"resources\": [\n \"vrn:vtex.search-resolver:{{region}}:{{account}}:{{workspace}}:/_v/graphql\"\n ]\n }\n ]\n }\n]\n\n```"
}
] |
code_search-resolver_09f696a9
|
[
{
"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 search-resolver/dangerfile.js from the search-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```javascript\n// dangerfile.js\nconst { verify } = require('@vtex/danger')\n\nconst config = {\n // Set to true to enforce keepachangelog rules.\n keepachangelog: {\n changeVersion: false,\n },\n rules: {\n description: ['fail', { minLength: 20 }],\n assignee: 'fail',\n reviewers: 'fail',\n pr_size: ['warn', { additionLimit: 800, deletionLimit: -1 }],\n lock_file: 'warn',\n no_ignored_test: ['fail', { pattern: /test|spec/i }],\n no_debugger: ['fail', { pattern: /\\.[tj]sx?$/i }],\n enforce_graphql_provider: 'off',\n },\n}\n\nverify(config)\n\n```"
}
] |
code_search-resolver_7a4b455c
|
[
{
"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 search-resolver/package.json from the search-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"search-resolver\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"cd ./node && yarn lint\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,json}\\\"\",\n \"test\": \"cd ./node && yarn test\",\n \"verify\": \"yarn lint && yarn test\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\",\n \"pre-push\": \"yarn verify\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ],\n \"*.json\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@types/node\": \"^20.0.0\",\n \"@vtex/danger\": \"^0.2.7\",\n \"@vtex/prettier-config\": \"^0.3.6\",\n \"eslint\": \"^7.16.0\",\n \"eslint-config-vtex\": \"^15.1.0\",\n \"husky\": \"^4.3.6\",\n \"lint-staged\": \"^10.5.3\",\n \"prettier\": \"^2.2.1\",\n \"typescript\": \"5.1.6\"\n }\n}\n\n```"
}
] |
code_search-resolver_7c7bf8db
|
[
{
"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 search-resolver/manifest.json from the search-resolver VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"search-resolver\",\n \"version\": \"1.91.0\",\n \"title\": \"GraphQL resolver for the VTEX store APIs\",\n \"description\": \"GraphQL resolvers for the VTEX API for the catalog and orders.\",\n \"credentialType\": \"absolute\",\n \"builders\": {\n \"node\": \"7.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.messages\": \"1.x\",\n \"vtex.catalog-api-proxy\": \"0.x\",\n \"vtex.search-graphql\": \"0.x\",\n \"vtex.rewriter\": \"1.x\",\n \"vtex.sae-analytics\": \"2.x\",\n \"vtex.intelligent-search-api\": \"0.x\"\n },\n \"settingsSchema\": {\n \"title\": \"Intelligent Search Resolver\",\n \"type\": \"object\",\n \"properties\": {\n \"slugifyLinks\": {\n \"title\": \"Set to slugify links. Uses default catalog slug instead\",\n \"type\": \"boolean\",\n \"default\": false\n },\n \"shouldUseNewPDPEndpoint\": {\n \"title\": \"Feature flag to use the new PDP endpoint\",\n \"type\": \"boolean\",\n \"default\": false\n },\n \"shouldUseNewPLPEndpoint\": {\n \"title\": \"Feature flag to use the new PLP endpoint\",\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n },\n \"policies\": [\n {\n \"name\": \"vtex.messages:translate-messages\"\n },\n {\n \"name\": \"vtex.catalog-api-proxy:catalog-proxy\"\n },\n {\n \"name\": \"vtex.catalog-api-proxy:authenticated-catalog-proxy\"\n },\n {\n \"name\": \"vtex.rewriter:resolve-graphql\"\n },\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"vtex.intelligent-search-api:intelligent-search\"\n },\n {\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/segments/*\"\n },\n \"name\": \"outbound-access\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"search.biggylabs.com.br\",\n \"path\": \"/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/intelligent-search\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercebeta.com.br\",\n \"path\": \"/api/intelligent-search\"\n }\n },\n {\n \"name\": \"vtex.messages:graphql-translate-messages\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_trusted_4092cc9c
|
[
{
"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 trusted/README.md from the trusted VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```markdown\n## trusted\n\n\nThis app and all affiliated services are provided “as is”, without warranty of any kind, either express or implied. Neither the publisher nor its partners, affiliates, employees, or contractors guarantee that this app will meet your requirements, provide uninterrupted use, or operate without delay or without error. Neither the publisher nor its partners, affiliates, employees, or contractors assume any responsibility for any errors and malfunctions within the app and will not provide support or maintenance of any kind.\n \n\nAll provisions and warranties of any kind, express or implied, including but not limited to any guarantees of performance, process integrity, or particular functionalities, are hereby disclaimed and excluded unless otherwise prohibited or restricted by applicable law.\n\n_Developed under EE FPA._\n```"
}
] |
code_trusted_aaeff449
|
[
{
"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 trusted/package.json from the trusted VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"trusted\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\"\n }\n },\n \"lint-staged\": {\n \"*.{ts,js,tsx,jsx}\": [\n \"eslint --fix\",\n \"prettier --write\"\n ],\n \"*.{json,graphql,gql}\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"0.1.4\",\n \"eslint\": \"7.12.1\",\n \"eslint-config-vtex\": \"12.3.2\",\n \"eslint-config-vtex-react\": \"6.3.2\",\n \"husky\": \"4.2.3\",\n \"lint-staged\": \"10.1.1\",\n \"prettier\": \"2.0.2\",\n \"typescript\": \"3.8.3\"\n }\n}\n\n```"
}
] |
code_trusted_c6ee4c17
|
[
{
"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 trusted/manifest.json from the trusted VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"name\": \"trusted-pixel\",\n \"vendor\": \"vtexeurope\",\n \"version\": \"0.1.0\",\n \"title\": \"Trusted\",\n \"description\": \"\",\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.pixel-interfaces\": \"1.x\"\n },\n \"settingsSchema\": {\n \"title\": \"Trusted Settings\",\n \"type\": \"object\",\n \"properties\": {\n \"appKey\": {\n \"title\": \"AppKey\",\n \"description\": \"Trusted's appKey\",\n \"type\": \"string\"\n },\n \"days\": {\n \"title\": \"Days\",\n \"description\": \"The days after you should receive the email\",\n \"type\": \"string\"\n },\n \"defaultAddressState\": {\n \"title\": \"Default Address State\",\n \"description\": \"If an order is to be picked from a store point, it's county state will be this value\",\n \"type\": \"string\"\n }\n }\n },\n \"billingOptions\": {\n \"support\": {\n \"url\": \"https://help-tickets.vtex.com/en/support?app=vtex.trusted-pixel\"\n },\n \"type\": \"free\",\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
code_jivochat_bef131dd
|
[
{
"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 jivochat/manifest.json from the jivochat VTEX app."
},
{
"role": "assistant",
"content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"jivochat\",\n \"version\": \"1.0.4\",\n \"title\": \"JivoChat\",\n \"description\": \"JivoChat is a free communication app for chatting and monitoring visitors via online chat, Facebook messenger, phone and real-time email.\",\n \"builders\": {\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"billingOptions\": {\n \"termsURL\": \"https://compliance.vtex.com/gdpr/policies/vtex-privacy-policy\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"free\": true,\n \"type\": \"free\",\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"dependencies\": {},\n \"settingsSchema\": {\n \"title\": \"JivoChat\",\n \"type\": \"object\",\n \"properties\": {\n \"widgetId\": {\n \"title\": \"Widget ID\",\n \"description\": \"Enter the Widget ID for your account in JivoChat\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```"
}
] |
End of preview. Expand
in Data Studio
No dataset card yet
- Downloads last month
- 24
Size of downloaded dataset files:
76 MB
Size of the auto-converted Parquet files:
18.3 MB
Number of rows:
17,489