@orvello/sdk 0.2.2 → 0.2.4
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 +712 -89
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +2421 -10979
- package/dist/contract.d.ts +2421 -10979
- package/dist/contract.js +709 -89
- package/dist/contract.js.map +1 -1
- package/dist/index.cjs +36 -22
- 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 +36 -22
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +37509 -31865
- 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 = "bfd85f17c2aa38bf82c759d02eefaecde34d402f7704d074e5fcdc8cb35c3990";
|
|
5
5
|
|
|
6
6
|
// src/diagnose.ts
|
|
7
|
-
var SDK_VERSION = "0.2.
|
|
7
|
+
var SDK_VERSION = "0.2.4" ;
|
|
8
8
|
function normalizeBaseUrl(raw) {
|
|
9
9
|
const trimmed = raw.trim();
|
|
10
10
|
if (!trimmed) throw new Error("Base URL cannot be empty");
|
|
@@ -185,10 +185,9 @@ function mapPaymentAccountToBankDetails(account) {
|
|
|
185
185
|
|
|
186
186
|
// src/route-index.generated.ts
|
|
187
187
|
var ROUTE_INDEX = {
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"POST__api_amp_proxy_key": ["POST", "/api/amp-proxy/:key", "n", "public", 0],
|
|
188
|
+
"GET__api_amp_mail_brand_logo": ["GET", "/api/amp-mail/brands/:slug/logo", "n", "public", 1],
|
|
189
|
+
"GET__api_amp_mail_file": ["GET", "/api/amp-mail/files/:token", "n", "public", 1],
|
|
190
|
+
"GET__security_public": ["GET", "/security/public", "k", "x_api_key_https", 0],
|
|
192
191
|
"admin_vat_create_system_settings": ["POST", "/admin/vat/system-settings", "b", "frontend_permission_http", 4],
|
|
193
192
|
"admin_vat_get_company_settings_history": ["GET", "/admin/vat/company/:companyId/settings-history", "b", "frontend_permission_http", 1],
|
|
194
193
|
"admin_vat_get_system_settings": ["GET", "/admin/vat/system-settings", "b", "frontend_permission_http", 0],
|
|
@@ -199,6 +198,16 @@ var ROUTE_INDEX = {
|
|
|
199
198
|
"app_info_health": ["GET", "/app-info/health", "n", "public", 0],
|
|
200
199
|
"app_info_manifest": ["GET", "/app-info/manifest", "n", "public", 0],
|
|
201
200
|
"app_info_own_permissions_get": ["GET", "/app-info/ownPermissions", "b", "frontend_bearer_http", 2],
|
|
201
|
+
"auth_login": ["POST", "/auth/login", "n", "public", 4],
|
|
202
|
+
"auth_logout": ["POST", "/auth/logout", "n", "public", 4],
|
|
203
|
+
"auth_me": ["GET", "/auth/me", "b", "frontend_bearer_http", 2],
|
|
204
|
+
"auth_me_profile_update": ["PATCH", "/auth/me/profile", "b", "frontend_bearer_http", 4],
|
|
205
|
+
"auth_push_token_upsert": ["POST", "/auth/push-token", "b", "frontend_bearer_http", 4],
|
|
206
|
+
"auth_refresh": ["POST", "/auth/refresh", "n", "public", 4],
|
|
207
|
+
"auth_register": ["POST", "/auth/register", "n", "public", 4],
|
|
208
|
+
"auth_verify_email_confirm": ["POST", "/auth/verify-email/confirm", "n", "public", 4],
|
|
209
|
+
"auth_verify_email_landing": ["GET", "/auth/verify-email", "n", "public", 2],
|
|
210
|
+
"auth_verify_email_request": ["POST", "/auth/verify-email/request", "b", "frontend_bearer_http", 4],
|
|
202
211
|
"bookkeeping_assets_add_cost_component": ["POST", "/bookkeeping/assets/:assetId/cost-components", "b", "frontend_permission_http", 5],
|
|
203
212
|
"bookkeeping_assets_apply_sonderafa": ["POST", "/bookkeeping/assets/:assetId/sonderafa", "b", "frontend_permission_http", 5],
|
|
204
213
|
"bookkeeping_assets_create": ["POST", "/bookkeeping/assets", "b", "frontend_permission_http", 4],
|
|
@@ -349,19 +358,22 @@ var ROUTE_INDEX = {
|
|
|
349
358
|
"enterprise_onboarding_complete_step": ["POST", "/apps/enterprise/onboarding/complete-step", "b", "frontend_permission_http", 4],
|
|
350
359
|
"enterprise_onboarding_skip_step": ["POST", "/apps/enterprise/onboarding/skip-step", "b", "frontend_permission_http", 4],
|
|
351
360
|
"enterprise_onboarding_state_get": ["GET", "/apps/enterprise/onboarding/state", "b", "frontend_permission_http", 2],
|
|
352
|
-
"entitlements_assign": ["POST", "/entitlements", "b", "unified_bearer", 4
|
|
353
|
-
"entitlements_context_get_by_shop_assignment": ["GET", "/entitlements/context/by-shop-assignment/:shopAssignmentId", "b", "unified_bearer", 1
|
|
354
|
-
"entitlements_getAll": ["GET", "/entitlements/getAll", "b", "unified_bearer", 2
|
|
355
|
-
"entitlements_getAssigned": ["GET", "/entitlements/assigned", "b", "unified_bearer", 2
|
|
356
|
-
"entitlements_getById": ["GET", "/entitlements/:id", "b", "unified_bearer", 1
|
|
357
|
-
"entitlements_getUserEntitlements": ["GET", "/entitlements/user/:userId", "b", "unified_bearer", 1
|
|
358
|
-
"entitlements_get_state": ["GET", "/entitlements/:userId/:type/:identifier", "b", "unified_bearer", 1
|
|
359
|
-
"entitlements_list": ["GET", "/entitlements", "b", "unified_bearer", 2
|
|
360
|
-
"entitlements_revoke": ["DELETE", "/entitlements/:userId/:type/:identifier", "b", "unified_bearer", 1
|
|
361
|
-
"entitlements_update_state": ["PUT", "/entitlements/:userId/:type/:identifier", "b", "unified_bearer", 5
|
|
362
|
-
"entitlements_usage_overages_pull": ["GET", "/entitlements/usage-overages", "b", "unified_bearer", 2
|
|
361
|
+
"entitlements_assign": ["POST", "/entitlements", "b", "unified_bearer", 4],
|
|
362
|
+
"entitlements_context_get_by_shop_assignment": ["GET", "/entitlements/context/by-shop-assignment/:shopAssignmentId", "b", "unified_bearer", 1],
|
|
363
|
+
"entitlements_getAll": ["GET", "/entitlements/getAll", "b", "unified_bearer", 2],
|
|
364
|
+
"entitlements_getAssigned": ["GET", "/entitlements/assigned", "b", "unified_bearer", 2],
|
|
365
|
+
"entitlements_getById": ["GET", "/entitlements/:id", "b", "unified_bearer", 1],
|
|
366
|
+
"entitlements_getUserEntitlements": ["GET", "/entitlements/user/:userId", "b", "unified_bearer", 1],
|
|
367
|
+
"entitlements_get_state": ["GET", "/entitlements/:userId/:type/:identifier", "b", "unified_bearer", 1],
|
|
368
|
+
"entitlements_list": ["GET", "/entitlements", "b", "unified_bearer", 2],
|
|
369
|
+
"entitlements_revoke": ["DELETE", "/entitlements/:userId/:type/:identifier", "b", "unified_bearer", 1],
|
|
370
|
+
"entitlements_update_state": ["PUT", "/entitlements/:userId/:type/:identifier", "b", "unified_bearer", 5],
|
|
371
|
+
"entitlements_usage_overages_pull": ["GET", "/entitlements/usage-overages", "b", "unified_bearer", 2],
|
|
363
372
|
"exports_datev_buchungsstapel": ["GET", "/exports/bookkeeping/datev/buchungsstapel", "b", "frontend_permission_http", 0],
|
|
364
373
|
"exports_datev_metadata": ["GET", "/exports/bookkeeping/datev/metadata", "b", "frontend_permission_http", 0],
|
|
374
|
+
"internal_users_delete": ["DELETE", "/internal/users/:externalUserId", "k", "x_api_key_https", 1],
|
|
375
|
+
"internal_users_provision": ["POST", "/internal/users/provision", "k", "x_api_key_https", 4],
|
|
376
|
+
"internal_users_sync": ["POST", "/internal/users/sync", "k", "x_api_key_https", 4],
|
|
365
377
|
"invoice_dunning_delete_notice": ["DELETE", "/invoices/dunning/:invoiceId/notices/:noticeId", "b", "frontend_permission_http", 1],
|
|
366
378
|
"invoice_dunning_get_settings": ["GET", "/invoices/dunning/settings", "b", "frontend_permission_http", 2],
|
|
367
379
|
"invoice_dunning_issue": ["POST", "/invoices/dunning/:invoiceId/issue", "b", "frontend_permission_http", 5],
|
|
@@ -566,7 +578,7 @@ var ROUTE_INDEX = {
|
|
|
566
578
|
"users_update_external": ["PUT", "/users/update/external/:frontendUserId", "b", "frontend_bearer_http", 5],
|
|
567
579
|
"webhooks_delete": ["DELETE", "/webhooks/delete/:webhookId", "b", "frontend_permission_http", 1],
|
|
568
580
|
"webhooks_delete_bulk": ["DELETE", "/webhooks/delete/mass/:webhookIds", "b", "frontend_permission_http", 1],
|
|
569
|
-
"
|
|
581
|
+
"webhooks_search": ["GET", "/webhooks/search", "b", "frontend_permission_http", 2],
|
|
570
582
|
"work_tracking_approve": ["POST", "/apps/admin/work-tracking/approve/:workEntryId", "b", "frontend_permission_http", 5],
|
|
571
583
|
"work_tracking_assignment_create": ["POST", "/apps/admin/work-tracking/assignments/create", "b", "frontend_permission_http", 4],
|
|
572
584
|
"work_tracking_assignment_delete": ["DELETE", "/apps/admin/work-tracking/assignments/delete/:workEntryAssignmentId", "b", "frontend_permission_http", 1],
|
|
@@ -708,7 +720,7 @@ function buildPath(operationId, params) {
|
|
|
708
720
|
}
|
|
709
721
|
|
|
710
722
|
// src/capabilities.ts
|
|
711
|
-
var SDK_VERSION2 = "0.2.
|
|
723
|
+
var SDK_VERSION2 = "0.2.4" ;
|
|
712
724
|
var CLIENT_MANAGEMENT_OPS = [
|
|
713
725
|
"oauth2_external_clients_list",
|
|
714
726
|
"oauth2_external_clients_get",
|
|
@@ -1548,10 +1560,12 @@ var OrvelloClient = class _OrvelloClient {
|
|
|
1548
1560
|
const baseUrl = await this.resolveBaseUrl();
|
|
1549
1561
|
const targetUrl = pdfUrl.startsWith("http://") || pdfUrl.startsWith("https://") ? pdfUrl : `${baseUrl}${pdfUrl.startsWith("/") ? "" : "/"}${pdfUrl}`;
|
|
1550
1562
|
const doFetch = this.doFetch;
|
|
1551
|
-
const authHeader = await this.getAuthHeader();
|
|
1552
1563
|
const headers = new Headers(options?.headers);
|
|
1553
|
-
if (
|
|
1554
|
-
|
|
1564
|
+
if (new URL(targetUrl).origin === new URL(baseUrl).origin) {
|
|
1565
|
+
const authHeader = await this.getAuthHeader();
|
|
1566
|
+
if (authHeader && !headers.has("Authorization")) {
|
|
1567
|
+
headers.set("Authorization", authHeader);
|
|
1568
|
+
}
|
|
1555
1569
|
}
|
|
1556
1570
|
const resp = await doFetch(targetUrl, {
|
|
1557
1571
|
method: "GET",
|