@burdenoff/microfe-brainyrich 2026.1101.2 → 2026.1101.3
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/BrainyRichRoot.d.ts.map +1 -1
- package/dist/brainyrich/BrainyRichRoot.js +22 -107
- package/dist/brainyrich/BrainyRichRoot.js.map +1 -1
- package/dist/brainyrich/BrainyRichRoutes.d.ts.map +1 -1
- package/dist/brainyrich/BrainyRichRoutes.js +65 -46
- package/dist/brainyrich/BrainyRichRoutes.js.map +1 -1
- package/dist/brainyrich/components/mobile/MobilePage.d.ts +44 -0
- package/dist/brainyrich/components/mobile/MobilePage.d.ts.map +1 -0
- package/dist/brainyrich/components/mobile/MobilePage.js +45 -0
- package/dist/brainyrich/components/mobile/MobilePage.js.map +1 -0
- package/dist/brainyrich/components/mobile/MobileTabBar.d.ts +20 -0
- package/dist/brainyrich/components/mobile/MobileTabBar.d.ts.map +1 -0
- package/dist/brainyrich/components/mobile/MobileTabBar.js +139 -0
- package/dist/brainyrich/components/mobile/MobileTabBar.js.map +1 -0
- package/dist/brainyrich/components/mobile/index.d.ts +8 -0
- package/dist/brainyrich/components/mobile/index.d.ts.map +1 -0
- package/dist/brainyrich/components/mobile/index.js +2 -0
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +48 -12
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.js +120 -108
- package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
- package/dist/brainyrich/hooks/useIsMobileViewport.d.ts +14 -0
- package/dist/brainyrich/hooks/useIsMobileViewport.d.ts.map +1 -0
- package/dist/brainyrich/hooks/useIsMobileViewport.js +23 -0
- package/dist/brainyrich/hooks/useIsMobileViewport.js.map +1 -0
- package/dist/brainyrich/navItems.d.ts +36 -0
- package/dist/brainyrich/navItems.d.ts.map +1 -0
- package/dist/brainyrich/navItems.js +54 -0
- package/dist/brainyrich/navItems.js.map +1 -0
- package/dist/brainyrich/pages/AccountsPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/AccountsPage.js +411 -390
- package/dist/brainyrich/pages/AccountsPage.js.map +1 -1
- package/dist/brainyrich/pages/DashboardPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/DashboardPage.js +220 -174
- package/dist/brainyrich/pages/DashboardPage.js.map +1 -1
- package/dist/brainyrich/pages/GoalsPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/GoalsPage.js +560 -551
- package/dist/brainyrich/pages/GoalsPage.js.map +1 -1
- package/dist/brainyrich/pages/mobile/MobileAccountsView.d.ts +28 -0
- package/dist/brainyrich/pages/mobile/MobileAccountsView.d.ts.map +1 -0
- package/dist/brainyrich/pages/mobile/MobileAccountsView.js +139 -0
- package/dist/brainyrich/pages/mobile/MobileAccountsView.js.map +1 -0
- package/dist/brainyrich/pages/mobile/MobileDashboardView.d.ts +24 -0
- package/dist/brainyrich/pages/mobile/MobileDashboardView.d.ts.map +1 -0
- package/dist/brainyrich/pages/mobile/MobileDashboardView.js +245 -0
- package/dist/brainyrich/pages/mobile/MobileDashboardView.js.map +1 -0
- package/dist/brainyrich/pages/mobile/MobileGoalsView.d.ts +30 -0
- package/dist/brainyrich/pages/mobile/MobileGoalsView.d.ts.map +1 -0
- package/dist/brainyrich/pages/mobile/MobileGoalsView.js +180 -0
- package/dist/brainyrich/pages/mobile/MobileGoalsView.js.map +1 -0
- package/dist/brainyrich/pages/mobile/mobileShared.d.ts +24 -0
- package/dist/brainyrich/pages/mobile/mobileShared.d.ts.map +1 -0
- package/dist/brainyrich/pages/mobile/mobileShared.js +25 -0
- package/dist/brainyrich/pages/mobile/mobileShared.js.map +1 -0
- package/dist/brainyrich/utils/cn.js +10 -0
- package/dist/brainyrich/utils/cn.js.map +1 -0
- package/dist/brainyrich/utils/goalMetrics.d.ts +13 -0
- package/dist/brainyrich/utils/goalMetrics.d.ts.map +1 -0
- package/dist/brainyrich/utils/goalMetrics.js +20 -0
- package/dist/brainyrich/utils/goalMetrics.js.map +1 -0
- package/dist/test/brainyrichFixtures.d.ts +7 -0
- package/dist/test/brainyrichFixtures.d.ts.map +1 -0
- package/dist/test/viewport.d.ts +8 -0
- package/dist/test/viewport.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -115,15 +115,15 @@ var f = {
|
|
|
115
115
|
e ?? "all",
|
|
116
116
|
t ?? "all"
|
|
117
117
|
]
|
|
118
|
-
}, p = { limit: 50 }, m = "\n id workspaceId accountId portfolioId symbol name assetClass quantity lastPrice\n costBasis marketValue currency asOf createdAt updatedAt\n", h = "\n id workspaceId accountId holdingId type symbol quantity price amount fee currency\n tradeDate settleDate notes createdAt updatedAt\n", g = "\n id workspaceId ownerId householdId name type status institution accountMask\n cashBalance currency isManual createdAt updatedAt\n", _ = "\n id workspaceId ownerId householdId name description status baseCurrency\n modelPortfolioId driftThresholdPct targetAllocation tags createdAt updatedAt\n", v = "\n id workspaceId modelPortfolioId assetClass targetPct createdAt updatedAt\n", y = "\n id workspaceId name description riskProfile baseCurrency isActive createdAt updatedAt\n", b = "\n id workspaceId goalId accountId allocationPct fixedAmount createdAt updatedAt\n", x = "\n id workspaceId ownerId householdId name type status projection targetAmount\n targetDate monthlyContribution priority currency notes tags createdAt updatedAt\n", S = "\n id workspaceId name status riskProfile advisorId aum currency primaryContactName\n primaryContactEmail notes tags createdAt updatedAt\n", C = "\n id workspaceId ownerId type severity status title detail metrics subjectId\n subjectType acknowledgedById resolvedAt createdAt updatedAt\n", w = "\n id workspaceId portfolioId householdId status driftPct rationale trades\n proposedById approvedById executedAt createdAt updatedAt\n",
|
|
118
|
+
}, p = { limit: 50 }, m = "\n id workspaceId accountId portfolioId symbol name assetClass quantity lastPrice\n costBasis marketValue currency asOf createdAt updatedAt\n", h = "\n id workspaceId accountId holdingId type symbol quantity price amount fee currency\n tradeDate settleDate notes createdAt updatedAt\n", g = "\n id workspaceId ownerId householdId name type status institution accountMask\n cashBalance currency isManual createdAt updatedAt\n", _ = "\n id workspaceId ownerId householdId name description status baseCurrency\n modelPortfolioId driftThresholdPct targetAllocation tags createdAt updatedAt\n", v = "\n id workspaceId modelPortfolioId assetClass targetPct createdAt updatedAt\n", y = "\n id workspaceId name description riskProfile baseCurrency isActive createdAt updatedAt\n", b = "\n id workspaceId goalId accountId allocationPct fixedAmount createdAt updatedAt\n", x = "\n id workspaceId ownerId householdId name type status projection targetAmount\n targetDate monthlyContribution priority currency notes tags createdAt updatedAt\n", S = "\n id workspaceId name status riskProfile advisorId aum currency primaryContactName\n primaryContactEmail notes tags createdAt updatedAt\n", C = "\n id workspaceId ownerId type severity status title detail metrics subjectId\n subjectType acknowledgedById resolvedAt createdAt updatedAt\n", w = "\n id workspaceId portfolioId householdId status driftPct rationale trades\n proposedById approvedById executedAt createdAt updatedAt\n", T = "\n workspaceId ownerId totalNetWorth totalMarketValue totalCash accountCount currency\n byAssetClass { assetClass marketValue }\n", ee = (t) => {
|
|
119
119
|
let { apiGatewayUrl: n } = e();
|
|
120
120
|
return a({
|
|
121
121
|
queryKey: [...f.netWorth, t ?? "me"],
|
|
122
122
|
queryFn: async () => (await l(`query BraNetWorthSummary($ownerId: ID) {
|
|
123
|
-
braNetWorthSummary(ownerId: $ownerId) { ${
|
|
123
|
+
braNetWorthSummary(ownerId: $ownerId) { ${T} }
|
|
124
124
|
}`, { ownerId: t }, n)).braNetWorthSummary
|
|
125
125
|
});
|
|
126
|
-
},
|
|
126
|
+
}, te = (t = {}) => {
|
|
127
127
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
128
128
|
queryKey: [...f.accounts, t],
|
|
129
129
|
queryFn: async () => (await l(`query BraListAccounts($householdId: ID, $status: BraAccountStatus, $pagination: PaginationInput) {
|
|
@@ -142,7 +142,7 @@ var f = {
|
|
|
142
142
|
data: r.data?.items ?? [],
|
|
143
143
|
pageInfo: r.data?.pageInfo
|
|
144
144
|
};
|
|
145
|
-
},
|
|
145
|
+
}, ne = (t) => {
|
|
146
146
|
let { apiGatewayUrl: n } = e();
|
|
147
147
|
return a({
|
|
148
148
|
queryKey: f.account(t ?? ""),
|
|
@@ -164,7 +164,7 @@ var f = {
|
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
|
-
},
|
|
167
|
+
}, re = () => {
|
|
168
168
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
169
169
|
return i({
|
|
170
170
|
mutationFn: async (e) => (await u(`mutation BraCreateAccount($input: BraCreateAccountInput!) {
|
|
@@ -177,7 +177,7 @@ var f = {
|
|
|
177
177
|
}
|
|
178
178
|
})
|
|
179
179
|
});
|
|
180
|
-
},
|
|
180
|
+
}, ie = () => {
|
|
181
181
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
182
182
|
return i({
|
|
183
183
|
mutationFn: async (e) => (await u(`mutation BraUpdateAccount($id: ID!, $input: BraUpdateAccountInput!) {
|
|
@@ -190,7 +190,7 @@ var f = {
|
|
|
190
190
|
}
|
|
191
191
|
})
|
|
192
192
|
});
|
|
193
|
-
},
|
|
193
|
+
}, ae = () => {
|
|
194
194
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
195
195
|
return i({
|
|
196
196
|
mutationFn: async (e) => (await u("mutation BraArchiveAccount($id: ID!) { braArchiveAccount(id: $id) }", { id: e }, t)).braArchiveAccount,
|
|
@@ -201,7 +201,7 @@ var f = {
|
|
|
201
201
|
}
|
|
202
202
|
})
|
|
203
203
|
});
|
|
204
|
-
},
|
|
204
|
+
}, oe = (t = {}) => {
|
|
205
205
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
206
206
|
queryKey: [...f.portfolios, t],
|
|
207
207
|
queryFn: async () => (await l(`query BraListPortfolios($householdId: ID, $status: BraPortfolioStatus, $pagination: PaginationInput) {
|
|
@@ -220,7 +220,7 @@ var f = {
|
|
|
220
220
|
data: r.data?.items ?? [],
|
|
221
221
|
pageInfo: r.data?.pageInfo
|
|
222
222
|
};
|
|
223
|
-
},
|
|
223
|
+
}, se = (t) => {
|
|
224
224
|
let { apiGatewayUrl: n } = e();
|
|
225
225
|
return a({
|
|
226
226
|
queryKey: f.portfolio(t ?? ""),
|
|
@@ -240,7 +240,7 @@ var f = {
|
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
},
|
|
243
|
+
}, ce = () => {
|
|
244
244
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
245
245
|
return i({
|
|
246
246
|
mutationFn: async (e) => (await u(`mutation BraCreatePortfolio($input: BraCreatePortfolioInput!) {
|
|
@@ -251,7 +251,7 @@ var f = {
|
|
|
251
251
|
onSuccess: () => n.invalidateQueries({ queryKey: f.portfolios })
|
|
252
252
|
})
|
|
253
253
|
});
|
|
254
|
-
},
|
|
254
|
+
}, le = () => {
|
|
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
|
-
},
|
|
267
|
+
}, ue = () => {
|
|
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,
|
|
@@ -375,26 +375,43 @@ var f = {
|
|
|
375
375
|
onSuccess: () => n.invalidateQueries({ queryKey: f.modelPortfolios })
|
|
376
376
|
})
|
|
377
377
|
});
|
|
378
|
-
}
|
|
378
|
+
};
|
|
379
|
+
function F(e) {
|
|
380
|
+
let { fundings: t, ...n } = e;
|
|
381
|
+
return {
|
|
382
|
+
...n,
|
|
383
|
+
fundings: t.items
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
var I = (t = {}) => {
|
|
379
387
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
380
388
|
queryKey: [...f.goals, t],
|
|
381
|
-
queryFn: async () =>
|
|
389
|
+
queryFn: async () => {
|
|
390
|
+
let e = await l(`query BraListGoals($householdId: ID, $status: BraGoalStatus, $pagination: PaginationInput) {
|
|
382
391
|
braListGoals(householdId: $householdId, status: $status, pagination: $pagination) {
|
|
383
|
-
items {
|
|
392
|
+
items {
|
|
393
|
+
${x}
|
|
394
|
+
fundings { items { ${b} } pageInfo { cursor hasMore } }
|
|
395
|
+
}
|
|
384
396
|
pageInfo { cursor hasMore }
|
|
385
397
|
}
|
|
386
398
|
}`, {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
399
|
+
householdId: t.householdId,
|
|
400
|
+
status: t.status,
|
|
401
|
+
pagination: t.pagination ?? p
|
|
402
|
+
}, n);
|
|
403
|
+
return {
|
|
404
|
+
...e.braListGoals,
|
|
405
|
+
items: e.braListGoals.items.map(F)
|
|
406
|
+
};
|
|
407
|
+
}
|
|
391
408
|
});
|
|
392
409
|
return {
|
|
393
410
|
...r,
|
|
394
411
|
data: r.data?.items ?? [],
|
|
395
412
|
pageInfo: r.data?.pageInfo
|
|
396
413
|
};
|
|
397
|
-
},
|
|
414
|
+
}, L = (t) => {
|
|
398
415
|
let { apiGatewayUrl: n } = e();
|
|
399
416
|
return a({
|
|
400
417
|
queryKey: f.goal(t ?? ""),
|
|
@@ -406,15 +423,10 @@ var f = {
|
|
|
406
423
|
fundings { items { ${b} } pageInfo { cursor hasMore } }
|
|
407
424
|
}
|
|
408
425
|
}`, { id: t }, n);
|
|
409
|
-
|
|
410
|
-
let { fundings: r, ...i } = e.braGoal;
|
|
411
|
-
return {
|
|
412
|
-
...i,
|
|
413
|
-
fundings: r.items
|
|
414
|
-
};
|
|
426
|
+
return e.braGoal ? F(e.braGoal) : null;
|
|
415
427
|
}
|
|
416
428
|
});
|
|
417
|
-
},
|
|
429
|
+
}, R = (t) => {
|
|
418
430
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
419
431
|
queryKey: f.goalFundings(t ?? ""),
|
|
420
432
|
enabled: !!t,
|
|
@@ -429,7 +441,7 @@ var f = {
|
|
|
429
441
|
...r,
|
|
430
442
|
data: r.data ?? []
|
|
431
443
|
};
|
|
432
|
-
},
|
|
444
|
+
}, z = () => {
|
|
433
445
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
434
446
|
return i({
|
|
435
447
|
mutationFn: async (e) => (await u(`mutation BraCreateGoal($input: BraCreateGoalInput!) {
|
|
@@ -440,7 +452,7 @@ var f = {
|
|
|
440
452
|
onSuccess: () => n.invalidateQueries({ queryKey: f.goals })
|
|
441
453
|
})
|
|
442
454
|
});
|
|
443
|
-
},
|
|
455
|
+
}, B = () => {
|
|
444
456
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
445
457
|
return i({
|
|
446
458
|
mutationFn: async (e) => (await u(`mutation BraUpdateGoal($id: ID!, $input: BraUpdateGoalInput!) {
|
|
@@ -453,7 +465,7 @@ var f = {
|
|
|
453
465
|
}
|
|
454
466
|
})
|
|
455
467
|
});
|
|
456
|
-
},
|
|
468
|
+
}, V = () => {
|
|
457
469
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
458
470
|
return i({
|
|
459
471
|
mutationFn: async (e) => (await u("mutation BraArchiveGoal($id: ID!) { braArchiveGoal(id: $id) }", { id: e }, t)).braArchiveGoal,
|
|
@@ -462,7 +474,7 @@ var f = {
|
|
|
462
474
|
onSuccess: () => n.invalidateQueries({ queryKey: f.goals })
|
|
463
475
|
})
|
|
464
476
|
});
|
|
465
|
-
},
|
|
477
|
+
}, H = () => {
|
|
466
478
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
467
479
|
return i({
|
|
468
480
|
mutationFn: async (e) => (await u(`mutation BraRecalcGoalProjection($id: ID!, $fundedAmount: Float!) {
|
|
@@ -475,7 +487,7 @@ var f = {
|
|
|
475
487
|
}
|
|
476
488
|
})
|
|
477
489
|
});
|
|
478
|
-
},
|
|
490
|
+
}, U = () => {
|
|
479
491
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
480
492
|
return i({
|
|
481
493
|
mutationFn: async (e) => (await u(`mutation BraLinkGoalFunding($input: BraLinkGoalFundingInput!) {
|
|
@@ -488,7 +500,7 @@ var f = {
|
|
|
488
500
|
}
|
|
489
501
|
})
|
|
490
502
|
});
|
|
491
|
-
},
|
|
503
|
+
}, de = () => {
|
|
492
504
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
493
505
|
return i({
|
|
494
506
|
mutationFn: async (e) => (await u("mutation BraUnlinkGoalFunding($id: ID!) { braUnlinkGoalFunding(id: $id) }", { id: e }, t)).braUnlinkGoalFunding,
|
|
@@ -499,7 +511,7 @@ var f = {
|
|
|
499
511
|
}
|
|
500
512
|
})
|
|
501
513
|
});
|
|
502
|
-
},
|
|
514
|
+
}, fe = (t = {}) => {
|
|
503
515
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
504
516
|
queryKey: [...f.households, t],
|
|
505
517
|
queryFn: async () => (await l(`query BraListHouseholds($status: BraHouseholdStatus, $pagination: PaginationInput) {
|
|
@@ -517,7 +529,7 @@ var f = {
|
|
|
517
529
|
data: r.data?.items ?? [],
|
|
518
530
|
pageInfo: r.data?.pageInfo
|
|
519
531
|
};
|
|
520
|
-
},
|
|
532
|
+
}, pe = (t) => {
|
|
521
533
|
let { apiGatewayUrl: n } = e();
|
|
522
534
|
return a({
|
|
523
535
|
queryKey: f.household(t ?? ""),
|
|
@@ -526,7 +538,7 @@ var f = {
|
|
|
526
538
|
braHousehold(id: $id) { ${S} }
|
|
527
539
|
}`, { id: t }, n)).braHousehold
|
|
528
540
|
});
|
|
529
|
-
},
|
|
541
|
+
}, me = () => {
|
|
530
542
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
531
543
|
return i({
|
|
532
544
|
mutationFn: async (e) => (await u(`mutation BraCreateHousehold($input: BraCreateHouseholdInput!) {
|
|
@@ -537,7 +549,7 @@ var f = {
|
|
|
537
549
|
onSuccess: () => n.invalidateQueries({ queryKey: f.households })
|
|
538
550
|
})
|
|
539
551
|
});
|
|
540
|
-
},
|
|
552
|
+
}, he = () => {
|
|
541
553
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
542
554
|
return i({
|
|
543
555
|
mutationFn: async (e) => (await u(`mutation BraUpdateHousehold($id: ID!, $input: BraUpdateHouseholdInput!) {
|
|
@@ -550,7 +562,7 @@ var f = {
|
|
|
550
562
|
}
|
|
551
563
|
})
|
|
552
564
|
});
|
|
553
|
-
},
|
|
565
|
+
}, ge = () => {
|
|
554
566
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
555
567
|
return i({
|
|
556
568
|
mutationFn: async (e) => (await u("mutation BraArchiveHousehold($id: ID!) { braArchiveHousehold(id: $id) }", { id: e }, t)).braArchiveHousehold,
|
|
@@ -559,7 +571,7 @@ var f = {
|
|
|
559
571
|
onSuccess: () => n.invalidateQueries({ queryKey: f.households })
|
|
560
572
|
})
|
|
561
573
|
});
|
|
562
|
-
},
|
|
574
|
+
}, _e = (t = {}) => {
|
|
563
575
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
564
576
|
queryKey: [...f.insights, t],
|
|
565
577
|
queryFn: async () => (await l(`query BraListInsights($severity: BraInsightSeverity, $status: BraInsightStatus, $subjectId: ID, $subjectType: String, $pagination: PaginationInput) {
|
|
@@ -580,7 +592,7 @@ var f = {
|
|
|
580
592
|
data: r.data?.items ?? [],
|
|
581
593
|
pageInfo: r.data?.pageInfo
|
|
582
594
|
};
|
|
583
|
-
},
|
|
595
|
+
}, ve = () => {
|
|
584
596
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
585
597
|
return i({
|
|
586
598
|
mutationFn: async (e) => (await u(`mutation BraCreateInsight($input: BraCreateInsightInput!) {
|
|
@@ -591,7 +603,7 @@ var f = {
|
|
|
591
603
|
onSuccess: () => n.invalidateQueries({ queryKey: f.insights })
|
|
592
604
|
})
|
|
593
605
|
});
|
|
594
|
-
},
|
|
606
|
+
}, ye = () => {
|
|
595
607
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
596
608
|
return i({
|
|
597
609
|
mutationFn: async (e) => (await u(`mutation BraAcknowledgeInsight($id: ID!) {
|
|
@@ -604,7 +616,7 @@ var f = {
|
|
|
604
616
|
}
|
|
605
617
|
})
|
|
606
618
|
});
|
|
607
|
-
},
|
|
619
|
+
}, be = () => {
|
|
608
620
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
609
621
|
return i({
|
|
610
622
|
mutationFn: async (e) => (await u(`mutation BraDismissInsight($id: ID!) {
|
|
@@ -617,7 +629,7 @@ var f = {
|
|
|
617
629
|
}
|
|
618
630
|
})
|
|
619
631
|
});
|
|
620
|
-
},
|
|
632
|
+
}, xe = () => {
|
|
621
633
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
622
634
|
return i({
|
|
623
635
|
mutationFn: async (e) => (await u(`mutation BraResolveInsight($id: ID!) {
|
|
@@ -630,7 +642,7 @@ var f = {
|
|
|
630
642
|
}
|
|
631
643
|
})
|
|
632
644
|
});
|
|
633
|
-
},
|
|
645
|
+
}, Se = "kind insightType severity title detail metrics", Ce = (t) => {
|
|
634
646
|
let { apiGatewayUrl: n } = e();
|
|
635
647
|
return a({
|
|
636
648
|
queryKey: f.riskSignals(t ?? ""),
|
|
@@ -638,11 +650,11 @@ var f = {
|
|
|
638
650
|
queryFn: async () => (await l(`query BraPortfolioRiskSignals($portfolioId: ID!) {
|
|
639
651
|
braPortfolioRiskSignals(portfolioId: $portfolioId) {
|
|
640
652
|
portfolioId workspaceId asOf totalValue holdingsConsidered
|
|
641
|
-
signals { ${
|
|
653
|
+
signals { ${Se} }
|
|
642
654
|
}
|
|
643
655
|
}`, { portfolioId: t }, n)).braPortfolioRiskSignals
|
|
644
656
|
});
|
|
645
|
-
},
|
|
657
|
+
}, we = () => {
|
|
646
658
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
647
659
|
return i({
|
|
648
660
|
mutationFn: async (e) => (await u(`mutation BraGenerateRiskInsights($portfolioId: ID!) {
|
|
@@ -655,14 +667,14 @@ var f = {
|
|
|
655
667
|
}
|
|
656
668
|
})
|
|
657
669
|
});
|
|
658
|
-
},
|
|
670
|
+
}, Te = (t) => {
|
|
659
671
|
let { apiGatewayUrl: n } = e();
|
|
660
672
|
return a({
|
|
661
673
|
queryKey: f.riskSummary(t ?? ""),
|
|
662
674
|
enabled: !1,
|
|
663
675
|
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
676
|
});
|
|
665
|
-
},
|
|
677
|
+
}, Ee = "symbol marketValue costBasis unrealizedLoss lossPctOfPortfolio severity washSaleRisk washSaleReason metrics", De = (t, n) => {
|
|
666
678
|
let { apiGatewayUrl: r } = e();
|
|
667
679
|
return a({
|
|
668
680
|
queryKey: [...f.taxLossOpportunities(t ?? ""), n],
|
|
@@ -671,14 +683,14 @@ var f = {
|
|
|
671
683
|
braTaxLossOpportunities(portfolioId: $portfolioId, thresholds: $thresholds) {
|
|
672
684
|
portfolioId workspaceId asOf
|
|
673
685
|
thresholds { minLossAmount minLossPct }
|
|
674
|
-
opportunities { ${
|
|
686
|
+
opportunities { ${Ee} }
|
|
675
687
|
}
|
|
676
688
|
}`, {
|
|
677
689
|
portfolioId: t,
|
|
678
690
|
thresholds: n ?? null
|
|
679
691
|
}, r)).braTaxLossOpportunities
|
|
680
692
|
});
|
|
681
|
-
},
|
|
693
|
+
}, Oe = () => {
|
|
682
694
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
683
695
|
return i({
|
|
684
696
|
mutationFn: async ({ portfolioId: e, thresholds: n }) => (await u(`mutation BraHarvestTaxLossInsights($portfolioId: ID!, $thresholds: BraTaxLossThresholdInput) {
|
|
@@ -694,7 +706,7 @@ var f = {
|
|
|
694
706
|
}
|
|
695
707
|
})
|
|
696
708
|
});
|
|
697
|
-
},
|
|
709
|
+
}, ke = () => {
|
|
698
710
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
699
711
|
return i({
|
|
700
712
|
mutationFn: async (e) => (await u(`mutation BraRecordTransaction($input: BraCreateTransactionInput!) {
|
|
@@ -710,7 +722,7 @@ var f = {
|
|
|
710
722
|
}
|
|
711
723
|
})
|
|
712
724
|
});
|
|
713
|
-
},
|
|
725
|
+
}, Ae = (t = {}) => {
|
|
714
726
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
715
727
|
queryKey: [...f.rebalances, t],
|
|
716
728
|
queryFn: async () => (await l(`query BraListRebalanceProposals($householdId: ID, $portfolioId: ID, $status: BraRebalanceStatus) {
|
|
@@ -728,7 +740,7 @@ var f = {
|
|
|
728
740
|
...r,
|
|
729
741
|
data: r.data ?? []
|
|
730
742
|
};
|
|
731
|
-
},
|
|
743
|
+
}, je = () => {
|
|
732
744
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
733
745
|
return i({
|
|
734
746
|
mutationFn: async (e) => (await u(`mutation BraCreateRebalanceProposal($input: BraCreateRebalanceProposalInput!) {
|
|
@@ -739,7 +751,7 @@ var f = {
|
|
|
739
751
|
onSuccess: () => n.invalidateQueries({ queryKey: f.rebalances })
|
|
740
752
|
})
|
|
741
753
|
});
|
|
742
|
-
},
|
|
754
|
+
}, Me = () => {
|
|
743
755
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
744
756
|
return i({
|
|
745
757
|
mutationFn: async (e) => (await u(`mutation BraTransitionRebalanceProposal($id: ID!, $status: BraRebalanceStatus!) {
|
|
@@ -751,7 +763,7 @@ var f = {
|
|
|
751
763
|
})
|
|
752
764
|
});
|
|
753
765
|
};
|
|
754
|
-
function
|
|
766
|
+
function W(t) {
|
|
755
767
|
let { apiGatewayUrl: n } = e(), i = t.pageSize ?? p.limit ?? 100, a = r({
|
|
756
768
|
queryKey: t.queryKey,
|
|
757
769
|
enabled: t.enabled ?? !0,
|
|
@@ -779,7 +791,7 @@ function G(t) {
|
|
|
779
791
|
}
|
|
780
792
|
};
|
|
781
793
|
}
|
|
782
|
-
var
|
|
794
|
+
var Ne = (e = {}) => W({
|
|
783
795
|
queryKey: [
|
|
784
796
|
...f.accounts,
|
|
785
797
|
"paged",
|
|
@@ -797,7 +809,7 @@ var je = (e = {}) => G({
|
|
|
797
809
|
pagination: t
|
|
798
810
|
}),
|
|
799
811
|
select: (e) => e.braListAccounts
|
|
800
|
-
}),
|
|
812
|
+
}), Pe = (e = {}) => W({
|
|
801
813
|
queryKey: [
|
|
802
814
|
...f.portfolios,
|
|
803
815
|
"paged",
|
|
@@ -815,7 +827,7 @@ var je = (e = {}) => G({
|
|
|
815
827
|
pagination: t
|
|
816
828
|
}),
|
|
817
829
|
select: (e) => e.braListPortfolios
|
|
818
|
-
}),
|
|
830
|
+
}), Fe = (e = {}) => W({
|
|
819
831
|
queryKey: [
|
|
820
832
|
...f.goals,
|
|
821
833
|
"paged",
|
|
@@ -833,7 +845,7 @@ var je = (e = {}) => G({
|
|
|
833
845
|
pagination: t
|
|
834
846
|
}),
|
|
835
847
|
select: (e) => e.braListGoals
|
|
836
|
-
}),
|
|
848
|
+
}), Ie = (e = {}) => W({
|
|
837
849
|
queryKey: [
|
|
838
850
|
...f.households,
|
|
839
851
|
"paged",
|
|
@@ -850,7 +862,7 @@ var je = (e = {}) => G({
|
|
|
850
862
|
pagination: t
|
|
851
863
|
}),
|
|
852
864
|
select: (e) => e.braListHouseholds
|
|
853
|
-
}),
|
|
865
|
+
}), Le = (e = {}) => W({
|
|
854
866
|
queryKey: [
|
|
855
867
|
...f.insights,
|
|
856
868
|
"paged",
|
|
@@ -870,7 +882,7 @@ var je = (e = {}) => G({
|
|
|
870
882
|
pagination: t
|
|
871
883
|
}),
|
|
872
884
|
select: (e) => e.braListInsights
|
|
873
|
-
}),
|
|
885
|
+
}), Re = (e = {}, t = {}) => W({
|
|
874
886
|
queryKey: [
|
|
875
887
|
...f.transactions,
|
|
876
888
|
"paged",
|
|
@@ -890,7 +902,7 @@ var je = (e = {}) => G({
|
|
|
890
902
|
enabled: t.enabled,
|
|
891
903
|
select: (e) => e.braListTransactions
|
|
892
904
|
});
|
|
893
|
-
async function
|
|
905
|
+
async function G(e, t = 200, n = 500) {
|
|
894
906
|
let r = [], i;
|
|
895
907
|
for (let a = 0; a < n; a++) {
|
|
896
908
|
let n = await e(i ? {
|
|
@@ -902,8 +914,8 @@ async function K(e, t = 200, n = 500) {
|
|
|
902
914
|
}
|
|
903
915
|
return r;
|
|
904
916
|
}
|
|
905
|
-
async function
|
|
906
|
-
return
|
|
917
|
+
async function ze(e, t = {}, n = 200) {
|
|
918
|
+
return G(async (n) => (await l(`query BraListTransactions($accountId: ID, $type: BraTransactionType, $pagination: PaginationInput) {
|
|
907
919
|
braListTransactions(accountId: $accountId, type: $type, pagination: $pagination) {
|
|
908
920
|
items { ${h} }
|
|
909
921
|
pageInfo { cursor hasMore }
|
|
@@ -914,8 +926,8 @@ async function Le(e, t = {}, n = 200) {
|
|
|
914
926
|
pagination: n
|
|
915
927
|
}, e)).braListTransactions, n);
|
|
916
928
|
}
|
|
917
|
-
async function
|
|
918
|
-
return
|
|
929
|
+
async function K(e, t = {}, n = 200) {
|
|
930
|
+
return G(async (n) => (await l(`query BraListHoldings($accountId: ID, $portfolioId: ID, $pagination: PaginationInput) {
|
|
919
931
|
braListHoldings(accountId: $accountId, portfolioId: $portfolioId, pagination: $pagination) {
|
|
920
932
|
items { ${m} }
|
|
921
933
|
pageInfo { cursor hasMore }
|
|
@@ -926,22 +938,22 @@ async function q(e, t = {}, n = 200) {
|
|
|
926
938
|
pagination: n
|
|
927
939
|
}, e)).braListHoldings, n);
|
|
928
940
|
}
|
|
929
|
-
var
|
|
941
|
+
var Be = (t = {}) => {
|
|
930
942
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
931
943
|
queryKey: [
|
|
932
944
|
...f.transactions,
|
|
933
945
|
"all",
|
|
934
946
|
t
|
|
935
947
|
],
|
|
936
|
-
queryFn: () =>
|
|
948
|
+
queryFn: () => ze(n, t)
|
|
937
949
|
});
|
|
938
950
|
return {
|
|
939
951
|
...r,
|
|
940
952
|
data: r.data ?? []
|
|
941
953
|
};
|
|
942
954
|
};
|
|
943
|
-
async function
|
|
944
|
-
return
|
|
955
|
+
async function q(e, t = {}, n = 200) {
|
|
956
|
+
return G(async (n) => (await l(`query BraListAccounts($householdId: ID, $status: BraAccountStatus, $pagination: PaginationInput) {
|
|
945
957
|
braListAccounts(householdId: $householdId, status: $status, pagination: $pagination) {
|
|
946
958
|
items { ${g} }
|
|
947
959
|
pageInfo { cursor hasMore }
|
|
@@ -952,20 +964,20 @@ async function J(e, t = {}, n = 200) {
|
|
|
952
964
|
pagination: n
|
|
953
965
|
}, e)).braListAccounts, n);
|
|
954
966
|
}
|
|
955
|
-
var
|
|
967
|
+
var Ve = (t = {}) => {
|
|
956
968
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
957
969
|
queryKey: [
|
|
958
970
|
...f.accounts,
|
|
959
971
|
"all",
|
|
960
972
|
t
|
|
961
973
|
],
|
|
962
|
-
queryFn: () =>
|
|
974
|
+
queryFn: () => q(n, t)
|
|
963
975
|
});
|
|
964
976
|
return {
|
|
965
977
|
...r,
|
|
966
978
|
data: r.data ?? []
|
|
967
979
|
};
|
|
968
|
-
},
|
|
980
|
+
}, He = (t = {}, n = {}) => {
|
|
969
981
|
let { apiGatewayUrl: r } = e(), i = a({
|
|
970
982
|
queryKey: [
|
|
971
983
|
...f.holdings,
|
|
@@ -973,23 +985,23 @@ var ze = (t = {}) => {
|
|
|
973
985
|
t
|
|
974
986
|
],
|
|
975
987
|
enabled: n.enabled ?? !0,
|
|
976
|
-
queryFn: () =>
|
|
988
|
+
queryFn: () => K(r, t)
|
|
977
989
|
});
|
|
978
990
|
return {
|
|
979
991
|
...i,
|
|
980
992
|
data: i.data ?? []
|
|
981
993
|
};
|
|
982
|
-
},
|
|
994
|
+
}, J = "\n id workspaceId userId role status displayName email invitedById createdAt updatedAt\n", Ue = () => {
|
|
983
995
|
let { apiGatewayUrl: t } = e();
|
|
984
996
|
return a({
|
|
985
997
|
queryKey: f.myAdvisorProfile,
|
|
986
|
-
queryFn: async () => (await l(`query BraMyAdvisorProfile { braMyAdvisorProfile { ${
|
|
998
|
+
queryFn: async () => (await l(`query BraMyAdvisorProfile { braMyAdvisorProfile { ${J} } }`, {}, t)).braMyAdvisorProfile
|
|
987
999
|
});
|
|
988
|
-
},
|
|
1000
|
+
}, We = () => {
|
|
989
1001
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
990
1002
|
return i({
|
|
991
1003
|
mutationFn: async (e) => (await u(`mutation BraEnsureAdvisorProfile($input: BraEnsureAdvisorInput!) {
|
|
992
|
-
braEnsureAdvisorProfile(input: $input) { ${
|
|
1004
|
+
braEnsureAdvisorProfile(input: $input) { ${J} }
|
|
993
1005
|
}`, { input: e }, t)).braEnsureAdvisorProfile,
|
|
994
1006
|
...d({
|
|
995
1007
|
success: (e) => `${e.displayName ?? e.userId} is on the firm roster as ${e.role}`,
|
|
@@ -998,20 +1010,20 @@ var ze = (t = {}) => {
|
|
|
998
1010
|
}
|
|
999
1011
|
})
|
|
1000
1012
|
});
|
|
1001
|
-
},
|
|
1013
|
+
}, Ge = () => {
|
|
1002
1014
|
let { apiGatewayUrl: t } = e(), n = a({
|
|
1003
1015
|
queryKey: f.advisors,
|
|
1004
|
-
queryFn: async () => (await l(`query BraListAdvisors { braListAdvisors { ${
|
|
1016
|
+
queryFn: async () => (await l(`query BraListAdvisors { braListAdvisors { ${J} } }`, {}, t)).braListAdvisors
|
|
1005
1017
|
});
|
|
1006
1018
|
return {
|
|
1007
1019
|
...n,
|
|
1008
1020
|
data: n.data ?? []
|
|
1009
1021
|
};
|
|
1010
|
-
},
|
|
1022
|
+
}, Ke = () => {
|
|
1011
1023
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1012
1024
|
return i({
|
|
1013
1025
|
mutationFn: async ({ userId: e, role: n }) => (await u(`mutation BraSetAdvisorRole($userId: ID!, $role: BraAdvisorRole!) {
|
|
1014
|
-
braSetAdvisorRole(userId: $userId, role: $role) { ${
|
|
1026
|
+
braSetAdvisorRole(userId: $userId, role: $role) { ${J} }
|
|
1015
1027
|
}`, {
|
|
1016
1028
|
userId: e,
|
|
1017
1029
|
role: n
|
|
@@ -1021,11 +1033,11 @@ var ze = (t = {}) => {
|
|
|
1021
1033
|
onSuccess: () => n.invalidateQueries({ queryKey: f.advisors })
|
|
1022
1034
|
})
|
|
1023
1035
|
});
|
|
1024
|
-
},
|
|
1036
|
+
}, qe = () => {
|
|
1025
1037
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1026
1038
|
return i({
|
|
1027
1039
|
mutationFn: async ({ userId: e, status: n }) => (await u(`mutation BraSetAdvisorStatus($userId: ID!, $status: BraAdvisorStatus!) {
|
|
1028
|
-
braSetAdvisorStatus(userId: $userId, status: $status) { ${
|
|
1040
|
+
braSetAdvisorStatus(userId: $userId, status: $status) { ${J} }
|
|
1029
1041
|
}`, {
|
|
1030
1042
|
userId: e,
|
|
1031
1043
|
status: n
|
|
@@ -1037,85 +1049,85 @@ var ze = (t = {}) => {
|
|
|
1037
1049
|
}
|
|
1038
1050
|
})
|
|
1039
1051
|
});
|
|
1040
|
-
},
|
|
1052
|
+
}, Je = () => {
|
|
1041
1053
|
let { apiGatewayUrl: t } = e();
|
|
1042
1054
|
return a({
|
|
1043
1055
|
queryKey: f.firmReport,
|
|
1044
1056
|
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,
|
|
1045
1057
|
retry: !1
|
|
1046
1058
|
});
|
|
1047
|
-
},
|
|
1059
|
+
}, Ye = () => {
|
|
1048
1060
|
let { apiGatewayUrl: t } = e();
|
|
1049
1061
|
return a({
|
|
1050
1062
|
queryKey: f.adminFirmSummary,
|
|
1051
1063
|
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,
|
|
1052
1064
|
retry: !1
|
|
1053
1065
|
});
|
|
1054
|
-
},
|
|
1066
|
+
}, Y = "\n id workspaceId advisorId firmName logoFileId primaryColor secondaryColor\n contactEmail disclaimer createdAt updatedAt\n", Xe = () => {
|
|
1055
1067
|
let { apiGatewayUrl: t } = e();
|
|
1056
1068
|
return a({
|
|
1057
1069
|
queryKey: f.myAdvisorBranding,
|
|
1058
|
-
queryFn: async () => (await l(`query BraMyAdvisorBranding { braMyAdvisorBranding { ${
|
|
1070
|
+
queryFn: async () => (await l(`query BraMyAdvisorBranding { braMyAdvisorBranding { ${Y} } }`, {}, t)).braMyAdvisorBranding
|
|
1059
1071
|
});
|
|
1060
|
-
},
|
|
1072
|
+
}, Ze = () => {
|
|
1061
1073
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1062
1074
|
return i({
|
|
1063
1075
|
mutationFn: async (e) => (await u(`mutation BraUpsertMyAdvisorBranding($input: BraUpsertAdvisorBrandingInput!) {
|
|
1064
|
-
braUpsertMyAdvisorBranding(input: $input) { ${
|
|
1076
|
+
braUpsertMyAdvisorBranding(input: $input) { ${Y} }
|
|
1065
1077
|
}`, { input: e }, t)).braUpsertMyAdvisorBranding,
|
|
1066
1078
|
...d({
|
|
1067
1079
|
success: "Client-portal branding saved",
|
|
1068
1080
|
onSuccess: () => n.invalidateQueries({ queryKey: f.myAdvisorBranding })
|
|
1069
1081
|
})
|
|
1070
1082
|
});
|
|
1071
|
-
},
|
|
1083
|
+
}, 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", Qe = () => {
|
|
1072
1084
|
let { apiGatewayUrl: t } = e(), n = a({
|
|
1073
1085
|
queryKey: f.scheduledReports,
|
|
1074
|
-
queryFn: async () => (await l(`query BraListScheduledReports { braListScheduledReports { ${
|
|
1086
|
+
queryFn: async () => (await l(`query BraListScheduledReports { braListScheduledReports { ${X} } }`, {}, t)).braListScheduledReports
|
|
1075
1087
|
});
|
|
1076
1088
|
return {
|
|
1077
1089
|
...n,
|
|
1078
1090
|
data: n.data ?? []
|
|
1079
1091
|
};
|
|
1080
|
-
},
|
|
1092
|
+
}, Q = () => {
|
|
1081
1093
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1082
1094
|
return i({
|
|
1083
1095
|
mutationFn: async (e) => (await u(`mutation BraCreateScheduledReport($input: BraCreateScheduledReportInput!) {
|
|
1084
|
-
braCreateScheduledReport(input: $input) { ${
|
|
1096
|
+
braCreateScheduledReport(input: $input) { ${X} }
|
|
1085
1097
|
}`, { input: e }, t)).braCreateScheduledReport,
|
|
1086
1098
|
...d({
|
|
1087
1099
|
success: (e) => `"${e.name}" scheduled (${e.frequency.toLowerCase()})`,
|
|
1088
1100
|
onSuccess: () => n.invalidateQueries({ queryKey: f.scheduledReports })
|
|
1089
1101
|
})
|
|
1090
1102
|
});
|
|
1091
|
-
},
|
|
1103
|
+
}, $e = () => {
|
|
1092
1104
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1093
1105
|
return i({
|
|
1094
1106
|
mutationFn: async ({ id: e, pause: n }) => {
|
|
1095
1107
|
let r = n ? "BraPauseScheduledReport" : "BraResumeScheduledReport", i = n ? "braPauseScheduledReport" : "braResumeScheduledReport";
|
|
1096
|
-
return (await u(`mutation ${r}($id: ID!) { ${i}(id: $id) { ${
|
|
1108
|
+
return (await u(`mutation ${r}($id: ID!) { ${i}(id: $id) { ${X} } }`, { id: e }, t))[i];
|
|
1097
1109
|
},
|
|
1098
1110
|
...d({
|
|
1099
1111
|
success: (e) => e.status === "PAUSED" ? "Schedule paused" : "Schedule resumed",
|
|
1100
1112
|
onSuccess: () => n.invalidateQueries({ queryKey: f.scheduledReports })
|
|
1101
1113
|
})
|
|
1102
1114
|
});
|
|
1103
|
-
},
|
|
1115
|
+
}, et = (t) => {
|
|
1104
1116
|
let { apiGatewayUrl: n } = e(), r = a({
|
|
1105
1117
|
queryKey: f.reportRuns(t),
|
|
1106
1118
|
queryFn: async () => (await l(`query BraListReportRuns($scheduledReportId: ID) {
|
|
1107
|
-
braListReportRuns(scheduledReportId: $scheduledReportId) { ${
|
|
1119
|
+
braListReportRuns(scheduledReportId: $scheduledReportId) { ${Z} }
|
|
1108
1120
|
}`, { scheduledReportId: t ?? null }, n)).braListReportRuns
|
|
1109
1121
|
});
|
|
1110
1122
|
return {
|
|
1111
1123
|
...r,
|
|
1112
1124
|
data: r.data ?? []
|
|
1113
1125
|
};
|
|
1114
|
-
},
|
|
1126
|
+
}, tt = () => {
|
|
1115
1127
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1116
1128
|
return i({
|
|
1117
1129
|
mutationFn: async (e) => (await u(`mutation BraGenerateReportNow($input: BraGenerateReportNowInput!) {
|
|
1118
|
-
braGenerateReportNow(input: $input) { ${
|
|
1130
|
+
braGenerateReportNow(input: $input) { ${Z} }
|
|
1119
1131
|
}`, { input: e }, t)).braGenerateReportNow,
|
|
1120
1132
|
...d({
|
|
1121
1133
|
success: "Report is generating — a \"report ready\" notification will follow",
|
|
@@ -1125,26 +1137,26 @@ var ze = (t = {}) => {
|
|
|
1125
1137
|
})
|
|
1126
1138
|
});
|
|
1127
1139
|
};
|
|
1128
|
-
async function
|
|
1140
|
+
async function nt(e, t, n) {
|
|
1129
1141
|
let r = (await l("query BraReportRunPdf($id: ID!) { braReportRunPdf(id: $id) }", { id: t }, e)).braReportRunPdf, i = atob(r), a = new Uint8Array(i.length);
|
|
1130
1142
|
for (let e = 0; e < i.length; e += 1) a[e] = i.charCodeAt(e);
|
|
1131
1143
|
let o = new Blob([a], { type: "application/pdf" }), s = URL.createObjectURL(o), c = document.createElement("a");
|
|
1132
1144
|
c.href = s, c.download = n, document.body.appendChild(c), c.click(), c.remove(), URL.revokeObjectURL(s);
|
|
1133
1145
|
}
|
|
1134
|
-
var
|
|
1146
|
+
var rt = () => {
|
|
1135
1147
|
let { apiGatewayUrl: t } = e();
|
|
1136
1148
|
return i({
|
|
1137
|
-
mutationFn: async (e) =>
|
|
1149
|
+
mutationFn: async (e) => nt(t, e.id, `brainyrich-report-${e.id}.pdf`),
|
|
1138
1150
|
...d({ success: "PDF downloaded" })
|
|
1139
1151
|
});
|
|
1140
|
-
},
|
|
1152
|
+
}, it = (t) => {
|
|
1141
1153
|
let { apiGatewayUrl: n } = e();
|
|
1142
1154
|
return a({
|
|
1143
1155
|
queryKey: f.marketQuote(t ?? ""),
|
|
1144
1156
|
enabled: !1,
|
|
1145
1157
|
queryFn: async () => (await l("query BraMarketQuote($symbol: String!) {\n braMarketQuote(symbol: $symbol) { symbol price currency asOf source }\n }", { symbol: t }, n)).braMarketQuote
|
|
1146
1158
|
});
|
|
1147
|
-
}, $ = "\n id workspaceId portfolioId accountId symbol action quantity referencePrice priceSource\n priceAsOf status source rationale reviewedById reviewedAt createdAt updatedAt\n",
|
|
1159
|
+
}, $ = "\n id workspaceId portfolioId accountId symbol action quantity referencePrice priceSource\n priceAsOf status source rationale reviewedById reviewedAt createdAt updatedAt\n", at = (t, n) => {
|
|
1148
1160
|
let { apiGatewayUrl: r } = e(), i = a({
|
|
1149
1161
|
queryKey: f.tradeInstructions(t, n),
|
|
1150
1162
|
queryFn: async () => (await l(`query BraListTradeInstructions($portfolioId: ID, $status: BraTradeInstructionStatus) {
|
|
@@ -1158,7 +1170,7 @@ var nt = () => {
|
|
|
1158
1170
|
...i,
|
|
1159
1171
|
data: i.data ?? []
|
|
1160
1172
|
};
|
|
1161
|
-
},
|
|
1173
|
+
}, ot = () => {
|
|
1162
1174
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1163
1175
|
return i({
|
|
1164
1176
|
mutationFn: async (e) => (await u(`mutation BraCreateTradeInstruction($input: BraCreateTradeInstructionInput!) {
|
|
@@ -1171,7 +1183,7 @@ var nt = () => {
|
|
|
1171
1183
|
}
|
|
1172
1184
|
})
|
|
1173
1185
|
});
|
|
1174
|
-
},
|
|
1186
|
+
}, st = () => {
|
|
1175
1187
|
let { apiGatewayUrl: t } = e(), n = o();
|
|
1176
1188
|
return i({
|
|
1177
1189
|
mutationFn: async ({ id: e, status: n }) => (await u(`mutation BraReviewTradeInstruction($id: ID!, $status: BraTradeInstructionStatus!) {
|
|
@@ -1189,6 +1201,6 @@ var nt = () => {
|
|
|
1189
1201
|
});
|
|
1190
1202
|
};
|
|
1191
1203
|
//#endregion
|
|
1192
|
-
export { f as KEY, u as braMutate, l as braQuery,
|
|
1204
|
+
export { f as KEY, u as braMutate, l as braQuery, q as fetchAllAccounts, K as fetchAllHoldings, d as mutationFeedback, ne as useAccount, te as useAccounts, ye as useAcknowledgeInsight, Ye as useAdminFirmSummary, Ge as useAdvisors, Ve as useAllAccounts, He as useAllHoldings, Be as useAllTransactions, ae as useArchiveAccount, V as useArchiveGoal, ge as useArchiveHousehold, ue as useArchivePortfolio, re as useCreateAccount, z as useCreateGoal, D as useCreateHolding, me as useCreateHousehold, ve as useCreateInsight, P as useCreateModelPortfolio, ce as useCreatePortfolio, je as useCreateRebalanceProposal, Q as useCreateScheduledReport, ot as useCreateTradeInstruction, k as useDeleteHolding, be as useDismissInsight, rt as useDownloadReportRunPdf, We as useEnsureAdvisorProfile, Je as useFirmReport, tt as useGenerateReportNow, we as useGenerateRiskInsights, L as useGoal, R as useGoalFundings, I as useGoals, Oe as useHarvestTaxLossInsights, E as useHoldings, pe as useHousehold, fe as useHouseholds, _e as useInsights, U as useLinkGoalFunding, it as useMarketQuote, N as useModelPortfolio, M as useModelPortfolios, Xe as useMyAdvisorBranding, Ue as useMyAdvisorProfile, ee as useNetWorthSummary, Ne as usePagedAccounts, Fe as usePagedGoals, Ie as usePagedHouseholds, Le as usePagedInsights, Pe as usePagedPortfolios, Re as usePagedTransactions, se as usePortfolio, Ce as usePortfolioRiskSignals, Te as usePortfolioRiskSummary, oe as usePortfolios, Ae as useRebalanceProposals, H as useRecalcGoalProjection, ke as useRecordTransaction, et as useReportRuns, xe as useResolveInsight, st as useReviewTradeInstruction, Qe as useScheduledReports, Ke as useSetAdvisorRole, qe as useSetAdvisorStatus, $e as useSetScheduledReportStatus, De as useTaxLossOpportunities, at as useTradeInstructions, Me as useTransitionRebalanceProposal, de as useUnlinkGoalFunding, ie as useUpdateAccount, B as useUpdateGoal, O as useUpdateHolding, he as useUpdateHousehold, le as useUpdatePortfolio, Ze as useUpsertMyAdvisorBranding };
|
|
1193
1205
|
|
|
1194
1206
|
//# sourceMappingURL=useBrainyRichApi.js.map
|