@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/dist/contract.js
CHANGED
|
@@ -32,7 +32,8 @@ var apiMountPrefixes = {
|
|
|
32
32
|
"/exports",
|
|
33
33
|
"/invoices",
|
|
34
34
|
"/managing-companies",
|
|
35
|
-
"/oauth"
|
|
35
|
+
"/oauth",
|
|
36
|
+
"/tax-years"
|
|
36
37
|
]
|
|
37
38
|
};
|
|
38
39
|
var apiGroups = {
|
|
@@ -159,6 +160,10 @@ var apiGroups = {
|
|
|
159
160
|
"key": "managing_company_logos",
|
|
160
161
|
"module": "./features/routes.managing_company_logos"
|
|
161
162
|
},
|
|
163
|
+
{
|
|
164
|
+
"key": "tax_years",
|
|
165
|
+
"module": "./features/routes.tax_years"
|
|
166
|
+
},
|
|
162
167
|
{
|
|
163
168
|
"key": "work_tracking",
|
|
164
169
|
"module": "./features/routes.work_tracking"
|
|
@@ -273,6 +278,10 @@ var apiGroups = {
|
|
|
273
278
|
"key": "settings",
|
|
274
279
|
"module": "./base/routes.settings"
|
|
275
280
|
},
|
|
281
|
+
{
|
|
282
|
+
"key": "tax_years",
|
|
283
|
+
"module": "./features/routes.tax_years"
|
|
284
|
+
},
|
|
276
285
|
{
|
|
277
286
|
"key": "user_activity",
|
|
278
287
|
"module": "./base/routes.user_activity"
|
|
@@ -2233,7 +2242,21 @@ var apiRoutes_bookkeeping = {
|
|
|
2233
2242
|
meta: {
|
|
2234
2243
|
tags: ["bookkeeping", "payments-external"],
|
|
2235
2244
|
summary: "Settle invoice via external API",
|
|
2236
|
-
description: "One-shot settlement for shop/payment-provider flows:
|
|
2245
|
+
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.",
|
|
2246
|
+
bodyContentType: "application/json",
|
|
2247
|
+
validated: { "params": false, "query": false, "body": true }
|
|
2248
|
+
},
|
|
2249
|
+
types: null
|
|
2250
|
+
},
|
|
2251
|
+
// Contract source: explicit
|
|
2252
|
+
"bookkeeping_payments_settlement_fee_correction_external": {
|
|
2253
|
+
method: "POST",
|
|
2254
|
+
path: "/bookkeeping/payments/external/settle-invoice/fee-correction",
|
|
2255
|
+
auth: { "type": "unified_bearer", "allowUserSession": false, "allowOAuth2": true, "allowApiKey": true, "requireRole": "editor", "scopes": ["payments:write", "invoices:write"] },
|
|
2256
|
+
meta: {
|
|
2257
|
+
tags: ["bookkeeping", "payments-external"],
|
|
2258
|
+
summary: "Correct the provider fee of an external settlement",
|
|
2259
|
+
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.",
|
|
2237
2260
|
bodyContentType: "application/json",
|
|
2238
2261
|
validated: { "params": false, "query": false, "body": true }
|
|
2239
2262
|
},
|
|
@@ -5807,6 +5830,75 @@ var apiRoutes_settings = {
|
|
|
5807
5830
|
}
|
|
5808
5831
|
};
|
|
5809
5832
|
|
|
5833
|
+
// src/generated/api/features/routes.tax_years.ts
|
|
5834
|
+
var apiRoutes_tax_years = {
|
|
5835
|
+
// Contract source: explicit
|
|
5836
|
+
"tax_years_get": {
|
|
5837
|
+
method: "GET",
|
|
5838
|
+
path: "/tax-years/:year",
|
|
5839
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5840
|
+
meta: {
|
|
5841
|
+
tags: ["tax-years"],
|
|
5842
|
+
summary: "Pers\xF6nlichen Steuerjahr-Arbeitsbereich lesen",
|
|
5843
|
+
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.",
|
|
5844
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5845
|
+
},
|
|
5846
|
+
types: null
|
|
5847
|
+
},
|
|
5848
|
+
// Contract source: explicit
|
|
5849
|
+
"tax_years_configure": {
|
|
5850
|
+
method: "PUT",
|
|
5851
|
+
path: "/tax-years/:year/configuration",
|
|
5852
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5853
|
+
meta: {
|
|
5854
|
+
tags: ["tax-years"],
|
|
5855
|
+
summary: "Pers\xF6nliche Situation und eigene Betriebe zuordnen",
|
|
5856
|
+
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.",
|
|
5857
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5858
|
+
},
|
|
5859
|
+
types: null
|
|
5860
|
+
},
|
|
5861
|
+
// Contract source: explicit
|
|
5862
|
+
"tax_years_review": {
|
|
5863
|
+
method: "POST",
|
|
5864
|
+
path: "/tax-years/:year/reviews",
|
|
5865
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5866
|
+
meta: {
|
|
5867
|
+
tags: ["tax-years"],
|
|
5868
|
+
summary: "Pr\xFCfung eines Vorbereitungsschritts dokumentieren oder wieder \xF6ffnen",
|
|
5869
|
+
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.",
|
|
5870
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5871
|
+
},
|
|
5872
|
+
types: null
|
|
5873
|
+
},
|
|
5874
|
+
// Contract source: explicit
|
|
5875
|
+
"tax_years_record_submission": {
|
|
5876
|
+
method: "POST",
|
|
5877
|
+
path: "/tax-years/:year/submissions",
|
|
5878
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5879
|
+
meta: {
|
|
5880
|
+
tags: ["tax-years"],
|
|
5881
|
+
summary: "Bereits erfolgte externe Abgabe dokumentieren",
|
|
5882
|
+
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.",
|
|
5883
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5884
|
+
},
|
|
5885
|
+
types: null
|
|
5886
|
+
},
|
|
5887
|
+
// Contract source: explicit
|
|
5888
|
+
"tax_years_history": {
|
|
5889
|
+
method: "GET",
|
|
5890
|
+
path: "/tax-years/:year/history",
|
|
5891
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5892
|
+
meta: {
|
|
5893
|
+
tags: ["tax-years"],
|
|
5894
|
+
summary: "Pers\xF6nlichen \xC4nderungsverlauf lesen",
|
|
5895
|
+
description: "H\xF6chstens 50 Revisionen, absteigend. nextBeforeRevision als beforeRevision f\xFCr die n\xE4chste Seite. Ausschlie\xDFlich der eigene Verlauf.",
|
|
5896
|
+
validated: { "params": true, "query": true, "body": false }
|
|
5897
|
+
},
|
|
5898
|
+
types: null
|
|
5899
|
+
}
|
|
5900
|
+
};
|
|
5901
|
+
|
|
5810
5902
|
// src/generated/api/base/routes.user_activity.ts
|
|
5811
5903
|
var apiRoutes_user_activity = {
|
|
5812
5904
|
// Contract source: explicit
|
|
@@ -6205,12 +6297,13 @@ var apiRoutes = {
|
|
|
6205
6297
|
...apiRoutes_roles,
|
|
6206
6298
|
...apiRoutes_security,
|
|
6207
6299
|
...apiRoutes_settings,
|
|
6300
|
+
...apiRoutes_tax_years,
|
|
6208
6301
|
...apiRoutes_user_activity,
|
|
6209
6302
|
...apiRoutes_users,
|
|
6210
6303
|
...apiRoutes_webhooks,
|
|
6211
6304
|
...apiRoutes_work_tracking
|
|
6212
6305
|
};
|
|
6213
6306
|
|
|
6214
|
-
export { apiGroups, apiMountPrefixes, apiRoutes, apiRoutes_admin, apiRoutes_amp_mail, apiRoutes_app_info, apiRoutes_auth, apiRoutes_bookkeeping, apiRoutes_currency_rates, apiRoutes_customer_companies, apiRoutes_customer_companies_external, apiRoutes_document_library, apiRoutes_documents, apiRoutes_dunning_external, apiRoutes_enterprise, apiRoutes_entitlements, apiRoutes_exports, apiRoutes_internal, apiRoutes_invoices, apiRoutes_invoices_external, apiRoutes_logs, apiRoutes_managing_companies, apiRoutes_managing_companies_external, apiRoutes_managing_company_logos, apiRoutes_oauth2, apiRoutes_oauth2_external, apiRoutes_permissions, apiRoutes_roles, apiRoutes_security, apiRoutes_settings, apiRoutes_user_activity, apiRoutes_users, apiRoutes_webhooks, apiRoutes_work_tracking };
|
|
6307
|
+
export { apiGroups, apiMountPrefixes, apiRoutes, apiRoutes_admin, apiRoutes_amp_mail, apiRoutes_app_info, apiRoutes_auth, apiRoutes_bookkeeping, apiRoutes_currency_rates, apiRoutes_customer_companies, apiRoutes_customer_companies_external, apiRoutes_document_library, apiRoutes_documents, apiRoutes_dunning_external, apiRoutes_enterprise, apiRoutes_entitlements, apiRoutes_exports, apiRoutes_internal, apiRoutes_invoices, apiRoutes_invoices_external, apiRoutes_logs, apiRoutes_managing_companies, apiRoutes_managing_companies_external, apiRoutes_managing_company_logos, apiRoutes_oauth2, apiRoutes_oauth2_external, apiRoutes_permissions, apiRoutes_roles, apiRoutes_security, apiRoutes_settings, apiRoutes_tax_years, apiRoutes_user_activity, apiRoutes_users, apiRoutes_webhooks, apiRoutes_work_tracking };
|
|
6215
6308
|
//# sourceMappingURL=contract.js.map
|
|
6216
6309
|
//# sourceMappingURL=contract.js.map
|