@happyvertical/smrt-ledgers 0.57.45 → 0.57.47

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.57.45",
5
+ "packageVersion": "0.57.47",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-ledgers:AccountCollection": {
8
8
  "name": "accountcollection",
@@ -185,6 +185,11 @@
185
185
  "extendsTypeArg": "Account",
186
186
  "exportName": "AccountCollection",
187
187
  "collectionExportName": "AccountCollectionCollection",
188
+ "collectionOf": "@happyvertical/smrt-ledgers:Account",
189
+ "inheritedExposure": [
190
+ "api",
191
+ "mcp"
192
+ ],
188
193
  "schema": {
189
194
  "tableName": "ledger_accounts",
190
195
  "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 \"ledger_id\" UUID,\n \"active\" BOOLEAN DEFAULT TRUE,\n \"metadata\" JSON DEFAULT '{}'\n);",
@@ -535,6 +540,11 @@
535
540
  "extendsTypeArg": "JournalEntry",
536
541
  "exportName": "JournalEntryCollection",
537
542
  "collectionExportName": "JournalEntryCollectionCollection",
543
+ "collectionOf": "@happyvertical/smrt-ledgers:JournalEntry",
544
+ "inheritedExposure": [
545
+ "api",
546
+ "mcp"
547
+ ],
538
548
  "schema": {
539
549
  "tableName": "journal_entries",
540
550
  "ddl": "CREATE TABLE IF NOT EXISTS \"journal_entries\" (\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 \"tenant_id\" UUID,\n \"journal_id\" UUID,\n \"account_id\" UUID,\n \"counterparty_kind\" TEXT,\n \"counterparty_id\" TEXT,\n \"due_date\" TIMESTAMP,\n \"settles_source_ref\" TEXT,\n \"debit\" REAL DEFAULT 0,\n \"credit\" REAL DEFAULT 0,\n \"currency\" TEXT DEFAULT 'USD',\n \"exchange_rate\" REAL DEFAULT 1,\n \"memo\" TEXT DEFAULT '',\n \"metadata\" JSON DEFAULT '{}'\n);",
@@ -909,6 +919,11 @@
909
919
  "extendsTypeArg": "Journal",
910
920
  "exportName": "JournalCollection",
911
921
  "collectionExportName": "JournalCollectionCollection",
922
+ "collectionOf": "@happyvertical/smrt-ledgers:Journal",
923
+ "inheritedExposure": [
924
+ "api",
925
+ "mcp"
926
+ ],
912
927
  "schema": {
913
928
  "tableName": "journals",
914
929
  "ddl": "CREATE TABLE IF NOT EXISTS \"journals\" (\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 \"tenant_id\" UUID,\n \"number\" TEXT DEFAULT '',\n \"date\" TIMESTAMP,\n \"description\" TEXT DEFAULT '',\n \"source_module\" TEXT DEFAULT '',\n \"source_ref\" TEXT,\n \"ledger_id\" UUID,\n \"idempotency_key\" TEXT,\n \"request_digest\" TEXT,\n \"status\" TEXT DEFAULT 'draft',\n \"posted_at\" TIMESTAMP,\n \"voided_at\" TIMESTAMP,\n \"void_reason\" TEXT,\n \"metadata\" JSON DEFAULT '{}'\n);",
@@ -1090,6 +1105,11 @@
1090
1105
  "extendsTypeArg": "Ledger",
1091
1106
  "exportName": "LedgerCollection",
1092
1107
  "collectionExportName": "LedgerCollectionCollection",
1108
+ "collectionOf": "@happyvertical/smrt-ledgers:Ledger",
1109
+ "inheritedExposure": [
1110
+ "api",
1111
+ "mcp"
1112
+ ],
1093
1113
  "schema": {
1094
1114
  "tableName": "ledgers",
1095
1115
  "ddl": "CREATE TABLE IF NOT EXISTS \"ledgers\" (\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 \"tenant_id\" UUID,\n \"name\" TEXT,\n \"currency\" TEXT,\n \"balance_mode\" TEXT DEFAULT 'tolerant'\n);",
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-ledgers",
6
- "packageVersion": "0.57.45",
6
+ "packageVersion": "0.57.47",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "d22919fbcde01a93a57c52e4205ff7e795a349852ca3eecef167e524ec3a9f53",
11
- "packageJson": "fecc3b98db01c5831016c6ca951f62ce3805355c3404a591248cbb81b2d053ea",
10
+ "manifest": "50bd8d04f3c3ece37a076d3106ab4f1a3287d98fadcaf4de4fbd0195e5c510bf",
11
+ "packageJson": "9413e502d57e0b5bec81b13134ea50b135e45f4e82a9899d30783aff43f21a1c",
12
12
  "agents": "f981081420e5141313cd5d31b9ac9258b121484cfef783cf03e29b0f229e44eb"
13
13
  },
14
14
  "exports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-ledgers",
3
- "version": "0.57.45",
3
+ "version": "0.57.47",
4
4
  "description": "Double-entry accounting ledger for the SMRT framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,12 +38,12 @@
38
38
  "access": "public"
39
39
  },
40
40
  "dependencies": {
41
- "@happyvertical/smrt-core": "0.57.45",
42
- "@happyvertical/smrt-prompts": "0.57.45",
43
- "@happyvertical/smrt-tenancy": "0.57.45"
41
+ "@happyvertical/smrt-core": "0.57.47",
42
+ "@happyvertical/smrt-prompts": "0.57.47",
43
+ "@happyvertical/smrt-tenancy": "0.57.47"
44
44
  },
45
45
  "devDependencies": {
46
- "@happyvertical/smrt-vitest": "0.57.45",
46
+ "@happyvertical/smrt-vitest": "0.57.47",
47
47
  "@types/node": "24.13.6",
48
48
  "typescript": "6.0.3",
49
49
  "vite": "8.1.6",