Automate issuer overlay creation from ticker searches
This commit is contained in:
@@ -80,7 +80,7 @@ export type DimensionStatementBundle = {
|
||||
statements: Record<FinancialStatementKind, DimensionStatementSnapshotRow[]>;
|
||||
};
|
||||
|
||||
export type FilingStatementSnapshotRecord = {
|
||||
type FilingStatementSnapshotRecord = {
|
||||
id: number;
|
||||
filing_id: number;
|
||||
ticker: string;
|
||||
@@ -97,7 +97,7 @@ export type FilingStatementSnapshotRecord = {
|
||||
updated_at: string;
|
||||
};
|
||||
|
||||
export type UpsertFilingStatementSnapshotInput = {
|
||||
type UpsertFilingStatementSnapshotInput = {
|
||||
filing_id: number;
|
||||
ticker: string;
|
||||
filing_date: string;
|
||||
@@ -191,7 +191,7 @@ export async function upsertFilingStatementSnapshot(
|
||||
return toSnapshotRecord(saved);
|
||||
}
|
||||
|
||||
export async function listFilingStatementSnapshotsByTicker(input: {
|
||||
async function listFilingStatementSnapshotsByTicker(input: {
|
||||
ticker: string;
|
||||
window: "10y" | "all";
|
||||
limit?: number;
|
||||
@@ -235,7 +235,7 @@ export async function listFilingStatementSnapshotsByTicker(input: {
|
||||
};
|
||||
}
|
||||
|
||||
export async function countFilingStatementSnapshotStatuses(ticker: string) {
|
||||
async function countFilingStatementSnapshotStatuses(ticker: string) {
|
||||
const rows = await db
|
||||
.select({
|
||||
status: filingStatementSnapshot.parse_status,
|
||||
|
||||
Reference in New Issue
Block a user