@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
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
* references at `accounts`, and leaves messaging rows where they are.
|
|
11
11
|
*
|
|
12
12
|
* Operator sequence (maintenance window, PostgreSQL):
|
|
13
|
-
* 1. `smrt db:migrate` —
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* 2. `smrt db:migrate
|
|
17
|
-
*
|
|
13
|
+
* 1. `smrt db:migrate-ledger-accounts` — this module. It creates
|
|
14
|
+
* `ledger_accounts` from the manifest when it is missing, copies the
|
|
15
|
+
* rows and detaches the old foreign keys.
|
|
16
|
+
* 2. `smrt db:migrate` — adds the foreign keys onto `ledger_accounts`.
|
|
17
|
+
*
|
|
18
|
+
* The move comes first because `db:migrate` is all or nothing: while a
|
|
19
|
+
* foreign key still points at `accounts` it refuses to run at all, so it
|
|
20
|
+
* cannot be the step that creates the new table.
|
|
18
21
|
*/
|
|
19
22
|
import { type DatabaseInterface } from '@happyvertical/smrt-core/migrations';
|
|
20
23
|
export declare const LEDGER_ACCOUNTS_TABLE = "ledger_accounts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledger-accounts-table.d.ts","sourceRoot":"","sources":["../../src/migrations/ledger-accounts-table.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ledger-accounts-table.d.ts","sourceRoot":"","sources":["../../src/migrations/ledger-accounts-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,qCAAqC,CAAC;AAE7C,eAAO,MAAM,qBAAqB,oBAAoB,CAAC;AACvD,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAChD,eAAO,MAAM,0BAA0B,yDACiB,CAAC;AAezD,MAAM,WAAW,8BAA8B;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,WAAW,EAAE,OAAO,CAAC;IACrB,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,6BAA6B;IAC5C,GAAG,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,4DAA4D;IAC5D,mBAAmB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED,qBAAa,4BAA6B,SAAQ,KAAK;gBACzC,OAAO,EAAE,MAAM;CAI5B;AAwGD;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,oBAAoB,CAgBjE;AAED,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACpB,QAAQ,EAAE,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ledger.d.ts","sourceRoot":"","sources":["../../src/models/Ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAU,CAAC;AAE9C;;;;GAIG;AACH,qBAMa,MAAO,SAAQ,UAAU;IAEpC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAG/B,IAAI,SAAM;IAEV,mDAAmD;IAEnD,QAAQ,SAAS;IAMjB,WAAW,EAAE,UAAU,GAAG,eAAe,CAAc;gBAE3C,OAAO,GAAE,aAAkB;IASjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;cAIb,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Ledger.d.ts","sourceRoot":"","sources":["../../src/models/Ledger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAQ,MAAM,0BAA0B,CAAC;AAEnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAU,CAAC;AAE9C;;;;GAIG;AACH,qBAMa,MAAO,SAAQ,UAAU;IAEpC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAG/B,IAAI,SAAM;IAEV,mDAAmD;IAEnD,QAAQ,SAAS;IAMjB,WAAW,EAAE,UAAU,GAAG,eAAe,CAAc;gBAE3C,OAAO,GAAE,aAAkB;IASjC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;cAIb,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;CAsBpD"}
|
package/dist/smrt-knowledge.json
CHANGED
|
@@ -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.61.
|
|
6
|
+
"packageVersion": "0.61.5",
|
|
7
7
|
"sourceManifestPath": "dist/manifest.json",
|
|
8
8
|
"agentDocPath": "AGENTS.md",
|
|
9
9
|
"sourceHashes": {
|
|
10
|
-
"manifest": "
|
|
11
|
-
"packageJson": "
|
|
10
|
+
"manifest": "7927bdfdd1e5fc820c136a837709e43ab506922cc1d2dbf18a79cf813f537e0f",
|
|
11
|
+
"packageJson": "72ed0658c35244a0c33bcd3886f4deaf3af2d351f814693598ce7720e1a5269d",
|
|
12
12
|
"agents": "72fcafd8b7f7f224d37687f9fb48587909b5b332e88d4b6f6806fff1541985ca"
|
|
13
13
|
},
|
|
14
14
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-ledgers",
|
|
3
|
-
"version": "0.61.
|
|
3
|
+
"version": "0.61.5",
|
|
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.61.
|
|
42
|
-
"@happyvertical/smrt-prompts": "0.61.
|
|
43
|
-
"@happyvertical/smrt-tenancy": "0.61.
|
|
41
|
+
"@happyvertical/smrt-core": "0.61.5",
|
|
42
|
+
"@happyvertical/smrt-prompts": "0.61.5",
|
|
43
|
+
"@happyvertical/smrt-tenancy": "0.61.5"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@happyvertical/smrt-vitest": "0.61.
|
|
46
|
+
"@happyvertical/smrt-vitest": "0.61.5",
|
|
47
47
|
"@types/node": "24.13.6",
|
|
48
48
|
"typescript": "6.0.3",
|
|
49
49
|
"vite": "8.1.6",
|