chore: commit all current changes

This commit is contained in:
2026-02-28 15:13:21 -05:00
parent a53a5222c1
commit 0615534f4b
6 changed files with 248 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
import { edenTreaty } from '@elysiajs/eden';
import type { App } from '@/lib/server/api/app';
import type {
CompanyAiReportDetail,
CompanyAnalysis,
Filing,
Holding,
@@ -184,6 +185,13 @@ export async function getCompanyAnalysis(ticker: string) {
return await unwrapData<{ analysis: CompanyAnalysis }>(result, 'Unable to fetch company analysis');
}
export async function getCompanyAiReport(accessionNumber: string) {
const normalizedAccession = accessionNumber.trim();
const result = await client.api.analysis.reports[normalizedAccession].get();
return await unwrapData<{ report: CompanyAiReportDetail }>(result, 'Unable to fetch AI summary');
}
export async function queueFilingSync(input: { ticker: string; limit?: number }) {
const result = await client.api.filings.sync.post(input);
return await unwrapData<{ task: Task }>(result, 'Unable to queue filing sync');