@getpeppr/cli 0.9.0 → 0.11.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/CHANGELOG.md +47 -0
- package/LICENSE +21 -0
- package/README.md +3 -2
- package/dist/index.js +561 -96
- package/dist/index.js.map +1 -1
- package/package.json +7 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,53 @@ All notable changes to `@getpeppr/cli` are documented here.
|
|
|
4
4
|
|
|
5
5
|
The CLI bundles `@getpeppr/sdk` into its published artifact (tsup `noExternal`), so `validate`, `convert` and `init` run the SDK's validators, country rules and UBL builder locally — an SDK release only reaches CLI users once the CLI is rebundled. Rebundle-only releases are listed with the SDK version they ship.
|
|
6
6
|
|
|
7
|
+
## [0.11.0] — 2026-09-04
|
|
8
|
+
|
|
9
|
+
Rebundles `@getpeppr/sdk` 5.1.0.
|
|
10
|
+
|
|
11
|
+
- **`getpeppr validate` follows BR-CL-01's two vocabularies** instead of a hand-written list of seven codes. Measured against the published 0.10.0 (which bundles SDK 5.0.0):
|
|
12
|
+
- **44 legal invoice codes stop being falsely refused** — `326` (partial invoice, named by `DE-R-017`), `382` and 42 others now pass. On 0.10.0 each exits 1.
|
|
13
|
+
- **Credit notes carrying `383`, `384`, `386`, `389` or `751` are now refused locally** with a `BR-CL-01` error suggesting legal credit-note codes. On 0.10.0 each passed local validation — every one is fatal on the network, so the document failed later and less clearly.
|
|
14
|
+
- The default is unchanged: omit `invoiceTypeCode` and the document kind decides (`380` invoice, `381` credit note).
|
|
15
|
+
- **The tarball now ships its `LICENSE` file** (the published 0.10.0 does not contain one) and the corrected README.
|
|
16
|
+
|
|
17
|
+
## [0.10.0] — 2026-08-28
|
|
18
|
+
|
|
19
|
+
Bundles SDK **5.0.0**. Minor rather than patch because inputs that used to pass
|
|
20
|
+
now change the exit code — if you gate a pipeline on `getpeppr validate`, read
|
|
21
|
+
this before upgrading.
|
|
22
|
+
|
|
23
|
+
**What `validate` now refuses:**
|
|
24
|
+
|
|
25
|
+
| Input | 0.9.0 | 0.10.0 |
|
|
26
|
+
| --- | --- | --- |
|
|
27
|
+
| `"currency": "BGN"` or `"HRK"` | accepted, exit 0 | `Invalid currency code`, exit 1 |
|
|
28
|
+
| a negative allowance or charge `amount` | accepted, exit 0 | refused, exit 1 |
|
|
29
|
+
|
|
30
|
+
Bulgaria and Croatia joined the euro, and Peppol BIS Billing 3.0.21 — mandatory
|
|
31
|
+
on the network since 2026-08-17 — dropped both codes from `BR-CL-04`/`BR-CL-05`.
|
|
32
|
+
Use `EUR`. Separately, `XCG` (Caribbean guilder) is now accepted; it is the
|
|
33
|
+
successor to `ANG`, not a replacement for either of the two dropped codes.
|
|
34
|
+
|
|
35
|
+
⚠️ **`vatCategory: "L"` and `"M"` are NOT part of this change.** Measured on the
|
|
36
|
+
published 0.9.0: `validate` already exits 1 on both, because it bundles an SDK
|
|
37
|
+
newer than 3.2.0. And `convert` without `--validate` still renders them, as it
|
|
38
|
+
should — an IGIC document is valid EN 16931, it simply cannot travel our JSON
|
|
39
|
+
send path.
|
|
40
|
+
|
|
41
|
+
**And a fix this CLI never carried.** 0.9.0 bundled SDK 4.8.0, one release
|
|
42
|
+
behind, so it missed the `baseQuantity` correction from 4.8.1. Measured on the
|
|
43
|
+
published 0.9.0 against this build, same input — a 24-unit order priced "€30 per
|
|
44
|
+
box of 12":
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
0.9.0 <cbc:LineExtensionAmount currencyID="EUR">720.00</cbc:LineExtensionAmount>
|
|
48
|
+
0.10.0 <cbc:LineExtensionAmount currencyID="EUR">60.00</cbc:LineExtensionAmount>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
720 instead of 60 is a fatal `PEPPOL-EN16931-R120` violation. `getpeppr convert`
|
|
52
|
+
gets it right now (GPR-1212).
|
|
53
|
+
|
|
7
54
|
## [0.9.0] — 2026-08-23
|
|
8
55
|
|
|
9
56
|
Before every sandbox send, the CLI now reads the exact sender profile from
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Zero Loop Labs Ltd
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ getpeppr lookup 0208:0685660237 --json
|
|
|
103
103
|
|
|
104
104
|
### `getpeppr login` — Save your API key
|
|
105
105
|
|
|
106
|
-
Store a getpeppr API key in `~/.config/getpeppr/credentials.json`
|
|
106
|
+
Store a getpeppr API key in `$XDG_CONFIG_HOME/getpeppr/credentials.json` — `~/.config/getpeppr/credentials.json` by default, `%APPDATA%\getpeppr\credentials.json` on Windows. On Unix-like systems the file is created and checked with mode `0600`; Windows has no POSIX mode. Sandbox and live keys can coexist.
|
|
107
107
|
|
|
108
108
|
```bash
|
|
109
109
|
# Interactive (recommended) — prompts for the key with masked input
|
|
@@ -149,6 +149,7 @@ getpeppr send invoice.json --prod
|
|
|
149
149
|
| `--to <peppol-id>` | Recipient Peppol ID (when no file) |
|
|
150
150
|
| `--amount <number>` | Line amount in major currency units |
|
|
151
151
|
| `--currency <iso>` | ISO 4217 code (default `EUR`) |
|
|
152
|
+
| `--country <iso>` | Recipient country (ISO 3166-1 alpha-2) when no file |
|
|
152
153
|
| `--desc <text>` | Line description |
|
|
153
154
|
| `--attachment` | Attach the bundled test PDF |
|
|
154
155
|
| `--watch` | Poll status until terminal (60s timeout) |
|
|
@@ -189,7 +190,7 @@ If no legal entity exists in the environment yet, `whoami` says so and points to
|
|
|
189
190
|
getpeppr logout
|
|
190
191
|
```
|
|
191
192
|
|
|
192
|
-
Removes
|
|
193
|
+
Removes the credentials file. No-op if the file doesn't exist.
|
|
193
194
|
|
|
194
195
|
## Exit codes
|
|
195
196
|
|