@jars-lt/jars-app-sdk 0.2.1 → 0.3.0

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/index.d.ts CHANGED
@@ -852,6 +852,8 @@ interface paths {
852
852
  companyCode?: string;
853
853
  vatCode?: string;
854
854
  country?: string;
855
+ iossNumber?: string;
856
+ voesNumber?: string;
855
857
  };
856
858
  header?: never;
857
859
  path?: never;
@@ -914,7 +916,7 @@ interface paths {
914
916
  patch?: never;
915
917
  trace?: never;
916
918
  };
917
- "/api/partners/{id}": {
919
+ "/api/partners/suggestion": {
918
920
  parameters: {
919
921
  query?: never;
920
922
  header?: never;
@@ -923,22 +925,33 @@ interface paths {
923
925
  };
924
926
  get: {
925
927
  parameters: {
926
- query?: never;
927
- header?: never;
928
- path: {
929
- id: string;
928
+ query?: {
929
+ name?: string;
930
+ companyCode?: string;
931
+ vatCode?: string;
932
+ country?: string;
930
933
  };
934
+ header?: never;
935
+ path?: never;
931
936
  cookie?: never;
932
937
  };
933
938
  requestBody?: never;
934
939
  responses: {
935
- /** @description A single partner */
940
+ /** @description A card only the name finds, for a person to confirm (`suggestPartnerByName`), or null. Asked after `/match` answered null: never a resolution, so nothing may adopt it unseen. */
936
941
  200: {
937
942
  headers: {
938
943
  [name: string]: unknown;
939
944
  };
940
945
  content: {
941
- "application/json": components["schemas"]["Partner"];
946
+ "application/json": {
947
+ id: string;
948
+ code: string;
949
+ name: string;
950
+ vatCode: string | null;
951
+ country: string | null;
952
+ /** @enum {string} */
953
+ matchedBy: "name";
954
+ } | null;
942
955
  };
943
956
  };
944
957
  /** @description Validation error */
@@ -979,7 +992,22 @@ interface paths {
979
992
  };
980
993
  };
981
994
  };
982
- put: {
995
+ put?: never;
996
+ post?: never;
997
+ delete?: never;
998
+ options?: never;
999
+ head?: never;
1000
+ patch?: never;
1001
+ trace?: never;
1002
+ };
1003
+ "/api/partners/{id}": {
1004
+ parameters: {
1005
+ query?: never;
1006
+ header?: never;
1007
+ path?: never;
1008
+ cookie?: never;
1009
+ };
1010
+ get: {
983
1011
  parameters: {
984
1012
  query?: never;
985
1013
  header?: never;
@@ -988,13 +1016,9 @@ interface paths {
988
1016
  };
989
1017
  cookie?: never;
990
1018
  };
991
- requestBody?: {
992
- content: {
993
- "application/json": components["schemas"]["Body"];
994
- };
995
- };
1019
+ requestBody?: never;
996
1020
  responses: {
997
- /** @description Updated partner */
1021
+ /** @description A single partner */
998
1022
  200: {
999
1023
  headers: {
1000
1024
  [name: string]: unknown;
@@ -1041,8 +1065,7 @@ interface paths {
1041
1065
  };
1042
1066
  };
1043
1067
  };
1044
- post?: never;
1045
- delete: {
1068
+ put: {
1046
1069
  parameters: {
1047
1070
  query?: never;
1048
1071
  header?: never;
@@ -1051,15 +1074,19 @@ interface paths {
1051
1074
  };
1052
1075
  cookie?: never;
1053
1076
  };
1054
- requestBody?: never;
1077
+ requestBody?: {
1078
+ content: {
1079
+ "application/json": components["schemas"]["Body"];
1080
+ };
1081
+ };
1055
1082
  responses: {
1056
- /** @description Deletion result */
1083
+ /** @description Updated partner */
1057
1084
  200: {
1058
1085
  headers: {
1059
1086
  [name: string]: unknown;
1060
1087
  };
1061
1088
  content: {
1062
- "application/json": unknown;
1089
+ "application/json": components["schemas"]["Partner"];
1063
1090
  };
1064
1091
  };
1065
1092
  /** @description Validation error */
@@ -1098,49 +1125,27 @@ interface paths {
1098
1125
  "application/json": components["schemas"]["ApiError"];
1099
1126
  };
1100
1127
  };
1101
- /** @description Partner is referenced by existing documents */
1102
- 409: {
1103
- headers: {
1104
- [name: string]: unknown;
1105
- };
1106
- content: {
1107
- "application/json": unknown;
1108
- };
1109
- };
1110
1128
  };
1111
1129
  };
1112
- options?: never;
1113
- head?: never;
1114
- patch?: never;
1115
- trace?: never;
1116
- };
1117
- "/api/vat-codes": {
1118
- parameters: {
1119
- query?: never;
1120
- header?: never;
1121
- path?: never;
1122
- cookie?: never;
1123
- };
1124
- get: {
1130
+ post?: never;
1131
+ delete: {
1125
1132
  parameters: {
1126
- query?: {
1127
- search?: string;
1128
- sort?: string;
1129
- limit?: string;
1130
- };
1133
+ query?: never;
1131
1134
  header?: never;
1132
- path?: never;
1135
+ path: {
1136
+ id: string;
1137
+ };
1133
1138
  cookie?: never;
1134
1139
  };
1135
1140
  requestBody?: never;
1136
1141
  responses: {
1137
- /** @description List of VAT codes */
1142
+ /** @description Deletion result */
1138
1143
  200: {
1139
1144
  headers: {
1140
1145
  [name: string]: unknown;
1141
1146
  };
1142
1147
  content: {
1143
- "application/json": components["schemas"]["VatCode"][];
1148
+ "application/json": unknown;
1144
1149
  };
1145
1150
  };
1146
1151
  /** @description Validation error */
@@ -1179,29 +1184,51 @@ interface paths {
1179
1184
  "application/json": components["schemas"]["ApiError"];
1180
1185
  };
1181
1186
  };
1187
+ /** @description Partner is referenced by existing documents */
1188
+ 409: {
1189
+ headers: {
1190
+ [name: string]: unknown;
1191
+ };
1192
+ content: {
1193
+ "application/json": unknown;
1194
+ };
1195
+ };
1182
1196
  };
1183
1197
  };
1198
+ options?: never;
1199
+ head?: never;
1200
+ patch?: never;
1201
+ trace?: never;
1202
+ };
1203
+ "/api/partners/{id}/card-merchant-names/{name}": {
1204
+ parameters: {
1205
+ query?: never;
1206
+ header?: never;
1207
+ path?: never;
1208
+ cookie?: never;
1209
+ };
1210
+ get?: never;
1184
1211
  put?: never;
1185
- post: {
1212
+ post?: never;
1213
+ delete: {
1186
1214
  parameters: {
1187
1215
  query?: never;
1188
1216
  header?: never;
1189
- path?: never;
1190
- cookie?: never;
1191
- };
1192
- requestBody?: {
1193
- content: {
1194
- "application/json": components["schemas"]["Body"];
1217
+ path: {
1218
+ id: string;
1219
+ name: string;
1195
1220
  };
1221
+ cookie?: never;
1196
1222
  };
1223
+ requestBody?: never;
1197
1224
  responses: {
1198
- /** @description Created VAT code */
1199
- 201: {
1225
+ /** @description The partner, without the card merchant text */
1226
+ 200: {
1200
1227
  headers: {
1201
1228
  [name: string]: unknown;
1202
1229
  };
1203
1230
  content: {
1204
- "application/json": components["schemas"]["VatCode"];
1231
+ "application/json": components["schemas"]["Partner"];
1205
1232
  };
1206
1233
  };
1207
1234
  /** @description Validation error */
@@ -1242,13 +1269,12 @@ interface paths {
1242
1269
  };
1243
1270
  };
1244
1271
  };
1245
- delete?: never;
1246
1272
  options?: never;
1247
1273
  head?: never;
1248
1274
  patch?: never;
1249
1275
  trace?: never;
1250
1276
  };
1251
- "/api/vat-codes/{id}": {
1277
+ "/api/partners/{id}/merge-preview": {
1252
1278
  parameters: {
1253
1279
  query?: never;
1254
1280
  header?: never;
@@ -1257,7 +1283,9 @@ interface paths {
1257
1283
  };
1258
1284
  get: {
1259
1285
  parameters: {
1260
- query?: never;
1286
+ query: {
1287
+ sourceId: string;
1288
+ };
1261
1289
  header?: never;
1262
1290
  path: {
1263
1291
  id: string;
@@ -1266,13 +1294,13 @@ interface paths {
1266
1294
  };
1267
1295
  requestBody?: never;
1268
1296
  responses: {
1269
- /** @description A single VAT code */
1297
+ /** @description What a merge would move and fill */
1270
1298
  200: {
1271
1299
  headers: {
1272
1300
  [name: string]: unknown;
1273
1301
  };
1274
1302
  content: {
1275
- "application/json": components["schemas"]["VatCode"];
1303
+ "application/json": unknown;
1276
1304
  };
1277
1305
  };
1278
1306
  /** @description Validation error */
@@ -1311,9 +1339,35 @@ interface paths {
1311
1339
  "application/json": components["schemas"]["ApiError"];
1312
1340
  };
1313
1341
  };
1342
+ /** @description Different company codes, or the donor is a Stripe connection fee partner */
1343
+ 409: {
1344
+ headers: {
1345
+ [name: string]: unknown;
1346
+ };
1347
+ content: {
1348
+ "application/json": unknown;
1349
+ };
1350
+ };
1314
1351
  };
1315
1352
  };
1316
- put: {
1353
+ put?: never;
1354
+ post?: never;
1355
+ delete?: never;
1356
+ options?: never;
1357
+ head?: never;
1358
+ patch?: never;
1359
+ trace?: never;
1360
+ };
1361
+ "/api/partners/{id}/merge": {
1362
+ parameters: {
1363
+ query?: never;
1364
+ header?: never;
1365
+ path?: never;
1366
+ cookie?: never;
1367
+ };
1368
+ get?: never;
1369
+ put?: never;
1370
+ post: {
1317
1371
  parameters: {
1318
1372
  query?: never;
1319
1373
  header?: never;
@@ -1324,17 +1378,19 @@ interface paths {
1324
1378
  };
1325
1379
  requestBody?: {
1326
1380
  content: {
1327
- "application/json": components["schemas"]["Body"];
1381
+ "application/json": {
1382
+ sourceId: string;
1383
+ };
1328
1384
  };
1329
1385
  };
1330
1386
  responses: {
1331
- /** @description Updated VAT code */
1387
+ /** @description Merge result */
1332
1388
  200: {
1333
1389
  headers: {
1334
1390
  [name: string]: unknown;
1335
1391
  };
1336
1392
  content: {
1337
- "application/json": components["schemas"]["VatCode"];
1393
+ "application/json": unknown;
1338
1394
  };
1339
1395
  };
1340
1396
  /** @description Validation error */
@@ -1373,16 +1429,24 @@ interface paths {
1373
1429
  "application/json": components["schemas"]["ApiError"];
1374
1430
  };
1375
1431
  };
1432
+ /** @description Different company codes, or the donor is a Stripe connection fee partner */
1433
+ 409: {
1434
+ headers: {
1435
+ [name: string]: unknown;
1436
+ };
1437
+ content: {
1438
+ "application/json": unknown;
1439
+ };
1440
+ };
1376
1441
  };
1377
1442
  };
1378
- post?: never;
1379
1443
  delete?: never;
1380
1444
  options?: never;
1381
1445
  head?: never;
1382
1446
  patch?: never;
1383
1447
  trace?: never;
1384
1448
  };
1385
- "/api/templates": {
1449
+ "/api/vat-codes": {
1386
1450
  parameters: {
1387
1451
  query?: never;
1388
1452
  header?: never;
@@ -1402,13 +1466,13 @@ interface paths {
1402
1466
  };
1403
1467
  requestBody?: never;
1404
1468
  responses: {
1405
- /** @description List of operation templates */
1469
+ /** @description List of VAT codes */
1406
1470
  200: {
1407
1471
  headers: {
1408
1472
  [name: string]: unknown;
1409
1473
  };
1410
1474
  content: {
1411
- "application/json": components["schemas"]["OperationTemplate"][];
1475
+ "application/json": components["schemas"]["VatCode"][];
1412
1476
  };
1413
1477
  };
1414
1478
  /** @description Validation error */
@@ -1463,13 +1527,13 @@ interface paths {
1463
1527
  };
1464
1528
  };
1465
1529
  responses: {
1466
- /** @description Created operation template */
1530
+ /** @description Created VAT code */
1467
1531
  201: {
1468
1532
  headers: {
1469
1533
  [name: string]: unknown;
1470
1534
  };
1471
1535
  content: {
1472
- "application/json": components["schemas"]["OperationTemplate"];
1536
+ "application/json": components["schemas"]["VatCode"];
1473
1537
  };
1474
1538
  };
1475
1539
  /** @description Validation error */
@@ -1516,7 +1580,7 @@ interface paths {
1516
1580
  patch?: never;
1517
1581
  trace?: never;
1518
1582
  };
1519
- "/api/templates/{id}": {
1583
+ "/api/vat-codes/{id}": {
1520
1584
  parameters: {
1521
1585
  query?: never;
1522
1586
  header?: never;
@@ -1534,13 +1598,13 @@ interface paths {
1534
1598
  };
1535
1599
  requestBody?: never;
1536
1600
  responses: {
1537
- /** @description A single operation template */
1601
+ /** @description A single VAT code */
1538
1602
  200: {
1539
1603
  headers: {
1540
1604
  [name: string]: unknown;
1541
1605
  };
1542
1606
  content: {
1543
- "application/json": components["schemas"]["OperationTemplate"];
1607
+ "application/json": components["schemas"]["VatCode"];
1544
1608
  };
1545
1609
  };
1546
1610
  /** @description Validation error */
@@ -1596,13 +1660,13 @@ interface paths {
1596
1660
  };
1597
1661
  };
1598
1662
  responses: {
1599
- /** @description Updated operation template */
1663
+ /** @description Updated VAT code */
1600
1664
  200: {
1601
1665
  headers: {
1602
1666
  [name: string]: unknown;
1603
1667
  };
1604
1668
  content: {
1605
- "application/json": components["schemas"]["OperationTemplate"];
1669
+ "application/json": components["schemas"]["VatCode"];
1606
1670
  };
1607
1671
  };
1608
1672
  /** @description Validation error */
@@ -1644,24 +1708,39 @@ interface paths {
1644
1708
  };
1645
1709
  };
1646
1710
  post?: never;
1647
- delete: {
1711
+ delete?: never;
1712
+ options?: never;
1713
+ head?: never;
1714
+ patch?: never;
1715
+ trace?: never;
1716
+ };
1717
+ "/api/templates": {
1718
+ parameters: {
1719
+ query?: never;
1720
+ header?: never;
1721
+ path?: never;
1722
+ cookie?: never;
1723
+ };
1724
+ get: {
1648
1725
  parameters: {
1649
- query?: never;
1650
- header?: never;
1651
- path: {
1652
- id: string;
1726
+ query?: {
1727
+ search?: string;
1728
+ sort?: string;
1729
+ limit?: string;
1653
1730
  };
1731
+ header?: never;
1732
+ path?: never;
1654
1733
  cookie?: never;
1655
1734
  };
1656
1735
  requestBody?: never;
1657
1736
  responses: {
1658
- /** @description Deletion result */
1737
+ /** @description List of operation templates */
1659
1738
  200: {
1660
1739
  headers: {
1661
1740
  [name: string]: unknown;
1662
1741
  };
1663
1742
  content: {
1664
- "application/json": unknown;
1743
+ "application/json": components["schemas"]["OperationTemplate"][];
1665
1744
  };
1666
1745
  };
1667
1746
  /** @description Validation error */
@@ -1702,38 +1781,27 @@ interface paths {
1702
1781
  };
1703
1782
  };
1704
1783
  };
1705
- options?: never;
1706
- head?: never;
1707
- patch?: never;
1708
- trace?: never;
1709
- };
1710
- "/api/journal": {
1711
- parameters: {
1712
- query?: never;
1713
- header?: never;
1714
- path?: never;
1715
- cookie?: never;
1716
- };
1717
- get: {
1784
+ put?: never;
1785
+ post: {
1718
1786
  parameters: {
1719
- query?: {
1720
- search?: string;
1721
- sort?: string;
1722
- limit?: string;
1723
- };
1787
+ query?: never;
1724
1788
  header?: never;
1725
1789
  path?: never;
1726
1790
  cookie?: never;
1727
1791
  };
1728
- requestBody?: never;
1729
- responses: {
1730
- /** @description List of journal entries */
1731
- 200: {
1792
+ requestBody?: {
1793
+ content: {
1794
+ "application/json": components["schemas"]["Body"];
1795
+ };
1796
+ };
1797
+ responses: {
1798
+ /** @description Created operation template */
1799
+ 201: {
1732
1800
  headers: {
1733
1801
  [name: string]: unknown;
1734
1802
  };
1735
1803
  content: {
1736
- "application/json": components["schemas"]["JournalEntry"][];
1804
+ "application/json": components["schemas"]["OperationTemplate"];
1737
1805
  };
1738
1806
  };
1739
1807
  /** @description Validation error */
@@ -1774,27 +1842,37 @@ interface paths {
1774
1842
  };
1775
1843
  };
1776
1844
  };
1777
- put?: never;
1778
- post: {
1845
+ delete?: never;
1846
+ options?: never;
1847
+ head?: never;
1848
+ patch?: never;
1849
+ trace?: never;
1850
+ };
1851
+ "/api/templates/{id}": {
1852
+ parameters: {
1853
+ query?: never;
1854
+ header?: never;
1855
+ path?: never;
1856
+ cookie?: never;
1857
+ };
1858
+ get: {
1779
1859
  parameters: {
1780
1860
  query?: never;
1781
1861
  header?: never;
1782
- path?: never;
1783
- cookie?: never;
1784
- };
1785
- requestBody?: {
1786
- content: {
1787
- "application/json": components["schemas"]["JournalEntryCreate"];
1862
+ path: {
1863
+ id: string;
1788
1864
  };
1865
+ cookie?: never;
1789
1866
  };
1867
+ requestBody?: never;
1790
1868
  responses: {
1791
- /** @description Created journal entry */
1792
- 201: {
1869
+ /** @description A single operation template */
1870
+ 200: {
1793
1871
  headers: {
1794
1872
  [name: string]: unknown;
1795
1873
  };
1796
1874
  content: {
1797
- "application/json": components["schemas"]["JournalEntry"];
1875
+ "application/json": components["schemas"]["OperationTemplate"];
1798
1876
  };
1799
1877
  };
1800
1878
  /** @description Validation error */
@@ -1835,20 +1913,7 @@ interface paths {
1835
1913
  };
1836
1914
  };
1837
1915
  };
1838
- delete?: never;
1839
- options?: never;
1840
- head?: never;
1841
- patch?: never;
1842
- trace?: never;
1843
- };
1844
- "/api/journal/{id}": {
1845
- parameters: {
1846
- query?: never;
1847
- header?: never;
1848
- path?: never;
1849
- cookie?: never;
1850
- };
1851
- get: {
1916
+ put: {
1852
1917
  parameters: {
1853
1918
  query?: never;
1854
1919
  header?: never;
@@ -1857,15 +1922,19 @@ interface paths {
1857
1922
  };
1858
1923
  cookie?: never;
1859
1924
  };
1860
- requestBody?: never;
1925
+ requestBody?: {
1926
+ content: {
1927
+ "application/json": components["schemas"]["Body"];
1928
+ };
1929
+ };
1861
1930
  responses: {
1862
- /** @description A single journal entry */
1931
+ /** @description Updated operation template */
1863
1932
  200: {
1864
1933
  headers: {
1865
1934
  [name: string]: unknown;
1866
1935
  };
1867
1936
  content: {
1868
- "application/json": components["schemas"]["JournalEntry"];
1937
+ "application/json": components["schemas"]["OperationTemplate"];
1869
1938
  };
1870
1939
  };
1871
1940
  /** @description Validation error */
@@ -1906,24 +1975,8 @@ interface paths {
1906
1975
  };
1907
1976
  };
1908
1977
  };
1909
- put?: never;
1910
1978
  post?: never;
1911
- delete?: never;
1912
- options?: never;
1913
- head?: never;
1914
- patch?: never;
1915
- trace?: never;
1916
- };
1917
- "/api/journal/{id}/storno": {
1918
- parameters: {
1919
- query?: never;
1920
- header?: never;
1921
- path?: never;
1922
- cookie?: never;
1923
- };
1924
- get?: never;
1925
- put?: never;
1926
- post: {
1979
+ delete: {
1927
1980
  parameters: {
1928
1981
  query?: never;
1929
1982
  header?: never;
@@ -1934,13 +1987,13 @@ interface paths {
1934
1987
  };
1935
1988
  requestBody?: never;
1936
1989
  responses: {
1937
- /** @description Storno journal entry */
1938
- 201: {
1990
+ /** @description Deletion result */
1991
+ 200: {
1939
1992
  headers: {
1940
1993
  [name: string]: unknown;
1941
1994
  };
1942
1995
  content: {
1943
- "application/json": components["schemas"]["JournalEntry"];
1996
+ "application/json": unknown;
1944
1997
  };
1945
1998
  };
1946
1999
  /** @description Validation error */
@@ -1981,13 +2034,12 @@ interface paths {
1981
2034
  };
1982
2035
  };
1983
2036
  };
1984
- delete?: never;
1985
2037
  options?: never;
1986
2038
  head?: never;
1987
2039
  patch?: never;
1988
2040
  trace?: never;
1989
2041
  };
1990
- "/api/invoices": {
2042
+ "/api/journal": {
1991
2043
  parameters: {
1992
2044
  query?: never;
1993
2045
  header?: never;
@@ -2007,13 +2059,13 @@ interface paths {
2007
2059
  };
2008
2060
  requestBody?: never;
2009
2061
  responses: {
2010
- /** @description List of invoices */
2062
+ /** @description List of journal entries */
2011
2063
  200: {
2012
2064
  headers: {
2013
2065
  [name: string]: unknown;
2014
2066
  };
2015
2067
  content: {
2016
- "application/json": components["schemas"]["Invoice"][];
2068
+ "application/json": components["schemas"]["JournalEntry"][];
2017
2069
  };
2018
2070
  };
2019
2071
  /** @description Validation error */
@@ -2064,17 +2116,17 @@ interface paths {
2064
2116
  };
2065
2117
  requestBody?: {
2066
2118
  content: {
2067
- "application/json": components["schemas"]["Body"];
2119
+ "application/json": components["schemas"]["JournalEntryCreate"];
2068
2120
  };
2069
2121
  };
2070
2122
  responses: {
2071
- /** @description Created invoice */
2123
+ /** @description Created journal entry */
2072
2124
  201: {
2073
2125
  headers: {
2074
2126
  [name: string]: unknown;
2075
2127
  };
2076
2128
  content: {
2077
- "application/json": components["schemas"]["Invoice"];
2129
+ "application/json": components["schemas"]["JournalEntry"];
2078
2130
  };
2079
2131
  };
2080
2132
  /** @description Validation error */
@@ -2121,7 +2173,7 @@ interface paths {
2121
2173
  patch?: never;
2122
2174
  trace?: never;
2123
2175
  };
2124
- "/api/invoices/{id}": {
2176
+ "/api/journal/{id}": {
2125
2177
  parameters: {
2126
2178
  query?: never;
2127
2179
  header?: never;
@@ -2139,13 +2191,13 @@ interface paths {
2139
2191
  };
2140
2192
  requestBody?: never;
2141
2193
  responses: {
2142
- /** @description A single invoice */
2194
+ /** @description A single journal entry */
2143
2195
  200: {
2144
2196
  headers: {
2145
2197
  [name: string]: unknown;
2146
2198
  };
2147
2199
  content: {
2148
- "application/json": components["schemas"]["Invoice"];
2200
+ "application/json": components["schemas"]["JournalEntry"];
2149
2201
  };
2150
2202
  };
2151
2203
  /** @description Validation error */
@@ -2186,7 +2238,24 @@ interface paths {
2186
2238
  };
2187
2239
  };
2188
2240
  };
2189
- put: {
2241
+ put?: never;
2242
+ post?: never;
2243
+ delete?: never;
2244
+ options?: never;
2245
+ head?: never;
2246
+ patch?: never;
2247
+ trace?: never;
2248
+ };
2249
+ "/api/journal/{id}/storno": {
2250
+ parameters: {
2251
+ query?: never;
2252
+ header?: never;
2253
+ path?: never;
2254
+ cookie?: never;
2255
+ };
2256
+ get?: never;
2257
+ put?: never;
2258
+ post: {
2190
2259
  parameters: {
2191
2260
  query?: never;
2192
2261
  header?: never;
@@ -2195,19 +2264,15 @@ interface paths {
2195
2264
  };
2196
2265
  cookie?: never;
2197
2266
  };
2198
- requestBody?: {
2199
- content: {
2200
- "application/json": components["schemas"]["Body"];
2201
- };
2202
- };
2267
+ requestBody?: never;
2203
2268
  responses: {
2204
- /** @description Updated invoice */
2205
- 200: {
2269
+ /** @description Storno journal entry */
2270
+ 201: {
2206
2271
  headers: {
2207
2272
  [name: string]: unknown;
2208
2273
  };
2209
2274
  content: {
2210
- "application/json": components["schemas"]["Invoice"];
2275
+ "application/json": components["schemas"]["JournalEntry"];
2211
2276
  };
2212
2277
  };
2213
2278
  /** @description Validation error */
@@ -2248,25 +2313,39 @@ interface paths {
2248
2313
  };
2249
2314
  };
2250
2315
  };
2251
- post?: never;
2252
- delete: {
2316
+ delete?: never;
2317
+ options?: never;
2318
+ head?: never;
2319
+ patch?: never;
2320
+ trace?: never;
2321
+ };
2322
+ "/api/invoices": {
2323
+ parameters: {
2324
+ query?: never;
2325
+ header?: never;
2326
+ path?: never;
2327
+ cookie?: never;
2328
+ };
2329
+ get: {
2253
2330
  parameters: {
2254
- query?: never;
2255
- header?: never;
2256
- path: {
2257
- id: string;
2331
+ query?: {
2332
+ search?: string;
2333
+ sort?: string;
2334
+ limit?: string;
2258
2335
  };
2336
+ header?: never;
2337
+ path?: never;
2259
2338
  cookie?: never;
2260
2339
  };
2261
2340
  requestBody?: never;
2262
2341
  responses: {
2263
- /** @description Deletion result */
2342
+ /** @description List of invoices */
2264
2343
  200: {
2265
2344
  headers: {
2266
2345
  [name: string]: unknown;
2267
2346
  };
2268
2347
  content: {
2269
- "application/json": unknown;
2348
+ "application/json": components["schemas"]["Invoice"][];
2270
2349
  };
2271
2350
  };
2272
2351
  /** @description Validation error */
@@ -2307,36 +2386,27 @@ interface paths {
2307
2386
  };
2308
2387
  };
2309
2388
  };
2310
- options?: never;
2311
- head?: never;
2312
- patch?: never;
2313
- trace?: never;
2314
- };
2315
- "/api/invoices/{id}/posting-preview": {
2316
- parameters: {
2317
- query?: never;
2318
- header?: never;
2319
- path?: never;
2320
- cookie?: never;
2321
- };
2322
- get: {
2389
+ put?: never;
2390
+ post: {
2323
2391
  parameters: {
2324
2392
  query?: never;
2325
2393
  header?: never;
2326
- path: {
2327
- id: string;
2328
- };
2394
+ path?: never;
2329
2395
  cookie?: never;
2330
2396
  };
2331
- requestBody?: never;
2397
+ requestBody?: {
2398
+ content: {
2399
+ "application/json": components["schemas"]["Body"];
2400
+ };
2401
+ };
2332
2402
  responses: {
2333
- /** @description Journal entry preview (draft) or the posted entry */
2334
- 200: {
2403
+ /** @description Created invoice */
2404
+ 201: {
2335
2405
  headers: {
2336
2406
  [name: string]: unknown;
2337
2407
  };
2338
2408
  content: {
2339
- "application/json": unknown;
2409
+ "application/json": components["schemas"]["Invoice"];
2340
2410
  };
2341
2411
  };
2342
2412
  /** @description Validation error */
@@ -2377,28 +2447,20 @@ interface paths {
2377
2447
  };
2378
2448
  };
2379
2449
  };
2380
- put?: never;
2381
- post?: never;
2382
2450
  delete?: never;
2383
2451
  options?: never;
2384
2452
  head?: never;
2385
2453
  patch?: never;
2386
2454
  trace?: never;
2387
2455
  };
2388
- "/api/invoices/{id}/external-status": {
2456
+ "/api/invoices/{id}": {
2389
2457
  parameters: {
2390
2458
  query?: never;
2391
2459
  header?: never;
2392
2460
  path?: never;
2393
2461
  cookie?: never;
2394
2462
  };
2395
- get?: never;
2396
- put?: never;
2397
- post?: never;
2398
- delete?: never;
2399
- options?: never;
2400
- head?: never;
2401
- patch: {
2463
+ get: {
2402
2464
  parameters: {
2403
2465
  query?: never;
2404
2466
  header?: never;
@@ -2407,19 +2469,15 @@ interface paths {
2407
2469
  };
2408
2470
  cookie?: never;
2409
2471
  };
2410
- requestBody?: {
2411
- content: {
2412
- "application/json": components["schemas"]["Body"];
2413
- };
2414
- };
2472
+ requestBody?: never;
2415
2473
  responses: {
2416
- /** @description Updated invoice external status */
2474
+ /** @description A single invoice */
2417
2475
  200: {
2418
2476
  headers: {
2419
2477
  [name: string]: unknown;
2420
2478
  };
2421
2479
  content: {
2422
- "application/json": unknown;
2480
+ "application/json": components["schemas"]["Invoice"];
2423
2481
  };
2424
2482
  };
2425
2483
  /** @description Validation error */
@@ -2460,18 +2518,7 @@ interface paths {
2460
2518
  };
2461
2519
  };
2462
2520
  };
2463
- trace?: never;
2464
- };
2465
- "/api/invoices/{id}/post": {
2466
- parameters: {
2467
- query?: never;
2468
- header?: never;
2469
- path?: never;
2470
- cookie?: never;
2471
- };
2472
- get?: never;
2473
- put?: never;
2474
- post: {
2521
+ put: {
2475
2522
  parameters: {
2476
2523
  query?: never;
2477
2524
  header?: never;
@@ -2480,15 +2527,19 @@ interface paths {
2480
2527
  };
2481
2528
  cookie?: never;
2482
2529
  };
2483
- requestBody?: never;
2530
+ requestBody?: {
2531
+ content: {
2532
+ "application/json": components["schemas"]["Body"];
2533
+ };
2534
+ };
2484
2535
  responses: {
2485
- /** @description Posted invoice with created journal entry */
2536
+ /** @description Updated invoice */
2486
2537
  200: {
2487
2538
  headers: {
2488
2539
  [name: string]: unknown;
2489
2540
  };
2490
2541
  content: {
2491
- "application/json": unknown;
2542
+ "application/json": components["schemas"]["Invoice"];
2492
2543
  };
2493
2544
  };
2494
2545
  /** @description Validation error */
@@ -2529,22 +2580,8 @@ interface paths {
2529
2580
  };
2530
2581
  };
2531
2582
  };
2532
- delete?: never;
2533
- options?: never;
2534
- head?: never;
2535
- patch?: never;
2536
- trace?: never;
2537
- };
2538
- "/api/invoices/{id}/unpost": {
2539
- parameters: {
2540
- query?: never;
2541
- header?: never;
2542
- path?: never;
2543
- cookie?: never;
2544
- };
2545
- get?: never;
2546
- put?: never;
2547
- post: {
2583
+ post?: never;
2584
+ delete: {
2548
2585
  parameters: {
2549
2586
  query?: never;
2550
2587
  header?: never;
@@ -2555,7 +2592,7 @@ interface paths {
2555
2592
  };
2556
2593
  requestBody?: never;
2557
2594
  responses: {
2558
- /** @description Unposted invoice (returned to DRAFT) */
2595
+ /** @description Deletion result */
2559
2596
  200: {
2560
2597
  headers: {
2561
2598
  [name: string]: unknown;
@@ -2602,22 +2639,19 @@ interface paths {
2602
2639
  };
2603
2640
  };
2604
2641
  };
2605
- delete?: never;
2606
2642
  options?: never;
2607
2643
  head?: never;
2608
2644
  patch?: never;
2609
2645
  trace?: never;
2610
2646
  };
2611
- "/api/invoices/{id}/cancel": {
2647
+ "/api/invoices/{id}/posting-preview": {
2612
2648
  parameters: {
2613
2649
  query?: never;
2614
2650
  header?: never;
2615
2651
  path?: never;
2616
2652
  cookie?: never;
2617
2653
  };
2618
- get?: never;
2619
- put?: never;
2620
- post: {
2654
+ get: {
2621
2655
  parameters: {
2622
2656
  query?: never;
2623
2657
  header?: never;
@@ -2628,7 +2662,7 @@ interface paths {
2628
2662
  };
2629
2663
  requestBody?: never;
2630
2664
  responses: {
2631
- /** @description Cancelled invoice */
2665
+ /** @description Journal entry preview (draft) or the posted entry */
2632
2666
  200: {
2633
2667
  headers: {
2634
2668
  [name: string]: unknown;
@@ -2675,39 +2709,49 @@ interface paths {
2675
2709
  };
2676
2710
  };
2677
2711
  };
2712
+ put?: never;
2713
+ post?: never;
2678
2714
  delete?: never;
2679
2715
  options?: never;
2680
2716
  head?: never;
2681
2717
  patch?: never;
2682
2718
  trace?: never;
2683
2719
  };
2684
- "/api/products": {
2720
+ "/api/invoices/{id}/external-status": {
2685
2721
  parameters: {
2686
2722
  query?: never;
2687
2723
  header?: never;
2688
2724
  path?: never;
2689
2725
  cookie?: never;
2690
2726
  };
2691
- get: {
2727
+ get?: never;
2728
+ put?: never;
2729
+ post?: never;
2730
+ delete?: never;
2731
+ options?: never;
2732
+ head?: never;
2733
+ patch: {
2692
2734
  parameters: {
2693
- query?: {
2694
- search?: string;
2695
- sort?: string;
2696
- limit?: string;
2697
- };
2735
+ query?: never;
2698
2736
  header?: never;
2699
- path?: never;
2737
+ path: {
2738
+ id: string;
2739
+ };
2700
2740
  cookie?: never;
2701
2741
  };
2702
- requestBody?: never;
2742
+ requestBody?: {
2743
+ content: {
2744
+ "application/json": components["schemas"]["Body"];
2745
+ };
2746
+ };
2703
2747
  responses: {
2704
- /** @description List of products */
2748
+ /** @description Updated invoice external status */
2705
2749
  200: {
2706
2750
  headers: {
2707
2751
  [name: string]: unknown;
2708
2752
  };
2709
2753
  content: {
2710
- "application/json": components["schemas"]["Product"][];
2754
+ "application/json": unknown;
2711
2755
  };
2712
2756
  };
2713
2757
  /** @description Validation error */
@@ -2748,27 +2792,35 @@ interface paths {
2748
2792
  };
2749
2793
  };
2750
2794
  };
2795
+ trace?: never;
2796
+ };
2797
+ "/api/invoices/{id}/post": {
2798
+ parameters: {
2799
+ query?: never;
2800
+ header?: never;
2801
+ path?: never;
2802
+ cookie?: never;
2803
+ };
2804
+ get?: never;
2751
2805
  put?: never;
2752
2806
  post: {
2753
2807
  parameters: {
2754
2808
  query?: never;
2755
2809
  header?: never;
2756
- path?: never;
2757
- cookie?: never;
2758
- };
2759
- requestBody?: {
2760
- content: {
2761
- "application/json": components["schemas"]["Body"];
2810
+ path: {
2811
+ id: string;
2762
2812
  };
2813
+ cookie?: never;
2763
2814
  };
2815
+ requestBody?: never;
2764
2816
  responses: {
2765
- /** @description Created product */
2766
- 201: {
2817
+ /** @description Posted invoice and its journal entry; `journalEntry` is omitted, and `invoice.journalEntryId` is null, when the posting has no lines (every amount is 0, or the amounts net to 0) or the company keeps single-entry books (individuali veikla, verslo liudijimas) */
2818
+ 200: {
2767
2819
  headers: {
2768
2820
  [name: string]: unknown;
2769
2821
  };
2770
2822
  content: {
2771
- "application/json": components["schemas"]["Product"];
2823
+ "application/json": unknown;
2772
2824
  };
2773
2825
  };
2774
2826
  /** @description Validation error */
@@ -2815,14 +2867,16 @@ interface paths {
2815
2867
  patch?: never;
2816
2868
  trace?: never;
2817
2869
  };
2818
- "/api/products/{id}": {
2870
+ "/api/invoices/{id}/unpost": {
2819
2871
  parameters: {
2820
2872
  query?: never;
2821
2873
  header?: never;
2822
2874
  path?: never;
2823
2875
  cookie?: never;
2824
2876
  };
2825
- get: {
2877
+ get?: never;
2878
+ put?: never;
2879
+ post: {
2826
2880
  parameters: {
2827
2881
  query?: never;
2828
2882
  header?: never;
@@ -2833,13 +2887,13 @@ interface paths {
2833
2887
  };
2834
2888
  requestBody?: never;
2835
2889
  responses: {
2836
- /** @description A single product */
2890
+ /** @description Unposted invoice (returned to DRAFT) */
2837
2891
  200: {
2838
2892
  headers: {
2839
2893
  [name: string]: unknown;
2840
2894
  };
2841
2895
  content: {
2842
- "application/json": components["schemas"]["Product"];
2896
+ "application/json": unknown;
2843
2897
  };
2844
2898
  };
2845
2899
  /** @description Validation error */
@@ -2880,7 +2934,22 @@ interface paths {
2880
2934
  };
2881
2935
  };
2882
2936
  };
2883
- put: {
2937
+ delete?: never;
2938
+ options?: never;
2939
+ head?: never;
2940
+ patch?: never;
2941
+ trace?: never;
2942
+ };
2943
+ "/api/invoices/{id}/cancel": {
2944
+ parameters: {
2945
+ query?: never;
2946
+ header?: never;
2947
+ path?: never;
2948
+ cookie?: never;
2949
+ };
2950
+ get?: never;
2951
+ put?: never;
2952
+ post: {
2884
2953
  parameters: {
2885
2954
  query?: never;
2886
2955
  header?: never;
@@ -2889,19 +2958,15 @@ interface paths {
2889
2958
  };
2890
2959
  cookie?: never;
2891
2960
  };
2892
- requestBody?: {
2893
- content: {
2894
- "application/json": components["schemas"]["Body"];
2895
- };
2896
- };
2961
+ requestBody?: never;
2897
2962
  responses: {
2898
- /** @description Updated product */
2963
+ /** @description Cancelled invoice */
2899
2964
  200: {
2900
2965
  headers: {
2901
2966
  [name: string]: unknown;
2902
2967
  };
2903
2968
  content: {
2904
- "application/json": components["schemas"]["Product"];
2969
+ "application/json": unknown;
2905
2970
  };
2906
2971
  };
2907
2972
  /** @description Validation error */
@@ -2942,25 +3007,39 @@ interface paths {
2942
3007
  };
2943
3008
  };
2944
3009
  };
2945
- post?: never;
2946
- delete: {
3010
+ delete?: never;
3011
+ options?: never;
3012
+ head?: never;
3013
+ patch?: never;
3014
+ trace?: never;
3015
+ };
3016
+ "/api/products": {
3017
+ parameters: {
3018
+ query?: never;
3019
+ header?: never;
3020
+ path?: never;
3021
+ cookie?: never;
3022
+ };
3023
+ get: {
2947
3024
  parameters: {
2948
- query?: never;
2949
- header?: never;
2950
- path: {
2951
- id: string;
3025
+ query?: {
3026
+ search?: string;
3027
+ sort?: string;
3028
+ limit?: string;
2952
3029
  };
3030
+ header?: never;
3031
+ path?: never;
2953
3032
  cookie?: never;
2954
3033
  };
2955
3034
  requestBody?: never;
2956
3035
  responses: {
2957
- /** @description Deletion result */
3036
+ /** @description List of products */
2958
3037
  200: {
2959
3038
  headers: {
2960
3039
  [name: string]: unknown;
2961
3040
  };
2962
3041
  content: {
2963
- "application/json": unknown;
3042
+ "application/json": components["schemas"]["Product"][];
2964
3043
  };
2965
3044
  };
2966
3045
  /** @description Validation error */
@@ -2999,45 +3078,29 @@ interface paths {
2999
3078
  "application/json": components["schemas"]["ApiError"];
3000
3079
  };
3001
3080
  };
3002
- /** @description Product is referenced by existing documents */
3003
- 409: {
3004
- headers: {
3005
- [name: string]: unknown;
3006
- };
3007
- content: {
3008
- "application/json": unknown;
3009
- };
3010
- };
3011
3081
  };
3012
3082
  };
3013
- options?: never;
3014
- head?: never;
3015
- patch?: never;
3016
- trace?: never;
3017
- };
3018
- "/api/reports/trial-balance": {
3019
- parameters: {
3020
- query?: never;
3021
- header?: never;
3022
- path?: never;
3023
- cookie?: never;
3024
- };
3025
- get: {
3083
+ put?: never;
3084
+ post: {
3026
3085
  parameters: {
3027
3086
  query?: never;
3028
3087
  header?: never;
3029
3088
  path?: never;
3030
3089
  cookie?: never;
3031
3090
  };
3032
- requestBody?: never;
3091
+ requestBody?: {
3092
+ content: {
3093
+ "application/json": components["schemas"]["Body"];
3094
+ };
3095
+ };
3033
3096
  responses: {
3034
- /** @description Trial balance rows */
3035
- 200: {
3097
+ /** @description Created product */
3098
+ 201: {
3036
3099
  headers: {
3037
3100
  [name: string]: unknown;
3038
3101
  };
3039
3102
  content: {
3040
- "application/json": unknown;
3103
+ "application/json": components["schemas"]["Product"];
3041
3104
  };
3042
3105
  };
3043
3106
  /** @description Validation error */
@@ -3078,15 +3141,13 @@ interface paths {
3078
3141
  };
3079
3142
  };
3080
3143
  };
3081
- put?: never;
3082
- post?: never;
3083
3144
  delete?: never;
3084
3145
  options?: never;
3085
3146
  head?: never;
3086
3147
  patch?: never;
3087
3148
  trace?: never;
3088
3149
  };
3089
- "/api/reports/general-ledger": {
3150
+ "/api/products/{id}": {
3090
3151
  parameters: {
3091
3152
  query?: never;
3092
3153
  header?: never;
@@ -3097,18 +3158,20 @@ interface paths {
3097
3158
  parameters: {
3098
3159
  query?: never;
3099
3160
  header?: never;
3100
- path?: never;
3161
+ path: {
3162
+ id: string;
3163
+ };
3101
3164
  cookie?: never;
3102
3165
  };
3103
3166
  requestBody?: never;
3104
3167
  responses: {
3105
- /** @description General ledger */
3168
+ /** @description A single product */
3106
3169
  200: {
3107
3170
  headers: {
3108
3171
  [name: string]: unknown;
3109
3172
  };
3110
3173
  content: {
3111
- "application/json": unknown;
3174
+ "application/json": components["schemas"]["Product"];
3112
3175
  };
3113
3176
  };
3114
3177
  /** @description Validation error */
@@ -3149,37 +3212,28 @@ interface paths {
3149
3212
  };
3150
3213
  };
3151
3214
  };
3152
- put?: never;
3153
- post?: never;
3154
- delete?: never;
3155
- options?: never;
3156
- head?: never;
3157
- patch?: never;
3158
- trace?: never;
3159
- };
3160
- "/api/reports/account-analytics": {
3161
- parameters: {
3162
- query?: never;
3163
- header?: never;
3164
- path?: never;
3165
- cookie?: never;
3166
- };
3167
- get: {
3215
+ put: {
3168
3216
  parameters: {
3169
3217
  query?: never;
3170
3218
  header?: never;
3171
- path?: never;
3219
+ path: {
3220
+ id: string;
3221
+ };
3172
3222
  cookie?: never;
3173
3223
  };
3174
- requestBody?: never;
3224
+ requestBody?: {
3225
+ content: {
3226
+ "application/json": components["schemas"]["Body"];
3227
+ };
3228
+ };
3175
3229
  responses: {
3176
- /** @description Account turnover broken down by an analytical dimension */
3230
+ /** @description Updated product */
3177
3231
  200: {
3178
3232
  headers: {
3179
3233
  [name: string]: unknown;
3180
3234
  };
3181
3235
  content: {
3182
- "application/json": unknown;
3236
+ "application/json": components["schemas"]["Product"];
3183
3237
  };
3184
3238
  };
3185
3239
  /** @description Validation error */
@@ -3220,31 +3274,19 @@ interface paths {
3220
3274
  };
3221
3275
  };
3222
3276
  };
3223
- put?: never;
3224
3277
  post?: never;
3225
- delete?: never;
3226
- options?: never;
3227
- head?: never;
3228
- patch?: never;
3229
- trace?: never;
3230
- };
3231
- "/api/reports/partner-balance": {
3232
- parameters: {
3233
- query?: never;
3234
- header?: never;
3235
- path?: never;
3236
- cookie?: never;
3237
- };
3238
- get: {
3278
+ delete: {
3239
3279
  parameters: {
3240
3280
  query?: never;
3241
3281
  header?: never;
3242
- path?: never;
3282
+ path: {
3283
+ id: string;
3284
+ };
3243
3285
  cookie?: never;
3244
3286
  };
3245
3287
  requestBody?: never;
3246
3288
  responses: {
3247
- /** @description Partner balances */
3289
+ /** @description Deletion result */
3248
3290
  200: {
3249
3291
  headers: {
3250
3292
  [name: string]: unknown;
@@ -3289,17 +3331,23 @@ interface paths {
3289
3331
  "application/json": components["schemas"]["ApiError"];
3290
3332
  };
3291
3333
  };
3334
+ /** @description Product is referenced by existing documents */
3335
+ 409: {
3336
+ headers: {
3337
+ [name: string]: unknown;
3338
+ };
3339
+ content: {
3340
+ "application/json": unknown;
3341
+ };
3342
+ };
3292
3343
  };
3293
3344
  };
3294
- put?: never;
3295
- post?: never;
3296
- delete?: never;
3297
3345
  options?: never;
3298
3346
  head?: never;
3299
3347
  patch?: never;
3300
3348
  trace?: never;
3301
3349
  };
3302
- "/api/reports/employee-balance": {
3350
+ "/api/reports/trial-balance": {
3303
3351
  parameters: {
3304
3352
  query?: never;
3305
3353
  header?: never;
@@ -3315,7 +3363,7 @@ interface paths {
3315
3363
  };
3316
3364
  requestBody?: never;
3317
3365
  responses: {
3318
- /** @description Employee settlement balances */
3366
+ /** @description Trial balance rows */
3319
3367
  200: {
3320
3368
  headers: {
3321
3369
  [name: string]: unknown;
@@ -3370,7 +3418,7 @@ interface paths {
3370
3418
  patch?: never;
3371
3419
  trace?: never;
3372
3420
  };
3373
- "/api/reports/stock-reconciliation": {
3421
+ "/api/reports/general-ledger": {
3374
3422
  parameters: {
3375
3423
  query?: never;
3376
3424
  header?: never;
@@ -3379,16 +3427,14 @@ interface paths {
3379
3427
  };
3380
3428
  get: {
3381
3429
  parameters: {
3382
- query?: {
3383
- to?: string;
3384
- };
3430
+ query?: never;
3385
3431
  header?: never;
3386
3432
  path?: never;
3387
3433
  cookie?: never;
3388
3434
  };
3389
3435
  requestBody?: never;
3390
3436
  responses: {
3391
- /** @description Stock register against the inventory account */
3437
+ /** @description General ledger */
3392
3438
  200: {
3393
3439
  headers: {
3394
3440
  [name: string]: unknown;
@@ -3443,7 +3489,7 @@ interface paths {
3443
3489
  patch?: never;
3444
3490
  trace?: never;
3445
3491
  };
3446
- "/api/reports/cash-book": {
3492
+ "/api/reports/account-analytics": {
3447
3493
  parameters: {
3448
3494
  query?: never;
3449
3495
  header?: never;
@@ -3459,7 +3505,7 @@ interface paths {
3459
3505
  };
3460
3506
  requestBody?: never;
3461
3507
  responses: {
3462
- /** @description Cash book */
3508
+ /** @description Account turnover broken down by an analytical dimension */
3463
3509
  200: {
3464
3510
  headers: {
3465
3511
  [name: string]: unknown;
@@ -3514,7 +3560,7 @@ interface paths {
3514
3560
  patch?: never;
3515
3561
  trace?: never;
3516
3562
  };
3517
- "/api/reports/isaf-export": {
3563
+ "/api/reports/partner-balance": {
3518
3564
  parameters: {
3519
3565
  query?: never;
3520
3566
  header?: never;
@@ -3530,13 +3576,13 @@ interface paths {
3530
3576
  };
3531
3577
  requestBody?: never;
3532
3578
  responses: {
3533
- /** @description i.SAF XML export */
3579
+ /** @description Partner balances */
3534
3580
  200: {
3535
3581
  headers: {
3536
3582
  [name: string]: unknown;
3537
3583
  };
3538
3584
  content: {
3539
- "application/xml": string;
3585
+ "application/json": unknown;
3540
3586
  };
3541
3587
  };
3542
3588
  /** @description Validation error */
@@ -3585,7 +3631,7 @@ interface paths {
3585
3631
  patch?: never;
3586
3632
  trace?: never;
3587
3633
  };
3588
- "/api/reports/financial-statements": {
3634
+ "/api/reports/employee-balance": {
3589
3635
  parameters: {
3590
3636
  query?: never;
3591
3637
  header?: never;
@@ -3601,7 +3647,7 @@ interface paths {
3601
3647
  };
3602
3648
  requestBody?: never;
3603
3649
  responses: {
3604
- /** @description Balance sheet and profit & loss statement */
3650
+ /** @description Employee settlement balances */
3605
3651
  200: {
3606
3652
  headers: {
3607
3653
  [name: string]: unknown;
@@ -3656,7 +3702,7 @@ interface paths {
3656
3702
  patch?: never;
3657
3703
  trace?: never;
3658
3704
  };
3659
- "/api/reports/projects": {
3705
+ "/api/reports/stock-reconciliation": {
3660
3706
  parameters: {
3661
3707
  query?: never;
3662
3708
  header?: never;
@@ -3665,14 +3711,16 @@ interface paths {
3665
3711
  };
3666
3712
  get: {
3667
3713
  parameters: {
3668
- query?: never;
3714
+ query?: {
3715
+ to?: string;
3716
+ };
3669
3717
  header?: never;
3670
3718
  path?: never;
3671
3719
  cookie?: never;
3672
3720
  };
3673
3721
  requestBody?: never;
3674
3722
  responses: {
3675
- /** @description Project profitability register */
3723
+ /** @description Stock register against the inventory account */
3676
3724
  200: {
3677
3725
  headers: {
3678
3726
  [name: string]: unknown;
@@ -3727,7 +3775,7 @@ interface paths {
3727
3775
  patch?: never;
3728
3776
  trace?: never;
3729
3777
  };
3730
- "/api/reports/projects/{id}": {
3778
+ "/api/reports/cash-book": {
3731
3779
  parameters: {
3732
3780
  query?: never;
3733
3781
  header?: never;
@@ -3738,14 +3786,12 @@ interface paths {
3738
3786
  parameters: {
3739
3787
  query?: never;
3740
3788
  header?: never;
3741
- path: {
3742
- id: string;
3743
- };
3789
+ path?: never;
3744
3790
  cookie?: never;
3745
3791
  };
3746
3792
  requestBody?: never;
3747
3793
  responses: {
3748
- /** @description One project, with its P&L and cash flow */
3794
+ /** @description Cash book */
3749
3795
  200: {
3750
3796
  headers: {
3751
3797
  [name: string]: unknown;
@@ -3800,7 +3846,7 @@ interface paths {
3800
3846
  patch?: never;
3801
3847
  trace?: never;
3802
3848
  };
3803
- "/api/financial-statement-sets": {
3849
+ "/api/reports/isaf-export": {
3804
3850
  parameters: {
3805
3851
  query?: never;
3806
3852
  header?: never;
@@ -3816,13 +3862,13 @@ interface paths {
3816
3862
  };
3817
3863
  requestBody?: never;
3818
3864
  responses: {
3819
- /** @description Filed sets */
3865
+ /** @description i.SAF XML export */
3820
3866
  200: {
3821
3867
  headers: {
3822
3868
  [name: string]: unknown;
3823
3869
  };
3824
3870
  content: {
3825
- "application/json": unknown;
3871
+ "application/xml": string;
3826
3872
  };
3827
3873
  };
3828
3874
  /** @description Validation error */
@@ -3864,26 +3910,109 @@ interface paths {
3864
3910
  };
3865
3911
  };
3866
3912
  put?: never;
3867
- post: {
3913
+ post?: never;
3914
+ delete?: never;
3915
+ options?: never;
3916
+ head?: never;
3917
+ patch?: never;
3918
+ trace?: never;
3919
+ };
3920
+ "/api/reports/isaf-export/preview": {
3921
+ parameters: {
3922
+ query?: never;
3923
+ header?: never;
3924
+ path?: never;
3925
+ cookie?: never;
3926
+ };
3927
+ get: {
3868
3928
  parameters: {
3869
3929
  query?: never;
3870
3930
  header?: never;
3871
3931
  path?: never;
3872
3932
  cookie?: never;
3873
3933
  };
3874
- requestBody?: {
3875
- content: {
3876
- "application/json": unknown;
3877
- };
3878
- };
3934
+ requestBody?: never;
3879
3935
  responses: {
3880
- /** @description Set frozen */
3881
- 201: {
3936
+ /** @description What the i.SAF file will contain, and what it leaves out */
3937
+ 200: {
3882
3938
  headers: {
3883
3939
  [name: string]: unknown;
3884
3940
  };
3885
3941
  content: {
3886
- "application/json": unknown;
3942
+ "application/json": {
3943
+ sales: {
3944
+ invoiceCount: number;
3945
+ taxableCents: number;
3946
+ vatCents: number;
3947
+ groups: {
3948
+ taxCode: string | null;
3949
+ taxPercentage: number | null;
3950
+ invoiceCount: number;
3951
+ taxableCents: number;
3952
+ vatCents: number;
3953
+ /** @enum {string|null} */
3954
+ issue: "WRONG_REGISTER" | "NOT_FILED" | null;
3955
+ }[];
3956
+ rows: {
3957
+ invoiceNo: string;
3958
+ invoiceDate: string;
3959
+ invoiceType: string;
3960
+ partnerName: string;
3961
+ partnerVatCode: string;
3962
+ partnerRegCode: string | null;
3963
+ partnerCountry: string;
3964
+ taxCode: string | null;
3965
+ vatCode: {
3966
+ code: string;
3967
+ name: string;
3968
+ } | null;
3969
+ taxPercentage: number | null;
3970
+ taxableCents: number;
3971
+ vatCents: number | null;
3972
+ }[];
3973
+ };
3974
+ purchases: {
3975
+ invoiceCount: number;
3976
+ taxableCents: number;
3977
+ vatCents: number;
3978
+ groups: {
3979
+ taxCode: string | null;
3980
+ taxPercentage: number | null;
3981
+ invoiceCount: number;
3982
+ taxableCents: number;
3983
+ vatCents: number;
3984
+ /** @enum {string|null} */
3985
+ issue: "WRONG_REGISTER" | "NOT_FILED" | null;
3986
+ }[];
3987
+ rows: {
3988
+ invoiceNo: string;
3989
+ invoiceDate: string;
3990
+ invoiceType: string;
3991
+ partnerName: string;
3992
+ partnerVatCode: string;
3993
+ partnerRegCode: string | null;
3994
+ partnerCountry: string;
3995
+ taxCode: string | null;
3996
+ vatCode: {
3997
+ code: string;
3998
+ name: string;
3999
+ } | null;
4000
+ taxPercentage: number | null;
4001
+ taxableCents: number;
4002
+ vatCents: number | null;
4003
+ }[];
4004
+ };
4005
+ excluded: {
4006
+ invoiceId: string;
4007
+ number: string | null;
4008
+ date: string;
4009
+ partnerName: string | null;
4010
+ partnerCode: string | null;
4011
+ totalCents: number;
4012
+ /** @enum {string} */
4013
+ reason: "SUPPLIER_NOT_VAT_REGISTERED" | "NO_PARTNER" | "NO_VAT_SUMMARY";
4014
+ }[];
4015
+ };
3887
4016
  };
3888
4017
  };
3889
4018
  /** @description Validation error */
@@ -3924,34 +4053,31 @@ interface paths {
3924
4053
  };
3925
4054
  };
3926
4055
  };
4056
+ put?: never;
4057
+ post?: never;
3927
4058
  delete?: never;
3928
4059
  options?: never;
3929
4060
  head?: never;
3930
4061
  patch?: never;
3931
4062
  trace?: never;
3932
4063
  };
3933
- "/api/financial-statement-sets/{id}": {
4064
+ "/api/reports/financial-statements": {
3934
4065
  parameters: {
3935
4066
  query?: never;
3936
4067
  header?: never;
3937
4068
  path?: never;
3938
4069
  cookie?: never;
3939
4070
  };
3940
- get?: never;
3941
- put?: never;
3942
- post?: never;
3943
- delete: {
4071
+ get: {
3944
4072
  parameters: {
3945
4073
  query?: never;
3946
4074
  header?: never;
3947
- path: {
3948
- id: string;
3949
- };
4075
+ path?: never;
3950
4076
  cookie?: never;
3951
4077
  };
3952
4078
  requestBody?: never;
3953
4079
  responses: {
3954
- /** @description Deleted */
4080
+ /** @description Balance sheet and profit & loss statement */
3955
4081
  200: {
3956
4082
  headers: {
3957
4083
  [name: string]: unknown;
@@ -3998,35 +4124,32 @@ interface paths {
3998
4124
  };
3999
4125
  };
4000
4126
  };
4127
+ put?: never;
4128
+ post?: never;
4129
+ delete?: never;
4001
4130
  options?: never;
4002
4131
  head?: never;
4003
4132
  patch?: never;
4004
4133
  trace?: never;
4005
4134
  };
4006
- "/api/year-end-close": {
4135
+ "/api/reports/projects": {
4007
4136
  parameters: {
4008
4137
  query?: never;
4009
4138
  header?: never;
4010
4139
  path?: never;
4011
4140
  cookie?: never;
4012
4141
  };
4013
- get?: never;
4014
- put?: never;
4015
- post: {
4142
+ get: {
4016
4143
  parameters: {
4017
4144
  query?: never;
4018
4145
  header?: never;
4019
4146
  path?: never;
4020
4147
  cookie?: never;
4021
4148
  };
4022
- requestBody?: {
4023
- content: {
4024
- "application/json": unknown;
4025
- };
4026
- };
4149
+ requestBody?: never;
4027
4150
  responses: {
4028
- /** @description Closing entry created */
4029
- 201: {
4151
+ /** @description Project profitability register */
4152
+ 200: {
4030
4153
  headers: {
4031
4154
  [name: string]: unknown;
4032
4155
  };
@@ -4070,45 +4193,35 @@ interface paths {
4070
4193
  "application/json": components["schemas"]["ApiError"];
4071
4194
  };
4072
4195
  };
4073
- /** @description Year already closed */
4074
- 409: {
4075
- headers: {
4076
- [name: string]: unknown;
4077
- };
4078
- content: {
4079
- "application/json": unknown;
4080
- };
4081
- };
4082
4196
  };
4083
4197
  };
4198
+ put?: never;
4199
+ post?: never;
4084
4200
  delete?: never;
4085
4201
  options?: never;
4086
4202
  head?: never;
4087
4203
  patch?: never;
4088
4204
  trace?: never;
4089
4205
  };
4090
- "/api/year-end-close/{fiscalYear}": {
4206
+ "/api/reports/projects/{id}": {
4091
4207
  parameters: {
4092
4208
  query?: never;
4093
4209
  header?: never;
4094
4210
  path?: never;
4095
4211
  cookie?: never;
4096
4212
  };
4097
- get?: never;
4098
- put?: never;
4099
- post?: never;
4100
- delete: {
4213
+ get: {
4101
4214
  parameters: {
4102
4215
  query?: never;
4103
4216
  header?: never;
4104
4217
  path: {
4105
- fiscalYear: string;
4218
+ id: string;
4106
4219
  };
4107
4220
  cookie?: never;
4108
4221
  };
4109
4222
  requestBody?: never;
4110
4223
  responses: {
4111
- /** @description Closing entry removed */
4224
+ /** @description One project, with its P&L and cash flow */
4112
4225
  200: {
4113
4226
  headers: {
4114
4227
  [name: string]: unknown;
@@ -4155,12 +4268,15 @@ interface paths {
4155
4268
  };
4156
4269
  };
4157
4270
  };
4271
+ put?: never;
4272
+ post?: never;
4273
+ delete?: never;
4158
4274
  options?: never;
4159
4275
  head?: never;
4160
4276
  patch?: never;
4161
4277
  trace?: never;
4162
4278
  };
4163
- "/api/opening-balances": {
4279
+ "/api/financial-statement-sets": {
4164
4280
  parameters: {
4165
4281
  query?: never;
4166
4282
  header?: never;
@@ -4176,7 +4292,7 @@ interface paths {
4176
4292
  };
4177
4293
  requestBody?: never;
4178
4294
  responses: {
4179
- /** @description The opening-balance entry (or null) and the stock it declared */
4295
+ /** @description Filed sets */
4180
4296
  200: {
4181
4297
  headers: {
4182
4298
  [name: string]: unknown;
@@ -4223,7 +4339,8 @@ interface paths {
4223
4339
  };
4224
4340
  };
4225
4341
  };
4226
- put: {
4342
+ put?: never;
4343
+ post: {
4227
4344
  parameters: {
4228
4345
  query?: never;
4229
4346
  header?: never;
@@ -4232,20 +4349,11 @@ interface paths {
4232
4349
  };
4233
4350
  requestBody?: {
4234
4351
  content: {
4235
- "application/json": components["schemas"]["OpeningBalancesPut"];
4352
+ "application/json": unknown;
4236
4353
  };
4237
4354
  };
4238
4355
  responses: {
4239
- /** @description Existing entry replaced */
4240
- 200: {
4241
- headers: {
4242
- [name: string]: unknown;
4243
- };
4244
- content: {
4245
- "application/json": unknown;
4246
- };
4247
- };
4248
- /** @description Entry created */
4356
+ /** @description Set frozen */
4249
4357
  201: {
4250
4358
  headers: {
4251
4359
  [name: string]: unknown;
@@ -4292,17 +4400,34 @@ interface paths {
4292
4400
  };
4293
4401
  };
4294
4402
  };
4403
+ delete?: never;
4404
+ options?: never;
4405
+ head?: never;
4406
+ patch?: never;
4407
+ trace?: never;
4408
+ };
4409
+ "/api/financial-statement-sets/{id}": {
4410
+ parameters: {
4411
+ query?: never;
4412
+ header?: never;
4413
+ path?: never;
4414
+ cookie?: never;
4415
+ };
4416
+ get?: never;
4417
+ put?: never;
4295
4418
  post?: never;
4296
4419
  delete: {
4297
4420
  parameters: {
4298
4421
  query?: never;
4299
4422
  header?: never;
4300
- path?: never;
4423
+ path: {
4424
+ id: string;
4425
+ };
4301
4426
  cookie?: never;
4302
4427
  };
4303
4428
  requestBody?: never;
4304
4429
  responses: {
4305
- /** @description Entry removed */
4430
+ /** @description Deleted */
4306
4431
  200: {
4307
4432
  headers: {
4308
4433
  [name: string]: unknown;
@@ -4354,33 +4479,35 @@ interface paths {
4354
4479
  patch?: never;
4355
4480
  trace?: never;
4356
4481
  };
4357
- "/api/bank-statements": {
4482
+ "/api/year-end-close": {
4358
4483
  parameters: {
4359
4484
  query?: never;
4360
4485
  header?: never;
4361
4486
  path?: never;
4362
4487
  cookie?: never;
4363
4488
  };
4364
- get: {
4489
+ get?: never;
4490
+ put?: never;
4491
+ post: {
4365
4492
  parameters: {
4366
- query?: {
4367
- search?: string;
4368
- sort?: string;
4369
- limit?: string;
4370
- };
4493
+ query?: never;
4371
4494
  header?: never;
4372
4495
  path?: never;
4373
4496
  cookie?: never;
4374
4497
  };
4375
- requestBody?: never;
4498
+ requestBody?: {
4499
+ content: {
4500
+ "application/json": unknown;
4501
+ };
4502
+ };
4376
4503
  responses: {
4377
- /** @description List of imported bank statements */
4378
- 200: {
4504
+ /** @description Closing entry created */
4505
+ 201: {
4379
4506
  headers: {
4380
4507
  [name: string]: unknown;
4381
4508
  };
4382
4509
  content: {
4383
- "application/json": components["schemas"]["BankStatement"][];
4510
+ "application/json": unknown;
4384
4511
  };
4385
4512
  };
4386
4513
  /** @description Validation error */
@@ -4419,17 +4546,24 @@ interface paths {
4419
4546
  "application/json": components["schemas"]["ApiError"];
4420
4547
  };
4421
4548
  };
4549
+ /** @description Year already closed */
4550
+ 409: {
4551
+ headers: {
4552
+ [name: string]: unknown;
4553
+ };
4554
+ content: {
4555
+ "application/json": unknown;
4556
+ };
4557
+ };
4422
4558
  };
4423
4559
  };
4424
- put?: never;
4425
- post?: never;
4426
4560
  delete?: never;
4427
4561
  options?: never;
4428
4562
  head?: never;
4429
4563
  patch?: never;
4430
4564
  trace?: never;
4431
4565
  };
4432
- "/api/bank-statements/detect": {
4566
+ "/api/year-end-close/{fiscalYear}": {
4433
4567
  parameters: {
4434
4568
  query?: never;
4435
4569
  header?: never;
@@ -4438,31 +4572,25 @@ interface paths {
4438
4572
  };
4439
4573
  get?: never;
4440
4574
  put?: never;
4441
- post: {
4575
+ post?: never;
4576
+ delete: {
4442
4577
  parameters: {
4443
4578
  query?: never;
4444
4579
  header?: never;
4445
- path?: never;
4446
- cookie?: never;
4447
- };
4448
- requestBody?: {
4449
- content: {
4450
- "multipart/form-data": {
4451
- /** Format: binary */
4452
- file?: string;
4453
- };
4580
+ path: {
4581
+ fiscalYear: string;
4454
4582
  };
4583
+ cookie?: never;
4455
4584
  };
4585
+ requestBody?: never;
4456
4586
  responses: {
4457
- /** @description Detected bank statement format */
4587
+ /** @description Closing entry removed */
4458
4588
  200: {
4459
4589
  headers: {
4460
4590
  [name: string]: unknown;
4461
4591
  };
4462
4592
  content: {
4463
- "application/json": {
4464
- format: string | null;
4465
- };
4593
+ "application/json": unknown;
4466
4594
  };
4467
4595
  };
4468
4596
  /** @description Validation error */
@@ -4503,42 +4631,28 @@ interface paths {
4503
4631
  };
4504
4632
  };
4505
4633
  };
4506
- delete?: never;
4507
4634
  options?: never;
4508
4635
  head?: never;
4509
4636
  patch?: never;
4510
4637
  trace?: never;
4511
4638
  };
4512
- "/api/bank-statements/import": {
4639
+ "/api/opening-balances": {
4513
4640
  parameters: {
4514
4641
  query?: never;
4515
4642
  header?: never;
4516
4643
  path?: never;
4517
4644
  cookie?: never;
4518
4645
  };
4519
- get?: never;
4520
- put?: never;
4521
- post: {
4646
+ get: {
4522
4647
  parameters: {
4523
4648
  query?: never;
4524
4649
  header?: never;
4525
4650
  path?: never;
4526
4651
  cookie?: never;
4527
4652
  };
4528
- requestBody?: {
4529
- content: {
4530
- "multipart/form-data": {
4531
- /** Format: binary */
4532
- file?: string;
4533
- /** @description Explicit import format id (overrides auto-detect) */
4534
- format?: string;
4535
- /** @description 'true' to import only inflows (drop expense lines) */
4536
- incomeOnly?: string;
4537
- };
4538
- };
4539
- };
4653
+ requestBody?: never;
4540
4654
  responses: {
4541
- /** @description Import result as NDJSON stream */
4655
+ /** @description The opening-balance entry (or null) and the stock it declared */
4542
4656
  200: {
4543
4657
  headers: {
4544
4658
  [name: string]: unknown;
@@ -4585,42 +4699,92 @@ interface paths {
4585
4699
  };
4586
4700
  };
4587
4701
  };
4588
- delete?: never;
4589
- options?: never;
4590
- head?: never;
4591
- patch?: never;
4592
- trace?: never;
4593
- };
4594
- "/api/bank-statements/{id}": {
4595
- parameters: {
4596
- query?: never;
4597
- header?: never;
4598
- path?: never;
4599
- cookie?: never;
4702
+ put: {
4703
+ parameters: {
4704
+ query?: never;
4705
+ header?: never;
4706
+ path?: never;
4707
+ cookie?: never;
4708
+ };
4709
+ requestBody?: {
4710
+ content: {
4711
+ "application/json": components["schemas"]["OpeningBalancesPut"];
4712
+ };
4713
+ };
4714
+ responses: {
4715
+ /** @description Existing entry replaced */
4716
+ 200: {
4717
+ headers: {
4718
+ [name: string]: unknown;
4719
+ };
4720
+ content: {
4721
+ "application/json": unknown;
4722
+ };
4723
+ };
4724
+ /** @description Entry created */
4725
+ 201: {
4726
+ headers: {
4727
+ [name: string]: unknown;
4728
+ };
4729
+ content: {
4730
+ "application/json": unknown;
4731
+ };
4732
+ };
4733
+ /** @description Validation error */
4734
+ 400: {
4735
+ headers: {
4736
+ [name: string]: unknown;
4737
+ };
4738
+ content: {
4739
+ "application/json": components["schemas"]["ApiError"];
4740
+ };
4741
+ };
4742
+ /** @description Unauthorized */
4743
+ 401: {
4744
+ headers: {
4745
+ [name: string]: unknown;
4746
+ };
4747
+ content: {
4748
+ "application/json": components["schemas"]["ApiError"];
4749
+ };
4750
+ };
4751
+ /** @description Forbidden (read-only / plan restricted) */
4752
+ 403: {
4753
+ headers: {
4754
+ [name: string]: unknown;
4755
+ };
4756
+ content: {
4757
+ "application/json": components["schemas"]["ApiError"];
4758
+ };
4759
+ };
4760
+ /** @description Not found */
4761
+ 404: {
4762
+ headers: {
4763
+ [name: string]: unknown;
4764
+ };
4765
+ content: {
4766
+ "application/json": components["schemas"]["ApiError"];
4767
+ };
4768
+ };
4769
+ };
4600
4770
  };
4601
- get?: never;
4602
- put?: never;
4603
4771
  post?: never;
4604
4772
  delete: {
4605
4773
  parameters: {
4606
4774
  query?: never;
4607
4775
  header?: never;
4608
- path: {
4609
- id: string;
4610
- };
4776
+ path?: never;
4611
4777
  cookie?: never;
4612
4778
  };
4613
4779
  requestBody?: never;
4614
4780
  responses: {
4615
- /** @description Deletion result */
4781
+ /** @description Entry removed */
4616
4782
  200: {
4617
4783
  headers: {
4618
4784
  [name: string]: unknown;
4619
4785
  };
4620
4786
  content: {
4621
- "application/json": {
4622
- ok: boolean;
4623
- };
4787
+ "application/json": unknown;
4624
4788
  };
4625
4789
  };
4626
4790
  /** @description Validation error */
@@ -4666,7 +4830,7 @@ interface paths {
4666
4830
  patch?: never;
4667
4831
  trace?: never;
4668
4832
  };
4669
- "/api/bank-transactions": {
4833
+ "/api/bank-statements": {
4670
4834
  parameters: {
4671
4835
  query?: never;
4672
4836
  header?: never;
@@ -4686,13 +4850,13 @@ interface paths {
4686
4850
  };
4687
4851
  requestBody?: never;
4688
4852
  responses: {
4689
- /** @description List of bank transactions */
4853
+ /** @description List of imported bank statements */
4690
4854
  200: {
4691
4855
  headers: {
4692
4856
  [name: string]: unknown;
4693
4857
  };
4694
4858
  content: {
4695
- "application/json": components["schemas"]["BankTransaction"][];
4859
+ "application/json": components["schemas"]["BankStatement"][];
4696
4860
  };
4697
4861
  };
4698
4862
  /** @description Validation error */
@@ -4734,6 +4898,22 @@ interface paths {
4734
4898
  };
4735
4899
  };
4736
4900
  put?: never;
4901
+ post?: never;
4902
+ delete?: never;
4903
+ options?: never;
4904
+ head?: never;
4905
+ patch?: never;
4906
+ trace?: never;
4907
+ };
4908
+ "/api/bank-statements/detect": {
4909
+ parameters: {
4910
+ query?: never;
4911
+ header?: never;
4912
+ path?: never;
4913
+ cookie?: never;
4914
+ };
4915
+ get?: never;
4916
+ put?: never;
4737
4917
  post: {
4738
4918
  parameters: {
4739
4919
  query?: never;
@@ -4743,17 +4923,22 @@ interface paths {
4743
4923
  };
4744
4924
  requestBody?: {
4745
4925
  content: {
4746
- "application/json": components["schemas"]["Body"];
4926
+ "multipart/form-data": {
4927
+ /** Format: binary */
4928
+ file?: string;
4929
+ };
4747
4930
  };
4748
4931
  };
4749
4932
  responses: {
4750
- /** @description Created bank transaction */
4751
- 201: {
4933
+ /** @description Detected bank statement format */
4934
+ 200: {
4752
4935
  headers: {
4753
4936
  [name: string]: unknown;
4754
4937
  };
4755
4938
  content: {
4756
- "application/json": components["schemas"]["BankTransaction"];
4939
+ "application/json": {
4940
+ format: string | null;
4941
+ };
4757
4942
  };
4758
4943
  };
4759
4944
  /** @description Validation error */
@@ -4792,13 +4977,13 @@ interface paths {
4792
4977
  "application/json": components["schemas"]["ApiError"];
4793
4978
  };
4794
4979
  };
4795
- /** @description Duplicate fingerprint */
4796
- 409: {
4980
+ /** @description The body is larger than a statement file of 30 MB and its multipart envelope: BANK_STATEMENT_TOO_LARGE */
4981
+ 413: {
4797
4982
  headers: {
4798
4983
  [name: string]: unknown;
4799
4984
  };
4800
4985
  content: {
4801
- "application/json": unknown;
4986
+ "application/json": components["schemas"]["ApiError"];
4802
4987
  };
4803
4988
  };
4804
4989
  };
@@ -4809,44 +4994,42 @@ interface paths {
4809
4994
  patch?: never;
4810
4995
  trace?: never;
4811
4996
  };
4812
- "/api/bank-transactions/fx-match": {
4997
+ "/api/bank-statements/import": {
4813
4998
  parameters: {
4814
4999
  query?: never;
4815
5000
  header?: never;
4816
5001
  path?: never;
4817
5002
  cookie?: never;
4818
5003
  };
4819
- get: {
5004
+ get?: never;
5005
+ put?: never;
5006
+ post: {
4820
5007
  parameters: {
4821
- query: {
4822
- currency: string;
4823
- amount: number;
4824
- date: string;
4825
- };
5008
+ query?: never;
4826
5009
  header?: never;
4827
5010
  path?: never;
4828
5011
  cookie?: never;
4829
5012
  };
4830
- requestBody?: never;
5013
+ requestBody?: {
5014
+ content: {
5015
+ "multipart/form-data": {
5016
+ /** Format: binary */
5017
+ file?: string;
5018
+ /** @description Explicit import format id (overrides auto-detect) */
5019
+ format?: string;
5020
+ /** @description 'true' to import only inflows (drop expense lines) */
5021
+ incomeOnly?: string;
5022
+ };
5023
+ };
5024
+ };
4831
5025
  responses: {
4832
- /** @description Matching bank-payment candidates */
5026
+ /** @description Import result as NDJSON stream */
4833
5027
  200: {
4834
5028
  headers: {
4835
5029
  [name: string]: unknown;
4836
5030
  };
4837
5031
  content: {
4838
- "application/json": {
4839
- candidates: {
4840
- _id: string;
4841
- date: string;
4842
- amount: number;
4843
- foreignAmount: number;
4844
- foreignCurrency: string;
4845
- eurGoods: number;
4846
- feeEur: number;
4847
- description: string;
4848
- }[];
4849
- };
5032
+ "application/json": unknown;
4850
5033
  };
4851
5034
  };
4852
5035
  /** @description Validation error */
@@ -4885,24 +5068,34 @@ interface paths {
4885
5068
  "application/json": components["schemas"]["ApiError"];
4886
5069
  };
4887
5070
  };
5071
+ /** @description The body is larger than a statement file of 30 MB and its multipart envelope: BANK_STATEMENT_TOO_LARGE */
5072
+ 413: {
5073
+ headers: {
5074
+ [name: string]: unknown;
5075
+ };
5076
+ content: {
5077
+ "application/json": components["schemas"]["ApiError"];
5078
+ };
5079
+ };
4888
5080
  };
4889
5081
  };
4890
- put?: never;
4891
- post?: never;
4892
5082
  delete?: never;
4893
5083
  options?: never;
4894
5084
  head?: never;
4895
5085
  patch?: never;
4896
5086
  trace?: never;
4897
5087
  };
4898
- "/api/bank-transactions/{id}": {
5088
+ "/api/bank-statements/{id}": {
4899
5089
  parameters: {
4900
5090
  query?: never;
4901
5091
  header?: never;
4902
5092
  path?: never;
4903
5093
  cookie?: never;
4904
5094
  };
4905
- get: {
5095
+ get?: never;
5096
+ put?: never;
5097
+ post?: never;
5098
+ delete: {
4906
5099
  parameters: {
4907
5100
  query?: never;
4908
5101
  header?: never;
@@ -4913,13 +5106,15 @@ interface paths {
4913
5106
  };
4914
5107
  requestBody?: never;
4915
5108
  responses: {
4916
- /** @description Bank transaction */
5109
+ /** @description Deletion result */
4917
5110
  200: {
4918
5111
  headers: {
4919
5112
  [name: string]: unknown;
4920
5113
  };
4921
5114
  content: {
4922
- "application/json": components["schemas"]["BankTransaction"];
5115
+ "application/json": {
5116
+ ok: boolean;
5117
+ };
4923
5118
  };
4924
5119
  };
4925
5120
  /** @description Validation error */
@@ -4960,28 +5155,38 @@ interface paths {
4960
5155
  };
4961
5156
  };
4962
5157
  };
4963
- put: {
5158
+ options?: never;
5159
+ head?: never;
5160
+ patch?: never;
5161
+ trace?: never;
5162
+ };
5163
+ "/api/bank-transactions": {
5164
+ parameters: {
5165
+ query?: never;
5166
+ header?: never;
5167
+ path?: never;
5168
+ cookie?: never;
5169
+ };
5170
+ get: {
4964
5171
  parameters: {
4965
- query?: never;
4966
- header?: never;
4967
- path: {
4968
- id: string;
5172
+ query?: {
5173
+ search?: string;
5174
+ sort?: string;
5175
+ limit?: string;
4969
5176
  };
5177
+ header?: never;
5178
+ path?: never;
4970
5179
  cookie?: never;
4971
5180
  };
4972
- requestBody?: {
4973
- content: {
4974
- "application/json": components["schemas"]["Body"];
4975
- };
4976
- };
5181
+ requestBody?: never;
4977
5182
  responses: {
4978
- /** @description Updated bank transaction */
5183
+ /** @description List of bank transactions */
4979
5184
  200: {
4980
5185
  headers: {
4981
5186
  [name: string]: unknown;
4982
5187
  };
4983
5188
  content: {
4984
- "application/json": components["schemas"]["BankTransaction"];
5189
+ "application/json": components["schemas"]["BankTransaction"][];
4985
5190
  };
4986
5191
  };
4987
5192
  /** @description Validation error */
@@ -5022,27 +5227,27 @@ interface paths {
5022
5227
  };
5023
5228
  };
5024
5229
  };
5025
- post?: never;
5026
- delete: {
5230
+ put?: never;
5231
+ post: {
5027
5232
  parameters: {
5028
5233
  query?: never;
5029
5234
  header?: never;
5030
- path: {
5031
- id: string;
5032
- };
5235
+ path?: never;
5033
5236
  cookie?: never;
5034
5237
  };
5035
- requestBody?: never;
5238
+ requestBody?: {
5239
+ content: {
5240
+ "application/json": components["schemas"]["Body"];
5241
+ };
5242
+ };
5036
5243
  responses: {
5037
- /** @description Deletion result */
5038
- 200: {
5244
+ /** @description Created bank transaction */
5245
+ 201: {
5039
5246
  headers: {
5040
5247
  [name: string]: unknown;
5041
5248
  };
5042
5249
  content: {
5043
- "application/json": {
5044
- ok: boolean;
5045
- };
5250
+ "application/json": components["schemas"]["BankTransaction"];
5046
5251
  };
5047
5252
  };
5048
5253
  /** @description Validation error */
@@ -5081,48 +5286,69 @@ interface paths {
5081
5286
  "application/json": components["schemas"]["ApiError"];
5082
5287
  };
5083
5288
  };
5084
- };
5085
- };
5086
- options?: never;
5087
- head?: never;
5088
- patch?: never;
5089
- trace?: never;
5090
- };
5091
- "/api/bank-transactions/{id}/external-status": {
5289
+ /** @description Duplicate fingerprint */
5290
+ 409: {
5291
+ headers: {
5292
+ [name: string]: unknown;
5293
+ };
5294
+ content: {
5295
+ "application/json": unknown;
5296
+ };
5297
+ };
5298
+ };
5299
+ };
5300
+ delete?: never;
5301
+ options?: never;
5302
+ head?: never;
5303
+ patch?: never;
5304
+ trace?: never;
5305
+ };
5306
+ "/api/bank-transactions/fx-match": {
5092
5307
  parameters: {
5093
5308
  query?: never;
5094
5309
  header?: never;
5095
5310
  path?: never;
5096
5311
  cookie?: never;
5097
5312
  };
5098
- get?: never;
5099
- put?: never;
5100
- post?: never;
5101
- delete?: never;
5102
- options?: never;
5103
- head?: never;
5104
- patch: {
5313
+ get: {
5105
5314
  parameters: {
5106
- query?: never;
5107
- header?: never;
5108
- path: {
5109
- id: string;
5315
+ query: {
5316
+ currency: string;
5317
+ amount: number;
5318
+ date: string;
5110
5319
  };
5320
+ header?: never;
5321
+ path?: never;
5111
5322
  cookie?: never;
5112
5323
  };
5113
- requestBody?: {
5114
- content: {
5115
- "application/json": components["schemas"]["Body"];
5116
- };
5117
- };
5324
+ requestBody?: never;
5118
5325
  responses: {
5119
- /** @description Updated bank transaction */
5326
+ /** @description Matching bank-payment candidates */
5120
5327
  200: {
5121
5328
  headers: {
5122
5329
  [name: string]: unknown;
5123
5330
  };
5124
5331
  content: {
5125
- "application/json": unknown;
5332
+ "application/json": {
5333
+ candidates: {
5334
+ _id: string;
5335
+ date: string;
5336
+ amount: number;
5337
+ cardFx: {
5338
+ currency: string;
5339
+ foreignAmount: number;
5340
+ convertedCents: number;
5341
+ feeCents: number | null;
5342
+ };
5343
+ description: string;
5344
+ allocations: {
5345
+ invoiceId: string;
5346
+ amount: number;
5347
+ }[];
5348
+ /** @enum {string} */
5349
+ status: "UNPROCESSED" | "POSTED" | "IGNORED";
5350
+ }[];
5351
+ };
5126
5352
  };
5127
5353
  };
5128
5354
  /** @description Validation error */
@@ -5163,17 +5389,22 @@ interface paths {
5163
5389
  };
5164
5390
  };
5165
5391
  };
5392
+ put?: never;
5393
+ post?: never;
5394
+ delete?: never;
5395
+ options?: never;
5396
+ head?: never;
5397
+ patch?: never;
5166
5398
  trace?: never;
5167
5399
  };
5168
- "/api/bank-transactions/{id}/allocations": {
5400
+ "/api/bank-transactions/{id}": {
5169
5401
  parameters: {
5170
5402
  query?: never;
5171
5403
  header?: never;
5172
5404
  path?: never;
5173
5405
  cookie?: never;
5174
5406
  };
5175
- get?: never;
5176
- put: {
5407
+ get: {
5177
5408
  parameters: {
5178
5409
  query?: never;
5179
5410
  header?: never;
@@ -5182,13 +5413,9 @@ interface paths {
5182
5413
  };
5183
5414
  cookie?: never;
5184
5415
  };
5185
- requestBody?: {
5186
- content: {
5187
- "application/json": components["schemas"]["Body"];
5188
- };
5189
- };
5416
+ requestBody?: never;
5190
5417
  responses: {
5191
- /** @description Updated bank transaction */
5418
+ /** @description Bank transaction */
5192
5419
  200: {
5193
5420
  headers: {
5194
5421
  [name: string]: unknown;
@@ -5235,23 +5462,7 @@ interface paths {
5235
5462
  };
5236
5463
  };
5237
5464
  };
5238
- post?: never;
5239
- delete?: never;
5240
- options?: never;
5241
- head?: never;
5242
- patch?: never;
5243
- trace?: never;
5244
- };
5245
- "/api/bank-transactions/{id}/post": {
5246
- parameters: {
5247
- query?: never;
5248
- header?: never;
5249
- path?: never;
5250
- cookie?: never;
5251
- };
5252
- get?: never;
5253
- put?: never;
5254
- post: {
5465
+ put: {
5255
5466
  parameters: {
5256
5467
  query?: never;
5257
5468
  header?: never;
@@ -5260,15 +5471,19 @@ interface paths {
5260
5471
  };
5261
5472
  cookie?: never;
5262
5473
  };
5263
- requestBody?: never;
5474
+ requestBody?: {
5475
+ content: {
5476
+ "application/json": components["schemas"]["Body"];
5477
+ };
5478
+ };
5264
5479
  responses: {
5265
- /** @description Posted bank transaction with journal entry */
5480
+ /** @description Updated bank transaction */
5266
5481
  200: {
5267
5482
  headers: {
5268
5483
  [name: string]: unknown;
5269
5484
  };
5270
5485
  content: {
5271
- "application/json": unknown;
5486
+ "application/json": components["schemas"]["BankTransaction"];
5272
5487
  };
5273
5488
  };
5274
5489
  /** @description Validation error */
@@ -5309,22 +5524,8 @@ interface paths {
5309
5524
  };
5310
5525
  };
5311
5526
  };
5312
- delete?: never;
5313
- options?: never;
5314
- head?: never;
5315
- patch?: never;
5316
- trace?: never;
5317
- };
5318
- "/api/bank-transactions/{id}/unpost": {
5319
- parameters: {
5320
- query?: never;
5321
- header?: never;
5322
- path?: never;
5323
- cookie?: never;
5324
- };
5325
- get?: never;
5326
- put?: never;
5327
- post: {
5527
+ post?: never;
5528
+ delete: {
5328
5529
  parameters: {
5329
5530
  query?: never;
5330
5531
  header?: never;
@@ -5335,13 +5536,15 @@ interface paths {
5335
5536
  };
5336
5537
  requestBody?: never;
5337
5538
  responses: {
5338
- /** @description Unposted bank transaction */
5539
+ /** @description Deletion result */
5339
5540
  200: {
5340
5541
  headers: {
5341
5542
  [name: string]: unknown;
5342
5543
  };
5343
5544
  content: {
5344
- "application/json": unknown;
5545
+ "application/json": {
5546
+ ok: boolean;
5547
+ };
5345
5548
  };
5346
5549
  };
5347
5550
  /** @description Validation error */
@@ -5382,56 +5585,46 @@ interface paths {
5382
5585
  };
5383
5586
  };
5384
5587
  };
5385
- delete?: never;
5386
5588
  options?: never;
5387
5589
  head?: never;
5388
5590
  patch?: never;
5389
5591
  trace?: never;
5390
5592
  };
5391
- "/api/bank-connections": {
5593
+ "/api/bank-transactions/{id}/external-status": {
5392
5594
  parameters: {
5393
5595
  query?: never;
5394
5596
  header?: never;
5395
5597
  path?: never;
5396
5598
  cookie?: never;
5397
5599
  };
5398
- get: {
5600
+ get?: never;
5601
+ put?: never;
5602
+ post?: never;
5603
+ delete?: never;
5604
+ options?: never;
5605
+ head?: never;
5606
+ patch: {
5399
5607
  parameters: {
5400
- query?: {
5401
- includeRevoked?: "true" | "false";
5402
- };
5608
+ query?: never;
5403
5609
  header?: never;
5404
- path?: never;
5610
+ path: {
5611
+ id: string;
5612
+ };
5405
5613
  cookie?: never;
5406
5614
  };
5407
- requestBody?: never;
5615
+ requestBody?: {
5616
+ content: {
5617
+ "application/json": components["schemas"]["Body"];
5618
+ };
5619
+ };
5408
5620
  responses: {
5409
- /** @description Bank connections held by this company */
5621
+ /** @description Updated bank transaction */
5410
5622
  200: {
5411
5623
  headers: {
5412
5624
  [name: string]: unknown;
5413
5625
  };
5414
5626
  content: {
5415
- "application/json": {
5416
- _id: string;
5417
- aspspName: string;
5418
- aspspCountry: string;
5419
- psuType: string;
5420
- status: string;
5421
- accessValidUntil: string | null;
5422
- lastSyncAt: string | null;
5423
- lastSyncedThrough: string | null;
5424
- lastError: string | null;
5425
- createdAt: string | null;
5426
- accounts: {
5427
- iban: string | null;
5428
- currency: string | null;
5429
- product: string | null;
5430
- name: string | null;
5431
- accountCode: string | null;
5432
- ignored: boolean;
5433
- }[];
5434
- }[];
5627
+ "application/json": unknown;
5435
5628
  };
5436
5629
  };
5437
5630
  /** @description Validation error */
@@ -5472,37 +5665,38 @@ interface paths {
5472
5665
  };
5473
5666
  };
5474
5667
  };
5475
- put?: never;
5476
- post: {
5668
+ trace?: never;
5669
+ };
5670
+ "/api/bank-transactions/{id}/allocations": {
5671
+ parameters: {
5672
+ query?: never;
5673
+ header?: never;
5674
+ path?: never;
5675
+ cookie?: never;
5676
+ };
5677
+ get?: never;
5678
+ put: {
5477
5679
  parameters: {
5478
5680
  query?: never;
5479
5681
  header?: never;
5480
- path?: never;
5682
+ path: {
5683
+ id: string;
5684
+ };
5481
5685
  cookie?: never;
5482
5686
  };
5483
5687
  requestBody?: {
5484
5688
  content: {
5485
- "application/json": {
5486
- aspspName: string;
5487
- aspspCountry: string;
5488
- /** @enum {string} */
5489
- psuType: "business" | "personal";
5490
- dateFrom: string;
5491
- /** Format: uri */
5492
- redirectUrl: string;
5493
- };
5689
+ "application/json": components["schemas"]["Body"];
5494
5690
  };
5495
5691
  };
5496
5692
  responses: {
5497
- /** @description Authorization URL to redirect the user to */
5693
+ /** @description Updated bank transaction */
5498
5694
  200: {
5499
5695
  headers: {
5500
5696
  [name: string]: unknown;
5501
5697
  };
5502
5698
  content: {
5503
- "application/json": {
5504
- url: string;
5505
- };
5699
+ "application/json": components["schemas"]["BankTransaction"];
5506
5700
  };
5507
5701
  };
5508
5702
  /** @description Validation error */
@@ -5541,63 +5735,42 @@ interface paths {
5541
5735
  "application/json": components["schemas"]["ApiError"];
5542
5736
  };
5543
5737
  };
5544
- /** @description Enable Banking is configured but unusable (bad key): EB_MISCONFIGURED */
5545
- 500: {
5546
- headers: {
5547
- [name: string]: unknown;
5548
- };
5549
- content: {
5550
- "application/json": components["schemas"]["ApiError"];
5551
- };
5552
- };
5553
- /** @description The call could not be completed: the bank refused it or answered unusably (EB_UPSTREAM_ERROR, EB_INVALID_SESSION), or this company's stored key could not be read (EB_KEY_UNAVAILABLE) */
5554
- 502: {
5555
- headers: {
5556
- [name: string]: unknown;
5557
- };
5558
- content: {
5559
- "application/json": components["schemas"]["ApiError"];
5560
- };
5561
- };
5562
5738
  };
5563
5739
  };
5740
+ post?: never;
5564
5741
  delete?: never;
5565
5742
  options?: never;
5566
5743
  head?: never;
5567
5744
  patch?: never;
5568
5745
  trace?: never;
5569
5746
  };
5570
- "/api/bank-connections/aspsps": {
5747
+ "/api/bank-transactions/{id}/post": {
5571
5748
  parameters: {
5572
5749
  query?: never;
5573
5750
  header?: never;
5574
5751
  path?: never;
5575
5752
  cookie?: never;
5576
5753
  };
5577
- get: {
5754
+ get?: never;
5755
+ put?: never;
5756
+ post: {
5578
5757
  parameters: {
5579
- query?: {
5580
- country?: string;
5581
- };
5758
+ query?: never;
5582
5759
  header?: never;
5583
- path?: never;
5760
+ path: {
5761
+ id: string;
5762
+ };
5584
5763
  cookie?: never;
5585
5764
  };
5586
5765
  requestBody?: never;
5587
5766
  responses: {
5588
- /** @description ASPSPs this application may use */
5767
+ /** @description Posted bank transaction and its journal entry; `journalEntry` is omitted, and `transaction.journalEntryId` is null, when the posting has no lines (an amount of 0, or amounts that net to 0) or the company keeps single-entry books (individuali veikla, verslo liudijimas) */
5589
5768
  200: {
5590
5769
  headers: {
5591
5770
  [name: string]: unknown;
5592
5771
  };
5593
5772
  content: {
5594
- "application/json": {
5595
- name: string;
5596
- country: string;
5597
- psuTypes: string[];
5598
- beta: boolean;
5599
- bic: string | null;
5600
- }[];
5773
+ "application/json": unknown;
5601
5774
  };
5602
5775
  };
5603
5776
  /** @description Validation error */
@@ -5636,17 +5809,72 @@ interface paths {
5636
5809
  "application/json": components["schemas"]["ApiError"];
5637
5810
  };
5638
5811
  };
5639
- /** @description Enable Banking is configured but unusable (bad key): EB_MISCONFIGURED */
5640
- 500: {
5641
- headers: {
5642
- [name: string]: unknown;
5643
- };
5644
- content: {
5645
- "application/json": components["schemas"]["ApiError"];
5646
- };
5647
- };
5648
- /** @description The call could not be completed: the bank refused it or answered unusably (EB_UPSTREAM_ERROR, EB_INVALID_SESSION), or this company's stored key could not be read (EB_KEY_UNAVAILABLE) */
5649
- 502: {
5812
+ };
5813
+ };
5814
+ delete?: never;
5815
+ options?: never;
5816
+ head?: never;
5817
+ patch?: never;
5818
+ trace?: never;
5819
+ };
5820
+ "/api/bank-transactions/{id}/unpost": {
5821
+ parameters: {
5822
+ query?: never;
5823
+ header?: never;
5824
+ path?: never;
5825
+ cookie?: never;
5826
+ };
5827
+ get?: never;
5828
+ put?: never;
5829
+ post: {
5830
+ parameters: {
5831
+ query?: never;
5832
+ header?: never;
5833
+ path: {
5834
+ id: string;
5835
+ };
5836
+ cookie?: never;
5837
+ };
5838
+ requestBody?: never;
5839
+ responses: {
5840
+ /** @description Unposted bank transaction */
5841
+ 200: {
5842
+ headers: {
5843
+ [name: string]: unknown;
5844
+ };
5845
+ content: {
5846
+ "application/json": unknown;
5847
+ };
5848
+ };
5849
+ /** @description Validation error */
5850
+ 400: {
5851
+ headers: {
5852
+ [name: string]: unknown;
5853
+ };
5854
+ content: {
5855
+ "application/json": components["schemas"]["ApiError"];
5856
+ };
5857
+ };
5858
+ /** @description Unauthorized */
5859
+ 401: {
5860
+ headers: {
5861
+ [name: string]: unknown;
5862
+ };
5863
+ content: {
5864
+ "application/json": components["schemas"]["ApiError"];
5865
+ };
5866
+ };
5867
+ /** @description Forbidden (read-only / plan restricted) */
5868
+ 403: {
5869
+ headers: {
5870
+ [name: string]: unknown;
5871
+ };
5872
+ content: {
5873
+ "application/json": components["schemas"]["ApiError"];
5874
+ };
5875
+ };
5876
+ /** @description Not found */
5877
+ 404: {
5650
5878
  headers: {
5651
5879
  [name: string]: unknown;
5652
5880
  };
@@ -5656,15 +5884,86 @@ interface paths {
5656
5884
  };
5657
5885
  };
5658
5886
  };
5887
+ delete?: never;
5888
+ options?: never;
5889
+ head?: never;
5890
+ patch?: never;
5891
+ trace?: never;
5892
+ };
5893
+ "/api/bank-transactions/{id}/repost": {
5894
+ parameters: {
5895
+ query?: never;
5896
+ header?: never;
5897
+ path?: never;
5898
+ cookie?: never;
5899
+ };
5900
+ get?: never;
5659
5901
  put?: never;
5660
- post?: never;
5902
+ post: {
5903
+ parameters: {
5904
+ query?: never;
5905
+ header?: never;
5906
+ path: {
5907
+ id: string;
5908
+ };
5909
+ cookie?: never;
5910
+ };
5911
+ requestBody?: never;
5912
+ responses: {
5913
+ /** @description The transaction as it now stands, `reposted: true` with the new journal entry when its stale entry was replaced, or `reposted: false` when the entry already matched its allocations and nothing was written */
5914
+ 200: {
5915
+ headers: {
5916
+ [name: string]: unknown;
5917
+ };
5918
+ content: {
5919
+ "application/json": unknown;
5920
+ };
5921
+ };
5922
+ /** @description Validation error */
5923
+ 400: {
5924
+ headers: {
5925
+ [name: string]: unknown;
5926
+ };
5927
+ content: {
5928
+ "application/json": components["schemas"]["ApiError"];
5929
+ };
5930
+ };
5931
+ /** @description Unauthorized */
5932
+ 401: {
5933
+ headers: {
5934
+ [name: string]: unknown;
5935
+ };
5936
+ content: {
5937
+ "application/json": components["schemas"]["ApiError"];
5938
+ };
5939
+ };
5940
+ /** @description Forbidden (read-only / plan restricted) */
5941
+ 403: {
5942
+ headers: {
5943
+ [name: string]: unknown;
5944
+ };
5945
+ content: {
5946
+ "application/json": components["schemas"]["ApiError"];
5947
+ };
5948
+ };
5949
+ /** @description Not found */
5950
+ 404: {
5951
+ headers: {
5952
+ [name: string]: unknown;
5953
+ };
5954
+ content: {
5955
+ "application/json": components["schemas"]["ApiError"];
5956
+ };
5957
+ };
5958
+ };
5959
+ };
5661
5960
  delete?: never;
5662
5961
  options?: never;
5663
5962
  head?: never;
5664
5963
  patch?: never;
5665
5964
  trace?: never;
5666
5965
  };
5667
- "/api/bank-connections/app": {
5966
+ "/api/bank-connections": {
5668
5967
  parameters: {
5669
5968
  query?: never;
5670
5969
  header?: never;
@@ -5673,20 +5972,54 @@ interface paths {
5673
5972
  };
5674
5973
  get: {
5675
5974
  parameters: {
5676
- query?: never;
5975
+ query?: {
5976
+ includeRevoked?: "true" | "false";
5977
+ };
5677
5978
  header?: never;
5678
5979
  path?: never;
5679
5980
  cookie?: never;
5680
5981
  };
5681
5982
  requestBody?: never;
5682
5983
  responses: {
5683
- /** @description Enable Banking application configured for this company */
5984
+ /** @description Bank connections held by this company */
5684
5985
  200: {
5685
5986
  headers: {
5686
5987
  [name: string]: unknown;
5687
5988
  };
5688
5989
  content: {
5689
- "application/json": components["schemas"]["BankAppConfig"];
5990
+ "application/json": {
5991
+ _id: string;
5992
+ aspspName: string;
5993
+ aspspCountry: string;
5994
+ psuType: string;
5995
+ status: string;
5996
+ accessValidUntil: string | null;
5997
+ lastSyncAt: string | null;
5998
+ lastSyncedThrough: string | null;
5999
+ historyFrom: string | null;
6000
+ historyGaps: {
6001
+ iban: string;
6002
+ currency: string | null;
6003
+ from: string;
6004
+ to: string;
6005
+ }[];
6006
+ lastErrors: {
6007
+ iban: string | null;
6008
+ code: string;
6009
+ message: string;
6010
+ detail: string | null;
6011
+ }[];
6012
+ lastError: string | null;
6013
+ createdAt: string | null;
6014
+ accounts: {
6015
+ iban: string | null;
6016
+ currency: string | null;
6017
+ product: string | null;
6018
+ name: string | null;
6019
+ accountCode: string | null;
6020
+ ignored: boolean;
6021
+ }[];
6022
+ }[];
5690
6023
  };
5691
6024
  };
5692
6025
  /** @description Validation error */
@@ -5727,7 +6060,8 @@ interface paths {
5727
6060
  };
5728
6061
  };
5729
6062
  };
5730
- put: {
6063
+ put?: never;
6064
+ post: {
5731
6065
  parameters: {
5732
6066
  query?: never;
5733
6067
  header?: never;
@@ -5737,22 +6071,29 @@ interface paths {
5737
6071
  requestBody?: {
5738
6072
  content: {
5739
6073
  "application/json": {
5740
- appId: string;
5741
- privateKeyPem: string;
6074
+ aspspName: string;
6075
+ aspspCountry: string;
6076
+ /** @enum {string} */
6077
+ psuType: "business" | "personal";
6078
+ dateFrom: string;
6079
+ /** Format: uri */
6080
+ redirectUrl: string;
5742
6081
  };
5743
6082
  };
5744
6083
  };
5745
6084
  responses: {
5746
- /** @description Credentials verified and stored */
6085
+ /** @description Authorization URL to redirect the user to */
5747
6086
  200: {
5748
6087
  headers: {
5749
6088
  [name: string]: unknown;
5750
6089
  };
5751
6090
  content: {
5752
- "application/json": components["schemas"]["BankAppConfig"];
6091
+ "application/json": {
6092
+ url: string;
6093
+ };
5753
6094
  };
5754
6095
  };
5755
- /** @description Validation error, or the submitted key does not parse: EB_BAD_KEY */
6096
+ /** @description Validation error */
5756
6097
  400: {
5757
6098
  headers: {
5758
6099
  [name: string]: unknown;
@@ -5770,7 +6111,7 @@ interface paths {
5770
6111
  "application/json": components["schemas"]["ApiError"];
5771
6112
  };
5772
6113
  };
5773
- /** @description Only the company owner may configure this: OWNER_ONLY */
6114
+ /** @description Forbidden (read-only / plan restricted) */
5774
6115
  403: {
5775
6116
  headers: {
5776
6117
  [name: string]: unknown;
@@ -5788,8 +6129,8 @@ interface paths {
5788
6129
  "application/json": components["schemas"]["ApiError"];
5789
6130
  };
5790
6131
  };
5791
- /** @description Changing the application id would orphan live connections: EB_APP_IN_USE */
5792
- 409: {
6132
+ /** @description Enable Banking is configured but unusable (bad key): EB_MISCONFIGURED */
6133
+ 500: {
5793
6134
  headers: {
5794
6135
  [name: string]: unknown;
5795
6136
  };
@@ -5797,7 +6138,7 @@ interface paths {
5797
6138
  "application/json": components["schemas"]["ApiError"];
5798
6139
  };
5799
6140
  };
5800
- /** @description Enable Banking rejected the submitted credentials: EB_VERIFY_FAILED */
6141
+ /** @description The call could not be completed: the bank refused it or answered unusably (EB_UPSTREAM_ERROR, EB_INVALID_SESSION), or this company's stored key could not be read (EB_KEY_UNAVAILABLE) */
5801
6142
  502: {
5802
6143
  headers: {
5803
6144
  [name: string]: unknown;
@@ -5808,23 +6149,43 @@ interface paths {
5808
6149
  };
5809
6150
  };
5810
6151
  };
5811
- post?: never;
5812
- delete: {
6152
+ delete?: never;
6153
+ options?: never;
6154
+ head?: never;
6155
+ patch?: never;
6156
+ trace?: never;
6157
+ };
6158
+ "/api/bank-connections/aspsps": {
6159
+ parameters: {
6160
+ query?: never;
6161
+ header?: never;
6162
+ path?: never;
6163
+ cookie?: never;
6164
+ };
6165
+ get: {
5813
6166
  parameters: {
5814
- query?: never;
6167
+ query?: {
6168
+ country?: string;
6169
+ };
5815
6170
  header?: never;
5816
6171
  path?: never;
5817
6172
  cookie?: never;
5818
6173
  };
5819
6174
  requestBody?: never;
5820
6175
  responses: {
5821
- /** @description Configuration removed */
6176
+ /** @description ASPSPs this application may use */
5822
6177
  200: {
5823
6178
  headers: {
5824
6179
  [name: string]: unknown;
5825
6180
  };
5826
6181
  content: {
5827
- "application/json": components["schemas"]["BankAppConfig"];
6182
+ "application/json": {
6183
+ name: string;
6184
+ country: string;
6185
+ psuTypes: string[];
6186
+ beta: boolean;
6187
+ bic: string | null;
6188
+ }[];
5828
6189
  };
5829
6190
  };
5830
6191
  /** @description Validation error */
@@ -5845,7 +6206,7 @@ interface paths {
5845
6206
  "application/json": components["schemas"]["ApiError"];
5846
6207
  };
5847
6208
  };
5848
- /** @description Only the company owner may configure this: OWNER_ONLY */
6209
+ /** @description Forbidden (read-only / plan restricted) */
5849
6210
  403: {
5850
6211
  headers: {
5851
6212
  [name: string]: unknown;
@@ -5854,8 +6215,508 @@ interface paths {
5854
6215
  "application/json": components["schemas"]["ApiError"];
5855
6216
  };
5856
6217
  };
5857
- /** @description Not found */
5858
- 404: {
6218
+ /** @description Not found */
6219
+ 404: {
6220
+ headers: {
6221
+ [name: string]: unknown;
6222
+ };
6223
+ content: {
6224
+ "application/json": components["schemas"]["ApiError"];
6225
+ };
6226
+ };
6227
+ /** @description Enable Banking is configured but unusable (bad key): EB_MISCONFIGURED */
6228
+ 500: {
6229
+ headers: {
6230
+ [name: string]: unknown;
6231
+ };
6232
+ content: {
6233
+ "application/json": components["schemas"]["ApiError"];
6234
+ };
6235
+ };
6236
+ /** @description The call could not be completed: the bank refused it or answered unusably (EB_UPSTREAM_ERROR, EB_INVALID_SESSION), or this company's stored key could not be read (EB_KEY_UNAVAILABLE) */
6237
+ 502: {
6238
+ headers: {
6239
+ [name: string]: unknown;
6240
+ };
6241
+ content: {
6242
+ "application/json": components["schemas"]["ApiError"];
6243
+ };
6244
+ };
6245
+ };
6246
+ };
6247
+ put?: never;
6248
+ post?: never;
6249
+ delete?: never;
6250
+ options?: never;
6251
+ head?: never;
6252
+ patch?: never;
6253
+ trace?: never;
6254
+ };
6255
+ "/api/bank-connections/app": {
6256
+ parameters: {
6257
+ query?: never;
6258
+ header?: never;
6259
+ path?: never;
6260
+ cookie?: never;
6261
+ };
6262
+ get: {
6263
+ parameters: {
6264
+ query?: never;
6265
+ header?: never;
6266
+ path?: never;
6267
+ cookie?: never;
6268
+ };
6269
+ requestBody?: never;
6270
+ responses: {
6271
+ /** @description Enable Banking application configured for this company */
6272
+ 200: {
6273
+ headers: {
6274
+ [name: string]: unknown;
6275
+ };
6276
+ content: {
6277
+ "application/json": components["schemas"]["BankAppConfig"];
6278
+ };
6279
+ };
6280
+ /** @description Validation error */
6281
+ 400: {
6282
+ headers: {
6283
+ [name: string]: unknown;
6284
+ };
6285
+ content: {
6286
+ "application/json": components["schemas"]["ApiError"];
6287
+ };
6288
+ };
6289
+ /** @description Unauthorized */
6290
+ 401: {
6291
+ headers: {
6292
+ [name: string]: unknown;
6293
+ };
6294
+ content: {
6295
+ "application/json": components["schemas"]["ApiError"];
6296
+ };
6297
+ };
6298
+ /** @description Forbidden (read-only / plan restricted) */
6299
+ 403: {
6300
+ headers: {
6301
+ [name: string]: unknown;
6302
+ };
6303
+ content: {
6304
+ "application/json": components["schemas"]["ApiError"];
6305
+ };
6306
+ };
6307
+ /** @description Not found */
6308
+ 404: {
6309
+ headers: {
6310
+ [name: string]: unknown;
6311
+ };
6312
+ content: {
6313
+ "application/json": components["schemas"]["ApiError"];
6314
+ };
6315
+ };
6316
+ };
6317
+ };
6318
+ put: {
6319
+ parameters: {
6320
+ query?: never;
6321
+ header?: never;
6322
+ path?: never;
6323
+ cookie?: never;
6324
+ };
6325
+ requestBody?: {
6326
+ content: {
6327
+ "application/json": {
6328
+ appId: string;
6329
+ privateKeyPem: string;
6330
+ };
6331
+ };
6332
+ };
6333
+ responses: {
6334
+ /** @description Credentials verified and stored */
6335
+ 200: {
6336
+ headers: {
6337
+ [name: string]: unknown;
6338
+ };
6339
+ content: {
6340
+ "application/json": components["schemas"]["BankAppConfig"];
6341
+ };
6342
+ };
6343
+ /** @description Validation error, or the submitted key does not parse: EB_BAD_KEY */
6344
+ 400: {
6345
+ headers: {
6346
+ [name: string]: unknown;
6347
+ };
6348
+ content: {
6349
+ "application/json": components["schemas"]["ApiError"];
6350
+ };
6351
+ };
6352
+ /** @description Unauthorized */
6353
+ 401: {
6354
+ headers: {
6355
+ [name: string]: unknown;
6356
+ };
6357
+ content: {
6358
+ "application/json": components["schemas"]["ApiError"];
6359
+ };
6360
+ };
6361
+ /** @description Only the company owner may configure this: OWNER_ONLY */
6362
+ 403: {
6363
+ headers: {
6364
+ [name: string]: unknown;
6365
+ };
6366
+ content: {
6367
+ "application/json": components["schemas"]["ApiError"];
6368
+ };
6369
+ };
6370
+ /** @description Not found */
6371
+ 404: {
6372
+ headers: {
6373
+ [name: string]: unknown;
6374
+ };
6375
+ content: {
6376
+ "application/json": components["schemas"]["ApiError"];
6377
+ };
6378
+ };
6379
+ /** @description Changing the application id would orphan live connections: EB_APP_IN_USE */
6380
+ 409: {
6381
+ headers: {
6382
+ [name: string]: unknown;
6383
+ };
6384
+ content: {
6385
+ "application/json": components["schemas"]["ApiError"];
6386
+ };
6387
+ };
6388
+ /** @description Enable Banking rejected the submitted credentials: EB_VERIFY_FAILED */
6389
+ 502: {
6390
+ headers: {
6391
+ [name: string]: unknown;
6392
+ };
6393
+ content: {
6394
+ "application/json": components["schemas"]["ApiError"];
6395
+ };
6396
+ };
6397
+ };
6398
+ };
6399
+ post?: never;
6400
+ delete: {
6401
+ parameters: {
6402
+ query?: never;
6403
+ header?: never;
6404
+ path?: never;
6405
+ cookie?: never;
6406
+ };
6407
+ requestBody?: never;
6408
+ responses: {
6409
+ /** @description Configuration removed */
6410
+ 200: {
6411
+ headers: {
6412
+ [name: string]: unknown;
6413
+ };
6414
+ content: {
6415
+ "application/json": components["schemas"]["BankAppConfig"];
6416
+ };
6417
+ };
6418
+ /** @description Validation error */
6419
+ 400: {
6420
+ headers: {
6421
+ [name: string]: unknown;
6422
+ };
6423
+ content: {
6424
+ "application/json": components["schemas"]["ApiError"];
6425
+ };
6426
+ };
6427
+ /** @description Unauthorized */
6428
+ 401: {
6429
+ headers: {
6430
+ [name: string]: unknown;
6431
+ };
6432
+ content: {
6433
+ "application/json": components["schemas"]["ApiError"];
6434
+ };
6435
+ };
6436
+ /** @description Only the company owner may configure this: OWNER_ONLY */
6437
+ 403: {
6438
+ headers: {
6439
+ [name: string]: unknown;
6440
+ };
6441
+ content: {
6442
+ "application/json": components["schemas"]["ApiError"];
6443
+ };
6444
+ };
6445
+ /** @description Not found */
6446
+ 404: {
6447
+ headers: {
6448
+ [name: string]: unknown;
6449
+ };
6450
+ content: {
6451
+ "application/json": components["schemas"]["ApiError"];
6452
+ };
6453
+ };
6454
+ /** @description The application still has live connections: EB_APP_IN_USE */
6455
+ 409: {
6456
+ headers: {
6457
+ [name: string]: unknown;
6458
+ };
6459
+ content: {
6460
+ "application/json": components["schemas"]["ApiError"];
6461
+ };
6462
+ };
6463
+ };
6464
+ };
6465
+ options?: never;
6466
+ head?: never;
6467
+ patch?: never;
6468
+ trace?: never;
6469
+ };
6470
+ "/api/bank-connections/callback": {
6471
+ parameters: {
6472
+ query?: never;
6473
+ header?: never;
6474
+ path?: never;
6475
+ cookie?: never;
6476
+ };
6477
+ get?: never;
6478
+ put?: never;
6479
+ post: {
6480
+ parameters: {
6481
+ query?: never;
6482
+ header?: never;
6483
+ path?: never;
6484
+ cookie?: never;
6485
+ };
6486
+ requestBody?: {
6487
+ content: {
6488
+ "application/json": {
6489
+ code: string;
6490
+ state: string;
6491
+ };
6492
+ };
6493
+ };
6494
+ responses: {
6495
+ /** @description Connection created, pending account mapping. `warning` is set when the superseded consent could not be cancelled at the bank. */
6496
+ 200: {
6497
+ headers: {
6498
+ [name: string]: unknown;
6499
+ };
6500
+ content: {
6501
+ "application/json": {
6502
+ connectionId: string;
6503
+ warning: components["schemas"]["BankConnectionWarning"];
6504
+ };
6505
+ };
6506
+ };
6507
+ /** @description Validation error */
6508
+ 400: {
6509
+ headers: {
6510
+ [name: string]: unknown;
6511
+ };
6512
+ content: {
6513
+ "application/json": components["schemas"]["ApiError"];
6514
+ };
6515
+ };
6516
+ /** @description Unauthorized */
6517
+ 401: {
6518
+ headers: {
6519
+ [name: string]: unknown;
6520
+ };
6521
+ content: {
6522
+ "application/json": components["schemas"]["ApiError"];
6523
+ };
6524
+ };
6525
+ /** @description Forbidden (read-only / plan restricted) */
6526
+ 403: {
6527
+ headers: {
6528
+ [name: string]: unknown;
6529
+ };
6530
+ content: {
6531
+ "application/json": components["schemas"]["ApiError"];
6532
+ };
6533
+ };
6534
+ /** @description Not found */
6535
+ 404: {
6536
+ headers: {
6537
+ [name: string]: unknown;
6538
+ };
6539
+ content: {
6540
+ "application/json": components["schemas"]["ApiError"];
6541
+ };
6542
+ };
6543
+ /** @description A live connection to this bank already exists */
6544
+ 409: {
6545
+ headers: {
6546
+ [name: string]: unknown;
6547
+ };
6548
+ content: {
6549
+ "application/json": components["schemas"]["ApiError"];
6550
+ };
6551
+ };
6552
+ /** @description Enable Banking is configured but unusable (bad key): EB_MISCONFIGURED */
6553
+ 500: {
6554
+ headers: {
6555
+ [name: string]: unknown;
6556
+ };
6557
+ content: {
6558
+ "application/json": components["schemas"]["ApiError"];
6559
+ };
6560
+ };
6561
+ /** @description The call could not be completed: the bank refused it or answered unusably (EB_UPSTREAM_ERROR, EB_INVALID_SESSION), the consent shares no account with an IBAN, so nothing was stored and an existing connection to the bank is unchanged (EB_NO_IBAN_ACCOUNT), or this company's stored key could not be read (EB_KEY_UNAVAILABLE) */
6562
+ 502: {
6563
+ headers: {
6564
+ [name: string]: unknown;
6565
+ };
6566
+ content: {
6567
+ "application/json": components["schemas"]["ApiError"];
6568
+ };
6569
+ };
6570
+ };
6571
+ };
6572
+ delete?: never;
6573
+ options?: never;
6574
+ head?: never;
6575
+ patch?: never;
6576
+ trace?: never;
6577
+ };
6578
+ "/api/bank-connections/{id}/accounts": {
6579
+ parameters: {
6580
+ query?: never;
6581
+ header?: never;
6582
+ path?: never;
6583
+ cookie?: never;
6584
+ };
6585
+ get?: never;
6586
+ put: {
6587
+ parameters: {
6588
+ query?: never;
6589
+ header?: never;
6590
+ path: {
6591
+ id: string;
6592
+ };
6593
+ cookie?: never;
6594
+ };
6595
+ requestBody?: {
6596
+ content: {
6597
+ "application/json": {
6598
+ accounts: {
6599
+ iban: string;
6600
+ currency?: string;
6601
+ accountCode?: string;
6602
+ ignored?: boolean;
6603
+ }[];
6604
+ };
6605
+ };
6606
+ };
6607
+ responses: {
6608
+ /** @description Mapping saved; connection activated once every IBAN is mapped. `warning` names a sub-account the mapping could not represent. */
6609
+ 200: {
6610
+ headers: {
6611
+ [name: string]: unknown;
6612
+ };
6613
+ content: {
6614
+ "application/json": {
6615
+ ok: boolean;
6616
+ status: string;
6617
+ warning: components["schemas"]["BankConnectionWarning"];
6618
+ };
6619
+ };
6620
+ };
6621
+ /** @description Validation error */
6622
+ 400: {
6623
+ headers: {
6624
+ [name: string]: unknown;
6625
+ };
6626
+ content: {
6627
+ "application/json": components["schemas"]["ApiError"];
6628
+ };
6629
+ };
6630
+ /** @description Unauthorized */
6631
+ 401: {
6632
+ headers: {
6633
+ [name: string]: unknown;
6634
+ };
6635
+ content: {
6636
+ "application/json": components["schemas"]["ApiError"];
6637
+ };
6638
+ };
6639
+ /** @description Forbidden (read-only / plan restricted) */
6640
+ 403: {
6641
+ headers: {
6642
+ [name: string]: unknown;
6643
+ };
6644
+ content: {
6645
+ "application/json": components["schemas"]["ApiError"];
6646
+ };
6647
+ };
6648
+ /** @description Not found */
6649
+ 404: {
6650
+ headers: {
6651
+ [name: string]: unknown;
6652
+ };
6653
+ content: {
6654
+ "application/json": components["schemas"]["ApiError"];
6655
+ };
6656
+ };
6657
+ };
6658
+ };
6659
+ post?: never;
6660
+ delete?: never;
6661
+ options?: never;
6662
+ head?: never;
6663
+ patch?: never;
6664
+ trace?: never;
6665
+ };
6666
+ "/api/bank-connections/{id}": {
6667
+ parameters: {
6668
+ query?: never;
6669
+ header?: never;
6670
+ path?: never;
6671
+ cookie?: never;
6672
+ };
6673
+ get?: never;
6674
+ put?: never;
6675
+ post?: never;
6676
+ delete: {
6677
+ parameters: {
6678
+ query?: never;
6679
+ header?: never;
6680
+ path: {
6681
+ id: string;
6682
+ };
6683
+ cookie?: never;
6684
+ };
6685
+ requestBody?: never;
6686
+ responses: {
6687
+ /** @description Connection revoked locally; `revokedAtBank` says whether the bank confirmed */
6688
+ 200: {
6689
+ headers: {
6690
+ [name: string]: unknown;
6691
+ };
6692
+ content: {
6693
+ "application/json": {
6694
+ ok: boolean;
6695
+ revokedAtBank: boolean;
6696
+ warning: components["schemas"]["BankConnectionWarning"];
6697
+ };
6698
+ };
6699
+ };
6700
+ /** @description Validation error */
6701
+ 400: {
6702
+ headers: {
6703
+ [name: string]: unknown;
6704
+ };
6705
+ content: {
6706
+ "application/json": components["schemas"]["ApiError"];
6707
+ };
6708
+ };
6709
+ /** @description Unauthorized */
6710
+ 401: {
6711
+ headers: {
6712
+ [name: string]: unknown;
6713
+ };
6714
+ content: {
6715
+ "application/json": components["schemas"]["ApiError"];
6716
+ };
6717
+ };
6718
+ /** @description Forbidden (read-only / plan restricted) */
6719
+ 403: {
5859
6720
  headers: {
5860
6721
  [name: string]: unknown;
5861
6722
  };
@@ -5863,8 +6724,8 @@ interface paths {
5863
6724
  "application/json": components["schemas"]["ApiError"];
5864
6725
  };
5865
6726
  };
5866
- /** @description The application still has live connections: EB_APP_IN_USE */
5867
- 409: {
6727
+ /** @description Not found */
6728
+ 404: {
5868
6729
  headers: {
5869
6730
  [name: string]: unknown;
5870
6731
  };
@@ -5879,7 +6740,7 @@ interface paths {
5879
6740
  patch?: never;
5880
6741
  trace?: never;
5881
6742
  };
5882
- "/api/bank-connections/callback": {
6743
+ "/api/bank-connections/{id}/sync": {
5883
6744
  parameters: {
5884
6745
  query?: never;
5885
6746
  header?: never;
@@ -5892,28 +6753,20 @@ interface paths {
5892
6753
  parameters: {
5893
6754
  query?: never;
5894
6755
  header?: never;
5895
- path?: never;
5896
- cookie?: never;
5897
- };
5898
- requestBody?: {
5899
- content: {
5900
- "application/json": {
5901
- code: string;
5902
- state: string;
5903
- };
6756
+ path: {
6757
+ id: string;
5904
6758
  };
6759
+ cookie?: never;
5905
6760
  };
6761
+ requestBody?: never;
5906
6762
  responses: {
5907
- /** @description Connection created, pending account mapping. `warning` is set when the superseded consent could not be cancelled at the bank. */
6763
+ /** @description Sync progress as an NDJSON stream, ending in a `done` frame whose `errors` array is empty only on a clean run */
5908
6764
  200: {
5909
6765
  headers: {
5910
6766
  [name: string]: unknown;
5911
6767
  };
5912
6768
  content: {
5913
- "application/json": {
5914
- connectionId: string;
5915
- warning: components["schemas"]["BankConnectionWarning"];
5916
- };
6769
+ "application/json": unknown;
5917
6770
  };
5918
6771
  };
5919
6772
  /** @description Validation error */
@@ -5952,7 +6805,7 @@ interface paths {
5952
6805
  "application/json": components["schemas"]["ApiError"];
5953
6806
  };
5954
6807
  };
5955
- /** @description A live connection to this bank already exists */
6808
+ /** @description A sync of this connection is already running */
5956
6809
  409: {
5957
6810
  headers: {
5958
6811
  [name: string]: unknown;
@@ -5987,7 +6840,7 @@ interface paths {
5987
6840
  patch?: never;
5988
6841
  trace?: never;
5989
6842
  };
5990
- "/api/bank-connections/{id}/accounts": {
6843
+ "/api/bank-connections/{id}/rewind": {
5991
6844
  parameters: {
5992
6845
  query?: never;
5993
6846
  header?: never;
@@ -5995,7 +6848,8 @@ interface paths {
5995
6848
  cookie?: never;
5996
6849
  };
5997
6850
  get?: never;
5998
- put: {
6851
+ put?: never;
6852
+ post: {
5999
6853
  parameters: {
6000
6854
  query?: never;
6001
6855
  header?: never;
@@ -6007,17 +6861,13 @@ interface paths {
6007
6861
  requestBody?: {
6008
6862
  content: {
6009
6863
  "application/json": {
6010
- accounts: {
6011
- iban: string;
6012
- currency?: string;
6013
- accountCode?: string;
6014
- ignored?: boolean;
6015
- }[];
6864
+ /** @description The day the fetch window should start at. Must not be later than the current start. */
6865
+ dateFrom: string;
6016
6866
  };
6017
6867
  };
6018
6868
  };
6019
6869
  responses: {
6020
- /** @description Mapping saved; connection activated once every IBAN is mapped. `warning` names a sub-account the mapping could not represent. */
6870
+ /** @description The window was moved back; the next sync starts from this day */
6021
6871
  200: {
6022
6872
  headers: {
6023
6873
  [name: string]: unknown;
@@ -6025,8 +6875,8 @@ interface paths {
6025
6875
  content: {
6026
6876
  "application/json": {
6027
6877
  ok: boolean;
6028
- status: string;
6029
- warning: components["schemas"]["BankConnectionWarning"];
6878
+ historyFrom: string;
6879
+ lastSyncedThrough: string;
6030
6880
  };
6031
6881
  };
6032
6882
  };
@@ -6066,78 +6916,8 @@ interface paths {
6066
6916
  "application/json": components["schemas"]["ApiError"];
6067
6917
  };
6068
6918
  };
6069
- };
6070
- };
6071
- post?: never;
6072
- delete?: never;
6073
- options?: never;
6074
- head?: never;
6075
- patch?: never;
6076
- trace?: never;
6077
- };
6078
- "/api/bank-connections/{id}": {
6079
- parameters: {
6080
- query?: never;
6081
- header?: never;
6082
- path?: never;
6083
- cookie?: never;
6084
- };
6085
- get?: never;
6086
- put?: never;
6087
- post?: never;
6088
- delete: {
6089
- parameters: {
6090
- query?: never;
6091
- header?: never;
6092
- path: {
6093
- id: string;
6094
- };
6095
- cookie?: never;
6096
- };
6097
- requestBody?: never;
6098
- responses: {
6099
- /** @description Connection revoked locally; `revokedAtBank` says whether the bank confirmed */
6100
- 200: {
6101
- headers: {
6102
- [name: string]: unknown;
6103
- };
6104
- content: {
6105
- "application/json": {
6106
- ok: boolean;
6107
- revokedAtBank: boolean;
6108
- warning: components["schemas"]["BankConnectionWarning"];
6109
- };
6110
- };
6111
- };
6112
- /** @description Validation error */
6113
- 400: {
6114
- headers: {
6115
- [name: string]: unknown;
6116
- };
6117
- content: {
6118
- "application/json": components["schemas"]["ApiError"];
6119
- };
6120
- };
6121
- /** @description Unauthorized */
6122
- 401: {
6123
- headers: {
6124
- [name: string]: unknown;
6125
- };
6126
- content: {
6127
- "application/json": components["schemas"]["ApiError"];
6128
- };
6129
- };
6130
- /** @description Forbidden (read-only / plan restricted) */
6131
- 403: {
6132
- headers: {
6133
- [name: string]: unknown;
6134
- };
6135
- content: {
6136
- "application/json": components["schemas"]["ApiError"];
6137
- };
6138
- };
6139
- /** @description Not found */
6140
- 404: {
6919
+ /** @description A sync of this connection is already running */
6920
+ 409: {
6141
6921
  headers: {
6142
6922
  [name: string]: unknown;
6143
6923
  };
@@ -6147,12 +6927,13 @@ interface paths {
6147
6927
  };
6148
6928
  };
6149
6929
  };
6930
+ delete?: never;
6150
6931
  options?: never;
6151
6932
  head?: never;
6152
6933
  patch?: never;
6153
6934
  trace?: never;
6154
6935
  };
6155
- "/api/bank-connections/{id}/sync": {
6936
+ "/api/bank-connections/{id}/history-gaps": {
6156
6937
  parameters: {
6157
6938
  query?: never;
6158
6939
  header?: never;
@@ -6161,7 +6942,8 @@ interface paths {
6161
6942
  };
6162
6943
  get?: never;
6163
6944
  put?: never;
6164
- post: {
6945
+ post?: never;
6946
+ delete: {
6165
6947
  parameters: {
6166
6948
  query?: never;
6167
6949
  header?: never;
@@ -6172,13 +6954,16 @@ interface paths {
6172
6954
  };
6173
6955
  requestBody?: never;
6174
6956
  responses: {
6175
- /** @description Sync progress as an NDJSON stream, ending in a `done` frame whose `errors` array is empty only on a clean run */
6957
+ /** @description The recorded gaps were cleared; `cleared` says how many there were */
6176
6958
  200: {
6177
6959
  headers: {
6178
6960
  [name: string]: unknown;
6179
6961
  };
6180
6962
  content: {
6181
- "application/json": unknown;
6963
+ "application/json": {
6964
+ ok: boolean;
6965
+ cleared: number;
6966
+ };
6182
6967
  };
6183
6968
  };
6184
6969
  /** @description Validation error */
@@ -6226,27 +7011,8 @@ interface paths {
6226
7011
  "application/json": components["schemas"]["ApiError"];
6227
7012
  };
6228
7013
  };
6229
- /** @description Enable Banking is configured but unusable (bad key): EB_MISCONFIGURED */
6230
- 500: {
6231
- headers: {
6232
- [name: string]: unknown;
6233
- };
6234
- content: {
6235
- "application/json": components["schemas"]["ApiError"];
6236
- };
6237
- };
6238
- /** @description The call could not be completed: the bank refused it or answered unusably (EB_UPSTREAM_ERROR, EB_INVALID_SESSION), or this company's stored key could not be read (EB_KEY_UNAVAILABLE) */
6239
- 502: {
6240
- headers: {
6241
- [name: string]: unknown;
6242
- };
6243
- content: {
6244
- "application/json": components["schemas"]["ApiError"];
6245
- };
6246
- };
6247
7014
  };
6248
7015
  };
6249
- delete?: never;
6250
7016
  options?: never;
6251
7017
  head?: never;
6252
7018
  patch?: never;
@@ -6423,6 +7189,7 @@ interface paths {
6423
7189
  accountCode?: string;
6424
7190
  feePartnerId?: string;
6425
7191
  feeAccountCode?: string;
7192
+ feeSettlementNote?: string;
6426
7193
  payoutTransitAccountCode?: string;
6427
7194
  /** @enum {string} */
6428
7195
  status?: "ACTIVE" | "DISABLED";
@@ -6985,7 +7752,7 @@ interface paths {
6985
7752
  path?: never;
6986
7753
  cookie?: never;
6987
7754
  };
6988
- /** @description Fees Stripe withheld in the period (the synthesised `:fee` rows of this connection's ledger, every status) against purchase invoices POSTED for the connection's fee partner in the same period. A non-zero difference is the only signal that Stripe's own monthly invoice — and with it the expense and its reverse-charge VAT — never reached the books. The two sides are dated on different clocks: a December fee normally appears on a January invoice. */
7755
+ /** @description Fees Stripe withheld in the period — both the synthesised `:fee` rows and the standalone `stripe_fee` balance transactions (Billing, Radar, Automatic Taxes), every status — against purchase invoices POSTED for the connection's fee partner in the same period. A non-zero difference is the only signal that Stripe's own monthly invoice — and with it the expense and its reverse-charge VAT — never reached the books. The two sides are dated on different clocks: a December fee normally appears on a January invoice. */
6989
7756
  get: {
6990
7757
  parameters: {
6991
7758
  query: {
@@ -13076,6 +13843,15 @@ interface paths {
13076
13843
  "application/json": components["schemas"]["ApiError"];
13077
13844
  };
13078
13845
  };
13846
+ /** @description A deactivation of a cash register with an i.EKA registration request not yet decided (IEKA_REQUEST_PENDING): withdraw it first */
13847
+ 409: {
13848
+ headers: {
13849
+ [name: string]: unknown;
13850
+ };
13851
+ content: {
13852
+ "application/json": components["schemas"]["ApiError"];
13853
+ };
13854
+ };
13079
13855
  };
13080
13856
  };
13081
13857
  post?: never;
@@ -13137,6 +13913,15 @@ interface paths {
13137
13913
  "application/json": components["schemas"]["ApiError"];
13138
13914
  };
13139
13915
  };
13916
+ /** @description The cash register has an i.EKA registration request not yet decided (IEKA_REQUEST_PENDING): withdraw it first */
13917
+ 409: {
13918
+ headers: {
13919
+ [name: string]: unknown;
13920
+ };
13921
+ content: {
13922
+ "application/json": components["schemas"]["ApiError"];
13923
+ };
13924
+ };
13140
13925
  };
13141
13926
  };
13142
13927
  options?: never;
@@ -13568,7 +14353,7 @@ interface paths {
13568
14353
  };
13569
14354
  requestBody?: never;
13570
14355
  responses: {
13571
- /** @description Posted cash order with journal entry */
14356
+ /** @description Posted cash order and its journal entry; `journalEntry` is omitted, and `order.journalEntryId` is null, when the posting has no lines (every amount is 0, or the amounts net to 0) or the company keeps single-entry books (individuali veikla, verslo liudijimas) */
13572
14357
  200: {
13573
14358
  headers: {
13574
14359
  [name: string]: unknown;
@@ -14275,6 +15060,80 @@ interface paths {
14275
15060
  patch?: never;
14276
15061
  trace?: never;
14277
15062
  };
15063
+ "/api/exchange-rates/rate": {
15064
+ parameters: {
15065
+ query?: never;
15066
+ header?: never;
15067
+ path?: never;
15068
+ cookie?: never;
15069
+ };
15070
+ get: {
15071
+ parameters: {
15072
+ query?: {
15073
+ currency?: string;
15074
+ date?: string;
15075
+ };
15076
+ header?: never;
15077
+ path?: never;
15078
+ cookie?: never;
15079
+ };
15080
+ requestBody?: never;
15081
+ responses: {
15082
+ /** @description The currency's rate for the date, carried forward over days with no table, and whether the date's own table is still to come */
15083
+ 200: {
15084
+ headers: {
15085
+ [name: string]: unknown;
15086
+ };
15087
+ content: {
15088
+ "application/json": components["schemas"]["ExchangeRateOnDate"];
15089
+ };
15090
+ };
15091
+ /** @description Validation error */
15092
+ 400: {
15093
+ headers: {
15094
+ [name: string]: unknown;
15095
+ };
15096
+ content: {
15097
+ "application/json": components["schemas"]["ApiError"];
15098
+ };
15099
+ };
15100
+ /** @description Unauthorized */
15101
+ 401: {
15102
+ headers: {
15103
+ [name: string]: unknown;
15104
+ };
15105
+ content: {
15106
+ "application/json": components["schemas"]["ApiError"];
15107
+ };
15108
+ };
15109
+ /** @description Forbidden (read-only / plan restricted) */
15110
+ 403: {
15111
+ headers: {
15112
+ [name: string]: unknown;
15113
+ };
15114
+ content: {
15115
+ "application/json": components["schemas"]["ApiError"];
15116
+ };
15117
+ };
15118
+ /** @description Not found */
15119
+ 404: {
15120
+ headers: {
15121
+ [name: string]: unknown;
15122
+ };
15123
+ content: {
15124
+ "application/json": components["schemas"]["ApiError"];
15125
+ };
15126
+ };
15127
+ };
15128
+ };
15129
+ put?: never;
15130
+ post?: never;
15131
+ delete?: never;
15132
+ options?: never;
15133
+ head?: never;
15134
+ patch?: never;
15135
+ trace?: never;
15136
+ };
14278
15137
  "/api/business-certificates": {
14279
15138
  parameters: {
14280
15139
  query?: never;
@@ -16344,6 +17203,17 @@ interface components {
16344
17203
  statementId?: string | null;
16345
17204
  isInternalTransfer?: boolean;
16346
17205
  externalStatus?: string | null;
17206
+ cardFx?: {
17207
+ currency: string;
17208
+ foreignAmount: number;
17209
+ convertedCents: number;
17210
+ feeCents: number | null;
17211
+ } | null;
17212
+ fxSettlement?: {
17213
+ feeCents: number;
17214
+ exchangeDifferenceCents: number;
17215
+ } | null;
17216
+ fxSettlementConfirmed?: boolean;
16347
17217
  createdAt?: string;
16348
17218
  updatedAt?: string;
16349
17219
  };
@@ -16411,6 +17281,8 @@ interface components {
16411
17281
  operationTemplateId?: string | null;
16412
17282
  journalEntryId?: string | null;
16413
17283
  status?: string;
17284
+ /** @enum {string|null} */
17285
+ notBooked?: "DEMO" | "TRAINING" | null;
16414
17286
  createdBy?: string;
16415
17287
  lines?: {
16416
17288
  lineNo?: number;
@@ -16463,6 +17335,7 @@ interface components {
16463
17335
  receiptSeriesCode?: string | null;
16464
17336
  isActive?: boolean;
16465
17337
  autoPost?: boolean;
17338
+ operationTemplateId?: string | null;
16466
17339
  serialNumber?: string | null;
16467
17340
  pricesIncludeVat?: boolean;
16468
17341
  iekaEnabled?: boolean;
@@ -16475,6 +17348,10 @@ interface components {
16475
17348
  iekaCertId?: string | null;
16476
17349
  iekaCertID?: string | null;
16477
17350
  iekaEnvironment?: string | null;
17351
+ /** @enum {string|null} */
17352
+ iekaPurpose?: "FOR_USE" | "TRAINING" | null;
17353
+ /** @enum {string|null} */
17354
+ iekaVmiStatus?: "SUBMITTED_TO_REGISTER" | "REGISTERED" | "SUBMITTED_TO_SUSPEND" | "SUSPENDED" | "SUBMITTED_TO_DEREGISTER" | "DEREGISTERED" | null;
16478
17355
  createdAt?: string;
16479
17356
  updatedAt?: string;
16480
17357
  };
@@ -16558,6 +17435,14 @@ interface components {
16558
17435
  [key: string]: number;
16559
17436
  };
16560
17437
  };
17438
+ ExchangeRateOnDate: {
17439
+ currency: string;
17440
+ date: string;
17441
+ rate: number | null;
17442
+ rateDate: string | null;
17443
+ /** @description True when `rate` is an earlier table's, carried forward, and the table for `date` itself is still to come — the date is a day the ECB publishes on and no later table is loaded yet. False on a weekend or a TARGET closing day, whose rate carries forward for good. */
17444
+ pending: boolean;
17445
+ };
16561
17446
  FixedAsset: {
16562
17447
  _id: string;
16563
17448
  code?: string;
@@ -16596,6 +17481,13 @@ interface components {
16596
17481
  Invoice: {
16597
17482
  _id: string;
16598
17483
  type?: string;
17484
+ /** @enum {string|null} */
17485
+ correctionKind?: "CREDIT" | "DEBIT" | null;
17486
+ correctedInvoices?: {
17487
+ number?: string;
17488
+ date?: string;
17489
+ invoiceId?: string | null;
17490
+ }[];
16599
17491
  number?: string;
16600
17492
  internalNumber?: string | null;
16601
17493
  series?: string | null;
@@ -16618,6 +17510,10 @@ interface components {
16618
17510
  paymentStatus?: string;
16619
17511
  amountPaid?: number;
16620
17512
  amountDue?: number;
17513
+ creditApplications?: {
17514
+ invoiceId: string;
17515
+ amount: number;
17516
+ }[];
16621
17517
  journalEntryId?: string | null;
16622
17518
  notes?: string | null;
16623
17519
  companyBankIban?: string | null;
@@ -16661,6 +17557,11 @@ interface components {
16661
17557
  externalStatus?: string | null;
16662
17558
  sourcePdfS3Key?: string | null;
16663
17559
  sourcePdfS3Bucket?: string | null;
17560
+ sourcePdfSha256?: string | null;
17561
+ printedSupplier?: {
17562
+ vatCode: string | null;
17563
+ country: string | null;
17564
+ } | null;
16664
17565
  createdAt?: string;
16665
17566
  updatedAt?: string;
16666
17567
  };
@@ -16789,6 +17690,16 @@ interface components {
16789
17690
  entityType?: string;
16790
17691
  companyCode?: string | null;
16791
17692
  vatCode?: string | null;
17693
+ /**
17694
+ * @description EU import scheme (IOSS) number the partner prints in place of a VAT number: IM and ten digits. Not a VAT registration.
17695
+ * @example IM6160001595
17696
+ */
17697
+ iossNumber?: string | null;
17698
+ /**
17699
+ * @description Non-Union OSS scheme (VOES) code the partner prints in place of a VAT number: EU and nine digits. Not a VAT registration.
17700
+ * @example EU372050121
17701
+ */
17702
+ voesNumber?: string | null;
16792
17703
  address?: string | null;
16793
17704
  country?: string;
16794
17705
  defaultPayableAccountCode?: string | null;
@@ -16806,6 +17717,7 @@ interface components {
16806
17717
  defaultProductId?: string | null;
16807
17718
  defaultPriceListId?: string | null;
16808
17719
  correspondenceLanguage?: string;
17720
+ cardMerchantNames?: string[];
16809
17721
  isActive?: boolean;
16810
17722
  createdAt?: string;
16811
17723
  updatedAt?: string;
@@ -16961,6 +17873,7 @@ interface components {
16961
17873
  accountCode: string;
16962
17874
  feePartnerId: string;
16963
17875
  feeAccountCode: string;
17876
+ feeSettlementNote: string;
16964
17877
  payoutTransitAccountCode: string;
16965
17878
  payoutSourceIban: string | null;
16966
17879
  status: string;
@@ -16983,6 +17896,7 @@ interface components {
16983
17896
  withheldCents: number;
16984
17897
  feeRows: number;
16985
17898
  unpostedFeeRows: number;
17899
+ unclassifiedRows: number;
16986
17900
  invoicedCents: number;
16987
17901
  invoices: number;
16988
17902
  differenceCents: number;
@@ -17057,6 +17971,25 @@ declare class PartnersResource {
17057
17971
  create<T = unknown>(body: Record<string, unknown>): Promise<T>;
17058
17972
  update<T = unknown>(id: string, body: Record<string, unknown>): Promise<T>;
17059
17973
  remove<T = unknown>(id: string): Promise<T>;
17974
+ /**
17975
+ * What merging `sourceId` into `id` would move and fill, without moving or
17976
+ * filling any of it. An integration that creates partners from another
17977
+ * system is the caller most likely to produce a duplicate pair, which is why
17978
+ * these two are wrapped rather than allowlisted.
17979
+ */
17980
+ mergePreview<T = unknown>(id: string, sourceId: string): Promise<T>;
17981
+ /**
17982
+ * Re-points every document of `sourceId` onto `id`, fills the fields `id`
17983
+ * leaves empty, and DELETES `sourceId`. Refused (409) when the two carry
17984
+ * different registration codes — those are two legal entities, not a
17985
+ * duplicate.
17986
+ *
17987
+ * A 404 on a RETRY means the donor is already gone, which is what a merge
17988
+ * that succeeded looks like from a client whose response was lost: documents
17989
+ * move first and the donor is deleted last, so a second call finds no
17990
+ * references and a missing card. Treat it as done, not as failed.
17991
+ */
17992
+ merge<T = unknown>(id: string, sourceId: string): Promise<T>;
17060
17993
  }
17061
17994
 
17062
17995
  declare class ProductsResource {
@@ -17130,6 +18063,15 @@ declare class ReportsResource {
17130
18063
  /** Balance sheet + P&L. `year` is required; pass `to` for an interim period. */
17131
18064
  financialStatements<T = unknown>(params?: ReportParams): Promise<T>;
17132
18065
  isafExport<T = unknown>(params?: ReportParams): Promise<T>;
18066
+ /**
18067
+ * What the month's i.SAF file will contain, and which POSTED invoices reach
18068
+ * neither register — `SUPPLIER_NOT_VAT_REGISTERED` (expected: a Lithuanian
18069
+ * supplier with no PVM code writes no PVM invoice), `NO_PARTNER` or
18070
+ * `NO_VAT_SUMMARY` (both data defects).
18071
+ *
18072
+ * Same one-calendar-month period rule as `isafExport`.
18073
+ */
18074
+ isafExportPreview<T = unknown>(params?: ReportParams): Promise<T>;
17133
18075
  }
17134
18076
 
17135
18077
  declare class AuditLogsResource {
@@ -17255,6 +18197,15 @@ declare class BankTransactionsResource {
17255
18197
  setExternalStatus<T = unknown>(id: string, body: Record<string, unknown>): Promise<T>;
17256
18198
  post<T = unknown>(id: string): Promise<T>;
17257
18199
  unpost<T = unknown>(id: string): Promise<T>;
18200
+ /**
18201
+ * Replace a posted transaction's journal entry that no longer matches its
18202
+ * allocations (`postingStale`) — after `setAllocations` on a posted
18203
+ * transaction — with one built from them: a storno dated as the old entry,
18204
+ * then a post. Answers `reposted: false` and writes nothing when the entry
18205
+ * already matches, and refuses before the storno when the new entry cannot
18206
+ * be posted.
18207
+ */
18208
+ repost<T = unknown>(id: string): Promise<T>;
17258
18209
  }
17259
18210
 
17260
18211
  declare class BusinessTripsResource {
@@ -17294,10 +18245,24 @@ declare class NumberingsResource {
17294
18245
  update<T = unknown>(prefix: string, body: Record<string, unknown>): Promise<T>;
17295
18246
  }
17296
18247
 
18248
+ interface ExchangeRateOnDateParams {
18249
+ /** ISO 4217 code, e.g. `USD`. */
18250
+ currency: string;
18251
+ /** `YYYY-MM-DD`. */
18252
+ date: string;
18253
+ }
17297
18254
  declare class ExchangeRatesResource {
17298
18255
  private readonly client;
17299
18256
  constructor(client: JarsClient);
17300
18257
  list<T = unknown[]>(params?: ListParams): Promise<T>;
18258
+ /**
18259
+ * One currency's Bank of Lithuania rate for one day — the rate a
18260
+ * foreign-currency invoice import books. `rateDate` in the answer is the table
18261
+ * it was read from, an earlier day when `date` had none; `pending` is true
18262
+ * while `date`'s own table is still to come (it is loaded at 15:30 UTC on the
18263
+ * day), so the answer will change.
18264
+ */
18265
+ rate<T = unknown>(params: ExchangeRateOnDateParams): Promise<T>;
17301
18266
  }
17302
18267
 
17303
18268
  declare class BankStatementsResource {