Automate issuer overlay creation from ticker searches
This commit is contained in:
@@ -29,7 +29,7 @@ import {
|
||||
const FINANCIAL_FORMS = new Set<Filing['filing_type']>(['10-K', '10-Q']);
|
||||
const COMPANY_OVERVIEW_CACHE_TTL_MS = 1000 * 60 * 15;
|
||||
|
||||
export type CompanyAnalysisLocalInputs = {
|
||||
type CompanyAnalysisLocalInputs = {
|
||||
filings: Filing[];
|
||||
holding: Holding | null;
|
||||
watchlistItem: WatchlistItem | null;
|
||||
@@ -48,7 +48,7 @@ function withFinancialMetricsPolicy(filing: Filing): Filing {
|
||||
};
|
||||
}
|
||||
|
||||
export function buildCompanyAnalysisSourceSignature(input: {
|
||||
function buildCompanyAnalysisSourceSignature(input: {
|
||||
ticker: string;
|
||||
localInputs: CompanyAnalysisLocalInputs;
|
||||
cacheVersion?: number;
|
||||
@@ -72,7 +72,7 @@ export function buildCompanyAnalysisSourceSignature(input: {
|
||||
return createHash('sha256').update(JSON.stringify(payload)).digest('hex');
|
||||
}
|
||||
|
||||
export function isCompanyOverviewCacheFresh(input: {
|
||||
function isCompanyOverviewCacheFresh(input: {
|
||||
updatedAt: string;
|
||||
sourceSignature: string;
|
||||
expectedSourceSignature: string;
|
||||
|
||||
Reference in New Issue
Block a user