@orvello/sdk 0.4.0 → 0.5.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/CONTRACT_SHA256 +1 -1
- package/README.md +10 -0
- package/dist/contract.cjs +13 -0
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +75 -1
- package/dist/contract.d.ts +75 -1
- package/dist/contract.js +13 -0
- package/dist/contract.js.map +1 -1
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +315 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// src/contract-hash.ts
|
|
4
|
-
var CONTRACT_SHA256 = "
|
|
4
|
+
var CONTRACT_SHA256 = "02a65db9ad216d195f560a2e4f7cdd7a19a38814362b4c89551188796b017768";
|
|
5
5
|
|
|
6
6
|
// src/diagnose.ts
|
|
7
|
-
var SDK_VERSION = "0.
|
|
7
|
+
var SDK_VERSION = "0.5.0" ;
|
|
8
8
|
function normalizeBaseUrl(raw) {
|
|
9
9
|
const trimmed = raw.trim();
|
|
10
10
|
if (!trimmed) throw new Error("Base URL cannot be empty");
|
|
@@ -412,6 +412,7 @@ var ROUTE_INDEX = {
|
|
|
412
412
|
"invoices_list_overdue": ["GET", "/invoices/overdue", "b", "frontend_permission_http", 2],
|
|
413
413
|
"invoices_list_pending": ["GET", "/invoices/pending", "b", "frontend_permission_http", 2],
|
|
414
414
|
"invoices_overdue_external": ["GET", "/invoices/external/overdue", "b", "unified_bearer", 2, ["invoices:read"]],
|
|
415
|
+
"invoices_payment_events_external": ["GET", "/invoices/external/:invoiceId/payment-events", "b", "unified_bearer", 3, ["invoices:read"]],
|
|
415
416
|
"invoices_payment_evidence_external": ["GET", "/invoices/external/:invoiceId/payment-evidence", "b", "unified_bearer", 1, ["invoices:read"]],
|
|
416
417
|
"invoices_payment_instructions_external": ["GET", "/invoices/external/:invoiceId/payment-instructions", "b", "unified_bearer", 1, ["invoices:read"]],
|
|
417
418
|
"invoices_payment_reconciliation": ["GET", "/invoices/:invoiceId/payment-reconciliation", "b", "frontend_permission_http", 1],
|
|
@@ -735,7 +736,7 @@ function buildPath(operationId, params) {
|
|
|
735
736
|
}
|
|
736
737
|
|
|
737
738
|
// src/capabilities.ts
|
|
738
|
-
var SDK_VERSION2 = "0.
|
|
739
|
+
var SDK_VERSION2 = "0.5.0" ;
|
|
739
740
|
var CLIENT_MANAGEMENT_OPS = [
|
|
740
741
|
"oauth2_external_clients_list",
|
|
741
742
|
"oauth2_external_clients_get",
|
|
@@ -1511,6 +1512,12 @@ var OrvelloClient = class _OrvelloClient {
|
|
|
1511
1512
|
}
|
|
1512
1513
|
// ── Invoices ─────────────────────────────────────────────────────────────
|
|
1513
1514
|
invoices = {
|
|
1515
|
+
/** Durable per-invoice replay. Commit the cursor with processing; re-read evidence before commerce actions. */
|
|
1516
|
+
getPaymentEvents: (id, query, options) => this.request(`/invoices/external/${id}/payment-events`, {
|
|
1517
|
+
method: "GET",
|
|
1518
|
+
query,
|
|
1519
|
+
...options
|
|
1520
|
+
}),
|
|
1514
1521
|
/** Frozen recipient and reference; historical invoices without a snapshot return 409. */
|
|
1515
1522
|
getPaymentInstructions: (id, options) => this.request(`/invoices/external/${id}/payment-instructions`, {
|
|
1516
1523
|
method: "GET",
|