@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,410 @@
1
+ import * as _contractspec_lib_schema176 from "@contractspec/lib.schema";
2
+ import * as _contractspec_lib_contracts7 from "@contractspec/lib.contracts";
3
+
4
+ //#region src/operations/index.d.ts
5
+ declare const AccountModel: _contractspec_lib_schema176.SchemaModel<{
6
+ id: {
7
+ type: _contractspec_lib_schema176.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ name: {
11
+ type: _contractspec_lib_schema176.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ type: {
15
+ type: _contractspec_lib_schema176.FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ currency: {
19
+ type: _contractspec_lib_schema176.FieldType<string, string>;
20
+ isOptional: false;
21
+ };
22
+ balance: {
23
+ type: _contractspec_lib_schema176.FieldType<number, number>;
24
+ isOptional: false;
25
+ };
26
+ }>;
27
+ declare const AssetModel: _contractspec_lib_schema176.SchemaModel<{
28
+ id: {
29
+ type: _contractspec_lib_schema176.FieldType<string, string>;
30
+ isOptional: false;
31
+ };
32
+ name: {
33
+ type: _contractspec_lib_schema176.FieldType<string, string>;
34
+ isOptional: false;
35
+ };
36
+ category: {
37
+ type: _contractspec_lib_schema176.FieldType<string, string>;
38
+ isOptional: false;
39
+ };
40
+ value: {
41
+ type: _contractspec_lib_schema176.FieldType<number, number>;
42
+ isOptional: false;
43
+ };
44
+ currency: {
45
+ type: _contractspec_lib_schema176.FieldType<string, string>;
46
+ isOptional: false;
47
+ };
48
+ }>;
49
+ declare const LiabilityModel: _contractspec_lib_schema176.SchemaModel<{
50
+ id: {
51
+ type: _contractspec_lib_schema176.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ name: {
55
+ type: _contractspec_lib_schema176.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ category: {
59
+ type: _contractspec_lib_schema176.FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ balance: {
63
+ type: _contractspec_lib_schema176.FieldType<number, number>;
64
+ isOptional: false;
65
+ };
66
+ currency: {
67
+ type: _contractspec_lib_schema176.FieldType<string, string>;
68
+ isOptional: false;
69
+ };
70
+ }>;
71
+ declare const GoalModel: _contractspec_lib_schema176.SchemaModel<{
72
+ id: {
73
+ type: _contractspec_lib_schema176.FieldType<string, string>;
74
+ isOptional: false;
75
+ };
76
+ name: {
77
+ type: _contractspec_lib_schema176.FieldType<string, string>;
78
+ isOptional: false;
79
+ };
80
+ targetAmount: {
81
+ type: _contractspec_lib_schema176.FieldType<number, number>;
82
+ isOptional: false;
83
+ };
84
+ currentAmount: {
85
+ type: _contractspec_lib_schema176.FieldType<number, number>;
86
+ isOptional: false;
87
+ };
88
+ currency: {
89
+ type: _contractspec_lib_schema176.FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ status: {
93
+ type: _contractspec_lib_schema176.FieldType<string, string>;
94
+ isOptional: false;
95
+ };
96
+ }>;
97
+ declare const NetWorthSnapshotModel: _contractspec_lib_schema176.SchemaModel<{
98
+ asOf: {
99
+ type: _contractspec_lib_schema176.FieldType<Date, string>;
100
+ isOptional: false;
101
+ };
102
+ totalAssets: {
103
+ type: _contractspec_lib_schema176.FieldType<number, number>;
104
+ isOptional: false;
105
+ };
106
+ totalLiabilities: {
107
+ type: _contractspec_lib_schema176.FieldType<number, number>;
108
+ isOptional: false;
109
+ };
110
+ netWorth: {
111
+ type: _contractspec_lib_schema176.FieldType<number, number>;
112
+ isOptional: false;
113
+ };
114
+ currency: {
115
+ type: _contractspec_lib_schema176.FieldType<string, string>;
116
+ isOptional: false;
117
+ };
118
+ }>;
119
+ declare const CreateAccountContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
120
+ name: {
121
+ type: _contractspec_lib_schema176.FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ type: {
125
+ type: _contractspec_lib_schema176.FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ currency: {
129
+ type: _contractspec_lib_schema176.FieldType<string, string>;
130
+ isOptional: true;
131
+ };
132
+ balance: {
133
+ type: _contractspec_lib_schema176.FieldType<number, number>;
134
+ isOptional: true;
135
+ };
136
+ orgId: {
137
+ type: _contractspec_lib_schema176.FieldType<string, string>;
138
+ isOptional: false;
139
+ };
140
+ }>, _contractspec_lib_schema176.SchemaModel<{
141
+ id: {
142
+ type: _contractspec_lib_schema176.FieldType<string, string>;
143
+ isOptional: false;
144
+ };
145
+ name: {
146
+ type: _contractspec_lib_schema176.FieldType<string, string>;
147
+ isOptional: false;
148
+ };
149
+ type: {
150
+ type: _contractspec_lib_schema176.FieldType<string, string>;
151
+ isOptional: false;
152
+ };
153
+ currency: {
154
+ type: _contractspec_lib_schema176.FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ balance: {
158
+ type: _contractspec_lib_schema176.FieldType<number, number>;
159
+ isOptional: false;
160
+ };
161
+ }>, undefined>;
162
+ declare const AddAssetContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
163
+ accountId: {
164
+ type: _contractspec_lib_schema176.FieldType<string, string>;
165
+ isOptional: true;
166
+ };
167
+ name: {
168
+ type: _contractspec_lib_schema176.FieldType<string, string>;
169
+ isOptional: false;
170
+ };
171
+ category: {
172
+ type: _contractspec_lib_schema176.FieldType<string, string>;
173
+ isOptional: false;
174
+ };
175
+ value: {
176
+ type: _contractspec_lib_schema176.FieldType<number, number>;
177
+ isOptional: false;
178
+ };
179
+ currency: {
180
+ type: _contractspec_lib_schema176.FieldType<string, string>;
181
+ isOptional: true;
182
+ };
183
+ orgId: {
184
+ type: _contractspec_lib_schema176.FieldType<string, string>;
185
+ isOptional: false;
186
+ };
187
+ }>, _contractspec_lib_schema176.SchemaModel<{
188
+ id: {
189
+ type: _contractspec_lib_schema176.FieldType<string, string>;
190
+ isOptional: false;
191
+ };
192
+ name: {
193
+ type: _contractspec_lib_schema176.FieldType<string, string>;
194
+ isOptional: false;
195
+ };
196
+ category: {
197
+ type: _contractspec_lib_schema176.FieldType<string, string>;
198
+ isOptional: false;
199
+ };
200
+ value: {
201
+ type: _contractspec_lib_schema176.FieldType<number, number>;
202
+ isOptional: false;
203
+ };
204
+ currency: {
205
+ type: _contractspec_lib_schema176.FieldType<string, string>;
206
+ isOptional: false;
207
+ };
208
+ }>, undefined>;
209
+ declare const AddLiabilityContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
210
+ accountId: {
211
+ type: _contractspec_lib_schema176.FieldType<string, string>;
212
+ isOptional: true;
213
+ };
214
+ name: {
215
+ type: _contractspec_lib_schema176.FieldType<string, string>;
216
+ isOptional: false;
217
+ };
218
+ category: {
219
+ type: _contractspec_lib_schema176.FieldType<string, string>;
220
+ isOptional: false;
221
+ };
222
+ balance: {
223
+ type: _contractspec_lib_schema176.FieldType<number, number>;
224
+ isOptional: false;
225
+ };
226
+ currency: {
227
+ type: _contractspec_lib_schema176.FieldType<string, string>;
228
+ isOptional: true;
229
+ };
230
+ orgId: {
231
+ type: _contractspec_lib_schema176.FieldType<string, string>;
232
+ isOptional: false;
233
+ };
234
+ }>, _contractspec_lib_schema176.SchemaModel<{
235
+ id: {
236
+ type: _contractspec_lib_schema176.FieldType<string, string>;
237
+ isOptional: false;
238
+ };
239
+ name: {
240
+ type: _contractspec_lib_schema176.FieldType<string, string>;
241
+ isOptional: false;
242
+ };
243
+ category: {
244
+ type: _contractspec_lib_schema176.FieldType<string, string>;
245
+ isOptional: false;
246
+ };
247
+ balance: {
248
+ type: _contractspec_lib_schema176.FieldType<number, number>;
249
+ isOptional: false;
250
+ };
251
+ currency: {
252
+ type: _contractspec_lib_schema176.FieldType<string, string>;
253
+ isOptional: false;
254
+ };
255
+ }>, undefined>;
256
+ declare const CreateGoalContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
257
+ name: {
258
+ type: _contractspec_lib_schema176.FieldType<string, string>;
259
+ isOptional: false;
260
+ };
261
+ targetAmount: {
262
+ type: _contractspec_lib_schema176.FieldType<number, number>;
263
+ isOptional: false;
264
+ };
265
+ currency: {
266
+ type: _contractspec_lib_schema176.FieldType<string, string>;
267
+ isOptional: true;
268
+ };
269
+ targetDate: {
270
+ type: _contractspec_lib_schema176.FieldType<Date, string>;
271
+ isOptional: true;
272
+ };
273
+ orgId: {
274
+ type: _contractspec_lib_schema176.FieldType<string, string>;
275
+ isOptional: false;
276
+ };
277
+ }>, _contractspec_lib_schema176.SchemaModel<{
278
+ id: {
279
+ type: _contractspec_lib_schema176.FieldType<string, string>;
280
+ isOptional: false;
281
+ };
282
+ name: {
283
+ type: _contractspec_lib_schema176.FieldType<string, string>;
284
+ isOptional: false;
285
+ };
286
+ targetAmount: {
287
+ type: _contractspec_lib_schema176.FieldType<number, number>;
288
+ isOptional: false;
289
+ };
290
+ currentAmount: {
291
+ type: _contractspec_lib_schema176.FieldType<number, number>;
292
+ isOptional: false;
293
+ };
294
+ currency: {
295
+ type: _contractspec_lib_schema176.FieldType<string, string>;
296
+ isOptional: false;
297
+ };
298
+ status: {
299
+ type: _contractspec_lib_schema176.FieldType<string, string>;
300
+ isOptional: false;
301
+ };
302
+ }>, undefined>;
303
+ declare const UpdateGoalContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
304
+ goalId: {
305
+ type: _contractspec_lib_schema176.FieldType<string, string>;
306
+ isOptional: false;
307
+ };
308
+ currentAmount: {
309
+ type: _contractspec_lib_schema176.FieldType<number, number>;
310
+ isOptional: false;
311
+ };
312
+ status: {
313
+ type: _contractspec_lib_schema176.FieldType<string, string>;
314
+ isOptional: true;
315
+ };
316
+ }>, _contractspec_lib_schema176.SchemaModel<{
317
+ id: {
318
+ type: _contractspec_lib_schema176.FieldType<string, string>;
319
+ isOptional: false;
320
+ };
321
+ name: {
322
+ type: _contractspec_lib_schema176.FieldType<string, string>;
323
+ isOptional: false;
324
+ };
325
+ targetAmount: {
326
+ type: _contractspec_lib_schema176.FieldType<number, number>;
327
+ isOptional: false;
328
+ };
329
+ currentAmount: {
330
+ type: _contractspec_lib_schema176.FieldType<number, number>;
331
+ isOptional: false;
332
+ };
333
+ currency: {
334
+ type: _contractspec_lib_schema176.FieldType<string, string>;
335
+ isOptional: false;
336
+ };
337
+ status: {
338
+ type: _contractspec_lib_schema176.FieldType<string, string>;
339
+ isOptional: false;
340
+ };
341
+ }>, undefined>;
342
+ declare const GetNetWorthContract: _contractspec_lib_contracts7.OperationSpec<_contractspec_lib_schema176.SchemaModel<{
343
+ orgId: {
344
+ type: _contractspec_lib_schema176.FieldType<string, string>;
345
+ isOptional: false;
346
+ };
347
+ from: {
348
+ type: _contractspec_lib_schema176.FieldType<Date, string>;
349
+ isOptional: true;
350
+ };
351
+ to: {
352
+ type: _contractspec_lib_schema176.FieldType<Date, string>;
353
+ isOptional: true;
354
+ };
355
+ }>, _contractspec_lib_schema176.SchemaModel<{
356
+ snapshots: {
357
+ type: _contractspec_lib_schema176.SchemaModel<{
358
+ asOf: {
359
+ type: _contractspec_lib_schema176.FieldType<Date, string>;
360
+ isOptional: false;
361
+ };
362
+ totalAssets: {
363
+ type: _contractspec_lib_schema176.FieldType<number, number>;
364
+ isOptional: false;
365
+ };
366
+ totalLiabilities: {
367
+ type: _contractspec_lib_schema176.FieldType<number, number>;
368
+ isOptional: false;
369
+ };
370
+ netWorth: {
371
+ type: _contractspec_lib_schema176.FieldType<number, number>;
372
+ isOptional: false;
373
+ };
374
+ currency: {
375
+ type: _contractspec_lib_schema176.FieldType<string, string>;
376
+ isOptional: false;
377
+ };
378
+ }>;
379
+ isArray: true;
380
+ isOptional: false;
381
+ };
382
+ latest: {
383
+ type: _contractspec_lib_schema176.SchemaModel<{
384
+ asOf: {
385
+ type: _contractspec_lib_schema176.FieldType<Date, string>;
386
+ isOptional: false;
387
+ };
388
+ totalAssets: {
389
+ type: _contractspec_lib_schema176.FieldType<number, number>;
390
+ isOptional: false;
391
+ };
392
+ totalLiabilities: {
393
+ type: _contractspec_lib_schema176.FieldType<number, number>;
394
+ isOptional: false;
395
+ };
396
+ netWorth: {
397
+ type: _contractspec_lib_schema176.FieldType<number, number>;
398
+ isOptional: false;
399
+ };
400
+ currency: {
401
+ type: _contractspec_lib_schema176.FieldType<string, string>;
402
+ isOptional: false;
403
+ };
404
+ }>;
405
+ isOptional: true;
406
+ };
407
+ }>, undefined>;
408
+ //#endregion
409
+ export { AccountModel, AddAssetContract, AddLiabilityContract, AssetModel, CreateAccountContract, CreateGoalContract, GetNetWorthContract, GoalModel, LiabilityModel, NetWorthSnapshotModel, UpdateGoalContract };
410
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/operations/index.ts"],"sourcesContent":[],"mappings":";;;;cAKa,0CAAY;;UAUvB,2BAAA,CAAA;;EAVW,CAAA;EAUX,IAAA,EAAA;;;;;+CAVuB,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYZ,CAAA;EAUX,QAAA,EAAA;;;;;+CAVqB,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAYV,CAAA;CAUX,CAAA;cAtBW,wCAAU;;UAUrB,2BAAA,CAAA;;;EAEyB,IAAA,EAAA;IAYd,IAAA,uCAWX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;IAXoB,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAaT,UAAA,EAAA,KAAA;;;;;;;cAzBA,cAyBqB,8BAzBP,WAyBO,CAAA;EAAA,EAAA,EAAA;IAuFrB,IAAA,EAtGX,2BAAA,CAAA,SAmHA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;EAbgC,QAAA,EAAA;;;;;;;EAAA,CAAA;EAerB,QAAA,EAAA;IAaX,IAAA,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