Repository navigation
feat(indices): endpoint IGP-M via BCB SGS - #841
Merged
Merged
Conversation
- /api/indices/igpm/v1, /ultimos, /intervalo e /api/indices/codes - Fonte: api.bcb.gov.br (série 189), validação com joi - Fix: BCB exige datas DD/MM/AAAA (intervalo aceita ISO e converte) - Helpers aditivos no services/date.js (toISOString, isAfter, isBefore) - Testes E2E + docs Co-authored-by: Hermes Agent <[email protected]> Ai-tool: hermes Ai-model: deepseek-v4-flash Ai-os: wsl
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Closed
…stram Co-authored-by: Hermes Agent <[email protected]> Ai-tool: hermes Ai-model: deepseek-v4-flash Ai-os: wsl
Com o health check do FIPE (PR #806), os testes não falham mais rápido quando o upstream está fora — a suíte roda completa e demora >5min, estourando o timeout_minutes: 5 do nick-fields/retry (SIGTERM em toda tentativa, job sempre vermelho). Timeout 15min + 1 tentativa. Co-authored-by: Hermes Agent <[email protected]> Ai-tool: hermes Ai-model: deepseek-v4-flash Ai-os: wsl
… fora) Co-authored-by: Hermes Agent <[email protected]> Ai-tool: hermes Ai-model: deepseek-v4-flash Ai-os: wsl
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Sobre
Este PR substitui o #475 (mesma feature, rebase completo na main + fixes). Autoria preservada do @Met4tron.
Feature: consulta do IGP-M direto do Banco Central (SGS, série 189):
GET /api/indices/codes— códigos BCB disponíveisGET /api/indices/igpm/v1— todos os registrosGET /api/indices/igpm/v1/ultimos?limit=N— últimos N registrosGET /api/indices/igpm/v1/intervalo?initial_date=YYYY-MM-DD&final_date=YYYY-MM-DD— intervaloMudanças sobre o #475
services/date.js(toISOString,isAfter,isBefore)[email protected]adicionado ao package.jsonValidação
/ultimos→ 200,/intervalo→ 200,/→ 200