@lssm/example.wealth-snapshot 1.41.1 → 1.42.2

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.
Files changed (45) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +3 -0
  3. package/dist/docs/index.d.ts +1 -0
  4. package/dist/docs/index.js +1 -1
  5. package/dist/docs/wealth-snapshot.docblock.d.ts +1 -0
  6. package/dist/docs/wealth-snapshot.docblock.js +60 -5
  7. package/dist/docs/wealth-snapshot.docblock.js.map +1 -0
  8. package/dist/entities/index.d.ts +132 -0
  9. package/dist/entities/index.d.ts.map +1 -0
  10. package/dist/entities/index.js +230 -1
  11. package/dist/entities/index.js.map +1 -0
  12. package/dist/events.d.ts +225 -0
  13. package/dist/events.d.ts.map +1 -0
  14. package/dist/events.js +181 -1
  15. package/dist/events.js.map +1 -0
  16. package/dist/example.d.ts +40 -0
  17. package/dist/example.d.ts.map +1 -0
  18. package/dist/example.js +50 -1
  19. package/dist/example.js.map +1 -0
  20. package/dist/handlers/index.d.ts +8 -0
  21. package/dist/handlers/index.d.ts.map +1 -0
  22. package/dist/handlers/index.js +9 -1
  23. package/dist/handlers/index.js.map +1 -0
  24. package/dist/index.d.ts +18 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +27 -1
  27. package/dist/index.js.map +1 -0
  28. package/dist/operations/index.d.ts +410 -0
  29. package/dist/operations/index.d.ts.map +1 -0
  30. package/dist/operations/index.js +427 -0
  31. package/dist/operations/index.js.map +1 -0
  32. package/dist/presentations/index.d.ts +5 -0
  33. package/dist/presentations/index.d.ts.map +1 -0
  34. package/dist/presentations/index.js +12 -1
  35. package/dist/presentations/index.js.map +1 -0
  36. package/dist/presentations.d.ts +11 -0
  37. package/dist/presentations.d.ts.map +1 -0
  38. package/dist/presentations.js +132 -1
  39. package/dist/presentations.js.map +1 -0
  40. package/dist/wealth-snapshot.feature.d.ts +7 -0
  41. package/dist/wealth-snapshot.feature.d.ts.map +1 -0
  42. package/dist/wealth-snapshot.feature.js +139 -1
  43. package/dist/wealth-snapshot.feature.js.map +1 -0
  44. package/package.json +28 -21
  45. package/dist/contracts/index.js +0 -1
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # @lssm/example.wealth-snapshot
2
2
 
3
+ Website: https://contractspec.lssm.tech/
4
+
5
+
3
6
  Wealth Snapshot mini-app for accounts, assets, liabilities, and goals.
4
7
 
5
8
  Highlights:
@@ -0,0 +1 @@
1
+ export { };
@@ -1 +1 @@
1
- import"./wealth-snapshot.docblock.js";
1
+ import "./wealth-snapshot.docblock.js";
@@ -0,0 +1 @@
1
+ export { };
@@ -1,4 +1,20 @@
1
- import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.examples.wealth-snapshot`,title:`Wealth Snapshot`,summary:`Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.`,kind:`reference`,visibility:`public`,route:`/docs/examples/wealth-snapshot`,tags:[`finance`,`net-worth`,`goals`],body:`## Features
1
+ import { registerDocBlocks } from "@lssm/lib.contracts/docs";
2
+
3
+ //#region src/docs/wealth-snapshot.docblock.ts
4
+ registerDocBlocks([
5
+ {
6
+ id: "docs.examples.wealth-snapshot",
7
+ title: "Wealth Snapshot",
8
+ summary: "Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.",
9
+ kind: "reference",
10
+ visibility: "public",
11
+ route: "/docs/examples/wealth-snapshot",
12
+ tags: [
13
+ "finance",
14
+ "net-worth",
15
+ "goals"
16
+ ],
17
+ body: `## Features
2
18
 
3
19
  - Accounts with balances/currencies.
4
20
  - Assets & liabilities categorized for net worth.
@@ -12,7 +28,17 @@ import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.exampl
12
28
 
13
29
  ## Presentations
14
30
  - Dashboard, accounts list, assets list, liabilities list, goals list (React + Markdown targets).
15
- `},{id:`docs.examples.wealth-snapshot.goal`,title:`Wealth Snapshot — Goal`,summary:`Why this personal/household finance template exists.`,kind:`goal`,visibility:`public`,route:`/docs/examples/wealth-snapshot/goal`,tags:[`finance`,`goal`],body:`## Why it matters
31
+ `
32
+ },
33
+ {
34
+ id: "docs.examples.wealth-snapshot.goal",
35
+ title: "Wealth Snapshot — Goal",
36
+ summary: "Why this personal/household finance template exists.",
37
+ kind: "goal",
38
+ visibility: "public",
39
+ route: "/docs/examples/wealth-snapshot/goal",
40
+ tags: ["finance", "goal"],
41
+ body: `## Why it matters
16
42
  - Provides a regenerable net-worth and goals view without bespoke finance code.
17
43
  - Keeps accounts/assets/liabilities/goals consistent across surfaces with PII care.
18
44
 
@@ -22,7 +48,17 @@ import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.exampl
22
48
 
23
49
  ## Success criteria
24
50
  - Spec changes to assets/liabilities/goals regenerate UI/API/events cleanly.
25
- - PII and sensitive values are marked and redacted where needed.`},{id:`docs.examples.wealth-snapshot.usage`,title:`Wealth Snapshot — Usage`,summary:`How to seed, extend, and regenerate wealth tracking safely.`,kind:`usage`,visibility:`public`,route:`/docs/examples/wealth-snapshot/usage`,tags:[`finance`,`usage`],body:`## Setup
51
+ - PII and sensitive values are marked and redacted where needed.`
52
+ },
53
+ {
54
+ id: "docs.examples.wealth-snapshot.usage",
55
+ title: "Wealth Snapshot — Usage",
56
+ summary: "How to seed, extend, and regenerate wealth tracking safely.",
57
+ kind: "usage",
58
+ visibility: "public",
59
+ route: "/docs/examples/wealth-snapshot/usage",
60
+ tags: ["finance", "usage"],
61
+ body: `## Setup
26
62
  1) Seed (if provided) or add accounts/assets/liabilities/goals via UI.
27
63
  2) Configure Notifications for goal reminders/threshold alerts; Audit for changes.
28
64
 
@@ -34,7 +70,21 @@ import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.exampl
34
70
  ## Guardrails
35
71
  - Emit events for asset/liability/goal changes; log in Audit Trail.
36
72
  - Redact sensitive identifiers in presentations.
37
- - Keep calculations (net worth) transparent and driven by spec fields.`},{id:`docs.examples.wealth-snapshot.constraints`,title:`Wealth Snapshot — Constraints & Safety`,summary:`Internal guardrails for finance data, PII, and regeneration semantics.`,kind:`reference`,visibility:`internal`,route:`/docs/examples/wealth-snapshot/constraints`,tags:[`finance`,`constraints`,`internal`],body:`## Constraints
73
+ - Keep calculations (net worth) transparent and driven by spec fields.`
74
+ },
75
+ {
76
+ id: "docs.examples.wealth-snapshot.constraints",
77
+ title: "Wealth Snapshot — Constraints & Safety",
78
+ summary: "Internal guardrails for finance data, PII, and regeneration semantics.",
79
+ kind: "reference",
80
+ visibility: "internal",
81
+ route: "/docs/examples/wealth-snapshot/constraints",
82
+ tags: [
83
+ "finance",
84
+ "constraints",
85
+ "internal"
86
+ ],
87
+ body: `## Constraints
38
88
  - Net worth and goal calculations must stay spec-driven; avoid hidden math.
39
89
  - Events to emit: asset.created/updated, liability.created/updated, goal.created/updated, snapshot.recorded.
40
90
  - Regeneration should not alter currency/unit semantics without explicit spec change.
@@ -46,4 +96,9 @@ import{registerDocBlocks as e}from"@lssm/lib.contracts/docs";e([{id:`docs.exampl
46
96
  ## Verification
47
97
  - Add fixtures for currency/unit changes and snapshot calculations.
48
98
  - Ensure Audit Trail covers all financial mutations; Notifications optional for goals/thresholds.
49
- - Use Feature Flags for new indicators/alert rules; default safe/off.`}]);
99
+ - Use Feature Flags for new indicators/alert rules; default safe/off.`
100
+ }
101
+ ]);
102
+
103
+ //#endregion
104
+ //# sourceMappingURL=wealth-snapshot.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wealth-snapshot.docblock.js","names":[],"sources":["../../src/docs/wealth-snapshot.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@lssm/lib.contracts/docs';\nimport { registerDocBlocks } from '@lssm/lib.contracts/docs';\n\nconst wealthSnapshotDocBlocks: DocBlock[] = [\n {\n id: 'docs.examples.wealth-snapshot',\n title: 'Wealth Snapshot',\n summary:\n 'Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/wealth-snapshot',\n tags: ['finance', 'net-worth', 'goals'],\n body: `## Features\n\n- Accounts with balances/currencies.\n- Assets & liabilities categorized for net worth.\n- Goals with target amounts/dates and status.\n- Net worth snapshots for charting; events emitted for analytics.\n\n## Modules reused\n- Identity/RBAC for scoping to household/org\n- Notifications for threshold crossings/goal reminders\n- Audit trail for financial changes\n\n## Presentations\n- Dashboard, accounts list, assets list, liabilities list, goals list (React + Markdown targets).\n`,\n },\n {\n id: 'docs.examples.wealth-snapshot.goal',\n title: 'Wealth Snapshot — Goal',\n summary: 'Why this personal/household finance template exists.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/wealth-snapshot/goal',\n tags: ['finance', 'goal'],\n body: `## Why it matters\n- Provides a regenerable net-worth and goals view without bespoke finance code.\n- Keeps accounts/assets/liabilities/goals consistent across surfaces with PII care.\n\n## Business/Product goal\n- Deliver clear net-worth visibility, goal tracking, and alerting for thresholds.\n- Support safe regeneration while keeping currency/units explicit.\n\n## Success criteria\n- Spec changes to assets/liabilities/goals regenerate UI/API/events cleanly.\n- PII and sensitive values are marked and redacted where needed.`,\n },\n {\n id: 'docs.examples.wealth-snapshot.usage',\n title: 'Wealth Snapshot — Usage',\n summary: 'How to seed, extend, and regenerate wealth tracking safely.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/wealth-snapshot/usage',\n tags: ['finance', 'usage'],\n body: `## Setup\n1) Seed (if provided) or add accounts/assets/liabilities/goals via UI.\n2) Configure Notifications for goal reminders/threshold alerts; Audit for changes.\n\n## Extend & regenerate\n1) Adjust schemas for asset classes, liability terms, goal metrics; keep currency/units explicit.\n2) Regenerate to update dashboards and events; mark PII paths (account numbers, holder names).\n3) Use Feature Flags to trial new indicators or alerting rules.\n\n## Guardrails\n- Emit events for asset/liability/goal changes; log in Audit Trail.\n- Redact sensitive identifiers in presentations.\n- Keep calculations (net worth) transparent and driven by spec fields.`,\n },\n {\n id: 'docs.examples.wealth-snapshot.constraints',\n title: 'Wealth Snapshot — Constraints & Safety',\n summary:\n 'Internal guardrails for finance data, PII, and regeneration semantics.',\n kind: 'reference',\n visibility: 'internal',\n route: '/docs/examples/wealth-snapshot/constraints',\n tags: ['finance', 'constraints', 'internal'],\n body: `## Constraints\n- Net worth and goal calculations must stay spec-driven; avoid hidden math.\n- Events to emit: asset.created/updated, liability.created/updated, goal.created/updated, snapshot.recorded.\n- Regeneration should not alter currency/unit semantics without explicit spec change.\n\n## PII & Sensitivity\n- Mark account identifiers, holder names, and addresses as PII; redact in presentations.\n- Avoid exposing raw balances in MCP/web without policy checks; prefer summaries.\n\n## Verification\n- Add fixtures for currency/unit changes and snapshot calculations.\n- Ensure Audit Trail covers all financial mutations; Notifications optional for goals/thresholds.\n- Use Feature Flags for new indicators/alert rules; default safe/off.`,\n },\n];\n\nregisterDocBlocks(wealthSnapshotDocBlocks);\n"],"mappings":";;;AAgGA,kBA7F4C;CAC1C;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAW;GAAa;GAAQ;EACvC,MAAM;;;;;;;;;;;;;;;EAeP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM,CAAC,WAAW,OAAO;EACzB,MAAM;;;;;;;;;;;EAWP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM,CAAC,WAAW,QAAQ;EAC1B,MAAM;;;;;;;;;;;;;EAaP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAW;GAAe;GAAW;EAC5C,MAAM;;;;;;;;;;;;;EAaP;CACF,CAEyC"}
@@ -0,0 +1,132 @@
1
+ import * as _lssm_lib_schema58 from "@lssm/lib.schema";
2
+ import { ModuleSchemaContribution } from "@lssm/lib.schema";
3
+
4
+ //#region src/entities/index.d.ts
5
+ declare const AccountTypeEnum: _lssm_lib_schema58.EntityEnumDef;
6
+ declare const AssetCategoryEnum: _lssm_lib_schema58.EntityEnumDef;
7
+ declare const LiabilityCategoryEnum: _lssm_lib_schema58.EntityEnumDef;
8
+ declare const GoalStatusEnum: _lssm_lib_schema58.EntityEnumDef;
9
+ declare const AccountEntity: _lssm_lib_schema58.EntitySpec<{
10
+ id: _lssm_lib_schema58.EntityScalarField;
11
+ name: _lssm_lib_schema58.EntityScalarField;
12
+ type: _lssm_lib_schema58.EntityEnumField;
13
+ currency: _lssm_lib_schema58.EntityScalarField;
14
+ balance: _lssm_lib_schema58.EntityScalarField;
15
+ institution: _lssm_lib_schema58.EntityScalarField;
16
+ orgId: _lssm_lib_schema58.EntityScalarField;
17
+ ownerId: _lssm_lib_schema58.EntityScalarField;
18
+ createdAt: _lssm_lib_schema58.EntityScalarField;
19
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
20
+ }>;
21
+ declare const AssetEntity: _lssm_lib_schema58.EntitySpec<{
22
+ id: _lssm_lib_schema58.EntityScalarField;
23
+ accountId: _lssm_lib_schema58.EntityScalarField;
24
+ name: _lssm_lib_schema58.EntityScalarField;
25
+ category: _lssm_lib_schema58.EntityEnumField;
26
+ value: _lssm_lib_schema58.EntityScalarField;
27
+ currency: _lssm_lib_schema58.EntityScalarField;
28
+ orgId: _lssm_lib_schema58.EntityScalarField;
29
+ metadata: _lssm_lib_schema58.EntityScalarField;
30
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
31
+ createdAt: _lssm_lib_schema58.EntityScalarField;
32
+ account: _lssm_lib_schema58.EntityRelationField;
33
+ }>;
34
+ declare const LiabilityEntity: _lssm_lib_schema58.EntitySpec<{
35
+ id: _lssm_lib_schema58.EntityScalarField;
36
+ accountId: _lssm_lib_schema58.EntityScalarField;
37
+ name: _lssm_lib_schema58.EntityScalarField;
38
+ category: _lssm_lib_schema58.EntityEnumField;
39
+ balance: _lssm_lib_schema58.EntityScalarField;
40
+ currency: _lssm_lib_schema58.EntityScalarField;
41
+ interestRate: _lssm_lib_schema58.EntityScalarField;
42
+ orgId: _lssm_lib_schema58.EntityScalarField;
43
+ metadata: _lssm_lib_schema58.EntityScalarField;
44
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
45
+ createdAt: _lssm_lib_schema58.EntityScalarField;
46
+ account: _lssm_lib_schema58.EntityRelationField;
47
+ }>;
48
+ declare const GoalEntity: _lssm_lib_schema58.EntitySpec<{
49
+ id: _lssm_lib_schema58.EntityScalarField;
50
+ name: _lssm_lib_schema58.EntityScalarField;
51
+ targetAmount: _lssm_lib_schema58.EntityScalarField;
52
+ currentAmount: _lssm_lib_schema58.EntityScalarField;
53
+ currency: _lssm_lib_schema58.EntityScalarField;
54
+ targetDate: _lssm_lib_schema58.EntityScalarField;
55
+ status: _lssm_lib_schema58.EntityEnumField;
56
+ orgId: _lssm_lib_schema58.EntityScalarField;
57
+ ownerId: _lssm_lib_schema58.EntityScalarField;
58
+ createdAt: _lssm_lib_schema58.EntityScalarField;
59
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
60
+ }>;
61
+ declare const NetWorthSnapshotEntity: _lssm_lib_schema58.EntitySpec<{
62
+ id: _lssm_lib_schema58.EntityScalarField;
63
+ asOf: _lssm_lib_schema58.EntityScalarField;
64
+ totalAssets: _lssm_lib_schema58.EntityScalarField;
65
+ totalLiabilities: _lssm_lib_schema58.EntityScalarField;
66
+ netWorth: _lssm_lib_schema58.EntityScalarField;
67
+ currency: _lssm_lib_schema58.EntityScalarField;
68
+ orgId: _lssm_lib_schema58.EntityScalarField;
69
+ createdAt: _lssm_lib_schema58.EntityScalarField;
70
+ }>;
71
+ declare const wealthSnapshotEntities: (_lssm_lib_schema58.EntitySpec<{
72
+ id: _lssm_lib_schema58.EntityScalarField;
73
+ name: _lssm_lib_schema58.EntityScalarField;
74
+ type: _lssm_lib_schema58.EntityEnumField;
75
+ currency: _lssm_lib_schema58.EntityScalarField;
76
+ balance: _lssm_lib_schema58.EntityScalarField;
77
+ institution: _lssm_lib_schema58.EntityScalarField;
78
+ orgId: _lssm_lib_schema58.EntityScalarField;
79
+ ownerId: _lssm_lib_schema58.EntityScalarField;
80
+ createdAt: _lssm_lib_schema58.EntityScalarField;
81
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
82
+ }> | _lssm_lib_schema58.EntitySpec<{
83
+ id: _lssm_lib_schema58.EntityScalarField;
84
+ accountId: _lssm_lib_schema58.EntityScalarField;
85
+ name: _lssm_lib_schema58.EntityScalarField;
86
+ category: _lssm_lib_schema58.EntityEnumField;
87
+ value: _lssm_lib_schema58.EntityScalarField;
88
+ currency: _lssm_lib_schema58.EntityScalarField;
89
+ orgId: _lssm_lib_schema58.EntityScalarField;
90
+ metadata: _lssm_lib_schema58.EntityScalarField;
91
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
92
+ createdAt: _lssm_lib_schema58.EntityScalarField;
93
+ account: _lssm_lib_schema58.EntityRelationField;
94
+ }> | _lssm_lib_schema58.EntitySpec<{
95
+ id: _lssm_lib_schema58.EntityScalarField;
96
+ accountId: _lssm_lib_schema58.EntityScalarField;
97
+ name: _lssm_lib_schema58.EntityScalarField;
98
+ category: _lssm_lib_schema58.EntityEnumField;
99
+ balance: _lssm_lib_schema58.EntityScalarField;
100
+ currency: _lssm_lib_schema58.EntityScalarField;
101
+ interestRate: _lssm_lib_schema58.EntityScalarField;
102
+ orgId: _lssm_lib_schema58.EntityScalarField;
103
+ metadata: _lssm_lib_schema58.EntityScalarField;
104
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
105
+ createdAt: _lssm_lib_schema58.EntityScalarField;
106
+ account: _lssm_lib_schema58.EntityRelationField;
107
+ }> | _lssm_lib_schema58.EntitySpec<{
108
+ id: _lssm_lib_schema58.EntityScalarField;
109
+ name: _lssm_lib_schema58.EntityScalarField;
110
+ targetAmount: _lssm_lib_schema58.EntityScalarField;
111
+ currentAmount: _lssm_lib_schema58.EntityScalarField;
112
+ currency: _lssm_lib_schema58.EntityScalarField;
113
+ targetDate: _lssm_lib_schema58.EntityScalarField;
114
+ status: _lssm_lib_schema58.EntityEnumField;
115
+ orgId: _lssm_lib_schema58.EntityScalarField;
116
+ ownerId: _lssm_lib_schema58.EntityScalarField;
117
+ createdAt: _lssm_lib_schema58.EntityScalarField;
118
+ updatedAt: _lssm_lib_schema58.EntityScalarField;
119
+ }> | _lssm_lib_schema58.EntitySpec<{
120
+ id: _lssm_lib_schema58.EntityScalarField;
121
+ asOf: _lssm_lib_schema58.EntityScalarField;
122
+ totalAssets: _lssm_lib_schema58.EntityScalarField;
123
+ totalLiabilities: _lssm_lib_schema58.EntityScalarField;
124
+ netWorth: _lssm_lib_schema58.EntityScalarField;
125
+ currency: _lssm_lib_schema58.EntityScalarField;
126
+ orgId: _lssm_lib_schema58.EntityScalarField;
127
+ createdAt: _lssm_lib_schema58.EntityScalarField;
128
+ }>)[];
129
+ declare const wealthSnapshotSchemaContribution: ModuleSchemaContribution;
130
+ //#endregion
131
+ export { AccountEntity, AccountTypeEnum, AssetCategoryEnum, AssetEntity, GoalEntity, GoalStatusEnum, LiabilityCategoryEnum, LiabilityEntity, NetWorthSnapshotEntity, wealthSnapshotEntities, wealthSnapshotSchemaContribution };
132
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/entities/index.ts"],"sourcesContent":[],"mappings":";;;;cAKa,iBAKX,kBAAA,CAL0B;cAOf,mBAKX,kBAAA,CAL4B;cAOjB,uBAKX,kBAAA,CALgC;AAdrB,cAqBA,cAhBX,EAqBA,kBAAA,CALyB,aAhBzB;AAEW,cAqBA,aAhBX,qBAgBwB,UAhBxB,CAAA;EAEW,EAAA,EAiCX,kBAAA,CAAA,iBA5BA;EAEW,IAAA,sCAAc;EAOd,IAAA,oCAmBX;EAAA,QAAA,sCAAA;;;;;;;;cAEW,gCAAW;MAyBtB,kBAAA,CAAA;iDA9CwB;EAAA,IAAA,sCAAA;EAqBb,QAAA,oCAyBX;EAAA,KAAA,sCAAA;;;;;;;;cAEW,oCAAe;MA+B1B,kBAAA,CAAA;;4CA1DsB;EAAA,QAAA,oCAAA;EA2BX,OAAA,sCA+BX;EAAA,QAAA,sCAAA;;;;;;;;cAEW,+BAAU;MAiCrB,kBAAA,CAAA;;;qDAlE0B;EAAA,QAAA,sCAAA;EAiCf,UAAA,sCAiCX;EAAA,MAAA,oCAAA;;;;;;cAEW,2CAAsB;MAgBjC,kBAAA,CAAA;;;;gDAnDqB;EAAA,QAAA,sCAAA;EAmCV,KAAA,sCAgBX;EAAA,SAAA,sCAAA;;cAEW,4CAAsB;MAMlC,kBAAA,CAAA;;;;;mDAxBkC;EAAA,KAAA,sCAAA;EAkBtB,OAAA,sCAMZ;EAAA,SAAA,sCAAA;;;MANkC,kBAAA,CAAA;;;;;;;gDAAA;EAAA,SAAA,sCAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQtB,kCAAkC"}
@@ -1 +1,230 @@
1
- import{defineEntity as e,defineEntityEnum as t,field as n,index as r}from"@lssm/lib.schema";const i=`lssm_wealth_snapshot`,a=t({name:`AccountType`,schema:i,values:[`CHECKING`,`SAVINGS`,`INVESTMENT`,`CREDIT_CARD`,`LOAN`],description:`Account categories for holdings and debts.`}),o=t({name:`AssetCategory`,schema:i,values:[`CASH`,`EQUITY`,`REAL_ESTATE`,`CRYPTO`,`OTHER`],description:`Asset categories.`}),s=t({name:`LiabilityCategory`,schema:i,values:[`CREDIT_CARD`,`LOAN`,`MORTGAGE`,`TAX`,`OTHER`],description:`Liability categories.`}),c=t({name:`GoalStatus`,schema:i,values:[`ACTIVE`,`ON_TRACK`,`AT_RISK`,`OFF_TRACK`,`COMPLETED`],description:`Goal health/status.`}),l=e({name:`Account`,description:`Financial account representing holdings or debts.`,schema:i,map:`account`,fields:{id:n.id({description:`Account ID`}),name:n.string({description:`Account name`}),type:n.enum(`AccountType`,{description:`Account type`}),currency:n.string({description:`Currency code`,default:`"USD"`}),balance:n.decimal({description:`Current balance`}),institution:n.string({description:`Institution`,isOptional:!0}),orgId:n.string({description:`Org/household id`}),ownerId:n.string({description:`Owner user id`,isOptional:!0}),createdAt:n.createdAt(),updatedAt:n.updatedAt()},enums:[a],indexes:[r.on([`orgId`]),r.on([`type`]),r.on([`ownerId`])]}),u=e({name:`Asset`,description:`Individual asset position.`,schema:i,map:`asset`,fields:{id:n.id({description:`Asset ID`}),accountId:n.foreignKey({description:`Holding account`,isOptional:!0}),name:n.string({description:`Asset name`}),category:n.enum(`AssetCategory`,{description:`Asset category`}),value:n.decimal({description:`Current value`}),currency:n.string({description:`Currency`,default:`"USD"`}),orgId:n.string({description:`Org/household id`}),metadata:n.json({description:`Metadata`,isOptional:!0}),updatedAt:n.updatedAt(),createdAt:n.createdAt(),account:n.belongsTo(`Account`,[`accountId`],[`id`],{onDelete:`SetNull`})},enums:[o],indexes:[r.on([`orgId`]),r.on([`category`])]}),d=e({name:`Liability`,description:`Debt or obligation.`,schema:i,map:`liability`,fields:{id:n.id({description:`Liability ID`}),accountId:n.foreignKey({description:`Liability account`,isOptional:!0}),name:n.string({description:`Liability name`}),category:n.enum(`LiabilityCategory`,{description:`Liability category`}),balance:n.decimal({description:`Outstanding balance`}),currency:n.string({description:`Currency`,default:`"USD"`}),interestRate:n.decimal({description:`Interest rate (e.g., 0.05 for 5%)`,isOptional:!0}),orgId:n.string({description:`Org/household id`}),metadata:n.json({description:`Metadata`,isOptional:!0}),updatedAt:n.updatedAt(),createdAt:n.createdAt(),account:n.belongsTo(`Account`,[`accountId`],[`id`],{onDelete:`SetNull`})},enums:[s],indexes:[r.on([`orgId`]),r.on([`category`])]}),f=e({name:`Goal`,description:`Financial goal with target amount/date.`,schema:i,map:`goal`,fields:{id:n.id({description:`Goal ID`}),name:n.string({description:`Goal name`}),targetAmount:n.decimal({description:`Target amount`}),currentAmount:n.decimal({description:`Current progress amount`,default:0}),currency:n.string({description:`Currency`,default:`"USD"`}),targetDate:n.dateTime({description:`Target completion date`,isOptional:!0}),status:n.enum(`GoalStatus`,{description:`Goal status`,default:`ACTIVE`}),orgId:n.string({description:`Org/household id`}),ownerId:n.string({description:`Owner user id`,isOptional:!0}),createdAt:n.createdAt(),updatedAt:n.updatedAt()},enums:[c],indexes:[r.on([`orgId`]),r.on([`status`]),r.on([`targetDate`])]}),p=e({name:`NetWorthSnapshot`,description:`Aggregated net worth snapshot for a date.`,schema:i,map:`networth_snapshot`,fields:{id:n.id({description:`Snapshot ID`}),asOf:n.dateTime({description:`Snapshot date`}),totalAssets:n.decimal({description:`Total assets`}),totalLiabilities:n.decimal({description:`Total liabilities`}),netWorth:n.decimal({description:`Net worth`}),currency:n.string({description:`Currency`,default:`"USD"`}),orgId:n.string({description:`Org/household id`}),createdAt:n.createdAt()},indexes:[r.unique([`orgId`,`asOf`],{name:`networth_unique`})]}),m=[l,u,d,f,p],h={moduleId:`@lssm/example.wealth-snapshot`,entities:m,enums:[a,o,s,c]};export{l as AccountEntity,a as AccountTypeEnum,o as AssetCategoryEnum,u as AssetEntity,f as GoalEntity,c as GoalStatusEnum,s as LiabilityCategoryEnum,d as LiabilityEntity,p as NetWorthSnapshotEntity,m as wealthSnapshotEntities,h as wealthSnapshotSchemaContribution};
1
+ import { defineEntity, defineEntityEnum, field, index } from "@lssm/lib.schema";
2
+
3
+ //#region src/entities/index.ts
4
+ const schema = "lssm_wealth_snapshot";
5
+ const AccountTypeEnum = defineEntityEnum({
6
+ name: "AccountType",
7
+ schema,
8
+ values: [
9
+ "CHECKING",
10
+ "SAVINGS",
11
+ "INVESTMENT",
12
+ "CREDIT_CARD",
13
+ "LOAN"
14
+ ],
15
+ description: "Account categories for holdings and debts."
16
+ });
17
+ const AssetCategoryEnum = defineEntityEnum({
18
+ name: "AssetCategory",
19
+ schema,
20
+ values: [
21
+ "CASH",
22
+ "EQUITY",
23
+ "REAL_ESTATE",
24
+ "CRYPTO",
25
+ "OTHER"
26
+ ],
27
+ description: "Asset categories."
28
+ });
29
+ const LiabilityCategoryEnum = defineEntityEnum({
30
+ name: "LiabilityCategory",
31
+ schema,
32
+ values: [
33
+ "CREDIT_CARD",
34
+ "LOAN",
35
+ "MORTGAGE",
36
+ "TAX",
37
+ "OTHER"
38
+ ],
39
+ description: "Liability categories."
40
+ });
41
+ const GoalStatusEnum = defineEntityEnum({
42
+ name: "GoalStatus",
43
+ schema,
44
+ values: [
45
+ "ACTIVE",
46
+ "ON_TRACK",
47
+ "AT_RISK",
48
+ "OFF_TRACK",
49
+ "COMPLETED"
50
+ ],
51
+ description: "Goal health/status."
52
+ });
53
+ const AccountEntity = defineEntity({
54
+ name: "Account",
55
+ description: "Financial account representing holdings or debts.",
56
+ schema,
57
+ map: "account",
58
+ fields: {
59
+ id: field.id({ description: "Account ID" }),
60
+ name: field.string({ description: "Account name" }),
61
+ type: field.enum("AccountType", { description: "Account type" }),
62
+ currency: field.string({
63
+ description: "Currency code",
64
+ default: "\"USD\""
65
+ }),
66
+ balance: field.decimal({ description: "Current balance" }),
67
+ institution: field.string({
68
+ description: "Institution",
69
+ isOptional: true
70
+ }),
71
+ orgId: field.string({ description: "Org/household id" }),
72
+ ownerId: field.string({
73
+ description: "Owner user id",
74
+ isOptional: true
75
+ }),
76
+ createdAt: field.createdAt(),
77
+ updatedAt: field.updatedAt()
78
+ },
79
+ enums: [AccountTypeEnum],
80
+ indexes: [
81
+ index.on(["orgId"]),
82
+ index.on(["type"]),
83
+ index.on(["ownerId"])
84
+ ]
85
+ });
86
+ const AssetEntity = defineEntity({
87
+ name: "Asset",
88
+ description: "Individual asset position.",
89
+ schema,
90
+ map: "asset",
91
+ fields: {
92
+ id: field.id({ description: "Asset ID" }),
93
+ accountId: field.foreignKey({
94
+ description: "Holding account",
95
+ isOptional: true
96
+ }),
97
+ name: field.string({ description: "Asset name" }),
98
+ category: field.enum("AssetCategory", { description: "Asset category" }),
99
+ value: field.decimal({ description: "Current value" }),
100
+ currency: field.string({
101
+ description: "Currency",
102
+ default: "\"USD\""
103
+ }),
104
+ orgId: field.string({ description: "Org/household id" }),
105
+ metadata: field.json({
106
+ description: "Metadata",
107
+ isOptional: true
108
+ }),
109
+ updatedAt: field.updatedAt(),
110
+ createdAt: field.createdAt(),
111
+ account: field.belongsTo("Account", ["accountId"], ["id"], { onDelete: "SetNull" })
112
+ },
113
+ enums: [AssetCategoryEnum],
114
+ indexes: [index.on(["orgId"]), index.on(["category"])]
115
+ });
116
+ const LiabilityEntity = defineEntity({
117
+ name: "Liability",
118
+ description: "Debt or obligation.",
119
+ schema,
120
+ map: "liability",
121
+ fields: {
122
+ id: field.id({ description: "Liability ID" }),
123
+ accountId: field.foreignKey({
124
+ description: "Liability account",
125
+ isOptional: true
126
+ }),
127
+ name: field.string({ description: "Liability name" }),
128
+ category: field.enum("LiabilityCategory", { description: "Liability category" }),
129
+ balance: field.decimal({ description: "Outstanding balance" }),
130
+ currency: field.string({
131
+ description: "Currency",
132
+ default: "\"USD\""
133
+ }),
134
+ interestRate: field.decimal({
135
+ description: "Interest rate (e.g., 0.05 for 5%)",
136
+ isOptional: true
137
+ }),
138
+ orgId: field.string({ description: "Org/household id" }),
139
+ metadata: field.json({
140
+ description: "Metadata",
141
+ isOptional: true
142
+ }),
143
+ updatedAt: field.updatedAt(),
144
+ createdAt: field.createdAt(),
145
+ account: field.belongsTo("Account", ["accountId"], ["id"], { onDelete: "SetNull" })
146
+ },
147
+ enums: [LiabilityCategoryEnum],
148
+ indexes: [index.on(["orgId"]), index.on(["category"])]
149
+ });
150
+ const GoalEntity = defineEntity({
151
+ name: "Goal",
152
+ description: "Financial goal with target amount/date.",
153
+ schema,
154
+ map: "goal",
155
+ fields: {
156
+ id: field.id({ description: "Goal ID" }),
157
+ name: field.string({ description: "Goal name" }),
158
+ targetAmount: field.decimal({ description: "Target amount" }),
159
+ currentAmount: field.decimal({
160
+ description: "Current progress amount",
161
+ default: 0
162
+ }),
163
+ currency: field.string({
164
+ description: "Currency",
165
+ default: "\"USD\""
166
+ }),
167
+ targetDate: field.dateTime({
168
+ description: "Target completion date",
169
+ isOptional: true
170
+ }),
171
+ status: field.enum("GoalStatus", {
172
+ description: "Goal status",
173
+ default: "ACTIVE"
174
+ }),
175
+ orgId: field.string({ description: "Org/household id" }),
176
+ ownerId: field.string({
177
+ description: "Owner user id",
178
+ isOptional: true
179
+ }),
180
+ createdAt: field.createdAt(),
181
+ updatedAt: field.updatedAt()
182
+ },
183
+ enums: [GoalStatusEnum],
184
+ indexes: [
185
+ index.on(["orgId"]),
186
+ index.on(["status"]),
187
+ index.on(["targetDate"])
188
+ ]
189
+ });
190
+ const NetWorthSnapshotEntity = defineEntity({
191
+ name: "NetWorthSnapshot",
192
+ description: "Aggregated net worth snapshot for a date.",
193
+ schema,
194
+ map: "networth_snapshot",
195
+ fields: {
196
+ id: field.id({ description: "Snapshot ID" }),
197
+ asOf: field.dateTime({ description: "Snapshot date" }),
198
+ totalAssets: field.decimal({ description: "Total assets" }),
199
+ totalLiabilities: field.decimal({ description: "Total liabilities" }),
200
+ netWorth: field.decimal({ description: "Net worth" }),
201
+ currency: field.string({
202
+ description: "Currency",
203
+ default: "\"USD\""
204
+ }),
205
+ orgId: field.string({ description: "Org/household id" }),
206
+ createdAt: field.createdAt()
207
+ },
208
+ indexes: [index.unique(["orgId", "asOf"], { name: "networth_unique" })]
209
+ });
210
+ const wealthSnapshotEntities = [
211
+ AccountEntity,
212
+ AssetEntity,
213
+ LiabilityEntity,
214
+ GoalEntity,
215
+ NetWorthSnapshotEntity
216
+ ];
217
+ const wealthSnapshotSchemaContribution = {
218
+ moduleId: "@lssm/example.wealth-snapshot",
219
+ entities: wealthSnapshotEntities,
220
+ enums: [
221
+ AccountTypeEnum,
222
+ AssetCategoryEnum,
223
+ LiabilityCategoryEnum,
224
+ GoalStatusEnum
225
+ ]
226
+ };
227
+
228
+ //#endregion
229
+ export { AccountEntity, AccountTypeEnum, AssetCategoryEnum, AssetEntity, GoalEntity, GoalStatusEnum, LiabilityCategoryEnum, LiabilityEntity, NetWorthSnapshotEntity, wealthSnapshotEntities, wealthSnapshotSchemaContribution };
230
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["wealthSnapshotSchemaContribution: ModuleSchemaContribution"],"sources":["../../src/entities/index.ts"],"sourcesContent":["import { defineEntity, defineEntityEnum, field, index } from '@lssm/lib.schema';\nimport type { ModuleSchemaContribution } from '@lssm/lib.schema';\n\nconst schema = 'lssm_wealth_snapshot';\n\nexport const AccountTypeEnum = defineEntityEnum({\n name: 'AccountType',\n schema,\n values: ['CHECKING', 'SAVINGS', 'INVESTMENT', 'CREDIT_CARD', 'LOAN'] as const,\n description: 'Account categories for holdings and debts.',\n});\n\nexport const AssetCategoryEnum = defineEntityEnum({\n name: 'AssetCategory',\n schema,\n values: ['CASH', 'EQUITY', 'REAL_ESTATE', 'CRYPTO', 'OTHER'] as const,\n description: 'Asset categories.',\n});\n\nexport const LiabilityCategoryEnum = defineEntityEnum({\n name: 'LiabilityCategory',\n schema,\n values: ['CREDIT_CARD', 'LOAN', 'MORTGAGE', 'TAX', 'OTHER'] as const,\n description: 'Liability categories.',\n});\n\nexport const GoalStatusEnum = defineEntityEnum({\n name: 'GoalStatus',\n schema,\n values: ['ACTIVE', 'ON_TRACK', 'AT_RISK', 'OFF_TRACK', 'COMPLETED'] as const,\n description: 'Goal health/status.',\n});\n\nexport const AccountEntity = defineEntity({\n name: 'Account',\n description: 'Financial account representing holdings or debts.',\n schema,\n map: 'account',\n fields: {\n id: field.id({ description: 'Account ID' }),\n name: field.string({ description: 'Account name' }),\n type: field.enum('AccountType', { description: 'Account type' }),\n currency: field.string({ description: 'Currency code', default: '\"USD\"' }),\n balance: field.decimal({ description: 'Current balance' }),\n institution: field.string({ description: 'Institution', isOptional: true }),\n orgId: field.string({ description: 'Org/household id' }),\n ownerId: field.string({ description: 'Owner user id', isOptional: true }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n },\n enums: [AccountTypeEnum],\n indexes: [index.on(['orgId']), index.on(['type']), index.on(['ownerId'])],\n});\n\nexport const AssetEntity = defineEntity({\n name: 'Asset',\n description: 'Individual asset position.',\n schema,\n map: 'asset',\n fields: {\n id: field.id({ description: 'Asset ID' }),\n accountId: field.foreignKey({\n description: 'Holding account',\n isOptional: true,\n }),\n name: field.string({ description: 'Asset name' }),\n category: field.enum('AssetCategory', { description: 'Asset category' }),\n value: field.decimal({ description: 'Current value' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n orgId: field.string({ description: 'Org/household id' }),\n metadata: field.json({ description: 'Metadata', isOptional: true }),\n updatedAt: field.updatedAt(),\n createdAt: field.createdAt(),\n account: field.belongsTo('Account', ['accountId'], ['id'], {\n onDelete: 'SetNull',\n }),\n },\n enums: [AssetCategoryEnum],\n indexes: [index.on(['orgId']), index.on(['category'])],\n});\n\nexport const LiabilityEntity = defineEntity({\n name: 'Liability',\n description: 'Debt or obligation.',\n schema,\n map: 'liability',\n fields: {\n id: field.id({ description: 'Liability ID' }),\n accountId: field.foreignKey({\n description: 'Liability account',\n isOptional: true,\n }),\n name: field.string({ description: 'Liability name' }),\n category: field.enum('LiabilityCategory', {\n description: 'Liability category',\n }),\n balance: field.decimal({ description: 'Outstanding balance' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n interestRate: field.decimal({\n description: 'Interest rate (e.g., 0.05 for 5%)',\n isOptional: true,\n }),\n orgId: field.string({ description: 'Org/household id' }),\n metadata: field.json({ description: 'Metadata', isOptional: true }),\n updatedAt: field.updatedAt(),\n createdAt: field.createdAt(),\n account: field.belongsTo('Account', ['accountId'], ['id'], {\n onDelete: 'SetNull',\n }),\n },\n enums: [LiabilityCategoryEnum],\n indexes: [index.on(['orgId']), index.on(['category'])],\n});\n\nexport const GoalEntity = defineEntity({\n name: 'Goal',\n description: 'Financial goal with target amount/date.',\n schema,\n map: 'goal',\n fields: {\n id: field.id({ description: 'Goal ID' }),\n name: field.string({ description: 'Goal name' }),\n targetAmount: field.decimal({ description: 'Target amount' }),\n currentAmount: field.decimal({\n description: 'Current progress amount',\n default: 0,\n }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n targetDate: field.dateTime({\n description: 'Target completion date',\n isOptional: true,\n }),\n status: field.enum('GoalStatus', {\n description: 'Goal status',\n default: 'ACTIVE',\n }),\n orgId: field.string({ description: 'Org/household id' }),\n ownerId: field.string({ description: 'Owner user id', isOptional: true }),\n createdAt: field.createdAt(),\n updatedAt: field.updatedAt(),\n },\n enums: [GoalStatusEnum],\n indexes: [\n index.on(['orgId']),\n index.on(['status']),\n index.on(['targetDate']),\n ],\n});\n\nexport const NetWorthSnapshotEntity = defineEntity({\n name: 'NetWorthSnapshot',\n description: 'Aggregated net worth snapshot for a date.',\n schema,\n map: 'networth_snapshot',\n fields: {\n id: field.id({ description: 'Snapshot ID' }),\n asOf: field.dateTime({ description: 'Snapshot date' }),\n totalAssets: field.decimal({ description: 'Total assets' }),\n totalLiabilities: field.decimal({ description: 'Total liabilities' }),\n netWorth: field.decimal({ description: 'Net worth' }),\n currency: field.string({ description: 'Currency', default: '\"USD\"' }),\n orgId: field.string({ description: 'Org/household id' }),\n createdAt: field.createdAt(),\n },\n indexes: [index.unique(['orgId', 'asOf'], { name: 'networth_unique' })],\n});\n\nexport const wealthSnapshotEntities = [\n AccountEntity,\n AssetEntity,\n LiabilityEntity,\n GoalEntity,\n NetWorthSnapshotEntity,\n];\n\nexport const wealthSnapshotSchemaContribution: ModuleSchemaContribution = {\n moduleId: '@lssm/example.wealth-snapshot',\n // schema,\n entities: wealthSnapshotEntities,\n enums: [\n AccountTypeEnum,\n AssetCategoryEnum,\n LiabilityCategoryEnum,\n GoalStatusEnum,\n ],\n};\n"],"mappings":";;;AAGA,MAAM,SAAS;AAEf,MAAa,kBAAkB,iBAAiB;CAC9C,MAAM;CACN;CACA,QAAQ;EAAC;EAAY;EAAW;EAAc;EAAe;EAAO;CACpE,aAAa;CACd,CAAC;AAEF,MAAa,oBAAoB,iBAAiB;CAChD,MAAM;CACN;CACA,QAAQ;EAAC;EAAQ;EAAU;EAAe;EAAU;EAAQ;CAC5D,aAAa;CACd,CAAC;AAEF,MAAa,wBAAwB,iBAAiB;CACpD,MAAM;CACN;CACA,QAAQ;EAAC;EAAe;EAAQ;EAAY;EAAO;EAAQ;CAC3D,aAAa;CACd,CAAC;AAEF,MAAa,iBAAiB,iBAAiB;CAC7C,MAAM;CACN;CACA,QAAQ;EAAC;EAAU;EAAY;EAAW;EAAa;EAAY;CACnE,aAAa;CACd,CAAC;AAEF,MAAa,gBAAgB,aAAa;CACxC,MAAM;CACN,aAAa;CACb;CACA,KAAK;CACL,QAAQ;EACN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