Files
Neon-Desk/lib/query/keys.ts

12 lines
645 B
TypeScript

export const queryKeys = {
companyAnalysis: (ticker: string) => ['analysis', ticker] as const,
filings: (ticker: string | null, limit: number) => ['filings', ticker ?? '', limit] as const,
report: (accessionNumber: string) => ['report', accessionNumber] as const,
watchlist: () => ['watchlist'] as const,
holdings: () => ['portfolio', 'holdings'] as const,
portfolioSummary: () => ['portfolio', 'summary'] as const,
latestPortfolioInsight: () => ['portfolio', 'insights', 'latest'] as const,
task: (taskId: string) => ['tasks', 'detail', taskId] as const,
recentTasks: (limit: number) => ['tasks', 'recent', limit] as const
};