@orvello/sdk 0.7.14 → 0.7.15

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/dist/openapi.json CHANGED
@@ -52905,6 +52905,453 @@
52905
52905
  ]
52906
52906
  }
52907
52907
  },
52908
+ "/bookkeeping/expenses/:id/foreign-receipt-versions": {
52909
+ "get": {
52910
+ "operationId": "expense_foreign_receipt_history",
52911
+ "tags": [
52912
+ "bookkeeping",
52913
+ "expenses"
52914
+ ],
52915
+ "summary": "Originalbelegpruefungen mit Kursnachweis",
52916
+ "responses": {
52917
+ "200": {
52918
+ "description": "JSON response",
52919
+ "content": {
52920
+ "application/json": {
52921
+ "schema": {
52922
+ "type": "object",
52923
+ "properties": {
52924
+ "success": {
52925
+ "type": "boolean"
52926
+ },
52927
+ "message": {
52928
+ "anyOf": [
52929
+ {
52930
+ "type": "string"
52931
+ },
52932
+ {
52933
+ "type": "null"
52934
+ }
52935
+ ]
52936
+ },
52937
+ "code": {
52938
+ "anyOf": [
52939
+ {
52940
+ "type": "string"
52941
+ },
52942
+ {
52943
+ "type": "null"
52944
+ }
52945
+ ]
52946
+ },
52947
+ "data": {
52948
+ "anyOf": [
52949
+ {},
52950
+ {
52951
+ "type": "null"
52952
+ }
52953
+ ]
52954
+ }
52955
+ },
52956
+ "required": [
52957
+ "success",
52958
+ "data"
52959
+ ],
52960
+ "additionalProperties": false
52961
+ }
52962
+ }
52963
+ }
52964
+ }
52965
+ },
52966
+ "parameters": [
52967
+ {
52968
+ "name": "id",
52969
+ "in": "path",
52970
+ "required": true,
52971
+ "schema": {
52972
+ "type": "integer",
52973
+ "exclusiveMinimum": 0
52974
+ }
52975
+ }
52976
+ ],
52977
+ "security": [
52978
+ {
52979
+ "frontendBearer": []
52980
+ }
52981
+ ],
52982
+ "x-transport": "http",
52983
+ "x-permissions": [
52984
+ "bookkeeping_access"
52985
+ ]
52986
+ },
52987
+ "post": {
52988
+ "operationId": "expense_foreign_receipt_save",
52989
+ "tags": [
52990
+ "bookkeeping",
52991
+ "expenses"
52992
+ ],
52993
+ "summary": "Originalbelegpruefung unveraenderlich versionieren",
52994
+ "description": "Editor mit Kostenstellenzugang erforderlich. Revalidiert Vorschau, Originalbytes, Kursversion und Periodensperren. Archiviert die Originalbytes unabhaengig vom Arbeitsbeleg. Kein Update der Buchwerte und keine UStVA-Freigabe.",
52995
+ "responses": {
52996
+ "200": {
52997
+ "description": "JSON response",
52998
+ "content": {
52999
+ "application/json": {
53000
+ "schema": {
53001
+ "type": "object",
53002
+ "properties": {
53003
+ "success": {
53004
+ "type": "boolean"
53005
+ },
53006
+ "message": {
53007
+ "anyOf": [
53008
+ {
53009
+ "type": "string"
53010
+ },
53011
+ {
53012
+ "type": "null"
53013
+ }
53014
+ ]
53015
+ },
53016
+ "code": {
53017
+ "anyOf": [
53018
+ {
53019
+ "type": "string"
53020
+ },
53021
+ {
53022
+ "type": "null"
53023
+ }
53024
+ ]
53025
+ },
53026
+ "data": {
53027
+ "anyOf": [
53028
+ {},
53029
+ {
53030
+ "type": "null"
53031
+ }
53032
+ ]
53033
+ }
53034
+ },
53035
+ "required": [
53036
+ "success",
53037
+ "data"
53038
+ ],
53039
+ "additionalProperties": false
53040
+ }
53041
+ }
53042
+ }
53043
+ }
53044
+ },
53045
+ "parameters": [
53046
+ {
53047
+ "name": "id",
53048
+ "in": "path",
53049
+ "required": true,
53050
+ "schema": {
53051
+ "type": "integer",
53052
+ "exclusiveMinimum": 0
53053
+ }
53054
+ }
53055
+ ],
53056
+ "requestBody": {
53057
+ "required": true,
53058
+ "content": {
53059
+ "application/json": {
53060
+ "schema": {
53061
+ "type": "object",
53062
+ "properties": {
53063
+ "review": {
53064
+ "type": "object",
53065
+ "properties": {
53066
+ "currency": {
53067
+ "type": "string",
53068
+ "pattern": "^[A-Z]{3}$"
53069
+ },
53070
+ "originalNet": {
53071
+ "type": "string",
53072
+ "pattern": "^(?:0|[1-9]\\d{0,15})(?:\\.\\d{1,6})?$"
53073
+ },
53074
+ "originalTax": {
53075
+ "type": "string",
53076
+ "pattern": "^(?:0|[1-9]\\d{0,15})(?:\\.\\d{1,6})?$"
53077
+ },
53078
+ "originalGross": {
53079
+ "type": "string",
53080
+ "pattern": "^(?:0|[1-9]\\d{0,15})(?:\\.\\d{1,6})?$"
53081
+ },
53082
+ "invoiceDay": {
53083
+ "type": "string",
53084
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
53085
+ },
53086
+ "performanceDay": {
53087
+ "type": "string",
53088
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
53089
+ },
53090
+ "invoiceReference": {
53091
+ "type": "string",
53092
+ "minLength": 1,
53093
+ "maxLength": 200
53094
+ },
53095
+ "reviewNote": {
53096
+ "type": "string",
53097
+ "minLength": 10,
53098
+ "maxLength": 2000
53099
+ },
53100
+ "quoteVersionId": {
53101
+ "type": "string",
53102
+ "minLength": 1,
53103
+ "maxLength": 200
53104
+ }
53105
+ },
53106
+ "required": [
53107
+ "currency",
53108
+ "originalNet",
53109
+ "originalTax",
53110
+ "originalGross",
53111
+ "invoiceDay",
53112
+ "performanceDay",
53113
+ "invoiceReference",
53114
+ "reviewNote"
53115
+ ],
53116
+ "additionalProperties": false
53117
+ },
53118
+ "expectedExpenseFingerprint": {
53119
+ "type": "string",
53120
+ "pattern": "^[a-f0-9]{64}$"
53121
+ },
53122
+ "expectedPreviousFingerprint": {
53123
+ "anyOf": [
53124
+ {
53125
+ "type": "string",
53126
+ "pattern": "^[a-f0-9]{64}$"
53127
+ },
53128
+ {
53129
+ "type": "null"
53130
+ }
53131
+ ]
53132
+ },
53133
+ "expectedPreviewFingerprint": {
53134
+ "type": "string",
53135
+ "pattern": "^[a-f0-9]{64}$"
53136
+ }
53137
+ },
53138
+ "required": [
53139
+ "review",
53140
+ "expectedExpenseFingerprint",
53141
+ "expectedPreviousFingerprint",
53142
+ "expectedPreviewFingerprint"
53143
+ ],
53144
+ "additionalProperties": false
53145
+ }
53146
+ }
53147
+ }
53148
+ },
53149
+ "security": [
53150
+ {
53151
+ "frontendBearer": []
53152
+ }
53153
+ ],
53154
+ "x-transport": "http",
53155
+ "x-permissions": [
53156
+ "bookkeeping_access"
53157
+ ]
53158
+ }
53159
+ },
53160
+ "/bookkeeping/expenses/:id/foreign-receipt-preview": {
53161
+ "post": {
53162
+ "operationId": "expense_foreign_receipt_preview",
53163
+ "tags": [
53164
+ "bookkeeping",
53165
+ "expenses"
53166
+ ],
53167
+ "summary": "Originalwerte und BMF-Umrechnung vorpruefen",
53168
+ "description": "Prueft einen vollstaendigen §13b-Leistungsbeleg ohne Lieferantensteuer. Keine Anzahlungen, Teilleistungen, OSS oder Einfuhrumsatzsteuer. Speichert nichts und entsperrt keine Berichte.",
53169
+ "responses": {
53170
+ "200": {
53171
+ "description": "JSON response",
53172
+ "content": {
53173
+ "application/json": {
53174
+ "schema": {
53175
+ "type": "object",
53176
+ "properties": {
53177
+ "success": {
53178
+ "type": "boolean"
53179
+ },
53180
+ "message": {
53181
+ "anyOf": [
53182
+ {
53183
+ "type": "string"
53184
+ },
53185
+ {
53186
+ "type": "null"
53187
+ }
53188
+ ]
53189
+ },
53190
+ "code": {
53191
+ "anyOf": [
53192
+ {
53193
+ "type": "string"
53194
+ },
53195
+ {
53196
+ "type": "null"
53197
+ }
53198
+ ]
53199
+ },
53200
+ "data": {
53201
+ "anyOf": [
53202
+ {},
53203
+ {
53204
+ "type": "null"
53205
+ }
53206
+ ]
53207
+ }
53208
+ },
53209
+ "required": [
53210
+ "success",
53211
+ "data"
53212
+ ],
53213
+ "additionalProperties": false
53214
+ }
53215
+ }
53216
+ }
53217
+ }
53218
+ },
53219
+ "parameters": [
53220
+ {
53221
+ "name": "id",
53222
+ "in": "path",
53223
+ "required": true,
53224
+ "schema": {
53225
+ "type": "integer",
53226
+ "exclusiveMinimum": 0
53227
+ }
53228
+ }
53229
+ ],
53230
+ "requestBody": {
53231
+ "required": true,
53232
+ "content": {
53233
+ "application/json": {
53234
+ "schema": {
53235
+ "type": "object",
53236
+ "properties": {
53237
+ "currency": {
53238
+ "type": "string",
53239
+ "pattern": "^[A-Z]{3}$"
53240
+ },
53241
+ "originalNet": {
53242
+ "type": "string",
53243
+ "pattern": "^(?:0|[1-9]\\d{0,15})(?:\\.\\d{1,6})?$"
53244
+ },
53245
+ "originalTax": {
53246
+ "type": "string",
53247
+ "pattern": "^(?:0|[1-9]\\d{0,15})(?:\\.\\d{1,6})?$"
53248
+ },
53249
+ "originalGross": {
53250
+ "type": "string",
53251
+ "pattern": "^(?:0|[1-9]\\d{0,15})(?:\\.\\d{1,6})?$"
53252
+ },
53253
+ "invoiceDay": {
53254
+ "type": "string",
53255
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
53256
+ },
53257
+ "performanceDay": {
53258
+ "type": "string",
53259
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
53260
+ },
53261
+ "invoiceReference": {
53262
+ "type": "string",
53263
+ "minLength": 1,
53264
+ "maxLength": 200
53265
+ },
53266
+ "reviewNote": {
53267
+ "type": "string",
53268
+ "minLength": 10,
53269
+ "maxLength": 2000
53270
+ },
53271
+ "quoteVersionId": {
53272
+ "type": "string",
53273
+ "minLength": 1,
53274
+ "maxLength": 200
53275
+ }
53276
+ },
53277
+ "required": [
53278
+ "currency",
53279
+ "originalNet",
53280
+ "originalTax",
53281
+ "originalGross",
53282
+ "invoiceDay",
53283
+ "performanceDay",
53284
+ "invoiceReference",
53285
+ "reviewNote"
53286
+ ],
53287
+ "additionalProperties": false
53288
+ }
53289
+ }
53290
+ }
53291
+ },
53292
+ "security": [
53293
+ {
53294
+ "frontendBearer": []
53295
+ }
53296
+ ],
53297
+ "x-transport": "http",
53298
+ "x-permissions": [
53299
+ "bookkeeping_access"
53300
+ ]
53301
+ }
53302
+ },
53303
+ "/bookkeeping/expenses/:id/foreign-receipt-versions/:versionId/original": {
53304
+ "get": {
53305
+ "operationId": "expense_foreign_receipt_original",
53306
+ "tags": [
53307
+ "bookkeeping",
53308
+ "expenses"
53309
+ ],
53310
+ "summary": "Archivierten Originalbeleg mit Inhaltspruefung herunterladen",
53311
+ "responses": {
53312
+ "200": {
53313
+ "description": "Binary response",
53314
+ "content": {
53315
+ "application/octet-stream": {
53316
+ "schema": {
53317
+ "type": "string",
53318
+ "format": "binary"
53319
+ }
53320
+ }
53321
+ }
53322
+ }
53323
+ },
53324
+ "parameters": [
53325
+ {
53326
+ "name": "id",
53327
+ "in": "path",
53328
+ "required": true,
53329
+ "schema": {
53330
+ "type": "integer",
53331
+ "exclusiveMinimum": 0
53332
+ }
53333
+ },
53334
+ {
53335
+ "name": "versionId",
53336
+ "in": "path",
53337
+ "required": true,
53338
+ "schema": {
53339
+ "type": "integer",
53340
+ "exclusiveMinimum": 0
53341
+ }
53342
+ }
53343
+ ],
53344
+ "security": [
53345
+ {
53346
+ "frontendBearer": []
53347
+ }
53348
+ ],
53349
+ "x-transport": "http",
53350
+ "x-permissions": [
53351
+ "bookkeeping_access"
53352
+ ]
53353
+ }
53354
+ },
52908
53355
  "/bookkeeping/expenses/external": {
52909
53356
  "post": {
52910
53357
  "operationId": "bookkeeping_expenses_create_external",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orvello/sdk",
3
- "version": "0.7.14",
3
+ "version": "0.7.15",
4
4
  "description": "Typed, zero-dependency SDK for integrating Node and Next.js applications with orvello - the accounting & invoicing platform. Sends the credential each route demands, and can prove a call would work without making it.",
5
5
  "keywords": [
6
6
  "orvello",