nfse-integration
Installation
SKILL.md
NFS-e integration with @bullcode/fiscal
- Read
node_modules/@bullcode/fiscal/docs/integration.mdin full before writing code. Prefer it over prior knowledge. - Read
node_modules/@bullcode/fiscal/docs/dps-input.mdto map the app's data toDpsInput. - Read
node_modules/@bullcode/fiscal/docs/codes.mdto choose tax codes and to explain Sefin rejections. - Read
node_modules/@bullcode/fiscal/docs/errors.mdand handle every error it lists (malformed XML passed to the parsers throws a plainError). - Implement against the reference implementations in
integration.md: section 8 (issuance), section 11 (cancellation) and section 12 (ADN import). Adapt the storage and the app's own values (verAplic, logging), and keep every state transition, lease and lookup as written. - Go through the checklist at the end of
integration.mdand confirm each item in the code.
If node_modules/@bullcode/fiscal/docs is missing, the package is not installed or is older than the docs.
Install it with pnpm add github:bullcodeapps/fiscal#<latest tag>.