@happyvertical/smrt-ledgers 0.55.0 → 0.55.8
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/chunks/{Account-CkLJrn_J.js → Account-b0RgfbjM.js} +7 -17
- package/dist/chunks/Account-b0RgfbjM.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +69 -33
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +205 -17
- package/dist/models/Account.d.ts.map +1 -1
- package/dist/models/Journal.d.ts.map +1 -1
- package/dist/models/JournalEntry.d.ts.map +1 -1
- package/dist/recipes.d.ts +80 -0
- package/dist/recipes.d.ts.map +1 -0
- package/dist/smrt-knowledge.json +148 -20
- package/package.json +5 -5
- package/dist/chunks/Account-CkLJrn_J.js.map +0 -1
package/dist/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "1.0.0",
|
|
3
3
|
"timestamp": 0,
|
|
4
4
|
"packageName": "@happyvertical/smrt-ledgers",
|
|
5
|
-
"packageVersion": "0.55.
|
|
5
|
+
"packageVersion": "0.55.8",
|
|
6
6
|
"objects": {
|
|
7
7
|
"@happyvertical/smrt-ledgers:AccountCollection": {
|
|
8
8
|
"name": "accountcollection",
|
|
@@ -931,27 +931,54 @@
|
|
|
931
931
|
"number": {
|
|
932
932
|
"type": "text",
|
|
933
933
|
"required": false,
|
|
934
|
-
"default": ""
|
|
934
|
+
"default": "",
|
|
935
|
+
"description": "The account number in your chart of accounts.",
|
|
936
|
+
"_meta": {
|
|
937
|
+
"description": "The account number in your chart of accounts."
|
|
938
|
+
}
|
|
935
939
|
},
|
|
936
940
|
"name": {
|
|
937
941
|
"type": "text",
|
|
938
942
|
"required": false,
|
|
939
|
-
"default": ""
|
|
943
|
+
"default": "",
|
|
944
|
+
"description": "What the account is called.",
|
|
945
|
+
"_meta": {
|
|
946
|
+
"description": "What the account is called."
|
|
947
|
+
}
|
|
940
948
|
},
|
|
941
949
|
"description": {
|
|
942
950
|
"type": "text",
|
|
943
951
|
"required": false,
|
|
944
|
-
"default": ""
|
|
952
|
+
"default": "",
|
|
953
|
+
"description": "What the account is used for.",
|
|
954
|
+
"_meta": {
|
|
955
|
+
"description": "What the account is used for."
|
|
956
|
+
}
|
|
945
957
|
},
|
|
946
958
|
"type": {
|
|
947
959
|
"type": "text",
|
|
948
960
|
"required": false,
|
|
949
|
-
"default": "asset"
|
|
961
|
+
"default": "asset",
|
|
962
|
+
"description": "asset, liability, equity, revenue or expense.",
|
|
963
|
+
"_meta": {
|
|
964
|
+
"description": "asset, liability, equity, revenue or expense."
|
|
965
|
+
},
|
|
966
|
+
"enum": [
|
|
967
|
+
"asset",
|
|
968
|
+
"liability",
|
|
969
|
+
"equity",
|
|
970
|
+
"revenue",
|
|
971
|
+
"expense"
|
|
972
|
+
]
|
|
950
973
|
},
|
|
951
974
|
"active": {
|
|
952
975
|
"type": "boolean",
|
|
953
976
|
"required": false,
|
|
954
|
-
"default": true
|
|
977
|
+
"default": true,
|
|
978
|
+
"description": "Whether the account is in use; deactivate it instead of deleting it.",
|
|
979
|
+
"_meta": {
|
|
980
|
+
"description": "Whether the account is in use; deactivate it instead of deleting it."
|
|
981
|
+
}
|
|
955
982
|
},
|
|
956
983
|
"metadata": {
|
|
957
984
|
"type": "json",
|
|
@@ -1127,6 +1154,7 @@
|
|
|
1127
1154
|
"extends": "SmrtHierarchical",
|
|
1128
1155
|
"exportName": "Account",
|
|
1129
1156
|
"collectionExportName": "AccountCollection",
|
|
1157
|
+
"displayLabelField": "name",
|
|
1130
1158
|
"schema": {
|
|
1131
1159
|
"tableName": "ledger_accounts",
|
|
1132
1160
|
"ddl": "CREATE TABLE IF NOT EXISTS \"ledger_accounts\" (\n \"id\" UUID PRIMARY KEY NOT NULL,\n \"slug\" TEXT NOT NULL,\n \"context\" TEXT NOT NULL DEFAULT '',\n \"created_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"updated_at\" TIMESTAMP NOT NULL DEFAULT current_timestamp,\n \"parent_id\" UUID,\n \"tenant_id\" UUID,\n \"number\" TEXT DEFAULT '',\n \"name\" TEXT DEFAULT '',\n \"description\" TEXT DEFAULT '',\n \"type\" TEXT DEFAULT 'asset',\n \"active\" BOOLEAN DEFAULT TRUE,\n \"metadata\" JSON DEFAULT '{}'\n);",
|
|
@@ -1269,16 +1297,28 @@
|
|
|
1269
1297
|
"number": {
|
|
1270
1298
|
"type": "text",
|
|
1271
1299
|
"required": false,
|
|
1272
|
-
"default": ""
|
|
1300
|
+
"default": "",
|
|
1301
|
+
"description": "The journal's reference number.",
|
|
1302
|
+
"_meta": {
|
|
1303
|
+
"description": "The journal's reference number."
|
|
1304
|
+
}
|
|
1273
1305
|
},
|
|
1274
1306
|
"date": {
|
|
1275
1307
|
"type": "datetime",
|
|
1276
|
-
"required": false
|
|
1308
|
+
"required": false,
|
|
1309
|
+
"description": "The date of the transaction.",
|
|
1310
|
+
"_meta": {
|
|
1311
|
+
"description": "The date of the transaction."
|
|
1312
|
+
}
|
|
1277
1313
|
},
|
|
1278
1314
|
"description": {
|
|
1279
1315
|
"type": "text",
|
|
1280
1316
|
"required": false,
|
|
1281
|
-
"default": ""
|
|
1317
|
+
"default": "",
|
|
1318
|
+
"description": "What the transaction was.",
|
|
1319
|
+
"_meta": {
|
|
1320
|
+
"description": "What the transaction was."
|
|
1321
|
+
}
|
|
1282
1322
|
},
|
|
1283
1323
|
"sourceModule": {
|
|
1284
1324
|
"type": "text",
|
|
@@ -1292,11 +1332,24 @@
|
|
|
1292
1332
|
"status": {
|
|
1293
1333
|
"type": "text",
|
|
1294
1334
|
"required": false,
|
|
1295
|
-
"default": "draft"
|
|
1335
|
+
"default": "draft",
|
|
1336
|
+
"description": "draft until final, then posted, or voided.",
|
|
1337
|
+
"_meta": {
|
|
1338
|
+
"description": "draft until final, then posted, or voided."
|
|
1339
|
+
},
|
|
1340
|
+
"enum": [
|
|
1341
|
+
"draft",
|
|
1342
|
+
"posted",
|
|
1343
|
+
"voided"
|
|
1344
|
+
]
|
|
1296
1345
|
},
|
|
1297
1346
|
"postedAt": {
|
|
1298
1347
|
"type": "datetime",
|
|
1299
|
-
"required": false
|
|
1348
|
+
"required": false,
|
|
1349
|
+
"description": "When it was posted.",
|
|
1350
|
+
"_meta": {
|
|
1351
|
+
"description": "When it was posted."
|
|
1352
|
+
}
|
|
1300
1353
|
},
|
|
1301
1354
|
"voidedAt": {
|
|
1302
1355
|
"type": "datetime",
|
|
@@ -1595,27 +1648,47 @@
|
|
|
1595
1648
|
"journalId": {
|
|
1596
1649
|
"type": "foreignKey",
|
|
1597
1650
|
"required": false,
|
|
1598
|
-
"related": "Journal"
|
|
1651
|
+
"related": "Journal",
|
|
1652
|
+
"description": "The journal this entry belongs to.",
|
|
1653
|
+
"_meta": {
|
|
1654
|
+
"description": "The journal this entry belongs to."
|
|
1655
|
+
}
|
|
1599
1656
|
},
|
|
1600
1657
|
"accountId": {
|
|
1601
1658
|
"type": "foreignKey",
|
|
1602
1659
|
"required": false,
|
|
1603
|
-
"related": "Account"
|
|
1660
|
+
"related": "Account",
|
|
1661
|
+
"description": "The account this entry changes.",
|
|
1662
|
+
"_meta": {
|
|
1663
|
+
"description": "The account this entry changes."
|
|
1664
|
+
}
|
|
1604
1665
|
},
|
|
1605
1666
|
"debit": {
|
|
1606
1667
|
"type": "decimal",
|
|
1607
1668
|
"required": false,
|
|
1608
|
-
"default": 0
|
|
1669
|
+
"default": 0,
|
|
1670
|
+
"description": "The amount debited. Zero on a credit entry.",
|
|
1671
|
+
"_meta": {
|
|
1672
|
+
"description": "The amount debited. Zero on a credit entry."
|
|
1673
|
+
}
|
|
1609
1674
|
},
|
|
1610
1675
|
"credit": {
|
|
1611
1676
|
"type": "decimal",
|
|
1612
1677
|
"required": false,
|
|
1613
|
-
"default": 0
|
|
1678
|
+
"default": 0,
|
|
1679
|
+
"description": "The amount credited. Zero on a debit entry.",
|
|
1680
|
+
"_meta": {
|
|
1681
|
+
"description": "The amount credited. Zero on a debit entry."
|
|
1682
|
+
}
|
|
1614
1683
|
},
|
|
1615
1684
|
"currency": {
|
|
1616
1685
|
"type": "text",
|
|
1617
1686
|
"required": false,
|
|
1618
|
-
"default": "USD"
|
|
1687
|
+
"default": "USD",
|
|
1688
|
+
"description": "The currency of the amounts.",
|
|
1689
|
+
"_meta": {
|
|
1690
|
+
"description": "The currency of the amounts."
|
|
1691
|
+
}
|
|
1619
1692
|
},
|
|
1620
1693
|
"exchangeRate": {
|
|
1621
1694
|
"type": "decimal",
|
|
@@ -1625,7 +1698,11 @@
|
|
|
1625
1698
|
"memo": {
|
|
1626
1699
|
"type": "text",
|
|
1627
1700
|
"required": false,
|
|
1628
|
-
"default": ""
|
|
1701
|
+
"default": "",
|
|
1702
|
+
"description": "A note on this entry.",
|
|
1703
|
+
"_meta": {
|
|
1704
|
+
"description": "A note on this entry."
|
|
1705
|
+
}
|
|
1629
1706
|
},
|
|
1630
1707
|
"metadata": {
|
|
1631
1708
|
"type": "json",
|
|
@@ -1852,10 +1929,121 @@
|
|
|
1852
1929
|
}
|
|
1853
1930
|
},
|
|
1854
1931
|
"moduleType": "smrt",
|
|
1932
|
+
"recipes": [
|
|
1933
|
+
{
|
|
1934
|
+
"id": "ledgers.bookkeeping",
|
|
1935
|
+
"className": "BookkeepingRecipe",
|
|
1936
|
+
"label": "Bookkeeping",
|
|
1937
|
+
"summary": "Keep your books: a chart of accounts and double-entry journals.",
|
|
1938
|
+
"synonyms": [
|
|
1939
|
+
"accounting",
|
|
1940
|
+
"ledger",
|
|
1941
|
+
"general ledger",
|
|
1942
|
+
"journals",
|
|
1943
|
+
"chart of accounts"
|
|
1944
|
+
],
|
|
1945
|
+
"models": [
|
|
1946
|
+
"@happyvertical/smrt-ledgers:Account",
|
|
1947
|
+
"@happyvertical/smrt-ledgers:Journal",
|
|
1948
|
+
"@happyvertical/smrt-ledgers:JournalEntry"
|
|
1949
|
+
],
|
|
1950
|
+
"nav": [
|
|
1951
|
+
{
|
|
1952
|
+
"label": "Accounts",
|
|
1953
|
+
"model": "@happyvertical/smrt-ledgers:Account",
|
|
1954
|
+
"icon": "bank",
|
|
1955
|
+
"description": "The accounts your books are kept in, like sales, rent and bank."
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"label": "Journals",
|
|
1959
|
+
"model": "@happyvertical/smrt-ledgers:Journal",
|
|
1960
|
+
"icon": "book",
|
|
1961
|
+
"description": "The entries behind your accounts, so every dollar has a trail."
|
|
1962
|
+
}
|
|
1963
|
+
],
|
|
1964
|
+
"requires": [],
|
|
1965
|
+
"section": {
|
|
1966
|
+
"id": "accounting",
|
|
1967
|
+
"label": "Accounting",
|
|
1968
|
+
"icon": "bank",
|
|
1969
|
+
"description": "Your books: accounts, journals and balances."
|
|
1970
|
+
},
|
|
1971
|
+
"options": {
|
|
1972
|
+
"@happyvertical/smrt-ledgers:Account": {
|
|
1973
|
+
"fields": {
|
|
1974
|
+
"metadata": {
|
|
1975
|
+
"visibility": "hidden"
|
|
1976
|
+
},
|
|
1977
|
+
"parentId": {
|
|
1978
|
+
"visibility": "hidden"
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
},
|
|
1982
|
+
"@happyvertical/smrt-ledgers:Journal": {
|
|
1983
|
+
"fields": {
|
|
1984
|
+
"sourceModule": {
|
|
1985
|
+
"visibility": "hidden"
|
|
1986
|
+
},
|
|
1987
|
+
"sourceRef": {
|
|
1988
|
+
"visibility": "hidden"
|
|
1989
|
+
},
|
|
1990
|
+
"voidedAt": {
|
|
1991
|
+
"visibility": "hidden"
|
|
1992
|
+
},
|
|
1993
|
+
"voidReason": {
|
|
1994
|
+
"visibility": "hidden"
|
|
1995
|
+
},
|
|
1996
|
+
"metadata": {
|
|
1997
|
+
"visibility": "hidden"
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
},
|
|
2001
|
+
"@happyvertical/smrt-ledgers:JournalEntry": {
|
|
2002
|
+
"fields": {
|
|
2003
|
+
"exchangeRate": {
|
|
2004
|
+
"visibility": "hidden"
|
|
2005
|
+
},
|
|
2006
|
+
"metadata": {
|
|
2007
|
+
"visibility": "hidden"
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
2012
|
+
"help": {
|
|
2013
|
+
"markdown": "## Overview\n\nBookkeeping keeps your accounts. You list the accounts you use (your chart of\naccounts) and record each transaction as a journal whose entries debit and\ncredit those accounts.\n\n## Tasks\n\n### Set up your accounts\n\n1. Create a new account.\n2. Give it a **{field:number}** and a **{field:name}**.\n3. Choose its **{field:type}**: asset, liability, equity, revenue or expense.\n\n### Record a transaction\n\n1. Create a new journal and add a **{field:description}**.\n2. Add entries: pick the account on each and enter a **{field:debit}** or a\n **{field:credit}**. They must add up to the same total.\n3. Set the journal's **{field:status}** to posted when it is final. A posted\n journal is voided, not edited.\n",
|
|
2014
|
+
"fieldRefs": [
|
|
2015
|
+
"credit",
|
|
2016
|
+
"debit",
|
|
2017
|
+
"description",
|
|
2018
|
+
"name",
|
|
2019
|
+
"number",
|
|
2020
|
+
"status",
|
|
2021
|
+
"type"
|
|
2022
|
+
]
|
|
2023
|
+
},
|
|
2024
|
+
"demo": {
|
|
2025
|
+
"mode": "server",
|
|
2026
|
+
"reasons": [
|
|
2027
|
+
"Needs a server because its package does not build for a browser: core migrations (node:os, node:crypto); and its package depends on @happyvertical/smrt-tenancy, which do not build for a browser (#3624, #3626)."
|
|
2028
|
+
]
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
],
|
|
1855
2032
|
"smrtDependencies": [
|
|
1856
2033
|
"@happyvertical/smrt-core",
|
|
1857
2034
|
"@happyvertical/smrt-prompts",
|
|
1858
2035
|
"@happyvertical/smrt-tenancy"
|
|
1859
2036
|
],
|
|
2037
|
+
"browser": {
|
|
2038
|
+
"status": "server-only",
|
|
2039
|
+
"issues": [
|
|
2040
|
+
"#3624",
|
|
2041
|
+
"#3626"
|
|
2042
|
+
],
|
|
2043
|
+
"reason": "core migrations (node:os, node:crypto)",
|
|
2044
|
+
"via": [
|
|
2045
|
+
"@happyvertical/smrt-tenancy"
|
|
2046
|
+
]
|
|
2047
|
+
},
|
|
1860
2048
|
"stampsConstructors": true
|
|
1861
2049
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../src/models/Account.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../src/models/Account.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAS,gBAAgB,EAAQ,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,aAAU,CAAC;AAE7E,qBAUa,OAAQ,SAAQ,gBAAgB;IAC3C;;OAEG;IAEH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;OAEG;IAEH,MAAM,EAAE,MAAM,CAAM;IAEpB;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAM;IAElB;;OAEG;IAEH,WAAW,EAAE,MAAM,CAAM;IAEzB;;OAEG;IAEH,IAAI,EAAE,WAAW,CAAW;IAI5B;;OAEG;IAKH,MAAM,EAAE,OAAO,CAAQ;IAEvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;gBAE3B,OAAO,GAAE,cAAmB;IAYxC;;OAEG;IACH,UAAU,IAAI,OAAO;IAIrB;;;OAGG;IACH,aAAa,IAAI,OAAO;IAIxB;;;OAGG;IACH,cAAc,IAAI,OAAO;IAazB;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAMpC;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC;IAS5C;;OAEG;IACG,UAAU,CAAC,QAAQ,CAAC,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;IASlD;;OAEG;IACG,WAAW,CACf,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,MAAM,CAAC,GACjD,OAAO,CAAC,OAAO,CAAC;CAcpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Journal.d.ts","sourceRoot":"","sources":["../../src/models/Journal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"Journal.d.ts","sourceRoot":"","sources":["../../src/models/Journal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAS,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AAOnE,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,aAAa,EACnB,MAAM,aAAU,CAAC;AAElB,qBAMa,OAAQ,SAAQ,UAAU;IACrC;;OAEG;IAEH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;OAEG;IAEH,MAAM,EAAE,MAAM,CAAM;IAEpB;;OAEG;IAEH,IAAI,EAAE,IAAI,CAAc;IAExB;;OAEG;IAEH,WAAW,EAAE,MAAM,CAAM;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAM;IAE1B;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEhC;;OAEG;IAIH,MAAM,EAAE,aAAa,CAAW;IAEhC;;OAEG;IAEH,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAQ;IAE7B;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAQ;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;gBAE3B,OAAO,GAAE,cAAmB;IAgBxC;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,UAAU,IAAI,OAAO;IAIrB;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,mBAAgB,EAAE,YAAY,EAAE,CAAC;IASpE;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;IAKvC;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAKxC;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC;IAMpC;;OAEG;IACG,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBrD;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAwB3B;;OAEG;IACG,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWzC;;;;;;;;;;;;;;OAcG;IACG,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC;CAyCnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JournalEntry.d.ts","sourceRoot":"","sources":["../../src/models/JournalEntry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"JournalEntry.d.ts","sourceRoot":"","sources":["../../src/models/JournalEntry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAqB,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AAE/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAU,CAAC;AAGpD,qBAMa,YAAa,SAAQ,UAAU;IAC1C;;OAEG;IAEH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE/B;;OAEG;IAGH,SAAS,EAAE,MAAM,CAAM;IAEvB;;OAEG;IAKH,SAAS,EAAE,MAAM,CAAM;IAEvB;;OAEG;IAEH,KAAK,EAAE,MAAM,CAAO;IAEpB;;OAEG;IAEH,MAAM,EAAE,MAAM,CAAO;IAErB;;OAEG;IAEH,QAAQ,EAAE,MAAM,CAAS;IAEzB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAO;IAE3B;;OAEG;IAEH,IAAI,EAAE,MAAM,CAAM;IAElB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;gBAE3B,OAAO,GAAE,mBAAwB;IAa7C;;OAEG;cACa,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BnD;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,SAAS,IAAI,MAAM;IAInB;;OAEG;IACH,aAAa,IAAI,MAAM;IAIvB;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,cAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAO/D;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,OAAO,cAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAO/D;;OAEG;IACG,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC;CAQxC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Declared recipes for smrt-ledgers (#3590, #3604): user-facing units of
|
|
3
|
+
* functionality an app or agent can pick instead of the whole package.
|
|
4
|
+
* The scanner reads these statics into the `recipes` array of `manifest.json`
|
|
5
|
+
* and `smrt-knowledge.json`; nothing here runs at that point.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
import { SmrtRecipe } from '@happyvertical/smrt-core';
|
|
10
|
+
import { Account } from './models/Account.js';
|
|
11
|
+
import { Journal } from './models/Journal.js';
|
|
12
|
+
import { JournalEntry } from './models/JournalEntry.js';
|
|
13
|
+
/** Bookkeeping: Keep your books: a chart of accounts and double-entry journals. */
|
|
14
|
+
export declare class BookkeepingRecipe extends SmrtRecipe {
|
|
15
|
+
static id: string;
|
|
16
|
+
static help: string;
|
|
17
|
+
static label: string;
|
|
18
|
+
static summary: string;
|
|
19
|
+
static synonyms: string[];
|
|
20
|
+
static section: {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
static models: (typeof Journal | typeof JournalEntry | typeof Account)[];
|
|
27
|
+
static nav: ({
|
|
28
|
+
label: string;
|
|
29
|
+
model: typeof Account;
|
|
30
|
+
icon: string;
|
|
31
|
+
description: string;
|
|
32
|
+
} | {
|
|
33
|
+
label: string;
|
|
34
|
+
model: typeof Journal;
|
|
35
|
+
icon: string;
|
|
36
|
+
description: string;
|
|
37
|
+
})[];
|
|
38
|
+
static options: {
|
|
39
|
+
readonly Account: {
|
|
40
|
+
readonly fields: {
|
|
41
|
+
readonly metadata: {
|
|
42
|
+
readonly visibility: "hidden";
|
|
43
|
+
};
|
|
44
|
+
readonly parentId: {
|
|
45
|
+
readonly visibility: "hidden";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly Journal: {
|
|
50
|
+
readonly fields: {
|
|
51
|
+
readonly sourceModule: {
|
|
52
|
+
readonly visibility: "hidden";
|
|
53
|
+
};
|
|
54
|
+
readonly sourceRef: {
|
|
55
|
+
readonly visibility: "hidden";
|
|
56
|
+
};
|
|
57
|
+
readonly voidedAt: {
|
|
58
|
+
readonly visibility: "hidden";
|
|
59
|
+
};
|
|
60
|
+
readonly voidReason: {
|
|
61
|
+
readonly visibility: "hidden";
|
|
62
|
+
};
|
|
63
|
+
readonly metadata: {
|
|
64
|
+
readonly visibility: "hidden";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
readonly JournalEntry: {
|
|
69
|
+
readonly fields: {
|
|
70
|
+
readonly exchangeRate: {
|
|
71
|
+
readonly visibility: "hidden";
|
|
72
|
+
};
|
|
73
|
+
readonly metadata: {
|
|
74
|
+
readonly visibility: "hidden";
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=recipes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,mFAAmF;AACnF,qBAAa,iBAAkB,SAAQ,UAAU;IAC/C,MAAM,CAAC,EAAE,SAAyB;IAClC,MAAM,CAAC,IAAI,SAA6B;IACxC,MAAM,CAAC,KAAK,SAAiB;IAC7B,MAAM,CAAC,OAAO,SACsD;IACpE,MAAM,CAAC,QAAQ,WAMb;IACF,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,4DAAoC;IACjD,MAAM,CAAC,GAAG;;;;;;;;;;SAeR;IACF,MAAM,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsBH;CACZ"}
|