@burdenoff/microfe-brainyrich 2026.720.1 → 2026.730.1
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/brainyrich/hooks/useBrainyRichApi.d.ts +22 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.js +89 -47
- package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
- package/dist/brainyrich/pages/RiskPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/RiskPage.js +433 -213
- package/dist/brainyrich/pages/RiskPage.js.map +1 -1
- package/dist/brainyrich/types/bra.d.ts +27 -0
- package/dist/brainyrich/types/bra.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Connection, BraNetWorthSummary, BraAccount, BraAccountStatus, BraPortfolio, BraPortfolioStatus, BraHolding, BraModelPortfolio, BraGoal, BraGoalStatus, BraGoalFunding, BraHousehold, BraHouseholdStatus, BraInsight, BraInsightSeverity, BraInsightStatus, BraTransaction, BraTransactionType, BraRebalanceProposal, BraRebalanceStatus, BraCreateAccountInput, BraUpdateAccountInput, BraCreatePortfolioInput, BraUpdatePortfolioInput, BraCreateHoldingInput, BraUpdateHoldingInput, BraCreateModelPortfolioInput, BraCreateGoalInput, BraUpdateGoalInput, BraLinkGoalFundingInput, BraCreateHouseholdInput, BraUpdateHouseholdInput, BraCreateInsightInput, BraCreateTransactionInput, BraCreateRebalanceProposalInput, PaginationInput } from '../types/bra';
|
|
1
|
+
import { Connection, BraNetWorthSummary, BraAccount, BraAccountStatus, BraPortfolio, BraPortfolioStatus, BraHolding, BraModelPortfolio, BraGoal, BraGoalStatus, BraGoalFunding, BraHousehold, BraHouseholdStatus, BraInsight, BraInsightSeverity, BraInsightStatus, BraTransaction, BraTransactionType, BraRebalanceProposal, BraRebalanceStatus, BraPortfolioRiskReport, BraRiskSummary, BraCreateAccountInput, BraUpdateAccountInput, BraCreatePortfolioInput, BraUpdatePortfolioInput, BraCreateHoldingInput, BraUpdateHoldingInput, BraCreateModelPortfolioInput, BraCreateGoalInput, BraUpdateGoalInput, BraLinkGoalFundingInput, BraCreateHouseholdInput, BraUpdateHouseholdInput, BraCreateInsightInput, BraCreateTransactionInput, BraCreateRebalanceProposalInput, PaginationInput } from '../types/bra';
|
|
2
2
|
|
|
3
3
|
export interface AccountFilters {
|
|
4
4
|
householdId?: string;
|
|
@@ -1423,6 +1423,27 @@ export declare const useCreateInsight: () => import('@tanstack/react-query').Use
|
|
|
1423
1423
|
export declare const useAcknowledgeInsight: () => import('@tanstack/react-query').UseMutationResult<BraInsight, unknown, string, unknown>;
|
|
1424
1424
|
export declare const useDismissInsight: () => import('@tanstack/react-query').UseMutationResult<BraInsight, unknown, string, unknown>;
|
|
1425
1425
|
export declare const useResolveInsight: () => import('@tanstack/react-query').UseMutationResult<BraInsight, unknown, string, unknown>;
|
|
1426
|
+
/**
|
|
1427
|
+
* Real, explainable risk signals computed live from the portfolio's own
|
|
1428
|
+
* holdings/allocation data — every signal carries its formula/threshold under
|
|
1429
|
+
* `metrics`. Read-only; nothing is persisted until `useGenerateRiskInsights`
|
|
1430
|
+
* is called. Disabled until a portfolio is selected.
|
|
1431
|
+
*/
|
|
1432
|
+
export declare const usePortfolioRiskSignals: (portfolioId: string | undefined) => import('@tanstack/react-query').UseQueryResult<BraPortfolioRiskReport, Error>;
|
|
1433
|
+
/**
|
|
1434
|
+
* Persists the currently-computed signals as `BraInsight` rows (idempotent —
|
|
1435
|
+
* re-running updates the existing OPEN insight of the same kind). Refreshes
|
|
1436
|
+
* both the signals report and the shared insights list on success.
|
|
1437
|
+
*/
|
|
1438
|
+
export declare const useGenerateRiskInsights: () => import('@tanstack/react-query').UseMutationResult<BraInsight[], unknown, string, unknown>;
|
|
1439
|
+
/**
|
|
1440
|
+
* OPTIONAL LLM-generated plain-language restatement of the already-computed
|
|
1441
|
+
* signals — never the source of the numbers itself. `generated: false` +
|
|
1442
|
+
* `reason` when no provider key is configured; the deterministic signals
|
|
1443
|
+
* above always work regardless. Fetched on-demand (`refetch`), not on mount,
|
|
1444
|
+
* since it invokes an LLM call.
|
|
1445
|
+
*/
|
|
1446
|
+
export declare const usePortfolioRiskSummary: (portfolioId: string | undefined) => import('@tanstack/react-query').UseQueryResult<BraRiskSummary, Error>;
|
|
1426
1447
|
export declare const useTransactions: (params?: TransactionFilters) => {
|
|
1427
1448
|
data: BraTransaction[];
|
|
1428
1449
|
pageInfo: import('../types/bra').BraPageInfo | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBrainyRichApi.d.ts","sourceRoot":"","sources":["../../../src/brainyrich/hooks/useBrainyRichApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EAEjB,OAAO,EACP,aAAa,EACb,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,+BAA+B,EAC/B,eAAe,EAChB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"useBrainyRichApi.d.ts","sourceRoot":"","sources":["../../../src/brainyrich/hooks/useBrainyRichApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,UAAU,E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,QAAQ,SAAM,GACb,OAAO,CAAC,UAAU,EAAE,CAAC,CAcvB;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,UAAS,IAAI,CAAC,kBAAkB,EAAE,YAAY,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOtF,CAAC;AAEF,0DAA0D;AAC1D,wBAAsB,gBAAgB,CACpC,aAAa,EAAE,MAAM,GAAG,SAAS,EACjC,OAAO,GAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAAM,EAChD,QAAQ,SAAM,GACb,OAAO,CAAC,UAAU,EAAE,CAAC,CAcvB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,UAAS,IAAI,CAAC,cAAc,EAAE,YAAY,CAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO9E,CAAC"}
|
|
@@ -74,6 +74,16 @@ var d = {
|
|
|
74
74
|
"insight",
|
|
75
75
|
e
|
|
76
76
|
],
|
|
77
|
+
riskSignals: (e) => [
|
|
78
|
+
"brainyrich",
|
|
79
|
+
"risk-signals",
|
|
80
|
+
e
|
|
81
|
+
],
|
|
82
|
+
riskSummary: (e) => [
|
|
83
|
+
"brainyrich",
|
|
84
|
+
"risk-summary",
|
|
85
|
+
e
|
|
86
|
+
],
|
|
77
87
|
transactions: ["brainyrich", "transactions"],
|
|
78
88
|
rebalances: ["brainyrich", "rebalance-proposals"],
|
|
79
89
|
health: ["brainyrich", "health"]
|
|
@@ -85,7 +95,7 @@ var d = {
|
|
|
85
95
|
braNetWorthSummary(ownerId: $ownerId) { ${ne} }
|
|
86
96
|
}`, { ownerId: t }, n)).braNetWorthSummary
|
|
87
97
|
});
|
|
88
|
-
},
|
|
98
|
+
}, ie = (t = {}) => {
|
|
89
99
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
90
100
|
queryKey: [...d.accounts, t],
|
|
91
101
|
queryFn: async () => (await c(`query BraListAccounts($householdId: ID, $status: BraAccountStatus, $pagination: PaginationInput) {
|
|
@@ -104,7 +114,7 @@ var d = {
|
|
|
104
114
|
data: r.data?.items ?? [],
|
|
105
115
|
pageInfo: r.data?.pageInfo
|
|
106
116
|
};
|
|
107
|
-
},
|
|
117
|
+
}, C = (t) => {
|
|
108
118
|
let { apiGatewayUrl: n } = e();
|
|
109
119
|
return a({
|
|
110
120
|
queryKey: d.account(t ?? ""),
|
|
@@ -126,7 +136,7 @@ var d = {
|
|
|
126
136
|
};
|
|
127
137
|
}
|
|
128
138
|
});
|
|
129
|
-
},
|
|
139
|
+
}, w = () => {
|
|
130
140
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
131
141
|
return i({
|
|
132
142
|
mutationFn: async (e) => (await l(`mutation BraCreateAccount($input: BraCreateAccountInput!) {
|
|
@@ -139,7 +149,7 @@ var d = {
|
|
|
139
149
|
}
|
|
140
150
|
})
|
|
141
151
|
});
|
|
142
|
-
},
|
|
152
|
+
}, T = () => {
|
|
143
153
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
144
154
|
return i({
|
|
145
155
|
mutationFn: async (e) => (await l(`mutation BraUpdateAccount($id: ID!, $input: BraUpdateAccountInput!) {
|
|
@@ -152,7 +162,7 @@ var d = {
|
|
|
152
162
|
}
|
|
153
163
|
})
|
|
154
164
|
});
|
|
155
|
-
},
|
|
165
|
+
}, E = () => {
|
|
156
166
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
157
167
|
return i({
|
|
158
168
|
mutationFn: async (e) => (await l("mutation BraArchiveAccount($id: ID!) { braArchiveAccount(id: $id) }", { id: e }, t)).braArchiveAccount,
|
|
@@ -163,7 +173,7 @@ var d = {
|
|
|
163
173
|
}
|
|
164
174
|
})
|
|
165
175
|
});
|
|
166
|
-
},
|
|
176
|
+
}, D = (t = {}) => {
|
|
167
177
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
168
178
|
queryKey: [...d.portfolios, t],
|
|
169
179
|
queryFn: async () => (await c(`query BraListPortfolios($householdId: ID, $status: BraPortfolioStatus, $pagination: PaginationInput) {
|
|
@@ -182,7 +192,7 @@ var d = {
|
|
|
182
192
|
data: r.data?.items ?? [],
|
|
183
193
|
pageInfo: r.data?.pageInfo
|
|
184
194
|
};
|
|
185
|
-
},
|
|
195
|
+
}, O = (t) => {
|
|
186
196
|
let { apiGatewayUrl: n } = e();
|
|
187
197
|
return a({
|
|
188
198
|
queryKey: d.portfolio(t ?? ""),
|
|
@@ -202,7 +212,7 @@ var d = {
|
|
|
202
212
|
};
|
|
203
213
|
}
|
|
204
214
|
});
|
|
205
|
-
},
|
|
215
|
+
}, k = () => {
|
|
206
216
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
207
217
|
return i({
|
|
208
218
|
mutationFn: async (e) => (await l(`mutation BraCreatePortfolio($input: BraCreatePortfolioInput!) {
|
|
@@ -213,7 +223,7 @@ var d = {
|
|
|
213
223
|
onSuccess: () => n.invalidateQueries({ queryKey: d.portfolios })
|
|
214
224
|
})
|
|
215
225
|
});
|
|
216
|
-
},
|
|
226
|
+
}, A = () => {
|
|
217
227
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
218
228
|
return i({
|
|
219
229
|
mutationFn: async (e) => (await l(`mutation BraUpdatePortfolio($id: ID!, $input: BraUpdatePortfolioInput!) {
|
|
@@ -226,7 +236,7 @@ var d = {
|
|
|
226
236
|
}
|
|
227
237
|
})
|
|
228
238
|
});
|
|
229
|
-
},
|
|
239
|
+
}, j = () => {
|
|
230
240
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
231
241
|
return i({
|
|
232
242
|
mutationFn: async (e) => (await l("mutation BraArchivePortfolio($id: ID!) { braArchivePortfolio(id: $id) }", { id: e }, t)).braArchivePortfolio,
|
|
@@ -235,7 +245,7 @@ var d = {
|
|
|
235
245
|
onSuccess: () => n.invalidateQueries({ queryKey: d.portfolios })
|
|
236
246
|
})
|
|
237
247
|
});
|
|
238
|
-
},
|
|
248
|
+
}, M = (t) => {
|
|
239
249
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
240
250
|
queryKey: [...d.holdings, t],
|
|
241
251
|
enabled: !!(t.accountId || t.portfolioId),
|
|
@@ -253,7 +263,7 @@ var d = {
|
|
|
253
263
|
...r,
|
|
254
264
|
data: r.data ?? []
|
|
255
265
|
};
|
|
256
|
-
},
|
|
266
|
+
}, N = () => {
|
|
257
267
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
258
268
|
return i({
|
|
259
269
|
mutationFn: async (e) => (await l(`mutation BraCreateHolding($input: BraCreateHoldingInput!) {
|
|
@@ -266,7 +276,7 @@ var d = {
|
|
|
266
276
|
}
|
|
267
277
|
})
|
|
268
278
|
});
|
|
269
|
-
},
|
|
279
|
+
}, P = () => {
|
|
270
280
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
271
281
|
return i({
|
|
272
282
|
mutationFn: async (e) => (await l(`mutation BraUpdateHolding($id: ID!, $input: BraUpdateHoldingInput!) {
|
|
@@ -279,7 +289,7 @@ var d = {
|
|
|
279
289
|
}
|
|
280
290
|
})
|
|
281
291
|
});
|
|
282
|
-
},
|
|
292
|
+
}, F = () => {
|
|
283
293
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
284
294
|
return i({
|
|
285
295
|
mutationFn: async (e) => (await l("mutation BraDeleteHolding($id: ID!) { braDeleteHolding(id: $id) }", { id: e }, t)).braDeleteHolding,
|
|
@@ -290,27 +300,27 @@ var d = {
|
|
|
290
300
|
}
|
|
291
301
|
})
|
|
292
302
|
});
|
|
293
|
-
},
|
|
303
|
+
}, I = `
|
|
294
304
|
${te}
|
|
295
305
|
allocations { items { ${_} } pageInfo { cursor hasMore } }
|
|
296
|
-
`,
|
|
306
|
+
`, L = (e) => ({
|
|
297
307
|
...e,
|
|
298
308
|
allocations: e.allocations.items
|
|
299
|
-
}),
|
|
309
|
+
}), R = () => {
|
|
300
310
|
let { apiGatewayUrl: t } = e(), n = a({
|
|
301
311
|
queryKey: d.modelPortfolios,
|
|
302
312
|
queryFn: async () => (await c(`query BraListModelPortfolios {
|
|
303
313
|
braListModelPortfolios {
|
|
304
|
-
items { ${
|
|
314
|
+
items { ${I} }
|
|
305
315
|
pageInfo { cursor hasMore }
|
|
306
316
|
}
|
|
307
|
-
}`, {}, t)).braListModelPortfolios.items.map(
|
|
317
|
+
}`, {}, t)).braListModelPortfolios.items.map(L)
|
|
308
318
|
});
|
|
309
319
|
return {
|
|
310
320
|
...n,
|
|
311
321
|
data: n.data ?? []
|
|
312
322
|
};
|
|
313
|
-
},
|
|
323
|
+
}, z = (t) => {
|
|
314
324
|
let { apiGatewayUrl: n } = e();
|
|
315
325
|
return a({
|
|
316
326
|
queryKey: d.modelPortfolio(t ?? ""),
|
|
@@ -318,18 +328,18 @@ var d = {
|
|
|
318
328
|
queryFn: async () => {
|
|
319
329
|
let e = await c(`query BraModelPortfolio($id: ID!) {
|
|
320
330
|
braModelPortfolio(id: $id) {
|
|
321
|
-
${
|
|
331
|
+
${I}
|
|
322
332
|
}
|
|
323
333
|
}`, { id: t }, n);
|
|
324
|
-
return e.braModelPortfolio ?
|
|
334
|
+
return e.braModelPortfolio ? L(e.braModelPortfolio) : null;
|
|
325
335
|
}
|
|
326
336
|
});
|
|
327
|
-
},
|
|
337
|
+
}, B = () => {
|
|
328
338
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
329
339
|
return i({
|
|
330
|
-
mutationFn: async (e) =>
|
|
340
|
+
mutationFn: async (e) => L((await l(`mutation BraCreateModelPortfolio($input: BraCreateModelPortfolioInput!) {
|
|
331
341
|
braCreateModelPortfolio(input: $input) {
|
|
332
|
-
${
|
|
342
|
+
${I}
|
|
333
343
|
}
|
|
334
344
|
}`, { input: e }, t)).braCreateModelPortfolio),
|
|
335
345
|
...u({
|
|
@@ -337,7 +347,7 @@ var d = {
|
|
|
337
347
|
onSuccess: () => n.invalidateQueries({ queryKey: d.modelPortfolios })
|
|
338
348
|
})
|
|
339
349
|
});
|
|
340
|
-
},
|
|
350
|
+
}, V = (t = {}) => {
|
|
341
351
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
342
352
|
queryKey: [...d.goals, t],
|
|
343
353
|
queryFn: async () => (await c(`query BraListGoals($householdId: ID, $status: BraGoalStatus, $pagination: PaginationInput) {
|
|
@@ -356,7 +366,7 @@ var d = {
|
|
|
356
366
|
data: r.data?.items ?? [],
|
|
357
367
|
pageInfo: r.data?.pageInfo
|
|
358
368
|
};
|
|
359
|
-
},
|
|
369
|
+
}, H = (t) => {
|
|
360
370
|
let { apiGatewayUrl: n } = e();
|
|
361
371
|
return a({
|
|
362
372
|
queryKey: d.goal(t ?? ""),
|
|
@@ -376,7 +386,7 @@ var d = {
|
|
|
376
386
|
};
|
|
377
387
|
}
|
|
378
388
|
});
|
|
379
|
-
},
|
|
389
|
+
}, U = (t) => {
|
|
380
390
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
381
391
|
queryKey: d.goalFundings(t ?? ""),
|
|
382
392
|
enabled: !!t,
|
|
@@ -391,7 +401,7 @@ var d = {
|
|
|
391
401
|
...r,
|
|
392
402
|
data: r.data ?? []
|
|
393
403
|
};
|
|
394
|
-
},
|
|
404
|
+
}, W = () => {
|
|
395
405
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
396
406
|
return i({
|
|
397
407
|
mutationFn: async (e) => (await l(`mutation BraCreateGoal($input: BraCreateGoalInput!) {
|
|
@@ -402,7 +412,7 @@ var d = {
|
|
|
402
412
|
onSuccess: () => n.invalidateQueries({ queryKey: d.goals })
|
|
403
413
|
})
|
|
404
414
|
});
|
|
405
|
-
},
|
|
415
|
+
}, G = () => {
|
|
406
416
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
407
417
|
return i({
|
|
408
418
|
mutationFn: async (e) => (await l(`mutation BraUpdateGoal($id: ID!, $input: BraUpdateGoalInput!) {
|
|
@@ -415,7 +425,7 @@ var d = {
|
|
|
415
425
|
}
|
|
416
426
|
})
|
|
417
427
|
});
|
|
418
|
-
},
|
|
428
|
+
}, K = () => {
|
|
419
429
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
420
430
|
return i({
|
|
421
431
|
mutationFn: async (e) => (await l("mutation BraArchiveGoal($id: ID!) { braArchiveGoal(id: $id) }", { id: e }, t)).braArchiveGoal,
|
|
@@ -592,7 +602,39 @@ var d = {
|
|
|
592
602
|
}
|
|
593
603
|
})
|
|
594
604
|
});
|
|
595
|
-
}, he = () => {
|
|
605
|
+
}, he = "kind insightType severity title detail metrics", ge = (t) => {
|
|
606
|
+
let { apiGatewayUrl: n } = e();
|
|
607
|
+
return a({
|
|
608
|
+
queryKey: d.riskSignals(t ?? ""),
|
|
609
|
+
enabled: !!t,
|
|
610
|
+
queryFn: async () => (await c(`query BraPortfolioRiskSignals($portfolioId: ID!) {
|
|
611
|
+
braPortfolioRiskSignals(portfolioId: $portfolioId) {
|
|
612
|
+
portfolioId workspaceId asOf totalValue holdingsConsidered
|
|
613
|
+
signals { ${he} }
|
|
614
|
+
}
|
|
615
|
+
}`, { portfolioId: t }, n)).braPortfolioRiskSignals
|
|
616
|
+
});
|
|
617
|
+
}, _e = () => {
|
|
618
|
+
let { apiGatewayUrl: t } = e(), n = o();
|
|
619
|
+
return i({
|
|
620
|
+
mutationFn: async (e) => (await l(`mutation BraGenerateRiskInsights($portfolioId: ID!) {
|
|
621
|
+
braGenerateRiskInsights(portfolioId: $portfolioId) { ${x} }
|
|
622
|
+
}`, { portfolioId: e }, t)).braGenerateRiskInsights,
|
|
623
|
+
...u({
|
|
624
|
+
success: (e) => `${e.length} risk insight${e.length === 1 ? "" : "s"} recorded`,
|
|
625
|
+
onSuccess: (e, t) => {
|
|
626
|
+
n.invalidateQueries({ queryKey: d.insights }), n.invalidateQueries({ queryKey: d.riskSignals(t) });
|
|
627
|
+
}
|
|
628
|
+
})
|
|
629
|
+
});
|
|
630
|
+
}, ve = (t) => {
|
|
631
|
+
let { apiGatewayUrl: n } = e();
|
|
632
|
+
return a({
|
|
633
|
+
queryKey: d.riskSummary(t ?? ""),
|
|
634
|
+
enabled: !1,
|
|
635
|
+
queryFn: async () => (await c("query BraPortfolioRiskSummary($portfolioId: ID!) {\n braPortfolioRiskSummary(portfolioId: $portfolioId) {\n generated summary provider reason signalsConsidered\n }\n }", { portfolioId: t }, n)).braPortfolioRiskSummary
|
|
636
|
+
});
|
|
637
|
+
}, ye = () => {
|
|
596
638
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
597
639
|
return i({
|
|
598
640
|
mutationFn: async (e) => (await l(`mutation BraRecordTransaction($input: BraCreateTransactionInput!) {
|
|
@@ -605,7 +647,7 @@ var d = {
|
|
|
605
647
|
}
|
|
606
648
|
})
|
|
607
649
|
});
|
|
608
|
-
},
|
|
650
|
+
}, be = (t = {}) => {
|
|
609
651
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
610
652
|
queryKey: [...d.rebalances, t],
|
|
611
653
|
queryFn: async () => (await c(`query BraListRebalanceProposals($householdId: ID, $portfolioId: ID, $status: BraRebalanceStatus) {
|
|
@@ -623,7 +665,7 @@ var d = {
|
|
|
623
665
|
...r,
|
|
624
666
|
data: r.data ?? []
|
|
625
667
|
};
|
|
626
|
-
},
|
|
668
|
+
}, xe = () => {
|
|
627
669
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
628
670
|
return i({
|
|
629
671
|
mutationFn: async (e) => (await l(`mutation BraCreateRebalanceProposal($input: BraCreateRebalanceProposalInput!) {
|
|
@@ -634,7 +676,7 @@ var d = {
|
|
|
634
676
|
onSuccess: () => n.invalidateQueries({ queryKey: d.rebalances })
|
|
635
677
|
})
|
|
636
678
|
});
|
|
637
|
-
},
|
|
679
|
+
}, Se = () => {
|
|
638
680
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
639
681
|
return i({
|
|
640
682
|
mutationFn: async (e) => (await l(`mutation BraTransitionRebalanceProposal($id: ID!, $status: BraRebalanceStatus!) {
|
|
@@ -674,7 +716,7 @@ function X(t) {
|
|
|
674
716
|
}
|
|
675
717
|
};
|
|
676
718
|
}
|
|
677
|
-
var
|
|
719
|
+
var Z = (e = {}) => X({
|
|
678
720
|
queryKey: [
|
|
679
721
|
...d.accounts,
|
|
680
722
|
"paged",
|
|
@@ -692,7 +734,7 @@ var ye = (e = {}) => X({
|
|
|
692
734
|
pagination: t
|
|
693
735
|
}),
|
|
694
736
|
select: (e) => e.braListAccounts
|
|
695
|
-
}),
|
|
737
|
+
}), Ce = (e = {}) => X({
|
|
696
738
|
queryKey: [
|
|
697
739
|
...d.portfolios,
|
|
698
740
|
"paged",
|
|
@@ -710,7 +752,7 @@ var ye = (e = {}) => X({
|
|
|
710
752
|
pagination: t
|
|
711
753
|
}),
|
|
712
754
|
select: (e) => e.braListPortfolios
|
|
713
|
-
}),
|
|
755
|
+
}), we = (e = {}) => X({
|
|
714
756
|
queryKey: [
|
|
715
757
|
...d.goals,
|
|
716
758
|
"paged",
|
|
@@ -728,7 +770,7 @@ var ye = (e = {}) => X({
|
|
|
728
770
|
pagination: t
|
|
729
771
|
}),
|
|
730
772
|
select: (e) => e.braListGoals
|
|
731
|
-
}),
|
|
773
|
+
}), Te = (e = {}) => X({
|
|
732
774
|
queryKey: [
|
|
733
775
|
...d.households,
|
|
734
776
|
"paged",
|
|
@@ -745,7 +787,7 @@ var ye = (e = {}) => X({
|
|
|
745
787
|
pagination: t
|
|
746
788
|
}),
|
|
747
789
|
select: (e) => e.braListHouseholds
|
|
748
|
-
}),
|
|
790
|
+
}), Ee = (e = {}) => X({
|
|
749
791
|
queryKey: [
|
|
750
792
|
...d.insights,
|
|
751
793
|
"paged",
|
|
@@ -765,7 +807,7 @@ var ye = (e = {}) => X({
|
|
|
765
807
|
pagination: t
|
|
766
808
|
}),
|
|
767
809
|
select: (e) => e.braListInsights
|
|
768
|
-
}),
|
|
810
|
+
}), De = (e = {}) => X({
|
|
769
811
|
queryKey: [
|
|
770
812
|
...d.transactions,
|
|
771
813
|
"paged",
|
|
@@ -796,7 +838,7 @@ async function Q(e, t = 200, n = 500) {
|
|
|
796
838
|
}
|
|
797
839
|
return r;
|
|
798
840
|
}
|
|
799
|
-
async function
|
|
841
|
+
async function Oe(e, t = {}, n = 200) {
|
|
800
842
|
return Q(async (n) => (await c(`query BraListTransactions($accountId: ID, $type: BraTransactionType, $pagination: PaginationInput) {
|
|
801
843
|
braListTransactions(accountId: $accountId, type: $type, pagination: $pagination) {
|
|
802
844
|
items { ${m} }
|
|
@@ -808,7 +850,7 @@ async function we(e, t = {}, n = 200) {
|
|
|
808
850
|
pagination: n
|
|
809
851
|
}, e)).braListTransactions, n);
|
|
810
852
|
}
|
|
811
|
-
async function
|
|
853
|
+
async function ke(e, t = {}, n = 200) {
|
|
812
854
|
return Q(async (n) => (await c(`query BraListHoldings($accountId: ID, $portfolioId: ID, $pagination: PaginationInput) {
|
|
813
855
|
braListHoldings(accountId: $accountId, portfolioId: $portfolioId, pagination: $pagination) {
|
|
814
856
|
items { ${p} }
|
|
@@ -820,14 +862,14 @@ async function Te(e, t = {}, n = 200) {
|
|
|
820
862
|
pagination: n
|
|
821
863
|
}, e)).braListHoldings, n);
|
|
822
864
|
}
|
|
823
|
-
var
|
|
865
|
+
var Ae = (t = {}) => {
|
|
824
866
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
825
867
|
queryKey: [
|
|
826
868
|
...d.transactions,
|
|
827
869
|
"all",
|
|
828
870
|
t
|
|
829
871
|
],
|
|
830
|
-
queryFn: () =>
|
|
872
|
+
queryFn: () => Oe(n, t)
|
|
831
873
|
});
|
|
832
874
|
return {
|
|
833
875
|
...r,
|
|
@@ -846,7 +888,7 @@ async function $(e, t = {}, n = 200) {
|
|
|
846
888
|
pagination: n
|
|
847
889
|
}, e)).braListAccounts, n);
|
|
848
890
|
}
|
|
849
|
-
var
|
|
891
|
+
var je = (t = {}) => {
|
|
850
892
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
851
893
|
queryKey: [
|
|
852
894
|
...d.accounts,
|
|
@@ -861,6 +903,6 @@ var De = (t = {}) => {
|
|
|
861
903
|
};
|
|
862
904
|
};
|
|
863
905
|
//#endregion
|
|
864
|
-
export { $ as fetchAllAccounts,
|
|
906
|
+
export { $ as fetchAllAccounts, ke as fetchAllHoldings, C as useAccount, ie as useAccounts, fe as useAcknowledgeInsight, je as useAllAccounts, Ae as useAllTransactions, E as useArchiveAccount, K as useArchiveGoal, le as useArchiveHousehold, j as useArchivePortfolio, w as useCreateAccount, W as useCreateGoal, N as useCreateHolding, se as useCreateHousehold, de as useCreateInsight, B as useCreateModelPortfolio, k as useCreatePortfolio, xe as useCreateRebalanceProposal, F as useDeleteHolding, pe as useDismissInsight, _e as useGenerateRiskInsights, H as useGoal, U as useGoalFundings, V as useGoals, M as useHoldings, oe as useHousehold, ae as useHouseholds, ue as useInsights, J as useLinkGoalFunding, z as useModelPortfolio, R as useModelPortfolios, re as useNetWorthSummary, Z as usePagedAccounts, we as usePagedGoals, Te as usePagedHouseholds, Ee as usePagedInsights, Ce as usePagedPortfolios, De as usePagedTransactions, O as usePortfolio, ge as usePortfolioRiskSignals, ve as usePortfolioRiskSummary, D as usePortfolios, be as useRebalanceProposals, q as useRecalcGoalProjection, ye as useRecordTransaction, me as useResolveInsight, Se as useTransitionRebalanceProposal, Y as useUnlinkGoalFunding, T as useUpdateAccount, G as useUpdateGoal, P as useUpdateHolding, ce as useUpdateHousehold, A as useUpdatePortfolio };
|
|
865
907
|
|
|
866
908
|
//# sourceMappingURL=useBrainyRichApi.js.map
|