@orvello/sdk 0.7.3 → 0.7.5
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 +96 -2
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +1221 -8
- package/dist/contract.d.ts +1221 -8
- package/dist/contract.js +96 -3
- package/dist/contract.js.map +1 -1
- package/dist/index.cjs +9 -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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +6123 -105
- package/package.json +1 -1
package/CONTRACT_SHA256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
29bbbf64365d404e54e1596605e4d1c7fe1b86ed99797a52f04d40053b721a0e
|
package/dist/contract.cjs
CHANGED
|
@@ -34,7 +34,8 @@ var apiMountPrefixes = {
|
|
|
34
34
|
"/exports",
|
|
35
35
|
"/invoices",
|
|
36
36
|
"/managing-companies",
|
|
37
|
-
"/oauth"
|
|
37
|
+
"/oauth",
|
|
38
|
+
"/tax-years"
|
|
38
39
|
]
|
|
39
40
|
};
|
|
40
41
|
var apiGroups = {
|
|
@@ -161,6 +162,10 @@ var apiGroups = {
|
|
|
161
162
|
"key": "managing_company_logos",
|
|
162
163
|
"module": "./features/routes.managing_company_logos"
|
|
163
164
|
},
|
|
165
|
+
{
|
|
166
|
+
"key": "tax_years",
|
|
167
|
+
"module": "./features/routes.tax_years"
|
|
168
|
+
},
|
|
164
169
|
{
|
|
165
170
|
"key": "work_tracking",
|
|
166
171
|
"module": "./features/routes.work_tracking"
|
|
@@ -275,6 +280,10 @@ var apiGroups = {
|
|
|
275
280
|
"key": "settings",
|
|
276
281
|
"module": "./base/routes.settings"
|
|
277
282
|
},
|
|
283
|
+
{
|
|
284
|
+
"key": "tax_years",
|
|
285
|
+
"module": "./features/routes.tax_years"
|
|
286
|
+
},
|
|
278
287
|
{
|
|
279
288
|
"key": "user_activity",
|
|
280
289
|
"module": "./base/routes.user_activity"
|
|
@@ -2235,7 +2244,21 @@ var apiRoutes_bookkeeping = {
|
|
|
2235
2244
|
meta: {
|
|
2236
2245
|
tags: ["bookkeeping", "payments-external"],
|
|
2237
2246
|
summary: "Settle invoice via external API",
|
|
2238
|
-
description: "One-shot settlement for shop/payment-provider flows:
|
|
2247
|
+
description: "One-shot settlement for shop/payment-provider flows. Preferred contract: grossAmount (customer payment, settles the invoice), feeAmount + feeProvider + feeReference (provider fee, booked as expense, never as customer discount), paidAt (actual payment time) and, for a payment currency other than the invoice currency, originalAmount/originalCurrency (documented gross in invoice currency; realized FX difference is recorded). Legacy contract (payoutAmount + bookedAt, optional closeGapStrategy=discount) keeps working unchanged; existing discounts are not reinterpreted. A changed fee for an already used reference is rejected with 409: use /settle-invoice/fee-correction.",
|
|
2248
|
+
bodyContentType: "application/json",
|
|
2249
|
+
validated: { "params": false, "query": false, "body": true }
|
|
2250
|
+
},
|
|
2251
|
+
types: null
|
|
2252
|
+
},
|
|
2253
|
+
// Contract source: explicit
|
|
2254
|
+
"bookkeeping_payments_settlement_fee_correction_external": {
|
|
2255
|
+
method: "POST",
|
|
2256
|
+
path: "/bookkeeping/payments/external/settle-invoice/fee-correction",
|
|
2257
|
+
auth: { "type": "unified_bearer", "allowUserSession": false, "allowOAuth2": true, "allowApiKey": true, "requireRole": "editor", "scopes": ["payments:write", "invoices:write"] },
|
|
2258
|
+
meta: {
|
|
2259
|
+
tags: ["bookkeeping", "payments-external"],
|
|
2260
|
+
summary: "Correct the provider fee of an external settlement",
|
|
2261
|
+
description: "Later provider fee change (e.g. fee refund) on a settlement made with grossAmount/feeAmount. The original payment stays unchanged; the difference is booked on correctedAt as its own account movement with a signed fee receipt. Idempotent per correctionRef. Legacy net-payout settlements are refused (422): their fee was never documented.",
|
|
2239
2262
|
bodyContentType: "application/json",
|
|
2240
2263
|
validated: { "params": false, "query": false, "body": true }
|
|
2241
2264
|
},
|
|
@@ -5809,6 +5832,75 @@ var apiRoutes_settings = {
|
|
|
5809
5832
|
}
|
|
5810
5833
|
};
|
|
5811
5834
|
|
|
5835
|
+
// src/generated/api/features/routes.tax_years.ts
|
|
5836
|
+
var apiRoutes_tax_years = {
|
|
5837
|
+
// Contract source: explicit
|
|
5838
|
+
"tax_years_get": {
|
|
5839
|
+
method: "GET",
|
|
5840
|
+
path: "/tax-years/:year",
|
|
5841
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5842
|
+
meta: {
|
|
5843
|
+
tags: ["tax-years"],
|
|
5844
|
+
summary: "Pers\xF6nlichen Steuerjahr-Arbeitsbereich lesen",
|
|
5845
|
+
description: "Lesend, legt keine Daten an. Nur der angemeldete Nutzer, unabh\xE4ngig von der ausgew\xE4hlten Firma. Liefert Aufgaben, Blocker, Quellen und aktuelle betriebliche Vorschauen mit erneut gepr\xFCften Zugriffsrechten. Fehlerhafte Daten sind unbekannt, niemals Null. Kein Steuerbescheid und keine Abgabe.",
|
|
5846
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5847
|
+
},
|
|
5848
|
+
types: null
|
|
5849
|
+
},
|
|
5850
|
+
// Contract source: explicit
|
|
5851
|
+
"tax_years_configure": {
|
|
5852
|
+
method: "PUT",
|
|
5853
|
+
path: "/tax-years/:year/configuration",
|
|
5854
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5855
|
+
meta: {
|
|
5856
|
+
tags: ["tax-years"],
|
|
5857
|
+
summary: "Pers\xF6nliche Situation und eigene Betriebe zuordnen",
|
|
5858
|
+
description: "Ersetzt die vollst\xE4ndige Konfiguration eines Jahres. expectedRevision aus GET, neue requestId pro \xC4nderung; bei Transportfehler dieselbe Anfrage wiederholen. 409 bei konkurrierender \xC4nderung. Betriebe erfordern unbeschr\xE4nkten Verwaltungszugriff und die ausdr\xFCckliche Zuordnung als eigener Einzelbetrieb. Alte Pr\xFCfungen und Abgabereferenzen bleiben nachvollziehbar.",
|
|
5859
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5860
|
+
},
|
|
5861
|
+
types: null
|
|
5862
|
+
},
|
|
5863
|
+
// Contract source: explicit
|
|
5864
|
+
"tax_years_review": {
|
|
5865
|
+
method: "POST",
|
|
5866
|
+
path: "/tax-years/:year/reviews",
|
|
5867
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5868
|
+
meta: {
|
|
5869
|
+
tags: ["tax-years"],
|
|
5870
|
+
summary: "Pr\xFCfung eines Vorbereitungsschritts dokumentieren oder wieder \xF6ffnen",
|
|
5871
|
+
description: "taskKey und basisFingerprint kommen aus GET. Nur ausdr\xFCcklich gepr\xFCfte Schritte best\xE4tigen; note benennt gepr\xFCfte Nachweise oder offene Punkte. Bei business:<id>:tax_checks ist corrections zwingend, auch als leere Liste; ersetzt die Korrekturen dieses Betriebs. Jede Korrektur verlangt betriebliche Zuordnung, Begr\xFCndung und Belegreferenz. euer-Pr\xFCfung archiviert die Berechnung. reopen einer Abgabe erh\xE4lt die Referenz und markiert erneuten Pr\xFCfbedarf. 409 bei ge\xE4nderter Grundlage, 422 bei offenen Voraussetzungen. Kein automatisches Abschlie\xDFen aufgrund vorhandener Zahlen.",
|
|
5872
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5873
|
+
},
|
|
5874
|
+
types: null
|
|
5875
|
+
},
|
|
5876
|
+
// Contract source: explicit
|
|
5877
|
+
"tax_years_record_submission": {
|
|
5878
|
+
method: "POST",
|
|
5879
|
+
path: "/tax-years/:year/submissions",
|
|
5880
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5881
|
+
meta: {
|
|
5882
|
+
tags: ["tax-years"],
|
|
5883
|
+
summary: "Bereits erfolgte externe Abgabe dokumentieren",
|
|
5884
|
+
description: "Speichert Datum und \xDCbermittlungsreferenz. Sendet nichts an ELSTER. Auch eine Abgabe mit offenen Punkten kann ehrlich erfasst werden; sie wird als pr\xFCfbed\xFCrftig angezeigt. Wiederholte Korrekturen erzeugen eine Revision. Abgabe ist kein Nachweis steuerlicher Vollst\xE4ndigkeit.",
|
|
5885
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5886
|
+
},
|
|
5887
|
+
types: null
|
|
5888
|
+
},
|
|
5889
|
+
// Contract source: explicit
|
|
5890
|
+
"tax_years_history": {
|
|
5891
|
+
method: "GET",
|
|
5892
|
+
path: "/tax-years/:year/history",
|
|
5893
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5894
|
+
meta: {
|
|
5895
|
+
tags: ["tax-years"],
|
|
5896
|
+
summary: "Pers\xF6nlichen \xC4nderungsverlauf lesen",
|
|
5897
|
+
description: "H\xF6chstens 50 Revisionen, absteigend. nextBeforeRevision als beforeRevision f\xFCr die n\xE4chste Seite. Ausschlie\xDFlich der eigene Verlauf.",
|
|
5898
|
+
validated: { "params": true, "query": true, "body": false }
|
|
5899
|
+
},
|
|
5900
|
+
types: null
|
|
5901
|
+
}
|
|
5902
|
+
};
|
|
5903
|
+
|
|
5812
5904
|
// src/generated/api/base/routes.user_activity.ts
|
|
5813
5905
|
var apiRoutes_user_activity = {
|
|
5814
5906
|
// Contract source: explicit
|
|
@@ -6207,6 +6299,7 @@ var apiRoutes = {
|
|
|
6207
6299
|
...apiRoutes_roles,
|
|
6208
6300
|
...apiRoutes_security,
|
|
6209
6301
|
...apiRoutes_settings,
|
|
6302
|
+
...apiRoutes_tax_years,
|
|
6210
6303
|
...apiRoutes_user_activity,
|
|
6211
6304
|
...apiRoutes_users,
|
|
6212
6305
|
...apiRoutes_webhooks,
|
|
@@ -6243,6 +6336,7 @@ exports.apiRoutes_permissions = apiRoutes_permissions;
|
|
|
6243
6336
|
exports.apiRoutes_roles = apiRoutes_roles;
|
|
6244
6337
|
exports.apiRoutes_security = apiRoutes_security;
|
|
6245
6338
|
exports.apiRoutes_settings = apiRoutes_settings;
|
|
6339
|
+
exports.apiRoutes_tax_years = apiRoutes_tax_years;
|
|
6246
6340
|
exports.apiRoutes_user_activity = apiRoutes_user_activity;
|
|
6247
6341
|
exports.apiRoutes_users = apiRoutes_users;
|
|
6248
6342
|
exports.apiRoutes_webhooks = apiRoutes_webhooks;
|