@burdenoff/microfe-brainyrich 2026.720.1 → 2026.731.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 +37 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.js +125 -46
- 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 +682 -332
- package/dist/brainyrich/pages/RiskPage.js.map +1 -1
- package/dist/brainyrich/types/bra.d.ts +50 -0
- package/dist/brainyrich/types/bra.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -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, BraTaxLossReport, BraTaxLossThresholds, 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,42 @@ 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>;
|
|
1447
|
+
/**
|
|
1448
|
+
* Preview-only: real tax-loss-harvesting opportunities for one portfolio,
|
|
1449
|
+
* computed live with the given (or documented default) thresholds. Never
|
|
1450
|
+
* persists anything — see `useHarvestTaxLossInsights` for that.
|
|
1451
|
+
*/
|
|
1452
|
+
export declare const useTaxLossOpportunities: (portfolioId: string | undefined, thresholds?: BraTaxLossThresholds) => import('@tanstack/react-query').UseQueryResult<BraTaxLossReport, Error>;
|
|
1453
|
+
/**
|
|
1454
|
+
* Persists the currently-computed tax-loss opportunities as `BraInsight`
|
|
1455
|
+
* rows (type TAX_OPPORTUNITY, idempotent per symbol). Detection/flagging
|
|
1456
|
+
* only — never executes a trade.
|
|
1457
|
+
*/
|
|
1458
|
+
export declare const useHarvestTaxLossInsights: () => import('@tanstack/react-query').UseMutationResult<BraInsight[], unknown, {
|
|
1459
|
+
portfolioId: string;
|
|
1460
|
+
thresholds?: BraTaxLossThresholds;
|
|
1461
|
+
}, unknown>;
|
|
1426
1462
|
export declare const useTransactions: (params?: TransactionFilters) => {
|
|
1427
1463
|
data: BraTransaction[];
|
|
1428
1464
|
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,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,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,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;AA4MtB,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,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B,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,21 @@ 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
|
+
],
|
|
87
|
+
taxLossOpportunities: (e) => [
|
|
88
|
+
"brainyrich",
|
|
89
|
+
"tax-loss-opportunities",
|
|
90
|
+
e
|
|
91
|
+
],
|
|
77
92
|
transactions: ["brainyrich", "transactions"],
|
|
78
93
|
rebalances: ["brainyrich", "rebalance-proposals"],
|
|
79
94
|
health: ["brainyrich", "health"]
|
|
@@ -85,7 +100,7 @@ var d = {
|
|
|
85
100
|
braNetWorthSummary(ownerId: $ownerId) { ${ne} }
|
|
86
101
|
}`, { ownerId: t }, n)).braNetWorthSummary
|
|
87
102
|
});
|
|
88
|
-
},
|
|
103
|
+
}, ie = (t = {}) => {
|
|
89
104
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
90
105
|
queryKey: [...d.accounts, t],
|
|
91
106
|
queryFn: async () => (await c(`query BraListAccounts($householdId: ID, $status: BraAccountStatus, $pagination: PaginationInput) {
|
|
@@ -104,7 +119,7 @@ var d = {
|
|
|
104
119
|
data: r.data?.items ?? [],
|
|
105
120
|
pageInfo: r.data?.pageInfo
|
|
106
121
|
};
|
|
107
|
-
},
|
|
122
|
+
}, C = (t) => {
|
|
108
123
|
let { apiGatewayUrl: n } = e();
|
|
109
124
|
return a({
|
|
110
125
|
queryKey: d.account(t ?? ""),
|
|
@@ -126,7 +141,7 @@ var d = {
|
|
|
126
141
|
};
|
|
127
142
|
}
|
|
128
143
|
});
|
|
129
|
-
},
|
|
144
|
+
}, w = () => {
|
|
130
145
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
131
146
|
return i({
|
|
132
147
|
mutationFn: async (e) => (await l(`mutation BraCreateAccount($input: BraCreateAccountInput!) {
|
|
@@ -139,7 +154,7 @@ var d = {
|
|
|
139
154
|
}
|
|
140
155
|
})
|
|
141
156
|
});
|
|
142
|
-
},
|
|
157
|
+
}, T = () => {
|
|
143
158
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
144
159
|
return i({
|
|
145
160
|
mutationFn: async (e) => (await l(`mutation BraUpdateAccount($id: ID!, $input: BraUpdateAccountInput!) {
|
|
@@ -152,7 +167,7 @@ var d = {
|
|
|
152
167
|
}
|
|
153
168
|
})
|
|
154
169
|
});
|
|
155
|
-
},
|
|
170
|
+
}, E = () => {
|
|
156
171
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
157
172
|
return i({
|
|
158
173
|
mutationFn: async (e) => (await l("mutation BraArchiveAccount($id: ID!) { braArchiveAccount(id: $id) }", { id: e }, t)).braArchiveAccount,
|
|
@@ -163,7 +178,7 @@ var d = {
|
|
|
163
178
|
}
|
|
164
179
|
})
|
|
165
180
|
});
|
|
166
|
-
},
|
|
181
|
+
}, D = (t = {}) => {
|
|
167
182
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
168
183
|
queryKey: [...d.portfolios, t],
|
|
169
184
|
queryFn: async () => (await c(`query BraListPortfolios($householdId: ID, $status: BraPortfolioStatus, $pagination: PaginationInput) {
|
|
@@ -182,7 +197,7 @@ var d = {
|
|
|
182
197
|
data: r.data?.items ?? [],
|
|
183
198
|
pageInfo: r.data?.pageInfo
|
|
184
199
|
};
|
|
185
|
-
},
|
|
200
|
+
}, O = (t) => {
|
|
186
201
|
let { apiGatewayUrl: n } = e();
|
|
187
202
|
return a({
|
|
188
203
|
queryKey: d.portfolio(t ?? ""),
|
|
@@ -202,7 +217,7 @@ var d = {
|
|
|
202
217
|
};
|
|
203
218
|
}
|
|
204
219
|
});
|
|
205
|
-
},
|
|
220
|
+
}, k = () => {
|
|
206
221
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
207
222
|
return i({
|
|
208
223
|
mutationFn: async (e) => (await l(`mutation BraCreatePortfolio($input: BraCreatePortfolioInput!) {
|
|
@@ -213,7 +228,7 @@ var d = {
|
|
|
213
228
|
onSuccess: () => n.invalidateQueries({ queryKey: d.portfolios })
|
|
214
229
|
})
|
|
215
230
|
});
|
|
216
|
-
},
|
|
231
|
+
}, A = () => {
|
|
217
232
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
218
233
|
return i({
|
|
219
234
|
mutationFn: async (e) => (await l(`mutation BraUpdatePortfolio($id: ID!, $input: BraUpdatePortfolioInput!) {
|
|
@@ -226,7 +241,7 @@ var d = {
|
|
|
226
241
|
}
|
|
227
242
|
})
|
|
228
243
|
});
|
|
229
|
-
},
|
|
244
|
+
}, j = () => {
|
|
230
245
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
231
246
|
return i({
|
|
232
247
|
mutationFn: async (e) => (await l("mutation BraArchivePortfolio($id: ID!) { braArchivePortfolio(id: $id) }", { id: e }, t)).braArchivePortfolio,
|
|
@@ -235,7 +250,7 @@ var d = {
|
|
|
235
250
|
onSuccess: () => n.invalidateQueries({ queryKey: d.portfolios })
|
|
236
251
|
})
|
|
237
252
|
});
|
|
238
|
-
},
|
|
253
|
+
}, M = (t) => {
|
|
239
254
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
240
255
|
queryKey: [...d.holdings, t],
|
|
241
256
|
enabled: !!(t.accountId || t.portfolioId),
|
|
@@ -253,7 +268,7 @@ var d = {
|
|
|
253
268
|
...r,
|
|
254
269
|
data: r.data ?? []
|
|
255
270
|
};
|
|
256
|
-
},
|
|
271
|
+
}, N = () => {
|
|
257
272
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
258
273
|
return i({
|
|
259
274
|
mutationFn: async (e) => (await l(`mutation BraCreateHolding($input: BraCreateHoldingInput!) {
|
|
@@ -266,7 +281,7 @@ var d = {
|
|
|
266
281
|
}
|
|
267
282
|
})
|
|
268
283
|
});
|
|
269
|
-
},
|
|
284
|
+
}, P = () => {
|
|
270
285
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
271
286
|
return i({
|
|
272
287
|
mutationFn: async (e) => (await l(`mutation BraUpdateHolding($id: ID!, $input: BraUpdateHoldingInput!) {
|
|
@@ -279,7 +294,7 @@ var d = {
|
|
|
279
294
|
}
|
|
280
295
|
})
|
|
281
296
|
});
|
|
282
|
-
},
|
|
297
|
+
}, F = () => {
|
|
283
298
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
284
299
|
return i({
|
|
285
300
|
mutationFn: async (e) => (await l("mutation BraDeleteHolding($id: ID!) { braDeleteHolding(id: $id) }", { id: e }, t)).braDeleteHolding,
|
|
@@ -290,27 +305,27 @@ var d = {
|
|
|
290
305
|
}
|
|
291
306
|
})
|
|
292
307
|
});
|
|
293
|
-
},
|
|
308
|
+
}, I = `
|
|
294
309
|
${te}
|
|
295
310
|
allocations { items { ${_} } pageInfo { cursor hasMore } }
|
|
296
|
-
`,
|
|
311
|
+
`, L = (e) => ({
|
|
297
312
|
...e,
|
|
298
313
|
allocations: e.allocations.items
|
|
299
|
-
}),
|
|
314
|
+
}), R = () => {
|
|
300
315
|
let { apiGatewayUrl: t } = e(), n = a({
|
|
301
316
|
queryKey: d.modelPortfolios,
|
|
302
317
|
queryFn: async () => (await c(`query BraListModelPortfolios {
|
|
303
318
|
braListModelPortfolios {
|
|
304
|
-
items { ${
|
|
319
|
+
items { ${I} }
|
|
305
320
|
pageInfo { cursor hasMore }
|
|
306
321
|
}
|
|
307
|
-
}`, {}, t)).braListModelPortfolios.items.map(
|
|
322
|
+
}`, {}, t)).braListModelPortfolios.items.map(L)
|
|
308
323
|
});
|
|
309
324
|
return {
|
|
310
325
|
...n,
|
|
311
326
|
data: n.data ?? []
|
|
312
327
|
};
|
|
313
|
-
},
|
|
328
|
+
}, z = (t) => {
|
|
314
329
|
let { apiGatewayUrl: n } = e();
|
|
315
330
|
return a({
|
|
316
331
|
queryKey: d.modelPortfolio(t ?? ""),
|
|
@@ -318,18 +333,18 @@ var d = {
|
|
|
318
333
|
queryFn: async () => {
|
|
319
334
|
let e = await c(`query BraModelPortfolio($id: ID!) {
|
|
320
335
|
braModelPortfolio(id: $id) {
|
|
321
|
-
${
|
|
336
|
+
${I}
|
|
322
337
|
}
|
|
323
338
|
}`, { id: t }, n);
|
|
324
|
-
return e.braModelPortfolio ?
|
|
339
|
+
return e.braModelPortfolio ? L(e.braModelPortfolio) : null;
|
|
325
340
|
}
|
|
326
341
|
});
|
|
327
|
-
},
|
|
342
|
+
}, B = () => {
|
|
328
343
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
329
344
|
return i({
|
|
330
|
-
mutationFn: async (e) =>
|
|
345
|
+
mutationFn: async (e) => L((await l(`mutation BraCreateModelPortfolio($input: BraCreateModelPortfolioInput!) {
|
|
331
346
|
braCreateModelPortfolio(input: $input) {
|
|
332
|
-
${
|
|
347
|
+
${I}
|
|
333
348
|
}
|
|
334
349
|
}`, { input: e }, t)).braCreateModelPortfolio),
|
|
335
350
|
...u({
|
|
@@ -337,7 +352,7 @@ var d = {
|
|
|
337
352
|
onSuccess: () => n.invalidateQueries({ queryKey: d.modelPortfolios })
|
|
338
353
|
})
|
|
339
354
|
});
|
|
340
|
-
},
|
|
355
|
+
}, V = (t = {}) => {
|
|
341
356
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
342
357
|
queryKey: [...d.goals, t],
|
|
343
358
|
queryFn: async () => (await c(`query BraListGoals($householdId: ID, $status: BraGoalStatus, $pagination: PaginationInput) {
|
|
@@ -356,7 +371,7 @@ var d = {
|
|
|
356
371
|
data: r.data?.items ?? [],
|
|
357
372
|
pageInfo: r.data?.pageInfo
|
|
358
373
|
};
|
|
359
|
-
},
|
|
374
|
+
}, H = (t) => {
|
|
360
375
|
let { apiGatewayUrl: n } = e();
|
|
361
376
|
return a({
|
|
362
377
|
queryKey: d.goal(t ?? ""),
|
|
@@ -376,7 +391,7 @@ var d = {
|
|
|
376
391
|
};
|
|
377
392
|
}
|
|
378
393
|
});
|
|
379
|
-
},
|
|
394
|
+
}, U = (t) => {
|
|
380
395
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
381
396
|
queryKey: d.goalFundings(t ?? ""),
|
|
382
397
|
enabled: !!t,
|
|
@@ -391,7 +406,7 @@ var d = {
|
|
|
391
406
|
...r,
|
|
392
407
|
data: r.data ?? []
|
|
393
408
|
};
|
|
394
|
-
},
|
|
409
|
+
}, W = () => {
|
|
395
410
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
396
411
|
return i({
|
|
397
412
|
mutationFn: async (e) => (await l(`mutation BraCreateGoal($input: BraCreateGoalInput!) {
|
|
@@ -402,7 +417,7 @@ var d = {
|
|
|
402
417
|
onSuccess: () => n.invalidateQueries({ queryKey: d.goals })
|
|
403
418
|
})
|
|
404
419
|
});
|
|
405
|
-
},
|
|
420
|
+
}, G = () => {
|
|
406
421
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
407
422
|
return i({
|
|
408
423
|
mutationFn: async (e) => (await l(`mutation BraUpdateGoal($id: ID!, $input: BraUpdateGoalInput!) {
|
|
@@ -415,7 +430,7 @@ var d = {
|
|
|
415
430
|
}
|
|
416
431
|
})
|
|
417
432
|
});
|
|
418
|
-
},
|
|
433
|
+
}, K = () => {
|
|
419
434
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
420
435
|
return i({
|
|
421
436
|
mutationFn: async (e) => (await l("mutation BraArchiveGoal($id: ID!) { braArchiveGoal(id: $id) }", { id: e }, t)).braArchiveGoal,
|
|
@@ -592,7 +607,71 @@ var d = {
|
|
|
592
607
|
}
|
|
593
608
|
})
|
|
594
609
|
});
|
|
595
|
-
}, he = () => {
|
|
610
|
+
}, he = "kind insightType severity title detail metrics", ge = (t) => {
|
|
611
|
+
let { apiGatewayUrl: n } = e();
|
|
612
|
+
return a({
|
|
613
|
+
queryKey: d.riskSignals(t ?? ""),
|
|
614
|
+
enabled: !!t,
|
|
615
|
+
queryFn: async () => (await c(`query BraPortfolioRiskSignals($portfolioId: ID!) {
|
|
616
|
+
braPortfolioRiskSignals(portfolioId: $portfolioId) {
|
|
617
|
+
portfolioId workspaceId asOf totalValue holdingsConsidered
|
|
618
|
+
signals { ${he} }
|
|
619
|
+
}
|
|
620
|
+
}`, { portfolioId: t }, n)).braPortfolioRiskSignals
|
|
621
|
+
});
|
|
622
|
+
}, _e = () => {
|
|
623
|
+
let { apiGatewayUrl: t } = e(), n = o();
|
|
624
|
+
return i({
|
|
625
|
+
mutationFn: async (e) => (await l(`mutation BraGenerateRiskInsights($portfolioId: ID!) {
|
|
626
|
+
braGenerateRiskInsights(portfolioId: $portfolioId) { ${x} }
|
|
627
|
+
}`, { portfolioId: e }, t)).braGenerateRiskInsights,
|
|
628
|
+
...u({
|
|
629
|
+
success: (e) => `${e.length} risk insight${e.length === 1 ? "" : "s"} recorded`,
|
|
630
|
+
onSuccess: (e, t) => {
|
|
631
|
+
n.invalidateQueries({ queryKey: d.insights }), n.invalidateQueries({ queryKey: d.riskSignals(t) });
|
|
632
|
+
}
|
|
633
|
+
})
|
|
634
|
+
});
|
|
635
|
+
}, ve = (t) => {
|
|
636
|
+
let { apiGatewayUrl: n } = e();
|
|
637
|
+
return a({
|
|
638
|
+
queryKey: d.riskSummary(t ?? ""),
|
|
639
|
+
enabled: !1,
|
|
640
|
+
queryFn: async () => (await c("query BraPortfolioRiskSummary($portfolioId: ID!) {\n braPortfolioRiskSummary(portfolioId: $portfolioId) {\n generated summary provider reason signalsConsidered\n }\n }", { portfolioId: t }, n)).braPortfolioRiskSummary
|
|
641
|
+
});
|
|
642
|
+
}, ye = "symbol marketValue costBasis unrealizedLoss lossPctOfPortfolio severity washSaleRisk washSaleReason metrics", be = (t, n) => {
|
|
643
|
+
let { apiGatewayUrl: r } = e();
|
|
644
|
+
return a({
|
|
645
|
+
queryKey: [...d.taxLossOpportunities(t ?? ""), n],
|
|
646
|
+
enabled: !!t,
|
|
647
|
+
queryFn: async () => (await c(`query BraTaxLossOpportunities($portfolioId: ID!, $thresholds: BraTaxLossThresholdInput) {
|
|
648
|
+
braTaxLossOpportunities(portfolioId: $portfolioId, thresholds: $thresholds) {
|
|
649
|
+
portfolioId workspaceId asOf
|
|
650
|
+
thresholds { minLossAmount minLossPct }
|
|
651
|
+
opportunities { ${ye} }
|
|
652
|
+
}
|
|
653
|
+
}`, {
|
|
654
|
+
portfolioId: t,
|
|
655
|
+
thresholds: n ?? null
|
|
656
|
+
}, r)).braTaxLossOpportunities
|
|
657
|
+
});
|
|
658
|
+
}, xe = () => {
|
|
659
|
+
let { apiGatewayUrl: t } = e(), n = o();
|
|
660
|
+
return i({
|
|
661
|
+
mutationFn: async ({ portfolioId: e, thresholds: n }) => (await l(`mutation BraHarvestTaxLossInsights($portfolioId: ID!, $thresholds: BraTaxLossThresholdInput) {
|
|
662
|
+
braHarvestTaxLossInsights(portfolioId: $portfolioId, thresholds: $thresholds) { ${x} }
|
|
663
|
+
}`, {
|
|
664
|
+
portfolioId: e,
|
|
665
|
+
thresholds: n ?? null
|
|
666
|
+
}, t)).braHarvestTaxLossInsights,
|
|
667
|
+
...u({
|
|
668
|
+
success: (e) => `${e.length} tax-loss insight${e.length === 1 ? "" : "s"} recorded`,
|
|
669
|
+
onSuccess: (e, t) => {
|
|
670
|
+
n.invalidateQueries({ queryKey: d.insights }), n.invalidateQueries({ queryKey: d.taxLossOpportunities(t.portfolioId) });
|
|
671
|
+
}
|
|
672
|
+
})
|
|
673
|
+
});
|
|
674
|
+
}, Se = () => {
|
|
596
675
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
597
676
|
return i({
|
|
598
677
|
mutationFn: async (e) => (await l(`mutation BraRecordTransaction($input: BraCreateTransactionInput!) {
|
|
@@ -605,7 +684,7 @@ var d = {
|
|
|
605
684
|
}
|
|
606
685
|
})
|
|
607
686
|
});
|
|
608
|
-
},
|
|
687
|
+
}, Ce = (t = {}) => {
|
|
609
688
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
610
689
|
queryKey: [...d.rebalances, t],
|
|
611
690
|
queryFn: async () => (await c(`query BraListRebalanceProposals($householdId: ID, $portfolioId: ID, $status: BraRebalanceStatus) {
|
|
@@ -623,7 +702,7 @@ var d = {
|
|
|
623
702
|
...r,
|
|
624
703
|
data: r.data ?? []
|
|
625
704
|
};
|
|
626
|
-
},
|
|
705
|
+
}, we = () => {
|
|
627
706
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
628
707
|
return i({
|
|
629
708
|
mutationFn: async (e) => (await l(`mutation BraCreateRebalanceProposal($input: BraCreateRebalanceProposalInput!) {
|
|
@@ -634,7 +713,7 @@ var d = {
|
|
|
634
713
|
onSuccess: () => n.invalidateQueries({ queryKey: d.rebalances })
|
|
635
714
|
})
|
|
636
715
|
});
|
|
637
|
-
},
|
|
716
|
+
}, Te = () => {
|
|
638
717
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
639
718
|
return i({
|
|
640
719
|
mutationFn: async (e) => (await l(`mutation BraTransitionRebalanceProposal($id: ID!, $status: BraRebalanceStatus!) {
|
|
@@ -674,7 +753,7 @@ function X(t) {
|
|
|
674
753
|
}
|
|
675
754
|
};
|
|
676
755
|
}
|
|
677
|
-
var
|
|
756
|
+
var Ee = (e = {}) => X({
|
|
678
757
|
queryKey: [
|
|
679
758
|
...d.accounts,
|
|
680
759
|
"paged",
|
|
@@ -692,7 +771,7 @@ var ye = (e = {}) => X({
|
|
|
692
771
|
pagination: t
|
|
693
772
|
}),
|
|
694
773
|
select: (e) => e.braListAccounts
|
|
695
|
-
}),
|
|
774
|
+
}), De = (e = {}) => X({
|
|
696
775
|
queryKey: [
|
|
697
776
|
...d.portfolios,
|
|
698
777
|
"paged",
|
|
@@ -710,7 +789,7 @@ var ye = (e = {}) => X({
|
|
|
710
789
|
pagination: t
|
|
711
790
|
}),
|
|
712
791
|
select: (e) => e.braListPortfolios
|
|
713
|
-
}),
|
|
792
|
+
}), Oe = (e = {}) => X({
|
|
714
793
|
queryKey: [
|
|
715
794
|
...d.goals,
|
|
716
795
|
"paged",
|
|
@@ -728,7 +807,7 @@ var ye = (e = {}) => X({
|
|
|
728
807
|
pagination: t
|
|
729
808
|
}),
|
|
730
809
|
select: (e) => e.braListGoals
|
|
731
|
-
}),
|
|
810
|
+
}), ke = (e = {}) => X({
|
|
732
811
|
queryKey: [
|
|
733
812
|
...d.households,
|
|
734
813
|
"paged",
|
|
@@ -765,7 +844,7 @@ var ye = (e = {}) => X({
|
|
|
765
844
|
pagination: t
|
|
766
845
|
}),
|
|
767
846
|
select: (e) => e.braListInsights
|
|
768
|
-
}),
|
|
847
|
+
}), Ae = (e = {}) => X({
|
|
769
848
|
queryKey: [
|
|
770
849
|
...d.transactions,
|
|
771
850
|
"paged",
|
|
@@ -796,7 +875,7 @@ async function Q(e, t = 200, n = 500) {
|
|
|
796
875
|
}
|
|
797
876
|
return r;
|
|
798
877
|
}
|
|
799
|
-
async function
|
|
878
|
+
async function je(e, t = {}, n = 200) {
|
|
800
879
|
return Q(async (n) => (await c(`query BraListTransactions($accountId: ID, $type: BraTransactionType, $pagination: PaginationInput) {
|
|
801
880
|
braListTransactions(accountId: $accountId, type: $type, pagination: $pagination) {
|
|
802
881
|
items { ${m} }
|
|
@@ -808,7 +887,7 @@ async function we(e, t = {}, n = 200) {
|
|
|
808
887
|
pagination: n
|
|
809
888
|
}, e)).braListTransactions, n);
|
|
810
889
|
}
|
|
811
|
-
async function
|
|
890
|
+
async function Me(e, t = {}, n = 200) {
|
|
812
891
|
return Q(async (n) => (await c(`query BraListHoldings($accountId: ID, $portfolioId: ID, $pagination: PaginationInput) {
|
|
813
892
|
braListHoldings(accountId: $accountId, portfolioId: $portfolioId, pagination: $pagination) {
|
|
814
893
|
items { ${p} }
|
|
@@ -820,14 +899,14 @@ async function Te(e, t = {}, n = 200) {
|
|
|
820
899
|
pagination: n
|
|
821
900
|
}, e)).braListHoldings, n);
|
|
822
901
|
}
|
|
823
|
-
var
|
|
902
|
+
var Ne = (t = {}) => {
|
|
824
903
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
825
904
|
queryKey: [
|
|
826
905
|
...d.transactions,
|
|
827
906
|
"all",
|
|
828
907
|
t
|
|
829
908
|
],
|
|
830
|
-
queryFn: () =>
|
|
909
|
+
queryFn: () => je(n, t)
|
|
831
910
|
});
|
|
832
911
|
return {
|
|
833
912
|
...r,
|
|
@@ -846,7 +925,7 @@ async function $(e, t = {}, n = 200) {
|
|
|
846
925
|
pagination: n
|
|
847
926
|
}, e)).braListAccounts, n);
|
|
848
927
|
}
|
|
849
|
-
var
|
|
928
|
+
var Pe = (t = {}) => {
|
|
850
929
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
851
930
|
queryKey: [
|
|
852
931
|
...d.accounts,
|
|
@@ -861,6 +940,6 @@ var De = (t = {}) => {
|
|
|
861
940
|
};
|
|
862
941
|
};
|
|
863
942
|
//#endregion
|
|
864
|
-
export { $ as fetchAllAccounts,
|
|
943
|
+
export { $ as fetchAllAccounts, Me as fetchAllHoldings, C as useAccount, ie as useAccounts, fe as useAcknowledgeInsight, Pe as useAllAccounts, Ne 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, we as useCreateRebalanceProposal, F as useDeleteHolding, pe as useDismissInsight, _e as useGenerateRiskInsights, H as useGoal, U as useGoalFundings, V as useGoals, xe as useHarvestTaxLossInsights, M as useHoldings, oe as useHousehold, ae as useHouseholds, ue as useInsights, J as useLinkGoalFunding, z as useModelPortfolio, R as useModelPortfolios, re as useNetWorthSummary, Ee as usePagedAccounts, Oe as usePagedGoals, ke as usePagedHouseholds, Z as usePagedInsights, De as usePagedPortfolios, Ae as usePagedTransactions, O as usePortfolio, ge as usePortfolioRiskSignals, ve as usePortfolioRiskSummary, D as usePortfolios, Ce as useRebalanceProposals, q as useRecalcGoalProjection, Se as useRecordTransaction, me as useResolveInsight, be as useTaxLossOpportunities, Te as useTransitionRebalanceProposal, Y as useUnlinkGoalFunding, T as useUpdateAccount, G as useUpdateGoal, P as useUpdateHolding, ce as useUpdateHousehold, A as useUpdatePortfolio };
|
|
865
944
|
|
|
866
945
|
//# sourceMappingURL=useBrainyRichApi.js.map
|