@burdenoff/microfe-brainyrich 2026.731.1 → 2026.731.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 +60 -53
- package/dist/brainyrich/BrainyRichRoot.js.map +1 -1
- package/dist/brainyrich/BrainyRichRoutes.d.ts.map +1 -1
- package/dist/brainyrich/BrainyRichRoutes.js +20 -16
- package/dist/brainyrich/BrainyRichRoutes.js.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts +696 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.d.ts.map +1 -1
- package/dist/brainyrich/hooks/useBrainyRichApi.js +473 -266
- package/dist/brainyrich/hooks/useBrainyRichApi.js.map +1 -1
- package/dist/brainyrich/pages/FirmPage.d.ts +2 -0
- package/dist/brainyrich/pages/FirmPage.d.ts.map +1 -0
- package/dist/brainyrich/pages/FirmPage.js +255 -0
- package/dist/brainyrich/pages/FirmPage.js.map +1 -0
- package/dist/brainyrich/pages/ReportsPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/ReportsPage.js +606 -331
- package/dist/brainyrich/pages/ReportsPage.js.map +1 -1
- package/dist/brainyrich/pages/RiskPage.d.ts.map +1 -1
- package/dist/brainyrich/pages/RiskPage.js +621 -404
- package/dist/brainyrich/pages/RiskPage.js.map +1 -1
- package/dist/brainyrich/types/bra.d.ts +161 -0
- package/dist/brainyrich/types/bra.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Connection, BraNetWorthSummary, BraAccount, BraAccountStatus, BraPortfolio, BraPortfolioStatus, BraHolding, BraModelPortfolio, BraGoal, BraGoalStatus, BraGoalFunding, BraHousehold, BraHouseholdStatus, BraInsight, BraInsightSeverity, BraInsightStatus, BraTransaction, BraTransactionType, BraRebalanceProposal, BraRebalanceStatus, BraPortfolioRiskReport, BraRiskSummary, BraTaxLossReport, BraTaxLossThresholds, 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, BraAdvisor, BraAdvisorRole, BraFirmReport, BraAdvisorBranding, BraUpsertAdvisorBrandingInput, BraClientPortalSummary, BraScheduledReport, BraReportRun, BraCreateScheduledReportInput, BraGenerateReportNowInput, BraMarketQuote, BraHoldingPriceRefreshResult, BraTradeInstruction, BraTradeInstructionStatus, BraCreateTradeInstructionInput, 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;
|
|
@@ -2166,4 +2166,699 @@ export declare const useAllAccounts: (filters?: Omit<AccountFilters, "pagination
|
|
|
2166
2166
|
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2167
2167
|
promise: Promise<BraAccount[]>;
|
|
2168
2168
|
};
|
|
2169
|
+
/** The calling actor's own firm-roster row, or null if they haven't registered yet. */
|
|
2170
|
+
export declare const useMyAdvisorProfile: () => import('@tanstack/react-query').UseQueryResult<BraAdvisor | null, Error>;
|
|
2171
|
+
export interface BraEnsureAdvisorInput {
|
|
2172
|
+
userId?: string;
|
|
2173
|
+
role?: BraAdvisorRole;
|
|
2174
|
+
displayName?: string;
|
|
2175
|
+
email?: string;
|
|
2176
|
+
}
|
|
2177
|
+
/** Registers/updates the calling actor's own roster row. First row in a workspace self-registers as FIRM_ADMIN. */
|
|
2178
|
+
export declare const useEnsureAdvisorProfile: () => import('@tanstack/react-query').UseMutationResult<BraAdvisor, unknown, BraEnsureAdvisorInput, unknown>;
|
|
2179
|
+
/** Full firm roster. FIRM_ADMIN only — server enforces via domain data, not a separate RBAC role. */
|
|
2180
|
+
export declare const useAdvisors: () => {
|
|
2181
|
+
data: BraAdvisor[];
|
|
2182
|
+
error: Error;
|
|
2183
|
+
isError: true;
|
|
2184
|
+
isPending: false;
|
|
2185
|
+
isLoading: false;
|
|
2186
|
+
isLoadingError: false;
|
|
2187
|
+
isRefetchError: true;
|
|
2188
|
+
isSuccess: false;
|
|
2189
|
+
isPlaceholderData: false;
|
|
2190
|
+
status: "error";
|
|
2191
|
+
dataUpdatedAt: number;
|
|
2192
|
+
errorUpdatedAt: number;
|
|
2193
|
+
failureCount: number;
|
|
2194
|
+
failureReason: Error | null;
|
|
2195
|
+
errorUpdateCount: number;
|
|
2196
|
+
isFetched: boolean;
|
|
2197
|
+
isFetchedAfterMount: boolean;
|
|
2198
|
+
isFetching: boolean;
|
|
2199
|
+
isInitialLoading: boolean;
|
|
2200
|
+
isPaused: boolean;
|
|
2201
|
+
isRefetching: boolean;
|
|
2202
|
+
isStale: boolean;
|
|
2203
|
+
isEnabled: boolean;
|
|
2204
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraAdvisor[], Error>>;
|
|
2205
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2206
|
+
promise: Promise<BraAdvisor[]>;
|
|
2207
|
+
} | {
|
|
2208
|
+
data: BraAdvisor[];
|
|
2209
|
+
error: null;
|
|
2210
|
+
isError: false;
|
|
2211
|
+
isPending: false;
|
|
2212
|
+
isLoading: false;
|
|
2213
|
+
isLoadingError: false;
|
|
2214
|
+
isRefetchError: false;
|
|
2215
|
+
isSuccess: true;
|
|
2216
|
+
isPlaceholderData: false;
|
|
2217
|
+
status: "success";
|
|
2218
|
+
dataUpdatedAt: number;
|
|
2219
|
+
errorUpdatedAt: number;
|
|
2220
|
+
failureCount: number;
|
|
2221
|
+
failureReason: Error | null;
|
|
2222
|
+
errorUpdateCount: number;
|
|
2223
|
+
isFetched: boolean;
|
|
2224
|
+
isFetchedAfterMount: boolean;
|
|
2225
|
+
isFetching: boolean;
|
|
2226
|
+
isInitialLoading: boolean;
|
|
2227
|
+
isPaused: boolean;
|
|
2228
|
+
isRefetching: boolean;
|
|
2229
|
+
isStale: boolean;
|
|
2230
|
+
isEnabled: boolean;
|
|
2231
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraAdvisor[], Error>>;
|
|
2232
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2233
|
+
promise: Promise<BraAdvisor[]>;
|
|
2234
|
+
} | {
|
|
2235
|
+
data: BraAdvisor[];
|
|
2236
|
+
error: Error;
|
|
2237
|
+
isError: true;
|
|
2238
|
+
isPending: false;
|
|
2239
|
+
isLoading: false;
|
|
2240
|
+
isLoadingError: true;
|
|
2241
|
+
isRefetchError: false;
|
|
2242
|
+
isSuccess: false;
|
|
2243
|
+
isPlaceholderData: false;
|
|
2244
|
+
status: "error";
|
|
2245
|
+
dataUpdatedAt: number;
|
|
2246
|
+
errorUpdatedAt: number;
|
|
2247
|
+
failureCount: number;
|
|
2248
|
+
failureReason: Error | null;
|
|
2249
|
+
errorUpdateCount: number;
|
|
2250
|
+
isFetched: boolean;
|
|
2251
|
+
isFetchedAfterMount: boolean;
|
|
2252
|
+
isFetching: boolean;
|
|
2253
|
+
isInitialLoading: boolean;
|
|
2254
|
+
isPaused: boolean;
|
|
2255
|
+
isRefetching: boolean;
|
|
2256
|
+
isStale: boolean;
|
|
2257
|
+
isEnabled: boolean;
|
|
2258
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraAdvisor[], Error>>;
|
|
2259
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2260
|
+
promise: Promise<BraAdvisor[]>;
|
|
2261
|
+
} | {
|
|
2262
|
+
data: BraAdvisor[];
|
|
2263
|
+
error: null;
|
|
2264
|
+
isError: false;
|
|
2265
|
+
isPending: true;
|
|
2266
|
+
isLoading: true;
|
|
2267
|
+
isLoadingError: false;
|
|
2268
|
+
isRefetchError: false;
|
|
2269
|
+
isSuccess: false;
|
|
2270
|
+
isPlaceholderData: false;
|
|
2271
|
+
status: "pending";
|
|
2272
|
+
dataUpdatedAt: number;
|
|
2273
|
+
errorUpdatedAt: number;
|
|
2274
|
+
failureCount: number;
|
|
2275
|
+
failureReason: Error | null;
|
|
2276
|
+
errorUpdateCount: number;
|
|
2277
|
+
isFetched: boolean;
|
|
2278
|
+
isFetchedAfterMount: boolean;
|
|
2279
|
+
isFetching: boolean;
|
|
2280
|
+
isInitialLoading: boolean;
|
|
2281
|
+
isPaused: boolean;
|
|
2282
|
+
isRefetching: boolean;
|
|
2283
|
+
isStale: boolean;
|
|
2284
|
+
isEnabled: boolean;
|
|
2285
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraAdvisor[], Error>>;
|
|
2286
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2287
|
+
promise: Promise<BraAdvisor[]>;
|
|
2288
|
+
} | {
|
|
2289
|
+
data: BraAdvisor[];
|
|
2290
|
+
error: null;
|
|
2291
|
+
isError: false;
|
|
2292
|
+
isPending: true;
|
|
2293
|
+
isLoadingError: false;
|
|
2294
|
+
isRefetchError: false;
|
|
2295
|
+
isSuccess: false;
|
|
2296
|
+
isPlaceholderData: false;
|
|
2297
|
+
status: "pending";
|
|
2298
|
+
dataUpdatedAt: number;
|
|
2299
|
+
errorUpdatedAt: number;
|
|
2300
|
+
failureCount: number;
|
|
2301
|
+
failureReason: Error | null;
|
|
2302
|
+
errorUpdateCount: number;
|
|
2303
|
+
isFetched: boolean;
|
|
2304
|
+
isFetchedAfterMount: boolean;
|
|
2305
|
+
isFetching: boolean;
|
|
2306
|
+
isLoading: boolean;
|
|
2307
|
+
isInitialLoading: boolean;
|
|
2308
|
+
isPaused: boolean;
|
|
2309
|
+
isRefetching: boolean;
|
|
2310
|
+
isStale: boolean;
|
|
2311
|
+
isEnabled: boolean;
|
|
2312
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraAdvisor[], Error>>;
|
|
2313
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2314
|
+
promise: Promise<BraAdvisor[]>;
|
|
2315
|
+
} | {
|
|
2316
|
+
data: BraAdvisor[];
|
|
2317
|
+
isError: false;
|
|
2318
|
+
error: null;
|
|
2319
|
+
isPending: false;
|
|
2320
|
+
isLoading: false;
|
|
2321
|
+
isLoadingError: false;
|
|
2322
|
+
isRefetchError: false;
|
|
2323
|
+
isSuccess: true;
|
|
2324
|
+
isPlaceholderData: true;
|
|
2325
|
+
status: "success";
|
|
2326
|
+
dataUpdatedAt: number;
|
|
2327
|
+
errorUpdatedAt: number;
|
|
2328
|
+
failureCount: number;
|
|
2329
|
+
failureReason: Error | null;
|
|
2330
|
+
errorUpdateCount: number;
|
|
2331
|
+
isFetched: boolean;
|
|
2332
|
+
isFetchedAfterMount: boolean;
|
|
2333
|
+
isFetching: boolean;
|
|
2334
|
+
isInitialLoading: boolean;
|
|
2335
|
+
isPaused: boolean;
|
|
2336
|
+
isRefetching: boolean;
|
|
2337
|
+
isStale: boolean;
|
|
2338
|
+
isEnabled: boolean;
|
|
2339
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraAdvisor[], Error>>;
|
|
2340
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2341
|
+
promise: Promise<BraAdvisor[]>;
|
|
2342
|
+
};
|
|
2343
|
+
export declare const useSetAdvisorRole: () => import('@tanstack/react-query').UseMutationResult<BraAdvisor, unknown, {
|
|
2344
|
+
userId: string;
|
|
2345
|
+
role: BraAdvisorRole;
|
|
2346
|
+
}, unknown>;
|
|
2347
|
+
/** Firm-wide aggregate AUM + per-advisor breakdown. FIRM_ADMIN only. */
|
|
2348
|
+
export declare const useFirmReport: () => import('@tanstack/react-query').UseQueryResult<BraFirmReport, Error>;
|
|
2349
|
+
/** The calling advisor's own client-portal branding, or null if not yet configured. */
|
|
2350
|
+
export declare const useMyAdvisorBranding: () => import('@tanstack/react-query').UseQueryResult<BraAdvisorBranding | null, Error>;
|
|
2351
|
+
export declare const useUpsertMyAdvisorBranding: () => import('@tanstack/react-query').UseMutationResult<BraAdvisorBranding, unknown, BraUpsertAdvisorBrandingInput, unknown>;
|
|
2352
|
+
/** The calling client's own portfolio summary, branded with their advisor's client-portal branding. */
|
|
2353
|
+
export declare const useClientPortalSummary: () => import('@tanstack/react-query').UseQueryResult<BraClientPortalSummary, Error>;
|
|
2354
|
+
export declare const useScheduledReports: () => {
|
|
2355
|
+
data: BraScheduledReport[];
|
|
2356
|
+
error: Error;
|
|
2357
|
+
isError: true;
|
|
2358
|
+
isPending: false;
|
|
2359
|
+
isLoading: false;
|
|
2360
|
+
isLoadingError: false;
|
|
2361
|
+
isRefetchError: true;
|
|
2362
|
+
isSuccess: false;
|
|
2363
|
+
isPlaceholderData: false;
|
|
2364
|
+
status: "error";
|
|
2365
|
+
dataUpdatedAt: number;
|
|
2366
|
+
errorUpdatedAt: number;
|
|
2367
|
+
failureCount: number;
|
|
2368
|
+
failureReason: Error | null;
|
|
2369
|
+
errorUpdateCount: number;
|
|
2370
|
+
isFetched: boolean;
|
|
2371
|
+
isFetchedAfterMount: boolean;
|
|
2372
|
+
isFetching: boolean;
|
|
2373
|
+
isInitialLoading: boolean;
|
|
2374
|
+
isPaused: boolean;
|
|
2375
|
+
isRefetching: boolean;
|
|
2376
|
+
isStale: boolean;
|
|
2377
|
+
isEnabled: boolean;
|
|
2378
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraScheduledReport[], Error>>;
|
|
2379
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2380
|
+
promise: Promise<BraScheduledReport[]>;
|
|
2381
|
+
} | {
|
|
2382
|
+
data: BraScheduledReport[];
|
|
2383
|
+
error: null;
|
|
2384
|
+
isError: false;
|
|
2385
|
+
isPending: false;
|
|
2386
|
+
isLoading: false;
|
|
2387
|
+
isLoadingError: false;
|
|
2388
|
+
isRefetchError: false;
|
|
2389
|
+
isSuccess: true;
|
|
2390
|
+
isPlaceholderData: false;
|
|
2391
|
+
status: "success";
|
|
2392
|
+
dataUpdatedAt: number;
|
|
2393
|
+
errorUpdatedAt: number;
|
|
2394
|
+
failureCount: number;
|
|
2395
|
+
failureReason: Error | null;
|
|
2396
|
+
errorUpdateCount: number;
|
|
2397
|
+
isFetched: boolean;
|
|
2398
|
+
isFetchedAfterMount: boolean;
|
|
2399
|
+
isFetching: boolean;
|
|
2400
|
+
isInitialLoading: boolean;
|
|
2401
|
+
isPaused: boolean;
|
|
2402
|
+
isRefetching: boolean;
|
|
2403
|
+
isStale: boolean;
|
|
2404
|
+
isEnabled: boolean;
|
|
2405
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraScheduledReport[], Error>>;
|
|
2406
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2407
|
+
promise: Promise<BraScheduledReport[]>;
|
|
2408
|
+
} | {
|
|
2409
|
+
data: BraScheduledReport[];
|
|
2410
|
+
error: Error;
|
|
2411
|
+
isError: true;
|
|
2412
|
+
isPending: false;
|
|
2413
|
+
isLoading: false;
|
|
2414
|
+
isLoadingError: true;
|
|
2415
|
+
isRefetchError: false;
|
|
2416
|
+
isSuccess: false;
|
|
2417
|
+
isPlaceholderData: false;
|
|
2418
|
+
status: "error";
|
|
2419
|
+
dataUpdatedAt: number;
|
|
2420
|
+
errorUpdatedAt: number;
|
|
2421
|
+
failureCount: number;
|
|
2422
|
+
failureReason: Error | null;
|
|
2423
|
+
errorUpdateCount: number;
|
|
2424
|
+
isFetched: boolean;
|
|
2425
|
+
isFetchedAfterMount: boolean;
|
|
2426
|
+
isFetching: boolean;
|
|
2427
|
+
isInitialLoading: boolean;
|
|
2428
|
+
isPaused: boolean;
|
|
2429
|
+
isRefetching: boolean;
|
|
2430
|
+
isStale: boolean;
|
|
2431
|
+
isEnabled: boolean;
|
|
2432
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraScheduledReport[], Error>>;
|
|
2433
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2434
|
+
promise: Promise<BraScheduledReport[]>;
|
|
2435
|
+
} | {
|
|
2436
|
+
data: BraScheduledReport[];
|
|
2437
|
+
error: null;
|
|
2438
|
+
isError: false;
|
|
2439
|
+
isPending: true;
|
|
2440
|
+
isLoading: true;
|
|
2441
|
+
isLoadingError: false;
|
|
2442
|
+
isRefetchError: false;
|
|
2443
|
+
isSuccess: false;
|
|
2444
|
+
isPlaceholderData: false;
|
|
2445
|
+
status: "pending";
|
|
2446
|
+
dataUpdatedAt: number;
|
|
2447
|
+
errorUpdatedAt: number;
|
|
2448
|
+
failureCount: number;
|
|
2449
|
+
failureReason: Error | null;
|
|
2450
|
+
errorUpdateCount: number;
|
|
2451
|
+
isFetched: boolean;
|
|
2452
|
+
isFetchedAfterMount: boolean;
|
|
2453
|
+
isFetching: boolean;
|
|
2454
|
+
isInitialLoading: boolean;
|
|
2455
|
+
isPaused: boolean;
|
|
2456
|
+
isRefetching: boolean;
|
|
2457
|
+
isStale: boolean;
|
|
2458
|
+
isEnabled: boolean;
|
|
2459
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraScheduledReport[], Error>>;
|
|
2460
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2461
|
+
promise: Promise<BraScheduledReport[]>;
|
|
2462
|
+
} | {
|
|
2463
|
+
data: BraScheduledReport[];
|
|
2464
|
+
error: null;
|
|
2465
|
+
isError: false;
|
|
2466
|
+
isPending: true;
|
|
2467
|
+
isLoadingError: false;
|
|
2468
|
+
isRefetchError: false;
|
|
2469
|
+
isSuccess: false;
|
|
2470
|
+
isPlaceholderData: false;
|
|
2471
|
+
status: "pending";
|
|
2472
|
+
dataUpdatedAt: number;
|
|
2473
|
+
errorUpdatedAt: number;
|
|
2474
|
+
failureCount: number;
|
|
2475
|
+
failureReason: Error | null;
|
|
2476
|
+
errorUpdateCount: number;
|
|
2477
|
+
isFetched: boolean;
|
|
2478
|
+
isFetchedAfterMount: boolean;
|
|
2479
|
+
isFetching: boolean;
|
|
2480
|
+
isLoading: boolean;
|
|
2481
|
+
isInitialLoading: boolean;
|
|
2482
|
+
isPaused: boolean;
|
|
2483
|
+
isRefetching: boolean;
|
|
2484
|
+
isStale: boolean;
|
|
2485
|
+
isEnabled: boolean;
|
|
2486
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraScheduledReport[], Error>>;
|
|
2487
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2488
|
+
promise: Promise<BraScheduledReport[]>;
|
|
2489
|
+
} | {
|
|
2490
|
+
data: BraScheduledReport[];
|
|
2491
|
+
isError: false;
|
|
2492
|
+
error: null;
|
|
2493
|
+
isPending: false;
|
|
2494
|
+
isLoading: false;
|
|
2495
|
+
isLoadingError: false;
|
|
2496
|
+
isRefetchError: false;
|
|
2497
|
+
isSuccess: true;
|
|
2498
|
+
isPlaceholderData: true;
|
|
2499
|
+
status: "success";
|
|
2500
|
+
dataUpdatedAt: number;
|
|
2501
|
+
errorUpdatedAt: number;
|
|
2502
|
+
failureCount: number;
|
|
2503
|
+
failureReason: Error | null;
|
|
2504
|
+
errorUpdateCount: number;
|
|
2505
|
+
isFetched: boolean;
|
|
2506
|
+
isFetchedAfterMount: boolean;
|
|
2507
|
+
isFetching: boolean;
|
|
2508
|
+
isInitialLoading: boolean;
|
|
2509
|
+
isPaused: boolean;
|
|
2510
|
+
isRefetching: boolean;
|
|
2511
|
+
isStale: boolean;
|
|
2512
|
+
isEnabled: boolean;
|
|
2513
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraScheduledReport[], Error>>;
|
|
2514
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2515
|
+
promise: Promise<BraScheduledReport[]>;
|
|
2516
|
+
};
|
|
2517
|
+
export declare const useCreateScheduledReport: () => import('@tanstack/react-query').UseMutationResult<BraScheduledReport, unknown, BraCreateScheduledReportInput, unknown>;
|
|
2518
|
+
export declare const useSetScheduledReportStatus: () => import('@tanstack/react-query').UseMutationResult<BraScheduledReport, unknown, {
|
|
2519
|
+
id: string;
|
|
2520
|
+
pause: boolean;
|
|
2521
|
+
}, unknown>;
|
|
2522
|
+
export declare const useReportRuns: (scheduledReportId?: string) => {
|
|
2523
|
+
data: BraReportRun[];
|
|
2524
|
+
error: Error;
|
|
2525
|
+
isError: true;
|
|
2526
|
+
isPending: false;
|
|
2527
|
+
isLoading: false;
|
|
2528
|
+
isLoadingError: false;
|
|
2529
|
+
isRefetchError: true;
|
|
2530
|
+
isSuccess: false;
|
|
2531
|
+
isPlaceholderData: false;
|
|
2532
|
+
status: "error";
|
|
2533
|
+
dataUpdatedAt: number;
|
|
2534
|
+
errorUpdatedAt: number;
|
|
2535
|
+
failureCount: number;
|
|
2536
|
+
failureReason: Error | null;
|
|
2537
|
+
errorUpdateCount: number;
|
|
2538
|
+
isFetched: boolean;
|
|
2539
|
+
isFetchedAfterMount: boolean;
|
|
2540
|
+
isFetching: boolean;
|
|
2541
|
+
isInitialLoading: boolean;
|
|
2542
|
+
isPaused: boolean;
|
|
2543
|
+
isRefetching: boolean;
|
|
2544
|
+
isStale: boolean;
|
|
2545
|
+
isEnabled: boolean;
|
|
2546
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraReportRun[], Error>>;
|
|
2547
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2548
|
+
promise: Promise<BraReportRun[]>;
|
|
2549
|
+
} | {
|
|
2550
|
+
data: BraReportRun[];
|
|
2551
|
+
error: null;
|
|
2552
|
+
isError: false;
|
|
2553
|
+
isPending: false;
|
|
2554
|
+
isLoading: false;
|
|
2555
|
+
isLoadingError: false;
|
|
2556
|
+
isRefetchError: false;
|
|
2557
|
+
isSuccess: true;
|
|
2558
|
+
isPlaceholderData: false;
|
|
2559
|
+
status: "success";
|
|
2560
|
+
dataUpdatedAt: number;
|
|
2561
|
+
errorUpdatedAt: number;
|
|
2562
|
+
failureCount: number;
|
|
2563
|
+
failureReason: Error | null;
|
|
2564
|
+
errorUpdateCount: number;
|
|
2565
|
+
isFetched: boolean;
|
|
2566
|
+
isFetchedAfterMount: boolean;
|
|
2567
|
+
isFetching: boolean;
|
|
2568
|
+
isInitialLoading: boolean;
|
|
2569
|
+
isPaused: boolean;
|
|
2570
|
+
isRefetching: boolean;
|
|
2571
|
+
isStale: boolean;
|
|
2572
|
+
isEnabled: boolean;
|
|
2573
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraReportRun[], Error>>;
|
|
2574
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2575
|
+
promise: Promise<BraReportRun[]>;
|
|
2576
|
+
} | {
|
|
2577
|
+
data: BraReportRun[];
|
|
2578
|
+
error: Error;
|
|
2579
|
+
isError: true;
|
|
2580
|
+
isPending: false;
|
|
2581
|
+
isLoading: false;
|
|
2582
|
+
isLoadingError: true;
|
|
2583
|
+
isRefetchError: false;
|
|
2584
|
+
isSuccess: false;
|
|
2585
|
+
isPlaceholderData: false;
|
|
2586
|
+
status: "error";
|
|
2587
|
+
dataUpdatedAt: number;
|
|
2588
|
+
errorUpdatedAt: number;
|
|
2589
|
+
failureCount: number;
|
|
2590
|
+
failureReason: Error | null;
|
|
2591
|
+
errorUpdateCount: number;
|
|
2592
|
+
isFetched: boolean;
|
|
2593
|
+
isFetchedAfterMount: boolean;
|
|
2594
|
+
isFetching: boolean;
|
|
2595
|
+
isInitialLoading: boolean;
|
|
2596
|
+
isPaused: boolean;
|
|
2597
|
+
isRefetching: boolean;
|
|
2598
|
+
isStale: boolean;
|
|
2599
|
+
isEnabled: boolean;
|
|
2600
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraReportRun[], Error>>;
|
|
2601
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2602
|
+
promise: Promise<BraReportRun[]>;
|
|
2603
|
+
} | {
|
|
2604
|
+
data: BraReportRun[];
|
|
2605
|
+
error: null;
|
|
2606
|
+
isError: false;
|
|
2607
|
+
isPending: true;
|
|
2608
|
+
isLoading: true;
|
|
2609
|
+
isLoadingError: false;
|
|
2610
|
+
isRefetchError: false;
|
|
2611
|
+
isSuccess: false;
|
|
2612
|
+
isPlaceholderData: false;
|
|
2613
|
+
status: "pending";
|
|
2614
|
+
dataUpdatedAt: number;
|
|
2615
|
+
errorUpdatedAt: number;
|
|
2616
|
+
failureCount: number;
|
|
2617
|
+
failureReason: Error | null;
|
|
2618
|
+
errorUpdateCount: number;
|
|
2619
|
+
isFetched: boolean;
|
|
2620
|
+
isFetchedAfterMount: boolean;
|
|
2621
|
+
isFetching: boolean;
|
|
2622
|
+
isInitialLoading: boolean;
|
|
2623
|
+
isPaused: boolean;
|
|
2624
|
+
isRefetching: boolean;
|
|
2625
|
+
isStale: boolean;
|
|
2626
|
+
isEnabled: boolean;
|
|
2627
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraReportRun[], Error>>;
|
|
2628
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2629
|
+
promise: Promise<BraReportRun[]>;
|
|
2630
|
+
} | {
|
|
2631
|
+
data: BraReportRun[];
|
|
2632
|
+
error: null;
|
|
2633
|
+
isError: false;
|
|
2634
|
+
isPending: true;
|
|
2635
|
+
isLoadingError: false;
|
|
2636
|
+
isRefetchError: false;
|
|
2637
|
+
isSuccess: false;
|
|
2638
|
+
isPlaceholderData: false;
|
|
2639
|
+
status: "pending";
|
|
2640
|
+
dataUpdatedAt: number;
|
|
2641
|
+
errorUpdatedAt: number;
|
|
2642
|
+
failureCount: number;
|
|
2643
|
+
failureReason: Error | null;
|
|
2644
|
+
errorUpdateCount: number;
|
|
2645
|
+
isFetched: boolean;
|
|
2646
|
+
isFetchedAfterMount: boolean;
|
|
2647
|
+
isFetching: boolean;
|
|
2648
|
+
isLoading: boolean;
|
|
2649
|
+
isInitialLoading: boolean;
|
|
2650
|
+
isPaused: boolean;
|
|
2651
|
+
isRefetching: boolean;
|
|
2652
|
+
isStale: boolean;
|
|
2653
|
+
isEnabled: boolean;
|
|
2654
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraReportRun[], Error>>;
|
|
2655
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2656
|
+
promise: Promise<BraReportRun[]>;
|
|
2657
|
+
} | {
|
|
2658
|
+
data: BraReportRun[];
|
|
2659
|
+
isError: false;
|
|
2660
|
+
error: null;
|
|
2661
|
+
isPending: false;
|
|
2662
|
+
isLoading: false;
|
|
2663
|
+
isLoadingError: false;
|
|
2664
|
+
isRefetchError: false;
|
|
2665
|
+
isSuccess: true;
|
|
2666
|
+
isPlaceholderData: true;
|
|
2667
|
+
status: "success";
|
|
2668
|
+
dataUpdatedAt: number;
|
|
2669
|
+
errorUpdatedAt: number;
|
|
2670
|
+
failureCount: number;
|
|
2671
|
+
failureReason: Error | null;
|
|
2672
|
+
errorUpdateCount: number;
|
|
2673
|
+
isFetched: boolean;
|
|
2674
|
+
isFetchedAfterMount: boolean;
|
|
2675
|
+
isFetching: boolean;
|
|
2676
|
+
isInitialLoading: boolean;
|
|
2677
|
+
isPaused: boolean;
|
|
2678
|
+
isRefetching: boolean;
|
|
2679
|
+
isStale: boolean;
|
|
2680
|
+
isEnabled: boolean;
|
|
2681
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraReportRun[], Error>>;
|
|
2682
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2683
|
+
promise: Promise<BraReportRun[]>;
|
|
2684
|
+
};
|
|
2685
|
+
/** Generates a report run now (same real render path a due schedule uses) and dispatches an in-app "report ready" notification. */
|
|
2686
|
+
export declare const useGenerateReportNow: () => import('@tanstack/react-query').UseMutationResult<BraReportRun, unknown, BraGenerateReportNowInput, unknown>;
|
|
2687
|
+
/** Real, regenerated-on-demand PDF for one report run, base64-encoded. Fetched on demand (not a cached query) — triggers a download. */
|
|
2688
|
+
export declare function downloadReportRunPdf(apiGatewayUrl: string | undefined, runId: string, filename: string): Promise<void>;
|
|
2689
|
+
export declare const useDownloadReportRunPdf: () => import('@tanstack/react-query').UseMutationResult<void, unknown, BraReportRun, unknown>;
|
|
2690
|
+
/** A real, live current quote for one symbol from a public market-data feed. Manual/on-demand — not auto-polled. */
|
|
2691
|
+
export declare const useMarketQuote: (symbol: string | undefined) => import('@tanstack/react-query').UseQueryResult<BraMarketQuote, Error>;
|
|
2692
|
+
/** Refreshes every holding's lastPrice in one account from real live quotes. */
|
|
2693
|
+
export declare const useRefreshHoldingPrices: () => import('@tanstack/react-query').UseMutationResult<BraHoldingPriceRefreshResult, unknown, string, unknown>;
|
|
2694
|
+
/** BUY/SELL recommendations for a human advisor to review — never an execution record. */
|
|
2695
|
+
export declare const useTradeInstructions: (portfolioId?: string, status?: BraTradeInstructionStatus) => {
|
|
2696
|
+
data: BraTradeInstruction[];
|
|
2697
|
+
error: Error;
|
|
2698
|
+
isError: true;
|
|
2699
|
+
isPending: false;
|
|
2700
|
+
isLoading: false;
|
|
2701
|
+
isLoadingError: false;
|
|
2702
|
+
isRefetchError: true;
|
|
2703
|
+
isSuccess: false;
|
|
2704
|
+
isPlaceholderData: false;
|
|
2705
|
+
status: "error";
|
|
2706
|
+
dataUpdatedAt: number;
|
|
2707
|
+
errorUpdatedAt: number;
|
|
2708
|
+
failureCount: number;
|
|
2709
|
+
failureReason: Error | null;
|
|
2710
|
+
errorUpdateCount: number;
|
|
2711
|
+
isFetched: boolean;
|
|
2712
|
+
isFetchedAfterMount: boolean;
|
|
2713
|
+
isFetching: boolean;
|
|
2714
|
+
isInitialLoading: boolean;
|
|
2715
|
+
isPaused: boolean;
|
|
2716
|
+
isRefetching: boolean;
|
|
2717
|
+
isStale: boolean;
|
|
2718
|
+
isEnabled: boolean;
|
|
2719
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraTradeInstruction[], Error>>;
|
|
2720
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2721
|
+
promise: Promise<BraTradeInstruction[]>;
|
|
2722
|
+
} | {
|
|
2723
|
+
data: BraTradeInstruction[];
|
|
2724
|
+
error: null;
|
|
2725
|
+
isError: false;
|
|
2726
|
+
isPending: false;
|
|
2727
|
+
isLoading: false;
|
|
2728
|
+
isLoadingError: false;
|
|
2729
|
+
isRefetchError: false;
|
|
2730
|
+
isSuccess: true;
|
|
2731
|
+
isPlaceholderData: false;
|
|
2732
|
+
status: "success";
|
|
2733
|
+
dataUpdatedAt: number;
|
|
2734
|
+
errorUpdatedAt: number;
|
|
2735
|
+
failureCount: number;
|
|
2736
|
+
failureReason: Error | null;
|
|
2737
|
+
errorUpdateCount: number;
|
|
2738
|
+
isFetched: boolean;
|
|
2739
|
+
isFetchedAfterMount: boolean;
|
|
2740
|
+
isFetching: boolean;
|
|
2741
|
+
isInitialLoading: boolean;
|
|
2742
|
+
isPaused: boolean;
|
|
2743
|
+
isRefetching: boolean;
|
|
2744
|
+
isStale: boolean;
|
|
2745
|
+
isEnabled: boolean;
|
|
2746
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraTradeInstruction[], Error>>;
|
|
2747
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2748
|
+
promise: Promise<BraTradeInstruction[]>;
|
|
2749
|
+
} | {
|
|
2750
|
+
data: BraTradeInstruction[];
|
|
2751
|
+
error: Error;
|
|
2752
|
+
isError: true;
|
|
2753
|
+
isPending: false;
|
|
2754
|
+
isLoading: false;
|
|
2755
|
+
isLoadingError: true;
|
|
2756
|
+
isRefetchError: false;
|
|
2757
|
+
isSuccess: false;
|
|
2758
|
+
isPlaceholderData: false;
|
|
2759
|
+
status: "error";
|
|
2760
|
+
dataUpdatedAt: number;
|
|
2761
|
+
errorUpdatedAt: number;
|
|
2762
|
+
failureCount: number;
|
|
2763
|
+
failureReason: Error | null;
|
|
2764
|
+
errorUpdateCount: number;
|
|
2765
|
+
isFetched: boolean;
|
|
2766
|
+
isFetchedAfterMount: boolean;
|
|
2767
|
+
isFetching: boolean;
|
|
2768
|
+
isInitialLoading: boolean;
|
|
2769
|
+
isPaused: boolean;
|
|
2770
|
+
isRefetching: boolean;
|
|
2771
|
+
isStale: boolean;
|
|
2772
|
+
isEnabled: boolean;
|
|
2773
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraTradeInstruction[], Error>>;
|
|
2774
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2775
|
+
promise: Promise<BraTradeInstruction[]>;
|
|
2776
|
+
} | {
|
|
2777
|
+
data: BraTradeInstruction[];
|
|
2778
|
+
error: null;
|
|
2779
|
+
isError: false;
|
|
2780
|
+
isPending: true;
|
|
2781
|
+
isLoading: true;
|
|
2782
|
+
isLoadingError: false;
|
|
2783
|
+
isRefetchError: false;
|
|
2784
|
+
isSuccess: false;
|
|
2785
|
+
isPlaceholderData: false;
|
|
2786
|
+
status: "pending";
|
|
2787
|
+
dataUpdatedAt: number;
|
|
2788
|
+
errorUpdatedAt: number;
|
|
2789
|
+
failureCount: number;
|
|
2790
|
+
failureReason: Error | null;
|
|
2791
|
+
errorUpdateCount: number;
|
|
2792
|
+
isFetched: boolean;
|
|
2793
|
+
isFetchedAfterMount: boolean;
|
|
2794
|
+
isFetching: boolean;
|
|
2795
|
+
isInitialLoading: boolean;
|
|
2796
|
+
isPaused: boolean;
|
|
2797
|
+
isRefetching: boolean;
|
|
2798
|
+
isStale: boolean;
|
|
2799
|
+
isEnabled: boolean;
|
|
2800
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraTradeInstruction[], Error>>;
|
|
2801
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2802
|
+
promise: Promise<BraTradeInstruction[]>;
|
|
2803
|
+
} | {
|
|
2804
|
+
data: BraTradeInstruction[];
|
|
2805
|
+
error: null;
|
|
2806
|
+
isError: false;
|
|
2807
|
+
isPending: true;
|
|
2808
|
+
isLoadingError: false;
|
|
2809
|
+
isRefetchError: false;
|
|
2810
|
+
isSuccess: false;
|
|
2811
|
+
isPlaceholderData: false;
|
|
2812
|
+
status: "pending";
|
|
2813
|
+
dataUpdatedAt: number;
|
|
2814
|
+
errorUpdatedAt: number;
|
|
2815
|
+
failureCount: number;
|
|
2816
|
+
failureReason: Error | null;
|
|
2817
|
+
errorUpdateCount: number;
|
|
2818
|
+
isFetched: boolean;
|
|
2819
|
+
isFetchedAfterMount: boolean;
|
|
2820
|
+
isFetching: boolean;
|
|
2821
|
+
isLoading: boolean;
|
|
2822
|
+
isInitialLoading: boolean;
|
|
2823
|
+
isPaused: boolean;
|
|
2824
|
+
isRefetching: boolean;
|
|
2825
|
+
isStale: boolean;
|
|
2826
|
+
isEnabled: boolean;
|
|
2827
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraTradeInstruction[], Error>>;
|
|
2828
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2829
|
+
promise: Promise<BraTradeInstruction[]>;
|
|
2830
|
+
} | {
|
|
2831
|
+
data: BraTradeInstruction[];
|
|
2832
|
+
isError: false;
|
|
2833
|
+
error: null;
|
|
2834
|
+
isPending: false;
|
|
2835
|
+
isLoading: false;
|
|
2836
|
+
isLoadingError: false;
|
|
2837
|
+
isRefetchError: false;
|
|
2838
|
+
isSuccess: true;
|
|
2839
|
+
isPlaceholderData: true;
|
|
2840
|
+
status: "success";
|
|
2841
|
+
dataUpdatedAt: number;
|
|
2842
|
+
errorUpdatedAt: number;
|
|
2843
|
+
failureCount: number;
|
|
2844
|
+
failureReason: Error | null;
|
|
2845
|
+
errorUpdateCount: number;
|
|
2846
|
+
isFetched: boolean;
|
|
2847
|
+
isFetchedAfterMount: boolean;
|
|
2848
|
+
isFetching: boolean;
|
|
2849
|
+
isInitialLoading: boolean;
|
|
2850
|
+
isPaused: boolean;
|
|
2851
|
+
isRefetching: boolean;
|
|
2852
|
+
isStale: boolean;
|
|
2853
|
+
isEnabled: boolean;
|
|
2854
|
+
refetch: (options?: import('@tanstack/query-core').RefetchOptions) => Promise<import('@tanstack/query-core').QueryObserverResult<BraTradeInstruction[], Error>>;
|
|
2855
|
+
fetchStatus: import('@tanstack/query-core').FetchStatus;
|
|
2856
|
+
promise: Promise<BraTradeInstruction[]>;
|
|
2857
|
+
};
|
|
2858
|
+
export declare const useCreateTradeInstruction: () => import('@tanstack/react-query').UseMutationResult<BraTradeInstruction, unknown, BraCreateTradeInstructionInput, unknown>;
|
|
2859
|
+
/** A human advisor marking an instruction reviewed. status must be ACKNOWLEDGED or DISMISSED — no execute transition exists. */
|
|
2860
|
+
export declare const useReviewTradeInstruction: () => import('@tanstack/react-query').UseMutationResult<BraTradeInstruction, unknown, {
|
|
2861
|
+
id: string;
|
|
2862
|
+
status: Extract<BraTradeInstructionStatus, "ACKNOWLEDGED" | "DISMISSED">;
|
|
2863
|
+
}, unknown>;
|
|
2169
2864
|
//# sourceMappingURL=useBrainyRichApi.d.ts.map
|