@happyvertical/smrt-ledgers 0.61.3 → 0.61.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -6
- package/dist/chunks/{Account-IFuMKhPt.js → Account-Ca64CYmG.js} +2 -2
- package/dist/chunks/{Account-IFuMKhPt.js.map → Account-Ca64CYmG.js.map} +1 -1
- package/dist/chunks/{Ledger-DwxK6NRF.js → Ledger-CoLFPCZo.js} +1 -2
- package/dist/chunks/{Ledger-DwxK6NRF.js.map → Ledger-CoLFPCZo.js.map} +1 -1
- package/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +304 -125
- package/dist/migrations/ledger-accounts-table.d.ts +8 -5
- package/dist/migrations/ledger-accounts-table.d.ts.map +1 -1
- package/dist/models/Ledger.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +3 -3
- package/package.json +5 -5
package/dist/manifest.json
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
5
|
-
"packageVersion": "0.61.
|
|
5
|
+
"packageVersion": "0.61.5",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-ledgers:AccountCollection": {
|
|
8
8
|
"name": "accountcollection",
|
|
9
9
|
"className": "AccountCollection",
|
|
10
10
|
"qualifiedName": "@happyvertical/smrt-ledgers:AccountCollection",
|
|
11
11
|
"collection": "accounts",
|
|
12
|
-
"filePath": "
|
|
12
|
+
"filePath": "src/collections/Accounts.ts",
|
|
13
13
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
14
14
|
"fields": {},
|
|
15
15
|
"methods": {
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"className": "JournalEntryCollection",
|
|
333
333
|
"qualifiedName": "@happyvertical/smrt-ledgers:JournalEntryCollection",
|
|
334
334
|
"collection": "journalentries",
|
|
335
|
-
"filePath": "
|
|
335
|
+
"filePath": "src/collections/JournalEntries.ts",
|
|
336
336
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
337
337
|
"fields": {},
|
|
338
338
|
"methods": {
|
|
@@ -713,7 +713,7 @@
|
|
|
713
713
|
"className": "JournalCollection",
|
|
714
714
|
"qualifiedName": "@happyvertical/smrt-ledgers:JournalCollection",
|
|
715
715
|
"collection": "journals",
|
|
716
|
-
"filePath": "
|
|
716
|
+
"filePath": "src/collections/Journals.ts",
|
|
717
717
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
718
718
|
"fields": {},
|
|
719
719
|
"methods": {
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
"className": "LedgerCollection",
|
|
1099
1099
|
"qualifiedName": "@happyvertical/smrt-ledgers:LedgerCollection",
|
|
1100
1100
|
"collection": "ledgers",
|
|
1101
|
-
"filePath": "
|
|
1101
|
+
"filePath": "src/collections/Ledgers.ts",
|
|
1102
1102
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
1103
1103
|
"fields": {},
|
|
1104
1104
|
"methods": {},
|
|
@@ -1214,23 +1214,21 @@
|
|
|
1214
1214
|
"className": "Account",
|
|
1215
1215
|
"qualifiedName": "@happyvertical/smrt-ledgers:Account",
|
|
1216
1216
|
"collection": "accounts",
|
|
1217
|
-
"filePath": "
|
|
1217
|
+
"filePath": "src/models/Account.ts",
|
|
1218
1218
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
1219
1219
|
"fields": {
|
|
1220
1220
|
"parentId": {
|
|
1221
1221
|
"type": "foreignKey",
|
|
1222
|
-
"required": false,
|
|
1223
|
-
"related": "Account",
|
|
1224
1222
|
"_meta": {
|
|
1223
|
+
"__statedOptions": [],
|
|
1225
1224
|
"nullable": true
|
|
1226
|
-
}
|
|
1225
|
+
},
|
|
1226
|
+
"required": false,
|
|
1227
|
+
"related": "Account"
|
|
1227
1228
|
},
|
|
1228
1229
|
"tenantId": {
|
|
1229
1230
|
"type": "text",
|
|
1230
|
-
"required": false,
|
|
1231
1231
|
"_meta": {
|
|
1232
|
-
"sqlType": "UUID",
|
|
1233
|
-
"nullable": true,
|
|
1234
1232
|
"__tenancy": {
|
|
1235
1233
|
"isTenantIdField": true,
|
|
1236
1234
|
"autoFilter": true,
|
|
@@ -1240,44 +1238,71 @@
|
|
|
1240
1238
|
"mode": "optional",
|
|
1241
1239
|
"field": "tenantId",
|
|
1242
1240
|
"allowSuperAdminBypass": false
|
|
1243
|
-
}
|
|
1244
|
-
|
|
1241
|
+
},
|
|
1242
|
+
"__statedOptions": [
|
|
1243
|
+
"sqlType",
|
|
1244
|
+
"nullable",
|
|
1245
|
+
"__tenancy",
|
|
1246
|
+
"required"
|
|
1247
|
+
],
|
|
1248
|
+
"sqlType": "UUID",
|
|
1249
|
+
"nullable": true,
|
|
1250
|
+
"required": false
|
|
1251
|
+
},
|
|
1252
|
+
"required": false
|
|
1245
1253
|
},
|
|
1246
1254
|
"number": {
|
|
1247
1255
|
"type": "text",
|
|
1248
|
-
"required": false,
|
|
1249
|
-
"default": "",
|
|
1250
|
-
"description": "The account number in your chart of accounts.",
|
|
1251
1256
|
"_meta": {
|
|
1257
|
+
"__statedOptions": [
|
|
1258
|
+
"description",
|
|
1259
|
+
"default"
|
|
1260
|
+
],
|
|
1252
1261
|
"description": "The account number in your chart of accounts."
|
|
1253
|
-
}
|
|
1262
|
+
},
|
|
1263
|
+
"required": false,
|
|
1264
|
+
"default": "",
|
|
1265
|
+
"description": "The account number in your chart of accounts."
|
|
1254
1266
|
},
|
|
1255
1267
|
"name": {
|
|
1256
1268
|
"type": "text",
|
|
1257
|
-
"required": false,
|
|
1258
|
-
"default": "",
|
|
1259
|
-
"description": "What the account is called.",
|
|
1260
1269
|
"_meta": {
|
|
1270
|
+
"__statedOptions": [
|
|
1271
|
+
"description",
|
|
1272
|
+
"default"
|
|
1273
|
+
],
|
|
1261
1274
|
"description": "What the account is called."
|
|
1262
|
-
}
|
|
1275
|
+
},
|
|
1276
|
+
"required": false,
|
|
1277
|
+
"default": "",
|
|
1278
|
+
"description": "What the account is called."
|
|
1263
1279
|
},
|
|
1264
1280
|
"description": {
|
|
1265
1281
|
"type": "text",
|
|
1266
|
-
"required": false,
|
|
1267
|
-
"default": "",
|
|
1268
|
-
"description": "What the account is used for.",
|
|
1269
1282
|
"_meta": {
|
|
1283
|
+
"__statedOptions": [
|
|
1284
|
+
"description",
|
|
1285
|
+
"default"
|
|
1286
|
+
],
|
|
1270
1287
|
"description": "What the account is used for."
|
|
1271
|
-
}
|
|
1288
|
+
},
|
|
1289
|
+
"required": false,
|
|
1290
|
+
"default": "",
|
|
1291
|
+
"description": "What the account is used for."
|
|
1272
1292
|
},
|
|
1273
1293
|
"type": {
|
|
1274
1294
|
"type": "text",
|
|
1275
|
-
"required": false,
|
|
1276
|
-
"default": "asset",
|
|
1277
|
-
"description": "asset, liability, equity, revenue or expense.",
|
|
1278
1295
|
"_meta": {
|
|
1296
|
+
"__statedOptions": [
|
|
1297
|
+
"description",
|
|
1298
|
+
"default",
|
|
1299
|
+
"enum"
|
|
1300
|
+
],
|
|
1279
1301
|
"description": "asset, liability, equity, revenue or expense."
|
|
1280
1302
|
},
|
|
1303
|
+
"required": false,
|
|
1304
|
+
"default": "asset",
|
|
1305
|
+
"description": "asset, liability, equity, revenue or expense.",
|
|
1281
1306
|
"enum": [
|
|
1282
1307
|
"asset",
|
|
1283
1308
|
"liability",
|
|
@@ -1288,25 +1313,41 @@
|
|
|
1288
1313
|
},
|
|
1289
1314
|
"ledgerId": {
|
|
1290
1315
|
"type": "foreignKey",
|
|
1291
|
-
"required": false,
|
|
1292
|
-
"related": "Ledger",
|
|
1293
|
-
"description": "The ledger policy this account belongs to.",
|
|
1294
1316
|
"_meta": {
|
|
1317
|
+
"__statedOptions": [
|
|
1318
|
+
"description",
|
|
1319
|
+
"nullable",
|
|
1320
|
+
"related",
|
|
1321
|
+
"required"
|
|
1322
|
+
],
|
|
1295
1323
|
"description": "The ledger policy this account belongs to.",
|
|
1296
|
-
"nullable": true
|
|
1297
|
-
|
|
1324
|
+
"nullable": true,
|
|
1325
|
+
"required": false
|
|
1326
|
+
},
|
|
1327
|
+
"required": false,
|
|
1328
|
+
"related": "Ledger",
|
|
1329
|
+
"description": "The ledger policy this account belongs to."
|
|
1298
1330
|
},
|
|
1299
1331
|
"active": {
|
|
1300
1332
|
"type": "boolean",
|
|
1301
|
-
"required": false,
|
|
1302
|
-
"default": true,
|
|
1303
|
-
"description": "Whether the account is in use; deactivate it instead of deleting it.",
|
|
1304
1333
|
"_meta": {
|
|
1334
|
+
"__statedOptions": [
|
|
1335
|
+
"description",
|
|
1336
|
+
"default"
|
|
1337
|
+
],
|
|
1305
1338
|
"description": "Whether the account is in use; deactivate it instead of deleting it."
|
|
1306
|
-
}
|
|
1339
|
+
},
|
|
1340
|
+
"required": false,
|
|
1341
|
+
"default": true,
|
|
1342
|
+
"description": "Whether the account is in use; deactivate it instead of deleting it."
|
|
1307
1343
|
},
|
|
1308
1344
|
"metadata": {
|
|
1309
1345
|
"type": "json",
|
|
1346
|
+
"_meta": {
|
|
1347
|
+
"__statedOptions": [
|
|
1348
|
+
"default"
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1310
1351
|
"required": false,
|
|
1311
1352
|
"default": {}
|
|
1312
1353
|
}
|
|
@@ -1637,15 +1678,12 @@
|
|
|
1637
1678
|
"className": "Journal",
|
|
1638
1679
|
"qualifiedName": "@happyvertical/smrt-ledgers:Journal",
|
|
1639
1680
|
"collection": "journals",
|
|
1640
|
-
"filePath": "
|
|
1681
|
+
"filePath": "src/models/Journal.ts",
|
|
1641
1682
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
1642
1683
|
"fields": {
|
|
1643
1684
|
"tenantId": {
|
|
1644
1685
|
"type": "text",
|
|
1645
|
-
"required": false,
|
|
1646
1686
|
"_meta": {
|
|
1647
|
-
"sqlType": "UUID",
|
|
1648
|
-
"nullable": true,
|
|
1649
1687
|
"__tenancy": {
|
|
1650
1688
|
"isTenantIdField": true,
|
|
1651
1689
|
"autoFilter": true,
|
|
@@ -1655,73 +1693,122 @@
|
|
|
1655
1693
|
"mode": "optional",
|
|
1656
1694
|
"field": "tenantId",
|
|
1657
1695
|
"allowSuperAdminBypass": false
|
|
1658
|
-
}
|
|
1659
|
-
|
|
1696
|
+
},
|
|
1697
|
+
"__statedOptions": [
|
|
1698
|
+
"sqlType",
|
|
1699
|
+
"nullable",
|
|
1700
|
+
"__tenancy",
|
|
1701
|
+
"required"
|
|
1702
|
+
],
|
|
1703
|
+
"sqlType": "UUID",
|
|
1704
|
+
"nullable": true,
|
|
1705
|
+
"required": false
|
|
1706
|
+
},
|
|
1707
|
+
"required": false
|
|
1660
1708
|
},
|
|
1661
1709
|
"number": {
|
|
1662
1710
|
"type": "text",
|
|
1663
|
-
"required": false,
|
|
1664
|
-
"default": "",
|
|
1665
|
-
"description": "The journal's reference number.",
|
|
1666
1711
|
"_meta": {
|
|
1712
|
+
"__statedOptions": [
|
|
1713
|
+
"description",
|
|
1714
|
+
"default"
|
|
1715
|
+
],
|
|
1667
1716
|
"description": "The journal's reference number."
|
|
1668
|
-
}
|
|
1717
|
+
},
|
|
1718
|
+
"required": false,
|
|
1719
|
+
"default": "",
|
|
1720
|
+
"description": "The journal's reference number."
|
|
1669
1721
|
},
|
|
1670
1722
|
"date": {
|
|
1671
1723
|
"type": "datetime",
|
|
1672
|
-
"required": false,
|
|
1673
|
-
"description": "The date of the transaction.",
|
|
1674
1724
|
"_meta": {
|
|
1725
|
+
"__statedOptions": [
|
|
1726
|
+
"description"
|
|
1727
|
+
],
|
|
1675
1728
|
"description": "The date of the transaction."
|
|
1676
|
-
}
|
|
1729
|
+
},
|
|
1730
|
+
"required": false,
|
|
1731
|
+
"description": "The date of the transaction."
|
|
1677
1732
|
},
|
|
1678
1733
|
"description": {
|
|
1679
1734
|
"type": "text",
|
|
1680
|
-
"required": false,
|
|
1681
|
-
"default": "",
|
|
1682
|
-
"description": "What the transaction was.",
|
|
1683
1735
|
"_meta": {
|
|
1736
|
+
"__statedOptions": [
|
|
1737
|
+
"description",
|
|
1738
|
+
"default"
|
|
1739
|
+
],
|
|
1684
1740
|
"description": "What the transaction was."
|
|
1685
|
-
}
|
|
1741
|
+
},
|
|
1742
|
+
"required": false,
|
|
1743
|
+
"default": "",
|
|
1744
|
+
"description": "What the transaction was."
|
|
1686
1745
|
},
|
|
1687
1746
|
"sourceModule": {
|
|
1688
1747
|
"type": "text",
|
|
1748
|
+
"_meta": {
|
|
1749
|
+
"__statedOptions": [
|
|
1750
|
+
"default"
|
|
1751
|
+
]
|
|
1752
|
+
},
|
|
1689
1753
|
"required": false,
|
|
1690
1754
|
"default": ""
|
|
1691
1755
|
},
|
|
1692
1756
|
"sourceRef": {
|
|
1693
1757
|
"type": "text",
|
|
1758
|
+
"_meta": {
|
|
1759
|
+
"__statedOptions": []
|
|
1760
|
+
},
|
|
1694
1761
|
"required": false
|
|
1695
1762
|
},
|
|
1696
1763
|
"ledgerId": {
|
|
1697
1764
|
"type": "foreignKey",
|
|
1698
|
-
"required": false,
|
|
1699
|
-
"related": "Ledger",
|
|
1700
|
-
"description": "The ledger policy that governs this journal.",
|
|
1701
1765
|
"_meta": {
|
|
1766
|
+
"__statedOptions": [
|
|
1767
|
+
"description",
|
|
1768
|
+
"nullable",
|
|
1769
|
+
"related",
|
|
1770
|
+
"required"
|
|
1771
|
+
],
|
|
1702
1772
|
"description": "The ledger policy that governs this journal.",
|
|
1703
|
-
"nullable": true
|
|
1704
|
-
|
|
1773
|
+
"nullable": true,
|
|
1774
|
+
"required": false
|
|
1775
|
+
},
|
|
1776
|
+
"required": false,
|
|
1777
|
+
"related": "Ledger",
|
|
1778
|
+
"description": "The ledger policy that governs this journal."
|
|
1705
1779
|
},
|
|
1706
1780
|
"idempotencyKey": {
|
|
1707
1781
|
"type": "text",
|
|
1708
|
-
"required": false,
|
|
1709
1782
|
"_meta": {
|
|
1710
|
-
"
|
|
1711
|
-
|
|
1783
|
+
"__statedOptions": [
|
|
1784
|
+
"nullable",
|
|
1785
|
+
"required"
|
|
1786
|
+
],
|
|
1787
|
+
"nullable": true,
|
|
1788
|
+
"required": false
|
|
1789
|
+
},
|
|
1790
|
+
"required": false
|
|
1712
1791
|
},
|
|
1713
1792
|
"requestDigest": {
|
|
1714
1793
|
"type": "text",
|
|
1794
|
+
"_meta": {
|
|
1795
|
+
"__statedOptions": []
|
|
1796
|
+
},
|
|
1715
1797
|
"required": false
|
|
1716
1798
|
},
|
|
1717
1799
|
"status": {
|
|
1718
1800
|
"type": "text",
|
|
1719
|
-
"required": false,
|
|
1720
|
-
"default": "draft",
|
|
1721
|
-
"description": "draft until final, then posted, or voided.",
|
|
1722
1801
|
"_meta": {
|
|
1802
|
+
"__statedOptions": [
|
|
1803
|
+
"description",
|
|
1804
|
+
"default",
|
|
1805
|
+
"enum"
|
|
1806
|
+
],
|
|
1723
1807
|
"description": "draft until final, then posted, or voided."
|
|
1724
1808
|
},
|
|
1809
|
+
"required": false,
|
|
1810
|
+
"default": "draft",
|
|
1811
|
+
"description": "draft until final, then posted, or voided.",
|
|
1725
1812
|
"enum": [
|
|
1726
1813
|
"draft",
|
|
1727
1814
|
"posted",
|
|
@@ -1730,22 +1817,36 @@
|
|
|
1730
1817
|
},
|
|
1731
1818
|
"postedAt": {
|
|
1732
1819
|
"type": "datetime",
|
|
1733
|
-
"required": false,
|
|
1734
|
-
"description": "When it was posted.",
|
|
1735
1820
|
"_meta": {
|
|
1821
|
+
"__statedOptions": [
|
|
1822
|
+
"description"
|
|
1823
|
+
],
|
|
1736
1824
|
"description": "When it was posted."
|
|
1737
|
-
}
|
|
1825
|
+
},
|
|
1826
|
+
"required": false,
|
|
1827
|
+
"description": "When it was posted."
|
|
1738
1828
|
},
|
|
1739
1829
|
"voidedAt": {
|
|
1740
1830
|
"type": "datetime",
|
|
1831
|
+
"_meta": {
|
|
1832
|
+
"__statedOptions": []
|
|
1833
|
+
},
|
|
1741
1834
|
"required": false
|
|
1742
1835
|
},
|
|
1743
1836
|
"voidReason": {
|
|
1744
1837
|
"type": "text",
|
|
1838
|
+
"_meta": {
|
|
1839
|
+
"__statedOptions": []
|
|
1840
|
+
},
|
|
1745
1841
|
"required": false
|
|
1746
1842
|
},
|
|
1747
1843
|
"metadata": {
|
|
1748
1844
|
"type": "json",
|
|
1845
|
+
"_meta": {
|
|
1846
|
+
"__statedOptions": [
|
|
1847
|
+
"default"
|
|
1848
|
+
]
|
|
1849
|
+
},
|
|
1749
1850
|
"required": false,
|
|
1750
1851
|
"default": {}
|
|
1751
1852
|
}
|
|
@@ -2101,15 +2202,12 @@
|
|
|
2101
2202
|
"className": "JournalEntry",
|
|
2102
2203
|
"qualifiedName": "@happyvertical/smrt-ledgers:JournalEntry",
|
|
2103
2204
|
"collection": "journalentries",
|
|
2104
|
-
"filePath": "
|
|
2205
|
+
"filePath": "src/models/JournalEntry.ts",
|
|
2105
2206
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
2106
2207
|
"fields": {
|
|
2107
2208
|
"tenantId": {
|
|
2108
2209
|
"type": "text",
|
|
2109
|
-
"required": false,
|
|
2110
2210
|
"_meta": {
|
|
2111
|
-
"sqlType": "UUID",
|
|
2112
|
-
"nullable": true,
|
|
2113
2211
|
"__tenancy": {
|
|
2114
2212
|
"isTenantIdField": true,
|
|
2115
2213
|
"autoFilter": true,
|
|
@@ -2119,100 +2217,162 @@
|
|
|
2119
2217
|
"mode": "optional",
|
|
2120
2218
|
"field": "tenantId",
|
|
2121
2219
|
"allowSuperAdminBypass": false
|
|
2122
|
-
}
|
|
2123
|
-
|
|
2220
|
+
},
|
|
2221
|
+
"__statedOptions": [
|
|
2222
|
+
"sqlType",
|
|
2223
|
+
"nullable",
|
|
2224
|
+
"__tenancy",
|
|
2225
|
+
"required"
|
|
2226
|
+
],
|
|
2227
|
+
"sqlType": "UUID",
|
|
2228
|
+
"nullable": true,
|
|
2229
|
+
"required": false
|
|
2230
|
+
},
|
|
2231
|
+
"required": false
|
|
2124
2232
|
},
|
|
2125
2233
|
"journalId": {
|
|
2126
2234
|
"type": "foreignKey",
|
|
2127
|
-
"required": false,
|
|
2128
|
-
"related": "Journal",
|
|
2129
|
-
"description": "The journal this entry belongs to.",
|
|
2130
2235
|
"_meta": {
|
|
2236
|
+
"__statedOptions": [
|
|
2237
|
+
"description",
|
|
2238
|
+
"related"
|
|
2239
|
+
],
|
|
2131
2240
|
"description": "The journal this entry belongs to."
|
|
2132
|
-
}
|
|
2241
|
+
},
|
|
2242
|
+
"required": false,
|
|
2243
|
+
"related": "Journal",
|
|
2244
|
+
"description": "The journal this entry belongs to."
|
|
2133
2245
|
},
|
|
2134
2246
|
"accountId": {
|
|
2135
2247
|
"type": "foreignKey",
|
|
2136
|
-
"required": false,
|
|
2137
|
-
"related": "Account",
|
|
2138
|
-
"description": "The account this entry changes.",
|
|
2139
2248
|
"_meta": {
|
|
2249
|
+
"__statedOptions": [
|
|
2250
|
+
"description",
|
|
2251
|
+
"related"
|
|
2252
|
+
],
|
|
2140
2253
|
"description": "The account this entry changes."
|
|
2141
|
-
}
|
|
2254
|
+
},
|
|
2255
|
+
"required": false,
|
|
2256
|
+
"related": "Account",
|
|
2257
|
+
"description": "The account this entry changes."
|
|
2142
2258
|
},
|
|
2143
2259
|
"counterpartyKind": {
|
|
2144
2260
|
"type": "text",
|
|
2145
|
-
"required": false,
|
|
2146
|
-
"description": "Generic counterparty type.",
|
|
2147
2261
|
"_meta": {
|
|
2262
|
+
"__statedOptions": [
|
|
2263
|
+
"description",
|
|
2264
|
+
"nullable",
|
|
2265
|
+
"required"
|
|
2266
|
+
],
|
|
2148
2267
|
"description": "Generic counterparty type.",
|
|
2149
|
-
"nullable": true
|
|
2150
|
-
|
|
2268
|
+
"nullable": true,
|
|
2269
|
+
"required": false
|
|
2270
|
+
},
|
|
2271
|
+
"required": false,
|
|
2272
|
+
"description": "Generic counterparty type."
|
|
2151
2273
|
},
|
|
2152
2274
|
"counterpartyId": {
|
|
2153
2275
|
"type": "text",
|
|
2154
|
-
"required": false,
|
|
2155
|
-
"description": "Generic counterparty identifier.",
|
|
2156
2276
|
"_meta": {
|
|
2277
|
+
"__statedOptions": [
|
|
2278
|
+
"description",
|
|
2279
|
+
"nullable",
|
|
2280
|
+
"required"
|
|
2281
|
+
],
|
|
2157
2282
|
"description": "Generic counterparty identifier.",
|
|
2158
|
-
"nullable": true
|
|
2159
|
-
|
|
2283
|
+
"nullable": true,
|
|
2284
|
+
"required": false
|
|
2285
|
+
},
|
|
2286
|
+
"required": false,
|
|
2287
|
+
"description": "Generic counterparty identifier."
|
|
2160
2288
|
},
|
|
2161
2289
|
"dueDate": {
|
|
2162
2290
|
"type": "datetime",
|
|
2163
|
-
"required": false,
|
|
2164
|
-
"description": "When this open receivable or payable is due.",
|
|
2165
2291
|
"_meta": {
|
|
2292
|
+
"__statedOptions": [
|
|
2293
|
+
"description"
|
|
2294
|
+
],
|
|
2166
2295
|
"description": "When this open receivable or payable is due."
|
|
2167
|
-
}
|
|
2296
|
+
},
|
|
2297
|
+
"required": false,
|
|
2298
|
+
"description": "When this open receivable or payable is due."
|
|
2168
2299
|
},
|
|
2169
2300
|
"settlesSourceRef": {
|
|
2170
2301
|
"type": "text",
|
|
2302
|
+
"_meta": {
|
|
2303
|
+
"__statedOptions": []
|
|
2304
|
+
},
|
|
2171
2305
|
"required": false
|
|
2172
2306
|
},
|
|
2173
2307
|
"debit": {
|
|
2174
2308
|
"type": "decimal",
|
|
2175
|
-
"required": false,
|
|
2176
|
-
"default": 0,
|
|
2177
|
-
"description": "The amount debited. Zero on a credit entry.",
|
|
2178
2309
|
"_meta": {
|
|
2310
|
+
"__statedOptions": [
|
|
2311
|
+
"description",
|
|
2312
|
+
"default"
|
|
2313
|
+
],
|
|
2179
2314
|
"description": "The amount debited. Zero on a credit entry."
|
|
2180
|
-
}
|
|
2315
|
+
},
|
|
2316
|
+
"required": false,
|
|
2317
|
+
"default": 0,
|
|
2318
|
+
"description": "The amount debited. Zero on a credit entry."
|
|
2181
2319
|
},
|
|
2182
2320
|
"credit": {
|
|
2183
2321
|
"type": "decimal",
|
|
2184
|
-
"required": false,
|
|
2185
|
-
"default": 0,
|
|
2186
|
-
"description": "The amount credited. Zero on a debit entry.",
|
|
2187
2322
|
"_meta": {
|
|
2323
|
+
"__statedOptions": [
|
|
2324
|
+
"description",
|
|
2325
|
+
"default"
|
|
2326
|
+
],
|
|
2188
2327
|
"description": "The amount credited. Zero on a debit entry."
|
|
2189
|
-
}
|
|
2328
|
+
},
|
|
2329
|
+
"required": false,
|
|
2330
|
+
"default": 0,
|
|
2331
|
+
"description": "The amount credited. Zero on a debit entry."
|
|
2190
2332
|
},
|
|
2191
2333
|
"currency": {
|
|
2192
2334
|
"type": "text",
|
|
2193
|
-
"required": false,
|
|
2194
|
-
"default": "USD",
|
|
2195
|
-
"description": "The currency of the amounts.",
|
|
2196
2335
|
"_meta": {
|
|
2336
|
+
"__statedOptions": [
|
|
2337
|
+
"description",
|
|
2338
|
+
"default"
|
|
2339
|
+
],
|
|
2197
2340
|
"description": "The currency of the amounts."
|
|
2198
|
-
}
|
|
2341
|
+
},
|
|
2342
|
+
"required": false,
|
|
2343
|
+
"default": "USD",
|
|
2344
|
+
"description": "The currency of the amounts."
|
|
2199
2345
|
},
|
|
2200
2346
|
"exchangeRate": {
|
|
2201
2347
|
"type": "decimal",
|
|
2348
|
+
"_meta": {
|
|
2349
|
+
"__statedOptions": [
|
|
2350
|
+
"default"
|
|
2351
|
+
]
|
|
2352
|
+
},
|
|
2202
2353
|
"required": false,
|
|
2203
2354
|
"default": 1
|
|
2204
2355
|
},
|
|
2205
2356
|
"memo": {
|
|
2206
2357
|
"type": "text",
|
|
2207
|
-
"required": false,
|
|
2208
|
-
"default": "",
|
|
2209
|
-
"description": "A note on this entry.",
|
|
2210
2358
|
"_meta": {
|
|
2359
|
+
"__statedOptions": [
|
|
2360
|
+
"description",
|
|
2361
|
+
"default"
|
|
2362
|
+
],
|
|
2211
2363
|
"description": "A note on this entry."
|
|
2212
|
-
}
|
|
2364
|
+
},
|
|
2365
|
+
"required": false,
|
|
2366
|
+
"default": "",
|
|
2367
|
+
"description": "A note on this entry."
|
|
2213
2368
|
},
|
|
2214
2369
|
"metadata": {
|
|
2215
2370
|
"type": "json",
|
|
2371
|
+
"_meta": {
|
|
2372
|
+
"__statedOptions": [
|
|
2373
|
+
"default"
|
|
2374
|
+
]
|
|
2375
|
+
},
|
|
2216
2376
|
"required": false,
|
|
2217
2377
|
"default": {}
|
|
2218
2378
|
}
|
|
@@ -2496,15 +2656,12 @@
|
|
|
2496
2656
|
"qualifiedName": "@happyvertical/smrt-ledgers:Ledger",
|
|
2497
2657
|
"collection": "ledgers",
|
|
2498
2658
|
"description": "A named accounting scope. Exact ledgers store one currency's minor units and reject fractional entries; legacy journals without a ledger retain the tolerant balance rule for backwards compatibility.",
|
|
2499
|
-
"filePath": "
|
|
2659
|
+
"filePath": "src/models/Ledger.ts",
|
|
2500
2660
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
2501
2661
|
"fields": {
|
|
2502
2662
|
"tenantId": {
|
|
2503
2663
|
"type": "text",
|
|
2504
|
-
"required": false,
|
|
2505
2664
|
"_meta": {
|
|
2506
|
-
"sqlType": "UUID",
|
|
2507
|
-
"nullable": true,
|
|
2508
2665
|
"__tenancy": {
|
|
2509
2666
|
"isTenantIdField": true,
|
|
2510
2667
|
"autoFilter": true,
|
|
@@ -2514,33 +2671,54 @@
|
|
|
2514
2671
|
"mode": "optional",
|
|
2515
2672
|
"field": "tenantId",
|
|
2516
2673
|
"allowSuperAdminBypass": false
|
|
2517
|
-
}
|
|
2518
|
-
|
|
2674
|
+
},
|
|
2675
|
+
"__statedOptions": [
|
|
2676
|
+
"sqlType",
|
|
2677
|
+
"nullable",
|
|
2678
|
+
"__tenancy",
|
|
2679
|
+
"required"
|
|
2680
|
+
],
|
|
2681
|
+
"sqlType": "UUID",
|
|
2682
|
+
"nullable": true,
|
|
2683
|
+
"required": false
|
|
2684
|
+
},
|
|
2685
|
+
"required": false
|
|
2519
2686
|
},
|
|
2520
2687
|
"name": {
|
|
2521
2688
|
"type": "text",
|
|
2522
|
-
"required": false,
|
|
2523
|
-
"description": "The accounting scope name.",
|
|
2524
2689
|
"_meta": {
|
|
2690
|
+
"__statedOptions": [
|
|
2691
|
+
"description"
|
|
2692
|
+
],
|
|
2525
2693
|
"description": "The accounting scope name."
|
|
2526
|
-
}
|
|
2694
|
+
},
|
|
2695
|
+
"required": false,
|
|
2696
|
+
"description": "The accounting scope name."
|
|
2527
2697
|
},
|
|
2528
2698
|
"currency": {
|
|
2529
2699
|
"type": "text",
|
|
2530
|
-
"required": false,
|
|
2531
|
-
"description": "ISO 4217 currency used by this ledger.",
|
|
2532
2700
|
"_meta": {
|
|
2701
|
+
"__statedOptions": [
|
|
2702
|
+
"description"
|
|
2703
|
+
],
|
|
2533
2704
|
"description": "ISO 4217 currency used by this ledger."
|
|
2534
|
-
}
|
|
2705
|
+
},
|
|
2706
|
+
"required": false,
|
|
2707
|
+
"description": "ISO 4217 currency used by this ledger."
|
|
2535
2708
|
},
|
|
2536
2709
|
"balanceMode": {
|
|
2537
2710
|
"type": "text",
|
|
2538
|
-
"required": false,
|
|
2539
|
-
"default": "tolerant",
|
|
2540
|
-
"description": "tolerant accepts decimal units; exact requires integer minor units.",
|
|
2541
2711
|
"_meta": {
|
|
2712
|
+
"__statedOptions": [
|
|
2713
|
+
"description",
|
|
2714
|
+
"default",
|
|
2715
|
+
"enum"
|
|
2716
|
+
],
|
|
2542
2717
|
"description": "tolerant accepts decimal units; exact requires integer minor units."
|
|
2543
2718
|
},
|
|
2719
|
+
"required": false,
|
|
2720
|
+
"default": "tolerant",
|
|
2721
|
+
"description": "tolerant accepts decimal units; exact requires integer minor units.",
|
|
2544
2722
|
"enum": [
|
|
2545
2723
|
"tolerant",
|
|
2546
2724
|
"exact-integer"
|
|
@@ -2797,5 +2975,6 @@
|
|
|
2797
2975
|
"@happyvertical/smrt-tenancy"
|
|
2798
2976
|
]
|
|
2799
2977
|
},
|
|
2978
|
+
"schemaFingerprint": "48e8dd46a548e5a67db582581593133839f07fe662bf21cf72f0cb6c6749cd7d",
|
|
2800
2979
|
"stampsConstructors": true
|
|
2801
2980
|
}
|