ksef-client-ts 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -8
- package/dist/cli.js +1359 -264
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +768 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +260 -1
- package/dist/index.d.ts +260 -1
- package/dist/index.js +747 -34
- package/dist/index.js.map +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -7,14 +7,17 @@ TypeScript client for the Polish National e-Invoice System (KSeF) API v2.
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
9
9
|
- **Complete API coverage** — KSeF API v2.3.0, types aligned with the official OpenAPI spec
|
|
10
|
-
- **Full-featured CLI** — `ksef` with
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
10
|
+
- **Full-featured CLI** — `ksef` with 14 command groups for auth, sessions, invoices, batch upload, export, and more
|
|
11
|
+
- **High-level workflows** — auth, online/batch sessions, invoice export — full lifecycle in a single call
|
|
12
|
+
- **Built-in cryptography** — AES-256-CBC, RSA-OAEP, ECDH, XAdES-B signatures, self-signed certs (Node crypto)
|
|
13
|
+
- **External signing** — HSM, EPUAP, and smart card authentication via callback-based signing
|
|
14
|
+
- **Automatic token management** — AuthManager: token injection, 401 refresh with dedup
|
|
15
|
+
- **Streaming batch uploads** — constant-memory batch upload via Web Streams API with ZIP bomb protection
|
|
16
|
+
- **Incremental export** — HWM-based paginated export with file-based state persistence
|
|
17
|
+
- **Multiple document structures** — FA, PEF, PEF_KOR, FA_RR with typed FormCode constants and UPO parsing
|
|
17
18
|
- **Typed errors & fluent builders** — `KSeFError` hierarchy (401, 403, 429, validation) and request builders
|
|
19
|
+
- **Comprehensive test coverage** — unit + E2E tests across HTTP, crypto, services, workflows; CI on every change
|
|
20
|
+
- **Zero HTTP dependencies** — native `fetch` (Node 18+); dual ESM/CJS via tsup
|
|
18
21
|
|
|
19
22
|
Requires **Node.js 18+**.
|
|
20
23
|
|
|
@@ -90,7 +93,7 @@ yarn test # Run all tests (vitest)
|
|
|
90
93
|
|
|
91
94
|
[](https://github.com/Flopsstuff/ksef-client-ts/actions/workflows/ci.yml)
|
|
92
95
|

|
|
93
|
-

|
|
96
|
+

|
|
94
97
|

|
|
95
98
|

|
|
96
99
|

|