@happyvertical/smrt-ledgers 0.55.7 → 0.55.9

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-ledgers",
5
- "packageVersion": "0.55.7",
5
+ "packageVersion": "0.55.9",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-ledgers:AccountCollection": {
8
8
  "name": "accountcollection",
@@ -931,22 +931,38 @@
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
961
  "default": "asset",
962
+ "description": "asset, liability, equity, revenue or expense.",
963
+ "_meta": {
964
+ "description": "asset, liability, equity, revenue or expense."
965
+ },
950
966
  "enum": [
951
967
  "asset",
952
968
  "liability",
@@ -958,7 +974,11 @@
958
974
  "active": {
959
975
  "type": "boolean",
960
976
  "required": false,
961
- "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
+ }
962
982
  },
963
983
  "metadata": {
964
984
  "type": "json",
@@ -1277,16 +1297,28 @@
1277
1297
  "number": {
1278
1298
  "type": "text",
1279
1299
  "required": false,
1280
- "default": ""
1300
+ "default": "",
1301
+ "description": "The journal's reference number.",
1302
+ "_meta": {
1303
+ "description": "The journal's reference number."
1304
+ }
1281
1305
  },
1282
1306
  "date": {
1283
1307
  "type": "datetime",
1284
- "required": false
1308
+ "required": false,
1309
+ "description": "The date of the transaction.",
1310
+ "_meta": {
1311
+ "description": "The date of the transaction."
1312
+ }
1285
1313
  },
1286
1314
  "description": {
1287
1315
  "type": "text",
1288
1316
  "required": false,
1289
- "default": ""
1317
+ "default": "",
1318
+ "description": "What the transaction was.",
1319
+ "_meta": {
1320
+ "description": "What the transaction was."
1321
+ }
1290
1322
  },
1291
1323
  "sourceModule": {
1292
1324
  "type": "text",
@@ -1301,6 +1333,10 @@
1301
1333
  "type": "text",
1302
1334
  "required": false,
1303
1335
  "default": "draft",
1336
+ "description": "draft until final, then posted, or voided.",
1337
+ "_meta": {
1338
+ "description": "draft until final, then posted, or voided."
1339
+ },
1304
1340
  "enum": [
1305
1341
  "draft",
1306
1342
  "posted",
@@ -1309,7 +1345,11 @@
1309
1345
  },
1310
1346
  "postedAt": {
1311
1347
  "type": "datetime",
1312
- "required": false
1348
+ "required": false,
1349
+ "description": "When it was posted.",
1350
+ "_meta": {
1351
+ "description": "When it was posted."
1352
+ }
1313
1353
  },
1314
1354
  "voidedAt": {
1315
1355
  "type": "datetime",
@@ -1608,27 +1648,47 @@
1608
1648
  "journalId": {
1609
1649
  "type": "foreignKey",
1610
1650
  "required": false,
1611
- "related": "Journal"
1651
+ "related": "Journal",
1652
+ "description": "The journal this entry belongs to.",
1653
+ "_meta": {
1654
+ "description": "The journal this entry belongs to."
1655
+ }
1612
1656
  },
1613
1657
  "accountId": {
1614
1658
  "type": "foreignKey",
1615
1659
  "required": false,
1616
- "related": "Account"
1660
+ "related": "Account",
1661
+ "description": "The account this entry changes.",
1662
+ "_meta": {
1663
+ "description": "The account this entry changes."
1664
+ }
1617
1665
  },
1618
1666
  "debit": {
1619
1667
  "type": "decimal",
1620
1668
  "required": false,
1621
- "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
+ }
1622
1674
  },
1623
1675
  "credit": {
1624
1676
  "type": "decimal",
1625
1677
  "required": false,
1626
- "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
+ }
1627
1683
  },
1628
1684
  "currency": {
1629
1685
  "type": "text",
1630
1686
  "required": false,
1631
- "default": "USD"
1687
+ "default": "USD",
1688
+ "description": "The currency of the amounts.",
1689
+ "_meta": {
1690
+ "description": "The currency of the amounts."
1691
+ }
1632
1692
  },
1633
1693
  "exchangeRate": {
1634
1694
  "type": "decimal",
@@ -1638,7 +1698,11 @@
1638
1698
  "memo": {
1639
1699
  "type": "text",
1640
1700
  "required": false,
1641
- "default": ""
1701
+ "default": "",
1702
+ "description": "A note on this entry.",
1703
+ "_meta": {
1704
+ "description": "A note on this entry."
1705
+ }
1642
1706
  },
1643
1707
  "metadata": {
1644
1708
  "type": "json",
@@ -1865,10 +1929,121 @@
1865
1929
  }
1866
1930
  },
1867
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
+ ],
1868
2032
  "smrtDependencies": [
1869
2033
  "@happyvertical/smrt-core",
1870
2034
  "@happyvertical/smrt-prompts",
1871
2035
  "@happyvertical/smrt-tenancy"
1872
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
+ },
1873
2048
  "stampsConstructors": true
1874
2049
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../src/models/Account.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,gBAAgB,EAAQ,MAAM,0BAA0B,CAAC;AAElE,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;IACH,MAAM,EAAE,MAAM,CAAM;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAM;IAElB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAM;IAEzB;;OAEG;IACH,IAAI,EAAE,WAAW,CAAW;IAI5B;;OAEG;IACH,MAAM,EAAE,OAAO,CAAQ;IAEvB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAM;gBAE3B,OAAO,G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E/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"}