@burdenoff/microfe-brainyrich 2026.730.1 → 2026.731.2
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 +16 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.js +53 -16
- 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 +536 -405
- package/dist/brainyrich/pages/RiskPage.js.map +1 -1
- package/dist/brainyrich/types/bra.d.ts +23 -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, BraPortfolioRiskReport, BraRiskSummary, 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;
|
|
@@ -1444,6 +1444,21 @@ export declare const useGenerateRiskInsights: () => import('@tanstack/react-quer
|
|
|
1444
1444
|
* since it invokes an LLM call.
|
|
1445
1445
|
*/
|
|
1446
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>;
|
|
1447
1462
|
export declare const useTransactions: (params?: TransactionFilters) => {
|
|
1448
1463
|
data: BraTransaction[];
|
|
1449
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,sBAAsB,EACtB,cAAc,EACd,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,E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AIG;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"}
|
|
@@ -84,6 +84,11 @@ var d = {
|
|
|
84
84
|
"risk-summary",
|
|
85
85
|
e
|
|
86
86
|
],
|
|
87
|
+
taxLossOpportunities: (e) => [
|
|
88
|
+
"brainyrich",
|
|
89
|
+
"tax-loss-opportunities",
|
|
90
|
+
e
|
|
91
|
+
],
|
|
87
92
|
transactions: ["brainyrich", "transactions"],
|
|
88
93
|
rebalances: ["brainyrich", "rebalance-proposals"],
|
|
89
94
|
health: ["brainyrich", "health"]
|
|
@@ -634,7 +639,39 @@ var d = {
|
|
|
634
639
|
enabled: !1,
|
|
635
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
|
|
636
641
|
});
|
|
637
|
-
}, ye = () => {
|
|
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 = () => {
|
|
638
675
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
639
676
|
return i({
|
|
640
677
|
mutationFn: async (e) => (await l(`mutation BraRecordTransaction($input: BraCreateTransactionInput!) {
|
|
@@ -647,7 +684,7 @@ var d = {
|
|
|
647
684
|
}
|
|
648
685
|
})
|
|
649
686
|
});
|
|
650
|
-
},
|
|
687
|
+
}, Ce = (t = {}) => {
|
|
651
688
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
652
689
|
queryKey: [...d.rebalances, t],
|
|
653
690
|
queryFn: async () => (await c(`query BraListRebalanceProposals($householdId: ID, $portfolioId: ID, $status: BraRebalanceStatus) {
|
|
@@ -665,7 +702,7 @@ var d = {
|
|
|
665
702
|
...r,
|
|
666
703
|
data: r.data ?? []
|
|
667
704
|
};
|
|
668
|
-
},
|
|
705
|
+
}, we = () => {
|
|
669
706
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
670
707
|
return i({
|
|
671
708
|
mutationFn: async (e) => (await l(`mutation BraCreateRebalanceProposal($input: BraCreateRebalanceProposalInput!) {
|
|
@@ -676,7 +713,7 @@ var d = {
|
|
|
676
713
|
onSuccess: () => n.invalidateQueries({ queryKey: d.rebalances })
|
|
677
714
|
})
|
|
678
715
|
});
|
|
679
|
-
},
|
|
716
|
+
}, Te = () => {
|
|
680
717
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
681
718
|
return i({
|
|
682
719
|
mutationFn: async (e) => (await l(`mutation BraTransitionRebalanceProposal($id: ID!, $status: BraRebalanceStatus!) {
|
|
@@ -716,7 +753,7 @@ function X(t) {
|
|
|
716
753
|
}
|
|
717
754
|
};
|
|
718
755
|
}
|
|
719
|
-
var
|
|
756
|
+
var Ee = (e = {}) => X({
|
|
720
757
|
queryKey: [
|
|
721
758
|
...d.accounts,
|
|
722
759
|
"paged",
|
|
@@ -734,7 +771,7 @@ var Z = (e = {}) => X({
|
|
|
734
771
|
pagination: t
|
|
735
772
|
}),
|
|
736
773
|
select: (e) => e.braListAccounts
|
|
737
|
-
}),
|
|
774
|
+
}), De = (e = {}) => X({
|
|
738
775
|
queryKey: [
|
|
739
776
|
...d.portfolios,
|
|
740
777
|
"paged",
|
|
@@ -752,7 +789,7 @@ var Z = (e = {}) => X({
|
|
|
752
789
|
pagination: t
|
|
753
790
|
}),
|
|
754
791
|
select: (e) => e.braListPortfolios
|
|
755
|
-
}),
|
|
792
|
+
}), Oe = (e = {}) => X({
|
|
756
793
|
queryKey: [
|
|
757
794
|
...d.goals,
|
|
758
795
|
"paged",
|
|
@@ -770,7 +807,7 @@ var Z = (e = {}) => X({
|
|
|
770
807
|
pagination: t
|
|
771
808
|
}),
|
|
772
809
|
select: (e) => e.braListGoals
|
|
773
|
-
}),
|
|
810
|
+
}), ke = (e = {}) => X({
|
|
774
811
|
queryKey: [
|
|
775
812
|
...d.households,
|
|
776
813
|
"paged",
|
|
@@ -787,7 +824,7 @@ var Z = (e = {}) => X({
|
|
|
787
824
|
pagination: t
|
|
788
825
|
}),
|
|
789
826
|
select: (e) => e.braListHouseholds
|
|
790
|
-
}),
|
|
827
|
+
}), Z = (e = {}) => X({
|
|
791
828
|
queryKey: [
|
|
792
829
|
...d.insights,
|
|
793
830
|
"paged",
|
|
@@ -807,7 +844,7 @@ var Z = (e = {}) => X({
|
|
|
807
844
|
pagination: t
|
|
808
845
|
}),
|
|
809
846
|
select: (e) => e.braListInsights
|
|
810
|
-
}),
|
|
847
|
+
}), Ae = (e = {}) => X({
|
|
811
848
|
queryKey: [
|
|
812
849
|
...d.transactions,
|
|
813
850
|
"paged",
|
|
@@ -838,7 +875,7 @@ async function Q(e, t = 200, n = 500) {
|
|
|
838
875
|
}
|
|
839
876
|
return r;
|
|
840
877
|
}
|
|
841
|
-
async function
|
|
878
|
+
async function je(e, t = {}, n = 200) {
|
|
842
879
|
return Q(async (n) => (await c(`query BraListTransactions($accountId: ID, $type: BraTransactionType, $pagination: PaginationInput) {
|
|
843
880
|
braListTransactions(accountId: $accountId, type: $type, pagination: $pagination) {
|
|
844
881
|
items { ${m} }
|
|
@@ -850,7 +887,7 @@ async function Oe(e, t = {}, n = 200) {
|
|
|
850
887
|
pagination: n
|
|
851
888
|
}, e)).braListTransactions, n);
|
|
852
889
|
}
|
|
853
|
-
async function
|
|
890
|
+
async function Me(e, t = {}, n = 200) {
|
|
854
891
|
return Q(async (n) => (await c(`query BraListHoldings($accountId: ID, $portfolioId: ID, $pagination: PaginationInput) {
|
|
855
892
|
braListHoldings(accountId: $accountId, portfolioId: $portfolioId, pagination: $pagination) {
|
|
856
893
|
items { ${p} }
|
|
@@ -862,14 +899,14 @@ async function ke(e, t = {}, n = 200) {
|
|
|
862
899
|
pagination: n
|
|
863
900
|
}, e)).braListHoldings, n);
|
|
864
901
|
}
|
|
865
|
-
var
|
|
902
|
+
var Ne = (t = {}) => {
|
|
866
903
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
867
904
|
queryKey: [
|
|
868
905
|
...d.transactions,
|
|
869
906
|
"all",
|
|
870
907
|
t
|
|
871
908
|
],
|
|
872
|
-
queryFn: () =>
|
|
909
|
+
queryFn: () => je(n, t)
|
|
873
910
|
});
|
|
874
911
|
return {
|
|
875
912
|
...r,
|
|
@@ -888,7 +925,7 @@ async function $(e, t = {}, n = 200) {
|
|
|
888
925
|
pagination: n
|
|
889
926
|
}, e)).braListAccounts, n);
|
|
890
927
|
}
|
|
891
|
-
var
|
|
928
|
+
var Pe = (t = {}) => {
|
|
892
929
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
893
930
|
queryKey: [
|
|
894
931
|
...d.accounts,
|
|
@@ -903,6 +940,6 @@ var je = (t = {}) => {
|
|
|
903
940
|
};
|
|
904
941
|
};
|
|
905
942
|
//#endregion
|
|
906
|
-
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 };
|
|
907
944
|
|
|
908
945
|
//# sourceMappingURL=useBrainyRichApi.js.map
|