@orvello/sdk 0.7.0 → 0.7.3
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 +466 -23
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +1765 -68
- package/dist/contract.d.ts +1765 -68
- package/dist/contract.js +466 -24
- package/dist/contract.js.map +1 -1
- package/dist/index.cjs +73 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +73 -4
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +12195 -5884
- package/package.json +1 -1
package/dist/contract.js
CHANGED
|
@@ -37,83 +37,131 @@ var apiMountPrefixes = {
|
|
|
37
37
|
};
|
|
38
38
|
var apiGroups = {
|
|
39
39
|
base: [
|
|
40
|
+
{
|
|
41
|
+
"key": "amp_mail",
|
|
42
|
+
"module": "./base/routes.amp_mail"
|
|
43
|
+
},
|
|
40
44
|
{
|
|
41
45
|
"key": "app_info",
|
|
42
|
-
"module": "./routes.app_info"
|
|
46
|
+
"module": "./base/routes.app_info"
|
|
43
47
|
},
|
|
44
48
|
{
|
|
45
49
|
"key": "auth",
|
|
46
|
-
"module": "./routes.auth"
|
|
50
|
+
"module": "./base/routes.auth"
|
|
47
51
|
},
|
|
48
52
|
{
|
|
49
53
|
"key": "entitlements",
|
|
50
|
-
"module": "./routes.entitlements"
|
|
54
|
+
"module": "./base/routes.entitlements"
|
|
51
55
|
},
|
|
52
56
|
{
|
|
53
57
|
"key": "internal",
|
|
54
|
-
"module": "./routes.internal"
|
|
58
|
+
"module": "./base/routes.internal"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"key": "logs",
|
|
62
|
+
"module": "./base/routes.logs"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "oauth2",
|
|
66
|
+
"module": "./base/routes.oauth2"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "oauth2_external",
|
|
70
|
+
"module": "./base/routes.oauth2_external"
|
|
55
71
|
},
|
|
56
72
|
{
|
|
57
73
|
"key": "permissions",
|
|
58
|
-
"module": "./routes.permissions"
|
|
74
|
+
"module": "./base/routes.permissions"
|
|
59
75
|
},
|
|
60
76
|
{
|
|
61
77
|
"key": "roles",
|
|
62
|
-
"module": "./routes.roles"
|
|
78
|
+
"module": "./base/routes.roles"
|
|
63
79
|
},
|
|
64
80
|
{
|
|
65
81
|
"key": "security",
|
|
66
|
-
"module": "./routes.security"
|
|
82
|
+
"module": "./base/routes.security"
|
|
67
83
|
},
|
|
68
84
|
{
|
|
69
85
|
"key": "settings",
|
|
70
|
-
"module": "./routes.settings"
|
|
86
|
+
"module": "./base/routes.settings"
|
|
71
87
|
},
|
|
72
88
|
{
|
|
73
89
|
"key": "user_activity",
|
|
74
|
-
"module": "./routes.user_activity"
|
|
90
|
+
"module": "./base/routes.user_activity"
|
|
75
91
|
},
|
|
76
92
|
{
|
|
77
93
|
"key": "users",
|
|
78
|
-
"module": "./routes.users"
|
|
94
|
+
"module": "./base/routes.users"
|
|
79
95
|
},
|
|
80
96
|
{
|
|
81
97
|
"key": "webhooks",
|
|
82
|
-
"module": "./routes.webhooks"
|
|
98
|
+
"module": "./base/routes.webhooks"
|
|
83
99
|
}
|
|
84
100
|
],
|
|
85
101
|
features: [
|
|
86
102
|
{
|
|
87
103
|
"key": "admin",
|
|
88
|
-
"module": "./routes.admin"
|
|
104
|
+
"module": "./features/routes.admin"
|
|
89
105
|
},
|
|
90
106
|
{
|
|
91
107
|
"key": "bookkeeping",
|
|
92
|
-
"module": "./routes.bookkeeping"
|
|
108
|
+
"module": "./features/routes.bookkeeping"
|
|
93
109
|
},
|
|
94
110
|
{
|
|
95
111
|
"key": "currency_rates",
|
|
96
|
-
"module": "./routes.currency_rates"
|
|
112
|
+
"module": "./features/routes.currency_rates"
|
|
97
113
|
},
|
|
98
114
|
{
|
|
99
115
|
"key": "customer_companies",
|
|
100
|
-
"module": "./routes.customer_companies"
|
|
116
|
+
"module": "./features/routes.customer_companies"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"key": "customer_companies_external",
|
|
120
|
+
"module": "./features/routes.customer_companies_external"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"key": "document_library",
|
|
124
|
+
"module": "./features/routes.document_library"
|
|
101
125
|
},
|
|
102
126
|
{
|
|
103
127
|
"key": "documents",
|
|
104
|
-
"module": "./routes.documents"
|
|
128
|
+
"module": "./features/routes.documents"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "dunning_external",
|
|
132
|
+
"module": "./features/routes.dunning_external"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"key": "enterprise",
|
|
136
|
+
"module": "./features/routes.enterprise"
|
|
105
137
|
},
|
|
106
138
|
{
|
|
107
139
|
"key": "exports",
|
|
108
|
-
"module": "./routes.exports"
|
|
140
|
+
"module": "./features/routes.exports"
|
|
109
141
|
},
|
|
110
142
|
{
|
|
111
143
|
"key": "invoices",
|
|
112
|
-
"module": "./routes.invoices"
|
|
144
|
+
"module": "./features/routes.invoices"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"key": "invoices_external",
|
|
148
|
+
"module": "./features/routes.invoices_external"
|
|
113
149
|
},
|
|
114
150
|
{
|
|
115
151
|
"key": "managing_companies",
|
|
116
|
-
"module": "./routes.managing_companies"
|
|
152
|
+
"module": "./features/routes.managing_companies"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"key": "managing_companies_external",
|
|
156
|
+
"module": "./features/routes.managing_companies_external"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"key": "managing_company_logos",
|
|
160
|
+
"module": "./features/routes.managing_company_logos"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"key": "work_tracking",
|
|
164
|
+
"module": "./features/routes.work_tracking"
|
|
117
165
|
}
|
|
118
166
|
],
|
|
119
167
|
all: [
|
|
@@ -149,6 +197,10 @@ var apiGroups = {
|
|
|
149
197
|
"key": "customer_companies_external",
|
|
150
198
|
"module": "./features/routes.customer_companies_external"
|
|
151
199
|
},
|
|
200
|
+
{
|
|
201
|
+
"key": "document_library",
|
|
202
|
+
"module": "./features/routes.document_library"
|
|
203
|
+
},
|
|
152
204
|
{
|
|
153
205
|
"key": "documents",
|
|
154
206
|
"module": "./features/routes.documents"
|
|
@@ -365,6 +417,18 @@ var apiRoutes_app_info = {
|
|
|
365
417
|
types: null
|
|
366
418
|
},
|
|
367
419
|
// Contract source: explicit
|
|
420
|
+
"app_info_capabilities": {
|
|
421
|
+
method: "GET",
|
|
422
|
+
path: "/app-info/capabilities",
|
|
423
|
+
auth: { "type": "public" },
|
|
424
|
+
meta: {
|
|
425
|
+
tags: ["app-info"],
|
|
426
|
+
summary: "Public app capabilities for the sign-in screen (mail: password registration, reset and verification; credits: the backend keeps credit balances)",
|
|
427
|
+
validated: { "params": false, "query": true, "body": false }
|
|
428
|
+
},
|
|
429
|
+
types: null
|
|
430
|
+
},
|
|
431
|
+
// Contract source: explicit
|
|
368
432
|
"app_info_get": {
|
|
369
433
|
method: "GET",
|
|
370
434
|
path: "/app-info",
|
|
@@ -424,7 +488,7 @@ var apiRoutes_auth = {
|
|
|
424
488
|
auth: { "type": "frontend_bearer_http" },
|
|
425
489
|
meta: {
|
|
426
490
|
tags: ["auth"],
|
|
427
|
-
summary: "Prepare TOTP enrollment after rechecking the password",
|
|
491
|
+
summary: "Prepare TOTP enrollment after rechecking the password or a fresh Google sign-in",
|
|
428
492
|
bodyContentType: "application/json",
|
|
429
493
|
validated: { "params": false, "query": false, "body": true }
|
|
430
494
|
},
|
|
@@ -450,7 +514,7 @@ var apiRoutes_auth = {
|
|
|
450
514
|
auth: { "type": "frontend_bearer_http" },
|
|
451
515
|
meta: {
|
|
452
516
|
tags: ["auth"],
|
|
453
|
-
summary: "Disable MFA using
|
|
517
|
+
summary: "Disable MFA using the password or a fresh Google sign-in, plus a second factor",
|
|
454
518
|
bodyContentType: "application/json",
|
|
455
519
|
validated: { "params": false, "query": false, "body": true }
|
|
456
520
|
},
|
|
@@ -527,7 +591,83 @@ var apiRoutes_auth = {
|
|
|
527
591
|
auth: { "type": "frontend_bearer_http" },
|
|
528
592
|
meta: {
|
|
529
593
|
tags: ["auth"],
|
|
530
|
-
summary: "Update the current user's own profile (name, avatar)",
|
|
594
|
+
summary: "Update the current user's own profile (name, avatar, locale)",
|
|
595
|
+
bodyContentType: "application/json",
|
|
596
|
+
validated: { "params": false, "query": false, "body": true }
|
|
597
|
+
},
|
|
598
|
+
types: null
|
|
599
|
+
},
|
|
600
|
+
// Contract source: explicit
|
|
601
|
+
"auth_me_image_replace": {
|
|
602
|
+
method: "PUT",
|
|
603
|
+
path: "/auth/me/image",
|
|
604
|
+
auth: { "type": "frontend_bearer_http" },
|
|
605
|
+
meta: {
|
|
606
|
+
tags: ["auth"],
|
|
607
|
+
summary: "Upload the current user's profile image (base64), stored in this backend",
|
|
608
|
+
bodyContentType: "application/json",
|
|
609
|
+
validated: { "params": false, "query": false, "body": true }
|
|
610
|
+
},
|
|
611
|
+
types: null
|
|
612
|
+
},
|
|
613
|
+
// Contract source: explicit
|
|
614
|
+
"auth_me_image_delete": {
|
|
615
|
+
method: "DELETE",
|
|
616
|
+
path: "/auth/me/image",
|
|
617
|
+
auth: { "type": "frontend_bearer_http" },
|
|
618
|
+
meta: {
|
|
619
|
+
tags: ["auth"],
|
|
620
|
+
summary: "Remove the current user's profile image",
|
|
621
|
+
validated: { "params": false, "query": true, "body": false }
|
|
622
|
+
},
|
|
623
|
+
types: null
|
|
624
|
+
},
|
|
625
|
+
// Contract source: explicit
|
|
626
|
+
"auth_google_config": {
|
|
627
|
+
method: "GET",
|
|
628
|
+
path: "/auth/google/config",
|
|
629
|
+
auth: { "type": "public" },
|
|
630
|
+
meta: {
|
|
631
|
+
tags: ["auth"],
|
|
632
|
+
summary: "Public Google sign-in configuration per client kind (never a secret)",
|
|
633
|
+
validated: { "params": false, "query": true, "body": false }
|
|
634
|
+
},
|
|
635
|
+
types: null
|
|
636
|
+
},
|
|
637
|
+
// Contract source: explicit
|
|
638
|
+
"auth_google_login": {
|
|
639
|
+
method: "POST",
|
|
640
|
+
path: "/auth/google",
|
|
641
|
+
auth: { "type": "public" },
|
|
642
|
+
meta: {
|
|
643
|
+
tags: ["auth"],
|
|
644
|
+
summary: "Sign in with a Google authorization code obtained via system browser + PKCE",
|
|
645
|
+
bodyContentType: "application/json",
|
|
646
|
+
validated: { "params": false, "query": false, "body": true }
|
|
647
|
+
},
|
|
648
|
+
types: null
|
|
649
|
+
},
|
|
650
|
+
// Contract source: explicit
|
|
651
|
+
"auth_google_link": {
|
|
652
|
+
method: "POST",
|
|
653
|
+
path: "/auth/google/link",
|
|
654
|
+
auth: { "type": "frontend_bearer_http" },
|
|
655
|
+
meta: {
|
|
656
|
+
tags: ["auth"],
|
|
657
|
+
summary: "Link a Google account to the current user (requires the current password)",
|
|
658
|
+
bodyContentType: "application/json",
|
|
659
|
+
validated: { "params": false, "query": false, "body": true }
|
|
660
|
+
},
|
|
661
|
+
types: null
|
|
662
|
+
},
|
|
663
|
+
// Contract source: explicit
|
|
664
|
+
"auth_google_unlink": {
|
|
665
|
+
method: "DELETE",
|
|
666
|
+
path: "/auth/google/link",
|
|
667
|
+
auth: { "type": "frontend_bearer_http" },
|
|
668
|
+
meta: {
|
|
669
|
+
tags: ["auth"],
|
|
670
|
+
summary: "Unlink Google from the current user (requires the password, revokes all sessions)",
|
|
531
671
|
bodyContentType: "application/json",
|
|
532
672
|
validated: { "params": false, "query": false, "body": true }
|
|
533
673
|
},
|
|
@@ -3081,6 +3221,219 @@ var apiRoutes_customer_companies_external = {
|
|
|
3081
3221
|
}
|
|
3082
3222
|
};
|
|
3083
3223
|
|
|
3224
|
+
// src/generated/api/features/routes.document_library.ts
|
|
3225
|
+
var apiRoutes_document_library = {
|
|
3226
|
+
// Contract source: explicit
|
|
3227
|
+
"document_library_settings": {
|
|
3228
|
+
method: "GET",
|
|
3229
|
+
path: "/documents/library/settings",
|
|
3230
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_access" },
|
|
3231
|
+
meta: {
|
|
3232
|
+
tags: ["document_library"],
|
|
3233
|
+
validated: { "params": false, "query": true, "body": false }
|
|
3234
|
+
},
|
|
3235
|
+
types: null
|
|
3236
|
+
},
|
|
3237
|
+
// Contract source: explicit
|
|
3238
|
+
"document_library_settings_save": {
|
|
3239
|
+
method: "PUT",
|
|
3240
|
+
path: "/documents/library/settings",
|
|
3241
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3242
|
+
meta: {
|
|
3243
|
+
tags: ["document_library"],
|
|
3244
|
+
validated: { "params": false, "query": true, "body": true }
|
|
3245
|
+
},
|
|
3246
|
+
types: null
|
|
3247
|
+
},
|
|
3248
|
+
// Contract source: explicit
|
|
3249
|
+
"document_library_branding": {
|
|
3250
|
+
method: "GET",
|
|
3251
|
+
path: "/documents/library/branding",
|
|
3252
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_access" },
|
|
3253
|
+
meta: {
|
|
3254
|
+
tags: ["document_library"],
|
|
3255
|
+
validated: { "params": false, "query": true, "body": false }
|
|
3256
|
+
},
|
|
3257
|
+
types: null
|
|
3258
|
+
},
|
|
3259
|
+
// Contract source: explicit
|
|
3260
|
+
"document_library_list": {
|
|
3261
|
+
method: "GET",
|
|
3262
|
+
path: "/documents/library",
|
|
3263
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_access" },
|
|
3264
|
+
meta: {
|
|
3265
|
+
tags: ["document_library"],
|
|
3266
|
+
validated: { "params": false, "query": true, "body": false }
|
|
3267
|
+
},
|
|
3268
|
+
types: null
|
|
3269
|
+
},
|
|
3270
|
+
// Contract source: explicit
|
|
3271
|
+
"document_library_folders": {
|
|
3272
|
+
method: "GET",
|
|
3273
|
+
path: "/documents/library/folders",
|
|
3274
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_access" },
|
|
3275
|
+
meta: {
|
|
3276
|
+
tags: ["document_library"],
|
|
3277
|
+
validated: { "params": false, "query": true, "body": false }
|
|
3278
|
+
},
|
|
3279
|
+
types: null
|
|
3280
|
+
},
|
|
3281
|
+
// Contract source: explicit
|
|
3282
|
+
"document_library_folder_create": {
|
|
3283
|
+
method: "POST",
|
|
3284
|
+
path: "/documents/library/folders",
|
|
3285
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3286
|
+
meta: {
|
|
3287
|
+
tags: ["document_library"],
|
|
3288
|
+
validated: { "params": false, "query": true, "body": true }
|
|
3289
|
+
},
|
|
3290
|
+
types: null
|
|
3291
|
+
},
|
|
3292
|
+
// Contract source: explicit
|
|
3293
|
+
"document_library_folder_update": {
|
|
3294
|
+
method: "PUT",
|
|
3295
|
+
path: "/documents/library/folders/:id",
|
|
3296
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3297
|
+
meta: {
|
|
3298
|
+
tags: ["document_library"],
|
|
3299
|
+
validated: { "params": true, "query": true, "body": true }
|
|
3300
|
+
},
|
|
3301
|
+
types: null
|
|
3302
|
+
},
|
|
3303
|
+
// Contract source: explicit
|
|
3304
|
+
"document_library_folder_delete": {
|
|
3305
|
+
method: "DELETE",
|
|
3306
|
+
path: "/documents/library/folders/:id",
|
|
3307
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3308
|
+
meta: {
|
|
3309
|
+
tags: ["document_library"],
|
|
3310
|
+
validated: { "params": true, "query": true, "body": false }
|
|
3311
|
+
},
|
|
3312
|
+
types: null
|
|
3313
|
+
},
|
|
3314
|
+
// Contract source: explicit
|
|
3315
|
+
"document_library_batch": {
|
|
3316
|
+
method: "POST",
|
|
3317
|
+
path: "/documents/library/batch",
|
|
3318
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3319
|
+
meta: {
|
|
3320
|
+
tags: ["document_library"],
|
|
3321
|
+
validated: { "params": false, "query": true, "body": true }
|
|
3322
|
+
},
|
|
3323
|
+
types: null
|
|
3324
|
+
},
|
|
3325
|
+
// Contract source: explicit
|
|
3326
|
+
"document_library_metadata": {
|
|
3327
|
+
method: "PATCH",
|
|
3328
|
+
path: "/documents/library/:id/metadata",
|
|
3329
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3330
|
+
meta: {
|
|
3331
|
+
tags: ["document_library"],
|
|
3332
|
+
validated: { "params": true, "query": true, "body": true }
|
|
3333
|
+
},
|
|
3334
|
+
types: null
|
|
3335
|
+
},
|
|
3336
|
+
// Contract source: explicit
|
|
3337
|
+
"document_library_drafts": {
|
|
3338
|
+
method: "GET",
|
|
3339
|
+
path: "/documents/library/drafts",
|
|
3340
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_access" },
|
|
3341
|
+
meta: {
|
|
3342
|
+
tags: ["document_library"],
|
|
3343
|
+
validated: { "params": false, "query": true, "body": false }
|
|
3344
|
+
},
|
|
3345
|
+
types: null
|
|
3346
|
+
},
|
|
3347
|
+
// Contract source: explicit
|
|
3348
|
+
"document_library_draft_get": {
|
|
3349
|
+
method: "GET",
|
|
3350
|
+
path: "/documents/library/drafts/:id",
|
|
3351
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_access" },
|
|
3352
|
+
meta: {
|
|
3353
|
+
tags: ["document_library"],
|
|
3354
|
+
validated: { "params": true, "query": true, "body": false }
|
|
3355
|
+
},
|
|
3356
|
+
types: null
|
|
3357
|
+
},
|
|
3358
|
+
// Contract source: explicit
|
|
3359
|
+
"document_library_draft_create": {
|
|
3360
|
+
method: "POST",
|
|
3361
|
+
path: "/documents/library/drafts",
|
|
3362
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3363
|
+
meta: {
|
|
3364
|
+
tags: ["document_library"],
|
|
3365
|
+
validated: { "params": false, "query": true, "body": true }
|
|
3366
|
+
},
|
|
3367
|
+
types: null
|
|
3368
|
+
},
|
|
3369
|
+
// Contract source: explicit
|
|
3370
|
+
"document_library_draft_update": {
|
|
3371
|
+
method: "PUT",
|
|
3372
|
+
path: "/documents/library/drafts/:id",
|
|
3373
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3374
|
+
meta: {
|
|
3375
|
+
tags: ["document_library"],
|
|
3376
|
+
validated: { "params": true, "query": true, "body": true }
|
|
3377
|
+
},
|
|
3378
|
+
types: null
|
|
3379
|
+
},
|
|
3380
|
+
// Contract source: explicit
|
|
3381
|
+
"document_library_draft_delete": {
|
|
3382
|
+
method: "DELETE",
|
|
3383
|
+
path: "/documents/library/drafts/:id",
|
|
3384
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3385
|
+
meta: {
|
|
3386
|
+
tags: ["document_library"],
|
|
3387
|
+
validated: { "params": true, "query": true, "body": false }
|
|
3388
|
+
},
|
|
3389
|
+
types: null
|
|
3390
|
+
},
|
|
3391
|
+
// Contract source: explicit
|
|
3392
|
+
"document_library_preview": {
|
|
3393
|
+
method: "POST",
|
|
3394
|
+
path: "/documents/library/drafts/:id/preview",
|
|
3395
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3396
|
+
meta: {
|
|
3397
|
+
tags: ["document_library"],
|
|
3398
|
+
validated: { "params": true, "query": true, "body": true }
|
|
3399
|
+
},
|
|
3400
|
+
types: null
|
|
3401
|
+
},
|
|
3402
|
+
// Contract source: explicit
|
|
3403
|
+
"document_library_render": {
|
|
3404
|
+
method: "POST",
|
|
3405
|
+
path: "/documents/library/drafts/:id/render",
|
|
3406
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3407
|
+
meta: {
|
|
3408
|
+
tags: ["document_library"],
|
|
3409
|
+
validated: { "params": true, "query": true, "body": true }
|
|
3410
|
+
},
|
|
3411
|
+
types: null
|
|
3412
|
+
},
|
|
3413
|
+
// Contract source: explicit
|
|
3414
|
+
"document_library_deliveries": {
|
|
3415
|
+
method: "GET",
|
|
3416
|
+
path: "/documents/library/:id/deliveries",
|
|
3417
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_access" },
|
|
3418
|
+
meta: {
|
|
3419
|
+
tags: ["document_library"],
|
|
3420
|
+
validated: { "params": true, "query": true, "body": false }
|
|
3421
|
+
},
|
|
3422
|
+
types: null
|
|
3423
|
+
},
|
|
3424
|
+
// Contract source: explicit
|
|
3425
|
+
"document_library_send": {
|
|
3426
|
+
method: "POST",
|
|
3427
|
+
path: "/documents/library/:id/send",
|
|
3428
|
+
auth: { "type": "frontend_permission_http", "permission": "documents_manage" },
|
|
3429
|
+
meta: {
|
|
3430
|
+
tags: ["document_library"],
|
|
3431
|
+
validated: { "params": true, "query": true, "body": true }
|
|
3432
|
+
},
|
|
3433
|
+
types: null
|
|
3434
|
+
}
|
|
3435
|
+
};
|
|
3436
|
+
|
|
3084
3437
|
// src/generated/api/features/routes.documents.ts
|
|
3085
3438
|
var apiRoutes_documents = {
|
|
3086
3439
|
// Contract source: explicit
|
|
@@ -4025,7 +4378,21 @@ var apiRoutes_invoices_external = {
|
|
|
4025
4378
|
meta: {
|
|
4026
4379
|
tags: ["invoices-external"],
|
|
4027
4380
|
summary: "Create invoice (external API)",
|
|
4028
|
-
description: "Creates a new invoice via API Key or OAuth2. managingCompanyId is derived from the auth token. Includes full line item support, VAT calculation, and optional PDF generation. Optional idempotencyKey durably replays the original creation response within the authenticated tenant and OAuth client/API key. Changed validated payload returns 409; current cost-center access is checked again. Keys do not expire. With
|
|
4381
|
+
description: "Creates a new invoice via API Key or OAuth2. managingCompanyId is derived from the auth token. Includes full line item support, VAT calculation, and optional PDF generation. Optional idempotencyKey durably replays the original creation response within the authenticated tenant and OAuth client/API key. Changed validated payload returns 409; current cost-center access is checked again. Keys do not expire. With paidAt, invoice creation, paid status and the receipt commit atomically; a PDF download completes publication if needed. The stored creation response is not current payment evidence.",
|
|
4382
|
+
bodyContentType: "application/json",
|
|
4383
|
+
validated: { "params": false, "query": false, "body": true }
|
|
4384
|
+
},
|
|
4385
|
+
types: null
|
|
4386
|
+
},
|
|
4387
|
+
// Contract source: explicit
|
|
4388
|
+
"invoices_dry_run_external": {
|
|
4389
|
+
method: "POST",
|
|
4390
|
+
path: "/invoices/external/dry-run",
|
|
4391
|
+
auth: { "type": "unified_bearer", "allowUserSession": false, "allowOAuth2": true, "allowApiKey": true, "requireRole": "editor", "scopes": ["invoices:write"] },
|
|
4392
|
+
meta: {
|
|
4393
|
+
tags: ["invoices-external"],
|
|
4394
|
+
summary: "Dry run an invoice creation end to end (external API)",
|
|
4395
|
+
description: "Runs the full creation path of POST /invoices/external in one transaction: plan limit, VAT, number, line items, paid status (with paidAt), PDF, e-invoice, upload, year folder filing, document. Then rolls everything back and deletes the uploaded PDF. Nothing is persisted and no number is consumed. Same error responses as the real creation. idempotencyKey is ignored. Meant for scheduled canaries of consumers.",
|
|
4029
4396
|
bodyContentType: "application/json",
|
|
4030
4397
|
validated: { "params": false, "query": false, "body": true }
|
|
4031
4398
|
},
|
|
@@ -4140,6 +4507,42 @@ var apiRoutes_logs = {
|
|
|
4140
4507
|
|
|
4141
4508
|
// src/generated/api/features/routes.managing_companies.ts
|
|
4142
4509
|
var apiRoutes_managing_companies = {
|
|
4510
|
+
// Contract source: explicit
|
|
4511
|
+
"managing_companies_invoice_numbering_get": {
|
|
4512
|
+
method: "GET",
|
|
4513
|
+
path: "/managing-companies/invoice-numbering/:managingCompanyId",
|
|
4514
|
+
auth: { "type": "frontend_bearer_http" },
|
|
4515
|
+
meta: {
|
|
4516
|
+
tags: ["managing-companies"],
|
|
4517
|
+
summary: "Nummernregeln und \xC4nderungsverlauf",
|
|
4518
|
+
validated: { "params": true, "query": false, "body": false }
|
|
4519
|
+
},
|
|
4520
|
+
types: null
|
|
4521
|
+
},
|
|
4522
|
+
// Contract source: explicit
|
|
4523
|
+
"managing_companies_invoice_numbering_save": {
|
|
4524
|
+
method: "PUT",
|
|
4525
|
+
path: "/managing-companies/invoice-numbering/:managingCompanyId",
|
|
4526
|
+
auth: { "type": "frontend_bearer_http" },
|
|
4527
|
+
meta: {
|
|
4528
|
+
tags: ["managing-companies"],
|
|
4529
|
+
summary: "Nummernregeln als Unternehmensadministrator \xE4ndern",
|
|
4530
|
+
validated: { "params": true, "query": false, "body": true }
|
|
4531
|
+
},
|
|
4532
|
+
types: null
|
|
4533
|
+
},
|
|
4534
|
+
// Contract source: explicit
|
|
4535
|
+
"managing_companies_invoice_numbering_preview": {
|
|
4536
|
+
method: "POST",
|
|
4537
|
+
path: "/managing-companies/invoice-numbering/:managingCompanyId/preview",
|
|
4538
|
+
auth: { "type": "frontend_bearer_http" },
|
|
4539
|
+
meta: {
|
|
4540
|
+
tags: ["managing-companies"],
|
|
4541
|
+
summary: "Nummern vorschauen ohne Reservierung",
|
|
4542
|
+
validated: { "params": true, "query": false, "body": true }
|
|
4543
|
+
},
|
|
4544
|
+
types: null
|
|
4545
|
+
},
|
|
4143
4546
|
// Contract source: explicit
|
|
4144
4547
|
"managing_companies_user_assignments_assign": {
|
|
4145
4548
|
method: "POST",
|
|
@@ -4402,6 +4805,19 @@ var apiRoutes_managing_companies = {
|
|
|
4402
4805
|
types: null
|
|
4403
4806
|
},
|
|
4404
4807
|
// Contract source: explicit
|
|
4808
|
+
"managing_companies_vat_settings_history": {
|
|
4809
|
+
method: "GET",
|
|
4810
|
+
path: "/managing-companies/vat-settings/:companyId/history",
|
|
4811
|
+
auth: { "type": "frontend_bearer_http" },
|
|
4812
|
+
meta: {
|
|
4813
|
+
tags: ["managing-companies", "vat-settings"],
|
|
4814
|
+
summary: "Verlauf der USt-Einstellungen lesen",
|
|
4815
|
+
description: "Aenderungsverlauf (Besteuerungsverfahren, UStVA-Praeferenz, Begruendung) der USt-Einstellungen einer Managing Company, aelteste zuerst. Fuer jedes Mitglied der Firma; der Admin-Weg GET /admin/vat/company/:companyId/settings-history bleibt der Plattformverwaltung. Auth: Bearer.",
|
|
4816
|
+
validated: { "params": true, "query": false, "body": false }
|
|
4817
|
+
},
|
|
4818
|
+
types: null
|
|
4819
|
+
},
|
|
4820
|
+
// Contract source: explicit
|
|
4405
4821
|
"managing_companies_vat_settings_upsert": {
|
|
4406
4822
|
method: "POST",
|
|
4407
4823
|
path: "/managing-companies/vat-settings/:companyId",
|
|
@@ -5461,6 +5877,31 @@ var apiRoutes_users = {
|
|
|
5461
5877
|
types: null
|
|
5462
5878
|
},
|
|
5463
5879
|
// Contract source: explicit
|
|
5880
|
+
"users_update_external_image": {
|
|
5881
|
+
method: "PUT",
|
|
5882
|
+
path: "/users/update/external/:frontendUserId/image",
|
|
5883
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5884
|
+
meta: {
|
|
5885
|
+
tags: ["users"],
|
|
5886
|
+
summary: "Mirror the frontend user's profile image into this backend (base64)",
|
|
5887
|
+
bodyContentType: "application/json",
|
|
5888
|
+
validated: { "params": true, "query": false, "body": true }
|
|
5889
|
+
},
|
|
5890
|
+
types: null
|
|
5891
|
+
},
|
|
5892
|
+
// Contract source: explicit
|
|
5893
|
+
"users_delete_external_image": {
|
|
5894
|
+
method: "DELETE",
|
|
5895
|
+
path: "/users/update/external/:frontendUserId/image",
|
|
5896
|
+
auth: { "type": "frontend_bearer_http" },
|
|
5897
|
+
meta: {
|
|
5898
|
+
tags: ["users"],
|
|
5899
|
+
summary: "Remove the mirrored profile image of the frontend user",
|
|
5900
|
+
validated: { "params": true, "query": false, "body": false }
|
|
5901
|
+
},
|
|
5902
|
+
types: null
|
|
5903
|
+
},
|
|
5904
|
+
// Contract source: explicit
|
|
5464
5905
|
"users_delete": {
|
|
5465
5906
|
method: "DELETE",
|
|
5466
5907
|
path: "/users/delete/:userId",
|
|
@@ -5745,6 +6186,7 @@ var apiRoutes = {
|
|
|
5745
6186
|
...apiRoutes_currency_rates,
|
|
5746
6187
|
...apiRoutes_customer_companies,
|
|
5747
6188
|
...apiRoutes_customer_companies_external,
|
|
6189
|
+
...apiRoutes_document_library,
|
|
5748
6190
|
...apiRoutes_documents,
|
|
5749
6191
|
...apiRoutes_dunning_external,
|
|
5750
6192
|
...apiRoutes_enterprise,
|
|
@@ -5769,6 +6211,6 @@ var apiRoutes = {
|
|
|
5769
6211
|
...apiRoutes_work_tracking
|
|
5770
6212
|
};
|
|
5771
6213
|
|
|
5772
|
-
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_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 };
|
|
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 };
|
|
5773
6215
|
//# sourceMappingURL=contract.js.map
|
|
5774
6216
|
//# sourceMappingURL=contract.js.map
|