Skip to content

fiscalapi-csf 1.0.0: lector de la Constancia de Situación Fiscal - #1

Merged
mendozagit merged 1 commit into
mainfrom
feat/auto-invoice
Oct 12, 2026
Merged

mendozagit merged 1 commit into
mainfrom
feat/auto-invoice

Conversation

@mendozagit

Copy link
Copy Markdown
Contributor
  • Extraído del parser de fapi-front (profile/csf): mismos límites (.pdf, 10 KB–5 MB, %PDF-, ≤ 6 páginas), mensajes y campos; salida ESM + CJS con tipos, pdfjs-dist como peer (^6.3.289), PdfJsLike inyectable.
  • Etiquetas y catálogo c_RegimenFiscal comparados en forma canónica (sin acentos, minúsculas, espacios colapsados) sin alterar los valores; errores con code tipado.
  • TS estricto y ESLint strictTypeChecked sin any/unknown/as/!.
  • CI (lint, typecheck, test, build, pack) y publicación manual solo desde main con NPM_TOKEN de secrets, --provenance e --ignore-scripts.
  • 499 pruebas; npm link probado (ESM, CJS, tipos); 6 CSF locales idénticas al original (no versionadas).

- Extraído del parser de fapi-front (profile/csf): mismos límites (.pdf,
  10 KB–5 MB, %PDF-, ≤ 6 páginas), mensajes y campos; salida ESM + CJS con
  tipos, pdfjs-dist como peer (^6.3.289), PdfJsLike inyectable.
- Etiquetas y catálogo c_RegimenFiscal comparados en forma canónica (sin
  acentos, minúsculas, espacios colapsados) sin alterar los valores; errores
  con code tipado.
- TS estricto y ESLint strictTypeChecked sin any/unknown/as/!.
- CI (lint, typecheck, test, build, pack) y publicación manual solo desde main
  con NPM_TOKEN de secrets, --provenance e --ignore-scripts.
- 499 pruebas; npm link probado (ESM, CJS, tipos); 6 CSF locales idénticas al
  original (no versionadas).
@mendozagit
mendozagit merged commit 158b7b5 into main Oct 12, 2026
1 of 2 checks passed
@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 28eaec68-199d-4b3f-9b5b-8833ec2f51f9

📥 Commits

Reviewing files that changed from the base of the PR and between ef640d1 and 8cb18c1.


⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json

📒 Files selected for processing (35)
  • .github/workflows/ci.yml
  • .github/workflows/publish.yml
  • .gitignore
  • LICENSE.txt
  • README.md
  • eslint.config.mjs
  • package.json
  • scripts/write-dist-package-json.mjs
  • src/canonical-text.ts
  • src/csf-labels.ts
  • src/csf-limits.ts
  • src/csf-parser.ts
  • src/csf-pdf-reader.ts
  • src/csf-regimes-section.ts
  • src/csf-tax-regimes.ts
  • src/csf-text.ts
  • src/csf-validation-error.ts
  • src/csf.models.ts
  • src/index.ts
  • src/pdf-text-extractor.ts
  • src/pdf-text-lines.ts
  • src/required-group.ts
  • test/csf-label-variations.test.ts
  • test/csf-parser-rules.test.ts
  • test/csf-parser.test.ts
  • test/csf-pdf-reader.test.ts
  • test/fixtures/fake-pdfjs.ts
  • test/fixtures/synthetic-csf-lines.ts
  • test/fixtures/synthetic-csf-pdf.ts
  • test/pdf-text-lines.test.ts
  • tsconfig.base.json
  • tsconfig.cjs.json
  • tsconfig.esm.json
  • tsconfig.json
  • vitest.config.mts

 _____________________________________________________________________________________________________________________________
< The computing scientist's main challenge is not to get confused by the complexities of his own making. - Edsger W. Dijkstra >
 -----------------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant