@burdenoff/microfe-brainyrich 2026.825.1 → 2026.827.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.
Files changed (29) hide show
  1. package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts +4 -0
  2. package/dist/brainyrich/components/reuse/DocumentsPanel.d.ts.map +1 -1
  3. package/dist/brainyrich/components/reuse/DocumentsPanel.js +150 -99
  4. package/dist/brainyrich/components/reuse/DocumentsPanel.js.map +1 -1
  5. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +176 -0
  6. package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
  7. package/dist/brainyrich/hooks/useBrainyRichApi.js +96 -82
  8. package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
  9. package/dist/brainyrich/pages/AdminFirmPage.d.ts.map +1 -1
  10. package/dist/brainyrich/pages/AdminFirmPage.js +115 -83
  11. package/dist/brainyrich/pages/AdminFirmPage.js.map +1 -1
  12. package/dist/brainyrich/pages/AiAssistantPage.d.ts.map +1 -1
  13. package/dist/brainyrich/pages/AiAssistantPage.js +251 -230
  14. package/dist/brainyrich/pages/AiAssistantPage.js.map +1 -1
  15. package/dist/brainyrich/pages/FirmPage.d.ts.map +1 -1
  16. package/dist/brainyrich/pages/FirmPage.js +148 -116
  17. package/dist/brainyrich/pages/FirmPage.js.map +1 -1
  18. package/dist/brainyrich/pages/PortfoliosPage.d.ts +14 -0
  19. package/dist/brainyrich/pages/PortfoliosPage.d.ts.map +1 -1
  20. package/dist/brainyrich/pages/PortfoliosPage.js +530 -353
  21. package/dist/brainyrich/pages/PortfoliosPage.js.map +1 -1
  22. package/dist/brainyrich/pages/RiskPage.d.ts.map +1 -1
  23. package/dist/brainyrich/pages/RiskPage.js +381 -396
  24. package/dist/brainyrich/pages/RiskPage.js.map +1 -1
  25. package/dist/brainyrich/pages/_shared.d.ts +21 -0
  26. package/dist/brainyrich/pages/_shared.d.ts.map +1 -1
  27. package/dist/brainyrich/pages/_shared.js +66 -31
  28. package/dist/brainyrich/pages/_shared.js.map +1 -1
  29. package/package.json +1 -1
@@ -251,7 +251,7 @@ var f = {
251
251
  onSuccess: () => n.invalidateQueries({ queryKey: f.portfolios })
252
252
  })
253
253
  });
254
- }, T = () => {
254
+ }, ue = () => {
255
255
  let { apiGatewayUrl: t } = e(), n = o();
256
256
  return i({
257
257
  mutationFn: async (e) => (await u(`mutation BraUpdatePortfolio($id: ID!, $input: BraUpdatePortfolioInput!) {
@@ -264,7 +264,7 @@ var f = {
264
264
  }
265
265
  })
266
266
  });
267
- }, E = () => {
267
+ }, T = () => {
268
268
  let { apiGatewayUrl: t } = e(), n = o();
269
269
  return i({
270
270
  mutationFn: async (e) => (await u("mutation BraArchivePortfolio($id: ID!) { braArchivePortfolio(id: $id) }", { id: e }, t)).braArchivePortfolio,
@@ -273,7 +273,7 @@ var f = {
273
273
  onSuccess: () => n.invalidateQueries({ queryKey: f.portfolios })
274
274
  })
275
275
  });
276
- }, D = (t) => {
276
+ }, E = (t) => {
277
277
  let { apiGatewayUrl: n } = e(), r = a({
278
278
  queryKey: [...f.holdings, t],
279
279
  enabled: !!(t.accountId || t.portfolioId),
@@ -291,7 +291,7 @@ var f = {
291
291
  ...r,
292
292
  data: r.data ?? []
293
293
  };
294
- }, O = () => {
294
+ }, D = () => {
295
295
  let { apiGatewayUrl: t } = e(), n = o();
296
296
  return i({
297
297
  mutationFn: async (e) => (await u(`mutation BraCreateHolding($input: BraCreateHoldingInput!) {
@@ -304,7 +304,7 @@ var f = {
304
304
  }
305
305
  })
306
306
  });
307
- }, k = () => {
307
+ }, O = () => {
308
308
  let { apiGatewayUrl: t } = e(), n = o();
309
309
  return i({
310
310
  mutationFn: async (e) => (await u(`mutation BraUpdateHolding($id: ID!, $input: BraUpdateHoldingInput!) {
@@ -317,7 +317,7 @@ var f = {
317
317
  }
318
318
  })
319
319
  });
320
- }, A = () => {
320
+ }, k = () => {
321
321
  let { apiGatewayUrl: t } = e(), n = o();
322
322
  return i({
323
323
  mutationFn: async (e) => (await u("mutation BraDeleteHolding($id: ID!) { braDeleteHolding(id: $id) }", { id: e }, t)).braDeleteHolding,
@@ -328,27 +328,27 @@ var f = {
328
328
  }
329
329
  })
330
330
  });
331
- }, j = `
331
+ }, A = `
332
332
  ${y}
333
333
  allocations { items { ${v} } pageInfo { cursor hasMore } }
334
- `, M = (e) => ({
334
+ `, j = (e) => ({
335
335
  ...e,
336
336
  allocations: e.allocations.items
337
- }), N = () => {
337
+ }), M = () => {
338
338
  let { apiGatewayUrl: t } = e(), n = a({
339
339
  queryKey: f.modelPortfolios,
340
340
  queryFn: async () => (await l(`query BraListModelPortfolios {
341
341
  braListModelPortfolios {
342
- items { ${j} }
342
+ items { ${A} }
343
343
  pageInfo { cursor hasMore }
344
344
  }
345
- }`, {}, t)).braListModelPortfolios.items.map(M)
345
+ }`, {}, t)).braListModelPortfolios.items.map(j)
346
346
  });
347
347
  return {
348
348
  ...n,
349
349
  data: n.data ?? []
350
350
  };
351
- }, P = (t) => {
351
+ }, N = (t) => {
352
352
  let { apiGatewayUrl: n } = e();
353
353
  return a({
354
354
  queryKey: f.modelPortfolio(t ?? ""),
@@ -356,18 +356,18 @@ var f = {
356
356
  queryFn: async () => {
357
357
  let e = await l(`query BraModelPortfolio($id: ID!) {
358
358
  braModelPortfolio(id: $id) {
359
- ${j}
359
+ ${A}
360
360
  }
361
361
  }`, { id: t }, n);
362
- return e.braModelPortfolio ? M(e.braModelPortfolio) : null;
362
+ return e.braModelPortfolio ? j(e.braModelPortfolio) : null;
363
363
  }
364
364
  });
365
- }, F = () => {
365
+ }, P = () => {
366
366
  let { apiGatewayUrl: t } = e(), n = o();
367
367
  return i({
368
- mutationFn: async (e) => M((await u(`mutation BraCreateModelPortfolio($input: BraCreateModelPortfolioInput!) {
368
+ mutationFn: async (e) => j((await u(`mutation BraCreateModelPortfolio($input: BraCreateModelPortfolioInput!) {
369
369
  braCreateModelPortfolio(input: $input) {
370
- ${j}
370
+ ${A}
371
371
  }
372
372
  }`, { input: e }, t)).braCreateModelPortfolio),
373
373
  ...d({
@@ -375,7 +375,7 @@ var f = {
375
375
  onSuccess: () => n.invalidateQueries({ queryKey: f.modelPortfolios })
376
376
  })
377
377
  });
378
- }, I = (t = {}) => {
378
+ }, F = (t = {}) => {
379
379
  let { apiGatewayUrl: n } = e(), r = a({
380
380
  queryKey: [...f.goals, t],
381
381
  queryFn: async () => (await l(`query BraListGoals($householdId: ID, $status: BraGoalStatus, $pagination: PaginationInput) {
@@ -394,7 +394,7 @@ var f = {
394
394
  data: r.data?.items ?? [],
395
395
  pageInfo: r.data?.pageInfo
396
396
  };
397
- }, L = (t) => {
397
+ }, I = (t) => {
398
398
  let { apiGatewayUrl: n } = e();
399
399
  return a({
400
400
  queryKey: f.goal(t ?? ""),
@@ -414,7 +414,7 @@ var f = {
414
414
  };
415
415
  }
416
416
  });
417
- }, R = (t) => {
417
+ }, L = (t) => {
418
418
  let { apiGatewayUrl: n } = e(), r = a({
419
419
  queryKey: f.goalFundings(t ?? ""),
420
420
  enabled: !!t,
@@ -429,7 +429,7 @@ var f = {
429
429
  ...r,
430
430
  data: r.data ?? []
431
431
  };
432
- }, z = () => {
432
+ }, R = () => {
433
433
  let { apiGatewayUrl: t } = e(), n = o();
434
434
  return i({
435
435
  mutationFn: async (e) => (await u(`mutation BraCreateGoal($input: BraCreateGoalInput!) {
@@ -440,7 +440,7 @@ var f = {
440
440
  onSuccess: () => n.invalidateQueries({ queryKey: f.goals })
441
441
  })
442
442
  });
443
- }, B = () => {
443
+ }, z = () => {
444
444
  let { apiGatewayUrl: t } = e(), n = o();
445
445
  return i({
446
446
  mutationFn: async (e) => (await u(`mutation BraUpdateGoal($id: ID!, $input: BraUpdateGoalInput!) {
@@ -453,7 +453,7 @@ var f = {
453
453
  }
454
454
  })
455
455
  });
456
- }, V = () => {
456
+ }, B = () => {
457
457
  let { apiGatewayUrl: t } = e(), n = o();
458
458
  return i({
459
459
  mutationFn: async (e) => (await u("mutation BraArchiveGoal($id: ID!) { braArchiveGoal(id: $id) }", { id: e }, t)).braArchiveGoal,
@@ -462,7 +462,7 @@ var f = {
462
462
  onSuccess: () => n.invalidateQueries({ queryKey: f.goals })
463
463
  })
464
464
  });
465
- }, H = () => {
465
+ }, V = () => {
466
466
  let { apiGatewayUrl: t } = e(), n = o();
467
467
  return i({
468
468
  mutationFn: async (e) => (await u(`mutation BraRecalcGoalProjection($id: ID!, $fundedAmount: Float!) {
@@ -475,7 +475,7 @@ var f = {
475
475
  }
476
476
  })
477
477
  });
478
- }, U = () => {
478
+ }, H = () => {
479
479
  let { apiGatewayUrl: t } = e(), n = o();
480
480
  return i({
481
481
  mutationFn: async (e) => (await u(`mutation BraLinkGoalFunding($input: BraLinkGoalFundingInput!) {
@@ -488,7 +488,7 @@ var f = {
488
488
  }
489
489
  })
490
490
  });
491
- }, W = () => {
491
+ }, U = () => {
492
492
  let { apiGatewayUrl: t } = e(), n = o();
493
493
  return i({
494
494
  mutationFn: async (e) => (await u("mutation BraUnlinkGoalFunding($id: ID!) { braUnlinkGoalFunding(id: $id) }", { id: e }, t)).braUnlinkGoalFunding,
@@ -499,7 +499,7 @@ var f = {
499
499
  }
500
500
  })
501
501
  });
502
- }, ue = (t = {}) => {
502
+ }, de = (t = {}) => {
503
503
  let { apiGatewayUrl: n } = e(), r = a({
504
504
  queryKey: [...f.households, t],
505
505
  queryFn: async () => (await l(`query BraListHouseholds($status: BraHouseholdStatus, $pagination: PaginationInput) {
@@ -517,7 +517,7 @@ var f = {
517
517
  data: r.data?.items ?? [],
518
518
  pageInfo: r.data?.pageInfo
519
519
  };
520
- }, de = (t) => {
520
+ }, fe = (t) => {
521
521
  let { apiGatewayUrl: n } = e();
522
522
  return a({
523
523
  queryKey: f.household(t ?? ""),
@@ -526,7 +526,7 @@ var f = {
526
526
  braHousehold(id: $id) { ${S} }
527
527
  }`, { id: t }, n)).braHousehold
528
528
  });
529
- }, fe = () => {
529
+ }, pe = () => {
530
530
  let { apiGatewayUrl: t } = e(), n = o();
531
531
  return i({
532
532
  mutationFn: async (e) => (await u(`mutation BraCreateHousehold($input: BraCreateHouseholdInput!) {
@@ -537,7 +537,7 @@ var f = {
537
537
  onSuccess: () => n.invalidateQueries({ queryKey: f.households })
538
538
  })
539
539
  });
540
- }, pe = () => {
540
+ }, me = () => {
541
541
  let { apiGatewayUrl: t } = e(), n = o();
542
542
  return i({
543
543
  mutationFn: async (e) => (await u(`mutation BraUpdateHousehold($id: ID!, $input: BraUpdateHouseholdInput!) {
@@ -550,7 +550,7 @@ var f = {
550
550
  }
551
551
  })
552
552
  });
553
- }, me = () => {
553
+ }, he = () => {
554
554
  let { apiGatewayUrl: t } = e(), n = o();
555
555
  return i({
556
556
  mutationFn: async (e) => (await u("mutation BraArchiveHousehold($id: ID!) { braArchiveHousehold(id: $id) }", { id: e }, t)).braArchiveHousehold,
@@ -559,7 +559,7 @@ var f = {
559
559
  onSuccess: () => n.invalidateQueries({ queryKey: f.households })
560
560
  })
561
561
  });
562
- }, he = (t = {}) => {
562
+ }, ge = (t = {}) => {
563
563
  let { apiGatewayUrl: n } = e(), r = a({
564
564
  queryKey: [...f.insights, t],
565
565
  queryFn: async () => (await l(`query BraListInsights($severity: BraInsightSeverity, $status: BraInsightStatus, $subjectId: ID, $subjectType: String, $pagination: PaginationInput) {
@@ -580,7 +580,7 @@ var f = {
580
580
  data: r.data?.items ?? [],
581
581
  pageInfo: r.data?.pageInfo
582
582
  };
583
- }, ge = () => {
583
+ }, _e = () => {
584
584
  let { apiGatewayUrl: t } = e(), n = o();
585
585
  return i({
586
586
  mutationFn: async (e) => (await u(`mutation BraCreateInsight($input: BraCreateInsightInput!) {
@@ -591,7 +591,7 @@ var f = {
591
591
  onSuccess: () => n.invalidateQueries({ queryKey: f.insights })
592
592
  })
593
593
  });
594
- }, _e = () => {
594
+ }, ve = () => {
595
595
  let { apiGatewayUrl: t } = e(), n = o();
596
596
  return i({
597
597
  mutationFn: async (e) => (await u(`mutation BraAcknowledgeInsight($id: ID!) {
@@ -604,7 +604,7 @@ var f = {
604
604
  }
605
605
  })
606
606
  });
607
- }, ve = () => {
607
+ }, ye = () => {
608
608
  let { apiGatewayUrl: t } = e(), n = o();
609
609
  return i({
610
610
  mutationFn: async (e) => (await u(`mutation BraDismissInsight($id: ID!) {
@@ -617,7 +617,7 @@ var f = {
617
617
  }
618
618
  })
619
619
  });
620
- }, ye = () => {
620
+ }, be = () => {
621
621
  let { apiGatewayUrl: t } = e(), n = o();
622
622
  return i({
623
623
  mutationFn: async (e) => (await u(`mutation BraResolveInsight($id: ID!) {
@@ -630,7 +630,7 @@ var f = {
630
630
  }
631
631
  })
632
632
  });
633
- }, be = "kind insightType severity title detail metrics", xe = (t) => {
633
+ }, xe = "kind insightType severity title detail metrics", Se = (t) => {
634
634
  let { apiGatewayUrl: n } = e();
635
635
  return a({
636
636
  queryKey: f.riskSignals(t ?? ""),
@@ -638,11 +638,11 @@ var f = {
638
638
  queryFn: async () => (await l(`query BraPortfolioRiskSignals($portfolioId: ID!) {
639
639
  braPortfolioRiskSignals(portfolioId: $portfolioId) {
640
640
  portfolioId workspaceId asOf totalValue holdingsConsidered
641
- signals { ${be} }
641
+ signals { ${xe} }
642
642
  }
643
643
  }`, { portfolioId: t }, n)).braPortfolioRiskSignals
644
644
  });
645
- }, Se = () => {
645
+ }, Ce = () => {
646
646
  let { apiGatewayUrl: t } = e(), n = o();
647
647
  return i({
648
648
  mutationFn: async (e) => (await u(`mutation BraGenerateRiskInsights($portfolioId: ID!) {
@@ -655,14 +655,14 @@ var f = {
655
655
  }
656
656
  })
657
657
  });
658
- }, Ce = (t) => {
658
+ }, we = (t) => {
659
659
  let { apiGatewayUrl: n } = e();
660
660
  return a({
661
661
  queryKey: f.riskSummary(t ?? ""),
662
662
  enabled: !1,
663
663
  queryFn: async () => (await l("query BraPortfolioRiskSummary($portfolioId: ID!) {\n braPortfolioRiskSummary(portfolioId: $portfolioId) {\n generated summary provider reason signalsConsidered\n }\n }", { portfolioId: t }, n)).braPortfolioRiskSummary
664
664
  });
665
- }, we = "symbol marketValue costBasis unrealizedLoss lossPctOfPortfolio severity washSaleRisk washSaleReason metrics", Te = (t, n) => {
665
+ }, Te = "symbol marketValue costBasis unrealizedLoss lossPctOfPortfolio severity washSaleRisk washSaleReason metrics", Ee = (t, n) => {
666
666
  let { apiGatewayUrl: r } = e();
667
667
  return a({
668
668
  queryKey: [...f.taxLossOpportunities(t ?? ""), n],
@@ -671,14 +671,14 @@ var f = {
671
671
  braTaxLossOpportunities(portfolioId: $portfolioId, thresholds: $thresholds) {
672
672
  portfolioId workspaceId asOf
673
673
  thresholds { minLossAmount minLossPct }
674
- opportunities { ${we} }
674
+ opportunities { ${Te} }
675
675
  }
676
676
  }`, {
677
677
  portfolioId: t,
678
678
  thresholds: n ?? null
679
679
  }, r)).braTaxLossOpportunities
680
680
  });
681
- }, Ee = () => {
681
+ }, De = () => {
682
682
  let { apiGatewayUrl: t } = e(), n = o();
683
683
  return i({
684
684
  mutationFn: async ({ portfolioId: e, thresholds: n }) => (await u(`mutation BraHarvestTaxLossInsights($portfolioId: ID!, $thresholds: BraTaxLossThresholdInput) {
@@ -694,7 +694,7 @@ var f = {
694
694
  }
695
695
  })
696
696
  });
697
- }, De = () => {
697
+ }, Oe = () => {
698
698
  let { apiGatewayUrl: t } = e(), n = o();
699
699
  return i({
700
700
  mutationFn: async (e) => (await u(`mutation BraRecordTransaction($input: BraCreateTransactionInput!) {
@@ -707,7 +707,7 @@ var f = {
707
707
  }
708
708
  })
709
709
  });
710
- }, Oe = (t = {}) => {
710
+ }, ke = (t = {}) => {
711
711
  let { apiGatewayUrl: n } = e(), r = a({
712
712
  queryKey: [...f.rebalances, t],
713
713
  queryFn: async () => (await l(`query BraListRebalanceProposals($householdId: ID, $portfolioId: ID, $status: BraRebalanceStatus) {
@@ -725,7 +725,7 @@ var f = {
725
725
  ...r,
726
726
  data: r.data ?? []
727
727
  };
728
- }, ke = () => {
728
+ }, Ae = () => {
729
729
  let { apiGatewayUrl: t } = e(), n = o();
730
730
  return i({
731
731
  mutationFn: async (e) => (await u(`mutation BraCreateRebalanceProposal($input: BraCreateRebalanceProposalInput!) {
@@ -736,7 +736,7 @@ var f = {
736
736
  onSuccess: () => n.invalidateQueries({ queryKey: f.rebalances })
737
737
  })
738
738
  });
739
- }, Ae = () => {
739
+ }, je = () => {
740
740
  let { apiGatewayUrl: t } = e(), n = o();
741
741
  return i({
742
742
  mutationFn: async (e) => (await u(`mutation BraTransitionRebalanceProposal($id: ID!, $status: BraRebalanceStatus!) {
@@ -748,7 +748,7 @@ var f = {
748
748
  })
749
749
  });
750
750
  };
751
- function G(t) {
751
+ function W(t) {
752
752
  let { apiGatewayUrl: n } = e(), i = t.pageSize ?? p.limit ?? 100, a = r({
753
753
  queryKey: t.queryKey,
754
754
  enabled: t.enabled ?? !0,
@@ -776,7 +776,7 @@ function G(t) {
776
776
  }
777
777
  };
778
778
  }
779
- var je = (e = {}) => G({
779
+ var Me = (e = {}) => W({
780
780
  queryKey: [
781
781
  ...f.accounts,
782
782
  "paged",
@@ -794,7 +794,7 @@ var je = (e = {}) => G({
794
794
  pagination: t
795
795
  }),
796
796
  select: (e) => e.braListAccounts
797
- }), Me = (e = {}) => G({
797
+ }), Ne = (e = {}) => W({
798
798
  queryKey: [
799
799
  ...f.portfolios,
800
800
  "paged",
@@ -812,7 +812,7 @@ var je = (e = {}) => G({
812
812
  pagination: t
813
813
  }),
814
814
  select: (e) => e.braListPortfolios
815
- }), Ne = (e = {}) => G({
815
+ }), Pe = (e = {}) => W({
816
816
  queryKey: [
817
817
  ...f.goals,
818
818
  "paged",
@@ -830,7 +830,7 @@ var je = (e = {}) => G({
830
830
  pagination: t
831
831
  }),
832
832
  select: (e) => e.braListGoals
833
- }), Pe = (e = {}) => G({
833
+ }), Fe = (e = {}) => W({
834
834
  queryKey: [
835
835
  ...f.households,
836
836
  "paged",
@@ -847,7 +847,7 @@ var je = (e = {}) => G({
847
847
  pagination: t
848
848
  }),
849
849
  select: (e) => e.braListHouseholds
850
- }), Fe = (e = {}) => G({
850
+ }), Ie = (e = {}) => W({
851
851
  queryKey: [
852
852
  ...f.insights,
853
853
  "paged",
@@ -867,7 +867,7 @@ var je = (e = {}) => G({
867
867
  pagination: t
868
868
  }),
869
869
  select: (e) => e.braListInsights
870
- }), Ie = (e = {}) => G({
870
+ }), Le = (e = {}) => W({
871
871
  queryKey: [
872
872
  ...f.transactions,
873
873
  "paged",
@@ -886,7 +886,7 @@ var je = (e = {}) => G({
886
886
  }),
887
887
  select: (e) => e.braListTransactions
888
888
  });
889
- async function K(e, t = 200, n = 500) {
889
+ async function G(e, t = 200, n = 500) {
890
890
  let r = [], i;
891
891
  for (let a = 0; a < n; a++) {
892
892
  let n = await e(i ? {
@@ -898,8 +898,8 @@ async function K(e, t = 200, n = 500) {
898
898
  }
899
899
  return r;
900
900
  }
901
- async function Le(e, t = {}, n = 200) {
902
- return K(async (n) => (await l(`query BraListTransactions($accountId: ID, $type: BraTransactionType, $pagination: PaginationInput) {
901
+ async function Re(e, t = {}, n = 200) {
902
+ return G(async (n) => (await l(`query BraListTransactions($accountId: ID, $type: BraTransactionType, $pagination: PaginationInput) {
903
903
  braListTransactions(accountId: $accountId, type: $type, pagination: $pagination) {
904
904
  items { ${h} }
905
905
  pageInfo { cursor hasMore }
@@ -910,8 +910,8 @@ async function Le(e, t = {}, n = 200) {
910
910
  pagination: n
911
911
  }, e)).braListTransactions, n);
912
912
  }
913
- async function Re(e, t = {}, n = 200) {
914
- return K(async (n) => (await l(`query BraListHoldings($accountId: ID, $portfolioId: ID, $pagination: PaginationInput) {
913
+ async function K(e, t = {}, n = 200) {
914
+ return G(async (n) => (await l(`query BraListHoldings($accountId: ID, $portfolioId: ID, $pagination: PaginationInput) {
915
915
  braListHoldings(accountId: $accountId, portfolioId: $portfolioId, pagination: $pagination) {
916
916
  items { ${m} }
917
917
  pageInfo { cursor hasMore }
@@ -929,7 +929,7 @@ var ze = (t = {}) => {
929
929
  "all",
930
930
  t
931
931
  ],
932
- queryFn: () => Le(n, t)
932
+ queryFn: () => Re(n, t)
933
933
  });
934
934
  return {
935
935
  ...r,
@@ -937,7 +937,7 @@ var ze = (t = {}) => {
937
937
  };
938
938
  };
939
939
  async function q(e, t = {}, n = 200) {
940
- return K(async (n) => (await l(`query BraListAccounts($householdId: ID, $status: BraAccountStatus, $pagination: PaginationInput) {
940
+ return G(async (n) => (await l(`query BraListAccounts($householdId: ID, $status: BraAccountStatus, $pagination: PaginationInput) {
941
941
  braListAccounts(householdId: $householdId, status: $status, pagination: $pagination) {
942
942
  items { ${g} }
943
943
  pageInfo { cursor hasMore }
@@ -961,13 +961,27 @@ var Be = (t = {}) => {
961
961
  ...r,
962
962
  data: r.data ?? []
963
963
  };
964
- }, J = "\n id workspaceId userId role status displayName email invitedById createdAt updatedAt\n", Ve = () => {
964
+ }, Ve = (t = {}, n = {}) => {
965
+ let { apiGatewayUrl: r } = e(), i = a({
966
+ queryKey: [
967
+ ...f.holdings,
968
+ "all",
969
+ t
970
+ ],
971
+ enabled: n.enabled ?? !0,
972
+ queryFn: () => K(r, t)
973
+ });
974
+ return {
975
+ ...i,
976
+ data: i.data ?? []
977
+ };
978
+ }, J = "\n id workspaceId userId role status displayName email invitedById createdAt updatedAt\n", He = () => {
965
979
  let { apiGatewayUrl: t } = e();
966
980
  return a({
967
981
  queryKey: f.myAdvisorProfile,
968
982
  queryFn: async () => (await l(`query BraMyAdvisorProfile { braMyAdvisorProfile { ${J} } }`, {}, t)).braMyAdvisorProfile
969
983
  });
970
- }, He = () => {
984
+ }, Ue = () => {
971
985
  let { apiGatewayUrl: t } = e(), n = o();
972
986
  return i({
973
987
  mutationFn: async (e) => (await u(`mutation BraEnsureAdvisorProfile($input: BraEnsureAdvisorInput!) {
@@ -980,7 +994,7 @@ var Be = (t = {}) => {
980
994
  }
981
995
  })
982
996
  });
983
- }, Ue = () => {
997
+ }, We = () => {
984
998
  let { apiGatewayUrl: t } = e(), n = a({
985
999
  queryKey: f.advisors,
986
1000
  queryFn: async () => (await l(`query BraListAdvisors { braListAdvisors { ${J} } }`, {}, t)).braListAdvisors
@@ -989,7 +1003,7 @@ var Be = (t = {}) => {
989
1003
  ...n,
990
1004
  data: n.data ?? []
991
1005
  };
992
- }, We = () => {
1006
+ }, Ge = () => {
993
1007
  let { apiGatewayUrl: t } = e(), n = o();
994
1008
  return i({
995
1009
  mutationFn: async ({ userId: e, role: n }) => (await u(`mutation BraSetAdvisorRole($userId: ID!, $role: BraAdvisorRole!) {
@@ -1003,27 +1017,27 @@ var Be = (t = {}) => {
1003
1017
  onSuccess: () => n.invalidateQueries({ queryKey: f.advisors })
1004
1018
  })
1005
1019
  });
1006
- }, Ge = () => {
1020
+ }, Ke = () => {
1007
1021
  let { apiGatewayUrl: t } = e();
1008
1022
  return a({
1009
1023
  queryKey: f.firmReport,
1010
1024
  queryFn: async () => (await l("query BraFirmReport {\n braFirmReport {\n workspaceId asOf totalAdvisors totalHouseholds totalAum currency\n byAdvisor { advisorId displayName email role householdCount aum }\n }\n }", {}, t)).braFirmReport,
1011
1025
  retry: !1
1012
1026
  });
1013
- }, Ke = () => {
1027
+ }, qe = () => {
1014
1028
  let { apiGatewayUrl: t } = e();
1015
1029
  return a({
1016
1030
  queryKey: f.adminFirmSummary,
1017
1031
  queryFn: async () => (await l("query BraAdminFirmSummary {\n braAdminFirmSummary {\n workspaceId asOf totalAdvisors totalHouseholds totalAum currency\n byAdvisor { advisorId displayName email role householdCount aum }\n byHouseholdStatus { status count aum }\n }\n }", {}, t)).braAdminFirmSummary,
1018
1032
  retry: !1
1019
1033
  });
1020
- }, Y = "\n id workspaceId advisorId firmName logoFileId primaryColor secondaryColor\n contactEmail disclaimer createdAt updatedAt\n", qe = () => {
1034
+ }, Y = "\n id workspaceId advisorId firmName logoFileId primaryColor secondaryColor\n contactEmail disclaimer createdAt updatedAt\n", Je = () => {
1021
1035
  let { apiGatewayUrl: t } = e();
1022
1036
  return a({
1023
1037
  queryKey: f.myAdvisorBranding,
1024
1038
  queryFn: async () => (await l(`query BraMyAdvisorBranding { braMyAdvisorBranding { ${Y} } }`, {}, t)).braMyAdvisorBranding
1025
1039
  });
1026
- }, Je = () => {
1040
+ }, Ye = () => {
1027
1041
  let { apiGatewayUrl: t } = e(), n = o();
1028
1042
  return i({
1029
1043
  mutationFn: async (e) => (await u(`mutation BraUpsertMyAdvisorBranding($input: BraUpsertAdvisorBrandingInput!) {
@@ -1034,7 +1048,7 @@ var Be = (t = {}) => {
1034
1048
  onSuccess: () => n.invalidateQueries({ queryKey: f.myAdvisorBranding })
1035
1049
  })
1036
1050
  });
1037
- }, X = "\n id workspaceId advisorId householdId name frequency status lastRunAt nextRunAt createdAt updatedAt\n", Z = "\n id workspaceId scheduledReportId advisorId householdId status periodStart periodEnd\n errorMessage generatedAt notifiedAt createdAt\n", Ye = () => {
1051
+ }, X = "\n id workspaceId advisorId householdId name frequency status lastRunAt nextRunAt createdAt updatedAt\n", Z = "\n id workspaceId scheduledReportId advisorId householdId status periodStart periodEnd\n errorMessage generatedAt notifiedAt createdAt\n", Q = () => {
1038
1052
  let { apiGatewayUrl: t } = e(), n = a({
1039
1053
  queryKey: f.scheduledReports,
1040
1054
  queryFn: async () => (await l(`query BraListScheduledReports { braListScheduledReports { ${X} } }`, {}, t)).braListScheduledReports
@@ -1043,7 +1057,7 @@ var Be = (t = {}) => {
1043
1057
  ...n,
1044
1058
  data: n.data ?? []
1045
1059
  };
1046
- }, Q = () => {
1060
+ }, Xe = () => {
1047
1061
  let { apiGatewayUrl: t } = e(), n = o();
1048
1062
  return i({
1049
1063
  mutationFn: async (e) => (await u(`mutation BraCreateScheduledReport($input: BraCreateScheduledReportInput!) {
@@ -1054,7 +1068,7 @@ var Be = (t = {}) => {
1054
1068
  onSuccess: () => n.invalidateQueries({ queryKey: f.scheduledReports })
1055
1069
  })
1056
1070
  });
1057
- }, Xe = () => {
1071
+ }, Ze = () => {
1058
1072
  let { apiGatewayUrl: t } = e(), n = o();
1059
1073
  return i({
1060
1074
  mutationFn: async ({ id: e, pause: n }) => {
@@ -1066,7 +1080,7 @@ var Be = (t = {}) => {
1066
1080
  onSuccess: () => n.invalidateQueries({ queryKey: f.scheduledReports })
1067
1081
  })
1068
1082
  });
1069
- }, Ze = (t) => {
1083
+ }, Qe = (t) => {
1070
1084
  let { apiGatewayUrl: n } = e(), r = a({
1071
1085
  queryKey: f.reportRuns(t),
1072
1086
  queryFn: async () => (await l(`query BraListReportRuns($scheduledReportId: ID) {
@@ -1077,7 +1091,7 @@ var Be = (t = {}) => {
1077
1091
  ...r,
1078
1092
  data: r.data ?? []
1079
1093
  };
1080
- }, Qe = () => {
1094
+ }, $e = () => {
1081
1095
  let { apiGatewayUrl: t } = e(), n = o();
1082
1096
  return i({
1083
1097
  mutationFn: async (e) => (await u(`mutation BraGenerateReportNow($input: BraGenerateReportNowInput!) {
@@ -1091,26 +1105,26 @@ var Be = (t = {}) => {
1091
1105
  })
1092
1106
  });
1093
1107
  };
1094
- async function $e(e, t, n) {
1108
+ async function et(e, t, n) {
1095
1109
  let r = (await l("query BraReportRunPdf($id: ID!) { braReportRunPdf(id: $id) }", { id: t }, e)).braReportRunPdf, i = atob(r), a = new Uint8Array(i.length);
1096
1110
  for (let e = 0; e < i.length; e += 1) a[e] = i.charCodeAt(e);
1097
1111
  let o = new Blob([a], { type: "application/pdf" }), s = URL.createObjectURL(o), c = document.createElement("a");
1098
1112
  c.href = s, c.download = n, document.body.appendChild(c), c.click(), c.remove(), URL.revokeObjectURL(s);
1099
1113
  }
1100
- var et = () => {
1114
+ var tt = () => {
1101
1115
  let { apiGatewayUrl: t } = e();
1102
1116
  return i({
1103
- mutationFn: async (e) => $e(t, e.id, `brainyrich-report-${e.id}.pdf`),
1117
+ mutationFn: async (e) => et(t, e.id, `brainyrich-report-${e.id}.pdf`),
1104
1118
  ...d({ success: "PDF downloaded" })
1105
1119
  });
1106
- }, tt = (t) => {
1120
+ }, nt = (t) => {
1107
1121
  let { apiGatewayUrl: n } = e();
1108
1122
  return a({
1109
1123
  queryKey: f.marketQuote(t ?? ""),
1110
1124
  enabled: !1,
1111
1125
  queryFn: async () => (await l("query BraMarketQuote($symbol: String!) {\n braMarketQuote(symbol: $symbol) { symbol price currency asOf source }\n }", { symbol: t }, n)).braMarketQuote
1112
1126
  });
1113
- }, $ = "\n id workspaceId portfolioId accountId symbol action quantity referencePrice priceSource\n priceAsOf status source rationale reviewedById reviewedAt createdAt updatedAt\n", nt = (t, n) => {
1127
+ }, $ = "\n id workspaceId portfolioId accountId symbol action quantity referencePrice priceSource\n priceAsOf status source rationale reviewedById reviewedAt createdAt updatedAt\n", rt = (t, n) => {
1114
1128
  let { apiGatewayUrl: r } = e(), i = a({
1115
1129
  queryKey: f.tradeInstructions(t, n),
1116
1130
  queryFn: async () => (await l(`query BraListTradeInstructions($portfolioId: ID, $status: BraTradeInstructionStatus) {
@@ -1124,7 +1138,7 @@ var et = () => {
1124
1138
  ...i,
1125
1139
  data: i.data ?? []
1126
1140
  };
1127
- }, rt = () => {
1141
+ }, it = () => {
1128
1142
  let { apiGatewayUrl: t } = e(), n = o();
1129
1143
  return i({
1130
1144
  mutationFn: async (e) => (await u(`mutation BraCreateTradeInstruction($input: BraCreateTradeInstructionInput!) {
@@ -1137,7 +1151,7 @@ var et = () => {
1137
1151
  }
1138
1152
  })
1139
1153
  });
1140
- }, it = () => {
1154
+ }, at = () => {
1141
1155
  let { apiGatewayUrl: t } = e(), n = o();
1142
1156
  return i({
1143
1157
  mutationFn: async ({ id: e, status: n }) => (await u(`mutation BraReviewTradeInstruction($id: ID!, $status: BraTradeInstructionStatus!) {
@@ -1155,6 +1169,6 @@ var et = () => {
1155
1169
  });
1156
1170
  };
1157
1171
  //#endregion
1158
- export { q as fetchAllAccounts, Re as fetchAllHoldings, re as useAccount, ne as useAccounts, _e as useAcknowledgeInsight, Ke as useAdminFirmSummary, Ue as useAdvisors, Be as useAllAccounts, ze as useAllTransactions, oe as useArchiveAccount, V as useArchiveGoal, me as useArchiveHousehold, E as useArchivePortfolio, ie as useCreateAccount, z as useCreateGoal, O as useCreateHolding, fe as useCreateHousehold, ge as useCreateInsight, F as useCreateModelPortfolio, le as useCreatePortfolio, ke as useCreateRebalanceProposal, Q as useCreateScheduledReport, rt as useCreateTradeInstruction, A as useDeleteHolding, ve as useDismissInsight, et as useDownloadReportRunPdf, He as useEnsureAdvisorProfile, Ge as useFirmReport, Qe as useGenerateReportNow, Se as useGenerateRiskInsights, L as useGoal, R as useGoalFundings, I as useGoals, Ee as useHarvestTaxLossInsights, D as useHoldings, de as useHousehold, ue as useHouseholds, he as useInsights, U as useLinkGoalFunding, tt as useMarketQuote, P as useModelPortfolio, N as useModelPortfolios, qe as useMyAdvisorBranding, Ve as useMyAdvisorProfile, te as useNetWorthSummary, je as usePagedAccounts, Ne as usePagedGoals, Pe as usePagedHouseholds, Fe as usePagedInsights, Me as usePagedPortfolios, Ie as usePagedTransactions, ce as usePortfolio, xe as usePortfolioRiskSignals, Ce as usePortfolioRiskSummary, se as usePortfolios, Oe as useRebalanceProposals, H as useRecalcGoalProjection, De as useRecordTransaction, Ze as useReportRuns, ye as useResolveInsight, it as useReviewTradeInstruction, Ye as useScheduledReports, We as useSetAdvisorRole, Xe as useSetScheduledReportStatus, Te as useTaxLossOpportunities, nt as useTradeInstructions, Ae as useTransitionRebalanceProposal, W as useUnlinkGoalFunding, ae as useUpdateAccount, B as useUpdateGoal, k as useUpdateHolding, pe as useUpdateHousehold, T as useUpdatePortfolio, Je as useUpsertMyAdvisorBranding };
1172
+ export { q as fetchAllAccounts, K as fetchAllHoldings, re as useAccount, ne as useAccounts, ve as useAcknowledgeInsight, qe as useAdminFirmSummary, We as useAdvisors, Be as useAllAccounts, Ve as useAllHoldings, ze as useAllTransactions, oe as useArchiveAccount, B as useArchiveGoal, he as useArchiveHousehold, T as useArchivePortfolio, ie as useCreateAccount, R as useCreateGoal, D as useCreateHolding, pe as useCreateHousehold, _e as useCreateInsight, P as useCreateModelPortfolio, le as useCreatePortfolio, Ae as useCreateRebalanceProposal, Xe as useCreateScheduledReport, it as useCreateTradeInstruction, k as useDeleteHolding, ye as useDismissInsight, tt as useDownloadReportRunPdf, Ue as useEnsureAdvisorProfile, Ke as useFirmReport, $e as useGenerateReportNow, Ce as useGenerateRiskInsights, I as useGoal, L as useGoalFundings, F as useGoals, De as useHarvestTaxLossInsights, E as useHoldings, fe as useHousehold, de as useHouseholds, ge as useInsights, H as useLinkGoalFunding, nt as useMarketQuote, N as useModelPortfolio, M as useModelPortfolios, Je as useMyAdvisorBranding, He as useMyAdvisorProfile, te as useNetWorthSummary, Me as usePagedAccounts, Pe as usePagedGoals, Fe as usePagedHouseholds, Ie as usePagedInsights, Ne as usePagedPortfolios, Le as usePagedTransactions, ce as usePortfolio, Se as usePortfolioRiskSignals, we as usePortfolioRiskSummary, se as usePortfolios, ke as useRebalanceProposals, V as useRecalcGoalProjection, Oe as useRecordTransaction, Qe as useReportRuns, be as useResolveInsight, at as useReviewTradeInstruction, Q as useScheduledReports, Ge as useSetAdvisorRole, Ze as useSetScheduledReportStatus, Ee as useTaxLossOpportunities, rt as useTradeInstructions, je as useTransitionRebalanceProposal, U as useUnlinkGoalFunding, ae as useUpdateAccount, z as useUpdateGoal, O as useUpdateHolding, me as useUpdateHousehold, ue as useUpdatePortfolio, Ye as useUpsertMyAdvisorBranding };
1159
1173
 
1160
1174
  //# sourceMappingURL=useBrainyRichApi.js.map