@contractspec/example.wealth-snapshot 3.7.17 → 3.7.18
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/dist/browser/docs/index.js +5 -49
- package/dist/browser/docs/wealth-snapshot.docblock.js +5 -49
- package/dist/browser/entities/index.js +1 -191
- package/dist/browser/events.js +1 -111
- package/dist/browser/example.js +1 -42
- package/dist/browser/handlers/index.js +1 -5
- package/dist/browser/index.js +5 -851
- package/dist/browser/operations/index.js +1 -238
- package/dist/browser/presentations/index.js +1 -11
- package/dist/browser/presentations.js +1 -127
- package/dist/browser/wealth-snapshot.capability.js +1 -43
- package/dist/browser/wealth-snapshot.feature.js +1 -79
- package/dist/docs/index.js +5 -49
- package/dist/docs/wealth-snapshot.docblock.js +5 -49
- package/dist/entities/index.js +1 -191
- package/dist/events.js +1 -111
- package/dist/example.js +1 -42
- package/dist/handlers/index.js +1 -5
- package/dist/index.js +5 -851
- package/dist/node/docs/index.js +5 -49
- package/dist/node/docs/wealth-snapshot.docblock.js +5 -49
- package/dist/node/entities/index.js +1 -191
- package/dist/node/events.js +1 -111
- package/dist/node/example.js +1 -42
- package/dist/node/handlers/index.js +1 -5
- package/dist/node/index.js +5 -851
- package/dist/node/operations/index.js +1 -238
- package/dist/node/presentations/index.js +1 -11
- package/dist/node/presentations.js +1 -127
- package/dist/node/wealth-snapshot.capability.js +1 -43
- package/dist/node/wealth-snapshot.feature.js +1 -79
- package/dist/operations/index.js +1 -238
- package/dist/presentations/index.js +1 -11
- package/dist/presentations.js +1 -127
- package/dist/wealth-snapshot.capability.js +1 -43
- package/dist/wealth-snapshot.feature.js +1 -79
- package/package.json +8 -8
|
@@ -1,238 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
|
|
3
|
-
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
4
|
-
var OWNERS = ["examples.wealth-snapshot"];
|
|
5
|
-
var AccountModel = defineSchemaModel({
|
|
6
|
-
name: "Account",
|
|
7
|
-
description: "Account model",
|
|
8
|
-
fields: {
|
|
9
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
10
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
11
|
-
type: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
12
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
13
|
-
balance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false }
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
var AssetModel = defineSchemaModel({
|
|
17
|
-
name: "Asset",
|
|
18
|
-
description: "Asset model",
|
|
19
|
-
fields: {
|
|
20
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
21
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
22
|
-
category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
23
|
-
value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
24
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
var LiabilityModel = defineSchemaModel({
|
|
28
|
-
name: "Liability",
|
|
29
|
-
description: "Liability model",
|
|
30
|
-
fields: {
|
|
31
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
32
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
33
|
-
category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
34
|
-
balance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
35
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
var GoalModel = defineSchemaModel({
|
|
39
|
-
name: "Goal",
|
|
40
|
-
description: "Goal model",
|
|
41
|
-
fields: {
|
|
42
|
-
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
43
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
44
|
-
targetAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
45
|
-
currentAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
46
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
47
|
-
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
var NetWorthSnapshotModel = defineSchemaModel({
|
|
51
|
-
name: "NetWorthSnapshot",
|
|
52
|
-
description: "Net worth snapshot model",
|
|
53
|
-
fields: {
|
|
54
|
-
asOf: { type: ScalarTypeEnum.DateTime(), isOptional: false },
|
|
55
|
-
totalAssets: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
56
|
-
totalLiabilities: {
|
|
57
|
-
type: ScalarTypeEnum.Float_unsecure(),
|
|
58
|
-
isOptional: false
|
|
59
|
-
},
|
|
60
|
-
netWorth: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
61
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
var CreateAccountInput = defineSchemaModel({
|
|
65
|
-
name: "CreateAccountInput",
|
|
66
|
-
description: "Create account input",
|
|
67
|
-
fields: {
|
|
68
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
69
|
-
type: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
70
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
71
|
-
balance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: true },
|
|
72
|
-
orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
var AddAssetInput = defineSchemaModel({
|
|
76
|
-
name: "AddAssetInput",
|
|
77
|
-
description: "Add asset input",
|
|
78
|
-
fields: {
|
|
79
|
-
accountId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
80
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
81
|
-
category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
82
|
-
value: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
83
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
84
|
-
orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
var AddLiabilityInput = defineSchemaModel({
|
|
88
|
-
name: "AddLiabilityInput",
|
|
89
|
-
description: "Add liability input",
|
|
90
|
-
fields: {
|
|
91
|
-
accountId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
92
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
93
|
-
category: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
94
|
-
balance: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
95
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
96
|
-
orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
var UpdateGoalInput = defineSchemaModel({
|
|
100
|
-
name: "UpdateGoalInput",
|
|
101
|
-
description: "Update goal progress",
|
|
102
|
-
fields: {
|
|
103
|
-
goalId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
104
|
-
currentAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
105
|
-
status: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
var CreateGoalInput = defineSchemaModel({
|
|
109
|
-
name: "CreateGoalInput",
|
|
110
|
-
description: "Create goal input",
|
|
111
|
-
fields: {
|
|
112
|
-
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
113
|
-
targetAmount: { type: ScalarTypeEnum.Float_unsecure(), isOptional: false },
|
|
114
|
-
currency: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
115
|
-
targetDate: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
116
|
-
orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false }
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
var NetWorthQueryInput = defineSchemaModel({
|
|
120
|
-
name: "NetWorthQueryInput",
|
|
121
|
-
description: "Filter for net worth snapshots",
|
|
122
|
-
fields: {
|
|
123
|
-
orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
124
|
-
from: { type: ScalarTypeEnum.DateTime(), isOptional: true },
|
|
125
|
-
to: { type: ScalarTypeEnum.DateTime(), isOptional: true }
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
var CreateAccountContract = defineCommand({
|
|
129
|
-
meta: {
|
|
130
|
-
key: "wealth.account.create",
|
|
131
|
-
version: "1.0.0",
|
|
132
|
-
stability: "stable",
|
|
133
|
-
owners: [...OWNERS],
|
|
134
|
-
tags: ["wealth", "account", "create"],
|
|
135
|
-
description: "Create a financial account.",
|
|
136
|
-
goal: "Track account balances.",
|
|
137
|
-
context: "Onboarding/import."
|
|
138
|
-
},
|
|
139
|
-
io: { input: CreateAccountInput, output: AccountModel },
|
|
140
|
-
policy: { auth: "user" }
|
|
141
|
-
});
|
|
142
|
-
var AddAssetContract = defineCommand({
|
|
143
|
-
meta: {
|
|
144
|
-
key: "wealth.asset.add",
|
|
145
|
-
version: "1.0.0",
|
|
146
|
-
stability: "stable",
|
|
147
|
-
owners: [...OWNERS],
|
|
148
|
-
tags: ["wealth", "asset", "add"],
|
|
149
|
-
description: "Add an asset position.",
|
|
150
|
-
goal: "Track holdings.",
|
|
151
|
-
context: "Asset onboarding/update."
|
|
152
|
-
},
|
|
153
|
-
io: { input: AddAssetInput, output: AssetModel },
|
|
154
|
-
policy: { auth: "user" }
|
|
155
|
-
});
|
|
156
|
-
var AddLiabilityContract = defineCommand({
|
|
157
|
-
meta: {
|
|
158
|
-
key: "wealth.liability.add",
|
|
159
|
-
version: "1.0.0",
|
|
160
|
-
stability: "stable",
|
|
161
|
-
owners: [...OWNERS],
|
|
162
|
-
tags: ["wealth", "liability", "add"],
|
|
163
|
-
description: "Add a liability.",
|
|
164
|
-
goal: "Track debts.",
|
|
165
|
-
context: "Debt onboarding/update."
|
|
166
|
-
},
|
|
167
|
-
io: { input: AddLiabilityInput, output: LiabilityModel },
|
|
168
|
-
policy: { auth: "user" }
|
|
169
|
-
});
|
|
170
|
-
var CreateGoalContract = defineCommand({
|
|
171
|
-
meta: {
|
|
172
|
-
key: "wealth.goal.create",
|
|
173
|
-
version: "1.0.0",
|
|
174
|
-
stability: "stable",
|
|
175
|
-
owners: [...OWNERS],
|
|
176
|
-
tags: ["wealth", "goal", "create"],
|
|
177
|
-
description: "Create a financial goal.",
|
|
178
|
-
goal: "Track progress toward goals.",
|
|
179
|
-
context: "Planning."
|
|
180
|
-
},
|
|
181
|
-
io: { input: CreateGoalInput, output: GoalModel },
|
|
182
|
-
policy: { auth: "user" }
|
|
183
|
-
});
|
|
184
|
-
var UpdateGoalContract = defineCommand({
|
|
185
|
-
meta: {
|
|
186
|
-
key: "wealth.goal.update",
|
|
187
|
-
version: "1.0.0",
|
|
188
|
-
stability: "stable",
|
|
189
|
-
owners: [...OWNERS],
|
|
190
|
-
tags: ["wealth", "goal", "update"],
|
|
191
|
-
description: "Update goal progress.",
|
|
192
|
-
goal: "Keep progress current.",
|
|
193
|
-
context: "Periodic update."
|
|
194
|
-
},
|
|
195
|
-
io: { input: UpdateGoalInput, output: GoalModel },
|
|
196
|
-
policy: { auth: "user" }
|
|
197
|
-
});
|
|
198
|
-
var GetNetWorthContract = defineQuery({
|
|
199
|
-
meta: {
|
|
200
|
-
key: "wealth.networth.get",
|
|
201
|
-
version: "1.0.0",
|
|
202
|
-
stability: "stable",
|
|
203
|
-
owners: [...OWNERS],
|
|
204
|
-
tags: ["wealth", "networth"],
|
|
205
|
-
description: "Get net worth snapshots for a period.",
|
|
206
|
-
goal: "Render charts and indicators.",
|
|
207
|
-
context: "Dashboard."
|
|
208
|
-
},
|
|
209
|
-
io: {
|
|
210
|
-
input: NetWorthQueryInput,
|
|
211
|
-
output: defineSchemaModel({
|
|
212
|
-
name: "NetWorthQueryOutput",
|
|
213
|
-
description: "Snapshots + latest indicators",
|
|
214
|
-
fields: {
|
|
215
|
-
snapshots: {
|
|
216
|
-
type: NetWorthSnapshotModel,
|
|
217
|
-
isArray: true,
|
|
218
|
-
isOptional: false
|
|
219
|
-
},
|
|
220
|
-
latest: { type: NetWorthSnapshotModel, isOptional: true }
|
|
221
|
-
}
|
|
222
|
-
})
|
|
223
|
-
},
|
|
224
|
-
policy: { auth: "user" }
|
|
225
|
-
});
|
|
226
|
-
export {
|
|
227
|
-
UpdateGoalContract,
|
|
228
|
-
NetWorthSnapshotModel,
|
|
229
|
-
LiabilityModel,
|
|
230
|
-
GoalModel,
|
|
231
|
-
GetNetWorthContract,
|
|
232
|
-
CreateGoalContract,
|
|
233
|
-
CreateAccountContract,
|
|
234
|
-
AssetModel,
|
|
235
|
-
AddLiabilityContract,
|
|
236
|
-
AddAssetContract,
|
|
237
|
-
AccountModel
|
|
238
|
-
};
|
|
1
|
+
import{defineCommand as q,defineQuery as x}from"@contractspec/lib.contracts-spec";import{defineSchemaModel as j,ScalarTypeEnum as g}from"@contractspec/lib.schema";var k=["examples.wealth-snapshot"],z=j({name:"Account",description:"Account model",fields:{id:{type:g.String_unsecure(),isOptional:!1},name:{type:g.String_unsecure(),isOptional:!1},type:{type:g.String_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!1},balance:{type:g.Float_unsecure(),isOptional:!1}}}),B=j({name:"Asset",description:"Asset model",fields:{id:{type:g.String_unsecure(),isOptional:!1},name:{type:g.String_unsecure(),isOptional:!1},category:{type:g.String_unsecure(),isOptional:!1},value:{type:g.Float_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!1}}}),D=j({name:"Liability",description:"Liability model",fields:{id:{type:g.String_unsecure(),isOptional:!1},name:{type:g.String_unsecure(),isOptional:!1},category:{type:g.String_unsecure(),isOptional:!1},balance:{type:g.Float_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!1}}}),w=j({name:"Goal",description:"Goal model",fields:{id:{type:g.String_unsecure(),isOptional:!1},name:{type:g.String_unsecure(),isOptional:!1},targetAmount:{type:g.Float_unsecure(),isOptional:!1},currentAmount:{type:g.Float_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!1},status:{type:g.String_unsecure(),isOptional:!1}}}),v=j({name:"NetWorthSnapshot",description:"Net worth snapshot model",fields:{asOf:{type:g.DateTime(),isOptional:!1},totalAssets:{type:g.Float_unsecure(),isOptional:!1},totalLiabilities:{type:g.Float_unsecure(),isOptional:!1},netWorth:{type:g.Float_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!1}}}),F=j({name:"CreateAccountInput",description:"Create account input",fields:{name:{type:g.String_unsecure(),isOptional:!1},type:{type:g.String_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!0},balance:{type:g.Float_unsecure(),isOptional:!0},orgId:{type:g.String_unsecure(),isOptional:!1}}}),H=j({name:"AddAssetInput",description:"Add asset input",fields:{accountId:{type:g.String_unsecure(),isOptional:!0},name:{type:g.String_unsecure(),isOptional:!1},category:{type:g.String_unsecure(),isOptional:!1},value:{type:g.Float_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!0},orgId:{type:g.String_unsecure(),isOptional:!1}}}),J=j({name:"AddLiabilityInput",description:"Add liability input",fields:{accountId:{type:g.String_unsecure(),isOptional:!0},name:{type:g.String_unsecure(),isOptional:!1},category:{type:g.String_unsecure(),isOptional:!1},balance:{type:g.Float_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!0},orgId:{type:g.String_unsecure(),isOptional:!1}}}),K=j({name:"UpdateGoalInput",description:"Update goal progress",fields:{goalId:{type:g.String_unsecure(),isOptional:!1},currentAmount:{type:g.Float_unsecure(),isOptional:!1},status:{type:g.String_unsecure(),isOptional:!0}}}),P=j({name:"CreateGoalInput",description:"Create goal input",fields:{name:{type:g.String_unsecure(),isOptional:!1},targetAmount:{type:g.Float_unsecure(),isOptional:!1},currency:{type:g.String_unsecure(),isOptional:!0},targetDate:{type:g.DateTime(),isOptional:!0},orgId:{type:g.String_unsecure(),isOptional:!1}}}),V=j({name:"NetWorthQueryInput",description:"Filter for net worth snapshots",fields:{orgId:{type:g.String_unsecure(),isOptional:!1},from:{type:g.DateTime(),isOptional:!0},to:{type:g.DateTime(),isOptional:!0}}}),Z=q({meta:{key:"wealth.account.create",version:"1.0.0",stability:"stable",owners:[...k],tags:["wealth","account","create"],description:"Create a financial account.",goal:"Track account balances.",context:"Onboarding/import."},io:{input:F,output:z},policy:{auth:"user"}}),_=q({meta:{key:"wealth.asset.add",version:"1.0.0",stability:"stable",owners:[...k],tags:["wealth","asset","add"],description:"Add an asset position.",goal:"Track holdings.",context:"Asset onboarding/update."},io:{input:H,output:B},policy:{auth:"user"}}),$=q({meta:{key:"wealth.liability.add",version:"1.0.0",stability:"stable",owners:[...k],tags:["wealth","liability","add"],description:"Add a liability.",goal:"Track debts.",context:"Debt onboarding/update."},io:{input:J,output:D},policy:{auth:"user"}}),U=q({meta:{key:"wealth.goal.create",version:"1.0.0",stability:"stable",owners:[...k],tags:["wealth","goal","create"],description:"Create a financial goal.",goal:"Track progress toward goals.",context:"Planning."},io:{input:P,output:w},policy:{auth:"user"}}),L=q({meta:{key:"wealth.goal.update",version:"1.0.0",stability:"stable",owners:[...k],tags:["wealth","goal","update"],description:"Update goal progress.",goal:"Keep progress current.",context:"Periodic update."},io:{input:K,output:w},policy:{auth:"user"}}),Q=x({meta:{key:"wealth.networth.get",version:"1.0.0",stability:"stable",owners:[...k],tags:["wealth","networth"],description:"Get net worth snapshots for a period.",goal:"Render charts and indicators.",context:"Dashboard."},io:{input:V,output:j({name:"NetWorthQueryOutput",description:"Snapshots + latest indicators",fields:{snapshots:{type:v,isArray:!0,isOptional:!1},latest:{type:v,isOptional:!0}}})},policy:{auth:"user"}});export{L as UpdateGoalContract,v as NetWorthSnapshotModel,D as LiabilityModel,w as GoalModel,Q as GetNetWorthContract,U as CreateGoalContract,Z as CreateAccountContract,B as AssetModel,$ as AddLiabilityContract,_ as AddAssetContract,z as AccountModel};
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var WealthSnapshotPresentations = [
|
|
3
|
-
"wealth-snapshot.dashboard",
|
|
4
|
-
"wealth-snapshot.accounts.list",
|
|
5
|
-
"wealth-snapshot.assets.list",
|
|
6
|
-
"wealth-snapshot.liabilities.list",
|
|
7
|
-
"wealth-snapshot.goals.list"
|
|
8
|
-
];
|
|
9
|
-
export {
|
|
10
|
-
WealthSnapshotPresentations
|
|
11
|
-
};
|
|
1
|
+
var s=["wealth-snapshot.dashboard","wealth-snapshot.accounts.list","wealth-snapshot.assets.list","wealth-snapshot.liabilities.list","wealth-snapshot.goals.list"];export{s as WealthSnapshotPresentations};
|
|
@@ -1,127 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
definePresentation,
|
|
4
|
-
StabilityEnum
|
|
5
|
-
} from "@contractspec/lib.contracts-spec";
|
|
6
|
-
var WealthDashboardPresentation = definePresentation({
|
|
7
|
-
meta: {
|
|
8
|
-
key: "wealth-snapshot.dashboard",
|
|
9
|
-
version: "1.0.0",
|
|
10
|
-
title: "Wealth Dashboard",
|
|
11
|
-
description: "Wealth snapshot dashboard with net worth overview",
|
|
12
|
-
domain: "finance",
|
|
13
|
-
owners: ["@wealth-snapshot"],
|
|
14
|
-
tags: ["finance", "wealth", "dashboard"],
|
|
15
|
-
stability: StabilityEnum.Experimental,
|
|
16
|
-
goal: "Overview of wealth",
|
|
17
|
-
context: "Dashboard"
|
|
18
|
-
},
|
|
19
|
-
source: {
|
|
20
|
-
type: "component",
|
|
21
|
-
framework: "react",
|
|
22
|
-
componentKey: "WealthDashboard"
|
|
23
|
-
},
|
|
24
|
-
targets: ["react", "markdown"],
|
|
25
|
-
policy: {
|
|
26
|
-
flags: ["wealth.dashboard.enabled"]
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
var AccountsListPresentation = definePresentation({
|
|
30
|
-
meta: {
|
|
31
|
-
key: "wealth-snapshot.accounts.list",
|
|
32
|
-
version: "1.0.0",
|
|
33
|
-
title: "Accounts List",
|
|
34
|
-
description: "List of financial accounts",
|
|
35
|
-
domain: "finance",
|
|
36
|
-
owners: ["@wealth-snapshot"],
|
|
37
|
-
tags: ["finance", "accounts", "list"],
|
|
38
|
-
stability: StabilityEnum.Experimental,
|
|
39
|
-
goal: "List accounts",
|
|
40
|
-
context: "Overview"
|
|
41
|
-
},
|
|
42
|
-
source: {
|
|
43
|
-
type: "component",
|
|
44
|
-
framework: "react",
|
|
45
|
-
componentKey: "AccountsList"
|
|
46
|
-
},
|
|
47
|
-
targets: ["react", "markdown"],
|
|
48
|
-
policy: {
|
|
49
|
-
flags: ["wealth.accounts.enabled"]
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
var AssetsListPresentation = definePresentation({
|
|
53
|
-
meta: {
|
|
54
|
-
key: "wealth-snapshot.assets.list",
|
|
55
|
-
version: "1.0.0",
|
|
56
|
-
title: "Assets List",
|
|
57
|
-
description: "List of assets with valuations",
|
|
58
|
-
domain: "finance",
|
|
59
|
-
owners: ["@wealth-snapshot"],
|
|
60
|
-
tags: ["finance", "assets", "list"],
|
|
61
|
-
stability: StabilityEnum.Experimental,
|
|
62
|
-
goal: "List assets",
|
|
63
|
-
context: "Overview"
|
|
64
|
-
},
|
|
65
|
-
source: {
|
|
66
|
-
type: "component",
|
|
67
|
-
framework: "react",
|
|
68
|
-
componentKey: "AssetsList"
|
|
69
|
-
},
|
|
70
|
-
targets: ["react", "markdown"],
|
|
71
|
-
policy: {
|
|
72
|
-
flags: ["wealth.assets.enabled"]
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
var LiabilitiesListPresentation = definePresentation({
|
|
76
|
-
meta: {
|
|
77
|
-
key: "wealth-snapshot.liabilities.list",
|
|
78
|
-
version: "1.0.0",
|
|
79
|
-
title: "Liabilities List",
|
|
80
|
-
description: "List of liabilities and debts",
|
|
81
|
-
domain: "finance",
|
|
82
|
-
owners: ["@wealth-snapshot"],
|
|
83
|
-
tags: ["finance", "liabilities", "list"],
|
|
84
|
-
stability: StabilityEnum.Experimental,
|
|
85
|
-
goal: "List liabilities",
|
|
86
|
-
context: "Overview"
|
|
87
|
-
},
|
|
88
|
-
source: {
|
|
89
|
-
type: "component",
|
|
90
|
-
framework: "react",
|
|
91
|
-
componentKey: "LiabilitiesList"
|
|
92
|
-
},
|
|
93
|
-
targets: ["react", "markdown"],
|
|
94
|
-
policy: {
|
|
95
|
-
flags: ["wealth.liabilities.enabled"]
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
var GoalsListPresentation = definePresentation({
|
|
99
|
-
meta: {
|
|
100
|
-
key: "wealth-snapshot.goals.list",
|
|
101
|
-
version: "1.0.0",
|
|
102
|
-
title: "Goals List",
|
|
103
|
-
description: "List of financial goals with progress",
|
|
104
|
-
domain: "finance",
|
|
105
|
-
owners: ["@wealth-snapshot"],
|
|
106
|
-
tags: ["finance", "goals", "list"],
|
|
107
|
-
stability: StabilityEnum.Experimental,
|
|
108
|
-
goal: "List goals",
|
|
109
|
-
context: "Overview"
|
|
110
|
-
},
|
|
111
|
-
source: {
|
|
112
|
-
type: "component",
|
|
113
|
-
framework: "react",
|
|
114
|
-
componentKey: "GoalsList"
|
|
115
|
-
},
|
|
116
|
-
targets: ["react", "markdown"],
|
|
117
|
-
policy: {
|
|
118
|
-
flags: ["wealth.goals.enabled"]
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
export {
|
|
122
|
-
WealthDashboardPresentation,
|
|
123
|
-
LiabilitiesListPresentation,
|
|
124
|
-
GoalsListPresentation,
|
|
125
|
-
AssetsListPresentation,
|
|
126
|
-
AccountsListPresentation
|
|
127
|
-
};
|
|
1
|
+
import{definePresentation as g,StabilityEnum as h}from"@contractspec/lib.contracts-spec";var k=g({meta:{key:"wealth-snapshot.dashboard",version:"1.0.0",title:"Wealth Dashboard",description:"Wealth snapshot dashboard with net worth overview",domain:"finance",owners:["@wealth-snapshot"],tags:["finance","wealth","dashboard"],stability:h.Experimental,goal:"Overview of wealth",context:"Dashboard"},source:{type:"component",framework:"react",componentKey:"WealthDashboard"},targets:["react","markdown"],policy:{flags:["wealth.dashboard.enabled"]}}),q=g({meta:{key:"wealth-snapshot.accounts.list",version:"1.0.0",title:"Accounts List",description:"List of financial accounts",domain:"finance",owners:["@wealth-snapshot"],tags:["finance","accounts","list"],stability:h.Experimental,goal:"List accounts",context:"Overview"},source:{type:"component",framework:"react",componentKey:"AccountsList"},targets:["react","markdown"],policy:{flags:["wealth.accounts.enabled"]}}),v=g({meta:{key:"wealth-snapshot.assets.list",version:"1.0.0",title:"Assets List",description:"List of assets with valuations",domain:"finance",owners:["@wealth-snapshot"],tags:["finance","assets","list"],stability:h.Experimental,goal:"List assets",context:"Overview"},source:{type:"component",framework:"react",componentKey:"AssetsList"},targets:["react","markdown"],policy:{flags:["wealth.assets.enabled"]}}),w=g({meta:{key:"wealth-snapshot.liabilities.list",version:"1.0.0",title:"Liabilities List",description:"List of liabilities and debts",domain:"finance",owners:["@wealth-snapshot"],tags:["finance","liabilities","list"],stability:h.Experimental,goal:"List liabilities",context:"Overview"},source:{type:"component",framework:"react",componentKey:"LiabilitiesList"},targets:["react","markdown"],policy:{flags:["wealth.liabilities.enabled"]}}),x=g({meta:{key:"wealth-snapshot.goals.list",version:"1.0.0",title:"Goals List",description:"List of financial goals with progress",domain:"finance",owners:["@wealth-snapshot"],tags:["finance","goals","list"],stability:h.Experimental,goal:"List goals",context:"Overview"},source:{type:"component",framework:"react",componentKey:"GoalsList"},targets:["react","markdown"],policy:{flags:["wealth.goals.enabled"]}});export{k as WealthDashboardPresentation,w as LiabilitiesListPresentation,x as GoalsListPresentation,v as AssetsListPresentation,q as AccountsListPresentation};
|
|
@@ -1,43 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
defineCapability,
|
|
4
|
-
StabilityEnum
|
|
5
|
-
} from "@contractspec/lib.contracts-spec";
|
|
6
|
-
var AccountsCapability = defineCapability({
|
|
7
|
-
meta: {
|
|
8
|
-
key: "accounts",
|
|
9
|
-
version: "1.0.0",
|
|
10
|
-
kind: "data",
|
|
11
|
-
stability: StabilityEnum.Experimental,
|
|
12
|
-
description: "Financial accounts tracking and aggregation",
|
|
13
|
-
owners: ["platform.finance"],
|
|
14
|
-
tags: ["accounts", "finance", "wealth"]
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
var NetWorthCapability = defineCapability({
|
|
18
|
-
meta: {
|
|
19
|
-
key: "net-worth",
|
|
20
|
-
version: "1.0.0",
|
|
21
|
-
kind: "ui",
|
|
22
|
-
stability: StabilityEnum.Experimental,
|
|
23
|
-
description: "Net worth visualization and tracking",
|
|
24
|
-
owners: ["platform.finance"],
|
|
25
|
-
tags: ["net-worth", "wealth", "dashboard"]
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
var GoalsCapability = defineCapability({
|
|
29
|
-
meta: {
|
|
30
|
-
key: "goals",
|
|
31
|
-
version: "1.0.0",
|
|
32
|
-
kind: "ui",
|
|
33
|
-
stability: StabilityEnum.Experimental,
|
|
34
|
-
description: "Financial goal setting and progress tracking",
|
|
35
|
-
owners: ["platform.finance"],
|
|
36
|
-
tags: ["goals", "planning", "wealth"]
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
export {
|
|
40
|
-
NetWorthCapability,
|
|
41
|
-
GoalsCapability,
|
|
42
|
-
AccountsCapability
|
|
43
|
-
};
|
|
1
|
+
import{defineCapability as g,StabilityEnum as h}from"@contractspec/lib.contracts-spec";var k=g({meta:{key:"accounts",version:"1.0.0",kind:"data",stability:h.Experimental,description:"Financial accounts tracking and aggregation",owners:["platform.finance"],tags:["accounts","finance","wealth"]}}),q=g({meta:{key:"net-worth",version:"1.0.0",kind:"ui",stability:h.Experimental,description:"Net worth visualization and tracking",owners:["platform.finance"],tags:["net-worth","wealth","dashboard"]}}),v=g({meta:{key:"goals",version:"1.0.0",kind:"ui",stability:h.Experimental,description:"Financial goal setting and progress tracking",owners:["platform.finance"],tags:["goals","planning","wealth"]}});export{q as NetWorthCapability,v as GoalsCapability,k as AccountsCapability};
|
|
@@ -1,79 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { defineFeature } from "@contractspec/lib.contracts-spec";
|
|
3
|
-
var WealthSnapshotFeature = defineFeature({
|
|
4
|
-
meta: {
|
|
5
|
-
key: "wealth-snapshot",
|
|
6
|
-
version: "1.0.0",
|
|
7
|
-
title: "Wealth Snapshot",
|
|
8
|
-
description: "Mini-app for accounts, assets, liabilities, goals, and net worth.",
|
|
9
|
-
domain: "finance",
|
|
10
|
-
owners: ["@wealth-snapshot"],
|
|
11
|
-
tags: ["finance", "net-worth", "goals"],
|
|
12
|
-
stability: "experimental"
|
|
13
|
-
},
|
|
14
|
-
operations: [
|
|
15
|
-
{ key: "wealth.account.create", version: "1.0.0" },
|
|
16
|
-
{ key: "wealth.asset.add", version: "1.0.0" },
|
|
17
|
-
{ key: "wealth.liability.add", version: "1.0.0" },
|
|
18
|
-
{ key: "wealth.goal.create", version: "1.0.0" },
|
|
19
|
-
{ key: "wealth.goal.update", version: "1.0.0" },
|
|
20
|
-
{ key: "wealth.networth.get", version: "1.0.0" }
|
|
21
|
-
],
|
|
22
|
-
events: [
|
|
23
|
-
{ key: "wealth.asset.added", version: "1.0.0" },
|
|
24
|
-
{ key: "wealth.liability.added", version: "1.0.0" },
|
|
25
|
-
{ key: "wealth.goal.updated", version: "1.0.0" },
|
|
26
|
-
{ key: "wealth.networth.snapshot_created", version: "1.0.0" }
|
|
27
|
-
],
|
|
28
|
-
presentations: [
|
|
29
|
-
{ key: "wealth-snapshot.dashboard", version: "1.0.0" },
|
|
30
|
-
{ key: "wealth-snapshot.accounts.list", version: "1.0.0" },
|
|
31
|
-
{ key: "wealth-snapshot.assets.list", version: "1.0.0" },
|
|
32
|
-
{ key: "wealth-snapshot.liabilities.list", version: "1.0.0" },
|
|
33
|
-
{ key: "wealth-snapshot.goals.list", version: "1.0.0" }
|
|
34
|
-
],
|
|
35
|
-
presentationsTargets: [
|
|
36
|
-
{
|
|
37
|
-
key: "wealth-snapshot.dashboard",
|
|
38
|
-
version: "1.0.0",
|
|
39
|
-
targets: ["react", "markdown"]
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
key: "wealth-snapshot.assets.list",
|
|
43
|
-
version: "1.0.0",
|
|
44
|
-
targets: ["react", "markdown"]
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
key: "wealth-snapshot.liabilities.list",
|
|
48
|
-
version: "1.0.0",
|
|
49
|
-
targets: ["react", "markdown"]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
key: "wealth-snapshot.goals.list",
|
|
53
|
-
version: "1.0.0",
|
|
54
|
-
targets: ["react", "markdown"]
|
|
55
|
-
}
|
|
56
|
-
],
|
|
57
|
-
capabilities: {
|
|
58
|
-
requires: [
|
|
59
|
-
{ key: "identity", version: "1.0.0" },
|
|
60
|
-
{ key: "audit-trail", version: "1.0.0" },
|
|
61
|
-
{ key: "notifications", version: "1.0.0" }
|
|
62
|
-
],
|
|
63
|
-
provides: [
|
|
64
|
-
{ key: "accounts", version: "1.0.0" },
|
|
65
|
-
{ key: "net-worth", version: "1.0.0" },
|
|
66
|
-
{ key: "goals", version: "1.0.0" }
|
|
67
|
-
]
|
|
68
|
-
},
|
|
69
|
-
telemetry: [{ key: "wealth-snapshot.telemetry", version: "1.0.0" }],
|
|
70
|
-
docs: [
|
|
71
|
-
"docs.examples.wealth-snapshot",
|
|
72
|
-
"docs.examples.wealth-snapshot.goal",
|
|
73
|
-
"docs.examples.wealth-snapshot.usage",
|
|
74
|
-
"docs.examples.wealth-snapshot.constraints"
|
|
75
|
-
]
|
|
76
|
-
});
|
|
77
|
-
export {
|
|
78
|
-
WealthSnapshotFeature
|
|
79
|
-
};
|
|
1
|
+
import{defineFeature as g}from"@contractspec/lib.contracts-spec";var j=g({meta:{key:"wealth-snapshot",version:"1.0.0",title:"Wealth Snapshot",description:"Mini-app for accounts, assets, liabilities, goals, and net worth.",domain:"finance",owners:["@wealth-snapshot"],tags:["finance","net-worth","goals"],stability:"experimental"},operations:[{key:"wealth.account.create",version:"1.0.0"},{key:"wealth.asset.add",version:"1.0.0"},{key:"wealth.liability.add",version:"1.0.0"},{key:"wealth.goal.create",version:"1.0.0"},{key:"wealth.goal.update",version:"1.0.0"},{key:"wealth.networth.get",version:"1.0.0"}],events:[{key:"wealth.asset.added",version:"1.0.0"},{key:"wealth.liability.added",version:"1.0.0"},{key:"wealth.goal.updated",version:"1.0.0"},{key:"wealth.networth.snapshot_created",version:"1.0.0"}],presentations:[{key:"wealth-snapshot.dashboard",version:"1.0.0"},{key:"wealth-snapshot.accounts.list",version:"1.0.0"},{key:"wealth-snapshot.assets.list",version:"1.0.0"},{key:"wealth-snapshot.liabilities.list",version:"1.0.0"},{key:"wealth-snapshot.goals.list",version:"1.0.0"}],presentationsTargets:[{key:"wealth-snapshot.dashboard",version:"1.0.0",targets:["react","markdown"]},{key:"wealth-snapshot.assets.list",version:"1.0.0",targets:["react","markdown"]},{key:"wealth-snapshot.liabilities.list",version:"1.0.0",targets:["react","markdown"]},{key:"wealth-snapshot.goals.list",version:"1.0.0",targets:["react","markdown"]}],capabilities:{requires:[{key:"identity",version:"1.0.0"},{key:"audit-trail",version:"1.0.0"},{key:"notifications",version:"1.0.0"}],provides:[{key:"accounts",version:"1.0.0"},{key:"net-worth",version:"1.0.0"},{key:"goals",version:"1.0.0"}]},telemetry:[{key:"wealth-snapshot.telemetry",version:"1.0.0"}],docs:["docs.examples.wealth-snapshot","docs.examples.wealth-snapshot.goal","docs.examples.wealth-snapshot.usage","docs.examples.wealth-snapshot.constraints"]});export{j as WealthSnapshotFeature};
|