@orvello/sdk 0.7.5 → 0.7.6
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/dist/contract.cjs +15 -2
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +97 -8
- package/dist/contract.d.ts +97 -8
- package/dist/contract.js +15 -2
- package/dist/contract.js.map +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +171 -4
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -4429,7 +4429,7 @@ var apiRoutes_invoices_external = {
|
|
|
4429
4429
|
meta: {
|
|
4430
4430
|
tags: ["invoices-external"],
|
|
4431
4431
|
summary: "Update invoice status (external API)",
|
|
4432
|
-
description:
|
|
4432
|
+
description: 'Changes invoice status (e.g., mark as paid). State machine rules are enforced server-side. GoBD-safe: issued invoices cannot be cancelled directly; use credit note/cancellation endpoints instead. A paid status set here is stored with paidSource "external"; the optional source (api, sync, webhook) is kept in the audit log only.',
|
|
4433
4433
|
validated: { "params": true, "query": false, "body": true }
|
|
4434
4434
|
},
|
|
4435
4435
|
types: null
|
|
@@ -4455,7 +4455,7 @@ var apiRoutes_invoices_external = {
|
|
|
4455
4455
|
meta: {
|
|
4456
4456
|
tags: ["invoices-external"],
|
|
4457
4457
|
summary: "Issue credit note (external API)",
|
|
4458
|
-
description: "Issues a GoBD-compliant credit note or cancellation invoice. Generates PDF and creates an immutable document. Returns the new correction invoice.",
|
|
4458
|
+
description: "Issues a GoBD-compliant credit note or cancellation invoice. Generates PDF and creates an immutable document. Returns the new correction invoice. Optional idempotencyKey (max 200, e.g. the refund id): a retry with the same key on the same invoice returns the correction already issued (201, replayed: true) instead of booking a second one; the same key with a different body returns 409 IDEMPOTENCY_CONFLICT. Keys do not expire.",
|
|
4459
4459
|
validated: { "params": true, "query": false, "body": true }
|
|
4460
4460
|
},
|
|
4461
4461
|
types: null
|
|
@@ -5296,6 +5296,19 @@ var apiRoutes_managing_companies = {
|
|
|
5296
5296
|
types: null
|
|
5297
5297
|
},
|
|
5298
5298
|
// Contract source: explicit
|
|
5299
|
+
"managing_companies_transfer_owner": {
|
|
5300
|
+
method: "PUT",
|
|
5301
|
+
path: "/managing-companies/:id/owner",
|
|
5302
|
+
auth: { "type": "frontend_permission_http", "permission": "bookkeeping_access" },
|
|
5303
|
+
meta: {
|
|
5304
|
+
tags: ["managing-companies"],
|
|
5305
|
+
summary: "Besitz einer Firma uebergeben",
|
|
5306
|
+
description: "Uebergibt den Besitz einer Managing Company an einen anderen Admin. Die Firma zaehlt nur gegen den Plan ihres Besitzers (Firmenzahl, Rechnungen je Monat, Speicher). Nur der jetzige Besitzer (oder ein Plattform-Admin) darf uebergeben; der neue Besitzer muss unbefristeter Admin sein und Platz in seinem Plan haben (sonst 403 PLAN_LIMIT_REACHED). Fehler: 403 COMPANY_OWNERSHIP_FORBIDDEN, 404 COMPANY_NOT_FOUND, 422 COMPANY_OWNER_MUST_BE_ADMIN. Erfordert `bookkeeping_access`.",
|
|
5307
|
+
validated: { "params": true, "query": false, "body": true }
|
|
5308
|
+
},
|
|
5309
|
+
types: null
|
|
5310
|
+
},
|
|
5311
|
+
// Contract source: explicit
|
|
5299
5312
|
"managing_companies_delete": {
|
|
5300
5313
|
method: "DELETE",
|
|
5301
5314
|
path: "/managing-companies/:id",
|