chore: commit all current changes
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user