id
stringlengths
12
53
messages
listlengths
3
3
code_cy-runner_a3fb60c0
[ { "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 cy-runner/package.json from the cy-runner VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"cy-runner\",\n \"version\": \"2.0.0\",\n \"description\": \"Tool to orchestrate tests on B2B applications\",\n \"main\": \"cy-runner.js\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\",\n \"cy-runner\": \"node cy-runner.js\"\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 \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/vtex-apps/cy-runner.git\"\n },\n \"keywords\": [\n \"cypress\",\n \"e2e\",\n \"automated testing\"\n ],\n \"author\": \"charles.santos@vtex.com.br\",\n \"license\": \"ISC\",\n \"bugs\": {\n \"url\": \"https://github.com/vtex-apps/cy-runner/issues\"\n },\n \"homepage\": \"https://github.com/vtex-apps/cy-runner#readme\",\n \"dependencies\": {\n \"axios\": \"^1.3.4\",\n \"cypress\": \"^9.6.0\",\n \"cypress-file-upload\": \"^5.0.8\",\n \"js-yaml\": \"^4.1.0\",\n \"lodash\": \"^4.17.21\"\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^1.0.0\",\n \"eslint\": \"^7.4.0\",\n \"eslint-config-vtex\": \"^12.7.0\",\n \"eslint-plugin-cypress\": \"^2.12.1\",\n \"husky\": \"^4.2.5\",\n \"lint-staged\": \"^13.1.2\",\n \"prettier\": \"^2.4.0\",\n \"vtex\": \"3.0.0-beta-ci.5\",\n \"xlsx\": \"^0.18.5\"\n }\n}\n\n```" } ]
code_cy-runner_0f068415
[ { "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 cy-runner/manifest.json from the cy-runner VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"cy-runner\",\n \"vendor\": \"vtex\",\n \"version\": \"2.6.0\",\n \"builders\": {},\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_suiteshare_f3485747
[ { "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 suiteshare/manifest.json from the suiteshare VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"suite-share\",\n \"vendor\": \"vtex\",\n \"version\": \"1.0.3\",\n \"title\": \"Suiteshare\",\n \"description\": \"Suiteshare Integration\",\n \"builders\": {\n \"pixel\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {},\n \"settingsSchema\": {\n \"title\": \"Suiteshare\",\n \"type\": \"object\",\n \"properties\": {\n \"siteId\": {\n \"title\": \"Account Id\",\n \"description\": \"Suite Share Account Id\",\n \"type\": \"string\"\n }\n }\n },\n \"billingOptions\": {\n \"type\": \"free\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_external-promotion-provider-middleware_33b19072
[ { "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-promotion-provider-middleware/.versionrc.json from the external-promotion-provider-middleware VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"types\": [\n { \"type\": \"feat\", \"section\": \"Features\" },\n { \"type\": \"fix\", \"section\": \"Bug Fixes\" },\n { \"type\": \"chore\", \"section\": \"Chores\" },\n { \"type\": \"docs\", \"hidden\": true },\n { \"type\": \"style\", \"section\": \"Styles\" },\n { \"type\": \"refactor\", \"section\": \"Refacts\" },\n { \"type\": \"perf\", \"hidden\": true },\n { \"type\": \"test\", \"section\": \"Tests\" },\n { \"type\": \"ci\", \"section\": \"Continuous Integration\" }\n ]\n}\n\n```" } ]
code_external-promotion-provider-middleware_1cc91dfe
[ { "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-promotion-provider-middleware/package.json from the external-promotion-provider-middleware VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"promotion-provider-middleware\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"version\": \"0.24.0\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"minor\": \"HUSKY_SKIP_HOOKS=1 standard-version --release-as minor\",\n \"major\": \"HUSKY_SKIP_HOOKS=1 standard-version --release-as major\",\n \"patch\": \"HUSKY_SKIP_HOOKS=1 standard-version --release-as patch\",\n \"beta\": \"HUSKY_SKIP_HOOKS=1 standard-version --release-as minor --prerelease beta\",\n \"test:node\": \"cd node && yarn test && cd ..\"\n },\n \"husky\": {\n \"hooks\": {\n \"pre-commit\": \"lint-staged\",\n \"commit-msg\": \"commitlint -E HUSKY_GIT_PARAMS\",\n \"prepare-commit-msg\": \"exec < /dev/tty && git cz --hook || true\"\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 \"@commitlint/cli\": \"^12.1.4\",\n \"@commitlint/config-conventional\": \"^12.1.4\",\n \"@types/node\": \"^12.12.21\",\n \"@vtex/prettier-config\": \"^0.3.6\",\n \"commitizen\": \"^4.2.4\",\n \"cz-conventional-changelog\": \"3.3.0\",\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 \"standard-version\": \"^9.3.0\",\n \"typescript\": \"^3.7.5\"\n },\n \"config\": {\n \"commitizen\": {\n \"path\": \"./node_modules/cz-conventional-changelog\"\n }\n }\n}\n\n```" } ]
code_external-promotion-provider-middleware_d452b06a
[ { "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-promotion-provider-middleware/manifest.json from the external-promotion-provider-middleware VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"promotion-provider-middleware\",\n \"vendor\": \"vtex\",\n \"version\": \"0.24.6\",\n \"title\": \"Promotion Provider Middleware\",\n \"description\": \"Promotion provider middleware for external integrations\",\n \"mustUpdateAt\": \"2018-01-04\",\n \"categories\": [],\n \"dependencies\": {},\n \"builders\": {\n \"node\": \"6.x\",\n \"docs\": \"0.x\"\n },\n \"scripts\": {},\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"*\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"AcessaTodosCarrinhos\"\n },\n {\n \"name\": \"SaveOrderFormConfiguration\"\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\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 \"settingsSchema\": {\n \"title\": \"Promotion Provider Middleware\",\n \"type\": \"object\",\n \"properties\": {\n \"externalEndpoint\": {\n \"title\": \"External Endpoint\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_external-promotion-provider-middleware_ba16db27
[ { "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-promotion-provider-middleware/commitlint.config.js from the external-promotion-provider-middleware VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```javascript\nmodule.exports = { extends: ['@commitlint/config-conventional'] }\n\n```" } ]
code_payment-connector-aws-cdk-template_ceeb9688
[ { "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-connector-aws-cdk-template/cdk.json from the payment-connector-aws-cdk-template VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"app\": \"npx ts-node --prefer-ts-exts bin/vtex-connector.ts\",\n \"watch\": {\n \"include\": [\n \"**\"\n ],\n \"exclude\": [\n \"README.md\",\n \"cdk*.json\",\n \"**/*.d.ts\",\n \"**/*.js\",\n \"tsconfig.json\",\n \"package*.json\",\n \"yarn.lock\",\n \"node_modules\",\n \"test\"\n ]\n },\n \"context\": {\n \"@aws-cdk/aws-lambda:recognizeLayerVersion\": true,\n \"@aws-cdk/core:checkSecretUsage\": true,\n \"@aws-cdk/core:target-partitions\": [\n \"aws\",\n \"aws-cn\"\n ],\n \"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver\": true,\n \"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName\": true,\n \"@aws-cdk/aws-ecs:arnFormatIncludesClusterName\": true,\n \"@aws-cdk/aws-iam:minimizePolicies\": true,\n \"@aws-cdk/core:validateSnapshotRemovalPolicy\": true,\n \"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName\": true,\n \"@aws-cdk/aws-s3:createDefaultLoggingPolicy\": true,\n \"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption\": true,\n \"@aws-cdk/aws-apigateway:disableCloudWatchRole\": true,\n \"@aws-cdk/core:enablePartitionLiterals\": true,\n \"@aws-cdk/aws-events:eventsTargetQueueSameAccount\": true,\n \"@aws-cdk/aws-iam:standardizedServicePrincipals\": true,\n \"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker\": true,\n \"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName\": true,\n \"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy\": true,\n \"@aws-cdk/aws-route53-patters:useCertificate\": true,\n \"@aws-cdk/customresources:installLatestAwsSdkDefault\": false,\n \"@aws-cdk/aws-rds:databaseProxyUniqueResourceName\": true,\n \"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup\": true,\n \"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId\": true,\n \"@aws-cdk/aws-ec2:launchTemplateDefaultUserData\": true,\n \"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments\": true,\n \"@aws-cdk/aws-redshift:columnId\": true,\n \"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2\": true\n }\n}\n\n```" } ]
code_payment-connector-aws-cdk-template_22bf8584
[ { "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-connector-aws-cdk-template/README.md from the payment-connector-aws-cdk-template VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Hackathon VTEX Payments - Python Version\n\n## PARTE 1.1 - AWS Access - Console AWS (Via Eventos da AWS)*\n1. Receber event hash da AWS\n2. Acessar https://dashboard.eventengine.run/login e entrar com o event hash\n3. Clicar em Open Console. Bem vindo ao console AWS, aqui você tem acesso a todas as ferramentas e serviços AWS.\n\n'* Essa é uma das forma de obter uma conta AWS com acesso ao console. Mas para seguir os passos seguintes, você poderia usar outras contas AWS.\n\n## PARTE 1.2 - AWS Access - Criar novo usuário AWS para cada membro do time (incluindo para a pessoa que recebeu a conta de evento AWS)\n1. Com o Console AWS aberto, na caixa de Search, procure por IAM e entre na página deste serviço\n2. Clicar em Users no menu da esquerda.\n3. Add user\n4. Depois de entrar um username, selecione \"Provide user access to the AWS Management Console\" e depois \"I want to create an IAM user\".\n5. Defina as regras de password que preferir e clique em next.\n6. Depois, selecione `Attach Policies Directly`\n7. Selecione `AdministratorAccess` e clique next\n8. Revise e finalize a criação do usuário.\n9. Depois de finalizado, clique em \"Return to users list\" e volte à página de listagem de usuarios, clique no usuário recém criado e clique na aba `security credentials``\n10. Clique em `create access key` e selecione `Command Line Interface (CLI)`\n11. Anote `Access key` e o `Secret access key` em um lugar seguro pois será usado para que este usuário tenha acesso via AWS CLI e o próprio CDK\n\n## PARTE 1.3 - AWS Access - Configurando AWS CLI\n1. Instale o npm (14.15.0 or later) e python (Python 3.7 or later incluindo pip e virtualenv)\n2. Instale o [aws cli](https://docs.aws.amazon.com/pt_br/cli/latest/userguide/getting-started-install.html)\n3. Execute `aws configure` via terminal e entre com os valores de `Access key` e o `Secret access key` que você obteve no passo anterior\n4. Rode um comando simples como `aws s3 ls` sem que erros sejam mostrados para testar o CLI\n\n## PARTE 2.1 - Rodando CDK - Instalação\n1. Instale o docker desktop e/ou garanta que o Docker Daemon esteja rodando (uma alternativa para o docker desktop em sistemas macOS é o [colima](https://github.com/abiosoft/colima/)). Caso não consiga ter o docker daemon rodando, é possível utilizar Lambda Layers: solicite ajuda da AWS.\n2. Rode o comando `npm install -g aws-cdk`\n\n## PARTE 2.2 - Rodando CDK - Executando o modelo\n1. Na pasta raiz deste projeto clonado, rode o comando `npm install` para buildar o código\n2. Faça um `cdk bootstrap`. Todo o toolkit aws necessário será providenciado na cloud AWS\n3. Faça um `cdk deploy`\n5. Acesse o console e verifique os serviços que subiram via cloudformation\n6. Use `cdk watch` para acionar o deploy automaticamente ao salvar mudanças nos seus arquivos.\n\n## DICAS VALIOSAS\n### VIDEO DE TREINAMENTO DE CDK AWS - Assista o vídeo antes de começar o desenvolvimento: \n### CDK – Para se familiarizar com o CDK, execute o máximo que der o workshop em https://cdkworkshop.com/ \n### CLOUD9 – Usar a IDE da AWS pode facilitar sua vida (nao precisaria instalar aws cli e nem aws cdk e nem rodar nada local na sua máquina e todo o deploy de infraestrutura é muito mais rápido)\n### CODE WHISPERER – Quer adicionar AI na sua IDE que vai facilitar muito escrever uma stack no CDK? Utilize o code whisperer! Mais informações: https://medium.com/@neonforge/amazon-codewhisperer-how-to-install-ai-code-assistant-for-visual-studio-code-and-use-it-for-free-2580057d48a0\n### CONTAS AWS – A partir da conta principal recebida pelo líder do time, criem contas para os demais participantes COM acesso ao console!\n### SNIPPETS - Dentro dos Lambdas no CDK, existem snippets de escrita/leitura em DynamoDB e escrita/leitura no SQS para facilitar sua vida\n### ARQUITETURA – Lembre-se que a arquitetura proposta é só uma sugestão simplificada. Modificações pensando em segurança, alta disponibilidade e escalabilidade podem dar pontos extras\n![image](https://github.com/vtex-apps/payment-connector-aws-cdk-template/assets/32963277/b7c603c9-6f4c-4d43-b700-49b6c1b9aef1)\n\n* Work hard. Have fun. Make history.\n\n```" } ]
code_payment-connector-aws-cdk-template_3562ef70
[ { "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-connector-aws-cdk-template/package.json from the payment-connector-aws-cdk-template VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"vtex-connector\",\n \"version\": \"0.1.0\",\n \"bin\": {\n \"vtex-connector\": \"bin/vtex-connector.js\"\n },\n \"scripts\": {\n \"build\": \"tsc\",\n \"watch\": \"tsc -w\",\n \"test\": \"jest\",\n \"cdk\": \"cdk\"\n },\n \"devDependencies\": {\n \"@types/jest\": \"^29.4.0\",\n \"@types/node\": \"18.14.6\",\n \"aws-cdk\": \"2.77.0\",\n \"jest\": \"^29.5.0\",\n \"ts-jest\": \"^29.0.5\",\n \"ts-node\": \"^10.9.1\",\n \"typescript\": \"~4.9.5\"\n },\n \"dependencies\": {\n \"@aws-cdk/aws-cloudfront\": \"1.69.0\",\n \"@aws-cdk/aws-iam\": \"1.69.0\",\n \"@aws-cdk/aws-s3-deployment\": \"1.69.0\",\n \"aws-cdk-lib\": \"2.77.0\",\n \"constructs\": \"^10.0.0\",\n \"source-map-support\": \"^0.5.21\"\n }\n}\n\n```" } ]
code_checkout-fullstory_cb13b602
[ { "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 checkout-fullstory/manifest.json from the checkout-fullstory VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"checkout-fullstory\",\n \"version\": \"0.1.1\",\n \"title\": \"Checkout IO Fullstory\",\n \"description\": \"Checkout IO FullStory\",\n \"builders\": {\n \"docs\": \"0.x\",\n \"pixel\": \"0.x\"\n },\n \"dependencies\": {},\n \"policies\": [],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\",\n \"mustUpdateAt\": \"2020-10-30\"\n}\n\n```" } ]
code_product-gifts_f7c48fe7
[ { "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-gifts/package.json from the product-gifts VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-gifts\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"cd ./react && yarn lint\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,json}\\\"\",\n \"test\": \"cd ./react && 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\": [\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\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n },\n \"version\": \"0.0.0\",\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n }\n}\n\n```" } ]
code_product-gifts_b0a6b1b8
[ { "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-gifts/manifest.json from the product-gifts VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"product-gifts\",\n \"version\": \"0.4.0\",\n \"title\": \"Product Gifts\",\n \"description\": \"VTEX Product Gifts\",\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"docs\": \"0.x\",\n \"messages\": \"1.x\"\n },\n \"dependencies\": {\n \"vtex.product-context\": \"0.x\",\n \"vtex.search-graphql\": \"0.x\",\n \"vtex.native-types\": \"0.x\",\n \"vtex.store-image\": \"0.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.responsive-values\": \"0.x\",\n \"vtex.flex-layout\": \"0.x\",\n \"vtex.rich-text\": \"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_store-theme_3fd3402f
[ { "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-theme/manifest.json from the store-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"store-theme\",\n \"version\": \"5.2.0\",\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.reviews-and-ratings\": \"3.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_cybersource-fingerprint_d973b517
[ { "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-fingerprint/manifest.json from the cybersource-fingerprint VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"cybersource-fingerprint\",\n \"vendor\": \"vtex\",\n \"version\": \"1.0.2\",\n \"title\": \"CyberSource Fingerprint\",\n \"description\": \"\",\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\": \"CyberSource Fingerprint\",\n \"type\": \"object\",\n \"properties\": {\n \"orgId\": {\n \"title\": \"Org ID\",\n \"description\": \"To get this value, contact Braspag\",\n \"type\": \"string\"\n },\n \"merchantId\": {\n \"title\": \"Merchant ID\",\n \"description\": \"To get this value, contact Braspag\",\n \"type\": \"string\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_checkout-identification_ae3bc87c
[ { "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 checkout-identification/package.json from the checkout-identification VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"checkout-identification\",\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 \"@types/node\": \"^13.7.7\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.2.1\",\n \"eslint-config-vtex-react\": \"^6.2.1\",\n \"husky\": \"^4.2.3\",\n \"lint-staged\": \"^10.0.8\",\n \"prettier\": \"^1.19.1\",\n \"react\": \"^16.13.0\",\n \"typescript\": \"^3.8.3\"\n },\n \"version\": \"0.0.0\"\n}\n\n```" } ]
code_checkout-identification_5a4d9925
[ { "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 checkout-identification/manifest.json from the checkout-identification VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"checkout-identification\",\n \"version\": \"0.2.1\",\n \"title\": \"Checkout Identification module\",\n \"description\": \"\",\n \"registries\": [\n \"smartcheckout\"\n ],\n \"builders\": {\n \"docs\": \"0.x\",\n \"messages\": \"1.x\",\n \"react\": \"3.x\",\n \"store\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.checkout-graphql\": \"0.x\",\n \"vtex.checkout-resources\": \"0.x\",\n \"vtex.order-profile\": \"0.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.store-components\": \"3.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_KI-627261_24af22b6
[ { "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-627261/README.md from the KI-627261 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# [KI-627261] Partial scheduled delivery window selection for the same SLA affecting the purchase flow\n\nThis script solves the KI https://vtexhelp.zendesk.com/agent/tickets/627261. \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-627261/commits?author=germanBonacchi\" title=\"Code\">💻</a></td>\n <td align=\"center\"><a href=\"https://github.com/vtexDavidev\"><img src=\"https://avatars.githubusercontent.com/u/89089657?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>David Leal Peláez</b></sub></a><br /><a href=\"https://github.com/vtex-apps/KI-627261/commits?author=vtexDavidev\" title=\"Code\">💻</a></td>\n </tr>\n</table>\n```" } ]
code_KI-627261_98a30ac6
[ { "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-627261/KI-627261.js from the KI-627261 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```javascript\nconst changeCalendars = () => {\n const calendars = $(\".vtex-omnishipping-1-x-dateLink\").toArray();\n \n const sleep = async seconds => new Promise(resolve => {\n setTimeout(resolve, seconds)\n })\n \n const callSelectedDay = async (index, calendar) =>{\n $(calendar).click();\n await sleep(100)\n $(calendar).parents(\".react-datepicker-wrapper\").siblings(\".react-datepicker-popper\").find(\".react-datepicker_day:not(.react-datepicker_day--disabled)\").first().click()\n }\n \n const validation = async () => { \n if (calendars.length) {\n $(calendars).each(callSelectedDay)\n }\n };\n \n $(calendars.shift()).on(\"click\", async()=>{\n await sleep(100);\n $(\".react-datepicker__day\").on(\"click\", validation);\n });\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 changeCalendars()\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 previusSelectedAddress = selectedAddresses;\n changeCalendars()\n } else {\n console.log(\"no cambio la direcciones\");\n }\n });\n });\n```" } ]
code_doc-prop-component_7d2924ed
[ { "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 doc-prop-component/manifest.json from the doc-prop-component VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"doc-prop-component\",\n \"version\": \"0.0.4\",\n \"title\": \"Doc Prop Component\",\n \"description\": \"Countdown component\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"graphql\": \"1.x\",\n \"messages\": \"1.x\",\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"node\": \"6.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 },\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.giphy.com\",\n \"path\": \"*\"\n }\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_shipping-calculator_0ddabd4b
[ { "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 shipping-calculator/package.json from the shipping-calculator VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"shipping-calculator\",\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\": \"^1.19.1\",\n \"react\": \"^16.12.0\",\n \"typescript\": \"^3.7.5\"\n }\n}\n```" } ]
code_shipping-calculator_59bcb225
[ { "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 shipping-calculator/manifest.json from the shipping-calculator VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"shipping-calculator\",\n \"version\": \"0.13.0\",\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.address-context\": \"0.x\",\n \"vtex.checkout-components\": \"0.x\",\n \"vtex.checkout-shipping\": \"0.x\",\n \"vtex.country-codes\": \"2.x\",\n \"vtex.formatted-price\": \"0.x\",\n \"vtex.native-types\": \"0.x\",\n \"vtex.order-manager\": \"0.x\",\n \"vtex.order-shipping\": \"0.x\",\n \"vtex.place-components\": \"0.x\",\n \"vtex.shipping-estimate-translator\": \"2.x\",\n \"vtex.styleguide\": \"9.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_course-template_80a4ef5c
[ { "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 course-template/manifest.json from the course-template VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"course-template\",\n \"vendor\": \"vtex\",\n \"version\": \"0.0.1\",\n \"title\": \"Course Example\",\n \"description\": \"Reference app for VTEX Courses using the Course Builder\",\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_release-notes_802e53e0
[ { "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 release-notes/manifest.json from the release-notes VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"io-release-notes\",\n \"version\": \"0.28.2\",\n \"title\": \"VTEX IO Release Notes\",\n \"description\": \"VTEX IO weekly release notes\",\n \"builders\": {\n \"docs\": \"0.x\"\n },\n \"categories\": [],\n \"registries\": [\n \"smartcheckout\"\n ],\n \"settingsSchema\": {},\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_pleisty-integration_5f522c93
[ { "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 pleisty-integration/README.md from the pleisty-integration VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Pleisty integration\n\n\n### FstudioQA\n- un bloc generic, care poate fi utilizat pentru in toate locurile unde exista recomandari obisnuite:\n Testing01 - cu hash: W_9cdd23ebded8f5cca0c08796669b29b9\n\n- un bloc Footer Hero pentru a simula istoricul + recomandarile la fiecare produs din istoric:\n FooterHero Testing - cu hash: W_0cdc2f51f1677778efbdaf55de1d0814\n\n```" } ]
code_pleisty-integration_626017b8
[ { "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 pleisty-integration/package.json from the pleisty-integration VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"YOURAPPNAME\",\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\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.1.4\",\n \"eslint\": \"^6.8.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 \"dependencies\": {\n \"uuid\": \"^8.3.0\"\n }\n}\n\n```" } ]
code_pleisty-integration_beff3749
[ { "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 pleisty-integration/manifest.json from the pleisty-integration VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"fstudio\",\n \"name\": \"pleisty-integration\",\n \"version\": \"0.1.9\",\n \"title\": \"Pleisty Integration\",\n \"description\": \"Pleisty Integration\",\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"pixel\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.format-currency\": \"0.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.slider-layout\": \"0.x\",\n \"vtex.pixel-interfaces\": \"1.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_search-segment-resolver_a83a88e3
[ { "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-segment-resolver/policies.json from the search-segment-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-segment-resolver:{{region}}:{{account}}:{{workspace}}:/_v/graphql\"\n ]\n }\n ]\n }\n]\n\n```" } ]
code_search-segment-resolver_a89c6e73
[ { "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-segment-resolver/README.md from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# search-segment-resolver\n\nThe `vtex.search-segment-resolver` is a boilerplate that you can use for you own implementation of the segment search (TODO: add the segment documentation link).\n\n## Usage\n\n1. Fork this project.\n2. Change the `vendor` in the `manifest.json` file.\n3. Change the `searchSegment` function in the `/node/resolver/segmentSearch.ts` file. It will receive the `userEmail` as argument and must return an array of facets. Exanoke:\n\n ```javascript\n export const queries = {\n searchSegment: async (_: unknown, args: SearchSegmentInput, __: Context) => {\n const { userEmail } = args\n\n switch (userEmail) {\n case 'myclient@shoes.com':\n return [{ key: 'category-1', value: 'shoes' }]\n\n case 'myclient@shirts.com':\n return [{ key: 'category-1', value: 'shirt' }]\n\n case 'myclient@hats.com':\n return [{ key: 'category-1', value: 'hats' }]\n\n default:\n return []\n }\n },\n }\n ```\n 3.5 If you want to call an external API, you can add a new client to the `node/clients` diredtory.\n4. Link/install the app on your workspace.\n```" } ]
code_search-segment-resolver_5dbbe02c
[ { "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-segment-resolver/package.json from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"search-segment-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_search-segment-resolver_833ec674
[ { "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-segment-resolver/manifest.json from the search-segment-resolver VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"search-segment-resolver\",\n \"version\": \"0.1.4\",\n \"title\": \"Search Segment Resolver\",\n \"description\": \"Implementation of the GraphQL schema for search segment API.\",\n \"builders\": {\n \"docs\": \"0.x\",\n \"node\": \"6.x\"\n },\n \"dependencies\": {\n \"vtex.messages\": \"1.x\",\n \"vtex.search-segment-graphql\": \"0.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.search-session\": \"0.x\"\n },\n \"policies\": [],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_store-messages_c0e4fa6e
[ { "role": "system", "content": "You are an expert VTEX IO developer. You specialize in building VTEX Store Framework apps, React components, GraphQL APIs, and Node.js services for e-commerce platforms." }, { "role": "user", "content": "Show me the implementation of store-messages/manifest.json from the store-messages 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\": \"store-messages\",\n \"version\": \"0.7.0\",\n \"title\": \"Store Messages\",\n \"description\": \"Messages from VTEX's Store\",\n \"builders\": {\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n }\n}\n\n```" } ]
code_b2b-cnae_98c06d2c
[ { "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-cnae/package.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"b2b-cnae\",\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 \"@types/node\": \"12.12.21\",\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\": \"1.19.1\",\n \"typescript\": \"3.7.5\"\n }\n}\n```" } ]
code_b2b-cnae_a0bfdfc3
[ { "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-cnae/manifest.json from the b2b-cnae VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"b2b-cnae\",\n \"vendor\": \"vtex\",\n \"version\": \"1.1.0\",\n \"title\": \"CNAE App\",\n \"description\": \"\",\n \"mustUpdateAt\": \"2022-08-28\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\"\n },\n \"policies\": [\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"update-app-settings\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"gateway.apiserpro.serpro.gov.br\",\n \"path\": \"*\"\n }\n }\n ],\n \"builders\": {\n \"react\": \"3.x\",\n \"graphql\": \"1.x\",\n \"node\": \"4.x\",\n \"messages\": \"1.x\",\n \"admin\": \"0.x\",\n \"docs\": \"0.x\"\n },\n \"settingsSchema\": {\n \"title\": \"CNAE Configuration\",\n \"type\": \"object\",\n \"properties\": {\n \"login\": {\n \"type\": \"string\",\n \"title\": \"SERPRO Login\",\n \"description\": \"Your login for the SERPRO service\"\n },\n \"password\": {\n \"type\": \"string\",\n \"title\": \"SERPRO Password\",\n \"description\": \"Your password for the SERPRO service\"\n },\n \"mandatoryForCompany\": {\n \"type\": \"boolean\",\n \"title\": \"Is Mandatory for companies?\",\n \"description\": \"Select if CNAE information is mandatory for companies\"\n },\n \"beginOfAcceptedRange\": {\n \"type\": \"string\",\n \"title\": \"Begin of accepted CNAE range\",\n \"description\": \"Begin of accepted CNAE range\"\n },\n \"tradePolicyId\": {\n \"type\": \"string\",\n \"title\": \"Trade policy id\",\n \"description\": \"Id of the trade policy to be aplied to the customers\"\n },\n \"token\": {\n \"type\": \"string\",\n \"title\": \"SERPRO Authenticated token\",\n \"description\": \"Token of Authentication after service return\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_shop-review-interfaces_77b9d151
[ { "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 shop-review-interfaces/package.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"shop-review-interfaces\",\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.1\",\n \"eslint\": \"7.12.1\",\n \"eslint-config-vtex\": \"^12.7.0\",\n \"eslint-config-vtex-react\": \"^6.7.0\",\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_shop-review-interfaces_9ea7296d
[ { "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 shop-review-interfaces/manifest.json from the shop-review-interfaces VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"shop-review-interfaces\",\n \"version\": \"0.3.1\",\n \"title\": \"Shop Review Interfaces\",\n \"description\": \"Interfaces for a merchant review app\",\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}\n\n```" } ]
code_carousel_427375f2
[ { "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 carousel/package.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"carousel\",\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.1.3\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.3.1\",\n \"eslint-config-vtex-react\": \"^6.3.1\",\n \"husky\": \"^4.2.3\",\n \"lint-staged\": \"^10.1.0\",\n \"prettier\": \"^2.0.2\",\n \"typescript\": \"^3.8.3\"\n }\n}\n\n```" } ]
code_carousel_2dc97f5f
[ { "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 carousel/manifest.json from the carousel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"carousel\",\n \"version\": \"2.12.2\",\n \"title\": \"Carousel\",\n \"description\": \"Carousel Component\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\",\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.store-components\": \"3.x\",\n \"vtex.slider\": \"0.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.device-detector\": \"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_product-price_3a7d6f0f
[ { "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-price/package.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-price\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --quiet --fix --ext ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,tsx,js,jsx,json}\\\"\",\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 \"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/intl-equalizer\": \"^2.3.0\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"@vtex/tsconfig\": \"^0.4.4\",\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 \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n },\n \"version\": \"0.0.0\",\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n }\n}\n```" } ]
code_product-price_d698bcb8
[ { "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-price/manifest.json from the product-price VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"product-price\",\n \"version\": \"1.33.0\",\n \"title\": \"VTEX Product Price\",\n \"description\": \"Components used to show everything price related in the context of the product\",\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.native-types\": \"0.x\",\n \"vtex.product-context\": \"0.x\",\n \"vtex.format-currency\": \"0.x\",\n \"vtex.css-handles\": \"1.x\",\n \"vtex.product-summary-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_physical-payments-sdk_58d2f0eb
[ { "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 physical-payments-sdk/README.md from the physical-payments-sdk VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Documentação técnica de integração com o VTEX inStore\n\n## Overview\n\nO fluxo de venda do inStore tem como um dos atores principais o app de pagamento. Esse app é independente do inStore, porém é necessário para que a compra seja finalizada. Pedidos de pagamento são enviados ao app pelo inStore e após a finalização do pagamento o app de pagamento deve responder ao inStore. Assim, completando o fluxo de compra.\n\nUm protocolo de comunicação foi definido para formalizar essa comunicação entre o inStore e o app de pagamento. Esse protocolo define:\n- O que deve ser enviado\n- O que deve ser retornado\n- Qual o meio de comunicação a ser utilizado\n\n![arquitetura](https://github.com/vtex-apps/physical-payments-sdk/blob/main/image.png)\n\nAlém do protocolo, um SDK foi desenvolvido que implementa este protocolo e pode ser utilizado para abstrair parte dos desafios técnicos de implementação do protocolo.\n\n## SDK\n\nO SDK foi desenvolvido com o foco em Android nativo. O SDK disponibiliza:\n- Classes que representam requisições de pagamento/estorno\n- Classes que representam respostas de pagamento/estorno\n- Classe abstrata que auxilia a implementação do mecanismo de comunicação.\n\n### Deep Linking\n\nO mecanismo utilizado para comunicação é o [Android Deep Link](https://developer.android.com/training/app-links) através de [Android intents](https://developer.android.com/reference/android/content/Intent). É preciso definir uma Android Activity que receba intents específicos com o scheme do Android para receber requisições de pagamento. Da mesma forma, é preciso criar intents e iniciar atividades com eles para enviar respostas ao inStore.\n\n## Configuração Inicial\n\n### Integração com SDK\n\nAdicionar a dependência do SDK no projeto Android. Por exemplo, caso seu projeto utiliza gradle, adicione dentro da tag de _dependencies_ a seguinte linha:\n\n```gradle\ndependencies {\n ...\n implementation files('<path>/VTEXPaymentSDK_0.0.1.aar')\n ...\n}\n```\n\n### Android Manifest\n\nAdicione ao AndroidManifest.xml dentro da tag da atividade, que irá realizar o processamento de requisições de pagamento, um bloco de `<intent-filter>` para que o Android disponibilize a comunicação entre aplicativos.\n\n```xml\n<activity\n android:name=\"<PaymentActivity>\">\n ...\n <intent-filter>\n <action android:name=\"android.intent.action.VIEW\" />\n <category android:name=\"android.intent.category.DEFAULT\" />\n <category android:name=\"android.intent.category.BROWSABLE\" />\n <data android:scheme=\"<scheme>\" android:host=\"payment\" />\n <data android:scheme=\"<scheme>\" android:host=\"payment-reversal\" />\n </intent-filter>\n ... \n</activity>\n```\n\n> O campo `<PaymentActivity>` representa o nome da atividade que irá processar as requisições de pagamento utilizando os módulos disponíveis no SDK.\n\n> O campo `<scheme>` representa a string definindo o scheme a ser configurado no conector do gateway. Por exemplo, para o app do VTEX Payment é utilizado `vtex-payment` como scheme resultando em uris como `vtex-payment://payment/`.\n\n## Processamento de Pagamentos e Estorno\n\nExistem duas formas de ouvir e processar os pagamentos e estornos vindo do inStore. A forma mais simples é fazendo com que a sua atividade, que irá processar os pagamentos, extenda da classe `PaymentActivity` do SDK.\n\n### Extends PaymentActivity\n\n```java\nimport vtex.payment.sdk.PaymentActivity;\nimport vtex.payment.sdk.dto.input.PaymentRequest;\nimport vtex.payment.sdk.dto.input.PaymentReversalRequest;\n\npublic class ExamplePaymentActivity extends PaymentActivity {\n\n @Override\n public void onPaymentRequest(PaymentRequest paymentRequest) {\n // handling\n }\n\n @Override\n public void onPaymentReversalRequest(PaymentReversalRequest paymentReversalRequest) {\n // handling\n }\n}\n```\n\n> No exemplo acima, os métodos `onPaymentRequest` e o `onPaymentReversalRequest` são os responsáveis por lidar com requisições de pagamento e estorno respectivamente.\n\n> **Atenção**: A classe `ExamplePaymentActivity` deve ser a classe utilizada no AndroidManifest para adicionar os `<intent-filters>`.\n\n### Implementando um IntentProcessor\n\nCaso não seja possível utilizar a classe `PaymentActivity`, ou necessite de uma activity customizada, é possível implementar um módulo interno chamado `IntentProcessor`. A classe contém dois métodos similares aos vistos acima para o `PaymentActivity`. \n\n```java\nprivate class ActivityIntentProcessor extends IntentProcessor {\n\n @Override\n protected void onPaymentRequestProcessed(PaymentRequest paymentRequest) {\n // handling\n }\n\n @Override\n protected void onPaymentRequestReversalProcessed(\n PaymentReversalRequest paymentReversalRequest) {\n // handling\n }\n}\n```\n\nOs métodos `onPaymentRequestProcessed` e o `onPaymentRequestReversalProcessed` são os responsáveis por lidar com requisições de pagamento e estorno respectivamente.\n\n> **Atenção**: ao utilizar o `IntentProcessor` é preciso vincular o objeto manualmente ao `Android Life cycle`. A classe contém um método chamado `processIntent` que deve ser chamado tanto no ciclo de `onCreate` quanto no ciclo de `onNewIntent` da atividade. Exemplo de implementação:\n\n```java\n@Override\nprotected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n ...\n Intent intent = getIntent();\n activityIntentProcessor.processIntent(intent);\n}\n\n@Override\npublic void onNewIntent(Intent intent) {\n super.onNewIntent(intent)\n setIntent(intent);\n ...\n activityIntentProcessor.processIntent(intent);\n}\n```\n\n> No exemplo acima, `activityIntentProcessor` é um objeto instanciado da classe `IntentProcessor`.\n\n\n# Data Transfer Objects (DTO)\n\n## Entrada / Requisições\n\nExistem duas classes que representam requisições de entradas com seus respectivos dados: `PaymentRequest` e `PaymentReversalRequest`.\n\nOs campos dentro dessas classes podem ser acessados através de `getters` ou se preferir através do método `toJSONObject` que transforma a classe em um `JSONObject`.\n\nOs campos acessíveis através de getters são os campos obrigatórios e determinados como necessários pelo protocolo de comunicação. Porém, é possível que sua integração demande de outros campos que o inStore pode passar a enviar.\n\nTodo dado enviado pelo inStore que não está contemplado pelo protocolo de comunicação será armazenado no campo `customFields` o qual é acessível por um getter como também pelo método `toJSONObject`.\n\n## Saída / Respostas de Sucesso\n\nExistem duas classes que representam respostas de sucesso no SDK: `PaymentResponse` e `PaymentReversalResponse`. Essas classes necessitam em seu construtor de um objeto do tipo `PaymentPayload` e `PaymentReversalPayload` respectivamente.\n\nDois construtores estão disponíveis para as classes do tipo \"payload\". Um construtor vazio, para ser utilizado em conjunto com os setters definidos na classe e um construtor que recebe um `JSONObject`, que extrai os dados do objeto passado.\n\n> **Atenção**: Ao utilizar o construtor com `JSONObject` é preciso ter cuidado para que ao menos todos os campos obrigatórios estejam presentes no `JSONObject` ou uma exceção será lançada. __Campos extras passados através desse construtor são ignorados__.\n\nAmbas as classes também contém um campo `customFields` que permite que dados, além daqueles definidos no protocolo, sejam enviados para o inStore. O método `addCustomField(String key, String value)` foi criado para facilitar a adição desses campos extras.\n\n## Saída / Erros\n\nEm caso de erro existem duas classes que representam respostas de erro no SDK: `GenericPaymentErrorResponse` e `GenericPaymentReversalErrorResponse`. Essas classes recebem um `JSONObject` em seu construtor. \n\n> O protocolo definido para mensagens de erro ainda é genérico e está em processo de definição.\n\nPor convenção utilizados o seguintes campos dentro do payload de erro: \n- **error**: mensagem de erro\n- **reason**: mais detalhes do erro, motivo ou fonte do erro\n- **responsecode**: código do erro\n\n## Detalhamento dos atributos\n\n### Payment Request (Pagamento)\n\n`PaymentRequest.java`\n| Atributo | Tipo | Exemplo | Descrição | \n| ------------------------ |:--------------: | :------------------------------: | ----------------------------- |\n| installmentsInterestRate | String | 0.05 | Taxa de juros de parcelamento |\n| installments | String | 2 | Número de parcelas | \n| merchantName | String | lojaABC | Nome da conta do lojista na VTEX |\n| paymentType | String | credit | Tipo do pagamento: credit, debit |\n| amount | String | 77920 | Valor do pagamento em centavos. R$ 779,20 |\n| paymentId | String | JE3IACFDPWMV1RLTSEILFDMMWIIAZDY1 | Identificador único do pagamento na VTEX |\n| transactionId | String | ZAIBI9KTEOTFXBBXXBXONRK4GKWS4KRK | Identificador único da transação na VTEX |\n| customFields | JSONObject | { key: value } | Objeto chave/valor que permite qualquer campo customizável da integração |\n\n### Payment Reversal Request (Reembolso)\n\n`PaymentReversalRequest.java`\n| Atributo | Tipo | Exemplo | Descrição | \n| --------------- |:--------------: | :-------------------------------: | ----------------------------- |\n| paymentId | String | JE3IACFDPWMV1RLTSEILFDMMWIIAZDY1 | Identificador único do pagamento na VTEX |\n| transactionId | String | ZAIBI9KTEOTFXBBXXBXONRK4GKWS4KRK | Identificador único da transação na VTEX |\n| value | String | 77920 | Valor do reembolso em centavos. R$ 779,20 |\n| tid | String | uovdjptiak9hvnwyk9qx | Identificador único do pagamento do adquirente |\n| customFields | JSONObject | { key: value } | Objeto chave/valor que permite qualquer campo customizável da integração |\n\n### Payment Payload (Resposta do Pagamento)\n> O PaymentResponse Encapsula o DTO `PaymentPayload`\n\n`PaymentPayload.java`\n| Atributo | Tipo | Obrigatório | Exemplo | Descrição | \n| --------------- |:--------------: | :---------: | :------------------------------: | ----------------------------- |\n| paymentId | String | Sim | JE3IACFDPWMV1RLTSEILFDMMWIIAZDY1 | Identificador único do pagamento na VTEX |\n| transactionId | String | Sim | ZAIBI9KTEOTFXBBXXBXONRK4GKWS4KRK | Identificador único da transação na VTEX |\n| cardBrandName | String | Sim | visa | Nome da bandeira do cartão |\n| firstDigits | String | Sim | 1234 | Primeiros dígitos do cartão |\n| lastDigits | String | Sim | 4321 | Últimos 4 dígitos do cartão |\n| nsu | String | Sim | 066319694308 | Número Sequencial único do pagamento na adquirência |\n| tid | String | Sim | uovdjptiak9hvnwyk9qx | Identificador único do pagamento do adquirente |\n| authorizationId | String | Sim | YSDLKYW731QZ | Identificador da authorização do pagamento na adquirência |\n| customFields | JSONObject | Não | { key: value } | Objeto chave/valor que permite qualquer campo customizável da integração |\n\n### Payment Reversal Payload (Resposta do Reembolso)\n> O PaymentReversalResponse Encapsula o DTO `PaymentReversalPayload`\n\n`PaymentReversalPayload.java`\n| Atributo | Tipo | Obrigatório | Exemplo | Descrição | \n| --------------- |:--------------: | :---------: | :-------------------------------: | ----------------------------- |\n| paymentId | String | Sim | JE3IACFDPWMV1RLTSEILFDMMWIIAZDY1 | Identificador único do pagamento na VTEX |\n| transactionId | String | Sim | ZAIBI9KTEOTFXBBXXBXONRK4GKWS4KRK | Identificador único da transação na VTEX |\n| tid | String | Sim | uovdjptiak9hvnwyk9qx | Identificador único do pagamento do adquirente |\n| customFields | JSONObject | Não | { key: value } | Objeto chave/valor que permite qualquer campo customizável da integração |\n\n# Enviando resposta ao inStore\n\nO envio de respostas ao inStore ocorre pelo início de uma nova atividade utilizando um intent programado para envio de dados. Por exemplo, pode-se utilizar o método `startActivity` contido dentro do contexto de uma atividade Android. \n\nAs seguintes classes `DTO` de saída fazem extends da classe [Android Intent](https://developer.android.com/reference/android/content/Intent):\n- PaymentResponse\n- PaymentReversalResponse\n- GenericPaymentErrorResponse\n- GenericPaymentReversalErrorResponse\n\nIsso permite que essas classes possam ser diretamente utilizadas com um método que inicia uma atividade.\n\nExemplo de código contendo envio de resposta ao inStore:\n\n```java\nPaymentPayload paymentPayload = new PaymentPayload(resposta);\nPaymentResponse paymentResponse = new PaymentResponse(paymentPayload);\nstartActivity(paymentResponse);\n```\n\n# Testando sua aplicação\n\nEsse projeto seed permite o desenvolvedor olhar um exemplo do SDK implementando o protocolo de comunicação. Caso queira testar sua aplicação utilizando a atividade qu simular o comportamento do inStore nesse projeto basta fazer o seguinte:\n\nProcure a classe `MockUtils.java` e dentro dela o método `getMockPaymentRequestIntent`. Na primeira linha do método:\n\n``` java\n public static Intent getMockPaymentRequestIntent() {\n Uri.Builder builder = Uri.parse(\"sdk://payment\").buildUpon();\n ...\n }\n```\n\nTroque o trecho inicial da URI de \"sdk\" para o scheme utilizado em sua aplicação. Isso irá permitir que a atividade mock do inStore envie requisições de pagamento mock diretamente para o app de sua escolha. Caso queira testar requisições de estorno faça o mesmo com o método `getMockPaymentReversalRequestIntent`.\n\n```" } ]
code_checkout_f1e408de
[ { "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 checkout/package.json from the checkout VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"checkout\",\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 \"@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 \"eslint-config-vtex-react\": \"^6.1.1\",\n \"husky\": \"^4.2.3\",\n \"lint-staged\": \"^10.0.8\",\n \"prettier\": \"^1.19.1\",\n \"react\": \"^16.13.0\",\n \"typescript\": \"^3.9.5\"\n }\n}\n\n```" } ]
code_checkout_14efe4a3
[ { "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 checkout/manifest.json from the checkout VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"checkout\",\n \"version\": \"3.0.0\",\n \"title\": \"Checkout UI\",\n \"description\": \"Checkout UI for the Store Framework\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"docs\": \"0.x\",\n \"node\": \"6.x\"\n },\n \"dependencies\": {},\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"checkout.vtex.io\",\n \"path\": \"*\"\n }\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_biggy-bookstore-theme_b6d44694
[ { "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 biggy-bookstore-theme/manifest.json from the biggy-bookstore-theme VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"store-theme\",\n \"version\": \"3.16.2\",\n \"builders\": {\n \"styles\": \"1.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.responsive-layout\": \"0.x\",\n \"vtex.store-image\": \"0.x\",\n \"vtex.slider-layout\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_orders-tracking_ac449a2e
[ { "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 orders-tracking/manifest.json from the orders-tracking VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"tracking-integration-boilerplate\",\n \"vendor\": \"vtex\",\n \"version\": \"0.1.0\",\n \"title\": \"Boilerplates' Tracking\",\n \"description\": \"Tracks Boilerplate Packages\",\n \"categories\": [],\n \"settingsSchema\": { },\n \"registries\": [\"smartcheckout\"],\n \"dependencies\": {\n \"vtex.tracking-builder\": \"0.x\"\n },\n \"builders\": {\n \"dotnet\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"tracking-sandbox.getsandbox.com\",\n \"path\": \"/trackPackages\"\n }\n }\n ],\n \"scripts\": {\n \"postreleasy\": \"vtex publish\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_marketplace-financial-commission_6d8d1394
[ { "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 marketplace-financial-commission/package.json from the marketplace-financial-commission VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"financial-commission\",\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\": \"^1.0.0\",\n \"@vtex/tsconfig\": \"^0.6.0\",\n \"eslint\": \"^7.14.0\",\n \"eslint-config-vtex\": \"^12.8.11\",\n \"eslint-config-vtex-react\": \"^8.2.1\",\n \"husky\": \"^4.3.0\",\n \"lint-staged\": \"^10.5.1\",\n \"prettier\": \"^2.5.1\",\n \"typescript\": \"^4.6.2\"\n },\n \"version\": \"0.0.0\",\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n }\n}\n\n```" } ]
code_marketplace-financial-commission_e73dbb6c
[ { "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 marketplace-financial-commission/manifest.json from the marketplace-financial-commission VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"marketplace-financial-commission\",\n \"version\": \"0.3.24\",\n \"title\": \"Financial commission for Marketplace\",\n \"description\": \"Streamline the commissioning flows between a marketplace operator and the sellers\",\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"node\": \"6.x\",\n \"docs\": \"0.x\",\n \"admin\": \"0.x\",\n \"graphql\": \"1.x\",\n \"masterdata\": \"1.x\"\n },\n \"dependencies\": {\n \"vtex.sellers-graphql\": \"8.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.render-runtime\": \"8.x\",\n \"vtex.native-types\": \"0.x\",\n \"vtex.format-currency\": \"0.x\",\n \"vtex.components-financial-commission\": \"0.x\"\n },\n \"registries\": [\n \"smartcheckout\"\n ],\n \"credentialType\": \"absolute\",\n \"policies\": [\n {\n \"name\": \"template-criar\"\n },\n {\n \"name\": \"vbase-read-write\"\n },\n {\n \"name\": \"OMSViewer\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"api.vtex.com\",\n \"path\": \"/api/*\"\n }\n },\n {\n \"name\": \"ADMIN_DS\"\n },\n {\n \"name\": \"graphql-query\"\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 \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_KI-313945_c21a6c17
[ { "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-313945/README.md from the KI-313945 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# [KI-313945] Purchase can't be finished and returns the error \"receiver name field is invalid\"\n\nThis script not solve the KI https://vtexhelp.zendesk.com/agent/tickets/313945 but ensure to have info in the receiverName at the orderForm.\n\nYou need to add the script to the checkout at the `checkout6-custom.js`.\n\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-313945/commits?author=germanBonacchi\" title=\"Code\">💻</a></td>\n <td align=\"center\"><a href=\"https://github.com/choque9\"><img src=\"https://avatars.githubusercontent.com/u/74924748?v=4\" width=\"100px;\" alt=\"\"/><br /><sub><b>William Choque Valderrama</b></sub></a><br /><a href=\"https://github.com/vtex-apps/KI-313945/commits?author=choque9\" title=\"Code\">💻</a></td>\n</tr>\n</table>\n\n\n\n```" } ]
code_KI-313945_17a461b6
[ { "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-313945/KI-313945.js from the KI-313945 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```javascript\n$(document).ready(function () {\n window.addEventListener(\"hashchange\", () => {\n hashchange();\n });\n let listenerCreated = false;\n const observerReceiverName = new MutationObserver((mutations, obsP) => {\n const receiverName = document.querySelector(\".ship-receiverName\");\n if (document.contains(receiverName)) {\n if (!listenerCreated) {\n listenerCreated = true;\n createListener(listenerCreated);\n }\n } else {\n listenerCreated = false;\n }\n });\n\n observerReceiverName.observe(document, {\n childList: true,\n subtree: true,\n });\n});\n\nfunction createListener(listenerFlag) {\n if (listenerFlag) {\n document\n .querySelector(\"#ship-receiverName\")\n .addEventListener(\"focusout\", (event) => {\n vtexjs.checkout.getOrderForm().then(function (orderForm) {\n var shippingData = orderForm.shippingData;\n if (\n shippingData.selectedAddresses &&\n shippingData.selectedAddresses.length > 0\n ) {\n shippingData.selectedAddresses[0].receiverName =\n document.querySelector(\"#ship-receiverName\").value;\n return vtexjs.checkout.sendAttachment(\"shippingData\", shippingData);\n }\n });\n });\n }\n}\n\nfunction hashchange() {\n vtexjs.checkout.getOrderForm().then(function (orderForm) {\n var shippingData = orderForm.shippingData;\n if (\n shippingData.selectedAddresses &&\n shippingData.selectedAddresses.length > 0\n ) {\n if (!shippingData.selectedAddresses[0].receiverName) {\n //console.log(\"receiverName is empty\");\n const clientProfileData = orderForm.clientProfileData\n const { firstName, lastName } = clientProfileData\n let name = `${firstName} ${lastName}`\n if (name.includes(\"*\")) {\n name = name.replaceAll(\"*\", \"\")\n }\n shippingData.selectedAddresses[0].receiverName = name\n return vtexjs.checkout.sendAttachment(\"shippingData\", shippingData);\n }/*{\n console.log(\"receiverName is not empty\");\n }*/\n }\n });\n}\n\n```" } ]
code_mycheckout-front_d6991e96
[ { "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 mycheckout-front/README.md from the mycheckout-front VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Kuikpay\n\n> Implementation in VTEX IO stores\n\n[![NPM](https://img.shields.io/npm/v/checkoutless.svg)](https://www.npmjs.com/package/checkoutless) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n:warning: This guide is only for VTEX IO stores.\n\n## Install\n\n- [Kuikpay](#kuikpay)\n - [Install](#install)\n - [Usage](#usage)\n - [kuikpay-button](#kuikpay-button)\n - [kuikpay-quota-information](#kuikpay-quota-information)\n - [Styles](#Styles)\n\n## Usage\n\nIn the manifest.json of your store theme add the following peer dependency.\n\n```tsx\n\"kuikpay.my-checkout\": \"0.x\"\n```\n\n### kuikpay-wrapper\n\nWrapper component for handling the data that is shared between each of the kuikpay-button components.\n\nThis block must be added at least once in each page where you show a product-summary. For example we can choose to add the block once in the header but it will be instantiate in every page, or you can add in some specifics templates.\n\n```tsx\n\"store.product\": {\n \"children\": [\n ...\n \"kuikpay-wrapper\"\n ]\n}\n```\n\n```tsx\n\"header-layout.desktop\": {\n \"children\": [\n \"kuikpay-wrapper\",\n ...\n ]\n}\n```\n\n```tsx\n\"header-layout.mobile\": {\n \"children\": [\n \"kuikpay-wrapper\",\n ...\n ]\n}\n```\n\nNOTE: You must be sure that the wrapper is instantiated just once.\n\n### kuikpay-button\n\nButton component which is responsible for adding to the cart and having the possibility of making the purchase in the same window.\n\n### `kuikpay-button props`\n\n| Prop name | Type | Description | Default value |\n| ----------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |\n| `onClickBehavior` | `enum` | Controls what happens when users click on the button. Possible value is: `ensure-sku-selection` (if multiple SKUs are available, the SKU selector will be displayed). | `undefined` |\n\nIn the product.json file or any block file of your choice, declare the following block.\n\n```tsx\n\"flex-layout.row#kuikpay\": {\n \"props\": {\n \"marginTop\": 4,\n \"marginBottom\": 4\n },\n \"children\": [\"kuikpay-button\"]\n}\n```\n\n- `Product Detail Page`\n\nAdd the \"flex-layout.row#kuikpay\" block in your product.jsonc file where you want the button to be displayed.\n\n```tsx\n\"flex-layout.col#right-col\": {\n \"children\": [\n ...\n \"flex-layout.row#kuikpay\",\n ...\n ]\n}\n```\n\n- `Product List Page`\n\nAdd the \"flex-layout.row#kuikpay\" block in your product-summary.jsonc file at the position where you want the button to be displayed.\n\n```tsx\n\"product-summary.shelf\": {\n \"children\": [\n ...\n \"flex-layout.row#kuikpay\",\n ...\n ]\n}\n```\n\n### kuikpay-quota-information\n\nInformation that allows you to know if the product can be paid with **Orion**.\n\n```tsx\n\"flex-layout.row#kuikpay-quota-information\": {\n \"children\": [\n \"kuikpay-quota-information\"\n ]\n}\n```\n\n### Styles\n\nIf you want to change the app styles from your store theme, you can create a new folder called my-checkout containing two files:\n\n- my-checkout\n - kuikpay.my-checkout.css\n - my-checkout.css\n\n#### kuikpay.my-checkout.css\n\nIt is only for import my-checkout.css\n\n```tsx\n@import url(\"./my-checkout.css\");\n```\n\n#### my-checkout.css\n\nChange styles, for example\n\n```tsx\n:global(._kuikpay__src-kuikpay-styles-module__floatButton) {\n position: fixed;\n bottom: 100px;\n right: 20px;\n cursor: pointer;\n width: 94px;\n height: 94px;\n z-index: 99;\n }\n```\n\n```" } ]
code_mycheckout-front_9753e05a
[ { "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 mycheckout-front/package.json from the mycheckout-front VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"version\": \"0.0.0\",\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 \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\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 \"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 \"dependencies\": {}\n}\n\n```" } ]
code_mycheckout-front_919d81d6
[ { "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 mycheckout-front/manifest.json from the mycheckout-front VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"kuikpay\",\n \"name\": \"my-checkout-front\",\n \"version\": \"0.0.3\",\n \"title\": \"CHANGE_ME\",\n \"description\": \"CHANGE_ME\",\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\",\n \"store\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.order-manager\": \"0.x\",\n \"vtex.product-context\": \"0.x\",\n \"vtex.checkout-resources\": \"0.x\",\n \"vtex.checkout-graphql\": \"0.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.store\": \"2.x\",\n \"vtex.search-page-context\": \"0.x\",\n \"vtex.order-items\": \"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_profitshare_c8b3b18b
[ { "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 profitshare/README.md from the profitshare VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n## profitshare\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_profitshare_2c6042e7
[ { "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 profitshare/package.json from the profitshare VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"dependencies\": {\n \"crypto-js\": \"^4.1.1\"\n }\n}\n\n```" } ]
code_profitshare_83bb2f3b
[ { "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 profitshare/manifest.json from the profitshare VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"profitshare\",\n \"vendor\": \"vtex\",\n \"version\": \"0.5.3\",\n \"title\": \"profitshare\",\n \"description\": \"profitshare\",\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\": \"profitshare\",\n \"type\": \"object\",\n \"bindingBounded\": true,\n \"properties\": {\n \"cookieScriptName\": {\n \"title\": \"Cookie conversions script name\",\n \"description\": \"Enter cookie conversions script name\",\n \"type\": \"string\"\n },\n \"clickCode\": {\n \"title\": \"Click code set by cookie script\",\n \"description\": \"Enter click code set by cookie script\",\n \"type\": \"string\"\n },\n \"advertiserCode\": {\n \"title\": \"Advertiser tracking code\",\n \"description\": \"Enter advertiser tracking code\",\n \"type\": \"string\"\n },\n \"key\": {\n \"title\": \"Encryption key\",\n \"description\": \"Enter encryption key\",\n \"type\": \"string\"\n },\n \"cookieScriptDomain\": {\n \"title\": \"Cookie script domain\",\n \"description\": \"Enter cookie script domain\",\n \"type\": \"string\"\n },\n \"iframeDomain\": {\n \"title\": \"IFrame domain\",\n \"description\": \"Enter IFrame domain\",\n \"type\": \"string\"\n },\n \"taxCode\": {\n \"title\": \"VAT percent\",\n \"description\": \"Enter VAT\",\n \"type\": \"number\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_product-customizer_8c9befd0
[ { "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-customizer/package.json from the product-customizer VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-customizer\",\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.4\",\n \"@vtex/tsconfig\": \"^0.4.4\",\n \"babel-eslint\": \"^10.1.0\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.3.2\",\n \"eslint-config-vtex-react\": \"^6.3.2\",\n \"husky\": \"^4.2.0\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^2.0.2\",\n \"typescript\": \"3.8.3\"\n }\n}\n```" } ]
code_product-customizer_a9dba374
[ { "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-customizer/manifest.json from the product-customizer VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-customizer\",\n \"vendor\": \"vtex\",\n \"version\": \"2.12.4\",\n \"title\": \"Product Customizer\",\n \"description\": \"\",\n \"mustUpdateAt\": \"2019-09-27\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.store-components\": \"3.x\",\n \"vtex.product-details\": \"1.x\",\n \"vtex.product-context\": \"0.x\",\n \"vtex.device-detector\": \"0.x\",\n \"vtex.flex-layout\": \"0.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.native-types\": \"0.x\"\n },\n \"builders\": {\n \"store\": \"0.x\",\n \"messages\": \"1.x\",\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_apub-app-center_5b87f8fb
[ { "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 apub-app-center/package.json from the apub-app-center VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"apub-app-center\",\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/vtex.render-runtime@8.131.0/public/@types/vtex.render-runtime\"\n }\n}\n```" } ]
code_apub-app-center_5b0406b1
[ { "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 apub-app-center/manifest.json from the apub-app-center VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"apub-app-center\",\n \"vendor\": \"vtexarg\",\n \"version\": \"0.0.12\",\n \"title\": \"APUB App Center\",\n \"description\": \"Apub App Center component\",\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_chaordic-graphql_4b17924c
[ { "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 chaordic-graphql/package.json from the chaordic-graphql VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"chaordic-graphql\",\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_chaordic-graphql_8e4292c0
[ { "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 chaordic-graphql/manifest.json from the chaordic-graphql VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"chaordic-graphql\",\n \"version\": \"2.6.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\": \"api.linximpulse.com\",\n \"path\": \"engage/search/v3/*\"\n }\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"recs.chaordicsystems.com\",\n \"path\": \"/v0/*\"\n }\n }\n ],\n \"mustUpdateAt\": \"2022-09-05\",\n \"categories\": [],\n \"settingsSchema\": {},\n \"scripts\": {\n \"postreleasy\": \"bash publish.sh\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_KI-1089066_7e11cd3c
[ { "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-1089066/KI-1089066.js from the KI-1089066 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```javascript\n$(document).ready(function() {\n\n\tinterceptRequest_KI_1089066()\n\n});\n\nfunction changeItemsOrdination() {\n\tif ((vtexjs.checkout.orderForm.marketingData !== null &&\n\t\t\tvtexjs.checkout.orderForm.marketingData.coupon !== null &&\n\t\t\tvtexjs.checkout.orderForm.totalizers !== null &&\n\t\t\tvtexjs.checkout.orderForm.totalizers.some(item => item.id === \"Tax\")) ||\n\t\tvtexjs.checkout.orderForm.items.length > 20) {\n\t\tvtexjs.checkout\n\t\t\t.changeItemsOrdination(\"GIFT\")\n\t\t\t.then(function(orderForm) {\n\t\t\t\tconsole.log(\"items sorted by criteria: \", orderForm.itemsOrdination)\n\t\t\t})\n\t}\n}\n\nfunction interceptRequest_KI_1089066() {\n\n\tconst originalXHRSend = XMLHttpRequest.prototype.send;\n\tconst originalXHROpen = XMLHttpRequest.prototype.open;\n\tXMLHttpRequest.prototype.open = function(method, url, ...rest) {\n\t\tthis._requestUrl = url;\n\t\treturn originalXHROpen.apply(this, [method, url, ...rest]);\n\t};\n\n\tXMLHttpRequest.prototype.send = function(body) {\n\t\tconst xhr = this;\n\t\tconst urlPatternItemsOrdination = /\\/api\\/checkout\\/pub\\/orderForm\\/.*\\/itemsOrdination/;\n\t\tconst urlPatternPaymentData = /\\/api\\/checkout\\/pub\\/orderForm\\/.*\\/attachments\\/paymentData/;\n\t\tconst urlPatternShippingData = /\\/api\\/checkout\\/pub\\/orderForm\\/.*\\/attachments\\/shippingData/;\n\n\t\tif (this._requestUrl && urlPatternItemsOrdination.test(this._requestUrl)) {\n\t\t\tlet requestBody;\n\n\t\t\ttry {\n\t\t\t\trequestBody = JSON.parse(body);\n\t\t\t} catch (error) {\n\t\t\t\trequestBody = null;\n\t\t\t}\n\n\t\t\tif (requestBody && requestBody.criteria === \"add_time\") {\n\t\t\t\tconsole.log('Modifying requestBody to avoid add_time criteria: changed to GIFT criteria');\n\t\t\t\twindow.checkout.loading(false);\n\t\t\t\t$('body').removeClass('loading');\n\t\t\t\trequestBody.criteria = \"GIFT\";\n\t\t\t\tbody = JSON.stringify(requestBody);\n\t\t\t}\n\t\t}\n\n\t\tif (this._requestUrl &&\n\t\t\t(urlPatternPaymentData.test(this._requestUrl) ||\n\t\t\t\turlPatternShippingData.test(this._requestUrl))) {\n\t\t\treturn new Promise((resolve, reject) => {\n\t\t\t\txhr.onload = function() {\n\t\t\t\t\tif (xhr.status >= 200 && xhr.status < 300) {\n\t\t\t\t\t\tresolve(xhr.responseText);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treject(new Error(\"Request failed by custom script with status: \" + xhr.status));\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\txhr.onerror = function() {\n\t\t\t\t\treject(new Error(\"Network error by custom script\"));\n\t\t\t\t};\n\n\t\t\t\toriginalXHRSend.apply(xhr, [body]);\n\t\t\t}).then((_response) => {\n\t\t\t\tchangeItemsOrdination();\n\t\t\t}).catch((error) => {\n\t\t\t\tconsole.error(\"Error during the request by custom script:\", error);\n\t\t\t});\n\t\t} else {\n\t\t\treturn originalXHRSend.apply(this, [body]);\n\t\t}\n\t};\n}\n```" } ]
code_KI-1089066_7b8f5310
[ { "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-1089066/README.md from the KI-1089066 VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# KI-1089066\n[KI] Nominal Taxes + Gift Promotions on the same item might generate checkout errors\n\nThis script is a workaround to KI https://vtexhelp.zendesk.com/agent/tickets/1089066.\n\nYou need to add the script to the checkout at the checkout6-custom.js\n\n## Functions \n### Change Items Ordination\n\nIt is necessary to sort by GIFT in order to allow create the order. The request for item ordering will only be requested if one of the conditions is met:\n- When the length of items is greater than 20: vcs.checkout-ui performs a sort by 'add_time' criteria. When this sorting condition exist, it does not allow to reorder by GIFT criteria. \nThis solution intercepts the “add_time” request and replaces by GIFT criteria. The script must be added in the checkout customization ensuring that it is inserted when the DOM is loaded, before the first add_time sort is performed. \n- When coupon and taxes exists\n \n### Intercept requests\n- Case 1: Intercepts the itemsOrdination request by 'add_time' criteria and replaces it with 'GIFT' criteria\n- Case 2: Intercepts PaymentData and ShippingData request. At the end of each of the requests, it performs a ChangeItemsOrdination()\n\n\n```\n vtexjs.checkout\n .changeItemsOrdination(\"GIFT\")\n .then(function(orderForm) {\n console.log(\"items sorted by criteria: \", orderForm.itemsOrdination)\n })\n```\n```" } ]
code_product-group-context_390608bf
[ { "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-group-context/package.json from the product-group-context VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-group-context\",\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.3\",\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 \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n }\n}\n\n```" } ]
code_product-group-context_22df1959
[ { "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-group-context/manifest.json from the product-group-context VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"product-group-context\",\n \"vendor\": \"vtex\",\n \"version\": \"0.2.0\",\n \"builders\": {\n \"react\": \"3.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_search_3057027b
[ { "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/package.json from the search VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"search\",\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 \"packageManager\": \"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e\"\n}\n\n```" } ]
code_search_34f38966
[ { "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/manifest.json from the search VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"search\",\n \"vendor\": \"vtex\",\n \"version\": \"2.18.8\",\n \"title\": \"Search\",\n \"description\": \"Search components and functionality for VTEX IO.\",\n \"scripts\": {\n \"prereleasy\": \"bash pre.sh\"\n },\n \"builders\": {\n \"store\": \"0.x\",\n \"react\": \"3.x\",\n \"styles\": \"2.x\",\n \"docs\": \"0.x\",\n \"messages\": \"1.x\"\n },\n \"dependencies\": {\n \"vtex.native-types\": \"0.x\",\n \"vtex.shipping-estimate-translator\": \"2.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.store-resources\": \"0.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.modal\": \"0.x\",\n \"vtex.react-portal\": \"0.x\",\n \"vtex.address-form\": \"4.x\",\n \"vtex.product-context\": \"0.x\",\n \"vtex.store-components\": \"3.x\",\n \"vtex.search-result\": \"3.x\",\n \"vtex.store\": \"2.x\",\n \"vtex.product-summary\": \"2.x\",\n \"vtex.product-list-context\": \"0.x\",\n \"vtex.search-resolver\": \"1.x\",\n \"vtex.device-detector\": \"0.x\",\n \"vtex.search-page-context\": \"0.x\",\n \"vtex.css-handles\": \"0.x\",\n \"vtex.product-price\": \"1.x\",\n \"vtex.pixel-manager\": \"1.x\",\n \"vtex.tester-hub\": \"0.x\"\n },\n \"policies\": [],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_brightedge-integration_47dc8fee
[ { "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 brightedge-integration/package.json from the brightedge-integration VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"brightedge-integration\",\n \"private\": true,\n \"license\": \"UNLICENSED\",\n \"scripts\": {\n \"lint\": \"eslint --ext js,jsx,ts,tsx .\",\n \"format\": \"prettier --write \\\"**/*.{ts,js,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 },\n \"devDependencies\": {\n \"@vtex/intl-equalizer\": \"^2.4.2\",\n \"@vtex/prettier-config\": \"^0.1.4\",\n \"eslint\": \"^6.8.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 \"version\": \"0.0.0\",\n \"intl-equalizer\": {\n \"referenceLocale\": \"en\",\n \"localeDirectory\": \"messages\"\n }\n}\n\n```" } ]
code_brightedge-integration_3f66f090
[ { "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 brightedge-integration/manifest.json from the brightedge-integration VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"brightedge-integration\",\n \"vendor\": \"vtex\",\n \"version\": \"0.0.2\",\n \"title\": \"BrightEdge\",\n \"description\": \"An implementation of BrightEdge AutoPilot link blocks for SEO optimization\",\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.store\": \"2.x\",\n \"vtex.product-context\": \"0.x\"\n },\n \"settingsSchema\": {\n \"title\": \"BrightEdge\",\n \"type\": \"object\",\n \"properties\": {\n \"accountId\": {\n \"title\": \"Account ID\",\n \"description\": \"Enter your Account ID for BrightEdge\",\n \"type\": \"string\",\n \"access\": \"public\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_storefront-permissions-components_755381bf
[ { "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 storefront-permissions-components/package.json from the storefront-permissions-components VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"storefront-permissions-components\",\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 \"cy-r\": \"cd ./cy-runner && node cy-runner\"\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\": \"^1.0.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 },\n \"dependencies\": {}\n}\n\n```" } ]
code_storefront-permissions-components_df80e506
[ { "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 storefront-permissions-components/manifest.json from the storefront-permissions-components VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"storefront-permissions-components\",\n \"vendor\": \"vtex\",\n \"version\": \"2.0.1\",\n \"title\": \"Storefront Permissions Components\",\n \"description\": \"Host sharable components\",\n \"mustUpdateAt\": \"2022-08-28\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish\"\n },\n \"dependencies\": {\n \"vtex.styleguide\": \"9.x\",\n \"vtex.admin-customers-graphql\": \"3.x\",\n \"vtex.b2b-organizations-graphql\": \"2.x\",\n \"vtex.storefront-permissions\": \"3.x\"\n },\n \"builders\": {\n \"react\": \"3.x\",\n \"messages\": \"1.x\"\n },\n \"policies\": [\n {\n \"name\": \"buyer_organization_view\"\n },\n {\n \"name\": \"buyer_organization_edit\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_checkout-button-example_86422cad
[ { "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 checkout-button-example/README.md from the checkout-button-example VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# Checkout Button Example\n\nThis is an example of how to use extension point to render a custom button component on the checkout page.\n\n![image](https://user-images.githubusercontent.com/19495917/85041692-af0c0a00-b160-11ea-9e1c-e22ae0eca6fb.png)\n\n\n```" } ]
code_checkout-button-example_79d3457f
[ { "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 checkout-button-example/package.json from the checkout-button-example VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"devDependencies\": {\n \"@types/jquery\": \"^3.3.38\",\n \"@types/node\": \"^12.12.21\",\n \"@types/react\": \"^16.9.38\"\n }\n}\n\n```" } ]
code_checkout-button-example_9144ccc6
[ { "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 checkout-button-example/manifest.json from the checkout-button-example VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"checkout-button-example\",\n \"vendor\": \"vtex\",\n \"version\": \"0.0.3\",\n \"title\": \"Checkout Button Example\",\n \"description\": \"Checkout Button Example\",\n \"credentialType\": \"absolute\",\n \"dependencies\": {\n \"vtex.checkout\": \"0.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.render-runtime\": \"7.x\"\n },\n \"builders\": {\n \"react\": \"2.x\",\n \"pages\": \"0.x\"\n },\n \"scripts\": {\n \"postreleasy\": \"vtex publish\"\n },\n \"supportWorkspaces\": true,\n \"billingOptions\": {\n \"free\": true\n },\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"{{account}}.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_on-view_960aad16
[ { "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 on-view/package.json from the on-view VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"version\": \"0.0.0\",\n \"name\": \"on-view\",\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 \"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\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.3.1\",\n \"eslint\": \"^7.4.0\",\n \"eslint-config-vtex\": \"^12.7.0\",\n \"eslint-config-vtex-react\": \"^6.7.0\",\n \"husky\": \"^4.2.5\",\n \"lint-staged\": \"^10.2.11\",\n \"prettier\": \"^2.0.5\",\n \"typescript\": \"^3.9.6\"\n }\n}\n\n```" } ]
code_on-view_737b9049
[ { "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 on-view/manifest.json from the on-view VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"on-view\",\n \"version\": \"1.0.0\",\n \"title\": \"\",\n \"description\": \"\",\n \"builders\": {\n \"react\": \"3.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {},\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_adserver-graphql_aab20bde
[ { "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 adserver-graphql/policies.json from the adserver-graphql VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n[\n {\n \"name\": \"adserver-graphql\",\n \"description\": \"Allows access to adserver graphql request\",\n \"statements\": [\n {\n \"actions\": [\"post\", \"get\"],\n \"effect\": \"allow\",\n \"resources\": [\n \"vrn:vtex.adserver-graphql:{{region}}:{{account}}:{{workspace}}:/_v/graphql\"\n ]\n }\n ]\n }\n]\n\n```" } ]
code_adserver-graphql_dbff9128
[ { "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 adserver-graphql/manifest.json from the adserver-graphql VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"adserver-graphql\",\n \"version\": \"0.6.0\",\n \"title\": \"Adserver Graphql\",\n \"description\": \"Adserver Graphql\",\n \"credentialType\": \"absolute\",\n \"builders\": {\n \"graphql\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"dependencies\": {\n \"vtex.catalog-api-proxy\": \"0.x\"\n },\n \"policies\": [\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_user-identifier-extension-example_114450ee
[ { "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 user-identifier-extension-example/package.json from the user-identifier-extension-example VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"user-identifier-extension-example\",\n \"private\": true,\n \"license\": \"UNLICENSED\"\n}\n\n```" } ]
code_user-identifier-extension-example_78db286a
[ { "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 user-identifier-extension-example/manifest.json from the user-identifier-extension-example VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"user-identifier-extension-example\",\n \"version\": \"0.0.1\",\n \"builders\": {\n \"store\": \"0.x\",\n \"docs\": \"0.x\",\n \"react\": \"3.x\"\n },\n \"dependencies\": {\n \"vtex.login\": \"2.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_multi-tenant-search_795e031d
[ { "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 multi-tenant-search/dangerfile.js from the multi-tenant-search 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_multi-tenant-search_df273cb1
[ { "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 multi-tenant-search/package.json from the multi-tenant-search VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"service-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.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_multi-tenant-search_a8f84315
[ { "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 multi-tenant-search/manifest.json from the multi-tenant-search VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"service-example\",\n \"vendor\": \"vtex\",\n \"version\": \"0.2.0\",\n \"title\": \"Service Example\",\n \"description\": \"Reference app for VTEX IO Services\",\n \"mustUpdateAt\": \"2018-01-04\",\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\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"httpstat.us\",\n \"path\": \"*\"\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_dartel-external-prices-node_a554a284
[ { "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 dartel-external-prices-node/manifest2.json from the dartel-external-prices-node VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"external-prices-node-unilever\",\n \"vendor\": \"vtex\",\n \"version\": \"0.3.0\",\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\": \"read_prices\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"*\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"ADMIN_DS\"\n },\n {\n \"name\": \"POWER_USER_DS\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_dartel-external-prices-node_f34e2826
[ { "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 dartel-external-prices-node/package.json from the dartel-external-prices-node 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_dartel-external-prices-node_3c3b9f2c
[ { "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 dartel-external-prices-node/manifest.json from the dartel-external-prices-node VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"external-prices-node-dartel\",\n \"vendor\": \"vtex\",\n \"version\": \"0.7.6\",\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\": \"ADMIN_DS\"\n },\n {\n \"name\": \"POWER_USER_DS\"\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\": \"*\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"Sku.aspx\"\n },\n {\n \"name\": \"read_prices\"\n },\n {\n \"name\": \"ADMIN_CRM\"\n },\n {\n \"name\": \"POWER_USER_CRM\"\n },\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"*\",\n \"path\": \"*\"\n }\n },\n {\n \"name\": \"Sku.aspx\"\n },\n {\n \"name\": \"read_prices\"\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\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_document-field_89eecf2c
[ { "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 document-field/package.json from the document-field VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"document-field\",\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.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\": \"^1.19.1\",\n \"typescript\": \"^3.7.5\"\n },\n \"version\": \"0.0.0\"\n}\n\n```" } ]
code_document-field_2328a280
[ { "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 document-field/manifest.json from the document-field VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"document-field\",\n \"version\": \"0.1.1\",\n \"title\": \"Document Field\",\n \"description\": \"UI component responsible for rendering a document field with a dropdown\",\n \"builders\": {\n \"docs\": \"0.x\",\n \"react\": \"3.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_datadog-rum-pixel_e44ad3d9
[ { "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 datadog-rum-pixel/package.json from the datadog-rum-pixel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"datadog-rum-pixel\",\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\": [\n \"prettier --write\"\n ]\n },\n \"devDependencies\": {\n \"@vtex/prettier-config\": \"^0.1.4\",\n \"eslint\": \"^6.8.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\n```" } ]
code_datadog-rum-pixel_1e61072c
[ { "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 datadog-rum-pixel/manifest.json from the datadog-rum-pixel VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"datadog-rum-pixel\",\n \"vendor\": \"vtex\",\n \"version\": \"0.1.0\",\n \"title\": \"Datadog RUM Pixel App\",\n \"description\": \"Datadog RUM Pixel App\",\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\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 \"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 \"policies\": [\n {\n \"name\": \"pixel\"\n }\n ],\n \"settingsSchema\": {\n \"title\": \"Datadog RUM Pixel\",\n \"type\": \"object\",\n \"description\": \"For more information abour configuring your Datadog RUM Pixel, see https://docs.datadoghq.com/real_user_monitoring/browser/setup/\",\n \"bindingBounded\": true,\n \"properties\": {\n \"applicationId\": {\n \"title\": \"Datadog applicationId\",\n \"description\": \"Enter the Application ID from your Datadog RUM Application, the Applicatiion ID should be something like 'b64882ae-821c-4e3a-a6a8-1b438b4af7f3'\",\n \"type\": \"string\"\n },\n \"clientToken\": {\n \"title\": \"Datadog clientToken\",\n \"description\": \"Enter the Client Token from your Datadog RUM Application, the Client Token should be something like 'pubblictoken'\",\n \"type\": \"string\"\n },\n \"site\": {\n \"title\": \"Datadog Site\",\n \"description\": \"Enter the Datadog site name, see https://docs.datadoghq.com/getting_started/site/ for more information on how to get yours\",\n \"type\": \"string\"\n },\n \"service\": {\n \"title\": \"Datadog Service (Application name)\",\n \"description\": \"Enter the Datadog service name, this will be used to identify the application in Datadog RUM. This is commonly the application name that you created in Datadog\",\n \"type\": \"string\"\n },\n \"version\": {\n \"title\": \"App Version\",\n \"description\": \"Enter a version of you application (store), this will be used to identify the application version in Datadog RUM\",\n \"type\": \"string\"\n },\n \"sessionSampleRate\": {\n \"title\": \"Session Sample Rate\",\n \"description\": \"Enter the sample rate for the RUM pixel, this will be used to control the amount of data sent to Datadog RUM\",\n \"type\": \"number\",\n \"default\": 100\n },\n \"sessionReplaySampleRate\": {\n \"title\": \"Session Replay Sample Rate\",\n \"description\": \"Enter the sample rate for the RUM pixel for session replays, this will be used to control the amount of data sent to Datadog RUM\",\n \"type\": \"number\",\n \"default\": 20\n },\n \"trackUserInteractions\": {\n \"title\": \"Track User Interactions\",\n \"description\": \"Enable or disable tracking of user interactions in the RUM pixel\",\n \"type\": \"boolean\",\n \"default\": true\n },\n \"trackResources\": {\n \"title\": \"Track Resources\",\n \"description\": \"Enable or disable tracking of resources (images, scripts, etc) in the RUM pixel\",\n \"type\": \"boolean\",\n \"default\": true\n },\n \"trackLongTasks\": {\n \"title\": \"Track Long Tasks\",\n \"description\": \"Enable or disable tracking of long tasks in the RUM pixel\",\n \"type\": \"boolean\",\n \"default\": true\n },\n \"defaultPrivacyLevel\": {\n \"title\": \"Default Privacy Level\",\n \"description\": \"Enter the default privacy level for the RUM pixel, this will be used to control the amount of data sent to Datadog RUM\",\n \"type\": \"string\",\n \"enum\": [\n \"allow\",\n \"mask\",\n \"mask-user-input\"\n ],\n \"default\": \"mask-user-input\"\n },\n \"activateInDev\": {\n \"title\": \"Activate in Dev Mode\",\n \"description\": \"Enable or disable the RUM pixel in development mode (myvtex)\",\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_abandoned-cart_8f6cfb9c
[ { "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 abandoned-cart/package.json from the abandoned-cart VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"service-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\n```" } ]
code_abandoned-cart_a20d7fbd
[ { "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 abandoned-cart/manifest.json from the abandoned-cart VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"abandoned-cart-service\",\n \"vendor\": \"vtex\",\n \"version\": \"3.1.6\",\n \"title\": \"Abandoned Cart Service\",\n \"description\": \"Abandoned cart service for Store Framework\",\n \"mustUpdateAt\": \"2018-01-04\",\n \"categories\": [],\n \"dependencies\": {\n \"vtex.catalog-api-proxy\": \"0.x\"\n },\n \"builders\": {\n \"node\": \"6.x\",\n \"docs\": \"0.x\"\n },\n \"scripts\": {\n \"prereleasy\": \"bash lint.sh\"\n },\n \"credentialType\": \"absolute\",\n \"billingOptions\": {\n \"setupRoute\": \"/admin/message-center/#/templates\",\n \"support\": {\n \"url\": \"https://support.vtex.com/hc/requests\"\n },\n \"type\": \"free\",\n \"availableCountries\": [\n \"*\"\n ]\n },\n \"policies\": [\n {\n \"name\": \"outbound-access\",\n \"attrs\": {\n \"host\": \"portal.vtexcommercestable.com.br\",\n \"path\": \"/api/mail-service/pvt/*\"\n }\n },\n {\n \"name\": \"vtex.catalog-api-proxy:catalog-proxy\"\n },\n {\n \"name\": \"send-message\"\n },\n {\n \"name\": \"colossus-fire-event\"\n },\n {\n \"name\": \"colossus-write-logs\"\n },\n {\n \"name\": \"template-criar\"\n },\n {\n \"name\": \"template-editar\"\n },\n {\n \"name\": \"read-workspace-apps-assets\"\n },\n {\n \"name\": \"update-app-settings\"\n },\n {\n \"name\": \"install-apps\"\n }\n ],\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_store-components_de644efc
[ { "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-components/package.json from the store-components VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"store-components\",\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 \"test\": \"cd ./react && yarn test\",\n \"verify\": \"yarn lint && yarn test\",\n \"lint:locales\": \"intl-equalizer\",\n \"prepare\": \"husky install\"\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 \"@types/classnames\": \"^2.2.9\",\n \"@types/node\": \"^12.7.12\",\n \"@types/ramda\": \"^0.26.18\",\n \"@types/react\": \"^16.8.23\",\n \"@vtex/intl-equalizer\": \"^2.2.1\",\n \"@vtex/prettier-config\": \"^0.1.3\",\n \"@vtex/tsconfig\": \"^0.2.0\",\n \"eslint\": \"^6.8.0\",\n \"eslint-config-vtex\": \"^12.8.1\",\n \"eslint-config-vtex-react\": \"^6.7.3\",\n \"husky\": \"^7.0.1\",\n \"lint-staged\": \"^10.0.2\",\n \"prettier\": \"2.3.2\",\n \"typescript\": \"^3.7.5\"\n },\n \"version\": \"3.47.3\",\n \"resolutions\": {\n \"glob-parent\": \"^6.0.1\"\n }\n}\n```" } ]
code_store-components_38a0a8aa
[ { "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-components/manifest.json from the store-components VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"store-components\",\n \"version\": \"3.178.5\",\n \"title\": \"VTEX Store Components\",\n \"defaultLocale\": \"pt-BR\",\n \"description\": \"The VTEX store components for that render apps can use\",\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 \"dependencies\": {\n \"vtex.address-form\": \"4.x\",\n \"vtex.apps-graphql\": \"3.x\",\n \"vtex.checkout-resources\": \"0.x\",\n \"vtex.css-handles\": \"1.x\",\n \"vtex.device-detector\": \"0.x\",\n \"vtex.format-currency\": \"0.x\",\n \"vtex.modal\": \"0.x\",\n \"vtex.modal-layout\": \"0.x\",\n \"vtex.native-types\": \"0.x\",\n \"vtex.order-manager\": \"0.x\",\n \"vtex.order-shipping\": \"0.x\",\n \"vtex.pixel-manager\": \"1.x\",\n \"vtex.product-context\": \"0.x\",\n \"vtex.react-portal\": \"0.x\",\n \"vtex.responsive-values\": \"0.x\",\n \"vtex.rich-text\": \"0.x\",\n \"vtex.search-graphql\": \"0.x\",\n \"vtex.shipping-estimate-translator\": \"2.x\",\n \"vtex.slider-layout\": \"0.x\",\n \"vtex.store-graphql\": \"2.x\",\n \"vtex.store-icons\": \"0.x\",\n \"vtex.store-image\": \"0.x\",\n \"vtex.store-resources\": \"0.x\",\n \"vtex.styleguide\": \"9.x\"\n },\n \"settingsSchema\": {\n \"title\": \"vtex.store-components\",\n \"type\": \"object\",\n \"properties\": {\n \"enableDefaultSeller\": {\n \"title\": \"Use Default Seller\",\n \"description\": \"Should use default seller to get price\",\n \"type\": \"boolean\"\n }\n }\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_checkout-old_07ea2188
[ { "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 checkout-old/README.md from the checkout-old VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```markdown\n# VTEX IO Base Component\n\nThis demo component shows you how to make a simple yet complete VTEX IO component.\n\nIt shows a simple demonstration of the following features:\n\n- Declaring a component interface in `store/interfaces.json`.\n- Declaring a schema to receive props via Storefront.\n- Using the `messages` feature to have localized strings.\n- Using an NPM package like `react-intl`\n- Using another VTEX IO App like `vtex.styleguide`.\n- Using CSS Modules to make your component customizable via CSS on a store theme.\n- Using tachyons tokens to quickly style your components.\n```" } ]
code_checkout-old_b7aa4fe9
[ { "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 checkout-old/manifest.json from the checkout-old VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"checkout\",\n \"version\": \"0.1.0\",\n \"title\": \"Checkout UI\",\n \"description\": \"Checkout UI for the Store Framework\",\n \"defaultLocale\": \"pt-BR\",\n \"builders\": {\n \"messages\": \"1.x\",\n \"store\": \"0.x\",\n \"react\": \"3.x\"\n },\n \"mustUpdateAt\": \"2019-04-02\",\n \"dependencies\": {\n \"vtex.store-header\": \"2.x\",\n \"vtex.pixel-interfaces\": \"1.x\",\n \"vtex.pixel-manager\": \"1.x\",\n \"vtex.styleguide\": \"9.x\",\n \"vtex.store-footer\": \"2.x\",\n \"vtex.store\": \"2.x\",\n \"vtex.checkout-cart\": \"0.x\"\n },\n \"$schema\": \"https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema\"\n}\n\n```" } ]
code_stack-layout_eeb499cb
[ { "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 stack-layout/package.json from the stack-layout VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"private\": true,\n \"devDependencies\": {\n \"eslint\": \"^5.16.0\",\n \"eslint-config-vtex-react\": \"^4.0.0\",\n \"prettier\": \"^1.16.4\",\n \"typescript\": \"^3.4.2\"\n },\n \"dependencies\": {}\n}\n\n```" } ]
code_stack-layout_0fdee1ca
[ { "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 stack-layout/manifest.json from the stack-layout VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"vendor\": \"vtex\",\n \"name\": \"stack-layout\",\n \"version\": \"0.1.3\",\n \"title\": \"VTEX stack layout component\",\n \"defaultLocale\": \"pt-BR\",\n \"description\": \"VTEX stack layout component\",\n \"builders\": {\n \"react\": \"3.x\",\n \"store\": \"0.x\",\n \"messages\": \"1.x\",\n \"docs\": \"0.x\"\n },\n \"mustUpdateAt\": \"2020-04-02\",\n \"categories\": [],\n \"scripts\": {\n \"postreleasy\": \"vtex publish --verbose\"\n },\n \"dependencies\": {\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_order-form-courier_f1ecb7b8
[ { "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-form-courier/dangerfile.js from the order-form-courier 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_order-form-courier_aa2c97af
[ { "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-form-courier/package.json from the order-form-courier VTEX app." }, { "role": "assistant", "content": "Here's the implementation:\n\n```json\n{\n \"name\": \"order-form-poc\",\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.9.7\"\n }\n}\n\n```" } ]