@getpeppr/cli 0.4.1 → 0.4.3

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/dist/index.js CHANGED
@@ -1059,7 +1059,7 @@ function validateInvoice(input) {
1059
1059
  }
1060
1060
 
1061
1061
  // ../sdk/dist/version.js
1062
- var SDK_VERSION = "1.4.0";
1062
+ var SDK_VERSION = "1.5.0";
1063
1063
 
1064
1064
  // ../sdk/dist/core/client.js
1065
1065
  function findHeaderCaseInsensitive(headers, name) {
@@ -1874,9 +1874,9 @@ ${validation.errors.map((e) => ` - ${e.field}: ${e.message}${e.suggestion ? ` (
1874
1874
  return this.adapter.getInvoiceAs(id, format);
1875
1875
  }
1876
1876
  /**
1877
- * Validate an invoice server-side using XSD and Schematron rules.
1878
- * Builds UBL XML from the input and sends it to the server for validation.
1879
- * More thorough than client-side validation catches XML-level issues.
1877
+ * Validate an invoice server-side using the getpeppr gateway's offline SDK-backed checks.
1878
+ * The gateway runs SDK validation, verifies UBL XML generation, and evaluates offline
1879
+ * Peppol business rules without sending the invoice to Storecove.
1880
1880
  *
1881
1881
  * @example
1882
1882
  * ```ts
@@ -1887,7 +1887,8 @@ ${validation.errors.map((e) => ` - ${e.field}: ${e.message}${e.suggestion ? ` (
1887
1887
  * });
1888
1888
  * console.log(result.valid, result.schematron.errors);
1889
1889
  * ```
1890
- * @throws {PeppolApiError} 501 if the gateway provider does not support server-side validation
1890
+ * Validation findings return a structured result with valid=false. Transport, auth,
1891
+ * malformed request, and unexpected gateway failures still throw PeppolApiError.
1891
1892
  */
1892
1893
  async validateServer(input) {
1893
1894
  return this.adapter.validateDocumentServer(input);