8 Commits

Author SHA1 Message Date
a8c791471a Add feedback document to history 2026-01-16 22:32:22 +01:00
397cd10a09 Add convenience helpers and improve documentation
- Add isInProduction() helper for checking status 3 or 4
- Add getErrorSummary() helper for extracting error messages
- Add fetchAllPages() pagination helper for auto-pagination
- Add comprehensive JSDoc to ListResponse interface
- Create ADR-001 documenting decision not to add listAll() method

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-16 22:30:36 +01:00
6b2b26f3ea Update README with installation options and AI agent prompts
- Add three installation methods (local path, npm link, copy dist)
- Fix Quick Start example to use correct API property names
- Add "Using AI Coding Agents" section with example prompts
- Reference AGENTS.md for detailed integration instructions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 23:19:49 +01:00
09422f4653 Add AGENTS.md for coding agent integration
Comprehensive guide for AI coding assistants to efficiently use the
Binect-JS library. Includes quick start, API methods, status codes,
helper functions, polling patterns, error handling, and complete
examples.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 23:16:38 +01:00
b9aebb42f1 Add Binect SDK implementation, Explorer, and test suite
SDK (@binect/js):
- BinectClient with domain sub-clients (documents, sendings, accounts,
  attachments, invoices)
- HTTP Basic Auth, native fetch only (no runtime dependencies)
- TypeScript types matching Binect API vocabulary
- Status predicates and polling helpers in helpers.ts
- Structured error handling (BinectApiError, BinectAuthError)

Explorer:
- Standalone browser-based API explorer (explorer/index.html)
- Interactive testing without code

Tests:
- Unit tests for client, types, errors, helpers, http
- E2E tests for upload/delete and send/cancel workflows

Also includes:
- Architecture Decision Records (ADRs)
- Example DIN 5008 letter PDFs for testing
- API specification research notes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 23:10:34 +01:00
20462b48b3 Add e2e test for document send and cancel workflow
Tests the full letter lifecycle: upload → send → poll for status
transition → cancel. Includes polling logic to wait for document
status to transition from IN_PREPARATION to PRODUCTION_QUEUE before
attempting cancel. Gracefully handles insufficient balance errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 23:08:25 +01:00
5c1d26afba Add project documentation and configure for JavaScript/TypeScript
- Add PRD and TSD defining SDK and Explorer architecture
- Add CLAUDE.md with project guidance for Claude Code
- Update README with project description
- Replace Python .gitignore with JS/TS configuration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-14 16:47:25 +01:00
Coulomb Social
c299ce9d53 Initial commit 2026-01-14 15:12:03 +00:00