Skip to content

⚙️ FEATURE: scaffold Node/TypeScript SDK from template - #1

Merged
FernandoCelmer merged 1 commit into
masterfrom
feature/scaffold-node-sdk
Sep 4, 2026
Merged

⚙️ FEATURE: scaffold Node/TypeScript SDK from template#1
FernandoCelmer merged 1 commit into
masterfrom
feature/scaffold-node-sdk

Conversation

@FernandoCelmer

Copy link
Copy Markdown
Contributor

Summary

  • Scaffolds Node/TS SDK from stackin-sdk-template per SETUP.md and specs/API_CONTRACT.md §1–§5
  • Invoice class with issue/consult/cancel; DocumentType, Address, br.Product; APIError/ConnectionFailedError/ValidationError
  • HTTP via native fetch; tests via vitest + undici MockAgent (13/13 pass)
  • .code_quality/ flattened (eslint/prettier/tsconfig), other 9 lang folders removed
  • .github/workflows/{code-quality,test}.yml on node 18/20/22 matrix + setup-node composite action
  • examples/{nfe,nfse}/{basic,full}.ts + .env.example

Local checks

  • npm run build
  • npm test (13 passed)
  • npm run lint
  • npm run format

Follow-ups (not in this PR)

  • Add presumedCredits field to br.Product (parity with python SDK)
  • CHANGELOG.md
  • .github/workflows/npm-publish.yml (mirror python publish workflow)
  • Blog post docs-frontend/src/content/blog/posts/node-sdk.json

Implements API contract §1–§5: Invoice class with issue/consult/cancel,
DocumentType enum, Address, br.Product, and APIError/ConnectionFailedError/
ValidationError. HTTP via native fetch; tests via vitest + undici MockAgent.

- .code_quality/ flattened to eslint/prettier/tsconfig, other languages removed
- .github/workflows/{code-quality,test}.yml on node 18/20/22 matrix
- .github/actions/setup-node composite action
- examples/nfe/{basic,full}.ts and examples/nfse/{basic,full}.ts
- tests/client.test.ts: 13 tests (construction, auth, validation, request/response)
- Removed SETUP.md, .claude/, tests/README.md
@FernandoCelmer
FernandoCelmer merged commit 8508210 into master Sep 4, 2026
6 checks passed
@FernandoCelmer
FernandoCelmer deleted the feature/scaffold-node-sdk branch September 4, 2026 15:59
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