@contractspec/example.wealth-snapshot 1.44.0

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 (44) 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 +40 -0
  17. package/dist/example.d.ts.map +1 -0
  18. package/dist/example.js +50 -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.feature.d.ts +7 -0
  41. package/dist/wealth-snapshot.feature.d.ts.map +1 -0
  42. package/dist/wealth-snapshot.feature.js +139 -0
  43. package/dist/wealth-snapshot.feature.js.map +1 -0
  44. package/package.json +76 -0
@@ -0,0 +1,225 @@
1
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
3
+
4
+ //#region src/events.d.ts
5
+ declare const AssetAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
6
+ assetId: {
7
+ type: _contractspec_lib_schema0.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ category: {
11
+ type: _contractspec_lib_schema0.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ value: {
15
+ type: _contractspec_lib_schema0.FieldType<number, number>;
16
+ isOptional: false;
17
+ };
18
+ currency: {
19
+ type: _contractspec_lib_schema0.FieldType<string, string>;
20
+ isOptional: false;
21
+ };
22
+ orgId: {
23
+ type: _contractspec_lib_schema0.FieldType<string, string>;
24
+ isOptional: false;
25
+ };
26
+ timestamp: {
27
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
28
+ isOptional: false;
29
+ };
30
+ }>>;
31
+ declare const LiabilityAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
32
+ liabilityId: {
33
+ type: _contractspec_lib_schema0.FieldType<string, string>;
34
+ isOptional: false;
35
+ };
36
+ category: {
37
+ type: _contractspec_lib_schema0.FieldType<string, string>;
38
+ isOptional: false;
39
+ };
40
+ balance: {
41
+ type: _contractspec_lib_schema0.FieldType<number, number>;
42
+ isOptional: false;
43
+ };
44
+ currency: {
45
+ type: _contractspec_lib_schema0.FieldType<string, string>;
46
+ isOptional: false;
47
+ };
48
+ orgId: {
49
+ type: _contractspec_lib_schema0.FieldType<string, string>;
50
+ isOptional: false;
51
+ };
52
+ timestamp: {
53
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
54
+ isOptional: false;
55
+ };
56
+ }>>;
57
+ declare const GoalUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
58
+ goalId: {
59
+ type: _contractspec_lib_schema0.FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ status: {
63
+ type: _contractspec_lib_schema0.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ currentAmount: {
67
+ type: _contractspec_lib_schema0.FieldType<number, number>;
68
+ isOptional: false;
69
+ };
70
+ targetAmount: {
71
+ type: _contractspec_lib_schema0.FieldType<number, number>;
72
+ isOptional: false;
73
+ };
74
+ currency: {
75
+ type: _contractspec_lib_schema0.FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ orgId: {
79
+ type: _contractspec_lib_schema0.FieldType<string, string>;
80
+ isOptional: false;
81
+ };
82
+ timestamp: {
83
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
84
+ isOptional: false;
85
+ };
86
+ }>>;
87
+ declare const NetWorthSnapshotCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
88
+ netWorth: {
89
+ type: _contractspec_lib_schema0.FieldType<number, number>;
90
+ isOptional: false;
91
+ };
92
+ totalAssets: {
93
+ type: _contractspec_lib_schema0.FieldType<number, number>;
94
+ isOptional: false;
95
+ };
96
+ totalLiabilities: {
97
+ type: _contractspec_lib_schema0.FieldType<number, number>;
98
+ isOptional: false;
99
+ };
100
+ currency: {
101
+ type: _contractspec_lib_schema0.FieldType<string, string>;
102
+ isOptional: false;
103
+ };
104
+ orgId: {
105
+ type: _contractspec_lib_schema0.FieldType<string, string>;
106
+ isOptional: false;
107
+ };
108
+ asOf: {
109
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
110
+ isOptional: false;
111
+ };
112
+ }>>;
113
+ declare const WealthSnapshotEvents: {
114
+ AssetAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
115
+ assetId: {
116
+ type: _contractspec_lib_schema0.FieldType<string, string>;
117
+ isOptional: false;
118
+ };
119
+ category: {
120
+ type: _contractspec_lib_schema0.FieldType<string, string>;
121
+ isOptional: false;
122
+ };
123
+ value: {
124
+ type: _contractspec_lib_schema0.FieldType<number, number>;
125
+ isOptional: false;
126
+ };
127
+ currency: {
128
+ type: _contractspec_lib_schema0.FieldType<string, string>;
129
+ isOptional: false;
130
+ };
131
+ orgId: {
132
+ type: _contractspec_lib_schema0.FieldType<string, string>;
133
+ isOptional: false;
134
+ };
135
+ timestamp: {
136
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
137
+ isOptional: false;
138
+ };
139
+ }>>;
140
+ LiabilityAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
141
+ liabilityId: {
142
+ type: _contractspec_lib_schema0.FieldType<string, string>;
143
+ isOptional: false;
144
+ };
145
+ category: {
146
+ type: _contractspec_lib_schema0.FieldType<string, string>;
147
+ isOptional: false;
148
+ };
149
+ balance: {
150
+ type: _contractspec_lib_schema0.FieldType<number, number>;
151
+ isOptional: false;
152
+ };
153
+ currency: {
154
+ type: _contractspec_lib_schema0.FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ orgId: {
158
+ type: _contractspec_lib_schema0.FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ timestamp: {
162
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
163
+ isOptional: false;
164
+ };
165
+ }>>;
166
+ GoalUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
167
+ goalId: {
168
+ type: _contractspec_lib_schema0.FieldType<string, string>;
169
+ isOptional: false;
170
+ };
171
+ status: {
172
+ type: _contractspec_lib_schema0.FieldType<string, string>;
173
+ isOptional: false;
174
+ };
175
+ currentAmount: {
176
+ type: _contractspec_lib_schema0.FieldType<number, number>;
177
+ isOptional: false;
178
+ };
179
+ targetAmount: {
180
+ type: _contractspec_lib_schema0.FieldType<number, number>;
181
+ isOptional: false;
182
+ };
183
+ currency: {
184
+ type: _contractspec_lib_schema0.FieldType<string, string>;
185
+ isOptional: false;
186
+ };
187
+ orgId: {
188
+ type: _contractspec_lib_schema0.FieldType<string, string>;
189
+ isOptional: false;
190
+ };
191
+ timestamp: {
192
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
193
+ isOptional: false;
194
+ };
195
+ }>>;
196
+ NetWorthSnapshotCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
197
+ netWorth: {
198
+ type: _contractspec_lib_schema0.FieldType<number, number>;
199
+ isOptional: false;
200
+ };
201
+ totalAssets: {
202
+ type: _contractspec_lib_schema0.FieldType<number, number>;
203
+ isOptional: false;
204
+ };
205
+ totalLiabilities: {
206
+ type: _contractspec_lib_schema0.FieldType<number, number>;
207
+ isOptional: false;
208
+ };
209
+ currency: {
210
+ type: _contractspec_lib_schema0.FieldType<string, string>;
211
+ isOptional: false;
212
+ };
213
+ orgId: {
214
+ type: _contractspec_lib_schema0.FieldType<string, string>;
215
+ isOptional: false;
216
+ };
217
+ asOf: {
218
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
219
+ isOptional: false;
220
+ };
221
+ }>>;
222
+ };
223
+ //#endregion
224
+ export { AssetAddedEvent, GoalUpdatedEvent, LiabilityAddedEvent, NetWorthSnapshotCreatedEvent, WealthSnapshotEvents };
225
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cA2Ca,iBAAe,4BAAA,CAAA,oCAAA;;UAU1B,yBAAA,CAAA;;EAVW,CAAA;EAUX,QAAA,EAAA;;;;;;;;EAV0B,QAAA,EAAA;IAAA,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAYf,UAAA,EAAA,KAAA;EAUX,CAAA;;;;;;;;EAV8B,CAAA;CAAA,CAAA,CAAA;AAYnB,cAZA,mBAsBX,EAtB8B,4BAAA,CAAA,SAsB9B,2BAtB8B,WAsB9B,CAAA;EAAA,WAAA,EAAA;UAZA,yBAAA,CAAA;;;;;;;;IAE2B,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYhB,CAAA;EAwBX,QAAA,EAAA;;;;;;;;EAxBuC,SAAA,EAAA;IAAA,IAAA,qCAAA,KAAA,EAAA,MAAA,CAAA;IA0B5B,UAAA,EAAA,KAAA;EAKZ,CAAA;;cA3CY,kBAAgB,4BAAA,CAAA,oCAAA;;UAU3B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,8BAA4B,4BAAA,CAAA,oCAAA;;UAwBvC,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW;;;YAKZ,yBAAA,CAAA"}
package/dist/events.js ADDED
@@ -0,0 +1,181 @@
1
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
2
+ import { StabilityEnum, defineEvent } from "@contractspec/lib.contracts";
3
+
4
+ //#region src/events.ts
5
+ const AssetEventPayload = defineSchemaModel({
6
+ name: "AssetEventPayload",
7
+ description: "Payload for asset events",
8
+ fields: {
9
+ assetId: {
10
+ type: ScalarTypeEnum.String_unsecure(),
11
+ isOptional: false
12
+ },
13
+ category: {
14
+ type: ScalarTypeEnum.String_unsecure(),
15
+ isOptional: false
16
+ },
17
+ value: {
18
+ type: ScalarTypeEnum.Float_unsecure(),
19
+ isOptional: false
20
+ },
21
+ currency: {
22
+ type: ScalarTypeEnum.String_unsecure(),
23
+ isOptional: false
24
+ },
25
+ orgId: {
26
+ type: ScalarTypeEnum.String_unsecure(),
27
+ isOptional: false
28
+ },
29
+ timestamp: {
30
+ type: ScalarTypeEnum.DateTime(),
31
+ isOptional: false
32
+ }
33
+ }
34
+ });
35
+ const LiabilityEventPayload = defineSchemaModel({
36
+ name: "LiabilityEventPayload",
37
+ description: "Payload for liability events",
38
+ fields: {
39
+ liabilityId: {
40
+ type: ScalarTypeEnum.String_unsecure(),
41
+ isOptional: false
42
+ },
43
+ category: {
44
+ type: ScalarTypeEnum.String_unsecure(),
45
+ isOptional: false
46
+ },
47
+ balance: {
48
+ type: ScalarTypeEnum.Float_unsecure(),
49
+ isOptional: false
50
+ },
51
+ currency: {
52
+ type: ScalarTypeEnum.String_unsecure(),
53
+ isOptional: false
54
+ },
55
+ orgId: {
56
+ type: ScalarTypeEnum.String_unsecure(),
57
+ isOptional: false
58
+ },
59
+ timestamp: {
60
+ type: ScalarTypeEnum.DateTime(),
61
+ isOptional: false
62
+ }
63
+ }
64
+ });
65
+ const GoalEventPayload = defineSchemaModel({
66
+ name: "GoalEventPayload",
67
+ description: "Payload for goal events",
68
+ fields: {
69
+ goalId: {
70
+ type: ScalarTypeEnum.String_unsecure(),
71
+ isOptional: false
72
+ },
73
+ status: {
74
+ type: ScalarTypeEnum.String_unsecure(),
75
+ isOptional: false
76
+ },
77
+ currentAmount: {
78
+ type: ScalarTypeEnum.Float_unsecure(),
79
+ isOptional: false
80
+ },
81
+ targetAmount: {
82
+ type: ScalarTypeEnum.Float_unsecure(),
83
+ isOptional: false
84
+ },
85
+ currency: {
86
+ type: ScalarTypeEnum.String_unsecure(),
87
+ isOptional: false
88
+ },
89
+ orgId: {
90
+ type: ScalarTypeEnum.String_unsecure(),
91
+ isOptional: false
92
+ },
93
+ timestamp: {
94
+ type: ScalarTypeEnum.DateTime(),
95
+ isOptional: false
96
+ }
97
+ }
98
+ });
99
+ const AssetAddedEvent = defineEvent({
100
+ meta: {
101
+ key: "wealth.asset.added",
102
+ version: 1,
103
+ description: "An asset was added or updated.",
104
+ stability: StabilityEnum.Experimental,
105
+ owners: [],
106
+ tags: []
107
+ },
108
+ payload: AssetEventPayload
109
+ });
110
+ const LiabilityAddedEvent = defineEvent({
111
+ meta: {
112
+ key: "wealth.liability.added",
113
+ version: 1,
114
+ description: "A liability was added or updated.",
115
+ stability: StabilityEnum.Experimental,
116
+ owners: [],
117
+ tags: []
118
+ },
119
+ payload: LiabilityEventPayload
120
+ });
121
+ const GoalUpdatedEvent = defineEvent({
122
+ meta: {
123
+ key: "wealth.goal.updated",
124
+ version: 1,
125
+ description: "A goal was updated.",
126
+ stability: StabilityEnum.Experimental,
127
+ owners: [],
128
+ tags: []
129
+ },
130
+ payload: GoalEventPayload
131
+ });
132
+ const NetWorthSnapshotCreatedEvent = defineEvent({
133
+ meta: {
134
+ key: "wealth.networth.snapshot_created",
135
+ version: 1,
136
+ description: "A net worth snapshot was generated.",
137
+ stability: StabilityEnum.Experimental,
138
+ owners: [],
139
+ tags: []
140
+ },
141
+ payload: defineSchemaModel({
142
+ name: "NetWorthSnapshotEventPayload",
143
+ description: "Net worth snapshot payload",
144
+ fields: {
145
+ netWorth: {
146
+ type: ScalarTypeEnum.Float_unsecure(),
147
+ isOptional: false
148
+ },
149
+ totalAssets: {
150
+ type: ScalarTypeEnum.Float_unsecure(),
151
+ isOptional: false
152
+ },
153
+ totalLiabilities: {
154
+ type: ScalarTypeEnum.Float_unsecure(),
155
+ isOptional: false
156
+ },
157
+ currency: {
158
+ type: ScalarTypeEnum.String_unsecure(),
159
+ isOptional: false
160
+ },
161
+ orgId: {
162
+ type: ScalarTypeEnum.String_unsecure(),
163
+ isOptional: false
164
+ },
165
+ asOf: {
166
+ type: ScalarTypeEnum.DateTime(),
167
+ isOptional: false
168
+ }
169
+ }
170
+ })
171
+ });
172
+ const WealthSnapshotEvents = {
173
+ AssetAddedEvent,
174
+ LiabilityAddedEvent,
175
+ GoalUpdatedEvent,
176
+ NetWorthSnapshotCreatedEvent
177
+ };
178
+
179
+ //#endregion
180
+ export { AssetAddedEvent, GoalUpdatedEvent, LiabilityAddedEvent, NetWorthSnapshotCreatedEvent, WealthSnapshotEvents };
181
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { ScalarTypeEnum, defineSchemaModel } from '@contractspec/lib.schema';\nimport { defineEvent, StabilityEnum } from '@contractspec/lib.contracts';\n\nconst AssetEventPayload = defineSchemaModel({\n name: 'AssetEventPayload',\n description: 'Payload for asset events',\n fields: {\n assetId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst LiabilityEventPayload = defineSchemaModel({\n name: 'LiabilityEventPayload',\n description: 'Payload for liability events',\n fields: {\n liabilityId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n balance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst GoalEventPayload = defineSchemaModel({\n name: 'GoalEventPayload',\n description: 'Payload for goal events',\n fields: {\n goalId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n currentAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n targetAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const AssetAddedEvent = defineEvent({\n meta: {\n key: 'wealth.asset.added',\n version: 1,\n description: 'An asset was added or updated.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: AssetEventPayload,\n});\n\nexport const LiabilityAddedEvent = defineEvent({\n meta: {\n key: 'wealth.liability.added',\n version: 1,\n description: 'A liability was added or updated.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: LiabilityEventPayload,\n});\n\nexport const GoalUpdatedEvent = defineEvent({\n meta: {\n key: 'wealth.goal.updated',\n version: 1,\n description: 'A goal was updated.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: GoalEventPayload,\n});\n\nexport const NetWorthSnapshotCreatedEvent = defineEvent({\n meta: {\n key: 'wealth.networth.snapshot_created',\n version: 1,\n description: 'A net worth snapshot was generated.',\n stability: StabilityEnum.Experimental,\n owners: [],\n tags: [],\n },\n payload: defineSchemaModel({\n name: 'NetWorthSnapshotEventPayload',\n description: 'Net worth snapshot payload',\n fields: {\n netWorth: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n totalAssets: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },\n totalLiabilities: {\n type: ScalarTypeEnum.Float_unsecure(),\n isOptional: false,\n },\n currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n asOf: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n }),\n});\n\nexport const WealthSnapshotEvents = {\n AssetAddedEvent,\n LiabilityAddedEvent,\n GoalUpdatedEvent,\n NetWorthSnapshotCreatedEvent,\n};\n"],"mappings":"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"}
@@ -0,0 +1,40 @@
1
+ //#region src/example.d.ts
2
+ declare const example: {
3
+ readonly id: "wealth-snapshot";
4
+ readonly title: "Wealth Snapshot";
5
+ readonly summary: "Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.";
6
+ readonly tags: readonly ["finance", "net-worth", "goals"];
7
+ readonly kind: "template";
8
+ readonly visibility: "public";
9
+ readonly docs: {
10
+ readonly rootDocId: "docs.examples.wealth-snapshot";
11
+ readonly goalDocId: "docs.examples.wealth-snapshot.goal";
12
+ readonly usageDocId: "docs.examples.wealth-snapshot.usage";
13
+ readonly constraintsDocId: "docs.examples.wealth-snapshot.constraints";
14
+ };
15
+ readonly entrypoints: {
16
+ readonly packageName: "@contractspec/example.wealth-snapshot";
17
+ readonly feature: "./feature";
18
+ readonly contracts: "./contracts";
19
+ readonly presentations: "./presentations";
20
+ readonly handlers: "./handlers";
21
+ readonly docs: "./docs";
22
+ };
23
+ readonly surfaces: {
24
+ readonly templates: true;
25
+ readonly sandbox: {
26
+ readonly enabled: true;
27
+ readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
28
+ };
29
+ readonly studio: {
30
+ readonly enabled: true;
31
+ readonly installable: true;
32
+ };
33
+ readonly mcp: {
34
+ readonly enabled: true;
35
+ };
36
+ };
37
+ };
38
+ //#endregion
39
+ export { example as default };
40
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";cAAM;EAAA,SAAA,EA+BI,EAAA,iBAAA"}
@@ -0,0 +1,50 @@
1
+ //#region src/example.ts
2
+ const example = {
3
+ id: "wealth-snapshot",
4
+ title: "Wealth Snapshot",
5
+ summary: "Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.",
6
+ tags: [
7
+ "finance",
8
+ "net-worth",
9
+ "goals"
10
+ ],
11
+ kind: "template",
12
+ visibility: "public",
13
+ docs: {
14
+ rootDocId: "docs.examples.wealth-snapshot",
15
+ goalDocId: "docs.examples.wealth-snapshot.goal",
16
+ usageDocId: "docs.examples.wealth-snapshot.usage",
17
+ constraintsDocId: "docs.examples.wealth-snapshot.constraints"
18
+ },
19
+ entrypoints: {
20
+ packageName: "@contractspec/example.wealth-snapshot",
21
+ feature: "./feature",
22
+ contracts: "./contracts",
23
+ presentations: "./presentations",
24
+ handlers: "./handlers",
25
+ docs: "./docs"
26
+ },
27
+ surfaces: {
28
+ templates: true,
29
+ sandbox: {
30
+ enabled: true,
31
+ modes: [
32
+ "playground",
33
+ "specs",
34
+ "builder",
35
+ "markdown",
36
+ "evolution"
37
+ ]
38
+ },
39
+ studio: {
40
+ enabled: true,
41
+ installable: true
42
+ },
43
+ mcp: { enabled: true }
44
+ }
45
+ };
46
+ var example_default = example;
47
+
48
+ //#endregion
49
+ export { example_default as default };
50
+ //# sourceMappingURL=example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["const example = {\n id: 'wealth-snapshot',\n title: 'Wealth Snapshot',\n summary:\n 'Simple wealth overview with accounts, assets, liabilities, goals, and net-worth snapshots.',\n tags: ['finance', 'net-worth', 'goals'],\n kind: 'template',\n visibility: 'public',\n docs: {\n rootDocId: 'docs.examples.wealth-snapshot',\n goalDocId: 'docs.examples.wealth-snapshot.goal',\n usageDocId: 'docs.examples.wealth-snapshot.usage',\n constraintsDocId: 'docs.examples.wealth-snapshot.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.wealth-snapshot',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n} as const;\n\nexport default example;\n"],"mappings":";AAAA,MAAM,UAAU;CACd,IAAI;CACJ,OAAO;CACP,SACE;CACF,MAAM;EAAC;EAAW;EAAa;EAAQ;CACvC,MAAM;CACN,YAAY;CACZ,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
@@ -0,0 +1,8 @@
1
+ //#region src/handlers/index.d.ts
2
+ /**
3
+ * Placeholder handler registry for Wealth Snapshot contracts.
4
+ */
5
+ declare function registerWealthSnapshotHandlers(): void;
6
+ //#endregion
7
+ export { registerWealthSnapshotHandlers };
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/handlers/index.ts"],"sourcesContent":[],"mappings":";;AAIA;;iBAAgB,8BAAA,CAAA"}
@@ -0,0 +1,9 @@
1
+ //#region src/handlers/index.ts
2
+ /**
3
+ * Placeholder handler registry for Wealth Snapshot contracts.
4
+ */
5
+ function registerWealthSnapshotHandlers() {}
6
+
7
+ //#endregion
8
+ export { registerWealthSnapshotHandlers };
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/handlers/index.ts"],"sourcesContent":["/**\n * Placeholder handler registry for Wealth Snapshot contracts.\n */\n\nexport function registerWealthSnapshotHandlers() {\n // Bind contracts to runtime implementations in the host app.\n}\n"],"mappings":";;;;AAIA,SAAgB,iCAAiC"}
@@ -0,0 +1,18 @@
1
+ import { AccountEntity, AccountTypeEnum, AssetCategoryEnum, AssetEntity, GoalEntity, GoalStatusEnum, LiabilityCategoryEnum, LiabilityEntity, NetWorthSnapshotEntity, wealthSnapshotEntities, wealthSnapshotSchemaContribution } from "./entities/index.js";
2
+ import { AssetAddedEvent, GoalUpdatedEvent, LiabilityAddedEvent, NetWorthSnapshotCreatedEvent, WealthSnapshotEvents } from "./events.js";
3
+ import example from "./example.js";
4
+ import { registerWealthSnapshotHandlers } from "./handlers/index.js";
5
+ import { AccountModel, AddAssetContract, AddLiabilityContract, AssetModel, CreateAccountContract, CreateGoalContract, GetNetWorthContract, GoalModel, LiabilityModel, NetWorthSnapshotModel, UpdateGoalContract } from "./operations/index.js";
6
+ import { AccountsListPresentation, AssetsListPresentation, GoalsListPresentation, LiabilitiesListPresentation, WealthDashboardPresentation } from "./presentations.js";
7
+ import { WealthSnapshotFeature } from "./wealth-snapshot.feature.js";
8
+ import * as _contractspec_lib_schema57 from "@contractspec/lib.schema";
9
+
10
+ //#region src/index.d.ts
11
+ declare const schemaComposition: {
12
+ modules: _contractspec_lib_schema57.ModuleSchemaContribution[];
13
+ provider: "postgresql";
14
+ outputPath: string;
15
+ };
16
+ //#endregion
17
+ export { AccountEntity, AccountModel, AccountTypeEnum, AccountsListPresentation, AddAssetContract, AddLiabilityContract, AssetAddedEvent, AssetCategoryEnum, AssetEntity, AssetModel, AssetsListPresentation, CreateAccountContract, CreateGoalContract, GetNetWorthContract, GoalEntity, GoalModel, GoalStatusEnum, GoalUpdatedEvent, GoalsListPresentation, LiabilitiesListPresentation, LiabilityAddedEvent, LiabilityCategoryEnum, LiabilityEntity, LiabilityModel, NetWorthSnapshotCreatedEvent, NetWorthSnapshotEntity, NetWorthSnapshotModel, UpdateGoalContract, WealthDashboardPresentation, WealthSnapshotEvents, WealthSnapshotFeature, example, registerWealthSnapshotHandlers, schemaComposition, wealthSnapshotEntities, wealthSnapshotSchemaContribution };
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;cAca;WASZ,0BAAA,CAAA,wBAAA;EATY,QAAA,EAAA,YASZ"}
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ import { AssetAddedEvent, GoalUpdatedEvent, LiabilityAddedEvent, NetWorthSnapshotCreatedEvent, WealthSnapshotEvents } from "./events.js";
2
+ import example_default from "./example.js";
3
+ import { AccountEntity, AccountTypeEnum, AssetCategoryEnum, AssetEntity, GoalEntity, GoalStatusEnum, LiabilityCategoryEnum, LiabilityEntity, NetWorthSnapshotEntity, wealthSnapshotEntities, wealthSnapshotSchemaContribution } from "./entities/index.js";
4
+ import { AccountModel, AddAssetContract, AddLiabilityContract, AssetModel, CreateAccountContract, CreateGoalContract, GetNetWorthContract, GoalModel, LiabilityModel, NetWorthSnapshotModel, UpdateGoalContract } from "./operations/index.js";
5
+ import { AccountsListPresentation, AssetsListPresentation, GoalsListPresentation, LiabilitiesListPresentation, WealthDashboardPresentation } from "./presentations.js";
6
+ import { WealthSnapshotFeature } from "./wealth-snapshot.feature.js";
7
+ import { registerWealthSnapshotHandlers } from "./handlers/index.js";
8
+ import "./docs/index.js";
9
+ import { identityRbacSchemaContribution } from "@contractspec/lib.identity-rbac";
10
+ import { auditTrailSchemaContribution } from "@contractspec/module.audit-trail";
11
+ import { notificationsSchemaContribution } from "@contractspec/module.notifications";
12
+
13
+ //#region src/index.ts
14
+ const schemaComposition = {
15
+ modules: [
16
+ identityRbacSchemaContribution,
17
+ auditTrailSchemaContribution,
18
+ notificationsSchemaContribution,
19
+ wealthSnapshotSchemaContribution
20
+ ],
21
+ provider: "postgresql",
22
+ outputPath: "./prisma/schema/generated.prisma"
23
+ };
24
+
25
+ //#endregion
26
+ export { AccountEntity, AccountModel, AccountTypeEnum, AccountsListPresentation, AddAssetContract, AddLiabilityContract, AssetAddedEvent, AssetCategoryEnum, AssetEntity, AssetModel, AssetsListPresentation, CreateAccountContract, CreateGoalContract, GetNetWorthContract, GoalEntity, GoalModel, GoalStatusEnum, GoalUpdatedEvent, GoalsListPresentation, LiabilitiesListPresentation, LiabilityAddedEvent, LiabilityCategoryEnum, LiabilityEntity, LiabilityModel, NetWorthSnapshotCreatedEvent, NetWorthSnapshotEntity, NetWorthSnapshotModel, UpdateGoalContract, WealthDashboardPresentation, WealthSnapshotEvents, WealthSnapshotFeature, example_default as example, registerWealthSnapshotHandlers, schemaComposition, wealthSnapshotEntities, wealthSnapshotSchemaContribution };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["export * from './entities';\nexport * from './operations';\nexport * from './events';\nexport * from './presentations';\nexport * from './wealth-snapshot.feature';\nexport * from './handlers';\nexport { default as example } from './example';\nimport './docs';\n\nimport { identityRbacSchemaContribution } from '@contractspec/lib.identity-rbac';\nimport { auditTrailSchemaContribution } from '@contractspec/module.audit-trail';\nimport { notificationsSchemaContribution } from '@contractspec/module.notifications';\nimport { wealthSnapshotSchemaContribution } from './entities';\n\nexport const schemaComposition = {\n modules: [\n identityRbacSchemaContribution,\n auditTrailSchemaContribution,\n notificationsSchemaContribution,\n wealthSnapshotSchemaContribution,\n ],\n provider: 'postgresql' as const,\n outputPath: './prisma/schema/generated.prisma',\n};\n"],"mappings":";;;;;;;;;;;;;AAcA,MAAa,oBAAoB;CAC/B,SAAS;EACP;EACA;EACA;EACA;EACD;CACD,UAAU;CACV,YAAY;CACb"}