@beliq/sdk 0.5.1 → 0.5.2
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 +24 -0
- package/README.md +14 -3
- package/dist/helpers.cjs +60 -2
- package/dist/helpers.d.cts +40 -3
- package/dist/helpers.d.ts +40 -3
- package/dist/helpers.js +50 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +6 -1836
- package/dist/index.d.ts +6 -1836
- package/dist/index.js +2 -2
- package/dist/types-BRDATaM6.d.cts +1936 -0
- package/dist/types-BRDATaM6.d.ts +1936 -0
- package/package.json +4 -4
- package/dist/constants-DFGl_MXW.d.cts +0 -94
- package/dist/constants-DFGl_MXW.d.ts +0 -94
package/dist/index.js
CHANGED
|
@@ -385,7 +385,7 @@ var Beliq = class {
|
|
|
385
385
|
async me() {
|
|
386
386
|
return this.#json({ operation: "me" });
|
|
387
387
|
}
|
|
388
|
-
/** Generate
|
|
388
|
+
/** Generate an e-invoice from an EN 16931 object. */
|
|
389
389
|
async generate(input) {
|
|
390
390
|
const res = await send(
|
|
391
391
|
this.#config,
|
|
@@ -420,7 +420,7 @@ var Beliq = class {
|
|
|
420
420
|
meta
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
/** Validate a document
|
|
423
|
+
/** Validate a document. The result names the rules that ran and, in `verificationBadgeLabel` when the API states one, the check depth. */
|
|
424
424
|
async validate(document, options = {}) {
|
|
425
425
|
return this.#json({
|
|
426
426
|
operation: "validate",
|