@contractspec/example.wealth-snapshot 0.0.0-canary-20260113170453

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 (48) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +14 -0
  3. package/dist/docs/index.d.ts +1 -0
  4. package/dist/docs/index.js +1 -0
  5. package/dist/docs/wealth-snapshot.docblock.d.ts +1 -0
  6. package/dist/docs/wealth-snapshot.docblock.js +104 -0
  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 -0
  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 -0
  15. package/dist/events.js.map +1 -0
  16. package/dist/example.d.ts +7 -0
  17. package/dist/example.d.ts.map +1 -0
  18. package/dist/example.js +57 -0
  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 -0
  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 -0
  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 -0
  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 -0
  39. package/dist/presentations.js.map +1 -0
  40. package/dist/wealth-snapshot.capability.d.ts +9 -0
  41. package/dist/wealth-snapshot.capability.d.ts.map +1 -0
  42. package/dist/wealth-snapshot.capability.js +46 -0
  43. package/dist/wealth-snapshot.capability.js.map +1 -0
  44. package/dist/wealth-snapshot.feature.d.ts +7 -0
  45. package/dist/wealth-snapshot.feature.d.ts.map +1 -0
  46. package/dist/wealth-snapshot.feature.js +141 -0
  47. package/dist/wealth-snapshot.feature.js.map +1 -0
  48. package/package.json +73 -0
@@ -0,0 +1,46 @@
1
+ import { StabilityEnum, defineCapability } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/wealth-snapshot.capability.ts
4
+ const AccountsCapability = defineCapability({ meta: {
5
+ key: "accounts",
6
+ version: "1.0.0",
7
+ kind: "data",
8
+ stability: StabilityEnum.Experimental,
9
+ description: "Financial accounts tracking and aggregation",
10
+ owners: ["platform.finance"],
11
+ tags: [
12
+ "accounts",
13
+ "finance",
14
+ "wealth"
15
+ ]
16
+ } });
17
+ const NetWorthCapability = defineCapability({ meta: {
18
+ key: "net-worth",
19
+ version: "1.0.0",
20
+ kind: "ui",
21
+ stability: StabilityEnum.Experimental,
22
+ description: "Net worth visualization and tracking",
23
+ owners: ["platform.finance"],
24
+ tags: [
25
+ "net-worth",
26
+ "wealth",
27
+ "dashboard"
28
+ ]
29
+ } });
30
+ const GoalsCapability = defineCapability({ meta: {
31
+ key: "goals",
32
+ version: "1.0.0",
33
+ kind: "ui",
34
+ stability: StabilityEnum.Experimental,
35
+ description: "Financial goal setting and progress tracking",
36
+ owners: ["platform.finance"],
37
+ tags: [
38
+ "goals",
39
+ "planning",
40
+ "wealth"
41
+ ]
42
+ } });
43
+
44
+ //#endregion
45
+ export { AccountsCapability, GoalsCapability, NetWorthCapability };
46
+ //# sourceMappingURL=wealth-snapshot.capability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wealth-snapshot.capability.js","names":[],"sources":["../src/wealth-snapshot.capability.ts"],"sourcesContent":["import { defineCapability, StabilityEnum } from '@contractspec/lib.contracts';\n\nexport const AccountsCapability = defineCapability({\n meta: {\n key: 'accounts',\n version: '1.0.0',\n kind: 'data',\n stability: StabilityEnum.Experimental,\n description: 'Financial accounts tracking and aggregation',\n owners: ['platform.finance'],\n tags: ['accounts', 'finance', 'wealth'],\n },\n});\n\nexport const NetWorthCapability = defineCapability({\n meta: {\n key: 'net-worth',\n version: '1.0.0',\n kind: 'ui',\n stability: StabilityEnum.Experimental,\n description: 'Net worth visualization and tracking',\n owners: ['platform.finance'],\n tags: ['net-worth', 'wealth', 'dashboard'],\n },\n});\n\nexport const GoalsCapability = defineCapability({\n meta: {\n key: 'goals',\n version: '1.0.0',\n kind: 'ui',\n stability: StabilityEnum.Experimental,\n description: 'Financial goal setting and progress tracking',\n owners: ['platform.finance'],\n tags: ['goals', 'planning', 'wealth'],\n },\n});\n"],"mappings":";;;AAEA,MAAa,qBAAqB,iBAAiB,EACjD,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,mBAAmB;CAC5B,MAAM;EAAC;EAAY;EAAW;EAAS;CACxC,EACF,CAAC;AAEF,MAAa,qBAAqB,iBAAiB,EACjD,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,mBAAmB;CAC5B,MAAM;EAAC;EAAa;EAAU;EAAY;CAC3C,EACF,CAAC;AAEF,MAAa,kBAAkB,iBAAiB,EAC9C,MAAM;CACJ,KAAK;CACL,SAAS;CACT,MAAM;CACN,WAAW,cAAc;CACzB,aAAa;CACb,QAAQ,CAAC,mBAAmB;CAC5B,MAAM;EAAC;EAAS;EAAY;EAAS;CACtC,EACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as _contractspec_lib_contracts8 from "@contractspec/lib.contracts";
2
+
3
+ //#region src/wealth-snapshot.feature.d.ts
4
+ declare const WealthSnapshotFeature: _contractspec_lib_contracts8.FeatureModuleSpec;
5
+ //#endregion
6
+ export { WealthSnapshotFeature };
7
+ //# sourceMappingURL=wealth-snapshot.feature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wealth-snapshot.feature.d.ts","names":[],"sources":["../src/wealth-snapshot.feature.ts"],"sourcesContent":[],"mappings":";;;cAEa,uBAmEX,4BAAA,CAnEgC"}
@@ -0,0 +1,141 @@
1
+ import { defineFeature } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/wealth-snapshot.feature.ts
4
+ const WealthSnapshotFeature = defineFeature({
5
+ meta: {
6
+ key: "wealth-snapshot",
7
+ version: "1.0.0",
8
+ title: "Wealth Snapshot",
9
+ description: "Mini-app for accounts, assets, liabilities, goals, and net worth.",
10
+ domain: "finance",
11
+ owners: ["@wealth-snapshot"],
12
+ tags: [
13
+ "finance",
14
+ "net-worth",
15
+ "goals"
16
+ ],
17
+ stability: "experimental"
18
+ },
19
+ operations: [
20
+ {
21
+ key: "wealth.account.create",
22
+ version: "1.0.0"
23
+ },
24
+ {
25
+ key: "wealth.asset.add",
26
+ version: "1.0.0"
27
+ },
28
+ {
29
+ key: "wealth.liability.add",
30
+ version: "1.0.0"
31
+ },
32
+ {
33
+ key: "wealth.goal.create",
34
+ version: "1.0.0"
35
+ },
36
+ {
37
+ key: "wealth.goal.update",
38
+ version: "1.0.0"
39
+ },
40
+ {
41
+ key: "wealth.networth.get",
42
+ version: "1.0.0"
43
+ }
44
+ ],
45
+ events: [
46
+ {
47
+ key: "wealth.asset.added",
48
+ version: "1.0.0"
49
+ },
50
+ {
51
+ key: "wealth.liability.added",
52
+ version: "1.0.0"
53
+ },
54
+ {
55
+ key: "wealth.goal.updated",
56
+ version: "1.0.0"
57
+ },
58
+ {
59
+ key: "wealth.networth.snapshot_created",
60
+ version: "1.0.0"
61
+ }
62
+ ],
63
+ presentations: [
64
+ {
65
+ key: "wealth-snapshot.dashboard",
66
+ version: "1.0.0"
67
+ },
68
+ {
69
+ key: "wealth-snapshot.accounts.list",
70
+ version: "1.0.0"
71
+ },
72
+ {
73
+ key: "wealth-snapshot.assets.list",
74
+ version: "1.0.0"
75
+ },
76
+ {
77
+ key: "wealth-snapshot.liabilities.list",
78
+ version: "1.0.0"
79
+ },
80
+ {
81
+ key: "wealth-snapshot.goals.list",
82
+ version: "1.0.0"
83
+ }
84
+ ],
85
+ presentationsTargets: [
86
+ {
87
+ key: "wealth-snapshot.dashboard",
88
+ version: "1.0.0",
89
+ targets: ["react", "markdown"]
90
+ },
91
+ {
92
+ key: "wealth-snapshot.assets.list",
93
+ version: "1.0.0",
94
+ targets: ["react", "markdown"]
95
+ },
96
+ {
97
+ key: "wealth-snapshot.liabilities.list",
98
+ version: "1.0.0",
99
+ targets: ["react", "markdown"]
100
+ },
101
+ {
102
+ key: "wealth-snapshot.goals.list",
103
+ version: "1.0.0",
104
+ targets: ["react", "markdown"]
105
+ }
106
+ ],
107
+ capabilities: {
108
+ requires: [
109
+ {
110
+ key: "identity",
111
+ version: "1.0.0"
112
+ },
113
+ {
114
+ key: "audit-trail",
115
+ version: "1.0.0"
116
+ },
117
+ {
118
+ key: "notifications",
119
+ version: "1.0.0"
120
+ }
121
+ ],
122
+ provides: [
123
+ {
124
+ key: "accounts",
125
+ version: "1.0.0"
126
+ },
127
+ {
128
+ key: "net-worth",
129
+ version: "1.0.0"
130
+ },
131
+ {
132
+ key: "goals",
133
+ version: "1.0.0"
134
+ }
135
+ ]
136
+ }
137
+ });
138
+
139
+ //#endregion
140
+ export { WealthSnapshotFeature };
141
+ //# sourceMappingURL=wealth-snapshot.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wealth-snapshot.feature.js","names":[],"sources":["../src/wealth-snapshot.feature.ts"],"sourcesContent":["import { defineFeature } from '@contractspec/lib.contracts';\n\nexport const WealthSnapshotFeature = defineFeature({\n meta: {\n key: 'wealth-snapshot',\n version: '1.0.0',\n title: 'Wealth Snapshot',\n description:\n 'Mini-app for accounts, assets, liabilities, goals, and net worth.',\n domain: 'finance',\n owners: ['@wealth-snapshot'],\n tags: ['finance', 'net-worth', 'goals'],\n stability: 'experimental',\n },\n operations: [\n { key: 'wealth.account.create', version: '1.0.0' },\n { key: 'wealth.asset.add', version: '1.0.0' },\n { key: 'wealth.liability.add', version: '1.0.0' },\n { key: 'wealth.goal.create', version: '1.0.0' },\n { key: 'wealth.goal.update', version: '1.0.0' },\n { key: 'wealth.networth.get', version: '1.0.0' },\n ],\n events: [\n { key: 'wealth.asset.added', version: '1.0.0' },\n { key: 'wealth.liability.added', version: '1.0.0' },\n { key: 'wealth.goal.updated', version: '1.0.0' },\n { key: 'wealth.networth.snapshot_created', version: '1.0.0' },\n ],\n presentations: [\n { key: 'wealth-snapshot.dashboard', version: '1.0.0' },\n { key: 'wealth-snapshot.accounts.list', version: '1.0.0' },\n { key: 'wealth-snapshot.assets.list', version: '1.0.0' },\n { key: 'wealth-snapshot.liabilities.list', version: '1.0.0' },\n { key: 'wealth-snapshot.goals.list', version: '1.0.0' },\n ],\n presentationsTargets: [\n {\n key: 'wealth-snapshot.dashboard',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.assets.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.liabilities.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'wealth-snapshot.goals.list',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n ],\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n { key: 'notifications', version: '1.0.0' },\n ],\n provides: [\n { key: 'accounts', version: '1.0.0' },\n { key: 'net-worth', version: '1.0.0' },\n { key: 'goals', version: '1.0.0' },\n ],\n },\n});\n"],"mappings":";;;AAEA,MAAa,wBAAwB,cAAc;CACjD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,QAAQ;EACR,QAAQ,CAAC,mBAAmB;EAC5B,MAAM;GAAC;GAAW;GAAa;GAAQ;EACvC,WAAW;EACZ;CACD,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
+ "version": "0.0.0-canary-20260113170453",
4
+ "description": "Wealth Snapshot mini-app for accounts, assets, liabilities, and goals",
5
+ "types": "./dist/index.d.ts",
6
+ "type": "module",
7
+ "scripts": {
8
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
9
+ "publish:pkg:canary": "bun publish:pkg --tag canary",
10
+ "build": "bun build:types && bun build:bundle",
11
+ "build:bundle": "tsdown",
12
+ "build:types": "tsc --noEmit",
13
+ "dev": "bun build:bundle --watch",
14
+ "clean": "rimraf dist .turbo",
15
+ "lint": "bun lint:fix",
16
+ "lint:fix": "eslint src --fix",
17
+ "lint:check": "eslint src"
18
+ },
19
+ "dependencies": {
20
+ "@contractspec/lib.identity-rbac": "0.0.0-canary-20260113170453",
21
+ "@contractspec/lib.schema": "0.0.0-canary-20260113170453",
22
+ "@contractspec/lib.contracts": "0.0.0-canary-20260113170453",
23
+ "@contractspec/module.audit-trail": "0.0.0-canary-20260113170453",
24
+ "@contractspec/module.notifications": "0.0.0-canary-20260113170453"
25
+ },
26
+ "devDependencies": {
27
+ "@contractspec/tool.typescript": "0.0.0-canary-20260113170453",
28
+ "@contractspec/tool.tsdown": "0.0.0-canary-20260113170453",
29
+ "typescript": "^5.9.3"
30
+ },
31
+ "exports": {
32
+ ".": "./dist/index.js",
33
+ "./docs": "./dist/docs/index.js",
34
+ "./docs/wealth-snapshot.docblock": "./dist/docs/wealth-snapshot.docblock.js",
35
+ "./entities": "./dist/entities/index.js",
36
+ "./events": "./dist/events.js",
37
+ "./example": "./dist/example.js",
38
+ "./handlers": "./dist/handlers/index.js",
39
+ "./operations": "./dist/operations/index.js",
40
+ "./presentations": "./dist/presentations/index.js",
41
+ "./wealth-snapshot.capability": "./dist/wealth-snapshot.capability.js",
42
+ "./wealth-snapshot.feature": "./dist/wealth-snapshot.feature.js",
43
+ "./*": "./*"
44
+ },
45
+ "files": [
46
+ "dist",
47
+ "README.md"
48
+ ],
49
+ "publishConfig": {
50
+ "access": "public",
51
+ "exports": {
52
+ ".": "./dist/index.js",
53
+ "./contracts": "./dist/contracts/index.js",
54
+ "./docs": "./dist/docs/index.js",
55
+ "./docs/wealth-snapshot.docblock": "./dist/docs/wealth-snapshot.docblock.js",
56
+ "./entities": "./dist/entities/index.js",
57
+ "./events": "./dist/events.js",
58
+ "./example": "./dist/example.js",
59
+ "./handlers": "./dist/handlers/index.js",
60
+ "./presentations": "./dist/presentations/index.js",
61
+ "./wealth-snapshot.feature": "./dist/wealth-snapshot.feature.js",
62
+ "./*": "./*"
63
+ },
64
+ "registry": "https://registry.npmjs.org/"
65
+ },
66
+ "license": "MIT",
67
+ "repository": {
68
+ "type": "git",
69
+ "url": "https://github.com/lssm-tech/contractspec.git",
70
+ "directory": "packages/examples/wealth-snapshot"
71
+ },
72
+ "homepage": "https://contractspec.io"
73
+ }