@contractspec/example.wealth-snapshot 1.56.1 → 1.58.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 (72) hide show
  1. package/dist/browser/docs/index.js +93 -0
  2. package/dist/browser/docs/wealth-snapshot.docblock.js +93 -0
  3. package/dist/browser/entities/index.js +191 -0
  4. package/dist/browser/events.js +111 -0
  5. package/dist/browser/example.js +42 -0
  6. package/dist/browser/handlers/index.js +5 -0
  7. package/dist/browser/index.js +885 -0
  8. package/dist/browser/operations/index.js +238 -0
  9. package/dist/browser/presentations/index.js +11 -0
  10. package/dist/browser/presentations.js +124 -0
  11. package/dist/browser/wealth-snapshot.capability.js +40 -0
  12. package/dist/browser/wealth-snapshot.feature.js +72 -0
  13. package/dist/docs/index.d.ts +2 -1
  14. package/dist/docs/index.d.ts.map +1 -0
  15. package/dist/docs/index.js +94 -1
  16. package/dist/docs/wealth-snapshot.docblock.d.ts +2 -1
  17. package/dist/docs/wealth-snapshot.docblock.d.ts.map +1 -0
  18. package/dist/docs/wealth-snapshot.docblock.js +45 -55
  19. package/dist/entities/index.d.ts +120 -125
  20. package/dist/entities/index.d.ts.map +1 -1
  21. package/dist/entities/index.js +181 -219
  22. package/dist/events.d.ts +167 -173
  23. package/dist/events.d.ts.map +1 -1
  24. package/dist/events.js +103 -172
  25. package/dist/example.d.ts +2 -6
  26. package/dist/example.d.ts.map +1 -1
  27. package/dist/example.js +40 -54
  28. package/dist/handlers/index.d.ts +1 -4
  29. package/dist/handlers/index.d.ts.map +1 -1
  30. package/dist/handlers/index.js +5 -8
  31. package/dist/index.d.ts +12 -16
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +882 -23
  34. package/dist/node/docs/index.js +93 -0
  35. package/dist/node/docs/wealth-snapshot.docblock.js +93 -0
  36. package/dist/node/entities/index.js +191 -0
  37. package/dist/node/events.js +111 -0
  38. package/dist/node/example.js +42 -0
  39. package/dist/node/handlers/index.js +5 -0
  40. package/dist/node/index.js +885 -0
  41. package/dist/node/operations/index.js +238 -0
  42. package/dist/node/presentations/index.js +11 -0
  43. package/dist/node/presentations.js +124 -0
  44. package/dist/node/wealth-snapshot.capability.js +40 -0
  45. package/dist/node/wealth-snapshot.feature.js +72 -0
  46. package/dist/operations/index.d.ts +392 -398
  47. package/dist/operations/index.d.ts.map +1 -1
  48. package/dist/operations/index.js +237 -425
  49. package/dist/presentations/index.d.ts +1 -4
  50. package/dist/presentations/index.d.ts.map +1 -1
  51. package/dist/presentations/index.js +11 -11
  52. package/dist/presentations.d.ts +5 -10
  53. package/dist/presentations.d.ts.map +1 -1
  54. package/dist/presentations.js +120 -127
  55. package/dist/wealth-snapshot.capability.d.ts +3 -8
  56. package/dist/wealth-snapshot.capability.d.ts.map +1 -1
  57. package/dist/wealth-snapshot.capability.js +41 -46
  58. package/dist/wealth-snapshot.feature.d.ts +1 -6
  59. package/dist/wealth-snapshot.feature.d.ts.map +1 -1
  60. package/dist/wealth-snapshot.feature.js +71 -139
  61. package/package.json +144 -37
  62. package/dist/docs/wealth-snapshot.docblock.js.map +0 -1
  63. package/dist/entities/index.js.map +0 -1
  64. package/dist/events.js.map +0 -1
  65. package/dist/example.js.map +0 -1
  66. package/dist/handlers/index.js.map +0 -1
  67. package/dist/index.js.map +0 -1
  68. package/dist/operations/index.js.map +0 -1
  69. package/dist/presentations/index.js.map +0 -1
  70. package/dist/presentations.js.map +0 -1
  71. package/dist/wealth-snapshot.capability.js.map +0 -1
  72. package/dist/wealth-snapshot.feature.js.map +0 -1
package/dist/events.d.ts CHANGED
@@ -1,225 +1,219 @@
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<{
1
+ export declare const AssetAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
115
2
  assetId: {
116
- type: _contractspec_lib_schema0.FieldType<string, string>;
117
- isOptional: false;
3
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
118
5
  };
119
6
  category: {
120
- type: _contractspec_lib_schema0.FieldType<string, string>;
121
- isOptional: false;
7
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
122
9
  };
123
10
  value: {
124
- type: _contractspec_lib_schema0.FieldType<number, number>;
125
- isOptional: false;
11
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
12
+ isOptional: false;
126
13
  };
127
14
  currency: {
128
- type: _contractspec_lib_schema0.FieldType<string, string>;
129
- isOptional: false;
15
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
16
+ isOptional: false;
130
17
  };
131
18
  orgId: {
132
- type: _contractspec_lib_schema0.FieldType<string, string>;
133
- isOptional: false;
19
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
20
+ isOptional: false;
134
21
  };
135
22
  timestamp: {
136
- type: _contractspec_lib_schema0.FieldType<Date, string>;
137
- isOptional: false;
23
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
24
+ isOptional: false;
138
25
  };
139
- }>>;
140
- LiabilityAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
26
+ }>>;
27
+ export declare const LiabilityAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
141
28
  liabilityId: {
142
- type: _contractspec_lib_schema0.FieldType<string, string>;
143
- isOptional: false;
29
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
30
+ isOptional: false;
144
31
  };
145
32
  category: {
146
- type: _contractspec_lib_schema0.FieldType<string, string>;
147
- isOptional: false;
33
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
34
+ isOptional: false;
148
35
  };
149
36
  balance: {
150
- type: _contractspec_lib_schema0.FieldType<number, number>;
151
- isOptional: false;
37
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
38
+ isOptional: false;
152
39
  };
153
40
  currency: {
154
- type: _contractspec_lib_schema0.FieldType<string, string>;
155
- isOptional: false;
41
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
42
+ isOptional: false;
156
43
  };
157
44
  orgId: {
158
- type: _contractspec_lib_schema0.FieldType<string, string>;
159
- isOptional: false;
45
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
46
+ isOptional: false;
160
47
  };
161
48
  timestamp: {
162
- type: _contractspec_lib_schema0.FieldType<Date, string>;
163
- isOptional: false;
49
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
50
+ isOptional: false;
164
51
  };
165
- }>>;
166
- GoalUpdatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
52
+ }>>;
53
+ export declare const GoalUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
167
54
  goalId: {
168
- type: _contractspec_lib_schema0.FieldType<string, string>;
169
- isOptional: false;
55
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
56
+ isOptional: false;
170
57
  };
171
58
  status: {
172
- type: _contractspec_lib_schema0.FieldType<string, string>;
173
- isOptional: false;
59
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
60
+ isOptional: false;
174
61
  };
175
62
  currentAmount: {
176
- type: _contractspec_lib_schema0.FieldType<number, number>;
177
- isOptional: false;
63
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
64
+ isOptional: false;
178
65
  };
179
66
  targetAmount: {
180
- type: _contractspec_lib_schema0.FieldType<number, number>;
181
- isOptional: false;
67
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
68
+ isOptional: false;
182
69
  };
183
70
  currency: {
184
- type: _contractspec_lib_schema0.FieldType<string, string>;
185
- isOptional: false;
71
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
72
+ isOptional: false;
186
73
  };
187
74
  orgId: {
188
- type: _contractspec_lib_schema0.FieldType<string, string>;
189
- isOptional: false;
75
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
76
+ isOptional: false;
190
77
  };
191
78
  timestamp: {
192
- type: _contractspec_lib_schema0.FieldType<Date, string>;
193
- isOptional: false;
79
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
80
+ isOptional: false;
194
81
  };
195
- }>>;
196
- NetWorthSnapshotCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
82
+ }>>;
83
+ export declare const NetWorthSnapshotCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
197
84
  netWorth: {
198
- type: _contractspec_lib_schema0.FieldType<number, number>;
199
- isOptional: false;
85
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
86
+ isOptional: false;
200
87
  };
201
88
  totalAssets: {
202
- type: _contractspec_lib_schema0.FieldType<number, number>;
203
- isOptional: false;
89
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
90
+ isOptional: false;
204
91
  };
205
92
  totalLiabilities: {
206
- type: _contractspec_lib_schema0.FieldType<number, number>;
207
- isOptional: false;
93
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
94
+ isOptional: false;
208
95
  };
209
96
  currency: {
210
- type: _contractspec_lib_schema0.FieldType<string, string>;
211
- isOptional: false;
97
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
98
+ isOptional: false;
212
99
  };
213
100
  orgId: {
214
- type: _contractspec_lib_schema0.FieldType<string, string>;
215
- isOptional: false;
101
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
102
+ isOptional: false;
216
103
  };
217
104
  asOf: {
218
- type: _contractspec_lib_schema0.FieldType<Date, string>;
219
- isOptional: false;
105
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
106
+ isOptional: false;
220
107
  };
221
- }>>;
108
+ }>>;
109
+ export declare const WealthSnapshotEvents: {
110
+ AssetAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
111
+ assetId: {
112
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ category: {
116
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
117
+ isOptional: false;
118
+ };
119
+ value: {
120
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
121
+ isOptional: false;
122
+ };
123
+ currency: {
124
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
125
+ isOptional: false;
126
+ };
127
+ orgId: {
128
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
129
+ isOptional: false;
130
+ };
131
+ timestamp: {
132
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
133
+ isOptional: false;
134
+ };
135
+ }>>;
136
+ LiabilityAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
137
+ liabilityId: {
138
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
139
+ isOptional: false;
140
+ };
141
+ category: {
142
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
143
+ isOptional: false;
144
+ };
145
+ balance: {
146
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
147
+ isOptional: false;
148
+ };
149
+ currency: {
150
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
151
+ isOptional: false;
152
+ };
153
+ orgId: {
154
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ timestamp: {
158
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
159
+ isOptional: false;
160
+ };
161
+ }>>;
162
+ GoalUpdatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
163
+ goalId: {
164
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
165
+ isOptional: false;
166
+ };
167
+ status: {
168
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
169
+ isOptional: false;
170
+ };
171
+ currentAmount: {
172
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
173
+ isOptional: false;
174
+ };
175
+ targetAmount: {
176
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
177
+ isOptional: false;
178
+ };
179
+ currency: {
180
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
181
+ isOptional: false;
182
+ };
183
+ orgId: {
184
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
185
+ isOptional: false;
186
+ };
187
+ timestamp: {
188
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
189
+ isOptional: false;
190
+ };
191
+ }>>;
192
+ NetWorthSnapshotCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
193
+ netWorth: {
194
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
195
+ isOptional: false;
196
+ };
197
+ totalAssets: {
198
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
199
+ isOptional: false;
200
+ };
201
+ totalLiabilities: {
202
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
203
+ isOptional: false;
204
+ };
205
+ currency: {
206
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
207
+ isOptional: false;
208
+ };
209
+ orgId: {
210
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
211
+ isOptional: false;
212
+ };
213
+ asOf: {
214
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
215
+ isOptional: false;
216
+ };
217
+ }>>;
222
218
  };
223
- //#endregion
224
- export { AssetAddedEvent, GoalUpdatedEvent, LiabilityAddedEvent, NetWorthSnapshotCreatedEvent, WealthSnapshotEvents };
225
219
  //# sourceMappingURL=events.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AA2CA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;GAU1B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;GAU9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU3B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;GAwBvC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAC"}